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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ae27a4af140633e2cb9d306f9edc80851f36856 | 4,252 | py | Python | tests/features/steps/delivery.py | ahmadsyafrudin/estimation-test | 25b0b80065c8a0c0ba1a1a3b019b522d81501afa | [
"MIT"
] | null | null | null | tests/features/steps/delivery.py | ahmadsyafrudin/estimation-test | 25b0b80065c8a0c0ba1a1a3b019b522d81501afa | [
"MIT"
] | 8 | 2020-02-12T00:12:47.000Z | 2021-09-22T18:01:47.000Z | tests/features/steps/delivery.py | ahmadsyafrudin/estimation-test | 25b0b80065c8a0c0ba1a1a3b019b522d81501afa | [
"MIT"
] | null | null | null | from http import HTTPStatus
from dateutil.parser import parse
from behave import given, when, then
from django.test import Client
@given("client want to order on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param hour: str
:param date: str
:type context: behave.runner.Context
"""
context.estimation_type = "delivery"
context.date = parse(f"{date} {hour}").isoformat()
@when("estimate for delivery")
def step_impl(context):
"""
:type context: behave.runner.Context
"""
factory = Client()
context.response = factory.post("/api/estimate/", data={"dateTime": context.date,
"estimationType": context.estimation_type},
content_type="application/json")
@then("client get receive estimation on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param hour: str
:param date: str
:type context: behave.runner.Context
"""
assert context.response.status_code == HTTPStatus.OK
assert context.response.json().get("receive") == parse(f"{date} {hour}").isoformat()
@given("client want to estimate order on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param date: str
:param hour: str
:type context: behave.runner.Context
"""
context.estimation_type = "delivery"
context.date = parse(f"{date} {hour}").isoformat()
@when("estimate for delivery and tomorrow is holiday")
def step_impl(context):
"""
:type context: behave.runner.Context
"""
factory = Client()
context.response = factory.post("/api/estimate/", data={"dateTime": context.date,
"estimationType": context.estimation_type},
content_type="application/json")
@then("client get process estimation not tomorrow, but on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param date:
:param hour:
:type context: behave.runner.Context
"""
assert context.response.status_code == HTTPStatus.OK
assert context.response.json().get("processing") == parse(f"{date} {hour}").isoformat()
@given("client want to estimate holiday order on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param date: str
:param hour: str
:type context: behave.runner.Context
"""
context.estimation_type = "delivery"
context.date = parse(f"{date} {hour}").isoformat()
@when("estimate for delivery on holiday")
def step_impl(context):
"""
:type context: behave.runner.Context
"""
factory = Client()
context.response = factory.post("/api/estimate/", data={"dateTime": context.date,
"estimationType": context.estimation_type},
content_type="application/json")
@then("client can't do order because {holiday_name}")
def step_impl(context, holiday_name):
"""
:param holiday_name: str
:type context: behave.runner.Context
"""
assert context.response.status_code == HTTPStatus.BAD_REQUEST
assert holiday_name in context.response.json().get("message")
@given("client want to estimate weekend order on {date} at {hour}")
def step_impl(context, date, hour):
"""
:param hour: str
:param date: str
:type context: behave.runner.Context
"""
context.estimation_type = "delivery"
context.date = parse(f"{date} {hour}").isoformat()
@when("estimate for delivery on weekend")
def step_impl(context):
"""
:type context: behave.runner.Context
"""
factory = Client()
context.response = factory.post("/api/estimate/", data={"dateTime": context.date,
"estimationType": context.estimation_type},
content_type="application/json")
@then("client can't do order on {weekend_day}")
def step_impl(context, weekend_day):
"""
:param weekend_day: str
:type context: behave.runner.Context
"""
assert context.response.status_code == HTTPStatus.BAD_REQUEST
assert weekend_day in context.response.json().get("message")
| 31.264706 | 103 | 0.618532 | 484 | 4,252 | 5.355372 | 0.144628 | 0.059414 | 0.050926 | 0.083333 | 0.856481 | 0.846836 | 0.822917 | 0.822917 | 0.822917 | 0.822917 | 0 | 0 | 0.248119 | 4,252 | 135 | 104 | 31.496296 | 0.81076 | 0.161806 | 0 | 0.633333 | 0 | 0 | 0.264503 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
8507589d7822f7af41526eee6297bb4300799fd8 | 47 | py | Python | Light/1068/AES_FINAL/secret.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Light/1068/AES_FINAL/secret.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Light/1068/AES_FINAL/secret.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | FLAG = "zenseCTF{AeS}"
KEY = "0000000000000000" | 23.5 | 24 | 0.723404 | 5 | 47 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 0.106383 | 47 | 2 | 24 | 23.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
852530f5aa6133cdd3f4db4571a28f1acde4cf65 | 17,033 | py | Python | lib/net/network.py | jrcai/ACE | 1e2b04d1cf4bb517f107664ac489a1a96e95a4c1 | [
"MIT"
] | 18 | 2021-08-06T01:15:32.000Z | 2022-03-14T07:09:39.000Z | lib/net/network.py | jrcai/ACE | 1e2b04d1cf4bb517f107664ac489a1a96e95a4c1 | [
"MIT"
] | 2 | 2021-09-24T03:29:17.000Z | 2021-11-22T19:18:58.000Z | lib/net/network.py | jrcai/ACE | 1e2b04d1cf4bb517f107664ac489a1a96e95a4c1 | [
"MIT"
] | 2 | 2021-10-17T18:09:20.000Z | 2021-11-08T04:19:19.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from backbone import (res32_cifar,res32_cifar_group, res50,res50_group, res10, res10_group, res152,res152_group)
from modules import GAP, FCNorm, FCGroupNorm, Identity, SEN, GMP, LWS, LWS_bias
import copy
import numpy as np
import cv2
class Network(nn.Module):
def __init__(self, cfg, groups, mode="train", num_classes=1000):
super(Network, self).__init__()
pretrain = (
True
if mode == "train"
and cfg.RESUME_MODEL == ""
and cfg.BACKBONE.PRETRAINED_MODEL != ""
else False
)
self.num_classes = num_classes
self.cfg = cfg
self.group = groups
self.backbone = eval(self.cfg.BACKBONE.TYPE)(
self.cfg,
pretrain=pretrain,
pretrained_model=cfg.BACKBONE.PRETRAINED_MODEL,
last_layer_stride=2,
)
self.module = self._get_module()
self.classifier = self._get_classifer()
def forward(self, x, **kwargs):
# print(x[0].shape)
if "feature_flag" in kwargs or "feature_cb" in kwargs or "feature_rb" in kwargs:
return self.extract_feature(x, **kwargs)
elif "classifier_flag" in kwargs:
return self.classifier(x)
elif 'feature_maps_flag' in kwargs:
return self.extract_feature_maps(x)
elif 'layer' in kwargs and 'index' in kwargs:
if kwargs['layer'] in ['layer1', 'layer2', 'layer3']:
x = self.backbone.forward(x, index=kwargs['index'], layer=kwargs['layer'], coef=kwargs['coef'])
else:
x = self.backbone(x)
x = self.module(x)
if kwargs['layer'] == 'pool':
x = kwargs['coef']*x+(1-kwargs['coef'])*x[kwargs['index']]
x = x.view(x.shape[0], -1)
x = self.classifier(x)
if kwargs['layer'] == 'fc':
x = kwargs['coef']*x + (1-kwargs['coef'])*x[kwargs['index']]
return x
x = self.backbone(x)
x = self.module(x)
x = x.view(x.shape[0], -1)
x = self.classifier(x)
return x
def get_backbone_layer_info(self):
if "cifar" in self.cfg.BACKBONE.TYPE:
layers = 3
blocks_info = [5, 5, 5]
elif 'res10' in self.cfg.BACKBONE.TYPE:
layers = 4
blocks_info = [1, 1, 1, 1]
else:
layers = 4
blocks_info = [3, 4, 6, 3]
return layers, blocks_info
def extract_feature(self, x, **kwargs):
x = self.backbone(x)
x = self.module(x)
x = x.view(x.shape[0], -1)
return x
def extract_feature_maps(self, x):
x = self.backbone(x)
return x
def extract_feature_maps_multi(self, x):
x = self.backbone(x)
return x
def freeze_backbone(self):
print("Freezing backbone .......")
for p in self.backbone.parameters():
p.requires_grad = False
def load_backbone_model(self, backbone_path=""):
self.backbone.load_model(backbone_path)
print("Backbone model has been loaded...")
def load_model(self, model_path):
pretrain_dict = torch.load(
model_path, map_location="cuda"
)
pretrain_dict = pretrain_dict['state_dict'] if 'state_dict' in pretrain_dict else pretrain_dict
model_dict = self.state_dict()
from collections import OrderedDict
new_dict = OrderedDict()
for k, v in pretrain_dict.items():
print(k)
if k.startswith("module"):
new_dict[k[7:]] = v
else:
new_dict[k] = v
model_dict.update(new_dict)
self.load_state_dict(model_dict)
print("All model has been loaded...")
def get_fc(self, model_path):
pretrain_dict = torch.load(
model_path, map_location="cuda"
)
pretrain_dict = pretrain_dict['state_dict'] if 'state_dict' in pretrain_dict else pretrain_dict
from collections import OrderedDict
new_dict = OrderedDict()
for k, v in pretrain_dict.items():
if k.startswith("module"):
new_dict[k[7:]] = v
else:
new_dict[k] = v
fc_weight_many = pretrain_dict['module.classifier_many.weight'].cpu().numpy()
fc_bias_many = pretrain_dict['module.classifier_many.bias'].cpu().numpy()
fc_weight_medium = pretrain_dict['module.classifier_medium.weight'].cpu().numpy()
fc_bias_medium = pretrain_dict['module.classifier_medium.bias'].cpu().numpy()
fc_weight_few = pretrain_dict['module.classifier_few.weight'].cpu().numpy()
fc_bias_few = pretrain_dict['module.classifier_few.bias'].cpu().numpy()
return [fc_weight_many, fc_weight_medium, fc_weight_few], [fc_bias_many, fc_bias_medium, fc_bias_few]
def get_feature_length(self):
if "cifar" in self.cfg.BACKBONE.TYPE:
num_features = 64
elif 'res10' in self.cfg.BACKBONE.TYPE:
num_features = 512
else:
num_features = 2048
return num_features
def _get_module(self):
module_type = self.cfg.MODULE.TYPE
if module_type == "GAP":
module = GAP()
elif module_type == "GMP":
module = GMP()
elif module_type == "Identity":
module= Identity()
elif module_type == "SEN":
module= SEN(c=64)
else:
raise NotImplementedError
return module
def _get_classifer(self):
bias_flag = self.cfg.CLASSIFIER.BIAS
num_features = self.get_feature_length()
if self.cfg.CLASSIFIER.TYPE == "FCNorm":
classifier = FCNorm(num_features, self.num_classes)
elif self.cfg.CLASSIFIER.TYPE == "FC":
classifier = nn.Linear(num_features, self.num_classes, bias=bias_flag)
elif self.cfg.CLASSIFIER.TYPE == "FCGroupNorm":
classifier = FCGroupNorm(num_features, self.num_classes, self.group)
else:
raise NotImplementedError
return classifier
def cam_params_reset(self):
self.classifier_weights = np.squeeze(list(self.classifier.parameters())[0].detach().cpu().numpy())
def get_CAM_with_groundtruth(self, image_idxs, dataset, size):
ret_cam = []
size_upsample = size
for i in range(len(image_idxs)):
idx = image_idxs[i]
label = dataset.label_list[idx]
self.eval()
with torch.no_grad():
img = dataset._get_trans_image(idx)
feature_conv = self.forward(img.to('cuda'), feature_maps_flag=True).detach().cpu().numpy()
b, c, h, w = feature_conv.shape
assert b == 1
feature_conv = feature_conv.reshape(c, h*w)
cam = self.classifier_weights[label].dot(feature_conv)
del img
del feature_conv
cam = cam.reshape(h, w)
cam = cam - np.min(cam)
cam_img = cam / np.max(cam)
cam_img = np.uint8(255*cam_img)
ret_cam.append(cv2.resize(cam_img, size_upsample))
return ret_cam
class Network_Group(nn.Module):
def __init__(self, cfg, mode="train", num_classes=1000):
super(Network_Group, self).__init__()
pretrain = (
True
if mode == "train"
and cfg.RESUME_MODEL == ""
and cfg.BACKBONE.PRETRAINED_MODEL != ""
else False
)
self.num_classes = num_classes
self.cfg = cfg
self.backbone = eval(self.cfg.BACKBONE.TYPE)(
self.cfg,
pretrain=pretrain,
pretrained_model=cfg.BACKBONE.PRETRAINED_MODEL,
last_layer_stride=2,
)
self.module = self._get_module()
#self.gate = self._get_gate()
#self.classifier_many,self.classifier_medium,self.classifier_few,self.classifier_all = self._get_classifer()
self.classifier_many, self.classifier_medium, self.classifier_few = self._get_classifer()
def forward(self, x, **kwargs):
if "feature_flag" in kwargs or "feature_cb" in kwargs or "feature_rb" in kwargs:
return self.extract_feature(x, **kwargs)
elif "classifier_flag" in kwargs:
x_few = self.classifier_few(x[0])
x_medium = self.classifier_medium(x[1])
x_many = self.classifier_many(x[2])
x = [x_many, x_medium, x_few]
return x
elif 'feature_maps_flag' in kwargs:
return self.extract_feature_maps(x)
elif 'layer' in kwargs and 'index' in kwargs:
if kwargs['layer'] in ['layer1', 'layer2', 'layer3']:
x = self.backbone.forward(x, index=kwargs['index'], layer=kwargs['layer'], coef=kwargs['coef'])
else:
x = self.backbone(x)
x = self.module(x)
if kwargs['layer'] == 'pool':
x = kwargs['coef']*x+(1-kwargs['coef'])*x[kwargs['index']]
#x_all = self.classifier_many(x[3])
x_many =self.classifier_many(x[2])
x_medium = self.classifier_medium(x[1])
x_few = self.classifier_few(x[0])
x = [x_many, x_medium, x_few]
if kwargs['layer'] == 'fc':
x = kwargs['coef']*x + (1-kwargs['coef'])*x[kwargs['index']]
return x
x = self.backbone(x)
x_out = []
for branch in x:
branch = self.module(branch)
branch = branch.view(branch.shape[0], -1)
x_out.append(branch)
x_few = self.classifier_few(x_out[0])
x_medium = self.classifier_medium(x_out[1])
x_many = self.classifier_many(x_out[2])
x = [x_many, x_medium, x_few]
return x
def get_backbone_layer_info(self):
if "cifar" in self.cfg.BACKBONE.TYPE:
layers = 3
blocks_info = [5, 5, 5]
elif 'res10' in self.cfg.BACKBONE.TYPE:
layers = 4
blocks_info = [1, 1, 1, 1]
elif 'res50' in self.cfg.BACKBONE.TYPE:
layers = 4
blocks_info = [3, 4, 6, 3]
else:
layers = 4
blocks_info = [3, 8, 36, 3]
return layers, blocks_info
def extract_feature(self, x, **kwargs):
x = self.backbone(x)
x_out = []
for branch in x:
branch = self.module(branch)
branch = branch.view(branch.shape[0], -1)
x_out.append(branch)
return x_out
def freeze_backbone(self):
print("Freezing backbone .......")
for p in self.backbone.parameters():
p.requires_grad = False
def load_backbone_model(self, backbone_path=""):
self.backbone.load_model(backbone_path)
print("Backbone model has been loaded...")
def load_model(self, model_path):
pretrain_dict = torch.load(
model_path, map_location="cuda"
)
pretrain_dict = pretrain_dict['state_dict'] if 'state_dict' in pretrain_dict else pretrain_dict
model_dict = self.state_dict()
from collections import OrderedDict
new_dict = OrderedDict()
for k, v in pretrain_dict.items():
print(k)
if k.startswith("module"):
new_dict[k[7:]] = v
else:
new_dict[k] = v
model_dict.update(new_dict)
self.load_state_dict(model_dict)
print("All model has been loaded...")
def get_fc(self, model_path):
pretrain_dict = torch.load(
model_path, map_location="cuda"
)
pretrain_dict = pretrain_dict['state_dict'] if 'state_dict' in pretrain_dict else pretrain_dict
from collections import OrderedDict
new_dict = OrderedDict()
for k, v in pretrain_dict.items():
print(k)
if k.startswith("module"):
new_dict[k[7:]] = v
else:
new_dict[k] = v
#fc_weight_all = pretrain_dict['module.classifier_all.weight'].cpu().numpy()
# fc_bias_all = pretrain_dict['module.classifier_all.bias'].cpu().numpy()
fc_weight_many = pretrain_dict['module.classifier_many.fc.weight'].cpu().numpy()
fc_bias_many = pretrain_dict['module.classifier_many.fc.bias'].cpu().numpy()
fc_scales_many = pretrain_dict['module.classifier_many.scales'].cpu().numpy()
fc_weight_medium = pretrain_dict['module.classifier_medium.fc.weight'].cpu().numpy()
fc_bias_medium = pretrain_dict['module.classifier_medium.fc.bias'].cpu().numpy()
fc_scales_medium = pretrain_dict['module.classifier_medium.scales'].cpu().numpy()
fc_weight_few = pretrain_dict['module.classifier_few.fc.weight'].cpu().numpy()
fc_bias_few = pretrain_dict['module.classifier_few.fc.bias'].cpu().numpy()
fc_scales_few = pretrain_dict['module.classifier_few.scales'].cpu().numpy()
return [fc_weight_many,fc_weight_medium,fc_weight_few ] ,[fc_bias_many,fc_bias_medium,fc_bias_few],[fc_scales_many,fc_scales_medium,fc_scales_few]#
def get_feature_length(self):
if "cifar" in self.cfg.BACKBONE.TYPE:
num_features = 64
elif 'res10' in self.cfg.BACKBONE.TYPE:
num_features = 512
else:
num_features = 2048
return num_features
def _get_module(self):
module_type = self.cfg.MODULE.TYPE
if module_type == "GAP":
module = GAP()
elif module_type == "Identity":
module= Identity()
elif module_type == "SEN":
module= SEN(c=64)
else:
raise NotImplementedError
return module
def _get_gate(self):
gate = nn.Linear(64, 3, bias=True)
return gate
def _get_classifer(self):
bias_flag = self.cfg.CLASSIFIER.BIAS
num_features = self.get_feature_length()
if self.cfg.CLASSIFIER.TYPE == "FCNorm":
classifier_many = FCNorm(num_features, self.num_classes)
classifier_medium = FCNorm(num_features, self.num_classes)
classifier_few = FCNorm(num_features, self.num_classes)
elif self.cfg.CLASSIFIER.TYPE == "FC":
classifier_many = nn.Linear(num_features, self.num_classes , bias=bias_flag)
classifier_medium = nn.Linear(num_features, self.num_classes, bias=bias_flag)
classifier_few = nn.Linear(num_features, self.num_classes, bias=bias_flag)
elif self.cfg.CLASSIFIER.TYPE == "LWS":
classifier_many = LWS(num_features, self.num_classes, bias=bias_flag)
classifier_medium = LWS(num_features, self.num_classes, bias=bias_flag)
classifier_few = LWS(num_features, self.num_classes, bias=bias_flag)
elif self.cfg.CLASSIFIER.TYPE == "LWS_bias":
classifier_many = LWS_bias(num_features, self.num_classes, bias=bias_flag)
classifier_medium = LWS_bias(num_features, self.num_classes, bias=bias_flag)
classifier_few = LWS_bias(num_features, self.num_classes, bias=bias_flag)
else:
raise NotImplementedError
#return classifier_many, classifier_medium, classifier_few, classifier_all
return classifier_many, classifier_medium, classifier_few
def _get_branch(self):
num_features = self.get_feature_length()
branch_many = SubGroup(num_features)
branch_medium = SubGroup(num_features)
branch_few = SubGroup(num_features)
return branch_many, branch_medium, branch_few
def cam_params_reset(self):
self.classifier_weights = np.squeeze(list(self.classifier.parameters())[0].detach().cpu().numpy())
class SubGroup(nn.Module):
def __init__(self,num_features):
super(SubGroup, self).__init__()
self.feat1 = nn.Conv1d(in_channels=num_features, out_channels=num_features, kernel_size=1)
self.feat2 = nn.Conv1d(in_channels=num_features, out_channels=num_features, kernel_size=1)
self.feat3 = nn.Conv1d(in_channels=num_features, out_channels=num_features, kernel_size=1)
#self.init_weights(self.feat1)
#self.init_weights(self.feat2)
#self.init_weights(self.feat3)
def init_weights(self, m):
torch.nn.init.xavier_uniform(m.weight)
m.bias.data.fill_(0.01)
def forward(self, x):
x = self.feat1(x)
x = self.feat2(x)
x = self.feat3(x)
return x | 39.246544 | 156 | 0.585804 | 2,107 | 17,033 | 4.495491 | 0.090176 | 0.051943 | 0.028505 | 0.050253 | 0.841216 | 0.822424 | 0.779455 | 0.744405 | 0.709776 | 0.699958 | 0 | 0.013409 | 0.303822 | 17,033 | 434 | 157 | 39.246544 | 0.785377 | 0.028944 | 0 | 0.684783 | 0 | 0 | 0.073434 | 0.027709 | 0 | 0 | 0 | 0 | 0.002717 | 1 | 0.086957 | false | 0 | 0.032609 | 0 | 0.203804 | 0.024457 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
5189bcfb2556bbd140fdfe9eee1a92dc7b700fc4 | 227 | py | Python | source/views/__init__.py | JoshMayberry/ME342Final | 8c253b82f7f94f180bf714b451c95c5158ab3779 | [
"MIT"
] | null | null | null | source/views/__init__.py | JoshMayberry/ME342Final | 8c253b82f7f94f180bf714b451c95c5158ab3779 | [
"MIT"
] | null | null | null | source/views/__init__.py | JoshMayberry/ME342Final | 8c253b82f7f94f180bf714b451c95c5158ab3779 | [
"MIT"
] | null | null | null | from .frmSubject import Frm_Subject
from .frmThermoInput import Frm_ThermoInput
from .frmThermoSetup import Frm_ThermoSetup
from .frmUnitConverter import Frm_UnitConverter
from .frmThermoTableLookup import Frm_ThermoTableLookup | 45.4 | 55 | 0.894273 | 25 | 227 | 7.92 | 0.52 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0837 | 227 | 5 | 55 | 45.4 | 0.951923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
519366e838fe22f5ee496c0ee4f1f5ce1adebc12 | 49 | py | Python | constants/test_mode.py | daniyalahmad358/Wordy | e957e742327010ce3ca133c9e1d1557b673e6d8f | [
"Unlicense"
] | null | null | null | constants/test_mode.py | daniyalahmad358/Wordy | e957e742327010ce3ca133c9e1d1557b673e6d8f | [
"Unlicense"
] | null | null | null | constants/test_mode.py | daniyalahmad358/Wordy | e957e742327010ce3ca133c9e1d1557b673e6d8f | [
"Unlicense"
] | null | null | null | # IS_IN_TEST_MODE = True
IS_IN_TEST_MODE = False
| 16.333333 | 24 | 0.795918 | 10 | 49 | 3.3 | 0.6 | 0.242424 | 0.484848 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 49 | 2 | 25 | 24.5 | 0.785714 | 0.44898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5196d89cdf1a65728d3882d22f98f9664477af00 | 192 | py | Python | RecoJets/JetProducers/python/CaloTowerSchemeBWithHO_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoJets/JetProducers/python/CaloTowerSchemeBWithHO_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoJets/JetProducers/python/CaloTowerSchemeBWithHO_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
import RecoJets.JetProducers.CaloTowerSchemeB_cfi
towerMakerWithHO = RecoJets.JetProducers.CaloTowerSchemeB_cfi.towerMaker.clone(
UseHO = True
)
| 24 | 79 | 0.838542 | 20 | 192 | 7.95 | 0.75 | 0.251572 | 0.45283 | 0.490566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098958 | 192 | 7 | 80 | 27.428571 | 0.919075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
51b7e678eef778d4c42c4984b908573eda3a7ab2 | 24 | py | Python | yadda/vendor/pyinotify/__init__.py | njvack/yadda | cc080e4d1242d3183ba4b5363387835b711b5af8 | [
"MIT"
] | 2 | 2019-04-15T19:42:59.000Z | 2020-05-07T12:18:42.000Z | yadda/vendor/pyinotify/__init__.py | njvack/yadda | cc080e4d1242d3183ba4b5363387835b711b5af8 | [
"MIT"
] | null | null | null | yadda/vendor/pyinotify/__init__.py | njvack/yadda | cc080e4d1242d3183ba4b5363387835b711b5af8 | [
"MIT"
] | null | null | null | from pyinotify import *
| 12 | 23 | 0.791667 | 3 | 24 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
51d0e458b93f09b33e28c57acaea21c3e45fc8ca | 5,355 | py | Python | doctors/tests.py | shebetov/docchain | 109f72200a72547ed85ea8f01e8c8b96f70522ec | [
"MIT"
] | null | null | null | doctors/tests.py | shebetov/docchain | 109f72200a72547ed85ea8f01e8c8b96f70522ec | [
"MIT"
] | null | null | null | doctors/tests.py | shebetov/docchain | 109f72200a72547ed85ea8f01e8c8b96f70522ec | [
"MIT"
] | null | null | null | from django.test import TestCase, Client
from .models import Doctor, Review
from datetime import datetime
from json import loads
class LivesearchAPI(TestCase):
def setUp(self):
Doctor.objects.create(name="Иван", second_name='Хартман', third_name='Алексеев', birth_date=datetime.now(), phone='+375291234567')
Doctor.objects.create(name="Алексей", second_name='Прокофьев', third_name='Максимович', birth_date=datetime.now(), phone='+375291234567')
Doctor.objects.create(name="Иван", second_name='Гордон', third_name='Сергеевич', birth_date=datetime.now(), phone='+375291234567')
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
def test_normal_request_second_name(self):
r = self.c.get('/doctors/api/livesearch', {'q': 'Хар'})
data = loads(r.content)
self.assertEqual(1, len(data))
self.assertEqual(Doctor.objects.get(second_name='Хартман').id, data[0]['id'])
def test_normal_request_name(self):
r = self.c.get('/doctors/api/livesearch', {'q': 'Иван'})
data = loads(r.content)
self.assertEqual(2, len(data))
self.assertEqual(Doctor.objects.get(second_name='Хартман').id, data[0]['id'])
self.assertEqual(Doctor.objects.get(second_name='Гордон').id, data[1]['id'])
def test_normal_request_name_plus_second_name_letter(self):
r = self.c.get('/doctors/api/livesearch', {'q': 'Иван Г'})
data = loads(r.content)
self.assertEqual(1, len(data))
self.assertEqual(Doctor.objects.get(second_name='Гордон').id, data[0]['id'])
def test_normal_request_one_letter(self):
r = self.c.get('/doctors/api/livesearch', {'q': 'а'})
data = loads(r.content)
self.assertEqual(3, len(data))
self.assertEqual(Doctor.objects.get(second_name='Хартман').id, data[0]['id'])
self.assertEqual(Doctor.objects.get(second_name='Прокофьев').id, data[1]['id'])
self.assertEqual(Doctor.objects.get(second_name='Гордон').id, data[2]['id'])
def test_english_letters_plus_unused_parameter(self):
r = self.c.get('/doctors/api/livesearch', {'q': 'XY', 'foo': 'bar'})
data = loads(r.content)
self.assertEqual(0, len(data))
def test_no_parameters(self):
r = self.c.get('/doctors/api/livesearch')
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Missing or invalid parameter')
class GetAppointmentDateInfoAPI(TestCase):
def setUp(self):
Doctor.objects.create(name="Иван", second_name='Хартман', third_name='Алексеев', birth_date=datetime.now(), phone='+375291234567')
Doctor.objects.create(name="Алексей", second_name='Прокофьев', third_name='Максимович', birth_date=datetime.now(), phone='+375291234567')
Doctor.objects.create(name="Иван", second_name='Гордон', third_name='Сергеевич', birth_date=datetime.now(), phone='+375291234567')
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
def test_normal_request(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'doc_id': 1, 'date': '15 may, 2018'})
data = loads(r.content)
self.assertNotIn('error', data)
self.assertTrue((all([v for k, v in data.items()])))
def test_no_date_parameter(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'doc_id': 2})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Missing or invalid date parameter')
def test_invalid_date_parameter(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'doc_id': 2})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Missing or invalid date parameter')
def test_no_doc_id_parameter(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'date': '15 may, 2018'})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Missing or invalid doc_id parameter')
def test_invalid_doc_id_parameter(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'doc_id': 'kkk', 'date': '15 may, 2018'})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Missing or invalid doc_id parameter')
def test_non_existent_doc_id(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.get('/doctors/api/get_appointment_date_info', {'doc_id': 5, 'date': '15 may, 2018'})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'Doctor not found')
def test_post_request(self):
self.c = Client(HTTP_USER_AGENT='Mozilla/5.0')
r = self.c.post('/doctors/api/get_appointment_date_info', {'doc_id': 5, 'date': '15 may, 2018'})
data = loads(r.content)
self.assertIn('error', data)
self.assertEqual(data['error'], 'get_appointment_date_info accepts only GET requests')
| 42.165354 | 145 | 0.656209 | 731 | 5,355 | 4.640219 | 0.139535 | 0.032429 | 0.022995 | 0.065153 | 0.864092 | 0.864092 | 0.828125 | 0.828125 | 0.805719 | 0.785672 | 0 | 0.031207 | 0.180205 | 5,355 | 126 | 146 | 42.5 | 0.741458 | 0 | 0 | 0.533333 | 0 | 0 | 0.228427 | 0.080127 | 0 | 0 | 0 | 0 | 0.311111 | 1 | 0.166667 | false | 0 | 0.044444 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
51dd350f617e39852ae64a8611a9af733e17bba2 | 21 | py | Python | proxy_apps/framework/rdu/__init__.py | pnnl/ProxyTSPRD | 6e60c65768d9ff124802a66526be0923665f0e17 | [
"BSD-3-Clause"
] | null | null | null | proxy_apps/framework/rdu/__init__.py | pnnl/ProxyTSPRD | 6e60c65768d9ff124802a66526be0923665f0e17 | [
"BSD-3-Clause"
] | 2 | 2021-11-19T22:08:16.000Z | 2021-11-20T18:15:23.000Z | proxy_apps/framework/rdu/__init__.py | pnnl/ProxyTSPRD | 6e60c65768d9ff124802a66526be0923665f0e17 | [
"BSD-3-Clause"
] | null | null | null | from .main import RDU | 21 | 21 | 0.809524 | 4 | 21 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
cfbf36015cd820b61df04ce2c51ced7ccf7edf91 | 34 | py | Python | Tests/Tree/__init__.py | Jh123x/Wordle-Solver | 411ea3bc944e4c9caaddccec1b4b26e113ff2134 | [
"MIT"
] | null | null | null | Tests/Tree/__init__.py | Jh123x/Wordle-Solver | 411ea3bc944e4c9caaddccec1b4b26e113ff2134 | [
"MIT"
] | null | null | null | Tests/Tree/__init__.py | Jh123x/Wordle-Solver | 411ea3bc944e4c9caaddccec1b4b26e113ff2134 | [
"MIT"
] | null | null | null | from .WordTree import WordTreeTest | 34 | 34 | 0.882353 | 4 | 34 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 1 | 34 | 34 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
cfcc14b0dce31758889e12c930b5506005ce313c | 315 | py | Python | hubspot/crm/deals/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 117 | 2020-04-06T08:22:53.000Z | 2022-03-18T03:41:29.000Z | hubspot/crm/deals/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 62 | 2020-04-06T16:21:06.000Z | 2022-03-17T16:50:44.000Z | hubspot/crm/deals/api/__init__.py | fakepop/hubspot-api-python | f04103a09f93f5c26c99991b25fa76801074f3d3 | [
"Apache-2.0"
] | 45 | 2020-04-06T16:13:52.000Z | 2022-03-30T21:33:17.000Z | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from hubspot.crm.deals.api.associations_api import AssociationsApi
from hubspot.crm.deals.api.basic_api import BasicApi
from hubspot.crm.deals.api.batch_api import BatchApi
from hubspot.crm.deals.api.search_api import SearchApi
| 31.5 | 66 | 0.84127 | 48 | 315 | 5.333333 | 0.4375 | 0.171875 | 0.21875 | 0.296875 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003521 | 0.098413 | 315 | 9 | 67 | 35 | 0.897887 | 0.130159 | 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 | 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 | 1 | 0 | 0 | 6 |
cff31a826b156d3abf43afe0c2f6f52c02988573 | 77 | py | Python | calculus/__init__.py | georgercarder/calculus | 13b729aefe383a5156defc4b55f3748afa8ba427 | [
"MIT"
] | null | null | null | calculus/__init__.py | georgercarder/calculus | 13b729aefe383a5156defc4b55f3748afa8ba427 | [
"MIT"
] | null | null | null | calculus/__init__.py | georgercarder/calculus | 13b729aefe383a5156defc4b55f3748afa8ba427 | [
"MIT"
] | null | null | null | from .polynomial_1 import finitesum
from .polynomial_2 import finiteproduct
| 25.666667 | 39 | 0.857143 | 10 | 77 | 6.4 | 0.7 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.116883 | 77 | 2 | 40 | 38.5 | 0.911765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
5c8e65360b70b81bef53968a6f9d2242923e4a06 | 86 | py | Python | japonicus/__init__.py | mczero80/japonicus | d183f24a7e1d0e52052f4c6e5e82604d9e7700d3 | [
"MIT"
] | 229 | 2018-01-05T13:32:52.000Z | 2021-12-18T00:57:49.000Z | japonicus/__init__.py | mczero80/japonicus | d183f24a7e1d0e52052f4c6e5e82604d9e7700d3 | [
"MIT"
] | 142 | 2018-01-04T23:39:28.000Z | 2019-12-14T16:38:24.000Z | japonicus/__init__.py | mczero80/japonicus | d183f24a7e1d0e52052f4c6e5e82604d9e7700d3 | [
"MIT"
] | 95 | 2018-01-06T05:35:23.000Z | 2021-12-13T16:42:22.000Z | #!/bin/python
from .japonicus import *
from . import options
from . import interface
| 14.333333 | 24 | 0.744186 | 11 | 86 | 5.818182 | 0.636364 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 86 | 5 | 25 | 17.2 | 0.888889 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
5c96ab1b607e722366c96c0dc29110392d52cacf | 129 | py | Python | jskparser/ast/comments/__init__.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 15 | 2015-12-15T18:33:50.000Z | 2021-09-29T11:48:54.000Z | jskparser/ast/comments/__init__.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 11 | 2015-11-16T22:14:58.000Z | 2021-09-23T05:28:40.000Z | jskparser/ast/comments/__init__.py | natebragg/java-sketch | f5ac26f2cc46ae4556f9a61c55afd37f55c961ff | [
"MIT"
] | 8 | 2015-11-16T21:50:08.000Z | 2021-03-23T15:15:34.000Z | def _import():
from .javadoccomment import JavadocComment
from ..expr.nameexpr import NameExpr
return locals()
| 18.428571 | 46 | 0.697674 | 13 | 129 | 6.846154 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 129 | 6 | 47 | 21.5 | 0.89899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.75 | 0 | 1.25 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
5caee7a78c99e1fc4632a1a61522c7f4811b8ff7 | 950 | py | Python | combine/scores.py | siddancha/FlowVerify | a1b80e7c47a23479b91e87fd12b09b59a346c464 | [
"MIT"
] | 1 | 2020-07-09T14:33:41.000Z | 2020-07-09T14:33:41.000Z | combine/scores.py | siddancha/FlowVerify | a1b80e7c47a23479b91e87fd12b09b59a346c464 | [
"MIT"
] | null | null | null | combine/scores.py | siddancha/FlowVerify | a1b80e7c47a23479b91e87fd12b09b59a346c464 | [
"MIT"
] | null | null | null | import numpy as np
class Scorer:
def __init__(self, list_score_names):
self.score_name = 'score'
self.list_score_names = list_score_names
self.params = None
def num_scores(self):
return len(self.list_score_names)
def get_full_score_name(self):
return '_'.join([self.score_name] + self.list_score_names)
def score(self, list_score):
pass
class HardAND(Scorer):
def __init__(self, list_score_names):
super(HardAND, self).__init__(list_score_names)
self.score_name = 'HardAND'
def score(self, list_score, params):
return float(np.prod(list_score > params))
class SoftAND(Scorer):
def __init__(self, list_score_names):
super(SoftAND, self).__init__(list_score_names)
self.score_name = 'SoftAND'
def score(self, list_score, params):
exponent = np.exp(params)
return np.prod(np.array(list_score) ** exponent)
| 25.675676 | 66 | 0.667368 | 128 | 950 | 4.546875 | 0.242188 | 0.216495 | 0.201031 | 0.185567 | 0.515464 | 0.412371 | 0.297251 | 0.243986 | 0 | 0 | 0 | 0 | 0.229474 | 950 | 36 | 67 | 26.388889 | 0.795082 | 0 | 0 | 0.2 | 0 | 0 | 0.021053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.32 | false | 0.04 | 0.04 | 0.12 | 0.64 | 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 | 1 | 1 | 0 | 0 | 6 |
5cb34964d06f16df053931cb2398ee85c8441eab | 37 | py | Python | gym-snape/gym_snape/game/__init__.py | jasonjewik/snape | 678361468c07bee78ad7e77522dedb10c02e6f18 | [
"MIT"
] | 8 | 2022-01-03T19:01:09.000Z | 2022-03-13T17:17:49.000Z | gym-snape/gym_snape/game/__init__.py | jasonjewik/snape | 678361468c07bee78ad7e77522dedb10c02e6f18 | [
"MIT"
] | 3 | 2022-01-17T06:41:56.000Z | 2022-01-19T19:52:11.000Z | gym-snape/gym_snape/game/__init__.py | jasonjewik/snape | 678361468c07bee78ad7e77522dedb10c02e6f18 | [
"MIT"
] | 1 | 2022-02-25T08:40:00.000Z | 2022-02-25T08:40:00.000Z | from gym_snape.game.game import Game
| 18.5 | 36 | 0.837838 | 7 | 37 | 4.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 37 | 1 | 37 | 37 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
5cd234edd5c46495c11ab7cb0003521bcdfcc26c | 121 | py | Python | miscellaneous/a_00_package_init_py_example/test_packages/module_with_init/__init__.py | BigMountainTiger/python-excercise-repository | 52a240faa66742ac160c9858ec4bf6a0b51aa248 | [
"MIT"
] | null | null | null | miscellaneous/a_00_package_init_py_example/test_packages/module_with_init/__init__.py | BigMountainTiger/python-excercise-repository | 52a240faa66742ac160c9858ec4bf6a0b51aa248 | [
"MIT"
] | 1 | 2022-03-12T01:02:10.000Z | 2022-03-12T01:02:10.000Z | miscellaneous/a_00_package_init_py_example/test_packages/module_with_init/__init__.py | BigMountainTiger/python-excercise-repository | 52a240faa66742ac160c9858ec4bf6a0b51aa248 | [
"MIT"
] | null | null | null | from module_with_init.sub_1 import module
def PrintFromTop():
print('The function is defined in the __init__.py file') | 30.25 | 58 | 0.793388 | 20 | 121 | 4.45 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.132231 | 121 | 4 | 58 | 30.25 | 0.838095 | 0 | 0 | 0 | 0 | 0 | 0.385246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5cd31589029ee657755d73b7771ad8855cfbcbdd | 779 | py | Python | test_str_add.py | PrimeNumbers/primes_search | 11ebc8591a0643913af3aee699ceeb3668bd49df | [
"MIT"
] | 1 | 2020-07-17T03:35:05.000Z | 2020-07-17T03:35:05.000Z | test_str_add.py | PrimeNumbers/primes_search | 11ebc8591a0643913af3aee699ceeb3668bd49df | [
"MIT"
] | 1 | 2020-07-16T19:50:05.000Z | 2020-07-16T19:52:40.000Z | test_str_add.py | PrimeNumbers/primes_research | 11ebc8591a0643913af3aee699ceeb3668bd49df | [
"MIT"
] | null | null | null | import unittest
from str_add import add
class TestAddingStrings(unittest.TestCase):
def test_obvious_small(self):
self.assertEqual(add('12345','54321'), '66666')
self.assertEqual(add('123456','654321'), '777777')
self.assertEqual(add('0','7'), '7')
self.assertEqual(add('0','0'), '0')
self.assertEqual(add('1234','0'), '1234')
self.assertEqual(add('1002','3'), '1005')
self.assertEqual(add('5002','1000'), '6002')
self.assertEqual(add('999','999'), '1998')
def test_edge(self):
#large digit test
self.assertEqual(add('99999999999999999999999999999','9999999999999999999999999999999999'), '10000099999999999999999999999999998')
pass
if __name__ == '__main__':
unittest.main()
| 33.869565 | 138 | 0.641849 | 83 | 779 | 5.879518 | 0.493976 | 0.276639 | 0.331967 | 0.077869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278302 | 0.183569 | 779 | 22 | 139 | 35.409091 | 0.488994 | 0.020539 | 0 | 0 | 0 | 0 | 0.242782 | 0.128609 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0.117647 | false | 0.058824 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
5cd8875e9b82a7f415e3875d0abe9db653b8f4d1 | 25,336 | py | Python | test_aladding_1024.py | VinACE/trans-vsumm | d3b03fbe09f6d38b9a59ad9b8ceaa732c4f7340a | [
"MIT"
] | 2 | 2020-08-21T06:29:18.000Z | 2020-09-27T00:40:31.000Z | test_aladding_1024.py | VinACE/trans-vsumm | d3b03fbe09f6d38b9a59ad9b8ceaa732c4f7340a | [
"MIT"
] | null | null | null | test_aladding_1024.py | VinACE/trans-vsumm | d3b03fbe09f6d38b9a59ad9b8ceaa732c4f7340a | [
"MIT"
] | 1 | 2021-04-10T11:50:12.000Z | 2021-04-10T11:50:12.000Z | """
# TODO Multihead implementation https://github.com/dreamgonfly/Transformer-pytorch/blob/master/models.py
https://www.youtube.com/watch?v=U0s0f995w14 Pytorch Transformers from Scratch (Attention is all you need)
"""
import torch
import torch.nn as nn
class SelfAttention(nn.Module):
def __init__(self, embed_size, heads ): # heads=8
super(SelfAttention, self).__init__()
self.embed_size = embed_size
self.heads = heads
self.head_dim = embed_size // heads
assert (self.head_dim * heads == embed_size), "Embed size needs to be divisible by head size"
self.values = nn.Linear(self.head_dim, self.head_dim, bias=False)
self.keys = nn.Linear(self.head_dim, self.head_dim, bias=False)
self.queries = nn.Linear(self.head_dim, self.head_dim, bias=False)
self.fc_out = nn.Linear(heads * self.head_dim, embed_size)
def forward(self, values, keys, query, mask):
N = query.shape[0]
value_len, key_len, query_len = values.shape[1], keys.shape[1], query.shape[1]
# split embedding into self. head pieces
values = values.reshape(N, value_len, self.heads, self.head_dim)
keys = keys.reshape(N, key_len, self.heads, self.head_dim)
queries = query.reshape(N, query_len, self.heads, self.head_dim)
values = self.values(values)
keys = self.keys(keys)
queries = self.queries(queries)
energy = torch.einsum("nqhd,nkhd->nhqk", [queries, keys])
# queries shape : (N, query_len, heads, heads_dim)
# keyshape shape : (N, key_len, heads, heads_dim)
# energy shape : (N, heads, query_len, key_len)
if mask is not None:
energy = energy.masked_fill(mask == 0, float("-1e20")) # for numerical stability
attention = torch.softmax(energy / (self.embed_size ** (1/2)), dim=3) # Attention(Q,K,V) = sofmax(QK^{T}/(d_{k})**(1/2)) * V
out = torch.einsum("nhql,nlhd->nqhd", [attention, values]).reshape(
N, query_len, self.heads * self.head_dim
)
# Attention shape: (N, heads, query_len, key_len)
# value shape: (N, Value_len, heads, heads_dim) key length and the value lenth are alwasy going to be the same.
# after einsum (N, query_len, heads, head_dim) flatten last two dimension..
out = self.fc_out(out)
return out
class TransformerBlock(nn.Module):
def __init__(self, embed_size, heads, dropout, forward_expansion):
super(TransformerBlock, self).__init__()
self.attention = SelfAttention(embed_size, heads)
self.norm1 = nn.LayerNorm(embed_size)
self.norm2 = nn.LayerNorm(embed_size)
self.feed_forward = nn.Sequential(
nn.Linear(embed_size, forward_expansion*embed_size),
nn.ReLU(),
nn.Linear(forward_expansion*embed_size, embed_size)
)
self.dropout = nn.Dropout(dropout)
def forward(self, value, key, query, mask):
attention = self.attention(value, key, query, mask)
x = self.dropout(self.norm1(attention + query))
forward = self.feed_forward(x)
out = self.dropout(self.norm2(forward + x))
return out
class Encoder(nn.Module):
def __init__(
self,
src_vocab_size,
embed_size,
num_layers,
heads,
device,
forward_expansion,
dropout,
max_length
):
super(Encoder, self).__init__()
self.embed_size = embed_size
self.device = device
self.word_embedding = nn.Embedding(src_vocab_size, embed_size)
self.position_embedding = nn.Embedding(max_length, embed_size)
self.layers = nn.ModuleList(
[
TransformerBlock(
embed_size,
heads,
dropout=dropout,
forward_expansion = forward_expansion
)
for _ in range(num_layers)]
)
self.dropout = nn.Dropout(dropout)
def forward(self, x, mask):
N, seq_length = x.shape
positions = torch.arange(0, seq_length).expand(N, seq_length).to(self.device)
out = self.dropout(self.word_embedding(x) + self.position_embedding(positions)) ## Need to understand what is positions..
for layers in self.layers:
out = layers(out, out, out, mask)
return out # should we return the weights in Encoder.. or is it ok only to return on the Decoder part...
class DecoderBlock(nn.Module):
def __init__(self, embed_size, heads, forward_expansion, dropout, device):
super(DecoderBlock, self).__init__()
self.attention = SelfAttention(embed_size, heads)
self.norm = nn.LayerNorm(embed_size)
self.transformer_block = TransformerBlock(
embed_size, heads, dropout, forward_expansion
)
self.dropout = nn.Dropout(dropout)
def forward(self, x, value, key, src_mask, trg_mask): # x & V & K are comming in from the encoder..
attention = self.attention(x, x, x, trg_mask) # ENC (n x m) => (n x H)
query = self.dropout(self.norm(attention + x))
out = self.transformer_block(value, key, query, src_mask)
return out
class Decoder(nn.Module):
def __init__(
self,
trg_vocab_size,
embed_size,
num_layers,
heads,
forward_expansion,
dropout,
device,
max_length,
):
super(Decoder, self).__init__()
self.device = device
self.word_embedding = nn.Embedding(trg_vocab_size, embed_size)
self.position_embedding = nn.Embedding(max_length, embed_size)
self.layers = nn.ModuleList(
[DecoderBlock(embed_size, heads, forward_expansion, dropout, device)
for _ in range(num_layers)]
)
self.fc_out = nn.Linear(embed_size, trg_vocab_size)
self.dropout = nn.Dropout(dropout)
def forward(self, x, enc_out, src_mask, trg_mask):
N, seq_length = x.shape
positions = torch.arange(0, seq_length).expand(N, seq_length).to(self.device)
x = self.dropout((self.word_embedding(x) + self.position_embedding(positions)))
for layer in self.layers:
x = layer(x, enc_out, enc_out, src_mask, trg_mask)
out = self.fc_out(x)
return out
class Transformer(nn.Module):
def __init__(
self,
src_vocab_size,
trg_vocab_size,
src_pad_idx,
trg_pad_idx,
embed_size=256,
num_layers=6,
forward_expansion=4,
heads=8,
dropout=0,
device="cuda",
max_length=1024
):
super(Transformer, self).__init__()
self.encoder = Encoder(
src_vocab_size,
embed_size,
num_layers,
heads,
device,
forward_expansion,
dropout,
max_length
)
self.decoder = Decoder(
trg_vocab_size,
embed_size,
num_layers,
heads,
forward_expansion,
dropout,
device,
max_length
)
self.src_pad_idx = src_pad_idx
self.trg_pad_idx = trg_pad_idx
self.device = device
def make_src_mask(self, src):
src_mask = (src != self.src_pad_idx).unsqueeze(1).unsqueeze(2)
# (N, 1, 1, src_len)
return src_mask.to(self.device)
def make_trg_mask(self, trg):
N, trg_len = trg.shape
trg_mask = torch.tril(torch.ones(trg_len, trg_len)).expand(
N, 1, trg_len, trg_len
)
return trg_mask.to(self.device)
def forward(self, src, trg):
src_mask = self.make_src_mask(src)
trg_mask = self.make_trg_mask(trg)
enc_src = self.encoder(src, src_mask)
out = self.decoder(trg, enc_src, src_mask, trg_mask)
return out
if __name__ == "__main__":
# import pdb;pdb.set_trace()
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
x = torch.tensor([[1, 5, 6, 4, 3, 9, 5, 2, 0], [1, 8, 7, 3, 4, 5, 6, 7, 2]]).to(
device
)
trg = torch.tensor([[1, 7, 4, 3, 5, 9, 2, 0], [1, 5, 6, 2, 4, 7, 6, 2]]).to(device)
# x = torch.tensor([[0.1,0.8,0.8,0.4,0.9,0.4,0.4,0.5,0.4,0.2,0.3,0.8,0.2,0.7,0.6,0.1,0.2,0.1,0.1,0.4,0.2,0.1,0.0,0.5,0.2,0.4,0.3,0.3,0.7,0.1,0.4,0.6,0.5,1.0,0.1,0.8,0.9,0.0,0.2,0.9,0.8,0.0,0.9,0.7,0.2,0.2,0.9,0.6,0.1,0.2,0.6,0.0,0.1,0.1,0.3,0.5,0.8,0.8,0.4,0.4,0.7,0.7,0.4,0.2,0.1,1.0,0.3,0.8,0.1,0.7,0.7,0.9,0.6,0.3,0.8,0.2,0.9,0.6,0.7,0.8,0.2,0.1,1.0,0.6,0.5,0.5,0.5,0.8,0.8,0.3,0.1,0.2,0.5,0.9,0.6,0.8,0.0,0.6,0.2,0.1,0.8,0.4,0.8,0.5,0.8,0.4,0.7,0.6,0.8,0.1,0.4,0.8,1.0,0.9,0.4,0.4,0.4,0.1,0.7,0.3,0.8,0.6,0.4,0.5,0.9,0.1,0.9,0.7,0.4,0.7,0.1,0.8,0.2,0.2,0.7,0.2,0.9,0.6,0.2,0.9,0.1,0.9,0.2,1.0,0.9,0.6,0.3,0.6,0.9,0.6,0.0,0.3,0.4,0.6,0.7,0.9,0.2,0.6,0.2,0.5,0.3,0.3,0.4,0.4,0.1,0.2,0.6,0.0,0.7,0.5,0.5,0.2,0.5,0.6,0.5,0.5,0.7,0.8,0.4,0.5,0.8,0.8,0.1,0.5,0.7,0.8,0.1,0.1,0.8,0.6,0.6,0.4,1.0,0.4,0.6,0.9,0.1,0.6,0.3,1.0,0.7,0.2,0.5,0.5,1.0,0.5,0.4,0.3,0.7,0.1,1.0,0.9,0.4,0.6,0.6,0.6,0.2,0.0,0.9,0.9,0.2,0.1,0.5,0.5,0.8,0.7,0.8,0.0,0.0,0.1,0.5,0.5,0.5,0.8,0.1,0.5,1.0,0.3,0.2,0.8,0.9,0.4,0.4,0.9,0.2,0.4,0.9,0.9,0.3,0.7,0.4,0.9,0.5,0.7,0.8,0.5,0.5,0.5,0.8,0.7,0.9,0.2,0.8,1.0,0.1,0.9,0.6,0.5,0.0,0.2,0.8,0.2,0.8,0.5,0.9,0.9,0.5,0.6,0.1,0.8,1.0,0.3,0.1,0.5,0.9,0.1,0.0,0.5,0.3,0.1,0.5,0.8,0.3,0.4,0.4,0.3,0.2,0.8,0.7,0.6,0.3,0.5,0.1,0.7,0.4,0.2,0.1,0.1,0.4,0.2,0.8,0.8,0.4,0.1,0.0,0.3,0.2,0.0,1.0,0.2,0.6,0.5,0.7,0.7,0.7,0.1,0.2,0.1,0.1,0.9,0.6,0.5,1.0,0.4,0.4,0.8,0.7,0.5,0.6,0.9,0.0,0.8,0.3,0.1,0.5,0.9,0.9,0.9,0.7,0.7,1.0,0.6,0.6,1.0,0.8,1.0,0.4,0.3,0.2,1.0,0.9,0.2,0.7,0.1,0.3,0.1,0.1,0.7,0.6,0.8,0.8,0.7,0.7,0.4,0.8,0.4,0.1,0.0,1.0,0.2,0.6,0.8,0.3,0.9,0.3,0.6,0.6,0.4,0.7,0.0,0.2,0.9,0.2,0.1,0.4,0.9,0.5,0.2,0.4,1.0,0.1,0.3,0.8,0.8,0.2,0.2,0.6,0.8,0.1,0.0,0.5,1.0,0.5,0.7,0.3,0.5,0.0,0.2,0.6,0.7,0.6,0.4,0.2,0.0,0.4,0.4,0.0,0.3,0.3,0.8,0.5,0.7,0.4,0.1,0.8,0.4,0.1,0.3,1.0,0.3,0.6,0.5,0.6,0.2,0.9,0.4,0.4,0.8,0.0,0.3,0.8,0.3,0.1,0.0,0.5,0.5,0.8,0.6,1.0,0.7,0.8,0.7,0.7,0.6,0.0,0.6,0.6,0.3,0.7,0.2,1.0,0.6,0.4,0.8,0.4,0.7,0.3,0.8,0.8,0.1,0.1,0.2,0.2,0.7,0.1,0.8,0.4,1.0,0.6,1.0,0.3,0.9,0.9,0.9,0.9,1.0,0.2,0.3,0.9,0.5,0.5,0.4,0.1,0.4,0.0,0.7,0.2,0.6,0.8,0.2,0.8,0.2,0.6,0.9,0.1,0.3,0.4,0.2,0.9,0.3,0.9,0.1,0.1,0.7,1.0,0.4,0.2,0.9,0.2,0.5,0.1,0.3,0.6,0.5,0.6,0.5,0.3,0.4,0.3,0.9,0.7,0.1,0.2,0.8,1.0,0.5,0.0,0.8,0.2,0.2,0.0,1.0,0.2,1.0,0.5,1.0,0.9,0.5,0.2,0.5,0.8,0.4,0.9,0.9,0.2,0.5,0.5,0.2,0.6,0.3,0.3,0.8,0.3,0.5,0.4,0.2,0.7,0.8,0.9,0.2,0.9,0.6,0.0,0.3,0.8,0.5,0.3,0.9,0.9,0.7,0.4,0.9,0.3,0.7,0.4,0.3,0.5,0.8,0.9,0.7,0.6,0.5,0.1,0.9,0.6,0.5,0.2,0.7,0.3,0.3,0.1,0.0,0.2,0.5,0.9,0.7,0.3,0.3,1.0,0.3,0.6,0.9,0.1,0.9,0.3,0.7,0.1,0.7,0.6,0.6,0.5,0.1,0.1,0.3,0.5,0.7,0.1,0.7,0.4,0.8,0.4,0.6,0.8,0.7,0.6,0.0,0.1,0.3,0.8,0.2,0.5,0.7,0.0,0.4,1.0,0.2,0.2,0.4,0.3,0.9,0.2,0.4,0.3,0.4,0.2,0.5,0.6,0.6,0.8,0.7,0.3,0.1,0.7,0.5,0.1,0.4,1.0,0.2,0.8,0.5,0.7,0.3,0.7,0.6,0.7,0.5,1.0,0.2,0.8,0.0,0.1,0.2,0.6,0.0,0.2,0.1,0.2,0.4,0.6,0.2,1.0,0.3,0.1,0.1,0.7,0.0,0.7,0.0,0.7,0.9,0.1,0.2,0.8,0.7,0.5,0.3,0.8,0.3,0.0,0.1,0.1,0.8,0.9,0.2,0.5,0.5,0.4,0.4,0.8,0.9,0.4,1.0,0.8,0.4,0.2,0.1,0.3,0.1,0.7,0.9,0.2,0.9,0.8,0.7,0.2,0.7,0.4,0.0,1.0,0.7,0.3,0.6,0.9,0.1,0.5,0.2,0.5,0.7,0.3,0.9,0.7,0.2,1.0,0.6,0.4,0.3,0.1,0.1,0.0,0.3,0.9,0.7,0.5,0.9,0.8,0.6,0.8,0.1,0.4,0.5,0.8,0.7,0.4,0.8,0.4,0.1,0.6,0.8,0.0,0.9,0.7,0.7,0.7,0.7,0.3,0.4,0.4,0.2,0.6,0.3,0.4,1.0,0.2,0.3,0.0,0.5,1.0,0.8,0.7,0.3,0.2,0.7,0.1,0.5,0.2,0.3,0.4,0.8,0.4,0.2,0.3,0.9,0.5,0.1,0.7,0.0,0.3,0.3,0.1,0.1,0.8,0.2,0.6,0.2,0.0,0.3,0.6,0.4,0.7,0.6,0.2,0.8,0.4,0.3,0.7,0.3,0.7,0.9,0.4,0.8,0.9,0.4,0.5,0.4,0.6,0.7,0.5,0.6,0.6,0.4,0.4,0.8,0.3,0.9,0.8,0.9,0.6,0.1,0.9,1.0,1.0,0.8,0.8,0.2,0.1,0.1,0.4,0.9,0.9,0.9,0.6,0.4,0.8,0.6,0.6,0.4,0.6,0.6,0.8,1.0,0.2,0.3,0.4,0.9,0.3,0.7,0.9,0.6,1.0,0.5,0.3,0.5,0.9,0.1,0.9,0.6,0.4,0.9,0.9,0.7,0.9,0.0,0.3,0.7,0.2,0.1,0.2,0.6,0.1,0.6,0.3,0.5,0.1,0.5,0.7,0.1,0.9,0.4,0.1,0.4,1.0,0.1,0.7,0.5,0.6,0.1,0.4,1.0,0.3,0.8,0.3,0.9,0.8,0.9,0.4,0.2,0.2,0.7,0.0,0.8,0.7,0.3,0.2,0.2,0.3,0.9,0.8,0.2,0.3,0.4,0.2,0.9,0.4,0.6,0.2,0.5,0.6,0.0,0.3,0.2,0.9,0.7,0.5,0.7,0.8,0.8,0.2,0.7,0.7,0.5,0.1,0.0,0.3,0.6,0.4,1.0,1.0,0.1,0.2,0.4,0.5,0.0,0.2,0.6,0.8,0.7,0.5,0.2,0.3,0.7,0.4,0.7,0.8,0.2,0.7,0.8,0.9,0.7,0.2,0.5,0.7,0.9,0.7,0.5,0.1,1.0,0.5,0.6,0.9,0.5,0.7,0.3,0.9,0.8],
# [0.5,0.6,0.0,0.9,0.9,0.4,0.4,0.9,0.1,0.7,0.8,0.7,1.0,0.5,0.6,0.5,0.9,0.7,0.2,0.4,0.6,0.7,0.4,0.2,0.3,0.3,0.9,1.0,0.0,0.5,0.5,0.6,0.1,0.6,0.1,1.0,0.8,0.4,0.2,0.6,0.9,0.2,0.1,0.5,0.0,0.5,0.3,0.9,0.5,0.0,0.9,0.4,0.4,0.5,0.7,0.9,0.1,0.9,0.0,0.2,0.6,0.8,0.7,0.1,0.6,0.2,0.2,0.8,0.7,0.2,0.1,0.2,0.6,0.8,0.6,0.4,0.8,0.8,0.9,0.7,0.8,0.4,0.5,0.1,0.7,0.9,0.2,0.3,0.0,0.7,0.0,0.1,0.7,0.8,0.9,0.7,0.6,0.3,0.7,0.7,0.2,0.1,0.3,0.7,0.3,0.8,0.2,0.1,0.8,0.9,0.2,0.4,0.5,0.5,0.9,0.9,0.3,0.7,0.1,0.6,0.7,0.2,0.6,0.9,0.8,0.7,0.0,0.4,0.1,0.6,0.5,0.1,0.8,0.7,0.9,0.7,0.5,0.7,0.8,0.8,0.2,0.5,0.3,0.4,0.8,0.4,0.1,0.3,0.4,0.3,0.4,0.7,0.4,0.7,0.9,0.2,0.8,0.3,0.8,0.3,0.8,0.7,0.3,0.4,0.4,0.6,0.1,0.3,0.6,0.5,0.9,0.7,0.3,0.6,0.5,0.3,0.4,0.2,0.8,0.3,0.1,0.9,0.9,0.6,0.1,0.4,0.2,0.4,0.8,0.9,0.1,0.4,0.8,0.5,0.4,0.8,0.9,1.0,0.1,0.8,0.8,0.8,0.8,0.8,0.3,0.1,1.0,0.2,0.9,0.2,0.9,0.7,0.9,1.0,0.4,0.2,0.5,0.4,0.3,0.2,0.1,0.1,0.8,0.7,0.0,0.3,1.0,1.0,0.0,0.5,0.0,0.5,0.6,0.8,0.2,0.4,0.0,0.8,0.5,0.8,0.6,0.3,0.4,0.7,0.9,0.0,0.8,0.7,0.9,0.9,0.2,0.3,0.3,0.9,0.3,0.3,0.3,0.6,0.8,0.5,0.5,0.0,0.5,0.8,1.0,0.4,1.0,0.3,0.5,0.5,0.6,0.6,0.7,0.1,0.3,0.6,0.4,0.2,0.8,1.0,0.6,0.9,0.7,0.5,0.1,0.7,0.6,1.0,0.4,0.9,0.3,0.6,0.1,1.0,0.8,0.7,0.7,0.5,0.0,0.6,0.5,1.0,0.6,0.9,0.8,0.9,0.7,1.0,0.9,1.0,0.3,0.2,0.5,0.3,0.8,0.1,0.9,0.6,0.9,0.9,0.3,0.4,0.1,0.6,0.0,0.0,0.2,0.2,0.9,0.9,0.6,1.0,0.2,0.7,1.0,0.8,1.0,0.2,0.3,0.3,0.9,0.5,0.1,0.2,0.5,0.9,0.1,0.5,0.2,1.0,0.7,0.4,0.2,0.1,0.4,0.4,0.7,0.8,0.3,0.6,0.0,1.0,0.8,1.0,0.1,0.2,0.9,0.4,0.8,0.0,0.0,1.0,0.1,0.3,0.0,0.7,0.6,0.9,0.4,0.4,0.9,0.4,0.8,0.7,0.7,0.5,0.3,0.6,0.5,0.5,0.5,0.9,0.8,0.4,0.8,0.6,0.4,0.2,0.9,1.0,0.8,0.2,0.2,0.8,0.9,0.7,0.1,0.8,0.7,0.3,0.1,0.2,0.3,0.6,0.6,0.6,0.7,0.4,0.1,0.9,0.5,0.5,0.5,0.4,0.6,0.2,0.7,0.6,0.3,0.3,0.2,0.4,0.2,0.9,0.9,0.9,0.7,0.8,0.3,0.0,0.4,0.1,0.9,0.6,0.3,0.0,0.7,0.1,0.8,0.6,0.3,0.6,0.8,0.2,0.1,0.4,0.8,0.9,1.0,0.7,0.8,0.1,0.4,0.1,0.4,0.9,0.4,0.6,0.7,0.2,0.5,0.6,0.8,0.6,0.6,0.9,0.7,0.4,0.3,0.5,0.1,0.8,0.9,0.4,0.0,0.4,0.0,0.3,0.6,0.8,0.1,0.4,0.1,0.6,0.7,0.1,0.0,0.0,0.0,0.8,0.7,0.6,0.8,0.6,0.9,0.1,0.4,0.0,0.4,0.0,0.4,0.7,0.5,0.1,0.9,0.3,0.3,0.1,0.3,0.6,0.6,0.8,0.8,0.9,0.2,0.0,0.6,0.3,1.0,0.6,0.7,1.0,1.0,0.9,0.4,0.1,0.6,0.9,0.1,0.1,0.1,0.2,0.5,0.0,0.8,0.5,0.0,0.8,0.4,0.1,0.2,0.2,0.8,0.9,0.6,0.3,0.2,0.5,0.0,0.1,0.1,0.8,0.9,1.0,0.8,0.2,0.8,0.3,0.8,0.2,0.0,0.1,1.0,0.7,0.1,0.8,0.2,0.5,0.3,0.6,0.1,0.7,0.7,0.5,0.2,0.3,0.5,0.5,1.0,0.2,0.3,0.4,0.1,0.1,0.7,1.0,0.7,0.6,0.9,1.0,0.4,0.8,0.1,0.4,0.1,0.9,0.7,0.4,0.0,0.0,0.3,0.3,0.5,0.6,0.3,0.8,0.5,0.3,0.1,0.9,0.5,0.1,0.3,0.9,0.4,0.3,0.4,0.2,0.9,0.5,0.4,0.9,0.8,0.9,0.9,0.9,0.6,0.6,0.3,0.4,0.3,0.3,0.4,0.4,0.2,0.3,0.7,0.1,0.4,0.1,0.7,0.2,0.7,0.7,0.1,0.3,1.0,0.4,0.4,0.0,0.1,0.4,0.6,0.9,0.5,0.1,0.6,0.9,0.1,0.2,0.4,0.5,0.5,0.1,0.7,0.0,0.1,1.0,0.6,0.1,0.5,0.7,0.2,0.7,0.1,0.1,0.5,0.5,0.2,0.7,0.0,0.9,0.3,0.2,0.9,0.2,0.2,0.5,0.5,0.6,0.3,0.4,0.9,0.4,0.5,0.8,0.1,0.4,0.5,0.9,0.5,0.4,0.3,1.0,0.7,0.5,0.1,0.0,0.3,0.0,0.5,0.5,0.9,0.6,0.3,0.7,0.1,0.9,0.1,0.9,0.1,0.8,0.0,0.9,0.0,0.0,0.7,0.6,1.0,0.5,0.9,0.7,0.4,0.5,0.6,0.3,0.6,0.9,0.4,0.3,0.3,1.0,0.2,1.0,0.3,0.7,0.9,0.8,0.8,0.7,0.6,0.6,0.8,0.5,0.3,0.4,0.5,0.1,0.3,0.4,0.0,0.2,0.8,0.3,1.0,0.5,0.0,0.7,0.9,0.3,0.3,0.9,0.9,0.5,0.0,0.0,0.6,0.7,0.6,0.5,0.1,0.8,0.3,0.3,0.1,0.7,0.0,0.6,0.0,0.1,0.9,0.1,0.4,0.1,0.5,1.0,0.3,0.2,0.8,0.6,0.3,0.5,0.3,0.1,0.9,0.1,0.9,0.9,0.1,0.8,0.7,0.8,0.3,0.5,1.0,0.1,0.7,0.4,0.7,0.7,0.9,0.9,1.0,0.3,0.8,0.3,0.3,0.5,0.2,0.6,0.4,0.5,0.7,0.8,0.9,0.8,0.9,0.2,0.0,0.5,0.2,1.0,0.7,0.4,0.1,0.6,0.6,0.0,0.4,0.6,0.6,0.4,0.1,0.7,1.0,0.1,0.4,0.3,0.9,0.1,0.0,0.1,0.6,0.1,1.0,0.1,0.3,0.3,0.4,0.3,0.8,0.2,0.5,0.1,0.3,0.8,0.7,0.0,0.4,0.5,0.2,0.0,0.5,0.8,0.2,0.6,0.9,0.8,0.9,0.5,0.7,0.5,0.9,0.9,0.3,0.5,0.3,1.0,0.8,0.7,0.9,0.6,0.6,0.5,0.8,0.2,0.7,0.6,0.3,0.1,0.9,0.2,0.4,0.9,0.3,0.2,0.5,0.5,0.9,0.2,1.0,0.9,0.8,0.2,0.2,1.0,0.4,0.4,0.6,0.8,0.3,0.2,0.6,0.0,0.5,0.9,0.6,0.3,0.4,0.8,0.5,0.6,0.7,0.6,0.0,0.1,0.3,0.7,0.4,0.1,0.2,0.7,0.2,0.3,0.8,0.2,0.4,0.2,1.0,1.0,0.7,0.8,0.2,0.5,0.3,0.5,0.4,0.6,0.5,0.3,0.6,0.5,1.0,0.7,0.8,0.9,0.0,0.6,0.3,0.9,0.3,0.9,0.5,0.7,0.5,0.1,0.1,0.3,0.7,0.8,0.1,0.0,0.7,0.5,1.0,0.3,0.8,0.7,0.7,0.2,0.9,0.5,0.6,0.1,0.5,0.5,0.0,0.2,0.7,0.9,0.1,0.9,0.3,0.2]]).to(
# device, dtype=torch.int64
# )
# trg = torch.tensor([[0.5,0.6,0.0,0.9,0.9,0.4,0.4,0.9,0.1,0.7,0.8,0.7,1.0,0.5,0.6,0.5,0.9,0.7,0.2,0.4,0.6,0.7,0.4,0.2,0.3,0.3,0.9,1.0,0.0,0.5,0.5,0.6,0.1,0.6,0.1,1.0,0.8,0.4,0.2,0.6,0.9,0.2,0.1,0.5,0.0,0.5,0.3,0.9,0.5,0.0,0.9,0.4,0.4,0.5,0.7,0.9,0.1,0.9,0.0,0.2,0.6,0.8,0.7,0.1,0.6,0.2,0.2,0.8,0.7,0.2,0.1,0.2,0.6,0.8,0.6,0.4,0.8,0.8,0.9,0.7,0.8,0.4,0.5,0.1,0.7,0.9,0.2,0.3,0.0,0.7,0.0,0.1,0.7,0.8,0.9,0.7,0.6,0.3,0.7,0.7,0.2,0.1,0.3,0.7,0.3,0.8,0.2,0.1,0.8,0.9,0.2,0.4,0.5,0.5,0.9,0.9,0.3,0.7,0.1,0.6,0.7,0.2,0.6,0.9,0.8,0.7,0.0,0.4,0.1,0.6,0.5,0.1,0.8,0.7,0.9,0.7,0.5,0.7,0.8,0.8,0.2,0.5,0.3,0.4,0.8,0.4,0.1,0.3,0.4,0.3,0.4,0.7,0.4,0.7,0.9,0.2,0.8,0.3,0.8,0.3,0.8,0.7,0.3,0.4,0.4,0.6,0.1,0.3,0.6,0.5,0.9,0.7,0.3,0.6,0.5,0.3,0.4,0.2,0.8,0.3,0.1,0.9,0.9,0.6,0.1,0.4,0.2,0.4,0.8,0.9,0.1,0.4,0.8,0.5,0.4,0.8,0.9,1.0,0.1,0.8,0.8,0.8,0.8,0.8,0.3,0.1,1.0,0.2,0.9,0.2,0.9,0.7,0.9,1.0,0.4,0.2,0.5,0.4,0.3,0.2,0.1,0.1,0.8,0.7,0.0,0.3,1.0,1.0,0.0,0.5,0.0,0.5,0.6,0.8,0.2,0.4,0.0,0.8,0.5,0.8,0.6,0.3,0.4,0.7,0.9,0.0,0.8,0.7,0.9,0.9,0.2,0.3,0.3,0.9,0.3,0.3,0.3,0.6,0.8,0.5,0.5,0.0,0.5,0.8,1.0,0.4,1.0,0.3,0.5,0.5,0.6,0.6,0.7,0.1,0.3,0.6,0.4,0.2,0.8,1.0,0.6,0.9,0.7,0.5,0.1,0.7,0.6,1.0,0.4,0.9,0.3,0.6,0.1,1.0,0.8,0.7,0.7,0.5,0.0,0.6,0.5,1.0,0.6,0.9,0.8,0.9,0.7,1.0,0.9,1.0,0.3,0.2,0.5,0.3,0.8,0.1,0.9,0.6,0.9,0.9,0.3,0.4,0.1,0.6,0.0,0.0,0.2,0.2,0.9,0.9,0.6,1.0,0.2,0.7,1.0,0.8,1.0,0.2,0.3,0.3,0.9,0.5,0.1,0.2,0.5,0.9,0.1,0.5,0.2,1.0,0.7,0.4,0.2,0.1,0.4,0.4,0.7,0.8,0.3,0.6,0.0,1.0,0.8,1.0,0.1,0.2,0.9,0.4,0.8,0.0,0.0,1.0,0.1,0.3,0.0,0.7,0.6,0.9,0.4,0.4,0.9,0.4,0.8,0.7,0.7,0.5,0.3,0.6,0.5,0.5,0.5,0.9,0.8,0.4,0.8,0.6,0.4,0.2,0.9,1.0,0.8,0.2,0.2,0.8,0.9,0.7,0.1,0.8,0.7,0.3,0.1,0.2,0.3,0.6,0.6,0.6,0.7,0.4,0.1,0.9,0.5,0.5,0.5,0.4,0.6,0.2,0.7,0.6,0.3,0.3,0.2,0.4,0.2,0.9,0.9,0.9,0.7,0.8,0.3,0.0,0.4,0.1,0.9,0.6,0.3,0.0,0.7,0.1,0.8,0.6,0.3,0.6,0.8,0.2,0.1,0.4,0.8,0.9,1.0,0.7,0.8,0.1,0.4,0.1,0.4,0.9,0.4,0.6,0.7,0.2,0.5,0.6,0.8,0.6,0.6,0.9,0.7,0.4,0.3,0.5,0.1,0.8,0.9,0.4,0.0,0.4,0.0,0.3,0.6,0.8,0.1,0.4,0.1,0.6,0.7,0.1,0.0,0.0,0.0,0.8,0.7,0.6,0.8,0.6,0.9,0.1,0.4,0.0,0.4,0.0,0.4,0.7,0.5,0.1,0.9,0.3,0.3,0.1,0.3,0.6,0.6,0.8,0.8,0.9,0.2,0.0,0.6,0.3,1.0,0.6,0.7,1.0,1.0,0.9,0.4,0.1,0.6,0.9,0.1,0.1,0.1,0.2,0.5,0.0,0.8,0.5,0.0,0.8,0.4,0.1,0.2,0.2,0.8,0.9,0.6,0.3,0.2,0.5,0.0,0.1,0.1,0.8,0.9,1.0,0.8,0.2,0.8,0.3,0.8,0.2,0.0,0.1,1.0,0.7,0.1,0.8,0.2,0.5,0.3,0.6,0.1,0.7,0.7,0.5,0.2,0.3,0.5,0.5,1.0,0.2,0.3,0.4,0.1,0.1,0.7,1.0,0.7,0.6,0.9,1.0,0.4,0.8,0.1,0.4,0.1,0.9,0.7,0.4,0.0,0.0,0.3,0.3,0.5,0.6,0.3,0.8,0.5,0.3,0.1,0.9,0.5,0.1,0.3,0.9,0.4,0.3,0.4,0.2,0.9,0.5,0.4,0.9,0.8,0.9,0.9,0.9,0.6,0.6,0.3,0.4,0.3,0.3,0.4,0.4,0.2,0.3,0.7,0.1,0.4,0.1,0.7,0.2,0.7,0.7,0.1,0.3,1.0,0.4,0.4,0.0,0.1,0.4,0.6,0.9,0.5,0.1,0.6,0.9,0.1,0.2,0.4,0.5,0.5,0.1,0.7,0.0,0.1,1.0,0.6,0.1,0.5,0.7,0.2,0.7,0.1,0.1,0.5,0.5,0.2,0.7,0.0,0.9,0.3,0.2,0.9,0.2,0.2,0.5,0.5,0.6,0.3,0.4,0.9,0.4,0.5,0.8,0.1,0.4,0.5,0.9,0.5,0.4,0.3,1.0,0.7,0.5,0.1,0.0,0.3,0.0,0.5,0.5,0.9,0.6,0.3,0.7,0.1,0.9,0.1,0.9,0.1,0.8,0.0,0.9,0.0,0.0,0.7,0.6,1.0,0.5,0.9,0.7,0.4,0.5,0.6,0.3,0.6,0.9,0.4,0.3,0.3,1.0,0.2,1.0,0.3,0.7,0.9,0.8,0.8,0.7,0.6,0.6,0.8,0.5,0.3,0.4,0.5,0.1,0.3,0.4,0.0,0.2,0.8,0.3,1.0,0.5,0.0,0.7,0.9,0.3,0.3,0.9,0.9,0.5,0.0,0.0,0.6,0.7,0.6,0.5,0.1,0.8,0.3,0.3,0.1,0.7,0.0,0.6,0.0,0.1,0.9,0.1,0.4,0.1,0.5,1.0,0.3,0.2,0.8,0.6,0.3,0.5,0.3,0.1,0.9,0.1,0.9,0.9,0.1,0.8,0.7,0.8,0.3,0.5,1.0,0.1,0.7,0.4,0.7,0.7,0.9,0.9,1.0,0.3,0.8,0.3,0.3,0.5,0.2,0.6,0.4,0.5,0.7,0.8,0.9,0.8,0.9,0.2,0.0,0.5,0.2,1.0,0.7,0.4,0.1,0.6,0.6,0.0,0.4,0.6,0.6,0.4,0.1,0.7,1.0,0.1,0.4,0.3,0.9,0.1,0.0,0.1,0.6,0.1,1.0,0.1,0.3,0.3,0.4,0.3,0.8,0.2,0.5,0.1,0.3,0.8,0.7,0.0,0.4,0.5,0.2,0.0,0.5,0.8,0.2,0.6,0.9,0.8,0.9,0.5,0.7,0.5,0.9,0.9,0.3,0.5,0.3,1.0,0.8,0.7,0.9,0.6,0.6,0.5,0.8,0.2,0.7,0.6,0.3,0.1,0.9,0.2,0.4,0.9,0.3,0.2,0.5,0.5,0.9,0.2,1.0,0.9,0.8,0.2,0.2,1.0,0.4,0.4,0.6,0.8,0.3,0.2,0.6,0.0,0.5,0.9,0.6,0.3,0.4,0.8,0.5,0.6,0.7,0.6,0.0,0.1,0.3,0.7,0.4,0.1,0.2,0.7,0.2,0.3,0.8,0.2,0.4,0.2,1.0,1.0,0.7,0.8,0.2,0.5,0.3,0.5,0.4,0.6,0.5,0.3,0.6,0.5,1.0,0.7,0.8,0.9,0.0,0.6,0.3,0.9,0.3,0.9,0.5,0.7,0.5,0.1,0.1,0.3,0.7,0.8,0.1,0.0,0.7,0.5,1.0,0.3,0.8,0.7,0.7,0.2,0.9,0.5,0.6,0.1,0.5,0.5,0.0,0.2,0.7,0.9,0.1,0.9,0.3,0.2],
# [0.5,0.6,0.0,0.9,0.9,0.4,0.4,0.9,0.1,0.7,0.8,0.7,1.0,0.5,0.6,0.5,0.9,0.7,0.2,0.4,0.6,0.7,0.4,0.2,0.3,0.3,0.9,1.0,0.0,0.5,0.5,0.6,0.1,0.6,0.1,1.0,0.8,0.4,0.2,0.6,0.9,0.2,0.1,0.5,0.0,0.5,0.3,0.9,0.5,0.0,0.9,0.4,0.4,0.5,0.7,0.9,0.1,0.9,0.0,0.2,0.6,0.8,0.7,0.1,0.6,0.2,0.2,0.8,0.7,0.2,0.1,0.2,0.6,0.8,0.6,0.4,0.8,0.8,0.9,0.7,0.8,0.4,0.5,0.1,0.7,0.9,0.2,0.3,0.0,0.7,0.0,0.1,0.7,0.8,0.9,0.7,0.6,0.3,0.7,0.7,0.2,0.1,0.3,0.7,0.3,0.8,0.2,0.1,0.8,0.9,0.2,0.4,0.5,0.5,0.9,0.9,0.3,0.7,0.1,0.6,0.7,0.2,0.6,0.9,0.8,0.7,0.0,0.4,0.1,0.6,0.5,0.1,0.8,0.7,0.9,0.7,0.5,0.7,0.8,0.8,0.2,0.5,0.3,0.4,0.8,0.4,0.1,0.3,0.4,0.3,0.4,0.7,0.4,0.7,0.9,0.2,0.8,0.3,0.8,0.3,0.8,0.7,0.3,0.4,0.4,0.6,0.1,0.3,0.6,0.5,0.9,0.7,0.3,0.6,0.5,0.3,0.4,0.2,0.8,0.3,0.1,0.9,0.9,0.6,0.1,0.4,0.2,0.4,0.8,0.9,0.1,0.4,0.8,0.5,0.4,0.8,0.9,1.0,0.1,0.8,0.8,0.8,0.8,0.8,0.3,0.1,1.0,0.2,0.9,0.2,0.9,0.7,0.9,1.0,0.4,0.2,0.5,0.4,0.3,0.2,0.1,0.1,0.8,0.7,0.0,0.3,1.0,1.0,0.0,0.5,0.0,0.5,0.6,0.8,0.2,0.4,0.0,0.8,0.5,0.8,0.6,0.3,0.4,0.7,0.9,0.0,0.8,0.7,0.9,0.9,0.2,0.3,0.3,0.9,0.3,0.3,0.3,0.6,0.8,0.5,0.5,0.0,0.5,0.8,1.0,0.4,1.0,0.3,0.5,0.5,0.6,0.6,0.7,0.1,0.3,0.6,0.4,0.2,0.8,1.0,0.6,0.9,0.7,0.5,0.1,0.7,0.6,1.0,0.4,0.9,0.3,0.6,0.1,1.0,0.8,0.7,0.7,0.5,0.0,0.6,0.5,1.0,0.6,0.9,0.8,0.9,0.7,1.0,0.9,1.0,0.3,0.2,0.5,0.3,0.8,0.1,0.9,0.6,0.9,0.9,0.3,0.4,0.1,0.6,0.0,0.0,0.2,0.2,0.9,0.9,0.6,1.0,0.2,0.7,1.0,0.8,1.0,0.2,0.3,0.3,0.9,0.5,0.1,0.2,0.5,0.9,0.1,0.5,0.2,1.0,0.7,0.4,0.2,0.1,0.4,0.4,0.7,0.8,0.3,0.6,0.0,1.0,0.8,1.0,0.1,0.2,0.9,0.4,0.8,0.0,0.0,1.0,0.1,0.3,0.0,0.7,0.6,0.9,0.4,0.4,0.9,0.4,0.8,0.7,0.7,0.5,0.3,0.6,0.5,0.5,0.5,0.9,0.8,0.4,0.8,0.6,0.4,0.2,0.9,1.0,0.8,0.2,0.2,0.8,0.9,0.7,0.1,0.8,0.7,0.3,0.1,0.2,0.3,0.6,0.6,0.6,0.7,0.4,0.1,0.9,0.5,0.5,0.5,0.4,0.6,0.2,0.7,0.6,0.3,0.3,0.2,0.4,0.2,0.9,0.9,0.9,0.7,0.8,0.3,0.0,0.4,0.1,0.9,0.6,0.3,0.0,0.7,0.1,0.8,0.6,0.3,0.6,0.8,0.2,0.1,0.4,0.8,0.9,1.0,0.7,0.8,0.1,0.4,0.1,0.4,0.9,0.4,0.6,0.7,0.2,0.5,0.6,0.8,0.6,0.6,0.9,0.7,0.4,0.3,0.5,0.1,0.8,0.9,0.4,0.0,0.4,0.0,0.3,0.6,0.8,0.1,0.4,0.1,0.6,0.7,0.1,0.0,0.0,0.0,0.8,0.7,0.6,0.8,0.6,0.9,0.1,0.4,0.0,0.4,0.0,0.4,0.7,0.5,0.1,0.9,0.3,0.3,0.1,0.3,0.6,0.6,0.8,0.8,0.9,0.2,0.0,0.6,0.3,1.0,0.6,0.7,1.0,1.0,0.9,0.4,0.1,0.6,0.9,0.1,0.1,0.1,0.2,0.5,0.0,0.8,0.5,0.0,0.8,0.4,0.1,0.2,0.2,0.8,0.9,0.6,0.3,0.2,0.5,0.0,0.1,0.1,0.8,0.9,1.0,0.8,0.2,0.8,0.3,0.8,0.2,0.0,0.1,1.0,0.7,0.1,0.8,0.2,0.5,0.3,0.6,0.1,0.7,0.7,0.5,0.2,0.3,0.5,0.5,1.0,0.2,0.3,0.4,0.1,0.1,0.7,1.0,0.7,0.6,0.9,1.0,0.4,0.8,0.1,0.4,0.1,0.9,0.7,0.4,0.0,0.0,0.3,0.3,0.5,0.6,0.3,0.8,0.5,0.3,0.1,0.9,0.5,0.1,0.3,0.9,0.4,0.3,0.4,0.2,0.9,0.5,0.4,0.9,0.8,0.9,0.9,0.9,0.6,0.6,0.3,0.4,0.3,0.3,0.4,0.4,0.2,0.3,0.7,0.1,0.4,0.1,0.7,0.2,0.7,0.7,0.1,0.3,1.0,0.4,0.4,0.0,0.1,0.4,0.6,0.9,0.5,0.1,0.6,0.9,0.1,0.2,0.4,0.5,0.5,0.1,0.7,0.0,0.1,1.0,0.6,0.1,0.5,0.7,0.2,0.7,0.1,0.1,0.5,0.5,0.2,0.7,0.0,0.9,0.3,0.2,0.9,0.2,0.2,0.5,0.5,0.6,0.3,0.4,0.9,0.4,0.5,0.8,0.1,0.4,0.5,0.9,0.5,0.4,0.3,1.0,0.7,0.5,0.1,0.0,0.3,0.0,0.5,0.5,0.9,0.6,0.3,0.7,0.1,0.9,0.1,0.9,0.1,0.8,0.0,0.9,0.0,0.0,0.7,0.6,1.0,0.5,0.9,0.7,0.4,0.5,0.6,0.3,0.6,0.9,0.4,0.3,0.3,1.0,0.2,1.0,0.3,0.7,0.9,0.8,0.8,0.7,0.6,0.6,0.8,0.5,0.3,0.4,0.5,0.1,0.3,0.4,0.0,0.2,0.8,0.3,1.0,0.5,0.0,0.7,0.9,0.3,0.3,0.9,0.9,0.5,0.0,0.0,0.6,0.7,0.6,0.5,0.1,0.8,0.3,0.3,0.1,0.7,0.0,0.6,0.0,0.1,0.9,0.1,0.4,0.1,0.5,1.0,0.3,0.2,0.8,0.6,0.3,0.5,0.3,0.1,0.9,0.1,0.9,0.9,0.1,0.8,0.7,0.8,0.3,0.5,1.0,0.1,0.7,0.4,0.7,0.7,0.9,0.9,1.0,0.3,0.8,0.3,0.3,0.5,0.2,0.6,0.4,0.5,0.7,0.8,0.9,0.8,0.9,0.2,0.0,0.5,0.2,1.0,0.7,0.4,0.1,0.6,0.6,0.0,0.4,0.6,0.6,0.4,0.1,0.7,1.0,0.1,0.4,0.3,0.9,0.1,0.0,0.1,0.6,0.1,1.0,0.1,0.3,0.3,0.4,0.3,0.8,0.2,0.5,0.1,0.3,0.8,0.7,0.0,0.4,0.5,0.2,0.0,0.5,0.8,0.2,0.6,0.9,0.8,0.9,0.5,0.7,0.5,0.9,0.9,0.3,0.5,0.3,1.0,0.8,0.7,0.9,0.6,0.6,0.5,0.8,0.2,0.7,0.6,0.3,0.1,0.9,0.2,0.4,0.9,0.3,0.2,0.5,0.5,0.9,0.2,1.0,0.9,0.8,0.2,0.2,1.0,0.4,0.4,0.6,0.8,0.3,0.2,0.6,0.0,0.5,0.9,0.6,0.3,0.4,0.8,0.5,0.6,0.7,0.6,0.0,0.1,0.3,0.7,0.4,0.1,0.2,0.7,0.2,0.3,0.8,0.2,0.4,0.2,1.0,1.0,0.7,0.8,0.2,0.5,0.3,0.5,0.4,0.6,0.5,0.3,0.6,0.5,1.0,0.7,0.8,0.9,0.0,0.6,0.3,0.9,0.3,0.9,0.5,0.7,0.5,0.1,0.1,0.3,0.7,0.8,0.1,0.0,0.7,0.5,1.0,0.3,0.8,0.7,0.7,0.2,0.9,0.5,0.6,0.1,0.5,0.5,0.0,0.2,0.7,0.9,0.1,0.9,0.3,0.2]]).to(device, dtype=torch.int64)
src_pad_idx = 0
trg_pad_idx = 0
src_vocab_size = 1024
trg_vocab_size = 1024
model = Transformer(src_vocab_size, trg_vocab_size, src_pad_idx, trg_pad_idx).to(
device
)
# out = model(x, trg[:, :-1])
out = model(x, trg[:, :])
print(out.shape) | 96.70229 | 4,136 | 0.53047 | 9,332 | 25,336 | 1.412345 | 0.020039 | 0.098483 | 0.095599 | 0.019727 | 0.79173 | 0.771624 | 0.751669 | 0.672914 | 0.64044 | 0.556829 | 0 | 0.366338 | 0.107476 | 25,336 | 262 | 4,137 | 96.70229 | 0.216513 | 0.690283 | 0 | 0.370558 | 0 | 0 | 0.012665 | 0 | 0 | 0 | 0 | 0.003817 | 0.005076 | 1 | 0.071066 | false | 0 | 0.010152 | 0 | 0.152284 | 0.005076 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5ce6c6bdccc03a7aedf99d573cc1f2d34db9453c | 19 | py | Python | __init__.py | ENG-Rabbit/Ges | c4a8070e8ce598be6771d8f3d99296c2a5687462 | [
"MIT"
] | null | null | null | __init__.py | ENG-Rabbit/Ges | c4a8070e8ce598be6771d8f3d99296c2a5687462 | [
"MIT"
] | 2 | 2020-05-12T21:07:39.000Z | 2020-05-13T20:58:04.000Z | __init__.py | ENG-Rabbit/Ges | c4a8070e8ce598be6771d8f3d99296c2a5687462 | [
"MIT"
] | null | null | null | from . import Class | 19 | 19 | 0.789474 | 3 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
7a31f0b3f515b2a5c0373fc68062072b583866ee | 214 | py | Python | dl4s/SeqVAE/__init__.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | dl4s/SeqVAE/__init__.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | dl4s/SeqVAE/__init__.py | liu2231665/Project-dl4s | 615d504caf6f05b676be1c25621d2dd94e41ec54 | [
"MIT"
] | null | null | null | from dl4s.SeqVAE.utility import configSTORN, configVRNN, configSRNN
from dl4s.SeqVAE.STORN import binSTORN, gaussSTORN
from dl4s.SeqVAE.VRNN import binVRNN, gaussVRNN
from dl4s.SeqVAE.SRNN import binSRNN, gaussSRNN | 53.5 | 67 | 0.845794 | 29 | 214 | 6.241379 | 0.586207 | 0.176796 | 0.309392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.093458 | 214 | 4 | 68 | 53.5 | 0.912371 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7a72a996343e1d07838a1a4d10adc00f9bb8bbb2 | 2,314 | py | Python | epytope/Data/pssms/smm/mat/B_27_05_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 7 | 2021-02-01T18:11:28.000Z | 2022-01-31T19:14:07.000Z | epytope/Data/pssms/smm/mat/B_27_05_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 22 | 2021-01-02T15:25:23.000Z | 2022-03-14T11:32:53.000Z | epytope/Data/pssms/smm/mat/B_27_05_9.py | christopher-mohr/epytope | 8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd | [
"BSD-3-Clause"
] | 4 | 2021-05-28T08:50:38.000Z | 2022-03-14T11:45:32.000Z | B_27_05_9 = {0: {'A': -0.069, 'C': -0.027, 'E': 0.606, 'D': 0.545, 'G': -0.158, 'F': -0.262, 'I': 0.019, 'H': -0.189, 'K': -0.292, 'M': 0.015, 'L': 0.019, 'N': 0.301, 'Q': 0.005, 'P': 0.481, 'S': -0.019, 'R': -0.766, 'T': 0.165, 'W': -0.277, 'V': 0.243, 'Y': -0.34}, 1: {'A': 0.099, 'C': 0.202, 'E': 0.486, 'D': 0.359, 'G': 0.359, 'F': 0.265, 'I': 0.326, 'H': 0.082, 'K': -0.408, 'M': -0.383, 'L': 0.039, 'N': 0.106, 'Q': -0.821, 'P': 0.671, 'S': -0.021, 'R': -1.816, 'T': 0.239, 'W': -0.234, 'V': 0.178, 'Y': 0.273}, 2: {'A': -0.145, 'C': 0.531, 'E': 0.716, 'D': 0.52, 'G': 0.419, 'F': -0.401, 'I': -0.095, 'H': -0.193, 'K': 0.076, 'M': -0.478, 'L': -0.308, 'N': 0.02, 'Q': -0.113, 'P': 0.29, 'S': 0.122, 'R': 0.074, 'T': 0.009, 'W': -0.733, 'V': -0.038, 'Y': -0.271}, 3: {'A': -0.084, 'C': 0.031, 'E': 0.018, 'D': 0.084, 'G': -0.073, 'F': -0.054, 'I': 0.048, 'H': -0.002, 'K': 0.046, 'M': -0.001, 'L': -0.042, 'N': -0.045, 'Q': 0.03, 'P': 0.068, 'S': -0.006, 'R': -0.112, 'T': 0.027, 'W': -0.015, 'V': 0.054, 'Y': 0.028}, 4: {'A': -0.009, 'C': 0.078, 'E': 0.245, 'D': 0.117, 'G': 0.145, 'F': -0.136, 'I': -0.166, 'H': 0.068, 'K': 0.114, 'M': -0.073, 'L': -0.222, 'N': 0.027, 'Q': 0.064, 'P': 0.156, 'S': 0.108, 'R': -0.082, 'T': -0.024, 'W': -0.282, 'V': -0.037, 'Y': -0.092}, 5: {'A': -0.109, 'C': 0.136, 'E': 0.147, 'D': 0.196, 'G': 0.006, 'F': -0.099, 'I': -0.097, 'H': 0.001, 'K': 0.081, 'M': 0.008, 'L': -0.051, 'N': -0.076, 'Q': -0.015, 'P': 0.047, 'S': 0.064, 'R': -0.052, 'T': 0.067, 'W': -0.129, 'V': -0.078, 'Y': -0.047}, 6: {'A': 0.066, 'C': 0.053, 'E': 0.031, 'D': 0.179, 'G': 0.025, 'F': -0.04, 'I': -0.024, 'H': -0.125, 'K': 0.096, 'M': 0.066, 'L': -0.188, 'N': 0.065, 'Q': 0.095, 'P': 0.012, 'S': -0.013, 'R': -0.049, 'T': 0.003, 'W': -0.097, 'V': -0.022, 'Y': -0.134}, 7: {'A': 0.067, 'C': -0.005, 'E': 0.085, 'D': 0.246, 'G': -0.071, 'F': -0.003, 'I': 0.109, 'H': -0.01, 'K': -0.045, 'M': -0.105, 'L': -0.21, 'N': 0.042, 'Q': 0.028, 'P': -0.086, 'S': -0.129, 'R': -0.017, 'T': 0.027, 'W': -0.022, 'V': 0.09, 'Y': 0.008}, 8: {'A': -0.015, 'C': 0.303, 'E': 0.758, 'D': 0.373, 'G': 0.532, 'F': -0.462, 'I': -0.328, 'H': -0.142, 'K': -0.534, 'M': -0.534, 'L': -0.435, 'N': 0.12, 'Q': 0.383, 'P': 0.45, 'S': 0.146, 'R': -0.42, 'T': 0.224, 'W': -0.093, 'V': -0.009, 'Y': -0.317}, -1: {'con': 4.87457}} | 2,314 | 2,314 | 0.395851 | 557 | 2,314 | 1.639138 | 0.310592 | 0.019715 | 0.010953 | 0.013143 | 0.015334 | 0 | 0 | 0 | 0 | 0 | 0 | 0.37558 | 0.161193 | 2,314 | 1 | 2,314 | 2,314 | 0.094797 | 0 | 0 | 0 | 0 | 0 | 0.07905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7a902470bde6514c7bb2bc9775e04b31f3fca5d6 | 7,237 | py | Python | ebu_tt_live/documents/test/test_converters.py | bbc/ebu-tt-live-toolkit | 2d0d6e655f83c29453220abf59c213b4c2a9fc02 | [
"BSD-3-Clause"
] | 1 | 2016-05-26T13:42:37.000Z | 2016-05-26T13:42:37.000Z | ebu_tt_live/documents/test/test_converters.py | bbc/ebu-tt-live-toolkit | 2d0d6e655f83c29453220abf59c213b4c2a9fc02 | [
"BSD-3-Clause"
] | 43 | 2016-04-20T14:36:06.000Z | 2021-11-29T11:22:40.000Z | ebu_tt_live/documents/test/test_converters.py | bbc/ebu-tt-live-toolkit | 2d0d6e655f83c29453220abf59c213b4c2a9fc02 | [
"BSD-3-Clause"
] | 5 | 2016-04-28T10:21:29.000Z | 2020-10-12T18:20:58.000Z | from unittest import TestCase
from datetime import timedelta
import os
from ebu_tt_live.documents.converters import ebutt3_to_ebuttd, ebutt1_to_ebutt3
from ebu_tt_live.documents.ebutt3 import EBUTT3Document
from ebu_tt_live.documents.ebutt1 import EBUTT1Document
from ebu_tt_live.clocks.media import MediaClock
from ebu_tt_live.bindings import tt1_head_type, styling, \
style_type, tt1_layout_type, region_type, div_type, p_type, \
span_type, br_type, ebuttdt
from pyxb.exceptions_ import PyXBException
class TestEBUTT3ToEBUTTDConverter(TestCase):
def setUp(self):
self._media_clock = MediaClock()
def _load_asset(self, file_name):
dirpath = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(dirpath, file_name), 'r') as ifile:
contents = ifile.read()
return contents
def test_simple(self):
div = div_type(
p_type(
span_type(
'Here we are',
br_type(),
'in 2 lines.'
),
id='ID001',
begin=ebuttdt.FullClockTimingType(timedelta(seconds=1)),
end=ebuttdt.FullClockTimingType(timedelta(seconds=3))
)
)
document = EBUTT3Document(
time_base='media',
lang='en-GB',
sequence_identifier='TestSeq1',
sequence_number=1
)
document.add_div(div)
document.validate()
ebutt3_to_ebuttd(document, self._media_clock)
def test_ericsson_3(self):
xml_file = self._load_asset('converter_ericsson3.xml')
self._media_clock.adjust_time(
timedelta(),
ebuttdt.LimitedClockTimingType('12:11:50.000').timedelta)
document = EBUTT3Document.create_from_xml(xml_file)
ebutt3_to_ebuttd(document, self._media_clock)
class TestEBUTT1ToEBUTT3Converter(TestCase):
def setUp(self):
self._seqId = 'testConverter'
def _load_asset(self, file_name):
dirpath = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(dirpath, file_name), 'r') as ifile:
contents = ifile.read()
return contents
def test_simple_smpte(self):
div = div_type(
p_type(
span_type(
'Here we are',
br_type(),
'in 2 lines.'
),
id='ID001',
begin=ebuttdt.SMPTETimingType('00:00:01:00'),
end=ebuttdt.SMPTETimingType('00:00:03:00')
)
)
EBUTT1Document.load_types_for_document()
try:
document = EBUTT1Document(
time_base='smpte',
lang='en-GB',
head=tt1_head_type(
styling(
style_type(id='s0')
),
tt1_layout_type(
region_type(
id='r0',
origin='0% 0%',
extent='100% 100%')
)
)
)
except PyXBException as e:
print(e.details())
raise e
document.add_div(div)
document.validate()
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_simple_media(self):
div = div_type(
p_type(
span_type(
'Here we are',
br_type(),
'in 2 lines.'
),
id='ID001',
begin=ebuttdt.FullClockTimingType(timedelta(seconds=1)),
end=ebuttdt.FullClockTimingType(timedelta(seconds=3))
)
)
EBUTT1Document.load_types_for_document()
try:
document = EBUTT1Document(
time_base='media',
lang='en-GB',
head=tt1_head_type(
styling(
style_type(id='s0')
),
tt1_layout_type(
region_type(
id='r0',
origin='0% 0%',
extent='100% 100%')
)
)
)
except PyXBException as e:
print(e.details())
raise e
document.add_div(div)
document.validate()
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_ericsson_smpte(self):
xml_file = self._load_asset('converter_ericsson1_smpte.xml')
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_ericsson_smpte_with_start_of_programme(self):
xml_file = self._load_asset(
'converter_ericsson1_smpte_with_start_of_programme.xml')
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_ericsson_smpte_with_start_of_programme_and_sub_zero(self):
xml_file = self._load_asset(
'converter_ericsson1_smpte_with_start_of_programme_and_sub_zero.xml') # noqa:E501
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_ericsson_smpte_with_overridden_start_of_programme(self):
xml_file = self._load_asset(
'converter_ericsson1_smpte_with_start_of_programme.xml')
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True,
smpte_start_of_programme='11:00:00:00')
def test_ericsson_smpte_with_overridden_start_of_programme_and_sub_zero(
self):
xml_file = self._load_asset(
'converter_ericsson1_smpte_with_start_of_programme_and_sub_zero.xml') # noqa:E501
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True,
smpte_start_of_programme='11:00:00:00')
def test_ericsson_media(self):
xml_file = self._load_asset('converter_ericsson1_media.xml')
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
def test_ericsson_foreign_namespace_metadata(self):
xml_file = self._load_asset('converter_foreign_namespace_metadata.xml')
document = EBUTT1Document.create_from_xml(xml_file)
ebutt1_to_ebutt3(
document,
sequence_id=self._seqId,
use_doc_id_as_seq_id=True)
| 30.795745 | 94 | 0.567362 | 780 | 7,237 | 4.862821 | 0.176923 | 0.029528 | 0.03691 | 0.052201 | 0.814395 | 0.773003 | 0.745057 | 0.708674 | 0.697601 | 0.677564 | 0 | 0.030335 | 0.353185 | 7,237 | 234 | 95 | 30.92735 | 0.779962 | 0.002625 | 0 | 0.715789 | 0 | 0 | 0.081081 | 0.049757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.047368 | 0 | 0.147368 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
891a117363fe21c0a99e10c184ef4c01e1c8c98b | 66 | py | Python | python/aggregators/price_fetcher.py | MikaelBertze/house-core | 7b5b86290c1a13f00f4aa97d9506d158f822788c | [
"MIT"
] | null | null | null | python/aggregators/price_fetcher.py | MikaelBertze/house-core | 7b5b86290c1a13f00f4aa97d9506d158f822788c | [
"MIT"
] | null | null | null | python/aggregators/price_fetcher.py | MikaelBertze/house-core | 7b5b86290c1a13f00f4aa97d9506d158f822788c | [
"MIT"
] | null | null | null | from utils import power_price_fetcher
power_price_fetcher.fetch() | 22 | 37 | 0.878788 | 10 | 66 | 5.4 | 0.7 | 0.37037 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 66 | 3 | 38 | 22 | 0.885246 | 0 | 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 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
64e1780bfa33fb993441081e9c4df5841cdbc6aa | 26,533 | py | Python | objects/CSCG/_2d/__tests__/unittests/mesh.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | objects/CSCG/_2d/__tests__/unittests/mesh.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | objects/CSCG/_2d/__tests__/unittests/mesh.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null |
import sys
if './' not in sys.path: sys.path.append('./')
from root.config.main import *
from objects.CSCG._2d.master import MeshGenerator
from objects.CSCG._2d.mesh.domain.inputs.allocator import DomainInputFinder
import random
from screws.quadrature import Quadrature
def test_Mesh_NO1_mesh_topology():
"""
Unittests for the mesh.
"""
if rAnk == mAster_rank:
print("+++ [test_Mesh_NO1_mesh_topology] ...... ", flush=True)
mesh = MeshGenerator('chp2')([3, 4], EDM='debug')
MAP = mesh.elements.map
if 0 in MAP: assert MAP[0] == ('Upper', 1, 'Left', 3)
if 1 in MAP: assert MAP[1] == (0, 2, 'Left', 4)
if 73 in MAP: assert MAP[73] == (72, 74, 'Internal', 76)
if 33 in MAP: assert MAP[33] == (23, 34, 30, 48)
np.testing.assert_array_equal(mesh.elements.spacing['R:R_UL'][1],
np.array([0. ,0.25, 0.5 , 0.75, 1. ]))
mesh = MeshGenerator('chp1')({'R:Ru':[4, 3],
'R:Rl':[5, 3],
'R:Rd':[[1,2], 3],
'R:Rr':[[1,2,1], 3],}, EDM='debug')
MAP = mesh.elements.map
if 0 in MAP: assert MAP[0] == (31, 1, 'Internal', 4)
if 12 in MAP: assert MAP[12] == (3, 13, 'Internal', 15)
if 26 in MAP: assert MAP[26] == (25, 37, 24, 'Down')
if 32 in MAP: assert MAP[32] == (24, 33, 27, 37)
if 39 in MAP: assert MAP[39] == (38, 40, 34, 'Left')
if 19 in MAP: assert MAP[19] == (18, 20, 16, 'Right')
mesh = MeshGenerator('chp2')([3, 4], EDM='debug')
for rn in mesh.domain.regions.names:
R = mesh.domain.regions[rn]
if rn in ['R:R_DR', 'R:R_UL', 'R:R_DL', 'R:R_UR']:
assert R.type_wrt_metric.mark == 'orthogonal:UD0.64644661_LR0.64644661'
else:
assert R.type_wrt_metric.mark[:8] == 'chaotic:'
mesh = MeshGenerator('cic')([3, 4], EDM='debug')
for rn in mesh.domain.regions.names:
R = mesh.domain.regions[rn]
if rn == 'R:Ri':
assert R.type_wrt_metric.mark == \
'parallelogram:angleL1.57079633_lenL1.50000000_A1.57079633A_lenU0.75000000'
elif rn == 'R:Ro':
assert R.type_wrt_metric.mark == \
'parallelogram:angleL4.71238898_lenL1.50000000_A1.57079633A_lenU2.25000000'
else:
assert R.type_wrt_metric.mark[:8] == 'chaotic:'
mesh = MeshGenerator('crazy_periodic', c=0.3)([3, 4], EDM='debug')
MAP = mesh.elements.map
if 0 in MAP: assert MAP[0] == (2, 1, 9, 3)
if 1 in MAP: assert MAP[1] == (0, 2, 10, 4)
if 2 in MAP: assert MAP[2] == (1, 0, 11, 5)
if 3 in MAP: assert MAP[3] == (5, 4, 0, 6)
if 4 in MAP: assert MAP[4] == (3, 5, 1, 7)
if 5 in MAP: assert MAP[5] == (4, 3, 2, 8)
if 7 in MAP: assert MAP[7] == (6, 8, 4, 10)
if 9 in MAP: assert MAP[9] == (11, 10, 6, 0)
if 10 in MAP: assert MAP[10] == (9, 11, 7, 1)
if 11 in MAP: assert MAP[11] == (10, 9, 8, 2)
mesh = MeshGenerator('quadrangle')([3, 4], EDM=None)
for i in mesh.elements:
element = mesh.elements[i]
mark = element.type_wrt_metric.mark
assert mark[:13] == 'Parallelogram', "error!"
mesh = MeshGenerator('quadrangle', p_UL=(0,0), p_DL=(1,0), p_UR=(0,1), p_DR=(1,1))(
[3, 4], EDM=None)
for i in mesh.elements:
element = mesh.elements[i]
mark = element.type_wrt_metric.mark
assert mark[:4] == 'Orth', "error!"
mesh = MeshGenerator('quadrangle', p_UL=(1,0), p_DL=(2,1), p_UR=(0,1), p_DR=(1,2))(
[3, 4], EDM=None)
for i in mesh.elements:
element = mesh.elements[i]
mark = element.type_wrt_metric.mark
assert mark[:13] == 'Parallelogram', "error!"
return 1
def test_Mesh_NO2_mesh_coordinate_transformation():
"""
Unittests for the mesh.
"""
if rAnk == mAster_rank:
print("+++ [test_Mesh_NO2_mesh_coordinate_transformation] ...... ", flush=True)
MID = list(DomainInputFinder.___defined_DI___().keys())
if rAnk == mAster_rank:
__ = random.sample(range(0,len(MID)), 4)
meshes = [MID[i] for i in __]
II = random.randint(3,4) # [II, JJ] element layout
JJ = random.randint(2,5) # [II, JJ] element layout
else:
meshes = None
II, JJ = None, None
II, JJ = cOmm.bcast([II, JJ], root=mAster_rank)
meshes = cOmm.bcast(meshes, root=mAster_rank)
for mid in meshes:
# ... generate meshes ...
if mid in ('crazy', 'crazy_periodic'):
if rAnk == mAster_rank:
c = random.uniform(0, 0.3)
else:
c = None
c = cOmm.bcast(c, root=mAster_rank)
mesh = MeshGenerator(mid, c=c)([II, JJ], EDM='debug')
else:
mesh = MeshGenerator(mid)([II, JJ], EDM='debug')
# ... generate r, s, t ...
if rAnk == mAster_rank:
r = np.linspace(-1, 1, random.randint(2,8))
s = np.linspace(random.uniform(-1, -0.9), random.uniform(0.85, 0.99), random.randint(1,7))
else:
r, s = None, None
r, s = cOmm.bcast([r, s], root=mAster_rank)
#... now lets check the coordinate transformation ...
r, s = np.meshgrid(r, s, indexing='ij')
mesh.___TEST_MODE___ = True
mesh.___DEPRECATED_ct___.evaluated_at(r, s)
mapping = mesh.___DEPRECATED_ct___.mapping
JM = mesh.___DEPRECATED_ct___.Jacobian_matrix
J = mesh.___DEPRECATED_ct___.Jacobian
iJM = mesh.___DEPRECATED_ct___.inverse_Jacobian_matrix
iJ = mesh.___DEPRECATED_ct___.inverse_Jacobian
M = mesh.___DEPRECATED_ct___.metric
MM = mesh.___DEPRECATED_ct___.metric_matrix
iMM = mesh.___DEPRECATED_ct___.inverse_metric_matrix
_mapping = mesh.elements.coordinate_transformation.mapping(r, s)
_X = mesh.elements.coordinate_transformation.X(r, s)
_Y = mesh.elements.coordinate_transformation.Y(r, s)
_JM = mesh.elements.coordinate_transformation.Jacobian_matrix(r, s)
_J00 = mesh.elements.coordinate_transformation.J00(r, s)
_J01 = mesh.elements.coordinate_transformation.J01(r, s)
_J10 = mesh.elements.coordinate_transformation.J10(r, s)
_J11 = mesh.elements.coordinate_transformation.J11(r, s)
_J = mesh.elements.coordinate_transformation.Jacobian(r, s, J=_JM)
_M = mesh.elements.coordinate_transformation.metric(r, s, detJ=_J)
_MM = mesh.elements.coordinate_transformation.metric_matrix(r, s, J=_JM)
_iJM = mesh.elements.coordinate_transformation.inverse_Jacobian_matrix(r, s, J=_JM)
_iJ = mesh.elements.coordinate_transformation.inverse_Jacobian(r, s, iJ=_iJM)
_iMM = mesh.elements.coordinate_transformation.inverse_metric_matrix(r, s, iJ=_iJM)
for i in mesh.elements.indices:
ei = mesh.elements[i]
mapping_i = ei.coordinate_transformation.mapping(r, s)
X = ei.coordinate_transformation.X(r, s)
Y = ei.coordinate_transformation.Y(r, s)
np.testing.assert_array_almost_equal(mapping[0][i], X)
np.testing.assert_array_almost_equal(mapping[1][i], Y)
np.testing.assert_array_almost_equal(_mapping[i][0], X)
np.testing.assert_array_almost_equal(_mapping[i][1], Y)
np.testing.assert_array_almost_equal(_X[i], X)
np.testing.assert_array_almost_equal(_Y[i], Y)
np.testing.assert_array_almost_equal(mapping[0][i], mapping_i[0])
np.testing.assert_array_almost_equal(mapping[1][i], mapping_i[1])
JM_i = ei.coordinate_transformation.Jacobian_matrix(r, s)
np.testing.assert_array_almost_equal(JM[0][0][i], JM_i[0][0])
np.testing.assert_array_almost_equal(JM[0][1][i], JM_i[0][1])
np.testing.assert_array_almost_equal(JM[1][0][i], JM_i[1][0])
np.testing.assert_array_almost_equal(JM[1][1][i], JM_i[1][1])
np.testing.assert_array_almost_equal(_JM[i][0][0], JM_i[0][0])
np.testing.assert_array_almost_equal(_JM[i][0][1], JM_i[0][1])
np.testing.assert_array_almost_equal(_JM[i][1][0], JM_i[1][0])
np.testing.assert_array_almost_equal(_JM[i][1][1], JM_i[1][1])
J00 = ei.coordinate_transformation.J00(r, s)
J01 = ei.coordinate_transformation.J01(r, s)
J10 = ei.coordinate_transformation.J10(r, s)
J11 = ei.coordinate_transformation.J11(r, s)
np.testing.assert_array_almost_equal(JM[0][0][i], J00)
np.testing.assert_array_almost_equal(JM[0][1][i], J01)
np.testing.assert_array_almost_equal(JM[1][0][i], J10)
np.testing.assert_array_almost_equal(JM[1][1][i], J11)
np.testing.assert_array_almost_equal(_J00[i], J00)
np.testing.assert_array_almost_equal(_J01[i], J01)
np.testing.assert_array_almost_equal(_J10[i], J10)
np.testing.assert_array_almost_equal(_J11[i], J11)
J0 = ei.coordinate_transformation.J0_(r, s)
J1 = ei.coordinate_transformation.J1_(r, s)
np.testing.assert_array_almost_equal(J0[0], J00)
np.testing.assert_array_almost_equal(J0[1], J01)
np.testing.assert_array_almost_equal(J1[0], J10)
np.testing.assert_array_almost_equal(J1[1], J11)
J_i = ei.coordinate_transformation.Jacobian(r, s)
iJ_i = ei.coordinate_transformation.inverse_Jacobian(r, s)
M_i = ei.coordinate_transformation.metric(r, s)
np.testing.assert_array_almost_equal(J[i], J_i)
np.testing.assert_array_almost_equal(_J[i], J_i)
np.testing.assert_array_almost_equal(iJ[i], iJ_i)
np.testing.assert_array_almost_equal(_iJ[i], iJ_i)
np.testing.assert_array_almost_equal(M[i], M_i)
np.testing.assert_array_almost_equal(_M[i], M_i)
iJM_i = ei.coordinate_transformation.inverse_Jacobian_matrix(r, s)
np.testing.assert_array_almost_equal(iJM[0][0][i], iJM_i[0][0])
np.testing.assert_array_almost_equal(iJM[0][1][i], iJM_i[0][1])
np.testing.assert_array_almost_equal(iJM[1][0][i], iJM_i[1][0])
np.testing.assert_array_almost_equal(iJM[1][1][i], iJM_i[1][1])
np.testing.assert_array_almost_equal(_iJM[i][0][0], iJM_i[0][0])
np.testing.assert_array_almost_equal(_iJM[i][0][1], iJM_i[0][1])
np.testing.assert_array_almost_equal(_iJM[i][1][0], iJM_i[1][0])
np.testing.assert_array_almost_equal(_iJM[i][1][1], iJM_i[1][1])
MM_i = ei.coordinate_transformation.metric_matrix(r, s)
iMM_i = ei.coordinate_transformation.inverse_metric_matrix(r, s)
np.testing.assert_array_almost_equal(MM[0][0][i], MM_i[0][0])
np.testing.assert_array_almost_equal(MM[0][1][i], MM_i[0][1])
np.testing.assert_array_almost_equal(MM[1][0][i], MM_i[1][0])
np.testing.assert_array_almost_equal(MM[1][1][i], MM_i[1][1])
np.testing.assert_array_almost_equal(_MM[i][0][0], MM_i[0][0])
np.testing.assert_array_almost_equal(_MM[i][0][1], MM_i[0][1])
np.testing.assert_array_almost_equal(_MM[i][1][0], MM_i[1][0])
np.testing.assert_array_almost_equal(_MM[i][1][1], MM_i[1][1])
np.testing.assert_array_almost_equal(iMM[0][0][i], iMM_i[0][0])
np.testing.assert_array_almost_equal(iMM[0][1][i], iMM_i[0][1])
np.testing.assert_array_almost_equal(iMM[1][0][i], iMM_i[1][0])
np.testing.assert_array_almost_equal(iMM[1][1][i], iMM_i[1][1])
np.testing.assert_array_almost_equal(_iMM[i][0][0], iMM_i[0][0])
np.testing.assert_array_almost_equal(_iMM[i][0][1], iMM_i[0][1])
np.testing.assert_array_almost_equal(_iMM[i][1][0], iMM_i[1][0])
np.testing.assert_array_almost_equal(_iMM[i][1][1], iMM_i[1][1])
return 1
def test_Mesh_NO3_mesh_coordinate_transformation_QUAD():
"""
Unittests for the mesh.
"""
if rAnk == mAster_rank:
print("+++ [test_Mesh_NO3_mesh_coordinate_transformation_QUAD] ...... ", flush=True)
MID = list(DomainInputFinder.___defined_DI___().keys())
if rAnk == mAster_rank:
__ = random.sample(range(0,len(MID)), 3)
meshes = [MID[i] for i in __]
II = random.randint(3,4) # [II, JJ] element layout
JJ = random.randint(2,3) # [II, JJ] element layout
else:
meshes = None
II, JJ = None, None
II, JJ = cOmm.bcast([II, JJ], root=mAster_rank)
meshes = cOmm.bcast(meshes, root=mAster_rank)
for mid in meshes:
# ... generate meshes ...
if mid in ('crazy', 'crazy_periodic'):
if rAnk == mAster_rank:
c = random.uniform(0, 0.3)
else:
c = None
c = cOmm.bcast(c, root=mAster_rank)
mesh = MeshGenerator(mid, c=c)([II, JJ], EDM='debug')
else:
mesh = MeshGenerator(mid)([II, JJ], EDM='debug')
if rAnk == mAster_rank:
quad_degree = [random.randint(3,5),random.randint(2,3)]
quad_type = ['Gauss', 'Lobatto'][random.randint(0,1)]
else:
quad_degree, quad_type = None, None
quad_degree, quad_type = cOmm.bcast([quad_degree, quad_type], root=mAster_rank)
quad_nodes, quad_weights = Quadrature(quad_degree, category=quad_type).quad
r, s = np.meshgrid(*quad_nodes, indexing='ij')
_mapping = mesh.elements.coordinate_transformation.mapping(r, s)
_X = mesh.elements.coordinate_transformation.X(r, s)
_Y = mesh.elements.coordinate_transformation.Y(r, s)
_JM = mesh.elements.coordinate_transformation.Jacobian_matrix(r, s)
_J00 = mesh.elements.coordinate_transformation.J00(r, s)
_J01 = mesh.elements.coordinate_transformation.J01(r, s)
_J10 = mesh.elements.coordinate_transformation.J10(r, s)
_J11 = mesh.elements.coordinate_transformation.J11(r, s)
_J = mesh.elements.coordinate_transformation.Jacobian(r, s, J=_JM)
_J_ = mesh.elements.coordinate_transformation.Jacobian(r, s)
_M = mesh.elements.coordinate_transformation.metric(r, s, detJ=_J)
_M_ = mesh.elements.coordinate_transformation.metric(r, s)
_MM = mesh.elements.coordinate_transformation.metric_matrix(r, s, J=_JM)
_MM_ = mesh.elements.coordinate_transformation.metric_matrix(r, s)
_iJM = mesh.elements.coordinate_transformation.inverse_Jacobian_matrix(r, s, J=_JM)
_iJM_ = mesh.elements.coordinate_transformation.inverse_Jacobian_matrix(r, s)
_iJ = mesh.elements.coordinate_transformation.inverse_Jacobian(r, s, iJ=_iJM)
_iJ_ = mesh.elements.coordinate_transformation.inverse_Jacobian(r, s)
_iMM = mesh.elements.coordinate_transformation.inverse_metric_matrix(r, s, iJ=_iJM)
_iMM_ = mesh.elements.coordinate_transformation.inverse_metric_matrix(r, s)
for i in mesh.elements:
np.testing.assert_array_equal(_J[i], _J_[i])
np.testing.assert_array_equal(_M[i], _M_[i])
np.testing.assert_array_equal(_MM[i], _MM_[i])
np.testing.assert_array_equal(_iJM[i], _iJM_[i])
np.testing.assert_array_equal(_iJ[i], _iJ_[i])
np.testing.assert_array_equal(_iMM[i], _iMM_[i])
Q3_mapping = mesh.elements.coordinate_transformation.QUAD_2d.mapping(quad_degree, quad_type)
Q3_X = mesh.elements.coordinate_transformation.QUAD_2d.X(quad_degree, quad_type)
Q3_Y = mesh.elements.coordinate_transformation.QUAD_2d.Y(quad_degree, quad_type)
Q3_JM = mesh.elements.coordinate_transformation.QUAD_2d.Jacobian_matrix(quad_degree, quad_type)
Q3_J00 = mesh.elements.coordinate_transformation.QUAD_2d.J00(quad_degree, quad_type)
Q3_J01 = mesh.elements.coordinate_transformation.QUAD_2d.J01(quad_degree, quad_type)
Q3_J10 = mesh.elements.coordinate_transformation.QUAD_2d.J10(quad_degree, quad_type)
Q3_J11 = mesh.elements.coordinate_transformation.QUAD_2d.J11(quad_degree, quad_type)
Q3_J = mesh.elements.coordinate_transformation.QUAD_2d.Jacobian(quad_degree, quad_type)
Q3_M = mesh.elements.coordinate_transformation.QUAD_2d.metric(quad_degree, quad_type)
Q3_MM = mesh.elements.coordinate_transformation.QUAD_2d.metric_matrix(quad_degree, quad_type)
Q3_iJM = mesh.elements.coordinate_transformation.QUAD_2d.inverse_Jacobian_matrix(quad_degree, quad_type)
Q3_iJ = mesh.elements.coordinate_transformation.QUAD_2d.inverse_Jacobian(quad_degree, quad_type)
Q3_iMM = mesh.elements.coordinate_transformation.QUAD_2d.inverse_metric_matrix(quad_degree, quad_type)
for i in mesh.elements:
np.testing.assert_array_almost_equal(_mapping[i], Q3_mapping[i])
np.testing.assert_array_almost_equal(_X[i], Q3_X[i])
np.testing.assert_array_almost_equal(_Y[i], Q3_Y[i])
for j in range(2):
for k in range(2):
np.testing.assert_array_almost_equal(_JM[i][j][k], Q3_JM[i][j][k])
np.testing.assert_array_almost_equal(_J00[i], Q3_J00[i])
np.testing.assert_array_almost_equal(_J01[i], Q3_J01[i])
np.testing.assert_array_almost_equal(_J10[i], Q3_J10[i])
np.testing.assert_array_almost_equal(_J11[i], Q3_J11[i])
np.testing.assert_array_almost_equal(_J[i], Q3_J[i])
np.testing.assert_array_almost_equal(_M[i], Q3_M[i])
np.testing.assert_array_almost_equal(_MM[i], Q3_MM[i])
np.testing.assert_array_almost_equal(_iJM[i], Q3_iJM[i])
np.testing.assert_array_almost_equal(_iJ[i], Q3_iJ[i])
np.testing.assert_array_almost_equal(_iMM[i], Q3_iMM[i])
r = r.ravel('F')
s = s.ravel('F')
_mapping = mesh.elements.coordinate_transformation.mapping(r, s)
_X = mesh.elements.coordinate_transformation.X(r, s)
_Y = mesh.elements.coordinate_transformation.Y(r, s)
_JM = mesh.elements.coordinate_transformation.Jacobian_matrix(r, s)
_J00 = mesh.elements.coordinate_transformation.J00(r, s)
_J01 = mesh.elements.coordinate_transformation.J01(r, s)
_J10 = mesh.elements.coordinate_transformation.J10(r, s)
_J11 = mesh.elements.coordinate_transformation.J11(r, s)
_J = mesh.elements.coordinate_transformation.Jacobian(r, s, J=_JM)
_J_ = mesh.elements.coordinate_transformation.Jacobian(r, s)
_M = mesh.elements.coordinate_transformation.metric(r, s, detJ=_J)
_M_ = mesh.elements.coordinate_transformation.metric(r, s)
_MM = mesh.elements.coordinate_transformation.metric_matrix(r, s, J=_JM)
_MM_ = mesh.elements.coordinate_transformation.metric_matrix(r, s)
_iJM = mesh.elements.coordinate_transformation.inverse_Jacobian_matrix(r, s, J=_JM)
_iJM_ = mesh.elements.coordinate_transformation.inverse_Jacobian_matrix(r, s)
_iJ = mesh.elements.coordinate_transformation.inverse_Jacobian(r, s, iJ=_iJM)
_iJ_ = mesh.elements.coordinate_transformation.inverse_Jacobian(r, s)
_iMM = mesh.elements.coordinate_transformation.inverse_metric_matrix(r, s, iJ=_iJM)
_iMM_ = mesh.elements.coordinate_transformation.inverse_metric_matrix(r, s)
for i in mesh.elements:
np.testing.assert_array_equal(_J[i], _J_[i])
np.testing.assert_array_equal(_M[i], _M_[i])
np.testing.assert_array_equal(_MM[i], _MM_[i])
np.testing.assert_array_equal(_iJM[i], _iJM_[i])
np.testing.assert_array_equal(_iJ[i], _iJ_[i])
np.testing.assert_array_equal(_iMM[i], _iMM_[i])
Q3_mapping = mesh.elements.coordinate_transformation.QUAD_1d.mapping(quad_degree, quad_type)
Q3_X = mesh.elements.coordinate_transformation.QUAD_1d.X(quad_degree, quad_type)
Q3_Y = mesh.elements.coordinate_transformation.QUAD_1d.Y(quad_degree, quad_type)
Q3_JM = mesh.elements.coordinate_transformation.QUAD_1d.Jacobian_matrix(quad_degree, quad_type)
Q3_J00 = mesh.elements.coordinate_transformation.QUAD_1d.J00(quad_degree, quad_type)
Q3_J01 = mesh.elements.coordinate_transformation.QUAD_1d.J01(quad_degree, quad_type)
Q3_J10 = mesh.elements.coordinate_transformation.QUAD_1d.J10(quad_degree, quad_type)
Q3_J11 = mesh.elements.coordinate_transformation.QUAD_1d.J11(quad_degree, quad_type)
Q3_J = mesh.elements.coordinate_transformation.QUAD_1d.Jacobian(quad_degree, quad_type)
Q3_M = mesh.elements.coordinate_transformation.QUAD_1d.metric(quad_degree, quad_type)
Q3_MM = mesh.elements.coordinate_transformation.QUAD_1d.metric_matrix(quad_degree, quad_type)
Q3_iJM = mesh.elements.coordinate_transformation.QUAD_1d.inverse_Jacobian_matrix(quad_degree, quad_type)
Q3_iJ = mesh.elements.coordinate_transformation.QUAD_1d.inverse_Jacobian(quad_degree, quad_type)
Q3_iMM = mesh.elements.coordinate_transformation.QUAD_1d.inverse_metric_matrix(quad_degree, quad_type)
for i in mesh.elements:
np.testing.assert_array_almost_equal(_mapping[i], Q3_mapping[i])
np.testing.assert_array_almost_equal(_X[i], Q3_X[i])
np.testing.assert_array_almost_equal(_Y[i], Q3_Y[i])
for j in range(2):
for k in range(2):
np.testing.assert_array_almost_equal(_JM[i][j][k], Q3_JM[i][j][k])
np.testing.assert_array_almost_equal(_J00[i], Q3_J00[i])
np.testing.assert_array_almost_equal(_J01[i], Q3_J01[i])
np.testing.assert_array_almost_equal(_J10[i], Q3_J10[i])
np.testing.assert_array_almost_equal(_J11[i], Q3_J11[i])
np.testing.assert_array_almost_equal(_J[i], Q3_J[i])
np.testing.assert_array_almost_equal(_M[i], Q3_M[i])
np.testing.assert_array_almost_equal(_MM[i], Q3_MM[i])
np.testing.assert_array_almost_equal(_iJM[i], Q3_iJM[i])
np.testing.assert_array_almost_equal(_iJ[i], Q3_iJ[i])
np.testing.assert_array_almost_equal(_iMM[i], Q3_iMM[i])
return 1
def test_Mesh_NO4_mesh_trace_topology():
"""Unittests for the mesh."""
if rAnk == mAster_rank:
print("+++ [test_Mesh_NO4_mesh_trace_topology] ...... ", flush=True)
MID = list(DomainInputFinder.___defined_DI___().keys())
if rAnk == mAster_rank:
__ = random.sample(range(0,len(MID)), 4)
meshes = [MID[i] for i in __]
II = random.randint(3,4) # [II, JJ] element layout
JJ = random.randint(2,5) # [II, JJ] element layout
else:
meshes = None
II, JJ = None, None
II, JJ = cOmm.bcast([II, JJ], root=mAster_rank)
meshes = cOmm.bcast(meshes, root=mAster_rank)
for mid in meshes:
# ... generate meshes ...
if mid in ('crazy', 'crazy_periodic'):
if rAnk == mAster_rank:
c = random.uniform(0, 0.3)
else:
c = None
c = cOmm.bcast(c, root=mAster_rank)
mesh = MeshGenerator(mid, c=c)([II, JJ], EDM='debug')
else:
mesh = MeshGenerator(mid)([II, JJ], EDM='debug')
elements = mesh.elements
SD = list()
MAP = mesh.trace.elements.map
for ele_i in MAP:
for i in MAP[ele_i]:
assert i in mesh.trace.elements
for i in mesh.trace.elements:
e = mesh.trace.elements[i]
assert e.i == i
shared_with_core = e.shared_with_core
assert e.CHARACTERISTIC_element in elements
if shared_with_core is None:
pass
else:
SD.extend([rAnk, shared_with_core])
if e.IS.on_mesh_boundary:
assert e.positions[1] in mesh.domain.boundaries.names
if e.IS.on_periodic_boundary:
assert not e.IS.on_mesh_boundary
assert e.positions[1][0] in '0123456789'
SD = cOmm.gather(SD, root=sEcretary_rank)
if rAnk == sEcretary_rank:
sd = list()
for SDi in SD:
sd.extend(SDi)
sd_SET =set(sd)
for i in sd_SET:
assert sd.count(i) % 2 == 0
mesh = MeshGenerator('cic')([3, 2], EDM='debug')
MAP = mesh.trace.elements.map
if 1 in MAP:
assert MAP[1] == [1, 4, 5, 6]
e = mesh.trace.elements[1]
assert e.positions ==('0D', '1U')
assert e.CHARACTERISTIC_position in e.positions
assert str(e.CHARACTERISTIC_element) + e.CHARACTERISTIC_edge == e.CHARACTERISTIC_position
assert e.IS.on_periodic_boundary is False
assert e.IS.on_mesh_boundary is False
if 17 in MAP:
assert MAP[17] == [43, 45, 40, 46]
e = mesh.trace.elements[45]
assert e.positions ==('17D', '21U')
assert e.CHARACTERISTIC_position in e.positions
assert str(e.CHARACTERISTIC_element) + e.CHARACTERISTIC_edge == e.CHARACTERISTIC_position
assert e.IS.on_periodic_boundary is False
assert e.IS.on_mesh_boundary is False
e = mesh.trace.elements[46]
assert e.positions ==('17R', 'Down')
assert e.CHARACTERISTIC_position == '17R'
assert e.CHARACTERISTIC_position in e.positions
assert str(e.CHARACTERISTIC_element) + e.CHARACTERISTIC_edge == e.CHARACTERISTIC_position
assert e.IS.on_periodic_boundary is False
assert e.IS.on_mesh_boundary
if 33 in MAP:
assert MAP[33] == [81, 82, 76, 83]
e = mesh.trace.elements[81]
assert e.positions ==('33U', 'Upper')
assert e.CHARACTERISTIC_position == '33U'
assert e.CHARACTERISTIC_position in e.positions
assert str(e.CHARACTERISTIC_element) + e.CHARACTERISTIC_edge == e.CHARACTERISTIC_position
assert e.IS.on_periodic_boundary is False
assert e.IS.on_mesh_boundary
if 27 in MAP: assert MAP[27] == [67, 68, 62, 69]
if 28 in MAP: assert MAP[28] == [68, 70, 64, 71]
if 29 in MAP: assert MAP[29] == [70, 72, 66, 73]
return 1
if __name__ == '__main__':
# mpiexec -n 4 python objects\CSCG\_2d\__tests__\unittests\mesh.py
test_Mesh_NO1_mesh_topology()
# test_Mesh_NO2_mesh_coordinate_transformation()
# test_Mesh_NO3_mesh_coordinate_transformation_QUAD()
# test_Mesh_NO4_mesh_trace_topology() | 49.135185 | 112 | 0.639204 | 3,824 | 26,533 | 4.142782 | 0.069822 | 0.159071 | 0.093738 | 0.124984 | 0.826916 | 0.799647 | 0.764234 | 0.731978 | 0.711274 | 0.685078 | 0 | 0.043551 | 0.230656 | 26,533 | 540 | 113 | 49.135185 | 0.732523 | 0.022199 | 0 | 0.49115 | 0 | 0 | 0.031261 | 0.013254 | 0 | 0 | 0 | 0 | 0.358407 | 1 | 0.00885 | false | 0.002212 | 0.013274 | 0 | 0.030973 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
8f0594eac4af907825293f776ba0a98fcd683d28 | 172 | py | Python | src/sensors/__init__.py | erewhon/sensors | be17297f454a7fcede8a86b614df77576d82baef | [
"BSD-2-Clause"
] | null | null | null | src/sensors/__init__.py | erewhon/sensors | be17297f454a7fcede8a86b614df77576d82baef | [
"BSD-2-Clause"
] | null | null | null | src/sensors/__init__.py | erewhon/sensors | be17297f454a7fcede8a86b614df77576d82baef | [
"BSD-2-Clause"
] | null | null | null | from .bmp280 import BMP280
from .ccs811 import CCS811
from .ltr390 import LTR390
from .pm25 import PM25
from .pm25_usb import PM25USB
from .scd30 import SCD30
| 24.571429 | 29 | 0.75 | 25 | 172 | 5.12 | 0.36 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0.215116 | 172 | 6 | 30 | 28.666667 | 0.725926 | 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 | 1 | 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 | 6 |
8f1edb6f27582c33a364997fef6c0365dc7b156c | 58,295 | py | Python | tests/test_api.py | hamstap85/green-eggs | dfeb676ce8814927d7998c42cb377c83cec916a5 | [
"0BSD"
] | 3 | 2021-11-12T22:47:12.000Z | 2022-02-21T22:47:30.000Z | tests/test_api.py | hamstap85/green-eggs | dfeb676ce8814927d7998c42cb377c83cec916a5 | [
"0BSD"
] | 14 | 2021-09-10T03:39:14.000Z | 2022-03-07T01:34:50.000Z | tests/test_api.py | hamstap85/green-eggs | dfeb676ce8814927d7998c42cb377c83cec916a5 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from pytest_mock import MockerFixture
from green_eggs.api import TwitchApi
from tests.fixtures import * # noqa
@pytest.mark.asyncio
async def test_basic(api: TwitchApi):
result = await api._request('method', 'path')
api._session.request.assert_called_once_with('method', 'base/path', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_params(api: TwitchApi):
result = await api._request('method', 'path', params=dict(a=1, b=['hello', 'world']))
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'method', 'base/path?a=1&b=hello&b=world', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_empty_params(api: TwitchApi):
result = await api._request('method', 'path', params=dict())
api._session.request.assert_called_once_with('method', 'base/path', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_body(api: TwitchApi):
result = await api._request('method', 'path', data=dict(a=1, b=['hello', 'world']))
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'method', 'base/path', json=dict(a=1, b=['hello', 'world'])
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_raise(api: TwitchApi, mocker: MockerFixture):
mocker.patch('tests.MockResponse.raise_for_status', side_effect=Exception('Bad status'))
try:
await api._request('method', 'path')
except Exception as e:
assert e.args == ('Bad status',)
else:
assert False, 'Did not raise'
api._session.request.assert_called_once_with('method', 'base/path', json=None) # type: ignore[attr-defined]
@pytest.mark.asyncio
async def test_no_raise(api: TwitchApi, mocker: MockerFixture):
mocker.patch('tests.MockResponse.raise_for_status', side_effect=Exception('Bad status'))
try:
result = await api._request('method', 'path', raise_for_status=False)
except Exception as e:
assert False, e
else:
api._session.request.assert_called_once_with('method', 'base/path', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_start_commercial(api: TwitchApi):
result = await api.start_commercial(broadcaster_id='1', length=2)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/channels/commercial', json={'broadcaster_id': '1', 'length': 2}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_analytics(api: TwitchApi):
result = await api.get_extension_analytics(
after='1', ended_at='2', extension_id='3', first=4, started_at='5', type_='6'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/analytics/extensions?after=1&ended_at=2&extension_id=3&first=4&started_at=5&type=6', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_analytics_exclude_empty(api: TwitchApi):
result = await api.get_extension_analytics()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/analytics/extensions', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_game_analytics(api: TwitchApi):
result = await api.get_game_analytics(after='1', ended_at='2', first=3, game_id='4', started_at='5', type_='6')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/analytics/games?after=1&ended_at=2&first=3&game_id=4&started_at=5&type=6', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_game_analytics_exclude_empty(api: TwitchApi):
result = await api.get_game_analytics()
api._session.request.assert_called_once_with('GET', 'base/analytics/games', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_bits_leaderboard(api: TwitchApi):
result = await api.get_bits_leaderboard(count=1, period='2', started_at='3', user_id='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/bits/leaderboard?count=1&period=2&started_at=3&user_id=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_bits_leaderboard_exclude_empty(api: TwitchApi):
result = await api.get_bits_leaderboard()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/bits/leaderboard', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_cheermotes(api: TwitchApi):
result = await api.get_cheermotes(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/bits/cheermotes?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_cheermotes_exclude_empty(api: TwitchApi):
result = await api.get_cheermotes()
api._session.request.assert_called_once_with('GET', 'base/bits/cheermotes', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_transactions(api: TwitchApi):
result = await api.get_extension_transactions(extension_id='1', id_=['2', 'also'], after='3', first=4)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/transactions?extension_id=1&id=2&id=also&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_transactions_exclude_empty(api: TwitchApi):
result = await api.get_extension_transactions(extension_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/transactions?extension_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_information(api: TwitchApi):
result = await api.get_channel_information(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/channels?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_modify_channel_information(api: TwitchApi):
result = await api.modify_channel_information(
broadcaster_id='1', game_id='2', broadcaster_language='3', title='4', delay=5
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH',
'base/channels?broadcaster_id=1',
json={'broadcaster_language': '3', 'delay': 5, 'game_id': '2', 'title': '4'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_modify_channel_information_exclude_empty(api: TwitchApi):
result = await api.modify_channel_information(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/channels?broadcaster_id=1', json=dict()
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_editors(api: TwitchApi):
result = await api.get_channel_editors(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/channels/editors?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_custom_rewards(api: TwitchApi):
result = await api.create_custom_rewards(
broadcaster_id='1',
title='2',
cost=3,
prompt='4',
is_enabled=True,
background_color='6',
is_user_input_required=False,
is_max_per_stream_enabled=True,
max_per_stream=9,
is_max_per_user_per_stream_enabled=False,
max_per_user_per_stream=11,
is_global_cooldown_enabled=True,
global_cooldown_seconds=13,
should_redemptions_skip_request_queue=False,
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/channel_points/custom_rewards?broadcaster_id=1',
json={
'title': '2',
'cost': 3,
'prompt': '4',
'is_enabled': True,
'background_color': '6',
'is_user_input_required': False,
'is_max_per_stream_enabled': True,
'max_per_stream': 9,
'is_max_per_user_per_stream_enabled': False,
'max_per_user_per_stream': 11,
'is_global_cooldown_enabled': True,
'global_cooldown_seconds': 13,
'should_redemptions_skip_request_queue': False,
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_custom_rewards_exclude_empty(api: TwitchApi):
result = await api.create_custom_rewards(broadcaster_id='1', title='2', cost=3)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/channel_points/custom_rewards?broadcaster_id=1', json={'cost': 3, 'title': '2'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_delete_custom_reward(api: TwitchApi):
result = await api.delete_custom_reward(broadcaster_id='1', id_='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'DELETE', 'base/channel_points/custom_rewards?broadcaster_id=1&id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_custom_reward(api: TwitchApi):
result = await api.get_custom_reward(broadcaster_id='1', id_=['2', 'also'], only_manageable_rewards=True)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET',
'base/channel_points/custom_rewards?broadcaster_id=1&id=2&id=also&only_manageable_rewards=True',
json=None,
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_custom_reward_exclude_empty(api: TwitchApi):
result = await api.get_custom_reward(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/channel_points/custom_rewards?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_custom_reward_redemption(api: TwitchApi):
result = await api.get_custom_reward_redemption(
broadcaster_id='1', reward_id='2', id_=['3', 'also'], status='4', sort='5', after='6', first=7
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET',
'base/channel_points/custom_rewards/redemptions'
'?broadcaster_id=1&reward_id=2&id=3&id=also&status=4&sort=5&after=6&first=7',
json=None,
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_custom_reward_redemption_exclude_empty(api: TwitchApi):
result = await api.get_custom_reward_redemption(broadcaster_id='1', reward_id='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/channel_points/custom_rewards/redemptions?broadcaster_id=1&reward_id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_custom_reward(api: TwitchApi):
result = await api.update_custom_reward(
broadcaster_id='1',
id_='2',
title='3',
prompt='4',
cost=5,
background_color='6',
is_enabled=True,
is_user_input_required=False,
is_max_per_stream_enabled=True,
max_per_stream=10,
is_max_per_user_per_stream_enabled=False,
max_per_user_per_stream=12,
is_global_cooldown_enabled=True,
global_cooldown_seconds=14,
is_paused=False,
should_redemptions_skip_request_queue=True,
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH',
'base/channel_points/custom_rewards?broadcaster_id=1&id=2',
json={
'title': '3',
'prompt': '4',
'cost': 5,
'background_color': '6',
'is_enabled': True,
'is_user_input_required': False,
'is_max_per_stream_enabled': True,
'max_per_stream': 10,
'is_max_per_user_per_stream_enabled': False,
'max_per_user_per_stream': 12,
'is_global_cooldown_enabled': True,
'global_cooldown_seconds': 14,
'is_paused': False,
'should_redemptions_skip_request_queue': True,
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_custom_reward_exclude_empty(api: TwitchApi):
result = await api.update_custom_reward(broadcaster_id='1', id_='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/channel_points/custom_rewards?broadcaster_id=1&id=2', json=dict()
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_redemption_status(api: TwitchApi):
result = await api.update_redemption_status(id_=['1', 'also'], broadcaster_id='2', reward_id='3', status='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH',
'base/channel_points/custom_rewards/redemptions?id=1&id=also&broadcaster_id=2&reward_id=3',
json={'status': '4'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_emotes(api: TwitchApi):
result = await api.get_channel_emotes(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/chat/emotes?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_global_emotes(api: TwitchApi):
result = await api.get_global_emotes()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/chat/emotes/global', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_emote_sets(api: TwitchApi):
result = await api.get_emote_sets(emote_set_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/chat/emotes/set?emote_set_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_chat_badges(api: TwitchApi):
result = await api.get_channel_chat_badges(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/chat/badges?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_global_chat_badges(api: TwitchApi):
result = await api.get_global_chat_badges()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/chat/badges/global', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_clip(api: TwitchApi):
result = await api.create_clip(broadcaster_id='1', has_delay=True)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/clips?broadcaster_id=1&has_delay=True', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_clip_exclude_empty(api: TwitchApi):
result = await api.create_clip(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/clips?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_clips(api: TwitchApi):
result = await api.get_clips(
broadcaster_id='1', game_id='2', id_=['3', 'also'], after='4', before='5', ended_at='6', first=7, started_at='8'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET',
'base/clips?broadcaster_id=1&game_id=2&id=3&id=also&after=4&before=5&ended_at=6&first=7&started_at=8',
json=None,
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_clips_exclude_empty(api: TwitchApi):
result = await api.get_clips(broadcaster_id='1', game_id='2', id_=['3', 'also'])
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/clips?broadcaster_id=1&game_id=2&id=3&id=also', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_code_status(api: TwitchApi):
result = await api.get_code_status()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/entitlements/codes', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_drops_entitlements(api: TwitchApi):
result = await api.get_drops_entitlements(
id_='1', user_id='2', game_id='3', fulfillment_status='4', after='5', first=6
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/entitlements/drops?id=1&user_id=2&game_id=3&fulfillment_status=4&after=5&first=6', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_drops_entitlements_exclude_empty(api: TwitchApi):
result = await api.get_drops_entitlements()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/entitlements/drops', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_drops_entitlements(api: TwitchApi):
result = await api.update_drops_entitlements(entitlement_ids=['1', 'also'], fulfillment_status='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/entitlements/drops?entitlement_ids=1&entitlement_ids=also&fulfillment_status=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_drops_entitlements_exclude_empty(api: TwitchApi):
result = await api.update_drops_entitlements()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/entitlements/drops', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_redeem_code(api: TwitchApi):
result = await api.redeem_code(code='1', user_id=2)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/entitlements/codes?code=1&user_id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_redeem_code_exclude_empty(api: TwitchApi):
result = await api.redeem_code()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/entitlements/codes', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_configuration_segment(api: TwitchApi):
result = await api.get_extension_configuration_segment(broadcaster_id='1', extension_id='2', segment='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/configurations?broadcaster_id=1&extension_id=2&segment=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_set_extension_configuration_segment(api: TwitchApi):
result = await api.set_extension_configuration_segment(
extension_id='1', segment='2', broadcaster_id='3', content='4', version='5'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT',
'base/extensions/configurations',
json={'extension_id': '1', 'segment': '2', 'broadcaster_id': '3', 'content': '4', 'version': '5'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_set_extension_configuration_segment_exclude_empty(api: TwitchApi):
result = await api.set_extension_configuration_segment(extension_id='1', segment='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/extensions/configurations', json={'extension_id': '1', 'segment': '2'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_set_extension_required_configuration(api: TwitchApi):
result = await api.set_extension_required_configuration(
broadcaster_id='1', extension_id='2', extension_version='3', configuration_version='4'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT',
'base/extensions/required_configuration?broadcaster_id=1',
json={'configuration_version': '4', 'extension_id': '2', 'extension_version': '3'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_send_extension_pubsub_message(api: TwitchApi):
result = await api.send_extension_pubsub_message(
target=['1', 'also'], broadcaster_id='2', is_global_broadcast=True, message='4'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/extensions/pubsub',
json={'broadcaster_id': '2', 'is_global_broadcast': True, 'message': '4', 'target': ['1', 'also']},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_live_channels(api: TwitchApi):
result = await api.get_live_channels(extension_id='1', first=2, after='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/live?extension_id=1&first=2&after=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_live_channels_exclude_empty(api: TwitchApi):
result = await api.get_live_channels(extension_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/live?extension_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_secrets(api: TwitchApi):
result = await api.get_extension_secrets()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/jwt/secrets', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_extension_secret(api: TwitchApi):
result = await api.create_extension_secret(delay=1)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/extensions/jwt/secrets?delay=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_extension_secret_exclude_empty(api: TwitchApi):
result = await api.create_extension_secret()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/extensions/jwt/secrets', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_send_extension_chat_message(api: TwitchApi):
result = await api.send_extension_chat_message(
broadcaster_id='1', text='2', extension_id='3', extension_version='4'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/extensions/chat?broadcaster_id=1',
json={'extension_id': '3', 'extension_version': '4', 'text': '2'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extensions(api: TwitchApi):
result = await api.get_extensions(extension_id='1', extension_version='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions?extension_id=1&extension_version=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extensions_exclude_empty(api: TwitchApi):
result = await api.get_extensions(extension_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions?extension_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_released_extensions(api: TwitchApi):
result = await api.get_released_extensions(extension_id='1', extension_version='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/released?extension_id=1&extension_version=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_released_extensions_exclude_empty(api: TwitchApi):
result = await api.get_released_extensions(extension_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/extensions/released?extension_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_bits_products(api: TwitchApi):
result = await api.get_extension_bits_products(should_include_all=True)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/bits/extensions?should_include_all=True', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_extension_bits_products_exclude_empty(api: TwitchApi):
result = await api.get_extension_bits_products()
api._session.request.assert_called_once_with('GET', 'base/bits/extensions', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_extension_bits_product(api: TwitchApi):
result = await api.update_extension_bits_product(
sku='1', cost=dict(key=2), display_name='3', in_development=True, expiration='5', is_broadcast=False
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT',
'base/bits/extensions',
json={
'sku': '1',
'cost': {'key': 2},
'display_name': '3',
'in_development': True,
'expiration': '5',
'is_broadcast': False,
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_extension_bits_product_exclude_empty(api: TwitchApi):
result = await api.update_extension_bits_product(sku='1', cost=dict(key=2), display_name='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/bits/extensions', json={'cost': {'key': 2}, 'display_name': '3', 'sku': '1'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_eventsub_subscription(api: TwitchApi):
result = await api.create_eventsub_subscription(
type_='1', version='2', condition=dict(key=3), transport=dict(key=4)
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/eventsub/subscriptions',
json={'condition': {'key': 3}, 'transport': {'key': 4}, 'type': '1', 'version': '2'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_delete_eventsub_subscription(api: TwitchApi):
result = await api.delete_eventsub_subscription(id_='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'DELETE', 'base/eventsub/subscriptions?id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_eventsub_subscriptions(api: TwitchApi):
result = await api.get_eventsub_subscriptions(status='1', type_='2', after='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/eventsub/subscriptions?status=1&type=2&after=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_eventsub_subscriptions_exclude_empty(api: TwitchApi):
result = await api.get_eventsub_subscriptions()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/eventsub/subscriptions', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_top_games(api: TwitchApi):
result = await api.get_top_games(after='1', before='2', first=3)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/games/top?after=1&before=2&first=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_top_games_exclude_empty(api: TwitchApi):
result = await api.get_top_games()
api._session.request.assert_called_once_with('GET', 'base/games/top', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_games(api: TwitchApi):
result = await api.get_games(id_='1', name='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/games?id=1&name=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_creator_goals(api: TwitchApi):
result = await api.get_creator_goals(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/goals?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_hype_train_events(api: TwitchApi):
result = await api.get_hype_train_events(broadcaster_id='1', first=2, id_='3', cursor='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/hypetrain/events?broadcaster_id=1&first=2&id=3&cursor=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_hype_train_events_exclude_empty(api: TwitchApi):
result = await api.get_hype_train_events(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/hypetrain/events?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_check_automod_status(api: TwitchApi):
result = await api.check_automod_status(broadcaster_id='1', msg_id='2', msg_text='3', user_id='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/moderation/enforcements/status?broadcaster_id=1',
json={'msg_id': '2', 'msg_text': '3', 'user_id': '4'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_manage_held_automod_messages(api: TwitchApi):
result = await api.manage_held_automod_messages(user_id='1', msg_id='2', action='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/moderation/automod/message', json={'action': '3', 'msg_id': '2', 'user_id': '1'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_banned_events(api: TwitchApi):
result = await api.get_banned_events(broadcaster_id='1', user_id=['2', 'also'], after='3', first='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/banned/events?broadcaster_id=1&user_id=2&user_id=also&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_banned_events_exclude_empty(api: TwitchApi):
result = await api.get_banned_events(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/banned/events?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_banned_users(api: TwitchApi):
result = await api.get_banned_users(broadcaster_id='1', user_id=['2', 'also'], first='3', after='4', before='5')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/banned?broadcaster_id=1&user_id=2&user_id=also&first=3&after=4&before=5', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_banned_users_exclude_empty(api: TwitchApi):
result = await api.get_banned_users(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/banned?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_moderators(api: TwitchApi):
result = await api.get_moderators(broadcaster_id='1', user_id=['2', 'also'], first='3', after='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/moderators?broadcaster_id=1&user_id=2&user_id=also&first=3&after=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_moderators_exclude_empty(api: TwitchApi):
result = await api.get_moderators(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/moderators?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_moderator_events(api: TwitchApi):
result = await api.get_moderator_events(broadcaster_id='1', user_id=['2', 'also'], after='3', first='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/moderators/events?broadcaster_id=1&user_id=2&user_id=also&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_moderator_events_exclude_empty(api: TwitchApi):
result = await api.get_moderator_events(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/moderation/moderators/events?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_polls(api: TwitchApi):
result = await api.get_polls(broadcaster_id='1', id_=['2', 'also'], after='3', first='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/polls?broadcaster_id=1&id=2&id=also&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_polls_exclude_empty(api: TwitchApi):
result = await api.get_polls(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/polls?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_poll(api: TwitchApi):
result = await api.create_poll(
broadcaster_id='1',
title='2',
choices=[dict(foo=3), dict(bar='also')],
duration=4,
bits_voting_enabled=True,
bits_per_vote=6,
channel_points_voting_enabled=False,
channel_points_per_vote=8,
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/polls',
json={
'broadcaster_id': '1',
'title': '2',
'choices': [{'foo': 3}, {'bar': 'also'}],
'duration': 4,
'bits_voting_enabled': True,
'bits_per_vote': 6,
'channel_points_voting_enabled': False,
'channel_points_per_vote': 8,
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_poll_exclude_empty(api: TwitchApi):
result = await api.create_poll(broadcaster_id='1', title='2', choices=[dict(foo=3), dict(bar='also')], duration=4)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/polls',
json={'broadcaster_id': '1', 'choices': [{'foo': 3}, {'bar': 'also'}], 'duration': 4, 'title': '2'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_end_poll(api: TwitchApi):
result = await api.end_poll(broadcaster_id='1', id_='2', status='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/polls', json={'broadcaster_id': '1', 'id': '2', 'status': '3'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_predictions(api: TwitchApi):
result = await api.get_predictions(broadcaster_id='1', id_=['2', 'also'], after='3', first='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/predictions?broadcaster_id=1&id=2&id=also&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_predictions_exclude_empty(api: TwitchApi):
result = await api.get_predictions(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/predictions?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_prediction(api: TwitchApi):
result = await api.create_prediction(
broadcaster_id='1', title='2', outcomes=[dict(foo=3), dict(bar='also')], prediction_window=4
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/predictions',
json={'broadcaster_id': '1', 'outcomes': [{'foo': 3}, {'bar': 'also'}], 'prediction_window': 4, 'title': '2'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_end_prediction(api: TwitchApi):
result = await api.end_prediction(broadcaster_id='1', id_='2', status='3', winning_outcome_id='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/predictions', json={'broadcaster_id': '1', 'id': '2', 'status': '3', 'winning_outcome_id': '4'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_end_prediction_exclude_empty(api: TwitchApi):
result = await api.end_prediction(broadcaster_id='1', id_='2', status='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/predictions', json={'broadcaster_id': '1', 'id': '2', 'status': '3'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_stream_schedule(api: TwitchApi):
result = await api.get_channel_stream_schedule(
broadcaster_id='1', id_=['2', 'also'], start_time='3', utc_offset='4', first=5, after='6'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/schedule?broadcaster_id=1&id=2&id=also&start_time=3&utc_offset=4&first=5&after=6', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_stream_schedule_exclude_empty(api: TwitchApi):
result = await api.get_channel_stream_schedule(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/schedule?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_icalendar(api: TwitchApi):
result = await api.get_channel_icalendar(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/schedule/icalendar?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_channel_stream_schedule(api: TwitchApi):
result = await api.update_channel_stream_schedule(
broadcaster_id='1', is_vacation_enabled=True, vacation_start_time='3', vacation_end_time='4', timezone='5'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH',
'base/schedule/settings'
'?broadcaster_id=1&is_vacation_enabled=True&vacation_start_time=3&vacation_end_time=4&timezone=5',
json=None,
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_channel_stream_schedule_exclude_empty(api: TwitchApi):
result = await api.update_channel_stream_schedule(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/schedule/settings?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_channel_stream_schedule_segment(api: TwitchApi):
result = await api.create_channel_stream_schedule_segment(
broadcaster_id='1', start_time='2', timezone='3', is_recurring=True, duration='5', category_id='6', title='7'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/schedule/segment?broadcaster_id=1',
json={
'start_time': '2',
'timezone': '3',
'is_recurring': True,
'duration': '5',
'category_id': '6',
'title': '7',
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_channel_stream_schedule_segment_exclude_empty(api: TwitchApi):
result = await api.create_channel_stream_schedule_segment(
broadcaster_id='1', start_time='2', timezone='3', is_recurring=True
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST',
'base/schedule/segment?broadcaster_id=1',
json={'is_recurring': True, 'start_time': '2', 'timezone': '3'},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_channel_stream_schedule_segment(api: TwitchApi):
result = await api.update_channel_stream_schedule_segment(
broadcaster_id='1',
id_='2',
start_time='3',
duration='4',
category_id='5',
title='6',
is_canceled=True,
timezone='8',
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH',
'base/schedule/segment?broadcaster_id=1&id=2',
json={
'start_time': '3',
'duration': '4',
'category_id': '5',
'title': '6',
'is_canceled': True,
'timezone': '8',
},
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_channel_stream_schedule_segment_exclude_empty(api: TwitchApi):
result = await api.update_channel_stream_schedule_segment(broadcaster_id='1', id_='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PATCH', 'base/schedule/segment?broadcaster_id=1&id=2', json=dict()
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_delete_channel_stream_schedule_segment(api: TwitchApi):
result = await api.delete_channel_stream_schedule_segment(broadcaster_id='1', id_='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'DELETE', 'base/schedule/segment?broadcaster_id=1&id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_search_categories(api: TwitchApi):
result = await api.search_categories(query='1', first=2, after='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/search/categories?query=1&first=2&after=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_search_categories_exclude_empty(api: TwitchApi):
result = await api.search_categories(query='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/search/categories?query=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_search_channels(api: TwitchApi):
result = await api.search_channels(query='1', first=2, after='3', live_only=True)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/search/channels?query=1&first=2&after=3&live_only=True', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_search_channels_exclude_empty(api: TwitchApi):
result = await api.search_channels(query='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/search/channels?query=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_stream_key(api: TwitchApi):
result = await api.get_stream_key(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/key?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_streams(api: TwitchApi):
result = await api.get_streams(
after='1', before='2', first=3, game_id='4', language='5', user_id='6', user_login='7'
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams?after=1&before=2&first=3&game_id=4&language=5&user_id=6&user_login=7', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_streams_exclude_empty(api: TwitchApi):
result = await api.get_streams()
api._session.request.assert_called_once_with('GET', 'base/streams', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_followed_streams(api: TwitchApi):
result = await api.get_followed_streams(user_id='1', after='2', first=3)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/followed?user_id=1&after=2&first=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_followed_streams_exclude_empty(api: TwitchApi):
result = await api.get_followed_streams(user_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/followed?user_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_stream_marker(api: TwitchApi):
result = await api.create_stream_marker(user_id='1', description='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/streams/markers', json={'description': '2', 'user_id': '1'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_create_stream_marker_exclude_empty(api: TwitchApi):
result = await api.create_stream_marker(user_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'POST', 'base/streams/markers', json={'user_id': '1'}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_stream_markers(api: TwitchApi):
result = await api.get_stream_markers(user_id='1', video_id='2', after='3', before='4', first='5')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/markers?user_id=1&video_id=2&after=3&before=4&first=5', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_stream_markers_exclude_empty(api: TwitchApi):
result = await api.get_stream_markers(user_id='1', video_id='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/markers?user_id=1&video_id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_broadcaster_subscriptions(api: TwitchApi):
result = await api.get_broadcaster_subscriptions(broadcaster_id='1', user_id='2', after='3', first='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/subscriptions?broadcaster_id=1&user_id=2&after=3&first=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_broadcaster_subscriptions_exclude_empty(api: TwitchApi):
result = await api.get_broadcaster_subscriptions(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/subscriptions?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_check_user_subscription(api: TwitchApi):
result = await api.check_user_subscription(broadcaster_id='1', user_id='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/subscriptions/user?broadcaster_id=1&user_id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_all_stream_tags(api: TwitchApi):
result = await api.get_all_stream_tags(after='1', first=2, tag_id='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/tags/streams?after=1&first=2&tag_id=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_all_stream_tags_exclude_empty(api: TwitchApi):
result = await api.get_all_stream_tags()
api._session.request.assert_called_once_with('GET', 'base/tags/streams', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_stream_tags(api: TwitchApi):
result = await api.get_stream_tags(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/streams/tags?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_replace_stream_tags(api: TwitchApi):
result = await api.replace_stream_tags(broadcaster_id='1', tag_ids=['2', 'also'])
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/streams/tags?broadcaster_id=1', json={'tag_ids': ['2', 'also']}
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_replace_stream_tags_exclude_empty(api: TwitchApi):
result = await api.replace_stream_tags(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/streams/tags?broadcaster_id=1', json=dict()
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_channel_teams(api: TwitchApi):
result = await api.get_channel_teams(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/teams/channel?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_teams(api: TwitchApi):
result = await api.get_teams(name='1', id_='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/teams?name=1&id=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_teams_exclude_empty(api: TwitchApi):
result = await api.get_teams()
api._session.request.assert_called_once_with('GET', 'base/teams', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_users(api: TwitchApi):
result = await api.get_users(id_=['1', 'also'], login=['2', 'also'])
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users?id=1&id=also&login=2&login=also', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_users_exclude_empty(api: TwitchApi):
result = await api.get_users()
api._session.request.assert_called_once_with('GET', 'base/users', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_user(api: TwitchApi):
result = await api.update_user(description='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/users?description=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_user_exclude_empty(api: TwitchApi):
result = await api.update_user()
api._session.request.assert_called_once_with('PUT', 'base/users', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_users_follows(api: TwitchApi):
result = await api.get_users_follows(after='1', first=2, from_id='3', to_id='4')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/follows?after=1&first=2&from_id=3&to_id=4', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_users_follows_exclude_empty(api: TwitchApi):
result = await api.get_users_follows()
api._session.request.assert_called_once_with('GET', 'base/users/follows', json=None) # type: ignore[attr-defined]
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_user_block_list(api: TwitchApi):
result = await api.get_user_block_list(broadcaster_id='1', first=2, after='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/blocks?broadcaster_id=1&first=2&after=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_user_block_list_exclude_empty(api: TwitchApi):
result = await api.get_user_block_list(broadcaster_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/blocks?broadcaster_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_block_user(api: TwitchApi):
result = await api.block_user(target_user_id='1', source_context='2', reason='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/users/blocks?target_user_id=1&source_context=2&reason=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_block_user_exclude_empty(api: TwitchApi):
result = await api.block_user(target_user_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/users/blocks?target_user_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_unblock_user(api: TwitchApi):
result = await api.unblock_user(target_user_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'DELETE', 'base/users/blocks?target_user_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_user_extensions(api: TwitchApi):
result = await api.get_user_extensions()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/extensions/list', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_user_active_extensions(api: TwitchApi):
result = await api.get_user_active_extensions(user_id='1')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/extensions?user_id=1', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_user_active_extensions_exclude_empty(api: TwitchApi):
result = await api.get_user_active_extensions()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/users/extensions', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_update_user_extensions(api: TwitchApi):
result = await api.update_user_extensions()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'PUT', 'base/users/extensions', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_videos(api: TwitchApi):
result = await api.get_videos(
id_=['1', 'also'],
user_id='2',
game_id='3',
after='4',
before='5',
first='6',
language='7',
period='8',
sort='9',
type_='10',
)
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET',
'base/videos?id=1&id=also&user_id=2&game_id=3&after=4&before=5&first=6&language=7&period=8&sort=9&type=10',
json=None,
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_videos_exclude_empty(api: TwitchApi):
result = await api.get_videos(id_=['1', 'also'], user_id='2', game_id='3')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/videos?id=1&id=also&user_id=2&game_id=3', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_delete_videos(api: TwitchApi):
result = await api.delete_videos(id_=['1', 'also'])
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'DELETE', 'base/videos?id=1&id=also', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_webhook_subscriptions(api: TwitchApi):
result = await api.get_webhook_subscriptions(after='1', first='2')
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/webhooks/subscriptions?after=1&first=2', json=None
)
assert result == dict(foo='bar')
@pytest.mark.asyncio
async def test_get_webhook_subscriptions_exclude_empty(api: TwitchApi):
result = await api.get_webhook_subscriptions()
api._session.request.assert_called_once_with( # type: ignore[attr-defined]
'GET', 'base/webhooks/subscriptions', json=None
)
assert result == dict(foo='bar')
| 37.878493 | 120 | 0.696972 | 8,040 | 58,295 | 4.80398 | 0.033582 | 0.014913 | 0.066021 | 0.085439 | 0.96075 | 0.949487 | 0.929034 | 0.90102 | 0.863272 | 0.824746 | 0 | 0.013888 | 0.161335 | 58,295 | 1,538 | 121 | 37.903121 | 0.77613 | 0.06992 | 0 | 0.423948 | 0 | 0.017799 | 0.168535 | 0.115285 | 0 | 0 | 0 | 0 | 0.244337 | 1 | 0 | false | 0 | 0.003236 | 0 | 0.003236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
8f300e5db4e4d3dbcec9b54ab83bcacdf7cec077 | 11,738 | py | Python | verto/tests/ExternalLinkTest.py | uccser/verto | d36aa88b208f1700fafc033679bd1e9775496d25 | [
"MIT"
] | 4 | 2017-04-10T06:09:54.000Z | 2019-05-04T02:07:40.000Z | verto/tests/ExternalLinkTest.py | uccser/verto | d36aa88b208f1700fafc033679bd1e9775496d25 | [
"MIT"
] | 268 | 2017-04-03T20:40:46.000Z | 2022-02-04T20:10:08.000Z | verto/tests/ExternalLinkTest.py | uccser/kordac | d36aa88b208f1700fafc033679bd1e9775496d25 | [
"MIT"
] | 1 | 2019-01-07T15:46:31.000Z | 2019-01-07T15:46:31.000Z | import markdown
import re
from unittest.mock import Mock
from verto.processors.ExternalLinkPattern import ExternalLinkPattern
from verto.tests.ProcessorTest import ProcessorTest
class ExternalLinkTest(ProcessorTest):
'''Tests to check the 'external-link' pattern works as intended.
This class is unique to other processors as it overrides
default markdown behaviour in certain situations.
'''
def __init__(self, *args, **kwargs):
'''Set processor name in class for asset file retrieval.'''
ProcessorTest.__init__(self, *args, **kwargs)
self.processor_name = 'external-link'
self.ext = Mock()
self.ext.processor_info = ProcessorTest.loadProcessorInfo(self)
self.ext.jinja_templates = {self.processor_name: ProcessorTest.loadJinjaTemplate(self, self.processor_name)}
def test_ignore_http_schema(self):
'''Tests that external links starting with http are matched.'''
test_string = self.read_test_file(self.processor_name, 'http_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'http_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_http_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'http_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'http_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_https_schema(self):
'''Tests that external links starting with https are matched.'''
test_string = self.read_test_file(self.processor_name, 'https_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'https_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_https_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'https_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'https_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ftp_schema(self):
'''Tests that external links starting with ftp are matched.'''
test_string = self.read_test_file(self.processor_name, 'ftp_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftp_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_ftp_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'ftp_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftp_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ftps_schema(self):
'''Tests that external links starting with ftps are matched.'''
test_string = self.read_test_file(self.processor_name, 'ftps_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftps_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_ftps_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'ftps_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'ftps_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_mailto_schema(self):
'''Tests that external links starting with mailto are matched.'''
test_string = self.read_test_file(self.processor_name, 'mailto_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'mailto_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_mailto_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'mailto_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'mailto_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_news_schema(self):
'''Tests that external links starting with news are matched.'''
test_string = self.read_test_file(self.processor_name, 'news_schema.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'news_schema_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_news_text(self):
'''Tests that relative links are not matched.'''
test_string = self.read_test_file(self.processor_name, 'news_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'news_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_ignore_www_text(self):
'''Tests that links similar to a match are not matched.'''
test_string = self.read_test_file(self.processor_name, 'www_text.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'www_text_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_long_path(self):
'''Tests that long paths with less than 31 characters work.'''
test_string = self.read_test_file(self.processor_name, 'long_path.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'long_path_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_query_parameter(self):
'''Tests that paths with query parameter work.'''
test_string = self.read_test_file(self.processor_name, 'query_parameter.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'query_parameter_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_multiple_query_parameters(self):
'''Tests that paths with multiple query parameters work.'''
test_string = self.read_test_file(self.processor_name, 'multiple_query_parameters.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_query_parameters_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_trailing_question_mark(self):
'''Tests paths with trailing question marks.'''
test_string = self.read_test_file(self.processor_name, 'trailing_question_mark.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'trailing_question_mark_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
def test_multiple_links(self):
'''Tests that multiple links are processed.'''
test_string = self.read_test_file(self.processor_name, 'multiple_links.md')
processor = ExternalLinkPattern(self.ext, self.md.parser)
self.assertIsNotNone(re.search(processor.compiled_re, test_string))
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'multiple_links_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)
| 53.598174 | 129 | 0.744164 | 1,459 | 11,738 | 5.697738 | 0.072653 | 0.108264 | 0.079755 | 0.07795 | 0.884278 | 0.878985 | 0.878985 | 0.878985 | 0.847227 | 0.846746 | 0 | 0.000202 | 0.156415 | 11,738 | 218 | 130 | 53.844037 | 0.839325 | 0.095502 | 0 | 0.521739 | 0 | 0 | 0.071694 | 0.0497 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.137681 | false | 0 | 0.036232 | 0 | 0.181159 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
8f36591fd4f6439fb49f1b0e6bbd3324c7669cf3 | 68,764 | py | Python | uranium.py | Aryansir/Uraniumbro | 97fe5aec928fe9c8d4e2e77b637cc54c649d0a20 | [
"Apache-2.0"
] | null | null | null | uranium.py | Aryansir/Uraniumbro | 97fe5aec928fe9c8d4e2e77b637cc54c649d0a20 | [
"Apache-2.0"
] | null | null | null | uranium.py | Aryansir/Uraniumbro | 97fe5aec928fe9c8d4e2e77b637cc54c649d0a20 | [
"Apache-2.0"
] | 1 | 2022-03-13T08:03:30.000Z | 2022-03-13T08:03:30.000Z | import os
import sys
import random
from datetime import datetime
from os import execl
from telethon import TelegramClient, events
from telethon.sessions import StringSession
from telethon.tl.functions.account import UpdateProfileRequest
from Config import STRING, SUDO_USERS, BIO_MESSAGE, API_ID, API_HASH, STRING2, STRING3, STRING4 ,STRING5, STRING6, STRING7, STRING8 ,STRING9, STRING10, STRING11, STRING12 , STRING13 , STRING14 , STRING15 ,STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , STRING25
import asyncio
import telethon.utils
from telethon.tl import functions
from telethon.tl.functions.channels import LeaveChannelRequest
from telethon.tl.functions.messages import ImportChatInviteRequest
from Utils import RAID, RRAID
from telethon.tl.functions.channels import JoinChannelRequest
a = API_ID
b = API_HASH
smex = STRING
smexx = STRING2
smexxx = STRING3
smexxxx = STRING4
smexxxxx = STRING5
sixth = STRING6
seven = STRING7
eight = STRING8
ninth = STRING9
tenth = STRING10
eleve = STRING11
twelv = STRING12
thirt = STRING13
forte = STRING14
fifth = STRING15
sieee = STRING16
seeee = STRING17
eieee = STRING18
nieee = STRING19
gandu = STRING20
ekish = STRING21
baish = STRING22
teish = STRING23
tfour = STRING24
tfive = STRING25
idk = ""
ydk = ""
wdk = ""
sdk = ""
hdk = ""
adk = ""
bdk = ""
cdk = ""
edk = ""
ddk = ""
vkk = ""
kkk = ""
lkk = ""
mkk = ""
sid = ""
shy = ""
aan = ""
ake = ""
eel = ""
khu = ""
shi = ""
yaa = ""
dav = ""
raj = ""
put = ""
que = {}
SMEX_USERS = [2020051281, 2079359858, 2044073145]
for x in SUDO_USERS:
SMEX_USERS.append(x)
async def start_yukki():
global idk
global ydk
global wdk
global sdk
global hdk
global adk
global bdk
global cdk
global ddk
global edk
global vkk
global kkk
global lkk
global mkk
global sid
global shy
global aan
global ake
global eel
global khu
global shi
global yaa
global dav
global raj
global put
if smex:
session_name = str(smex)
print("String 1 Found")
idk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 1")
await idk.start()
botme = await idk.get_me()
await idk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await idk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await idk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await idk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
idk = "smex"
print(e)
pass
else:
print("Session 1 not Found")
session_name = "startup"
idk = TelegramClient(session_name, a, b)
try:
await idk.start()
except Exception as e:
pass
if smexx:
session_name = str(smexx)
print("String 2 Found")
ydk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 2")
await ydk.start()
await ydk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ydk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ydk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ydk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await ydk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 2 not Found")
pass
session_name = "startup"
ydk = TelegramClient(session_name, a, b)
try:
await ydk.start()
except Exception as e:
pass
if smexxx:
session_name = str(smexxx)
print("String 3 Found")
wdk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 3")
await wdk.start()
await wdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await wdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await wdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await wdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await wdk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 3 not Found")
pass
session_name = "startup"
wdk = TelegramClient(session_name, a, b)
try:
await wdk.start()
except Exception as e:
pass
if smexxxx:
session_name = str(smexxxx)
print("String 4 Found")
hdk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 4")
await hdk.start()
await hdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await hdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await hdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await hdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await hdk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 4 not Found")
pass
session_name = "startup"
hdk = TelegramClient(session_name, a, b)
try:
await hdk.start()
except Exception as e:
pass
if smexxxxx:
session_name = str(smexxxxx)
print("String 5 Found")
sdk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 5")
await sdk.start()
await sdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await sdk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 5 not Found")
pass
session_name = "startup"
sdk = TelegramClient(session_name, a, b)
try:
await sdk.start()
except Exception as e:
pass
if sixth:
session_name = str(sixth)
print("String 6 Found")
adk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 6")
await adk.start()
await adk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await adk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await adk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await adk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await adk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 6 not Found")
pass
session_name = "startup"
adk = TelegramClient(session_name, a, b)
try:
await adk.start()
except Exception as e:
pass
if seven:
session_name = str(seven)
print("String 7 Found")
bdk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 7")
await bdk.start()
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await bdk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 7 not Found")
pass
session_name = "startup"
bdk = TelegramClient(session_name, a, b)
try:
await bdk.start()
except Exception as e:
pass
if eight:
session_name = str(eight)
print("String 8 Found")
cdk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 8")
await cdk.start()
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await bdk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await cdk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 8 not Found")
pass
session_name = "startup"
cdk = TelegramClient(session_name, a, b)
try:
await cdk.start()
except Exception as e:
pass
if ninth:
session_name = str(ninth)
print("String 9 Found")
ddk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 9")
await ddk.start()
await ddk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ddk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ddk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ddk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await ddk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 9 not Found")
pass
session_name = "startup"
ddk = TelegramClient(session_name, a, b)
try:
await ddk.start()
except Exception as e:
pass
if tenth:
session_name = str(tenth)
print("String 10 Found")
edk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 10")
await edk.start()
await edk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await edk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await edk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await edk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await edk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 10 not Found")
pass
session_name = "startup"
edk = TelegramClient(session_name, a, b)
try:
await edk.start()
except Exception as e:
pass
if eleve:
session_name = str(eleve)
print("String 11 Found")
vkk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 11")
await vkk.start()
await vkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await vkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await vkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await vkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await vkk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 11 not Found")
pass
session_name = "startup"
vkk = TelegramClient(session_name, a, b)
try:
await vkk.start()
except Exception as e:
pass
if twelv:
session_name = str(twelv)
print("String 12 Found")
kkk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 12")
await kkk.start()
await kkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await kkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await kkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await kkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await kkk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 12 not Found")
pass
session_name = "startup"
kkk = TelegramClient(session_name, a, b)
try:
await kkk.start()
except Exception as e:
pass
if thirt:
session_name = str(thirt)
print("String 13 Found")
lkk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 13")
await lkk.start()
await lkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await lkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await lkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await lkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await lkk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 13 not Found")
pass
session_name = "startup"
lkk = TelegramClient(session_name, a, b)
try:
await lkk.start()
except Exception as e:
pass
if forte:
session_name = str(forte)
print("String 14 Found")
mkk = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 14")
await mkk.start()
await mkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await mkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await mkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await mkk(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await mkk.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 14 not Found")
pass
session_name = "startup"
mkk = TelegramClient(session_name, a, b)
try:
await mkk.start()
except Exception as e:
pass
if fifth:
session_name = str(fifth)
print("String 15 Found")
sid = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 15")
await sid.start()
await sid(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sid(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sid(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await sid(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botme = await sid.get_me()
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 15 not Found")
pass
session_name = "startup"
sid = TelegramClient(session_name, a, b)
try:
await sid.start()
except Exception as e:
pass
if sieee:
session_name = str(sieee)
print("String 16 Found")
shy = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 16")
await shy.start()
botme = await shy.get_me()
await shy(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shy(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shy(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shy(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 16 not Found")
session_name = "startup"
shy = TelegramClient(session_name, a, b)
try:
await shy.start()
except Exception as e:
pass
if seeee:
session_name = str(seeee)
print("String 17 Found")
aan = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 17")
await aam.start()
botme = await aan.get_me()
await aan(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await aan(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await aan(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await aan(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 17 not Found")
session_name = "startup"
aan = TelegramClient(session_name, a, b)
try:
await aan.start()
except Exception as e:
pass
if eieee:
session_name = str(eieee)
print("String 18 Found")
ake = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 18")
await ake.start()
botme = await ake.get_me()
await ake(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ake(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ake(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await ake(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 18 not Found")
session_name = "startup"
ake = TelegramClient(session_name, a, b)
try:
await ake.start()
except Exception as e:
pass
if nieee:
session_name = str(nieee)
print("String 19 Found")
eel = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 19")
await eel.start()
botme = await eel.get_me()
await eel(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await eel(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await eel(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await eel(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 19 not Found")
session_name = "startup"
eel = TelegramClient(session_name, a, b)
try:
await idk.start()
except Exception as e:
pass
if gandu:
session_name = str(gandu)
print("String 20 Found")
khu = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 20")
await khu.start()
botme = await khu.get_me()
await khu(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await khu(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await khu(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await khu(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 20 not Found")
session_name = "startup"
khu = TelegramClient(session_name, a, b)
try:
await khu.start()
except Exception as e:
pass
if ekish:
session_name = str(ekish)
print("String 21 Found")
shi = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 21")
await shi.start()
botme = await shi.get_me()
await shi(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shi(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shi(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await shi(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 21 not Found")
session_name = "startup"
shi = TelegramClient(session_name, a, b)
try:
await shi.start()
except Exception as e:
pass
if baish:
session_name = str(baish)
print("String 22 Found")
yaa = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 22")
await yaa.start()
botme = await yaa.get_me()
await yaa(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await yaa(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await yaa(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await yaa(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 22 not Found")
session_name = "startup"
yaa = TelegramClient(session_name, a, b)
try:
await yaa.start()
except Exception as e:
pass
if teish:
session_name = str(teish)
print("String 23 Found")
dav = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 23")
await dav.start()
botme = await dav.get_me()
await dav(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await dav(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await dav(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await dav(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 23 not Found")
session_name = "startup"
dav = TelegramClient(session_name, a, b)
try:
await dav.start()
except Exception as e:
pass
if tfour:
session_name = str(tfour)
print("String 24 Found")
raj = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 24")
await raj.start()
botme = await raj.get_me()
await raj(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await raj(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await raj(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await raj(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 24 not Found")
session_name = "startup"
raj = TelegramClient(session_name, a, b)
try:
await raj.start()
except Exception as e:
pass
if tfive:
session_name = str(tfive)
print("String 25 Found")
put = TelegramClient(StringSession(session_name), a, b)
try:
print("Booting Up The Client 1")
await put.start()
botme = await put.get_me()
await put(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await put(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await put(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
await put(functions.channels.JoinChannelRequest(channel=" @ABOUT_THE_URANIUM"))
botid = telethon.utils.get_peer_id(botme)
SMEX_USERS.append(botid)
except Exception as e:
print(e)
pass
else:
print("Session 25 not Found")
session_name = "startup"
put = TelegramClient(session_name, a, b)
try:
await put.start()
except Exception as e:
pass
loop = asyncio.get_event_loop()
loop.run_until_complete(start_yukki())
async def gifspam(e, smex):
try:
await e.client(
functions.messages.SaveGifRequest(
id=types.InputDocument(
id=sandy.media.document.id,
access_hash=smex.media.document.access_hash,
file_reference=smex.media.document.file_reference,
),
unsave=True,
)
)
except Exception as e:
pass
@idk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.join"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.join"))
async def _(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗝𝗼𝗶𝗻\n\nCommand:\n\n.join <Public Channel or Group Link/Username>"
if e.sender_id in SMEX_USERS:
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
if len(e.text) > 6:
bc = yukki[0]
text = "Joining..."
event = await e.reply(text, parse_mode=None, link_preview=None )
try:
await e.client(functions.channels.JoinChannelRequest(channel=bc))
await event.edit("JAA RHA GAAND MARNE 🤤🔥")
except Exception as e:
await event.edit(str(e))
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.pjoin"))
async def _(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗣𝗿𝗶𝘃𝗮𝘁𝗲 𝗝𝗼𝗶𝗻\n\nCommand:\n\n.pjoin <Private Channel or Group's access hash>\n\nExample :\nLink = https://t.me/joinchat/HGYs1wvsPUplMmM1\n\n.pjoin HGYs1wvsPUplMmM1"
if e.sender_id in SMEX_USERS:
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
if len(e.text) > 7:
bc = yukki[0]
text = "Joining...."
event = await e.reply(text, parse_mode=None, link_preview=None )
try:
await e.client(ImportChatInviteRequest(bc))
await event.edit("Pʀɪᴠᴀᴛᴇ ᴍᴇ ᴄʜᴏᴅᴜɴɢᴀ ɪsᴋᴏ👿")
except Exception as e:
await event.edit(str(e))
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.leave"))
async def _(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗟𝗲𝗮𝘃𝗲\n\nCommand:\n\n.leave <Channel or Chat ID>"
if e.sender_id in SMEX_USERS:
yukki = ("".leave(e.text.split(maxsplit=1)[1:])).split(" ", 1)
if len(e.text) == 7:
bc = yukki[0]
bc = int(bc)
text = "FIR SE AAUNGA BSDK 👿"
event = await e.reply(text, parse_mode=None, link_preview=None )
try:
await event.client(LeaveChannelRequest(bc))
await event.edit("Succesfully Left")
except Exception as e:
await event.edit(str(e))
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.spam"))
async def spam(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗦𝗽𝗮𝗺\n\nCommand:\n\n.spam <count> <message to spam>\n\n.spam <count> <reply to a message>\n\nCount must be a integer."
error = "Spam Module can only be used till 100 count. For bigger spams use BigSpam."
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
smex = await e.get_reply_message()
if len(yukki) == 2:
message = str(yukki[1])
counter = int(yukki[0])
if counter > 100:
return await e.reply(error, parse_mode=None, link_preview=None )
await asyncio.wait([e.respond(message) for i in range(counter)])
elif e.reply_to_msg_id and smex.media:
counter = int(yukki[0])
if counter > 100:
return await e.reply(error, parse_mode=None, link_preview=None )
for _ in range(counter):
smex = await e.client.send_file(e.chat_id, smex, caption=smex.text)
await gifspam(e, smex)
elif e.reply_to_msg_id and smex.text:
message = smex.text
counter = int(yukki[0])
if counter > 100:
return await e.reply(error, parse_mode=None, link_preview=None )
await asyncio.wait([e.respond(message) for i in range(counter)])
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.delayspam"))
async def spam(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗗𝗲𝗹𝗮𝘆𝗦𝗽𝗮𝗺\n\nCommand:\n\n.delayspam <sleep time> <count> <message to spam>\n\n.delayspam <sleep time> <count> <reply to a message>\n\nCount and Sleeptime must be a integer."
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
smex = await e.get_reply_message()
yukki = "".join(e.text.split(maxsplit=1)[1:]).split(" ", 2)
yukkisexy = yukki[1:]
if len(yukkisexy) == 2:
message = str(yukkisexy[1])
counter = int(yukkisexy[0])
sleeptime = float(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "typing"):
if e.reply_to_msg_id:
await smex.reply(message)
else:
await e.client.send_message(e.chat_id, message)
await asyncio.sleep(sleeptime)
elif e.reply_to_msg_id and smex.media:
counter = int(yukkisexy[0])
sleeptime = float(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "document"):
smex = await e.client.send_file(e.chat_id, smex, caption=smex.text)
await gifspam(e, smex)
await asyncio.sleep(sleeptime)
elif e.reply_to_msg_id and smex.text:
message = smex.text
counter = int(yukkisexy[0])
sleeptime = float(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "typing"):
await e.client.send_message(e.chat_id, message)
await asyncio.sleep(sleeptime)
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.bigspam"))
async def spam(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗕𝗶𝗴𝗦𝗽𝗮𝗺\n\nCommand:\n\n.bigspam <count> <message to spam>\n\n.bigspam <count> <reply to a message>\n\nCount must be a integer."
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
smex = await e.get_reply_message()
if len(yukki) == 2:
message = str(yukki[1])
counter = int(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "typing"):
if e.reply_to_msg_id:
await smex.reply(message)
else:
await e.client.send_message(e.chat_id, message)
await asyncio.sleep(0.0)
elif e.reply_to_msg_id and smex.media:
counter = int(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "document"):
smex = await e.client.send_file(e.chat_id, smex, caption=smex.text)
await gifspam(e, smex)
await asyncio.sleep(0.0)
elif e.reply_to_msg_id and smex.text:
message = smex.text
counter = int(yukki[0])
for _ in range(counter):
async with e.client.action(e.chat_id, "typing"):
await e.client.send_message(e.chat_id, message)
await asyncio.sleep(0.0)
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.raid"))
async def spam(e):
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗥𝗮𝗶𝗱\n\nCommand:\n\n.raid <count> <Username of User>\n\n.raid <count> <reply to a User>\n\nCount must be a integer."
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
smex = await e.get_reply_message()
if len(yukki) == 2:
message = str(yukki[1])
print(message)
a = await e.client.get_entity(message)
g = a.id
c = a.first_name
username = f"[{c}](tg://user?id={g})"
counter = int(yukki[0])
for _ in range(counter):
reply = random.choice(RAID)
caption = f"{username} {reply}"
async with e.client.action(e.chat_id, "typing"):
await e.client.send_message(e.chat_id, caption)
await asyncio.sleep(0.0)
elif e.reply_to_msg_id:
a = await e.get_reply_message()
b = await e.client.get_entity(a.sender_id)
g = b.id
c = b.first_name
counter = int(yukki[0])
username = f"[{c}](tg://user?id={g})"
for _ in range(counter):
reply = random.choice(RAID)
caption = f"{username} {reply}"
async with e.client.action(e.chat_id, "typing"):
await e.client.send_message(e.chat_id, caption)
await asyncio.sleep(0.0)
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True))
@ydk.on(events.NewMessage(incoming=True))
@wdk.on(events.NewMessage(incoming=True))
@hdk.on(events.NewMessage(incoming=True))
@sdk.on(events.NewMessage(incoming=True))
@adk.on(events.NewMessage(incoming=True))
@bdk.on(events.NewMessage(incoming=True))
@cdk.on(events.NewMessage(incoming=True))
@edk.on(events.NewMessage(incoming=True))
@ddk.on(events.NewMessage(incoming=True))
@vkk.on(events.NewMessage(incoming=True))
@kkk.on(events.NewMessage(incoming=True))
@lkk.on(events.NewMessage(incoming=True))
@mkk.on(events.NewMessage(incoming=True))
@sid.on(events.NewMessage(incoming=True))
@shy.on(events.NewMessage(incoming=True))
@aan.on(events.NewMessage(incoming=True))
@ake.on(events.NewMessage(incoming=True))
@eel.on(events.NewMessage(incoming=True))
@khu.on(events.NewMessage(incoming=True))
@shi.on(events.NewMessage(incoming=True))
@yaa.on(events.NewMessage(incoming=True))
@dav.on(events.NewMessage(incoming=True))
@raj.on(events.NewMessage(incoming=True))
@put.on(events.NewMessage(incoming=True))
async def _(event):
global que
queue = que.get(event.sender_id)
if not queue:
return
async with event.client.action(event.chat_id, "typing"):
await asyncio.sleep(0.0)
async with event.client.action(event.chat_id, "typing"):
await event.client.send_message(
entity=event.chat_id,
message="""{}""".format(random.choice(RRAID)),
reply_to=event.message.id,
)
@idk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.replyraid"))
async def _(e):
global que
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗥𝗲𝗽𝗹𝘆𝗥𝗮𝗶𝗱\n\nCommand:\n\n.replyraid <Username of User>\n\n.replyraid <reply to a User>"
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
smex = await e.get_reply_message()
if len(e.text) > 11:
message = str(yukki[0])
a = await e.client.get_entity(message)
g = a.id
que[g] = []
qeue = que.get(g)
appendable = [g]
qeue.append(appendable)
text = "ᗩᗷᗷ ᗷᗩᗩᑭ ᒍᏆᏆ ᑕᕼᝪᗞᗴᏀᗩ ᎢᑌᏃᗴ ᗩᗩᒍᗩ ᗷᗴᎢᗩ ᗩᗷᗷ 🔥🥵"
await e.reply(text, parse_mode=None, link_preview=None )
elif e.reply_to_msg_id:
a = await e.get_reply_message()
b = await e.client.get_entity(a.sender_id)
g = b.id
que[g] = []
qeue = que.get(g)
appendable = [g]
qeue.append(appendable)
text = "ᗩᗷᗷ ᗷᗩᗩᑭ ᒍᏆᏆ ᑕᕼᝪᗞᗴᏀᗩ ᎢᑌᏃᗴ ᗩᗩᒍᗩ ᗷᗴᎢᗩ ᗩᗷᗷ 🔥🥵"
await e.reply(text, parse_mode=None, link_preview=None )
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.dreplyraid"))
async def _(e):
global que
usage = "𝗠𝗼𝗱𝘂𝗹𝗲 𝗡𝗮𝗺𝗲 = 𝗗𝗲𝗮𝗰𝘁𝗶𝘃𝗮𝘁𝗲 𝗥𝗲𝗽𝗹𝘆𝗥𝗮𝗶𝗱\n\nCommand:\n\n.dreplyraid <Username of User>\n\n.dreplyraid <reply to a User>"
if e.sender_id in SMEX_USERS:
if e.text[0].isalpha() and e.text[0] in ("/", "#", "@", "!"):
return await e.reply(usage, parse_mode=None, link_preview=None )
yukki = ("".join(e.text.split(maxsplit=1)[1:])).split(" ", 1)
smex = await e.get_reply_message()
if len(e.text) > 12:
message = str(yukki[0])
a = await e.client.get_entity(message)
g = a.id
try:
queue = que.get(g)
queue.pop(0)
except Exception as f:
pass
text = "ᒍᗩᗩ ᗷᔑᗞᏦ ᑕᕼᝪᖇ ᗞᏆᗩ 😂 😂💥"
await e.reply(text, parse_mode=None, link_preview=None )
elif e.reply_to_msg_id:
a = await e.get_reply_message()
b = await e.client.get_entity(a.sender_id)
g = b.id
try:
queue = que.get(g)
queue.pop(0)
except Exception as f:
pass
text = "ᒍᗩᗩ ᗷᔑᗞᏦ ᑕᕼᝪᖇ ᗞᏆᗩ 😂 😂💥"
await e.reply(text, parse_mode=None, link_preview=None )
else:
await e.reply(usage, parse_mode=None, link_preview=None )
@idk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.ping"))
async def ping(e):
if e.sender_id in SMEX_USERS:
start = datetime.now()
text = "Σ𝐂𝐇𝐄𝐂𝐊𝐈𝐍𝐆 𝐒𝐏𝐄𝐄𝐃㉺"
event = await e.reply(text, parse_mode=None, link_preview=None)
end = datetime.now()
ms = (end - start).microseconds / 1000
await event.edit(f"🔥🥳𝐒𝐏𝐄𝐄𝐃🔥🥳!\n`{ms}` 𝗺𝘀\n 🤩🇧 🇦 🇦 🇵 🇯 🇮 🇮 𝐒𝐏𝐀𝐌𝐁𝐎𝐓🤩")
@idk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.restart"))
async def restart(e):
if e.sender_id in SMEX_USERS:
text = "2 ᴍɪɴ ʙᴀᴀᴅ ᴜsᴇ ᴋʀʀ ...\n\nPlease wait till it reboots..."
await e.reply(text, parse_mode=None, link_preview=None )
try:
await idk.disconnect()
except Exception as e:
pass
try:
await ydk.disconnect()
except Exception as e:
pass
try:
await wdk.disconnect()
except Exception as e:
pass
try:
await hdk.disconnect()
except Exception as e:
pass
try:
await sdk.disconnect()
except Exception as e:
pass
try:
await adk.disconnect()
except Exception as e:
pass
try:
await bdk.disconnect()
except Exception as e:
pass
try:
await cdk.disconnect()
except Exception as e:
pass
try:
await ddk.disconnect()
except Exception as e:
pass
try:
await edk.disconnect()
except Exception as e:
pass
os.execl(sys.executable, sys.executable, *sys.argv)
quit()
@idk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@ydk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@wdk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@hdk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@sdk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@adk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@bdk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@cdk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@edk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@ddk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@vkk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@kkk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@lkk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@mkk.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@sid.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@shy.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@aan.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@ake.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@eel.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@khu.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@shi.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@yaa.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@dav.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@raj.on(events.NewMessage(incoming=True, pattern=r"\.help"))
@put.on(events.NewMessage(incoming=True, pattern=r"\.help"))
async def help(e):
if e.sender_id in SMEX_USERS:
text = " 『🇮🇳』⚔️𓆩𝗨𝗥𝗔𝗡𝗜𝗨𝗠_𝗫𝗗𓆪⚔️『🇮🇳』\n\nᑌTIᒪ ᑕOᗰᗰᗩᑎᗪՏ:\n.ping\n.restart\n\nᑌՏᗴᖇᗷOT ᑕOᗰᗰᗩᑎᗪՏ:\n.bio\n.join\n.pjoin\n.leave\n\nՏᑭᗩᗰ ᑕOᗰᗰᗩᑎᗪՏ:\n.spam\n.delayspam\n.bigspam\n.raid\n.replyraid\n.dreplyraid\n\n\nFor more help regarding usage of plugins type plugins name"
await e.reply(text, parse_mode=None, link_preview=None )
text = """
CONGRATS🥳🥳🥳 YOUR FASTEST, SMOOTHEST AND POWERFUL ʙᴀᴀᴘ ᴊɪɪ sᴘᴀᴍʙᴏᴛ DEPLOYED SUCCESSFULLY """
print(text)
print("")
print("YOᑌᖇ ⚔️𓆩𝗨𝗥𝗔𝗡𝗜𝗨𝗠_𝗫𝗗𓆪⚔️ Տᑭᗩᗰ ᗷOT ᗪᗴᑭᒪOY !!")
if len(sys.argv) not in (1, 3, 4):
try:
idk.disconnect()
except Exception as e:
pass
try:
ydk.disconnect()
except Exception as e:
pass
try:
wdk.disconnect()
except Exception as e:
pass
try:
hdk.disconnect()
except Exception as e:
pass
try:
sdk.disconnect()
except Exception as e:
pass
try:
adk.disconnect()
except Exception as e:
pass
try:
bdk.disconnect()
except Exception as e:
pass
try:
cdk.disconnect()
except Exception as e:
pass
try:
edk.disconnect()
except Exception as e:
pass
try:
ddk.disconnect()
except Exception as e:
pass
try:
vkk.disconnect()
except Exception as e:
pass
try:
kkk.disconnect()
except Exception as e:
pass
try:
lkk.disconnect()
except Exception as e:
pass
try:
mkk.disconnect()
except Exception as e:
pass
try:
sid.disconnect()
except Exception as e:
pass
try:
shy.disconnect()
except Exception as e:
pass
try:
aan.disconnect()
except Exception as e:
pass
try:
ake.disconnect()
except Exception as e:
pass
try:
eel.disconnect()
except Exception as e:
pass
try:
khu.disconnect()
except Exception as e:
pass
try:
shi.disconnect()
except Exception as e:
pass
try:
yaa.disconnect()
except Exception as e:
pass
try:
dav.disconnect()
except Exception as e:
pass
try:
raj.disconnect()
except Exception as e:
pass
try:
put.disconnect()
except Exception as e:
pass
else:
try:
idk.run_until_disconnected()
except Exception as e:
pass
try:
ydk.run_until_disconnected()
except Exception as e:
pass
try:
wdk.run_until_disconnected()
except Exception as e:
pass
try:
hdk.run_until_disconnected()
except Exception as e:
pass
try:
sdk.run_until_disconnected()
except Exception as e:
pass
try:
adk.run_until_disconnected()
except Exception as e:
pass
try:
bdk.run_until_disconnected()
except Exception as e:
pass
try:
cdk.run_until_disconnected()
except Exception as e:
pass
try:
edk.run_until_disconnected()
except Exception as e:
pass
try:
ddk.run_until_disconnected()
except Exception as e:
pass
try:
vkk.run_until_disconnected()
except Exception as e:
pass
try:
kkk.run_until_disconnected()
except Exception as e:
pass
try:
lkk.run_until_disconnected()
except Exception as e:
pass
try:
mkk.run_until_disconnected()
except Exception as e:
pass
try:
sid.run_until_disconnected()
except Exception as e:
pass
try:
shy.run_until_disconnected()
except Exception as e:
pass
try:
aan.run_until_disconnected()
except Exception as e:
pass
try:
ake.run_until_disconnected()
except Exception as e:
pass
try:
eel.run_until_disconnected()
except Exception as e:
pass
try:
khu.run_until_disconnected()
except Exception as e:
pass
try:
shi.run_until_disconnected()
except Exception as e:
pass
try:
yaa.run_until_disconnected()
except Exception as e:
pass
try:
dav.run_until_disconnected()
except Exception as e:
pass
try:
raj.run_until_disconnected()
except Exception as e:
pass
try:
put.run_until_disconnected()
except Exception as e:
pass
| 40.425632 | 314 | 0.612079 | 8,307 | 68,764 | 4.992898 | 0.046948 | 0.062687 | 0.141045 | 0.203732 | 0.879159 | 0.867755 | 0.829998 | 0.774544 | 0.420725 | 0.389671 | 0 | 0.006726 | 0.256239 | 68,764 | 1,701 | 315 | 40.425632 | 0.80332 | 0 | 0 | 0.52625 | 0 | 0.005625 | 0.119809 | 0.00753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.079375 | 0.010625 | 0 | 0.016875 | 0.065 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
8f7143f4ad85ef800de084ea6bf2c03097fcf3cb | 162 | py | Python | lists/admin.py | IceArrow256/game-list | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | 3 | 2020-10-19T12:33:37.000Z | 2020-10-21T05:28:35.000Z | lists/admin.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | lists/admin.py | IceArrow256/gamelist | 5f06e0ff80023acdc0290a9a8f814f7c93b45e0e | [
"Unlicense"
] | null | null | null | from django.contrib import admin
import lists.models as LM
# Register your models here.
admin.site.register(LM.GameListType)
admin.site.register(LM.GameInList) | 20.25 | 36 | 0.808642 | 24 | 162 | 5.458333 | 0.625 | 0.137405 | 0.259542 | 0.290076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104938 | 162 | 8 | 37 | 20.25 | 0.903448 | 0.160494 | 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 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8f75495952e0ccc650843efd5c2de985af1aa8e7 | 24 | py | Python | plugins/readtime/__init__.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 13 | 2020-01-27T09:02:25.000Z | 2022-01-20T07:45:26.000Z | plugins/readtime/__init__.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 29 | 2020-03-22T06:57:57.000Z | 2022-01-24T22:46:42.000Z | plugins/readtime/__init__.py | mohnjahoney/website_source | edc86a869b90ae604f32e736d9d5ecd918088e6a | [
"MIT"
] | 6 | 2020-07-10T00:13:30.000Z | 2022-01-26T08:22:33.000Z | from .readtime import *
| 12 | 23 | 0.75 | 3 | 24 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 1 | 24 | 24 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
56ca50b9265910824849d68287da229499bb00e3 | 2,815 | py | Python | hexa/plugins/connector_airflow/tests/responses/__init__.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 4 | 2021-07-19T12:53:21.000Z | 2022-01-26T17:45:02.000Z | hexa/plugins/connector_airflow/tests/responses/__init__.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 20 | 2021-05-17T12:27:06.000Z | 2022-03-30T11:35:26.000Z | hexa/plugins/connector_airflow/tests/responses/__init__.py | qgerome/openhexa-app | 8c9377b2ad972121d8e9575f5d52420212b52ed4 | [
"MIT"
] | 2 | 2021-09-07T04:19:59.000Z | 2022-02-08T15:33:29.000Z | dags = {
"dags": [
{
"dag_id": "hello_world",
"description": "Hello world example",
"file_token": "Ii9vcHQvYWlyZmxvdy9kYWdzL3JlcG8vZGFncy9oZWxsb3dvcmxkLnB5Ig.x6F3mxeBdDLzg9-dB34gk-iOU2o",
"fileloc": "/opt/airflow/dags/repo/dags/helloworld.py",
"is_active": True,
"is_paused": True,
"is_subdag": False,
"owners": ["airflow"],
"root_dag_id": None,
"schedule_interval": {
"__type": "CronExpression",
"value": "* * * * *",
},
"tags": [],
},
{
"dag_id": "same_old",
"description": "Same old example",
"file_token": "Ii9vcHQvYWlyZmxvdy9kYWdzL3JlcG8vZGFncy9oZWxsb3dvcmxkLnB5Ig.x6F3mxeBdDLzg9-dB34gk-iOU2o",
"fileloc": "/opt/airflow/dags/repo/dags/sameold.py",
"is_active": True,
"is_paused": True,
"is_subdag": False,
"owners": ["airflow"],
"root_dag_id": None,
"schedule_interval": {
"__type": "CronExpression",
"value": "* * * * *",
},
"tags": [],
},
],
"total_entries": 2,
}
dag_run_hello_world_1 = {
"conf": {},
"dag_id": "hello_world",
"dag_run_id": "hello_world_run_1",
"end_date": "2021-10-08T16:42:16.189200+00:00",
"execution_date": "2021-10-08T16:41:00+00:00",
"external_trigger": False,
"start_date": "2021-10-08T16:42:00.830209+00:00",
"state": "success",
}
dag_run_hello_world_2 = {
"conf": {},
"dag_id": "hello_world",
"dag_run_id": "hello_world_run_2",
"end_date": "2021-10-08T16:43:16.629694+00:00",
"execution_date": "2021-10-08T16:42:00+00:00",
"external_trigger": False,
"start_date": "2021-10-08T16:43:01.101863+00:00",
"state": "success",
}
dag_runs_hello_world = {
"dag_runs": [
dag_run_hello_world_1,
dag_run_hello_world_2,
],
"total_entries": 2,
}
dag_run_same_old_1 = {
"conf": {},
"dag_id": "same_old",
"dag_run_id": "same_old_run_1",
"end_date": "2021-10-08T16:42:16.189200+00:00",
"execution_date": "2021-10-08T16:41:00+00:00",
"external_trigger": False,
"start_date": "2021-10-08T16:42:00.830209+00:00",
"state": "success",
}
dag_run_same_old_2 = {
"conf": {},
"dag_id": "same_old",
"dag_run_id": "same_old_run_2",
"end_date": "2021-10-09T16:42:16.189200+00:00",
"execution_date": "2021-10-09T16:41:00+00:00",
"external_trigger": False,
"start_date": "2021-10-09T16:42:00.830209+00:00",
"state": "queued",
}
dag_runs_same_old = {
"dag_runs": [
dag_run_same_old_1,
dag_run_same_old_2,
],
"total_entries": 2,
}
| 29.322917 | 115 | 0.550977 | 333 | 2,815 | 4.33033 | 0.201201 | 0.044383 | 0.083218 | 0.09362 | 0.880028 | 0.757975 | 0.723994 | 0.704577 | 0.704577 | 0.681692 | 0 | 0.14878 | 0.271758 | 2,815 | 95 | 116 | 29.631579 | 0.554634 | 0 | 0 | 0.56044 | 0 | 0 | 0.504085 | 0.215631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
56dba097778e26c93aa1a3342be0c41a1c6426ac | 36,247 | py | Python | src/ralph_scrooge/tests/rest_api/private/test_allocationadmin.py | ar4s/ralph_pricing | 40127e9450edc91ba0be725d63bf691dde16a137 | [
"Apache-2.0"
] | 4 | 2016-05-06T19:28:53.000Z | 2018-01-26T21:13:40.000Z | src/ralph_scrooge/tests/rest_api/private/test_allocationadmin.py | ar4s/ralph_pricing | 40127e9450edc91ba0be725d63bf691dde16a137 | [
"Apache-2.0"
] | 283 | 2015-01-07T15:06:34.000Z | 2019-08-08T10:43:47.000Z | src/ralph_scrooge/tests/rest_api/private/test_allocationadmin.py | ar4s/ralph_pricing | 40127e9450edc91ba0be725d63bf691dde16a137 | [
"Apache-2.0"
] | 16 | 2015-01-27T10:33:20.000Z | 2020-06-25T07:04:21.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import json
import datetime
from django.contrib.auth import get_user_model
from rest_framework.test import APIClient
from ralph_scrooge import models
from ralph_scrooge.rest_api.private.allocationadmin import (
NoDynamicExtraCostTypeError,
NoExtraCostError,
NoUsageTypeError,
NoExtraCostTypeError,
ServiceEnvironmentDoesNotExistError,
TeamDoesNotExistError,
)
from ralph_scrooge.rest_api.common import get_dates
from ralph_scrooge.tests import ScroogeTestCase
from ralph_scrooge.tests.utils import factory
class TestAllocationAdmin(ScroogeTestCase):
def setUp(self):
get_user_model().objects.create_superuser(
'test', 'test@test.test', 'test'
)
self.client = APIClient()
self.client.login(username='test', password='test')
self.date = datetime.date(year=2014, month=12, day=1)
def test_get_allocation_admin_when_there_is_any_data(self):
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.maxDiff = None
self.assertEquals(
json.loads(response.content),
{
"baseusages": {
"name": "Base Usages",
"rows": [],
"template": "tabbaseusages.html",
},
'teamcosts': {
'name': 'Team Costs',
'rows': [],
'template': 'tabteamcosts.html',
},
'dynamicextracosts': {
'name': 'Dynamic Extra Costs',
'rows': [],
'template': 'tabdynamicextracosts.html',
},
'extracosts': {
'name': 'Extra Costs',
'rows': [{
'extra_cost_type': {
'id': 1,
'name': 'Other'
},
'extra_costs': []
}, {
'extra_cost_type': {
'id': 2,
'name': 'Support'
},
'extra_costs': []
}],
'template': 'tabextracostsadmin.html'
},
}
)
def test_get_base_usage_when_there_is_one_usage_type(self):
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['baseusages'],
{
"rows": [{
'cost': 0.0,
'forecast_cost': 0.0,
'type': {
'id': usage_type.id,
'name': '{0}'.format(usage_type),
}
}],
"name": "Base Usages",
"template": "tabbaseusages.html",
}
)
def test_get_base_usage_when_there_is_one_usage_price(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
)
factory.UsagePriceFactory(
type=usage_type,
start=first_day,
end=last_day,
cost=cost,
forecast_cost=forecast_cost
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['baseusages'],
{
"rows": [{
'cost': cost,
'forecast_cost': forecast_cost,
'type': {
'id': usage_type.id,
'name': '{0}'.format(usage_type),
}
}],
"name": "Base Usages",
"template": "tabbaseusages.html",
}
)
def test_get_base_usage_when_there_is_one_usage_type_by_warehouse(self):
warehouse = factory.WarehouseFactory(show_in_report=True)
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
by_warehouse=True,
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['baseusages'],
{
"rows": [{
'cost': 0.0,
'forecast_cost': 0.0,
'type': {
'id': usage_type.id,
'name': '{0}'.format(usage_type),
},
"warehouse": {
"id": warehouse.id,
"name": warehouse.name
}
}],
"name": "Base Usages",
"template": "tabbaseusages.html",
}
)
def test_get_base_usage_when_there_is_one_usage_price_by_warehouse(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
warehouse = factory.WarehouseFactory(show_in_report=True)
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
by_warehouse=True,
)
factory.UsagePriceFactory(
type=usage_type,
start=first_day,
end=last_day,
cost=cost,
forecast_cost=forecast_cost,
warehouse=warehouse,
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['baseusages'],
{
"rows": [{
'cost': cost,
'forecast_cost': forecast_cost,
'type': {
'id': usage_type.id,
'name': '{0}'.format(usage_type),
},
"warehouse": {
"id": warehouse.id,
"name": warehouse.name,
}
}],
"name": "Base Usages",
"template": "tabbaseusages.html",
}
)
def test_get_team_cost_when_there_is_one_team(self):
team = factory.TeamFactory()
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['teamcosts'],
{
"rows": [{
'team': {
'id': team.id,
'name': team.name,
},
'cost': 0.0,
'forecast_cost': 0.0,
'members': 0,
}],
"name": "Team Costs",
"template": "tabteamcosts.html",
}
)
def test_get_team_cost_when_there_is_one_team_cost(self):
cost = 100.0
forecast_cost = 200.0
members = 4
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
team = factory.TeamFactory()
factory.TeamCostFactory(
team=team,
start=first_day,
end=last_day,
cost=cost,
forecast_cost=forecast_cost,
members_count=members
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['teamcosts'],
{
"rows": [{
'team': {
'id': team.id,
'name': team.name,
},
'cost': cost,
'forecast_cost': forecast_cost,
'members': members,
}],
"name": "Team Costs",
"template": "tabteamcosts.html",
}
)
def test_get_dynamic_extra_cost_when_there_is_one_type(self):
dynamic_extra_cost_type = factory.DynamicExtraCostTypeFactory()
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['dynamicextracosts'],
{
"rows": [{
'dynamic_extra_cost_type': {
'id': dynamic_extra_cost_type.id,
'name': dynamic_extra_cost_type.name,
},
'cost': 0.0,
'forecast_cost': 0.0,
}],
"name": "Dynamic Extra Costs",
"template": "tabdynamicextracosts.html",
}
)
def test_get_dynamic_extra_cost_when_there_is_one_type_and_cost(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
dynamic_extra_cost_type = factory.DynamicExtraCostTypeFactory()
factory.DynamicExtraCostFactory(
dynamic_extra_cost_type=dynamic_extra_cost_type,
forecast_cost=forecast_cost,
cost=cost,
start=first_day,
end=last_day,
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['dynamicextracosts'],
{
"rows": [{
'dynamic_extra_cost_type': {
'id': dynamic_extra_cost_type.id,
'name': dynamic_extra_cost_type.name,
},
'cost': cost,
'forecast_cost': forecast_cost,
}],
"name": "Dynamic Extra Costs",
"template": "tabdynamicextracosts.html",
}
)
def test_get_extra_cost_when_there_is_one_additional_type(self):
extra_cost_type = factory.ExtraCostTypeFactory(name='My-extra-cost')
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['extracosts'],
{
'name': 'Extra Costs',
'rows': [
{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name # my-extra-cost
},
'extra_costs': []
},
{
'extra_cost_type': {
'id': 1,
'name': 'Other'
},
'extra_costs': []
},
{
'extra_cost_type': {
'id': 2,
'name': 'Support'
},
'extra_costs': []
},
],
'template': 'tabextracostsadmin.html'
}
)
def test_get_extra_cost_when_there_is_one_additional_type_and_cost(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
extra_cost_type = factory.ExtraCostTypeFactory(name='My-extra-cost')
service_environment = factory.ServiceEnvironmentFactory()
extra_cost = factory.ExtraCostFactory(
extra_cost_type=extra_cost_type,
start=first_day,
end=last_day,
cost=cost,
forecast_cost=forecast_cost,
service_environment=service_environment,
)
response = self.client.get(
'/scrooge/rest/allocationadmin/{0}/{1}/'.format(
self.date.year,
self.date.month,
)
)
self.assertEquals(
json.loads(response.content)['extracosts'],
{
'name': 'Extra Costs',
'rows': [
{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name # my-extra-cost
},
'extra_costs': [{
'id': extra_cost.id,
'cost': extra_cost.cost,
'forecast_cost': extra_cost.forecast_cost,
'service': extra_cost.service_environment.service_id, # noqa: E501
'env': extra_cost.service_environment.environment_id # noqa: E501
}]
},
{
'extra_cost_type': {
'id': 1,
'name': 'Other'
},
'extra_costs': []
},
{
'extra_cost_type': {
'id': 2,
'name': 'Support'
},
'extra_costs': []
},
],
'template': 'tabextracostsadmin.html'
}
)
def test_save_base_usage_when_there_is_wrong_usage_type(self):
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
)
self.assertRaises(
NoUsageTypeError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/baseusages/save'.format(
self.date.year,
self.date.month,
),
{
"rows": [{
'cost': 0.0,
'forecast_cost': 0.0,
'type': {
'id': 0,
'name': '{0}'.format(usage_type.name),
}
}]
},
format='json'
)
def test_save_base_usage_when_there_is_no_by_warehouse(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
)
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/baseusages/save'.format(
self.date.year,
self.date.month,
),
{
"rows": [{
'cost': cost,
'forecast_cost': forecast_cost,
'type': {
'id': '{0}'.format(usage_type.id),
'name': '{0}'.format(usage_type.name),
}
}]
},
format='json'
)
usage_price = models.UsagePrice.objects.all()[0]
self.assertEquals(usage_price.cost, cost)
self.assertEquals(usage_price.forecast_cost, forecast_cost)
self.assertEquals(usage_price.start, first_day)
self.assertEquals(usage_price.end, last_day)
self.assertEquals(usage_price.type, usage_type)
self.assertEquals(usage_price.warehouse, None)
def test_save_base_usage_when_there_is_by_warehouse(self):
warehouse = factory.WarehouseFactory()
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
usage_type = factory.UsageTypeFactory(
is_manually_type=True,
usage_type='BU',
)
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/baseusages/save'.format(
self.date.year,
self.date.month,
),
{
"rows": [{
'cost': 0.0,
'forecast_cost': 0.0,
'type': {
'id': '{0}'.format(usage_type.id),
'name': '{0}'.format(usage_type.name),
},
'warehouse': {
'id': warehouse.id,
'name': warehouse.name
}
}]
},
format='json'
)
usage_price = models.UsagePrice.objects.all()[0]
self.assertEquals(usage_price.start, first_day)
self.assertEquals(usage_price.end, last_day)
self.assertEquals(usage_price.type, usage_type)
self.assertEquals(usage_price.warehouse, warehouse)
def test_save_extra_cost_when_there_is_wrong_type(self):
self.assertRaises(
NoExtraCostTypeError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': 0,
'name': 'Other'
},
'extra_costs': [{}]
}]
},
format='json'
)
def test_save_extra_cost_when_there_is_no_service(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
self.assertEquals(models.ExtraCost.objects.count(), 0)
def test_save_extra_cost_when_there_is_bad_service(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'env': service_environment.environment_id,
'service': False
}]
}]
},
format='json'
)
self.assertEquals(models.ExtraCost.objects.count(), 0)
def test_save_extra_cost_when_there_is_no_env(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'service': service_environment.service_id,
}]
}]
},
format='json'
)
self.assertEquals(models.ExtraCost.objects.count(), 0)
def test_save_extra_cost_when_there_is_bad_env(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'service': service_environment.service_id,
'env': False,
}]
}]
},
format='json'
)
self.assertEquals(models.ExtraCost.objects.count(), 0)
def test_save_extra_cost_when_there_is_wrong_service(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.assertRaises(
ServiceEnvironmentDoesNotExistError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'service': 111,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
def test_save_extra_cost_when_there_is_wrong_env(self):
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.assertRaises(
ServiceEnvironmentDoesNotExistError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': 0.0,
'forecast_cost': 0.0,
'service': service_environment.service_id,
'env': 111,
}]
}]
},
format='json'
)
def test_save_extra_cost_when_everything_is_ok(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'cost': cost,
'forecast_cost': forecast_cost,
'service': service_environment.service_id,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
extra_cost = models.ExtraCost.objects.all()[0]
self.assertEquals(extra_cost.cost, cost)
self.assertEquals(extra_cost.forecast_cost, forecast_cost)
self.assertEquals(extra_cost.service_environment, service_environment)
self.assertEquals(extra_cost.extra_cost_type, extra_cost_type)
def test_update_extra_cost_when_wrong_extra_cost(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
extra_cost = models.ExtraCost.objects.create(
cost=50.0,
forecast_cost=50.0,
service_environment=service_environment,
extra_cost_type=extra_cost_type,
start=first_day,
end=last_day,
)
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'id': extra_cost.id,
'cost': cost,
'forecast_cost': forecast_cost,
'service': service_environment.service_id,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
self.assertRaises(
NoExtraCostError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'id': 0,
'cost': 0.0,
'forecast_cost': 0.0,
'service': service_environment.service_id,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
def test_update_extra_cost_when_everything_is_ok(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
extra_cost = models.ExtraCost.objects.create(
cost=50.0,
forecast_cost=50.0,
service_environment=service_environment,
extra_cost_type=extra_cost_type,
start=first_day,
end=last_day,
)
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'id': extra_cost.id,
'cost': cost,
'forecast_cost': forecast_cost,
'service': service_environment.service_id,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
extra_cost = models.ExtraCost.objects.all()[0]
self.assertEquals(extra_cost.cost, cost)
self.assertEquals(extra_cost.forecast_cost, forecast_cost)
def test_update_extra_cost_with_deletion(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
extra_cost_type = factory.ExtraCostTypeFactory()
service_environment = factory.ServiceEnvironmentFactory()
service_environment_2 = factory.ServiceEnvironmentFactory()
extra_cost = models.ExtraCost.objects.create(
cost=50.0,
forecast_cost=50.0,
service_environment=service_environment,
extra_cost_type=extra_cost_type,
start=first_day,
end=last_day,
)
models.ExtraCost.objects.create(
cost=50.0,
forecast_cost=50.0,
service_environment=service_environment_2,
extra_cost_type=extra_cost_type,
start=first_day,
end=last_day,
)
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/extracosts/save'.format(
self.date.year,
self.date.month,
),
{
'rows': [{
'extra_cost_type': {
'id': extra_cost_type.id,
'name': extra_cost_type.name
},
'extra_costs': [{
'id': extra_cost.id,
'cost': cost,
'forecast_cost': forecast_cost,
'service': service_environment.service_id,
'env': service_environment.environment_id,
}]
}]
},
format='json'
)
self.assertEqual(models.ExtraCost.objects.count(), 1)
self.assertEqual(models.ExtraCost.objects.all()[0].id, extra_cost.id)
def test_save_dynamic_extra_cost_when_there_is_wrong_type(self):
dynamic_extra_cost_type = factory.DynamicExtraCostTypeFactory()
self.assertRaises(
NoDynamicExtraCostTypeError,
self.client.post,
('/scrooge/rest/allocationadmin/{0}/{1}/'
'dynamicextracosts/save').format(
self.date.year,
self.date.month,
),
{
"rows": [{
'dynamic_extra_cost_type': {
'id': 0,
'name': dynamic_extra_cost_type.name,
},
'cost': 0.0,
'forecast_cost': 0.0,
}],
"name": "Dynamic Extra Costs",
"template": "tabdynamicextracosts.html",
},
format='json'
)
def test_save_dynamic_extra_cost(self):
cost = 100.0
forecast_cost = 200.0
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
dynamic_extra_cost_type = factory.DynamicExtraCostTypeFactory()
self.client.post(
('/scrooge/rest/allocationadmin/{0}/{1}/'
'dynamicextracosts/save').format(
self.date.year,
self.date.month,
),
{
"rows": [{
'dynamic_extra_cost_type': {
'id': dynamic_extra_cost_type.id,
'name': dynamic_extra_cost_type.name,
},
'cost': cost,
'forecast_cost': forecast_cost,
}],
"name": "Dynamic Extra Costs",
"template": "tabdynamicextracosts.html",
},
format='json'
)
dynamic_extra_cost = models.DynamicExtraCost.objects.all()[0]
self.assertEquals(dynamic_extra_cost.cost, cost)
self.assertEquals(dynamic_extra_cost.forecast_cost, forecast_cost)
self.assertEquals(dynamic_extra_cost.start, first_day)
self.assertEquals(dynamic_extra_cost.end, last_day)
self.assertEquals(
dynamic_extra_cost.dynamic_extra_cost_type,
dynamic_extra_cost_type,
)
def test_save_team_costs_when_there_is_wrong_type(self):
team = factory.TeamFactory()
self.assertRaises(
TeamDoesNotExistError,
self.client.post,
'/scrooge/rest/allocationadmin/{0}/{1}/teamcosts/save'.format(
self.date.year,
self.date.month,
),
{
"rows": [{
'team': {
'id': 0,
'name': team.name,
},
'cost': 0.0,
'forecast_cost': 0.0,
'members': 0,
}],
},
format='json'
)
def test_save_team_costs(self):
cost = 100.0
forecast_cost = 200.0
members = 4
first_day, last_day, days_in_month = get_dates(
self.date.year,
self.date.month,
)
team = factory.TeamFactory()
self.client.post(
'/scrooge/rest/allocationadmin/{0}/{1}/teamcosts/save'.format(
self.date.year,
self.date.month,
),
{
"rows": [{
'team': {
'id': team.id,
'name': team.name,
},
'cost': cost,
'forecast_cost': forecast_cost,
'members': members,
}],
},
format='json'
)
team_cost = models.TeamCost.objects.all()[0]
self.assertEquals(team_cost.cost, cost)
self.assertEquals(team_cost.forecast_cost, forecast_cost)
self.assertEquals(team_cost.members_count, members)
self.assertEquals(team_cost.start, first_day)
self.assertEquals(team_cost.end, last_day)
self.assertEquals(team_cost.team, team)
| 34.259924 | 95 | 0.456121 | 3,020 | 36,247 | 5.20298 | 0.05298 | 0.079043 | 0.073633 | 0.043785 | 0.893528 | 0.865334 | 0.833386 | 0.822949 | 0.795011 | 0.775727 | 0 | 0.014714 | 0.44125 | 36,247 | 1,057 | 96 | 34.292337 | 0.761122 | 0.001959 | 0 | 0.694831 | 0 | 0 | 0.116091 | 0.047636 | 0 | 0 | 0 | 0 | 0.050696 | 1 | 0.029821 | false | 0.000994 | 0.012922 | 0 | 0.043738 | 0.000994 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
56e4e637901e90329d18c34dff9202813761d9da | 46 | py | Python | platform_api/handlers/__init__.py | neuro-inc/platform-api | da3df2262eb38b76323f9c76596772820d523ee4 | [
"Apache-2.0"
] | null | null | null | platform_api/handlers/__init__.py | neuro-inc/platform-api | da3df2262eb38b76323f9c76596772820d523ee4 | [
"Apache-2.0"
] | 69 | 2021-11-12T13:11:58.000Z | 2022-03-31T03:20:02.000Z | platform_api/handlers/__init__.py | neuro-inc/platform-api | da3df2262eb38b76323f9c76596772820d523ee4 | [
"Apache-2.0"
] | 1 | 2022-03-10T04:25:58.000Z | 2022-03-10T04:25:58.000Z | from .jobs_handler import JobsHandler # noqa
| 23 | 45 | 0.804348 | 6 | 46 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 1 | 46 | 46 | 0.923077 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
56f6ef0205994c93dff92fcf1add73f98284bc00 | 32 | py | Python | __init__.py | sungcheolkim78/py_paperdb | 0f08fd8c2455b2e7cefa02e8d0fff464eb5c5aee | [
"Apache-2.0"
] | null | null | null | __init__.py | sungcheolkim78/py_paperdb | 0f08fd8c2455b2e7cefa02e8d0fff464eb5c5aee | [
"Apache-2.0"
] | null | null | null | __init__.py | sungcheolkim78/py_paperdb | 0f08fd8c2455b2e7cefa02e8d0fff464eb5c5aee | [
"Apache-2.0"
] | null | null | null | from pdf_read import convertPDF
| 16 | 31 | 0.875 | 5 | 32 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 32 | 1 | 32 | 32 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
710b4f6ec75fec8182421043c8c1b9034b469c55 | 43 | py | Python | djpayex/tests/__init__.py | asbjornu/django-payex | ab2cfbc9711b26b2c91be0df572e2686e38f7417 | [
"BSD-2-Clause"
] | null | null | null | djpayex/tests/__init__.py | asbjornu/django-payex | ab2cfbc9711b26b2c91be0df572e2686e38f7417 | [
"BSD-2-Clause"
] | 1 | 2021-06-25T15:44:16.000Z | 2021-06-25T15:44:16.000Z | djpayex/tests/__init__.py | PayEx/django-payex | ab2cfbc9711b26b2c91be0df572e2686e38f7417 | [
"BSD-2-Clause"
] | null | null | null | from managers import *
from views import *
| 14.333333 | 22 | 0.767442 | 6 | 43 | 5.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 43 | 2 | 23 | 21.5 | 0.942857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
71386c02547ba72c5b2549f241f5992fa7129e6c | 117 | py | Python | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/tseries/api.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 18 | 2018-02-23T11:28:54.000Z | 2021-09-23T08:19:54.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/tseries/api.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 2 | 2021-02-08T20:19:17.000Z | 2021-04-30T20:32:52.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/pandas/tseries/api.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 12 | 2017-05-23T06:01:12.000Z | 2021-08-16T05:09:46.000Z | """
"""
# flake8: noqa
from pandas.tseries.frequencies import infer_freq
import pandas.tseries.offsets as offsets
| 13 | 49 | 0.760684 | 15 | 117 | 5.866667 | 0.733333 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.136752 | 117 | 8 | 50 | 14.625 | 0.861386 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
713a4ce743104d5f0f230a4bf97255bb4a420a7d | 198 | py | Python | tests/__init__.py | yehzhang/dscraper | 6fd1a4238795e9eb01b9dd8329a84495a70979d1 | [
"Apache-2.0"
] | 1 | 2017-08-13T09:50:06.000Z | 2017-08-13T09:50:06.000Z | tests/__init__.py | yehzhang/dscraper | 6fd1a4238795e9eb01b9dd8329a84495a70979d1 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | yehzhang/dscraper | 6fd1a4238795e9eb01b9dd8329a84495a70979d1 | [
"Apache-2.0"
] | null | null | null | import logging
import sys
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("asyncio").setLevel(logging.WARNING)
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
| 28.285714 | 59 | 0.823232 | 24 | 198 | 6.791667 | 0.541667 | 0.196319 | 0.269939 | 0.355828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 198 | 6 | 60 | 33 | 0.862434 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
7143d3fafd6b0831faf2521b6730bbc73ecba599 | 17,880 | py | Python | dynamicgem/graph_generation/dynamic_SBM_graph.py | Sujit-O/dyngem | a879bf362d1e9409faa4e1186c345337ad6d0189 | [
"MIT"
] | null | null | null | dynamicgem/graph_generation/dynamic_SBM_graph.py | Sujit-O/dyngem | a879bf362d1e9409faa4e1186c345337ad6d0189 | [
"MIT"
] | null | null | null | dynamicgem/graph_generation/dynamic_SBM_graph.py | Sujit-O/dyngem | a879bf362d1e9409faa4e1186c345337ad6d0189 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import random
import networkx as nx
import operator
import sys
from dynamicgem.graph_generation import SBM_graph
from dynamicgem.utils import graph_util
function_mapping = {'degree': nx.degree_centrality,
'eigenvector': nx.eigenvector_centrality,
'katz': nx.katz_centrality,
'closeness': nx.closeness_centrality,
'betweenness': nx.betweenness_centrality,
'load': nx.load_centrality,
'harmonic': nx.harmonic_centrality}
def _resample_egde_for_node(sbm_graph, node_id):
"""Function to resample the nodes
Attributes:
sbm_graph (Object): Networkx Graph Object
node_id (int): Id of the node to resample
"""
if sbm_graph._graph is None:
sbm_graph.sample_graph()
else:
n = sbm_graph._node_num
for i in range(n):
if i == node_id:
continue
if sbm_graph._graph.has_edge(node_id, i):
sbm_graph._graph.remove_edge(node_id, i)
sbm_graph._graph.remove_edge(i, node_id)
prob = sbm_graph._B[sbm_graph._node_community[node_id], sbm_graph._node_community[i]]
if np.random.uniform() <= prob:
sbm_graph._graph.add_edge(node_id, i)
sbm_graph._graph.add_edge(i, node_id)
def _resample_egde_for_node_v2(sbm_graph, node_id):
"""Function to resample the nodes
Attributes:
sbm_graph (Object): Networkx Graph Object
node_id (int): Id of the node to resample
"""
if sbm_graph._graph is None:
sbm_graph.sample_graph()
else:
n = sbm_graph._node_num
for i in range(n):
if i == node_id or sbm_graph._node_community[i] == sbm_graph._node_community[node_id]:
if np.random.uniform() <= 0.04 and not sbm_graph._graph.has_edge(node_id, i):
sbm_graph._graph.add_edge(node_id, i)
sbm_graph._graph.add_edge(i, node_id)
continue
if sbm_graph._graph.has_edge(node_id, i):
prob = sbm_graph._B[sbm_graph._node_community[node_id], sbm_graph._node_community[i]]
if np.random.uniform() >= prob:
sbm_graph._graph.remove_edge(node_id, i)
sbm_graph._graph.remove_edge(i, node_id)
# prob = sbm_graph._B[sbm_graph._node_community[node_id], sbm_graph._node_community[i]]
# if np.random.uniform() <= prob:
# sbm_graph._graph.add_edge(node_id, i)
# sbm_graph._graph.add_edge(i, node_id)
def dyn_node_chng(sbm_graph, node_id):
"""Function to dynamically change the nodes
Attributes:
sbm_graph (Object): Networkx Graph Object
node_id (int): Id of the node to resample
"""
if sbm_graph._graph is None:
sbm_graph.sample_graph()
else:
n = sbm_graph._node_num
for i in range(n):
if i == node_id:
continue
if sbm_graph._node_community[i] != sbm_graph._node_community[node_id]:
if not sbm_graph._graph.has_edge(node_id, i):
prob = 0.1
if np.random.uniform() <= prob:
sbm_graph._graph.add_edge(node_id, i)
sbm_graph._graph.add_edge(i, node_id)
else:
if sbm_graph._graph.has_edge(node_id, i):
prob = 0.1
if np.random.uniform() <= prob:
sbm_graph._graph.remove_edge(node_id, i)
sbm_graph._graph.remove_edge(i, node_id)
def dyn_node_chng_v2(sbm_graph, node_id):
"""Function to dynamically change the nodes
Attributes:
sbm_graph (Object): Networkx Graph Object
node_id (int): Id of the node to resample
"""
if sbm_graph._graph is None:
sbm_graph.sample_graph()
else:
n = sbm_graph._node_num
othercommnodes = [i for i in range(n) if sbm_graph._node_community[i] != sbm_graph._node_community[node_id] if
not sbm_graph._graph.has_edge(node_id, i)]
edgesnodes = random.sample(othercommnodes, 30)
for i in edgesnodes:
sbm_graph._graph.add_edge(node_id, i)
sbm_graph._graph.add_edge(i, node_id)
for i in range(n):
if i == node_id:
continue
if sbm_graph._node_community[i] == sbm_graph._node_community[node_id]:
if sbm_graph._graph.has_edge(node_id, i):
prob = 0.1
if np.random.uniform() <= prob:
sbm_graph._graph.remove_edge(node_id, i)
sbm_graph._graph.remove_edge(i, node_id)
def random_node_perturbation(sbm_graph, nodes_to_purturb):
"""Function to randomly perturb the nodes
Attributes:
sbm_graph (Object): Networkx Graph Object
nodes_to_purturb (int): Number of nodes to perturb
"""
n = sbm_graph._node_num
# Add a function to give perturbed_nodes based on adifferent criterias
perturb_nodes = random.sample(range(n), nodes_to_purturb)
for node_id in perturb_nodes:
new_community = sbm_graph._node_community[node_id]
while new_community == sbm_graph._node_community[node_id]:
new_community = random.sample(range(sbm_graph._community_num), 1)[0]
print('Node %d change from community %d to %d' % (node_id, sbm_graph._node_community[node_id], new_community))
sbm_graph._node_community[node_id] = new_community
for node_id in perturb_nodes:
_resample_egde_for_node(sbm_graph, node_id)
return perturb_nodes
def diminish_community(sbm_graph, community_id, nodes_to_purturb, criteria, criteria_r):
"""Function to diminsh the SBM community
Attributes:
sbm_graph (Object): Networkx Graph Object
community_id (int): Community to diminish
criteria (str): Criteria used to diminish the community
criteria_r (bool): Used to sort the nodes in reverse once order based on criteria
nodes_to_purturb (int): Number of nodes to perturb
"""
n = sbm_graph._node_num
community_nodes = [i for i in range(n) if sbm_graph._node_community[i] == community_id]
nodes_to_purturb = min(len(community_nodes), nodes_to_purturb)
labels = {}
try:
function = function_mapping[criteria]
if criteria == 'katz':
G_cen = function(sbm_graph._graph, alpha=0.01)
else:
G_cen = function(sbm_graph._graph)
except KeyError:
print(criteria, 'is an invalid input! Using degree_centrality instead.')
G_cen = nx.degree_centrality(sbm_graph._graph)
pass
G_cen = sorted(G_cen.items(), key=operator.itemgetter(1), reverse=criteria_r)
perturb_nodes = []
count = 0
i = 0
while count < nodes_to_purturb:
if sbm_graph._node_community[G_cen[i][0]] == community_id:
perturb_nodes.append(G_cen[i][0])
count += 1
i += 1
node_plot = []
count = 0
i = 0
while count < 20:
if sbm_graph._node_community[G_cen[i][0]] == community_id:
node_plot.append(G_cen[i][0])
count += 1
i += 1
node_plot_reverse = []
count = 0
i = len(G_cen) - 1
while count < 20:
if sbm_graph._node_community[G_cen[i][0]] == community_id:
node_plot_reverse.append(G_cen[i][0])
count += 1
i -= 1
for i, nid in enumerate(perturb_nodes):
labels[nid] = str("{0:.2f}".format(G_cen[i][1]))
del G_cen
# perturb_nodes = random.sample(community_nodes, nodes_to_purturb)
left_communitis = [i for i in range(sbm_graph._community_num) if i != community_id]
for node_id in perturb_nodes:
new_community = random.sample(left_communitis, 1)[0]
print('Node %d change from community %d to %d' % (node_id,
sbm_graph._node_community[node_id],
new_community))
sbm_graph._node_community[node_id] = new_community
for node_id in perturb_nodes:
_resample_egde_for_node(sbm_graph, node_id)
return perturb_nodes, labels, node_plot, node_plot_reverse
def diminish_community_v2(sbm_graph, community_id, nodes_to_purturb, chngnodes):
"""Function to diminsh the SBM community
Attributes:
sbm_graph (Object): Networkx Graph Object
community_id (int): Community to diminish
nodes_to_purturb (int): Number of nodes to perturb
chngnodes (list): List of nodes that is perturbed
"""
n = sbm_graph._node_num
community_nodes = [i for i in range(n) if sbm_graph._node_community[i] == community_id]
nodes_to_purturb = min(len(community_nodes), nodes_to_purturb)
perturb_nodes = chngnodes
# pos=nx.spring_layout(sbm_graph._graph)
# color=['y','b']
# plt.figure()
# plt.subplot(311)
# nx.draw_networkx_nodes(sbm_graph._graph,pos,node_size=500,node_color=[color[sbm_graph._node_community[p]] for p in sbm_graph._graph.nodes()])
# nx.draw_networkx_edges(sbm_graph._graph,pos,arrows=False,width=1.0,alpha=0.5)
# nx.draw_networkx_labels(sbm_graph._graph,pos,font_size=8)
left_communitis = [i for i in range(sbm_graph._community_num) if i != community_id]
for node_id in perturb_nodes:
new_community = random.sample(left_communitis, 1)[0]
print('Node %d change from community %d to %d' % (node_id,
sbm_graph._node_community[node_id],
new_community))
sbm_graph._node_community[node_id] = new_community
for node_id in perturb_nodes:
_resample_egde_for_node_v2(sbm_graph, node_id)
# plt.subplot(312)
# nx.draw_networkx_nodes(sbm_graph._graph,pos,node_size=500,node_color=[color[sbm_graph._node_community[p]] for p in sbm_graph._graph.nodes()])
# nx.draw_networkx_edges(sbm_graph._graph,pos,arrows=False,width=1.0,alpha=0.5)
# nx.draw_networkx_labels(sbm_graph._graph,pos,font_size=8)
# G_cen= nx.degree_centrality(sbm_graph._graph)
# G_cen = sorted(G_cen.items(), key=operator.itemgetter(1),reverse = False)
# chngnodes=[]
# count = 0
# i = 0
# while count<nodes_to_purturb:
# if sbm_graph._node_community[G_cen[i][0]]==community_id:
# chngnodes.append(G_cen[i][0])
# count+=1
# i+=1
nodes = [i for i in range(n) if sbm_graph._node_community[i] == community_id]
chngnodes = random.sample(nodes, nodes_to_purturb)
for node_id in chngnodes:
dyn_node_chng_v2(sbm_graph, node_id)
# print("Changed Nodes: ",chngnodes)
# plt.subplot(313)
# nx.draw_networkx_nodes(sbm_graph._graph,pos,node_size=500,node_color=[color[sbm_graph._node_community[p]] for p in sbm_graph._graph.nodes()])
# nx.draw_networkx_edges(sbm_graph._graph,pos,arrows=False,width=1.0,alpha=0.5)
# nx.draw_networkx_labels(sbm_graph._graph,pos,font_size=8)
# plt.show()
return perturb_nodes, chngnodes
def get_random_perturbation_series(node_num, community_num, length, nodes_to_purturb):
"""Function to get random perturbation
Attributes:
node_num (int): Total number of nodes
community_num (int): Total number of community
nodes_to_purturb (int): Number of nodes to perturb
length (int): Length of the graph sequence
"""
my_graph = SBM_graph.SBMGraph(node_num, community_num)
my_graph.sample_graph()
graphs = [my_graph._graph.copy()]
nodes_comunities = [my_graph._node_community[:]]
perturbations = [[]]
for i in range(length - 1):
print('Step %d' % i)
perturb_nodes = random_node_perturbation(my_graph, nodes_to_purturb)
graphs.append(my_graph._graph.copy())
nodes_comunities.append(my_graph._node_community[:])
perturbations.append(perturb_nodes)
return zip(graphs, nodes_comunities, perturbations)
def get_community_diminish_series(node_num,
community_num,
length,
community_id,
nodes_to_purturb,
criteria,
criteria_r):
"""Function to get diminshing community series
Attributes:
node_num (int): Total number of nodes
community_num (int): Total number of community
nodes_to_purturb (int): Number of nodes to perturb
length (int): Length of the graph sequence
community_id (int): Community to diminish
criteria (str): Criteria used to diminish the community
criteria_r (bool): Used to sort the nodes in reverse once order based on criteria
"""
my_graph = SBM_graph.SBMGraph(node_num, community_num, community_id, nodes_to_purturb)
my_graph.sample_graph_v3()
chngnodes = my_graph._chngnodes
graphs = [my_graph._graph.copy()]
nodes_comunities = [my_graph._node_community[:]]
perturbations = [[]]
nodes_plot = [[]]
nodes_plot_reverse = [[]]
labels = [[]]
for i in range(length - 1):
print('Step %d' % i)
perturb_nodes, label, node_plot, node_plot_reverse, chngnodes = diminish_community_v2(my_graph,
community_id,
nodes_to_purturb,
criteria,
criteria_r,
chngnodes)
print("purturbed nodes")
print(perturb_nodes)
print("changed nodes")
print(chngnodes)
graphs.append(my_graph._graph.copy())
nodes_comunities.append(my_graph._node_community[:])
perturbations.append(perturb_nodes)
labels.append(label)
nodes_plot.append(node_plot)
nodes_plot_reverse.append(node_plot_reverse)
return zip(graphs, nodes_comunities, perturbations, labels, nodes_plot, nodes_plot_reverse)
def get_community_diminish_series_v2(node_num,
community_num,
length,
community_id,
nodes_to_purturb,
):
"""Function to get diminishing community series
Attributes:
node_num (int): Total number of nodes
community_num (int): Total number of community
nodes_to_purturb (int): Number of nodes to perturb
length (int): Length of the graph sequence
community_id (int): Community to diminish
"""
my_graph = SBM_graph.SBMGraph(node_num, community_num, community_id, nodes_to_purturb)
my_graph.sample_graph_v3()
chngnodes = my_graph._chngnodes
graphs = [my_graph._graph.copy()]
nodes_comunities = [my_graph._node_community[:]]
perturbations = [[]]
dyn_change_nodes = [[]]
for i in range(length - 1):
print('Step %d' % i)
print("Migrating Nodes")
print(chngnodes)
perturb_nodes, chngnodes = diminish_community_v2(my_graph,
community_id,
nodes_to_purturb,
chngnodes)
print("Dynamically changed nodes")
print(chngnodes)
perturbations.append(perturb_nodes)
dyn_change_nodes.append(chngnodes)
graphs.append(my_graph._graph.copy())
nodes_comunities.append(my_graph._node_community[:])
return zip(graphs, nodes_comunities, perturbations, dyn_change_nodes)
def drawGraph(node_num, community_num):
"""Function to draw the graphs"""
my_graph = SBM_graph.SBMGraph(node_num, community_num)
my_graph.sample_graph()
graphs = [my_graph._graph.copy()]
nx.draw(graphs)
if __name__ == '__main__':
node_num = 100
community_num = 2
node_change_num = 5
length = 5
get_community_diminish_series_v2(50,
2,
4,
1,
5)
plt.show()
# drawGraph(node_num, community_num)
# prefix = 'data/synthetic/dynamic_SBM/node_pertuabtion_%d_%d_%d' % (node_num, community_num, node_change_num)
# dynamic_sbm_series = get_random_perturbation_series(node_num, community_num, length, node_change_num)
# graph_util.saveDynamicSBmGraph(prefix, dynamic_sbm_series)
# prefix = 'data/synthetic/dynamic_SBM/community_diminish_%d_%d_%d' % (node_num, community_num, node_change_num)
# dynamic_sbm_series = get_community_diminish_series(node_num, community_num, length, 1, node_change_num)
# graph_util.saveDynamicSBmGraph(prefix, dynamic_sbm_series)
| 41.293303 | 147 | 0.594519 | 2,214 | 17,880 | 4.460705 | 0.086721 | 0.095585 | 0.057108 | 0.068044 | 0.820069 | 0.784427 | 0.761442 | 0.752025 | 0.731571 | 0.694411 | 0 | 0.009278 | 0.318792 | 17,880 | 432 | 148 | 41.388889 | 0.80156 | 0.255928 | 0 | 0.591603 | 0 | 0 | 0.026127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041985 | false | 0.003817 | 0.030534 | 0 | 0.09542 | 0.057252 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
85634d4c6c20b3cb13333c8fe8de1252437d95d5 | 13,248 | py | Python | sesame/observables.py | haney411/sesame | 866aefb048143c5df131310253ce67b4a24283fc | [
"BSD-3-Clause"
] | 2 | 2018-04-06T14:50:20.000Z | 2021-01-19T16:16:15.000Z | sesame/observables.py | haney411/sesame | 866aefb048143c5df131310253ce67b4a24283fc | [
"BSD-3-Clause"
] | null | null | null | sesame/observables.py | haney411/sesame | 866aefb048143c5df131310253ce67b4a24283fc | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 University of Maryland.
#
# This file is part of Sesame. It is subject to the license terms in the file
# LICENSE.rst found in the top-level directory of this distribution.
from numpy import exp
import numpy as np
def get_n(sys, efn, v, sites):
"""
Compute the electron density on the given sites.
Parameters
----------
sys: Builder
The discretized system.
efn: numpy array of floats
Values of the electron quasi-Fermi level.
v: numpy array of floats
Values of the electrostatic potential.
sites: list of integers
The sites where the electron density should be computed.
Returns
-------
n: numpy array
"""
n = sys.Nc[sites] * exp(+sys.bl[sites] + efn[sites] + v[sites])
return n
def get_p(sys, efp, v, sites):
"""
Compute the hole density on the given sites.
Parameters
----------
sys: Builder
The discretized system.
efp: numpy array of floats
Values of the hole quasi-Fermi level.
v: numpy array of floats
Values of the electrostatic potential.
sites: list of integers
The sites where the hole density should be computed.
Returns
-------
p: numpy array
"""
bl = sys.bl[sites]
Eg = sys.Eg[sites]
Nv = sys.Nv[sites]
p = Nv * exp(-Eg - bl - efp[sites] - v[sites])
return p
def get_bulk_rr(sys, n, p):
# Compute the bulk recombination of the entire system for SRH, radiative and
# Auger mechanisms
ni2 = sys.ni ** 2
_np = n * p
r = (_np - ni2) / (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) \
+ (sys.Cn * n + sys.Cp * p) * (_np - ni2) \
+ sys.B * (_np - ni2)
return r
def get_bulk_rr_derivs(sys, n, p):
ni2 = sys.ni ** 2
_np = n * p
defn = (_np * (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) - (_np - ni2) * n * sys.tau_h) \
/ (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) ** 2 \
+ sys.Cn * n * (2 * _np - ni2) + sys.Cp * _np * p \
+ sys.B * _np
defp = -(_np * (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) - (_np - ni2) * p * sys.tau_e) \
/ (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) ** 2 \
+ sys.Cn * n * _np + sys.Cp * p * (2 * _np - ni2) \
+ sys.B * _np
dv = (_np - ni2) * (sys.tau_e * p - sys.tau_h * n) \
/ (sys.tau_h * (n + sys.n1) + sys.tau_e * (p + sys.p1)) ** 2 \
+ sys.Cn * n * (_np - ni2) - sys.Cp * p * (_np - ni2)
return defn, defp, dv
def get_jn(sys, efn, v, sites_i, sites_ip1, dl):
"""
Compute the electron current between sites ``site_i`` and ``sites_ip1``.
Parameters
----------
sys: Builder
The discretized system.
efn: numpy array of floats
Values of the electron quasi-Fermi level for the entire system (as given
by the drift diffusion Poisson solver).
v: numpy array of floats
Values of the electrostatic potential for the entire system (as given
by the drift diffusion Poisson solver).
sites_i: list of integers
Indices of the sites the current is coming from.
sites_ip1: list of integers
Indices of the sites the current is going to.
dl: numpy arrays of floats
Lattice distances between sites ``sites_i`` and sites ``sites_ip1``.
Returns
-------
jn: numpy array of floats
"""
# tol1 controls the minimum value of dv. all values less than tol1 are set equal to tol1
tol1 = 1e-12
# tol2 controls threshold for taylor series expansion of jp in terms of dv0: series expansion is used if dv0<tol2
tol2 = 1e-5
# tol3 controls threshold for taylor series expansion of jp in terms of defp: series expansion is used if defp<tol3
tol3 = 1e-9
# this description of tol variables applies for the jp function, and jn and jp derivative functions
vp0 = v[sites_i] + sys.bl[sites_i] + np.log(sys.Nc[sites_i])
dv = vp0 - (v[sites_ip1] + sys.bl[sites_ip1] + np.log(sys.Nc[sites_ip1]))
dv0 = dv
dv = dv + (np.abs(dv) < tol1) * tol1
efnp0 = efn[sites_i]
efnp1 = efn[sites_ip1]
defn = efnp1 - efnp0
mu = sys.mu_e[sites_i]
jn = ( mu * exp(efnp1)*(1 - exp(efnp0-efnp1)) / dl * dv / (-exp(-vp0) * (1 - exp(dv))) * (np.abs(dv0) >= tol2) + \
-1 * mu * exp(efnp1)*(1 - exp(efnp0-efnp1)) / dl / (-exp(-vp0) * (1 + .5 * dv0 + 1/6.*(dv0)**2)) * (np.abs(dv0) < tol2)) * (np.abs(defn)>=tol3) + \
( mu * exp(efnp1)*(-(efnp0 - efnp1)) / dl * dv / (-exp(-vp0) * (1 - exp(dv))) * (np.abs(dv0) >= tol2) + \
-1 * mu * exp(efnp1)*(-(efnp0 - efnp1)) / dl / (-exp(-vp0) * (1 + .5 * dv0 + 1 / 6. * (dv0) ** 2)) * (np.abs(dv0) < tol2)) * (np.abs(defn) < tol3)
return jn
def get_jp(sys, efp, v, sites_i, sites_ip1, dl):
"""
Compute the hole current between sites ``site_i`` and ``sites_ip1``.
Parameters
----------
sys: Builder
The discretized system.
efp: numpy array of floats
Values of the hole quasi-Fermi level for the entire system (as given
by the drift diffusion Poisson solver).
v: numpy array of floats
Values of the electrostatic potential for the entire system (as given
by the drift diffusion Poisson solver).
sites_i: list of integers
Indices of the sites the current is coming from.
sites_ip1: list of integers
Indices of the sites the current is going to.
dl: numpy arrays of floats
Lattice distances between sites ``sites_i`` and sites ``sites_ip1``.
Returns
-------
jp: numpy array of floats
"""
tol1 = 1e-12
tol2 = 1e-5
tol3 = 1e-9
vp0 = v[sites_i] + sys.bl[sites_i] + sys.Eg[sites_i] - np.log(sys.Nv[sites_i])
dv = vp0 - (v[sites_ip1] + sys.bl[sites_ip1] + sys.Eg[sites_ip1] - np.log(sys.Nv[sites_ip1]))
dv0 = dv
dv = dv + (np.abs(dv) < tol1) * tol1
efpp0 = -efp[sites_i]
efpp1 = -efp[sites_ip1]
defp = efpp1 - efpp0
mu = sys.mu_h[sites_i]
jp = (mu * exp(efpp1) * (1 - exp(efpp0-efpp1)) / dl * dv / (-exp(vp0) * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
mu * exp(efpp1) * (1 - exp(efpp0-efpp1)) / dl * 1 / (-exp(vp0) * (1 - .5*(dv0) + 1/6.*(dv0)**2.)) * (np.abs(dv0) < tol2)) * (np.abs(defp) >= tol3) + \
(mu * exp(efpp1) * ( -(efpp0 - efpp1)) / dl * dv / (-exp(vp0) * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
mu * exp(efpp1) * ( -(efpp0 - efpp1)) / dl * 1 / (-exp(vp0) * (1 - .5 * (dv0) + 1 / 6. * (dv0) ** 2.)) * (np.abs(dv0) < tol2)) * (np.abs(defp) < tol3)
return jp
def get_jn_derivs(sys, efn, v, sites_i, sites_ip1, dl):
tol1 = 1e-12
tol2 = 1e-5
tol3 = 1e-9
vp0 = v[sites_i] + sys.bl[sites_i] + np.log(sys.Nc[sites_i])
vp1 = v[sites_ip1] + sys.bl[sites_ip1] + np.log(sys.Nc[sites_ip1])
dv = vp0 - vp1
dv0 = dv
dv = dv + (np.abs(dv) < tol1) * tol1
efnp0 = efn[sites_i]
efnp1 = efn[sites_ip1]
defn = efnp1 - efnp0
mu = sys.mu_e[sites_i]
ev0 = exp(-vp0)
ep1 = exp(efnp1)
ep0 = exp(efnp0)
defn_i = (1. / dl * exp(efnp0 + vp0) * (dv) / (1 - exp(dv)) * (np.abs(dv0) >= tol2) + \
-1. / dl * exp(efnp0 + vp0) / (1 + .5*dv0 + 1/6.*dv0**2) * (np.abs(dv0) < tol2)) * (np.abs(defn) >= tol3) + \
(1. * exp(efnp1) / dl * exp(vp0) * (dv) / (1 - exp(dv)) * (np.abs(dv0) >= tol2) + \
-1. * exp(efnp1) / dl * exp(vp0) / (1 + .5 * dv0 + 1 / 6. * dv0 ** 2) * (np.abs(dv0) < tol2)) * (np.abs(defn) < tol3)
defn_ip1 = (-1. / dl * exp(efnp1 + vp0) * (dv) / (1 - exp(dv)) * (np.abs(dv0) >= tol2) + \
1. / dl * exp(efnp1 + vp0) / (1 + .5*dv0 + 1/6.*dv0**2) * (np.abs(dv0) < tol2)) * (np.abs(defn) >= tol3) + \
(-1. * exp(efnp1) *(1-(efnp0 - efnp1))/ dl * exp(vp0) * (dv) / (1 - exp(dv)) * (np.abs(dv0) >= tol2) + \
1. * exp(efnp1) *(1-(efnp0 - efnp1))/ dl * exp(vp0) / (1 + .5 * dv0 + 1 / 6. * dv0 ** 2) * (np.abs(dv0) < tol2)) * (np.abs(defn) < tol3)
dv_i = (-exp(efnp1)*(1 - exp(efnp0-efnp1)) / dl * ev0 * (1 + dv - exp(dv)) / (ev0 ** 2 * (exp(dv) - 1) ** 2) * (np.abs(dv0) >= tol2) + \
-6*exp(vp0) * exp(efnp1)*(1 - exp(efnp0-efnp1)) / dl * (3 + vp0 + vp0**2 - 2*vp0*vp1 + vp1*(-1 + vp1)) \
/ (6 + vp0**2 + vp0*(3 - 2*vp1) + vp1*(-3 + vp1))**2 * (np.abs(dv0) < tol2)) * (np.abs(defn)>=tol3) + \
(-exp(efnp1) * ( -(efnp0 - efnp1)) / dl * ev0 * (1 + dv - exp(dv)) / (ev0 ** 2 * (exp(dv) - 1) ** 2) * (np.abs(dv0) >= tol2) + \
-6 * exp(vp0) * exp(efnp1) * (-(efnp0 - efnp1)) / dl * (3 + vp0 + vp0 ** 2 - 2 * vp0 * vp1 + vp1 * (-1 + vp1)) \
/ (6 + vp0 ** 2 + vp0 * (3 - 2 * vp1) + vp1 * (-3 + vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defn) < tol3)
dv_ip1 = (-1. / dl * exp(efnp1)*(1 - exp(efnp0-efnp1)) * exp(-vp1) * (1 - dv - exp(-dv)) / (exp(-2 * vp1) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
-6 * exp(vp0) * exp(efnp1)*(1 - exp(efnp0-efnp1)) / dl * (3 + 2*vp0 - 2*vp1)\
/ (6 + vp0**2 + vp0*(3 - 2*vp1) + vp1*(-3 + vp1))**2 * (np.abs(dv0) < tol2)) * (np.abs(defn) >= tol3) + \
(-1. / dl * exp(efnp1) * (-(efnp0 - efnp1)) * exp(-vp1) * (1 - dv - exp(-dv)) / (exp(-2 * vp1) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
-6 * exp(vp0) * exp(efnp1) * (-(efnp0 - efnp1)) / dl * (3 + 2 * vp0 - 2 * vp1) \
/ (6 + vp0 ** 2 + vp0 * (3 - 2 * vp1) + vp1 * (-3 + vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defn) < tol3)
return mu * defn_i, mu * defn_ip1, mu * dv_i, mu * dv_ip1
def get_jp_derivs(sys, efp, v, sites_i, sites_ip1, dl):
tol1 = 1e-12
tol2 = 1e-5
tol3 = 1e-9
vp0 = v[sites_i] + sys.bl[sites_i] + sys.Eg[sites_i] - np.log(sys.Nv[sites_i])
vp1 = v[sites_ip1] + sys.bl[sites_ip1] + sys.Eg[sites_ip1] - np.log(sys.Nv[sites_ip1])
dv = vp0 - vp1
dv0 = dv
dv = dv + (np.abs(dv) < tol1) * tol1
efpp0 = -efp[sites_i]
efpp1 = -efp[sites_ip1]
defp = efpp1 - efpp0
mu = sys.mu_h[sites_i]
ev0 = exp(vp0)
ep1 = exp(efpp1)
ep0 = exp(efpp0)
defp_i = -(exp(efpp0 - vp0) * dv / (dl * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
exp(efpp0 - vp0) / (dl) / (1 - .5*(vp0-vp1) + 1/6.*(vp0-vp1)**2.) * (np.abs(dv0) < tol2)) * (np.abs(defp)>=tol3) + \
-(exp(efpp1) * exp(-vp0) * dv / (dl * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
exp(efpp1) * exp(-vp0) / (dl) / (1 - .5 * (vp0 - vp1) + 1 / 6. * (vp0 - vp1) ** 2.) * (np.abs(dv0) < tol2)) * (np.abs(defp) < tol3)
defp_ip1 = -(-exp(efpp1 - vp0) * dv / (dl * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
-exp(efpp1 - vp0) / (dl) / (1 - .5*(vp0-vp1) + 1/6.*(vp0-vp1)**2.) * (np.abs(dv0) < tol2)) * (np.abs(defp)>=tol3) + \
-(-exp(efpp1) * exp(-vp0)*(1-(efpp0 - efpp1)) * dv / (dl * (1 - exp(-dv))) * (np.abs(dv0) >= tol2) + \
-exp(efpp1) * exp(-vp0)*(1-(efpp0 - efpp1)) / (dl) / (1 - .5*(vp0-vp1) + 1/6.*(vp0-vp1)**2.) * (np.abs(dv0) < tol2)) * (np.abs(defp) < tol3)
dv_i = (-exp(efpp0)*(1 - exp(efpp1-efpp0)) * ev0 * (exp(-dv) + (-1 + dv)) / (dl * exp(2 * vp0) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
-6* exp(efpp0)*(1 - exp(efpp1-efpp0)) / dl * (-exp(-vp0)) * (3 + (-1 + vp0)*vp0 + vp1 - 2*vp0*vp1 + vp1**2) \
/ (6 + vp0**2 + vp1*(3+vp1) - vp0*(3 + 2*vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defp) >= tol3) + \
(-exp(efpp0) * (-(efpp1 - efpp0)) * ev0 * (exp(-dv) + (-1 + dv)) / (dl * exp(2 * vp0) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
-6 * exp(efpp0) * (-(efpp1 - efpp0)) / dl * (-exp(-vp0)) * (3 + (-1 + vp0) * vp0 + vp1 - 2 * vp0 * vp1 + vp1 ** 2) \
/ (6 + vp0 ** 2 + vp1 * (3 + vp1) - vp0 * (3 + 2 * vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defp) < tol3)
dv_ip1 = (-exp(efpp0)*(1 - exp(efpp1-efpp0)) * ev0 * (1 + exp(-dv) * (-1 - dv)) / (dl * exp(2 * vp0) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
6 * exp(efpp0)*(1 - exp(efpp1-efpp0)) / dl * (-exp(-vp0)) * (-3 + 2*vp0 - 2*vp1) \
/ (6 + vp0 ** 2 + vp1 * (3 + vp1) - vp0 * (3 + 2 * vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defp) >= tol3) + \
(-exp(efpp0) * (-(efpp1 - efpp0)) * ev0 * (1 + exp(-dv) * (-1 - dv)) / (dl * exp(2 * vp0) * (1 - exp(-dv)) ** 2) * (np.abs(dv0) >= tol2) + \
6 * exp(efpp0) * (-(efpp1 - efpp0)) / dl * (-exp(-vp0)) * (-3 + 2 * vp0 - 2 * vp1) \
/ (6 + vp0 ** 2 + vp1 * (3 + vp1) - vp0 * (3 + 2 * vp1)) ** 2 * (np.abs(dv0) < tol2)) * (np.abs(defp) < tol3)
return mu * defp_i, mu * defp_ip1, mu * dv_i, mu * dv_ip1
def get_srh_rr_derivs(sys, n, p, n1, p1, tau_e, tau_h):
ni2 = n1 * p1
_np = n * p
defn = (_np * (tau_h * (n + n1) + tau_e * (p + p1)) - (_np - ni2) * n * tau_h) \
/ (tau_h * (n + n1) + tau_e * (p + p1)) ** 2
defp = -(_np * (tau_h * (n + n1) + tau_e * (p + p1)) - (_np - ni2) * p * tau_e) \
/ (tau_h * (n + n1) + tau_e * (p + p1)) ** 2
dv = (_np - ni2) * (tau_e * p - tau_h * n) / (tau_h * (n + n1) + tau_e * (p + p1)) ** 2
return defn, defp, dv
| 43.578947 | 163 | 0.500075 | 2,090 | 13,248 | 3.097129 | 0.07512 | 0.049436 | 0.049436 | 0.074154 | 0.839487 | 0.794995 | 0.790051 | 0.772439 | 0.754828 | 0.740306 | 0 | 0.081061 | 0.291365 | 13,248 | 303 | 164 | 43.722772 | 0.608436 | 0.216184 | 0 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.013333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
8569a4c09c42c71cc05ee19330a8e67a7ea25d30 | 132 | py | Python | torchvtk/datasets/__init__.py | xeTaiz/torch_vtk | 0d6f9cc0f9a3cce71c79118f66d56c2a8041635e | [
"MIT"
] | 2 | 2020-08-11T11:31:05.000Z | 2020-08-17T14:14:26.000Z | torchvtk/datasets/__init__.py | xeTaiz/torch_vtk | 0d6f9cc0f9a3cce71c79118f66d56c2a8041635e | [
"MIT"
] | 6 | 2020-07-01T15:37:15.000Z | 2020-08-12T14:17:34.000Z | torchvtk/datasets/__init__.py | xeTaiz/torch_vtk | 0d6f9cc0f9a3cce71c79118f66d56c2a8041635e | [
"MIT"
] | null | null | null | from .torch_dataset import TorchDataset
from .npy_dataset import NumpyDataset
from .queue import TorchQueueDataset, dict_collate_fn
| 33 | 53 | 0.871212 | 17 | 132 | 6.529412 | 0.705882 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 132 | 3 | 54 | 44 | 0.932773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
85777b1215749d2bda5bce6ba056ff181f230476 | 1,882 | py | Python | cjaasPythonClient/admin-apis/swagger_client/__init__.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 4 | 2021-04-28T16:33:09.000Z | 2022-01-12T00:19:06.000Z | cjaasPythonClient/admin-apis/swagger_client/__init__.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 2 | 2021-07-06T15:35:59.000Z | 2021-12-16T16:52:34.000Z | cjaasPythonClient/admin-apis/swagger_client/__init__.py | kat-mulberries/cjaas-sdk | 11dc39c9e2058d1a6c900ad0ef4236a984f8aac5 | [
"Apache-2.0"
] | 7 | 2021-05-13T20:15:21.000Z | 2021-12-16T10:28:02.000Z | # coding: utf-8
# flake8: noqa
"""
Azure Functions OpenAPI Extension
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import apis into sdk package
from swagger_client.api.account_api import AccountApi
from swagger_client.api.journey_api import JourneyApi
# import ApiClient
from swagger_client.api_client import ApiClient
from swagger_client.configuration import Configuration
# import models into sdk package
from swagger_client.models.apps_document_swagger import AppsDocumentSwagger
from swagger_client.models.create_app import CreateApp
from swagger_client.models.data_message import DataMessage
from swagger_client.models.error_object import ErrorObject
from swagger_client.models.http_error_response import HttpErrorResponse
from swagger_client.models.http_generic_list_object_response_apps_document_swagger import HttpGenericListObjectResponseAppsDocumentSwagger
from swagger_client.models.http_generic_list_object_response_identity import HttpGenericListObjectResponseIdentity
from swagger_client.models.http_generic_object_response_create_app import HttpGenericObjectResponseCreateApp
from swagger_client.models.http_generic_object_response_identity_by_id import HttpGenericObjectResponseIdentityById
from swagger_client.models.http_response_meta import HttpResponseMeta
from swagger_client.models.http_simple_message_object_response import HttpSimpleMessageObjectResponse
from swagger_client.models.identity import Identity
from swagger_client.models.identity_aliases_request_body import IdentityAliasesRequestBody
from swagger_client.models.identity_by_id import IdentityById
from swagger_client.models.message_object import MessageObject
| 48.25641 | 138 | 0.878852 | 234 | 1,882 | 6.773504 | 0.320513 | 0.131861 | 0.203785 | 0.217666 | 0.363407 | 0.213249 | 0.174132 | 0.126183 | 0.065615 | 0 | 0 | 0.004627 | 0.081296 | 1,882 | 38 | 139 | 49.526316 | 0.912088 | 0.185972 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
8594956ed4fae4c28e8c60e5f058c3a0489cd821 | 140 | py | Python | opensir/models/__init__.py | 1091478765p/open-sirv | 7833d6fa131f743b319bce0b329479e1af18d4c0 | [
"MIT"
] | 6 | 2020-03-28T20:59:41.000Z | 2021-04-24T08:09:15.000Z | opensir/models/__init__.py | 1091478765p/open-sirv | 7833d6fa131f743b319bce0b329479e1af18d4c0 | [
"MIT"
] | 71 | 2020-03-29T15:10:27.000Z | 2022-03-12T00:47:54.000Z | opensir/models/__init__.py | 1091478765p/open-sirv | 7833d6fa131f743b319bce0b329479e1af18d4c0 | [
"MIT"
] | 8 | 2020-04-04T21:15:58.000Z | 2021-04-29T15:34:37.000Z | """ models module init.py"""
from opensir.models.model import Model
from opensir.models.sir import SIR
from opensir.models.sirx import SIRX
| 28 | 38 | 0.792857 | 22 | 140 | 5.045455 | 0.454545 | 0.297297 | 0.459459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 140 | 4 | 39 | 35 | 0.895161 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
a45a75fd14495a18b9cd612553a66673c8cec913 | 34 | py | Python | sourcelyzer/utils/__init__.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | 1 | 2017-07-25T21:06:09.000Z | 2017-07-25T21:06:09.000Z | sourcelyzer/utils/__init__.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | null | null | null | sourcelyzer/utils/__init__.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | null | null | null | import sourcelyzer.utils.hashing
| 11.333333 | 32 | 0.852941 | 4 | 34 | 7.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 34 | 2 | 33 | 17 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
a46592e7feeed37bc3c18342aacea53250c62a50 | 2,674 | py | Python | tests/examples/test_stgp_symbolic_regression_ephemeral.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | 1 | 2019-11-18T14:41:20.000Z | 2019-11-18T14:41:20.000Z | tests/examples/test_stgp_symbolic_regression_ephemeral.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | null | null | null | tests/examples/test_stgp_symbolic_regression_ephemeral.py | jorgetavares/pygenome | 2b529ea55feff8c4a0214b37354d4d7c273202a3 | [
"MIT"
] | null | null | null | from examples.stgp_symbolic_regression_ephemeral import *
stdout = """0 34.779765758467704 1929.949896427344 20588.415768389215
1 32.5 230.59360680094431 1319.7207385503998
2 32.215831727764765 203.2726575895383 1805.4810145677488
3 32.215831727764765 176.20389638105144 1136.075983101311
4 32.215831727764765 153.70757001472435 608.0473583995466
5 27.9312403959304 132.5473451913878 331.29159466037146
6 27.9312403959304 222.0878660483859 1868.7545496046846
7 27.9312403959304 157.77732050261488 755.7332974344117
8 27.9312403959304 172.333797411722 883.8125844699373
9 27.9312403959304 194.07288747346885 1165.2759756065514
10 27.9312403959304 364.5914376095368 4699.681970144154
11 25.9312403959304 638.3145242012243 13246.109760015546
12 25.9312403959304 149.69813403378762 551.0252829985919
13 25.9312403959304 369.1654538647854 5779.7964869677035
14 25.9312403959304 153.93398148140963 763.1763865962911
15 25.9312403959304 1977.618005958232 58556.89051756631
16 25.9312403959304 174.2628032294424 993.2377912376131
17 25.9312403959304 171.50556844709538 992.4334385155821
18 25.9312403959304 320.32935320717314 6619.314841129529
19 25.9312403959304 128.22165330069666 579.8901469969927
fitness: 25.9312403959304 genotype: [ 6 3 1 3 2 8031 9 1 9 9 9 5 1 9
4 1 9 9 5 5 13 33 15 1 9 9 9 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0]
"""
def test_stgp_with_elitism_ephemeral(capfd):
stgp_with_elitism_ephemeral()
out, err = capfd.readouterr()
assert out == stdout
| 54.571429 | 106 | 0.537023 | 426 | 2,674 | 3.347418 | 0.298122 | 0.319776 | 0.47756 | 0.633941 | 0.160589 | 0.160589 | 0.160589 | 0.160589 | 0.160589 | 0.160589 | 0 | 0.827858 | 0.430815 | 2,674 | 48 | 107 | 55.708333 | 0.109067 | 0 | 0 | 0.355556 | 0 | 0.022222 | 0.919596 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.022222 | false | 0 | 0.022222 | 0 | 0.044444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f1186dd621845de8080e02ceadfab4a9e6b6403a | 7,083 | py | Python | test/test_math_result.py | nikett/math_challenge_eval | bafe9f6d30fc5ffd97492ce5e42716f839c29c4f | [
"Apache-2.0"
] | null | null | null | test/test_math_result.py | nikett/math_challenge_eval | bafe9f6d30fc5ffd97492ce5e42716f839c29c4f | [
"Apache-2.0"
] | null | null | null | test/test_math_result.py | nikett/math_challenge_eval | bafe9f6d30fc5ffd97492ce5e42716f839c29c4f | [
"Apache-2.0"
] | null | null | null | import unittest
from typing import Dict, List
from src import math_challenge_leaderboard
from src.math_challenge import Challenge
from src.math_challenge_result import MathChallengeResult
from src.student_info import StudentInfo
class TestChallenge(unittest.TestCase):
def test_preprocess(self):
self.assertEqual(MathChallengeResult.passed_as_per_grade(num_correct=5, grade="Kindergarten"), True)
self.assertEqual(MathChallengeResult.passed_as_per_grade(num_correct=0, grade="Kindergarten"), False)
self.assertEqual(MathChallengeResult.passed_as_per_grade(num_correct=3, grade="Kindergarten"), True)
self.assertEqual(MathChallengeResult.passed_as_per_grade(num_correct=5, grade="Fourth grade"), False)
self.assertEqual(MathChallengeResult.passed_as_per_grade(num_correct=15, grade="Fourth grade"), True)
def test_summarize(self):
r1 = MathChallengeResult()
r1.passed = True
r1.num_correct = 4
r1.num_wrong = 18 - 4
results = [r1, r1, r1]
self.assertEqual(MathChallengeResult.summarize(results)["total_num_passed"], 3)
self.assertEqual(MathChallengeResult.summarize(results)["total_num_correct"], 12)
def test_score(self):
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
student_ans = Challenge(student=top1_student, answers=["ans is 1", "2", "3", "4"], challenge_name="MC2", is_student_resp=True)
gold_ans = Challenge(student=None, answers=["1", "0", "3", "4"], challenge_name="MC2", is_student_resp=False)
r1 = MathChallengeResult()
r1.passed = True
r1.num_correct = 3
r1.num_wrong = 4 - r1.num_correct
self.assertEqual(MathChallengeResult.result(student_ans, gold_ans).__repr__(), r1.__repr__())
def test_score_for_equal_sign(self):
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
student_ans = Challenge(student=top1_student, answers=["0+0.5+0.5=1", "U, Y, and Z", "3", "4"], challenge_name="MC2", is_student_resp=True)
gold_ans = Challenge(student=None, answers=["1", "{Y}{U}{Z} __OR__ {U}{Z}{Y} __OR__ {U}{Y}{Z}", "3", "4"], challenge_name="MC2", is_student_resp=False)
r1 = MathChallengeResult()
r1.passed = True
self.assertEqual(MathChallengeResult.result(student_ans, gold_ans).__repr__(), r1.__repr__())
def test_score_with_text_in_ans(self):
# gold: a. {6–(4+2)+4} b. {4+3–(5+2)+4} c. {(3-1)+4–2+2–2}
# student: a 6-(4+2)+4 b. 4+3-(5+2)+4 c. (3-1)+4-2+2-2
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
gold_ans, challenge_wise_retaining = Challenge.load_gold_answers(fp="test_data/correct-answers-till4-new.csv")
student_ans = Challenge.load_student_answers(fp="test_data/test_replacement_student_ans.csv", challenge_wise_retaining=challenge_wise_retaining)
student_scores: Dict[StudentInfo, List[MathChallengeResult]] = MathChallengeResult.compute_student_scores(correct_challenges_dict=gold_ans, student_list_challenges_dict=student_ans)
assert student_scores[top1_student][0].num_correct == 12
def test_score_with_text_in_ans_YZU_question(self):
# gold: a. {6–(4+2)+4} b. {4+3–(5+2)+4} c. {(3-1)+4–2+2–2}
# student: a 6-(4+2)+4 b. 4+3-(5+2)+4 c. (3-1)+4-2+2-2
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
gold_ans, challenge_wise_retaining = Challenge.load_gold_answers(fp="test_data/correct-answers-of-mc8.csv")
student_ans = Challenge.load_student_answers(fp="test_data/test_replacement_student_ans-YZU.csv", challenge_wise_retaining=challenge_wise_retaining)
student_scores: Dict[StudentInfo, List[MathChallengeResult]] = MathChallengeResult.compute_student_scores(correct_challenges_dict=gold_ans, student_list_challenges_dict=student_ans)
assert student_scores[top1_student][0].num_correct == 8
def test_score_when_multiple_correct_gold(self):
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
student_ans = Challenge(student=top1_student, answers=["ans is 1", "2", "3", "4"], challenge_name="MC2", is_student_resp=True)
gold_ans = Challenge(student=None, answers=["1", "0 __OR__ 2", "3", "4"], challenge_name="MC2", is_student_resp=False)
r1 = MathChallengeResult()
r1.passed = True
r1.num_correct = 4
r1.num_wrong = 4 - r1.num_correct
self.assertEqual(MathChallengeResult.result(student_ans, gold_ans).__repr__(), r1.__repr__())
def test_score_text_ans(self):
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
student_ans = Challenge(student=top1_student, answers=["ans is 1", "2", "3", "4"], challenge_name="MC2", is_student_resp=True)
gold_ans = Challenge(student=None, answers=["1", "0 {blue} __OR__ 2 {grey}", "3", "4"], challenge_name="MC2", is_student_resp=False)
r1 = MathChallengeResult()
r1.passed = True
r1.num_correct = 4
r1.num_wrong = 4 - r1.num_correct
self.assertEqual(MathChallengeResult.result(student_ans, gold_ans).__repr__(), r1.__repr__())
def test_create_leaderboard(self):
r1 = MathChallengeResult()
r1.passed = True
r1.num_correct = 4
r1.num_wrong = 18 - 4
r2 = MathChallengeResult()
r2.passed = False
r2.num_correct = 2
r2.num_wrong = 18 - 2
results1 = [r1, r1, r1]
results2 = [r1, r2, r2]
results3 = [r2, r2, r2]
top1_student = StudentInfo(f_name="Top1", l_name="Tandon", grade="First grade", teacher="Ms. Erica Garl", email="blah@blah.com")
top2_student = StudentInfo(f_name="Top2", l_name="Tandon", grade="Kindergarten", teacher="Ms. Kathy Madden", email="blah@blah.com")
top3_student = StudentInfo(f_name="Top3", l_name="Tandon", grade="Kindergarten", teacher="Ms. Erica Madden", email="blah@blah.com")
student_scores = {
top1_student: results1,
top2_student: results2,
top3_student: results3
}
leaderboard = MathChallengeResult.create_leaderboard(student_scores=student_scores)
self.assertEqual(leaderboard[2][0], top3_student)
self.assertEqual(leaderboard[0][0], top1_student)
# def test_create_leaderboard_from_file(self):
# p =leaderboard.main(correct_answers_fp="data/bug/bugfix_correct_ans.csv",
# # student_answers_fp="data/bug/bugfix_user_resp.csv"
# student_answers_fp="data/bug/all-resp-until-mc2.csv"
# )
if __name__ == '__main__':
unittest.main()
| 60.025424 | 189 | 0.684597 | 975 | 7,083 | 4.690256 | 0.128205 | 0.037175 | 0.081784 | 0.045266 | 0.785699 | 0.768423 | 0.752023 | 0.702165 | 0.702165 | 0.701509 | 0 | 0.038442 | 0.177326 | 7,083 | 117 | 190 | 60.538462 | 0.74498 | 0.073556 | 0 | 0.402174 | 0 | 0.01087 | 0.133262 | 0.024882 | 0 | 0 | 0 | 0 | 0.163043 | 1 | 0.097826 | false | 0.141304 | 0.065217 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
f1275f58863c78d59e7cf9801fff57ff179a9434 | 49 | py | Python | azurlane/pipelines/__init__.py | stocky37/azurlane-data | da367d54125aa4307039f48e2706db7dde38db75 | [
"MIT"
] | null | null | null | azurlane/pipelines/__init__.py | stocky37/azurlane-data | da367d54125aa4307039f48e2706db7dde38db75 | [
"MIT"
] | null | null | null | azurlane/pipelines/__init__.py | stocky37/azurlane-data | da367d54125aa4307039f48e2706db7dde38db75 | [
"MIT"
] | null | null | null | from azurlane.pipelines.json import JsonPipeline
| 24.5 | 48 | 0.877551 | 6 | 49 | 7.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 49 | 1 | 49 | 49 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
f169b4a90147fd60a0a325a8088b968704481e52 | 82 | py | Python | src/transform/transform.py | JMLizano/Kelvins-collision-avoidance-challenge | c4fc035ad56abbee5811cf31689d4edea273e541 | [
"Apache-2.0"
] | null | null | null | src/transform/transform.py | JMLizano/Kelvins-collision-avoidance-challenge | c4fc035ad56abbee5811cf31689d4edea273e541 | [
"Apache-2.0"
] | null | null | null | src/transform/transform.py | JMLizano/Kelvins-collision-avoidance-challenge | c4fc035ad56abbee5811cf31689d4edea273e541 | [
"Apache-2.0"
] | 1 | 2020-06-14T07:16:49.000Z | 2020-06-14T07:16:49.000Z | import pandas as pd
def t0_test(df: pd.DataFrame) -> pd.DataFrame:
return df | 16.4 | 46 | 0.707317 | 14 | 82 | 4.071429 | 0.714286 | 0.385965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.195122 | 82 | 5 | 47 | 16.4 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 6 |
f188f3a42376b564b5b5475ec4268fa85dc9426f | 49 | py | Python | testing/testdata/test_error.py | internetimagery/pyhike | a07edf07750f9253a455c5a36f031c99681b89df | [
"MIT"
] | null | null | null | testing/testdata/test_error.py | internetimagery/pyhike | a07edf07750f9253a455c5a36f031c99681b89df | [
"MIT"
] | null | null | null | testing/testdata/test_error.py | internetimagery/pyhike | a07edf07750f9253a455c5a36f031c99681b89df | [
"MIT"
] | null | null | null | raise RuntimeError("Just importing this fails!")
| 24.5 | 48 | 0.795918 | 6 | 49 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 49 | 1 | 49 | 49 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.530612 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
74b3bd005c0dde55cbcecd31bfca6189a6df6793 | 108 | py | Python | yaml_pipeline/__init__.py | isaacanthony/yaml-pipeline | d2fa061ce55569d813a21e00a539531c564e3375 | [
"MIT"
] | null | null | null | yaml_pipeline/__init__.py | isaacanthony/yaml-pipeline | d2fa061ce55569d813a21e00a539531c564e3375 | [
"MIT"
] | null | null | null | yaml_pipeline/__init__.py | isaacanthony/yaml-pipeline | d2fa061ce55569d813a21e00a539531c564e3375 | [
"MIT"
] | null | null | null | """__init__.py"""
from yaml_pipeline.pipeline import Pipeline
from yaml_pipeline.pipelines import Pipelines
| 27 | 45 | 0.833333 | 14 | 108 | 6 | 0.5 | 0.190476 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 108 | 3 | 46 | 36 | 0.848485 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
74d6fd601d13d368ab358ff01fbaa1a2cbc95bf0 | 576 | py | Python | handlers/__init__.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/__init__.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/__init__.py | bbt-t/bot-pet-project | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | from .errors import dp
from .filters import dp
from .inline import dp
from .support_contact_handl import dp
from .start_handl import dp
from .todo_handl import dp
from .user_settings import dp
from .storing_passwords_handl import dp
from .horoscope_handl import dp
from .calendar_haircut_handl import dp
from .stt_handl import dp
from .admins_tools_handl import dp
from .weather_forecast_handl import dp
from .day_todo_notification import dp
from .changing_stickerpack_handl import dp
from .recipes_handl import dp
# from .receiving_images_handl import dp
__all__ = ['dp']
| 26.181818 | 42 | 0.829861 | 92 | 576 | 4.913043 | 0.336957 | 0.300885 | 0.424779 | 0.413717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130208 | 576 | 21 | 43 | 27.428571 | 0.902196 | 0.065972 | 0 | 0 | 0 | 0 | 0.003731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.941176 | 0 | 0.941176 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
74daf7227fee0ed15c62c7b81274c9cf6a6e1c54 | 7,256 | py | Python | Fig1_sankey_diagram.py | cetlab-ucsb/residential_solar_storage | 9b66f7350ff4b2091b6227eb3bcd8e94d38cb419 | [
"Apache-2.0"
] | null | null | null | Fig1_sankey_diagram.py | cetlab-ucsb/residential_solar_storage | 9b66f7350ff4b2091b6227eb3bcd8e94d38cb419 | [
"Apache-2.0"
] | null | null | null | Fig1_sankey_diagram.py | cetlab-ucsb/residential_solar_storage | 9b66f7350ff4b2091b6227eb3bcd8e94d38cb419 | [
"Apache-2.0"
] | null | null | null | import plotly.graph_objects as go
import pandas as pd
# Please uncomment some lines to switch between ExportOnly and ImportOnly modes (line #42, 51, 57)
def draw_sankey(mode, tmy_code, utility, year, c_cost):
df = pd.read_csv('/Users/jiajiazheng/Box/Suh\'s lab/GSRs/Jiajia/3-Residential Solar-plus-storage/Results/'
'optimal/minCost_%(mode)s_%(year)s_cc_%(c_cost)s/'
'optimal_minCost_%(tmy_code)s_%(utility)s_%(year)s_cc_%(c_cost)s.csv'
% {'mode': mode, 'year': year, 'tmy_code': tmy_code, 'utility': utility, 'c_cost': c_cost},
index_col=0)
e_PV_total = sum(df['e_PV_batt']) + sum(df['e_PV_load']) + sum(df['e_PV_grid'])
if mode == 'ImportOnly':
values = [sum(df['e_PV_batt']), sum(df['e_PV_load']), sum(df['e_PV_grid']),
sum(df['e_grid_batt']), sum(df['e_grid_load']), sum(df['p_disc']), sum(df['e_loss'])]
e_grid_total = sum(df['e_grid_batt']) + sum(df['e_grid_load'])
e_batt_total = sum(df['e_PV_batt']) + sum(df['e_grid_batt'])
e_load_total = sum(df['e_PV_load']) + sum(df['e_grid_load']) + sum(df['p_disc'])
else:
values = [sum(df['e_PV_batt']), sum(df['e_PV_load']), sum(df['e_PV_grid']),
sum(df['e_grid_load']), sum(df['e_batt_load']), sum(df['e_batt_grid']), sum(df['e_loss'])]
e_grid_total = sum(df['e_grid_load'])
e_batt_total = sum(df['e_PV_batt'])
e_load_total = sum(df['e_PV_load']) + sum(df['e_grid_load']) + sum(df['e_batt_load'])
fig = go.Figure(data=[go.Sankey(
arrangement='snap',
valueformat=".0f",
valuesuffix="kWh",
textfont=dict(size=32),
node=dict(
pad=15,
thickness=20,
line=dict(color="black", width=0.5),
label=["PV, %(value)s" % {'value': round(e_PV_total)},
"Grid, %(value)s kWh" % {'value': round(e_grid_total)},
"Battery, %(value)s" % {'value': round(e_batt_total)},
"Load, %(value)s" % {'value': round(e_load_total)},
# "Feed-in, %(value)s" % {'value': round(sum(df['e_PV_grid']))}, # ImportOnly mode
"Feed-in, %(value)s" % {'value': round(sum(df['e_PV_grid']) + sum(df['e_batt_grid']))}, # ExportOnly
"Loss, %(value)s" % {'value': round(sum(df['e_loss']))}],
# x=[0.1, 0.1, 0.5, 0.9, 0.9, 0.9],
# y=[0.7, 0.2, 0.5, 0.41, 0.92, 0.84], # customize the node positions
color=["orange", "gray", "deepskyblue", "purple", "gray", "red"]
),
link=dict(
# source=[0, 0, 0, 1, 1, 2, 2],
# target=[2, 3, 4, 2, 3, 3, 5], # ImportOnly mode
source=[0, 0, 0, 1, 2, 2, 2],
target=[2, 3, 4, 3, 3, 4, 5], # ExportOnly mode
value=values,
color=["rgba(255, 165, 0, 0.4)", "rgba(255, 165, 0, 0.4)", "rgba(255, 165, 0, 0.4)", # PV-yellow
# "rgba(128, 128, 128, 0.5)", "rgba(128, 128, 128, 0.5)", # Grid-grey # ImportOnly mode
"rgba(128, 128, 128, 0.5)", "rgba(0, 191, 255, 0.4)", # Grid-grey # ExportOnly mode
"rgba(0, 191, 255, 0.4)", "rgba(0, 191, 255, 0.4)"] # Battery-blue
)
)])
fig.update_layout(title_text='Annual energy flow of the household (kWh) <br>'
'%(mode)s mode, %(utility)s %(tmy_code)s in %(year)s'
# '%(utility)s %(tmy_code)s in %(year)s, minGHG'
% {'mode': mode, 'year': year, 'tmy_code': tmy_code, 'utility': utility,
'c_cost': c_cost},
font_family="Helvetica",
font_size=12, autosize=False, width=1000, height=800)
fig.show()
fig.write_image('/Users/jiajiazheng/Box/Suh\'s lab/GSRs/Jiajia/3-Residential Solar-plus-storage/Visualization/'
'Sankey_%(mode)s_%(year)s_cc%(c_cost)s_%(utility)s_%(tmy_code)s.jpg'
% {'mode': mode, 'year': year, 'tmy_code': tmy_code, 'utility': utility, 'c_cost': c_cost}, scale=2)
# Run function and export energy flow diagrams
# draw_sankey('ExportOnly', 724927, 'PGE', 2020, 1e-12)
# draw_sankey('ExportOnly', 723927, 'SCE', 2020, 1e-12)
draw_sankey('ExportOnly', 722900, 'SDGE', 2020, 1e-12)
############# Solar-only mode #############
def draw_sankey_solarOnly(mode, tmy_code, utility, year, c_cost):
df = pd.read_csv('/Users/jiajiazheng/Box/Suh\'s lab/GSRs/Jiajia/3-Residential Solar-plus-storage/Results/'
'optimal/minCost_%(mode)s_%(year)s_cc_%(c_cost)s/'
'optimal_minCost_%(tmy_code)s_%(utility)s_%(year)s_cc_%(c_cost)s.csv'
% {'mode': mode, 'year': year, 'tmy_code': tmy_code, 'utility': utility, 'c_cost': c_cost},
index_col=0)
e_PV_total = sum(df['e_PV_load_PVonly']) + sum(df['e_PV_grid_PVonly'])
values = [sum(df['e_PV_load_PVonly']), sum(df['e_PV_grid_PVonly']), sum(df['e_grid_load_PVonly'])]
e_grid_total = sum(df['e_grid_load_PVonly'])
e_load_total = sum(df['e_PV_load_PVonly']) + sum(df['e_grid_load_PVonly'])
fig = go.Figure(data=[go.Sankey(
arrangement='snap',
valueformat=".0f",
valuesuffix="kWh",
textfont=dict(size=32),
node=dict(
pad=15,
thickness=20,
line=dict(color="black", width=0.5),
label=["PV, %(value)s" % {'value': round(e_PV_total)},
"Grid, %(value)s kWh" % {'value': round(e_grid_total)},
"Load, %(value)s" % {'value': round(e_load_total)},
"Feed-in, %(value)s" % {'value': round(sum(df['e_PV_grid']))}], # SolarOnly
# x=[0.1, 0.1, 0.5, 0.9, 0.9, 0.9],
# y=[0.7, 0.2, 0.5, 0.41, 0.92, 0.84], # customize the node positions
color=["orange", "gray", "purple", "gray"]
),
link=dict(
source=[0, 0, 1],
target=[2, 3, 2], # ExportOnly mode
value=values,
color=["rgba(255, 165, 0, 0.4)", "rgba(255, 165, 0, 0.4)", # PV-yellow
"rgba(128, 128, 128, 0.5)"] # Grid-grey # ExportOnly mode
)
)])
fig.update_layout(title_text='Annual energy flow of the household (kWh) <br>'
'SolarOnly mode, %(utility)s %(tmy_code)s in %(year)s'
# '%(utility)s %(tmy_code)s in %(year)s, minGHG'
% {'mode': mode, 'year': year, 'tmy_code': tmy_code, 'utility': utility,
'c_cost': c_cost},
font_family="Helvetica",
font_size=12, autosize=False, width=1000, height=800)
fig.show()
fig.write_image('/Users/jiajiazheng/Box/Suh\'s lab/GSRs/Jiajia/3-Residential Solar-plus-storage/Visualization/'
'Sankey_SolarOnly_%(year)s_cc%(c_cost)s_%(utility)s_%(tmy_code)s.jpg'
% {'year': year, 'tmy_code': tmy_code, 'utility': utility, 'c_cost': c_cost}, scale=2)
draw_sankey_solarOnly('ExportOnly', 722900, 'SDGE', 2020, 1e-12)
| 52.201439 | 120 | 0.530733 | 1,034 | 7,256 | 3.515474 | 0.161509 | 0.057772 | 0.066025 | 0.046217 | 0.86575 | 0.840165 | 0.796424 | 0.77414 | 0.754608 | 0.748831 | 0 | 0.058632 | 0.280733 | 7,256 | 138 | 121 | 52.57971 | 0.637862 | 0.130926 | 0 | 0.568627 | 0 | 0.04902 | 0.296943 | 0.075396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.029412 | 0 | 0.04902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
2d0c56b5682b828d32ea063d3d75f9584310863d | 72 | py | Python | latex/slides/resources/01_getting_started/present_format.py | AntonObersteiner/python-lessons | 1d5536f0777853fba437566672cfb1d613984945 | [
"CC-BY-4.0"
] | null | null | null | latex/slides/resources/01_getting_started/present_format.py | AntonObersteiner/python-lessons | 1d5536f0777853fba437566672cfb1d613984945 | [
"CC-BY-4.0"
] | null | null | null | latex/slides/resources/01_getting_started/present_format.py | AntonObersteiner/python-lessons | 1d5536f0777853fba437566672cfb1d613984945 | [
"CC-BY-4.0"
] | null | null | null | def present(name, alter, ort):
return f"{name}, {alter} aus {ort})"
| 24 | 40 | 0.611111 | 11 | 72 | 4 | 0.727273 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180556 | 72 | 2 | 41 | 36 | 0.745763 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
2d147b556aabaf9eda22b2b37c3bdb4c170d1eb0 | 126 | py | Python | tests/webapp/controllers/index.py | Alvaruto1/project-caos | 16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5 | [
"Apache-2.0"
] | null | null | null | tests/webapp/controllers/index.py | Alvaruto1/project-caos | 16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5 | [
"Apache-2.0"
] | null | null | null | tests/webapp/controllers/index.py | Alvaruto1/project-caos | 16a51fbe2dc573f0706ead8fe8b99c8ba7c362c5 | [
"Apache-2.0"
] | null | null | null | from flask import redirect
from tests.core.web import app
@app.route('/')
def index():
return redirect('sign_in') | 21 | 30 | 0.674603 | 18 | 126 | 4.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198413 | 126 | 6 | 31 | 21 | 0.831683 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 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 | 1 | 1 | 0 | 0 | 6 |
2d2e1f76863aa86e0bc5be840468804ba52e2e38 | 10,175 | py | Python | apps/pw_multiScriptEditor/managers/nuke/nodes.py | JeremyZhao1989/leanTest | 8078d47aea44b999a325261530a18a7f578d2420 | [
"MIT"
] | 64 | 2016-09-06T11:30:28.000Z | 2021-03-11T07:28:08.000Z | python/pw_multiScriptEditor/managers/nuke/nodes.py | ensii75/NukeToolSet | 0c47efc3bc7ca513f902e00a3e2b71404636aae9 | [
"MIT"
] | 2 | 2016-09-11T12:38:03.000Z | 2016-09-13T12:32:37.000Z | python/pw_multiScriptEditor/managers/nuke/nodes.py | ensii75/NukeToolSet | 0c47efc3bc7ca513f902e00a3e2b71404636aae9 | [
"MIT"
] | 31 | 2016-09-06T11:32:25.000Z | 2020-04-20T11:19:02.000Z | from main import Node
def DeepHoldout():
return Node()
def ClipTest():
return Node()
def BlackOutside():
return Node()
def Denoise():
return Node()
def Laplacian():
return Node()
def SphericalTransform():
return Node()
def Sharpen():
return Node()
def OCIOCDLTransform():
return Node()
def TimeBlur():
return Node()
def ChannelMerge():
return Node()
def Histogram():
return Node()
def DisplaceGeo():
return Node()
def ParticlePointForce():
return Node()
def ColorTransfer():
return Node()
def HueShift():
return Node()
def add32p():
return Node()
def CopyBBox():
return Node()
def DiskCache():
return Node()
def OneView():
return Node()
def Keyer():
return Node()
def DegrainSimple():
return Node()
def RotoPaint():
return Node()
def MotionBlur():
return Node()
def ScannedGrain():
return Node()
def CheckerBoard():
return Node()
def NoOp():
return Node()
def Text():
return Node()
def FrameBlend():
return Node()
def MotionBlur2D():
return Node()
def MergeMat():
return Node()
def VolumeRays():
return Node()
def STMap():
return Node()
def FrameHold():
return Node()
def Invert():
return Node()
def ParticleMerge():
return Node()
def ParticleGravity():
return Node()
def Camera():
return Node()
def FrameRange():
return Node()
def CMSTestPattern():
return Node()
def LensDistortion():
return Node()
def DropShadow():
return Node()
def PointCloudGenerator():
return Node()
def ZDefocus():
return Node()
def ColorLookup():
return Node()
def DeepRead():
return Node()
def ReadGeo():
return Node()
def LevelSet():
return Node()
def Grid():
return Node()
def DeepTransform():
return Node()
def UVProject():
return Node()
def ApplyMaterial():
return Node()
def ProceduralNoise():
return Node()
def Merge2():
return Node()
def Light():
return Node()
def Camera2():
return Node()
def Convolve():
return Node()
def ParticleEmitter():
return Node()
def MergeGeo():
return Node()
def Dither():
return Node()
def TransformMasked():
return Node()
def Cylinder():
return Node()
def Shuffle():
return Node()
def DegrainBlue():
return Node()
def GridWarp():
return Node()
def ModelBuilder():
return Node()
def Axis():
return Node()
def LayerContactSheet():
return Node()
def Group():
return Node()
def Matrix():
return Node()
def Transform():
return Node()
def Sampler():
return Node()
def LightWrap():
return Node()
def CopyRectangle():
return Node()
def DeepRecolor():
return Node()
def Rectangle():
return Node()
def EdgeBlur():
return Node()
def GenerateLUT():
return Node()
def Defocus():
return Node()
def Phong():
return Node()
def Kronos():
return Node()
def Card():
return Node()
def WriteGeo():
return Node()
def ParticleVortex():
return Node()
def Keymix():
return Node()
def DepthToPoints():
return Node()
def Reflection():
return Node()
def Ramp():
return Node()
def Merge():
return Node()
def Switch():
return Node()
def F_Align():
return Node()
def ParticleSpawn():
return Node()
def Refraction():
return Node()
def Expression():
return Node()
def Primatte():
return Node()
def ParticleLookAt():
return Node()
def BlendMat():
return Node()
def CompareMetaData():
return Node()
def Reconcile3D():
return Node()
def RadialDistort():
return Node()
def ZMerge():
return Node()
def TimeDissolve():
return Node()
def IBKGizmo():
return Node()
def DeepMerge():
return Node()
def Emboss():
return Node()
def ColorWheel():
return Node()
def Vectorfield():
return Node()
def ParticleToGeo():
return Node()
def ReLight():
return Node()
def Ultimatte():
return Node()
def Wireframe():
return Node()
def FillMat():
return Node()
def CameraTracker():
return Node()
def Write():
return Node()
def HueKeyer():
return Node()
def HueCorrect():
return Node()
def AppendClip():
return Node()
def AddTimeCode():
return Node()
def PrmanRender():
return Node()
def remove32p():
return Node()
def ReConverge():
return Node()
def DeepColorCorrect():
return Node()
def EdgeDetect():
return Node()
def AudioRead():
return Node()
def Assert():
return Node()
def ParticleSettings():
return Node()
def MotionBlur3D():
return Node()
def CrosstalkGeo():
return Node()
def StickyNote():
return Node()
def IDistort():
return Node()
def Colorspace():
return Node()
def DirBlur():
return Node()
def Stabilize2D():
return Node()
def PositionToPoints():
return Node()
def GodRays():
return Node()
def Keylight():
return Node()
def Gamma():
return Node()
def ViewMetaData():
return Node()
def DeepFromFrames():
return Node()
def ParticleDirectionalForce():
return Node()
def PSDMerge():
return Node()
def JoinViews():
return Node()
def Displacement():
return Node()
def Read():
return Node()
def Retime():
return Node()
def EXPTool():
return Node()
def Dilate():
return Node()
def DeepFromImage():
return Node()
def Precomp():
return Node()
def DepthGenerator():
return Node()
def Truelight3():
return Node()
def Blur():
return Node()
def Card2():
return Node()
def ParticleMotionAlign():
return Node()
def TimeWarp():
return Node()
def Spot():
return Node()
def ColorCorrect():
return Node()
def DeepSample():
return Node()
def Project3D():
return Node()
def Multiply():
return Node()
def Sparkles():
return Node()
def ShuffleCopy():
return Node()
def Diffuse():
return Node()
def Glow():
return Node()
def TimeEcho():
return Node()
def BasicMaterial():
return Node()
def IBKColour():
return Node()
def Specular():
return Node()
def CopyMetaData():
return Node()
def Position():
return Node()
def MarkerRemoval():
return Node()
def Clamp():
return Node()
def Toe2():
return Node()
def OCIOLogConvert():
return Node()
def PointsTo3D():
return Node()
def OCIOColorSpace():
return Node()
def LogGeo():
return Node()
def Add():
return Node()
def Soften():
return Node()
def F_ReGrain():
return Node()
def OCIODisplay():
return Node()
def ColorMatrix():
return Node()
def Unpremult():
return Node()
def ContactSheet():
return Node()
def EditGeo():
return Node()
def CCrosstalk():
return Node()
def Input():
return Node()
def DeepExpression():
return Node()
def Copy():
return Node()
def DustBust():
return Node()
def ParticleBounce():
return Node()
def ZSlice():
return Node()
def Noise():
return Node()
def Emission():
return Node()
def MCID():
return Node()
def F_DeFlicker2():
return Node()
def ParticleWind():
return Node()
def HSVTool():
return Node()
def DeepToPoints():
return Node()
def Bilateral():
return Node()
def AddMix():
return Node()
def Flare():
return Node()
def OFlow():
return Node()
def ShuffleViews():
return Node()
def F_RigRemoval():
return Node()
def DepthToPosition():
return Node()
def CornerPin2D():
return Node()
def Roto():
return Node()
def SplineWarp():
return Node()
def Blend():
return Node()
def CurveTool():
return Node()
def RolloffContrast():
return Node()
def ScanlineRender():
return Node()
def Premult():
return Node()
def Grade():
return Node()
def PlanarTracker():
return Node()
def Log2Lin():
return Node()
def OCIOFileTransform():
return Node()
def DeepToImage():
return Node()
def Mirror():
return Node()
def HistEQ():
return Node()
def BlinkScript():
return Node()
def TemporalMedian():
return Node()
def MatchGrade():
return Node()
def Radial():
return Node()
def Glint():
return Node()
def Environment():
return Node()
def SoftClip():
return Node()
def MergeExpression():
return Node()
def Tile():
return Node()
def CameraShake():
return Node()
def Erode():
return Node()
def AdjBBox():
return Node()
def VectorGenerator():
return Node()
def Posterize():
return Node()
def Dot():
return Node()
def ModifyMetaData():
return Node()
def PostageStamp():
return Node()
def BumpBoss():
return Node()
def ColorBars():
return Node()
def ParticleExpression():
return Node()
def ParticleCache():
return Node()
def PLogLin():
return Node()
def ModifyRIB():
return Node()
def GeoSelect():
return Node()
def Anaglyph():
return Node()
def Tracker():
return Node()
def ParticleSpeedLimit():
return Node()
def VectorBlur():
return Node()
def LookupGeo():
return Node()
def MinColor():
return Node()
def Scene():
return Node()
def FilterErode():
return Node()
def TVIscale():
return Node()
def Crop():
return Node()
def Reformat():
return Node()
def MixViews():
return Node()
def Saturation():
return Node()
def BackdropNode():
return Node()
def Sphere():
return Node()
def DeepReformat():
return Node()
def PoissonMesh():
return Node()
def F_WireRemoval():
return Node()
def ParticleDrag():
return Node()
def TimeOffset():
return Node()
def TransformGeo():
return Node()
def Difference():
return Node()
def SideBySide():
return Node()
def DeepWrite():
return Node()
def Median():
return Node()
def Trilinear():
return Node()
def Remove():
return Node()
def NoTimeBlur():
return Node()
def Cube():
return Node()
def Grain():
return Node()
def Card3D():
return Node()
def Normals():
return Node()
def DeepCrop():
return Node()
def Output():
return Node()
def UVTile2():
return Node()
def Dissolve():
return Node()
def Constant():
return Node()
def Viewer():
return Node()
def Direct():
return Node()
def F_Steadiness():
return Node()
def ParticleTurbulence():
return Node()
def TimeClip():
return Node()
def ParticleCurve():
return Node() | 17.664931 | 31 | 0.632924 | 1,158 | 10,175 | 5.556131 | 0.253886 | 0.312247 | 0.577868 | 0.013056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00254 | 0.226044 | 10,175 | 576 | 32 | 17.664931 | 0.814476 | 0 | 0 | 0.49913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001739 | 1 | 0.49913 | true | 0 | 0.001739 | 0.49913 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
742677028167265fb0e3b92da7b0e614e8e4ce11 | 1,067 | py | Python | pyenv/lib/python3.6/heapq.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | pyenv/lib/python3.6/heapq.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | 3 | 2020-03-23T18:01:51.000Z | 2021-03-19T23:15:15.000Z | pyenv/lib/python3.6/heapq.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | XSym
0072
be6acaabc641489e371a3a1629ba9c94
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/heapq.py
| 213.4 | 951 | 0.093721 | 15 | 1,067 | 6.666667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 0.895033 | 1,067 | 5 | 951 | 213.4 | 0.660714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7482e832051a4013b5089dc7dd63085f926af187 | 202 | py | Python | stribor/util/__init__.py | mbilos/stribor | 76082c255653d6bd8d506519223183e5d8395578 | [
"MIT"
] | 10 | 2021-06-23T17:14:25.000Z | 2022-03-08T11:34:18.000Z | stribor/util/__init__.py | mbilos/stribor | 76082c255653d6bd8d506519223183e5d8395578 | [
"MIT"
] | null | null | null | stribor/util/__init__.py | mbilos/stribor | 76082c255653d6bd8d506519223183e5d8395578 | [
"MIT"
] | 1 | 2021-03-11T13:34:44.000Z | 2021-03-11T13:34:44.000Z | from .mask import *
from .search_sorted import *
from .rational_quadratic_spline import *
from .cubic_spline import *
from .divergence import *
from .flatten_params import *
from .safe_softmax import *
| 25.25 | 40 | 0.792079 | 27 | 202 | 5.703704 | 0.518519 | 0.38961 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138614 | 202 | 7 | 41 | 28.857143 | 0.885057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
74a25eeb8dfeb73ac4d0814c48d6d78613c3a5c6 | 7,680 | py | Python | tests/apps/compute/gacha_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 36 | 2017-06-12T01:09:46.000Z | 2021-01-31T17:57:41.000Z | tests/apps/compute/gacha_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 145 | 2017-06-21T13:31:29.000Z | 2021-06-20T01:01:30.000Z | tests/apps/compute/gacha_test.py | item4/yui | 8628d0d54b94ada3cbe7d1b0f624063258bad10a | [
"MIT"
] | 21 | 2017-07-24T15:53:19.000Z | 2021-12-23T04:18:31.000Z | from decimal import Decimal
import pytest
from yui.apps.compute.gacha import Gacha
from yui.apps.compute.gacha import to_percent
def test_class():
g = Gacha()
assert g.name == '가챠'
assert g.route_list
def test_get_short_help():
g = Gacha()
assert g.get_short_help('.')
def test_get_full_help():
g = Gacha()
assert g.get_full_help('.')
@pytest.mark.asyncio
async def test_fallback(bot):
bot.add_channel('C1', 'general')
bot.add_user('U1', 'item4')
g = Gacha()
event = bot.create_message('C1', 'U1')
await g.fallback(bot, event)
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == f'Usage: `{bot.config.PREFIX}help 가챠`'
@pytest.mark.asyncio
async def test_collect(bot):
bot.add_channel('C1', 'general')
bot.add_user('U1', 'item4')
g = Gacha()
event = bot.create_message('C1', 'U1')
await g.collect(g, bot, event, '아무말 대잔치')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '요청을 해석하는데에 실패했어요!'
await g.collect(g, bot, event, '0/3')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '정상적인 수집 갯수를 입력해주세요! (1개 이상 512개 이하)'
await g.collect(g, bot, event, '3/1')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '정상적인 전체 갯수를 입력해주세요! (2개 이상 512개 이하)'
await g.collect(g, bot, event, '10000/3')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '정상적인 수집 갯수를 입력해주세요! (1개 이상 512개 이하)'
await g.collect(g, bot, event, '3/10000')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '정상적인 전체 갯수를 입력해주세요! (2개 이상 512개 이하)'
await g.collect(g, bot, event, '3/2')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '원하는 갯수가 전체 갯수보다 많을 수 없어요!'
await g.collect(g, bot, event, '30')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'상품 1개 구입시 30종류의 특전 중 하나를 무작위로 100%확률로 준다고 가정할 때'
' 30종류의 특전을 모두 모으려면, 평균적으로 120(`119.85`)개의 상품을 구입해야'
' 수집에 성공할 수 있어요!'
)
await g.collect(g, bot, event, '30/40')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'상품 1개 구입시 40종류의 특전 중 하나를 무작위로 100%확률로 준다고 가정할 때'
' 30종류의 특전을 부분적으로 모으려면, 평균적으로 160(`159.80`)개의 상품을 구입해야'
' 수집에 성공할 수 있어요!'
)
await g.collect(g, bot, event, '전체 40종류 중에 30종')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'상품 1개 구입시 40종류의 특전 중 하나를 무작위로 100%확률로 준다고 가정할 때'
' 30종류의 특전을 부분적으로 모으려면, 평균적으로 160(`159.80`)개의 상품을 구입해야'
' 수집에 성공할 수 있어요!'
)
@pytest.mark.asyncio
async def test_challenge(bot):
bot.add_channel('C1', 'general')
bot.add_user('U1', 'item4')
g = Gacha()
event = bot.create_message('C1', 'U1')
await g.challenge(g, bot, event, -1, '0.05')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '성공횟수는 1회 이상, 10,000회 이하로 입력해주세요!'
await g.challenge(g, bot, event, 9999999, '0.05')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '성공횟수는 1회 이상, 10,000회 이하로 입력해주세요!'
await g.challenge(g, bot, event, 1, '아무말 대잔치')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '정상적인 확률을 입력해주세요!'
await g.challenge(g, bot, event, 1, '0.000000001')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '확률값은 0.001% 이상, 99% 이하로 입력해주세요!'
await g.challenge(g, bot, event, 1, '999999')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '확률값은 0.001% 이상, 99% 이하로 입력해주세요!'
await g.challenge(g, bot, event, 1000, '0.00001')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == '입력하신 확률값에 비해 성공 횟수가 너무 많아요!'
await g.challenge(g, bot, event, 1, '0.05')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'5% 확률의 도전을 1번 성공시키려면 몇 회의 도전이 필요한지 알려드릴게요!\n'
'- 1번 시도하시면 5% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 6번 시도하시면 26.49% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 14번 시도하시면 51.23% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 28번 시도하시면 76.21% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 59번 시도하시면 95.15% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 90번 시도하시면 99.01% 확률로 목표 횟수만큼 성공할 수 있어요!'
)
await g.challenge(g, bot, event, 1, '3%')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'3% 확률의 도전을 1번 성공시키려면 몇 회의 도전이 필요한지 알려드릴게요!\n'
'- 1번 시도하시면 3% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 10번 시도하시면 26.25% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 23번 시도하시면 50.36% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 46번 시도하시면 75.36% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 99번 시도하시면 95.09% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 152번 시도하시면 99.02% 확률로 목표 횟수만큼 성공할 수 있어요!'
)
await g.challenge(g, bot, event, 1, '95%')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'95% 확률의 도전을 1번 성공시키려면 몇 회의 도전이 필요한지 알려드릴게요!\n'
'- 1번 시도하시면 95% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 2번 시도하시면 99.74% 확률로 목표 횟수만큼 성공할 수 있어요!'
)
await g.challenge(g, bot, event, 1, '98.00000000%')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'98% 확률의 도전을 1번 성공시키려면 몇 회의 도전이 필요한지 알려드릴게요!\n'
'- 1번 시도하시면 98% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 2번 시도하시면 99.96% 확률로 목표 횟수만큼 성공할 수 있어요!'
)
await g.challenge(g, bot, event, 10, '0.1%')
said = bot.call_queue.pop(0)
assert said.method == 'chat.postMessage'
assert said.data['channel'] == 'C1'
assert said.data['text'] == (
'0.1% 확률의 도전을 10번 성공시키려면 몇 회의 도전이 필요한지 알려드릴게요!\n'
'- 2,964번 시도하시면 0.1% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 7,727번 시도하시면 25% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 9,669번 시도하시면 50% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 11,913번 시도하시면 75% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 15,702번 시도하시면 95% 확률로 목표 횟수만큼 성공할 수 있어요!\n'
'- 18,779번 시도하시면 99% 확률로 목표 횟수만큼 성공할 수 있어요!'
)
def test_to_percent():
assert to_percent(Decimal('12.300040000')) == '1230.004'
assert to_percent(Decimal('12.300000000')) == '1230'
assert to_percent(Decimal('12'), Decimal('1')) == '1200'
| 31.093117 | 70 | 0.598438 | 1,218 | 7,680 | 3.731527 | 0.161741 | 0.138614 | 0.129373 | 0.058086 | 0.862926 | 0.847085 | 0.794499 | 0.746315 | 0.722552 | 0.716392 | 0 | 0.070768 | 0.240104 | 7,680 | 246 | 71 | 31.219512 | 0.708019 | 0 | 0 | 0.562162 | 0 | 0 | 0.352083 | 0.003125 | 0 | 0 | 0 | 0 | 0.378378 | 1 | 0.021622 | false | 0 | 0.021622 | 0 | 0.043243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
778a5da4c507781ea9274e5802f369926e5b74e2 | 45,071 | py | Python | bioagents/tests/tra_test.py | kkaris/bioagents | 353570ca88dc70c2851222cbd5604be782147f82 | [
"BSD-2-Clause"
] | 6 | 2016-10-29T13:53:11.000Z | 2021-07-07T12:28:40.000Z | bioagents/tests/tra_test.py | kkaris/bioagents | 353570ca88dc70c2851222cbd5604be782147f82 | [
"BSD-2-Clause"
] | 66 | 2016-06-23T16:29:02.000Z | 2021-11-03T18:09:34.000Z | bioagents/tests/tra_test.py | kkaris/bioagents | 353570ca88dc70c2851222cbd5604be782147f82 | [
"BSD-2-Clause"
] | 15 | 2016-03-18T20:46:22.000Z | 2020-08-27T09:39:43.000Z | import json
from nose.tools import raises
import sympy.physics.units as units
from bioagents.tra import tra_module
from bioagents.tra import tra
from pysb import Model, Rule, Monomer, Parameter, Initial, SelfExporter
from indra.statements import *
from kqml import KQMLPerformative, KQMLList, KQMLToken
from bioagents import Bioagent
from bioagents.tests.integration import _StringCompareTest, _IntegrationTest
from bioagents.tests.util import *
clj_map2k1 = agent_clj_from_text('MAP2K1')
clj_braf = agent_clj_from_text('BRAF')
clj_complex = agent_clj_from_text('BRAF-KRAS complex')
def test_time_interval():
tra.TimeInterval(2.0, 4.0, 'second')
def test_get_time_interval_full():
ts = '(:lower-bound 2 :upper-bound 4 :unit "hour")'
lst = KQMLList.from_string(ts)
ti = tra_module.get_time_interval(lst)
assert ti.lb == 2.0*units.hour, ti.lb
assert ti.ub == 4.0*units.hour, ti.ub
assert ti.get_lb_seconds() == 7200
assert ti.get_ub_seconds() == 14400
def test_get_time_interval_ub():
ts = '(:upper-bound 4 :unit "hour")'
lst = KQMLList.from_string(ts)
ti = tra_module.get_time_interval(lst)
assert ti.lb is None
assert ti.ub == 4.0*units.hours, ti.ub
assert ti.get_ub_seconds() == 14400
def test_get_time_interval_lb():
ts = '(:lower-bound 4 :unit "hour")'
lst = KQMLList.from_string(ts)
ti = tra_module.get_time_interval(lst)
assert ti.lb == 4.0*units.hours, ti.lb
assert ti.ub is None
assert ti.get_lb_seconds() == 14400
@raises(tra.InvalidTimeIntervalError)
def test_get_time_interval_nounit():
ts = '(:lower-bound 4)'
lst = KQMLList.from_string(ts)
tra_module.get_time_interval(lst)
@raises(tra.InvalidTimeIntervalError)
def test_get_time_interval_badunit():
ts = '(:lower-bound 4 :unit "xyz")'
lst = KQMLList.from_string(ts)
tra_module.get_time_interval(lst)
def test_molecular_quantity_conc1():
s = '(:type "concentration" :value 2 :unit "uM")'
lst = KQMLList.from_string(s)
mq = tra_module.get_molecular_quantity(lst)
assert mq.quant_type == 'concentration'
assert mq.value == 2.0 * units.micro * units.mol / units.liter, mq.value
def test_molecular_quantity_conc2():
s = '(:type "concentration" :value 200 :unit "nM")'
lst = KQMLList.from_string(s)
mq = tra_module.get_molecular_quantity(lst)
assert mq.quant_type == 'concentration'
assert mq.value == 200.0 * units.nano * units.mol / units.liter, mq.value
@raises(tra.InvalidMolecularQuantityError)
def test_molecular_quantity_conc_badval():
s = '(:type "concentration" :value "xyz" :unit "nM")'
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity(lst)
@raises(tra.InvalidMolecularQuantityError)
def test_molecular_quantity_conc_badunit():
s = '(:type "concentration" :value 200 :unit "meter")'
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity(lst)
def test_molecular_quantity_num():
s = '(:type "number" :value 20000)'
lst = KQMLList.from_string(s)
mq = tra_module.get_molecular_quantity(lst)
assert mq.quant_type == 'number'
assert mq.value == 20000
@raises(tra.InvalidMolecularQuantityError)
def test_molecular_quantity_num_badval():
s = '(:type "number" :value -1)'
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity(lst)
def test_molecular_quantity_qual():
s = '(:type "qualitative" :value "high")'
lst = KQMLList.from_string(s)
mq = tra_module.get_molecular_quantity(lst)
assert mq.quant_type == 'qualitative'
assert mq.value == 'high'
@raises(tra.InvalidMolecularQuantityError)
def test_molecular_quantity_qual_badval():
s = '(:type "qualitative" :value 123)'
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity(lst)
def test_molecular_quantity_ref():
s = '(:type "total" :entity (:description %s))' % clj_complex
print(s)
lst = KQMLList.from_string(s)
mqr = tra_module.get_molecular_quantity_ref(lst)
assert mqr.quant_type == 'total'
assert len(mqr.entity.bound_conditions) == 1, \
len(mqr.entity.bound_conditions)
def test_molecular_quantity_ref2():
s = '(:type "initial" :entity (:description %s))' % clj_complex
lst = KQMLList.from_string(s)
mqr = tra_module.get_molecular_quantity_ref(lst)
assert mqr.quant_type == 'initial'
assert len(mqr.entity.bound_conditions) == 1, \
len(mqr.entity.bound_conditions)
@raises(tra.InvalidMolecularQuantityRefError)
def test_molecular_quantity_badtype():
s = '(:type "xyz" :entity (:description %s))' % clj_complex
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity_ref(lst)
@raises(tra.InvalidMolecularQuantityRefError)
def test_molecular_quantity_badentity():
s = '(:type "xyz" :entity (:description "xyz"))'
lst = KQMLList.from_string(s)
tra_module.get_molecular_quantity_ref(lst)
def test_get_molecular_condition_dec():
lst = KQMLList.from_string('(:type "decrease" :quantity (:type "total" ' +
':entity (:description %s)))' % clj_braf)
mc = tra_module.get_molecular_condition(lst)
assert mc.condition_type == 'decrease'
assert mc.quantity.quant_type == 'total'
assert mc.quantity.entity.name == 'BRAF'
def test_get_molecular_condition_exact():
lst = KQMLList.from_string(
'(:type "exact" :value (:value 0 :type "number") '
':quantity (:type "total" '
':entity (:description %s)))' % clj_braf
)
mc = tra_module.get_molecular_condition(lst)
assert mc.condition_type == 'exact'
assert mc.value.quant_type == 'number'
assert mc.quantity.quant_type == 'total'
assert mc.quantity.entity.name == 'BRAF'
def test_get_molecular_condition_multiple():
lst = KQMLList.from_string('(:type "multiple" :value 2 ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_braf)
mc = tra_module.get_molecular_condition(lst)
assert mc.condition_type == 'multiple'
assert mc.value == 2.0
assert mc.quantity.quant_type == 'total'
assert mc.quantity.entity.name == 'BRAF'
@raises(tra.InvalidMolecularConditionError)
def test_get_molecular_condition_badtype():
lst = KQMLList.from_string('(:type "xyz" :value 2 ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_braf)
tra_module.get_molecular_condition(lst)
@raises(tra.InvalidMolecularConditionError)
def test_get_molecular_condition_badvalue():
lst = KQMLList.from_string('(:type "multiple" :value "xyz" ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_braf)
tra_module.get_molecular_condition(lst)
@raises(tra.InvalidMolecularConditionError)
def test_get_molecular_condition_badvalue2():
lst = KQMLList.from_string('(:type "exact" :value 2 ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_braf)
tra_module.get_molecular_condition(lst)
@raises(tra.InvalidMolecularConditionError)
def test_get_molecular_condition_badentity():
lst = KQMLList.from_string('(:type "exact" :value 2 ' +
':quantity (:type "total" ' +
':entity (:description "xyz")))')
tra_module.get_molecular_condition(lst)
def test_apply_condition_exact():
model = _get_gk_model()
lst = KQMLList.from_string(
'(:type "exact" :value (:value 0 :type "number") '
':quantity (:type "total" '
':entity (:description %s)))' % clj_map2k1
)
mc = tra_module.get_molecular_condition(lst)
tra.apply_condition(model, mc)
assert model.parameters['MAP2K1_0'].value == 0
mc.value.value = 2000
tra.apply_condition(model, mc)
assert model.parameters['MAP2K1_0'].value == 2000
def test_apply_condition_multiple():
model = _get_gk_model()
lst = KQMLList.from_string('(:type "multiple" :value 2.5 ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_map2k1)
mc = tra_module.get_molecular_condition(lst)
tra.apply_condition(model, mc)
assert model.parameters['MAP2K1_0'].value == 250
def test_apply_condition_decrease():
model = _get_gk_model()
lst = KQMLList.from_string('(:type "decrease" ' +
':quantity (:type "total" ' +
':entity (:description %s)))' % clj_map2k1)
mc = tra_module.get_molecular_condition(lst)
pold = model.parameters['MAP2K1_0'].value
tra.apply_condition(model, mc)
assert model.parameters['MAP2K1_0'].value < pold
def test_get_molecular_entity():
me = KQMLList.from_string('(:description %s)' % clj_complex)
ent = tra_module.get_molecular_entity(me)
assert len(ent.bound_conditions) == 1, len(ent.bound_conditions)
def test_get_temporal_pattern():
pattern_msg = '(:type "transient" :entities ((:description ' + \
'%s)))' % clj_complex
lst = KQMLList.from_string(pattern_msg)
pattern = tra_module.get_temporal_pattern(lst)
assert pattern.pattern_type == 'transient'
def test_get_temporal_pattern_always():
pattern_msg = '(:type "no_change" :entities ((:description ' + \
'%s)) :value (:type "qualitative" :value "low"))' % \
clj_complex
lst = KQMLList.from_string(pattern_msg)
pattern = tra_module.get_temporal_pattern(lst)
assert pattern.pattern_type == 'no_change'
assert pattern.value is not None
assert pattern.value.quant_type == 'qualitative'
assert pattern.value.value == 'low'
def test_get_temporal_pattern_sometime():
pattern_msg = '(:type "sometime_value" :entities ((:description ' + \
'%s)) :value (:type "qualitative" :value "high"))' % \
clj_complex
lst = KQMLList.from_string(pattern_msg)
pattern = tra_module.get_temporal_pattern(lst)
assert pattern.pattern_type == 'sometime_value'
assert pattern.value is not None
assert pattern.value.quant_type == 'qualitative'
assert pattern.value.value == 'high'
def test_get_temporal_pattern_eventual():
pattern_msg = '(:type "eventual_value" :entities ((:description ' + \
'%s)) :value (:type "qualitative" :value "high"))' % \
clj_complex
lst = KQMLList.from_string(pattern_msg)
pattern = tra_module.get_temporal_pattern(lst)
assert pattern.pattern_type == 'eventual_value'
assert pattern.value is not None
assert pattern.value.quant_type == 'qualitative'
assert pattern.value.value == 'high'
def test_get_all_patterns():
patterns = tra.get_all_patterns('MAPK1')
print(patterns)
def test_targeted_agents():
stmts = [Activation(Agent('BRAF'), Agent('KRAS')),
Inhibition(Agent('DRUG'), Agent('BRAF'))]
assert tra_module.get_targeted_agents(stmts) == ['BRAF']
def test_assemble_model_targeted_agents():
stmts = [Activation(Agent('BRAF'), Agent('KRAS')),
Inhibition(Agent('DRUG'), Agent('BRAF'))]
model = tra_module.assemble_model(stmts)
assert model.parameters['BRAF_0'].value == 50.0
assert model.parameters['BRAF_0_mod'].value == 50.0
def test_no_upstream_active():
stmts = [Phosphorylation(Agent('MEK',
activity=ActivityCondition('activity', True)),
Agent('ERK'))]
assert tra_module.get_no_upstream_active_agents(stmts) == ['MEK']
def test_assemble_model_no_upstream_active():
stmts = [Phosphorylation(Agent('MEK',
activity=ActivityCondition('activity', True)),
Agent('ERK'))]
model = tra_module.assemble_model(stmts)
assert model.parameters['MEK_0'].value == 50.0
assert model.parameters['MEK_0_mod'].value == 50.0
def test_get_chemical_agents():
stmts = [Activation(Agent('BRAF'), Agent('KRAS')),
Inhibition(Agent('DRUG', db_refs={'CHEBI': '123'}),
Agent('BRAF'))]
chemical_agents = tra_module.get_chemical_agents(stmts)
assert chemical_agents == ['DRUG']
def test_assemble_model_chemical_agents():
stmts = [Activation(Agent('BRAF'), Agent('KRAS')),
Inhibition(Agent('DRUG', db_refs={'CHEBI': '123'}),
Agent('BRAF'))]
model = tra_module.assemble_model(stmts)
assert model.parameters['DRUG_0'].value == 10000.0
@raises(tra.MissingMonomerError)
def test_missing_monomer():
stmts = [Activation(Agent('BRAF'), Agent('KRAS'))]
model = tra_module.assemble_model(stmts)
agent = Agent('RAS')
tra.get_create_observable(model, agent)
@raises(tra.MissingMonomerSiteError)
def test_missing_monomer_site():
stmts = [Activation(Agent('BRAF'), Agent('KRAS'))]
model = tra_module.assemble_model(stmts)
mc = ModCondition('phosphorylation', None, None, True)
agent = Agent('KRAS', mods=[mc])
tra.get_create_observable(model, agent)
@raises(tra.MissingMonomerError)
def test_missing_monomer_condition():
stmts = [Activation(Agent('BRAF'), Agent('KRAS'))]
model = tra_module.assemble_model(stmts)
entity = Agent('HRAS')
quantity = tra.MolecularQuantityReference('total', entity)
condition = tra.MolecularCondition('multiple', quantity, 10)
tra.apply_condition(model, condition)
def test_seq_hyp_test():
stmts = [Activation(Agent('BRAF'), Agent('KRAS'))]
model = tra_module.assemble_model(stmts)
entity = Agent('KRAS', activity=ActivityCondition('activity', True))
quantity = tra.MolecularQuantityReference('total', entity)
quant = tra.MolecularQuantity('qualitative', 'high')
pattern = tra.TemporalPattern('sometime_value', [entity], None,
value=quant)
t = tra.TRA()
from bioagents.tra.model_checker import HypothesisTester
ht = HypothesisTester(alpha=0.1, beta=0.1, delta=0.05, prob=0.8)
res = t.check_property(model, pattern, conditions=None,
max_time=20000, num_times=100, hypothesis_tester=ht)
sat_rate, num_sim, kpat, pat_obj, fig_path = res
assert sat_rate == 1.0
assert num_sim == 18
# Module level TRA tests
def test_module():
tra = tra_module.TRA_Module(testing=True)
content = KQMLList()
pattern_msg = '(:type "sometime_value" :entities ((:description ' + \
'%s)) :value (:type "qualitative" :value "high"))' % \
clj_complex
pattern = KQMLList.from_string(pattern_msg)
content.set('pattern', pattern)
model_json = _get_gk_model_indra()
content.sets('model', model_json)
res = tra.respond_satisfies_pattern(content)
assert res[2] is not None
# TRA integration tests
class _TraTestModel1(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.expected = '(SUCCESS :content (:satisfies-rate 0.0 ' + \
':num-sim 10 :suggestion (:type "no_change" ' + \
':value (:type "qualitative" :value "low"))))'
def create_message(self):
model = stmts_clj_from_text('MAP2K1 binds MAPK1')
entity = agent_clj_from_text('MAPK1-MAP2K1 complex')
condition_entity = agent_clj_from_text('MAP2K1')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
conditions = KQMLList()
condition = KQMLList()
condition.sets('type', 'multiple')
condition.set('value', '10.0')
quantity = KQMLList()
quantity.sets('type', 'total')
entity = KQMLList()
entity.set('description', condition_entity)
quantity.set('entity', entity)
condition.set('quantity', quantity)
conditions.append(condition)
content.set('conditions', conditions)
msg = get_request(content)
return (msg, content)
class TraTestModel1_Kappa(_TraTestModel1):
"""Test that the tra can run a model using Kappa"""
def __init__(self, *args):
super().__init__(tra_module.TRA_Module)
class TraTestModel1_NoKappa(_TraTestModel1):
"""Test that the tra can run a model without using Kappa"""
def __init__(self, *args):
super().__init__(tra_module.TRA_Module, use_kappa=False)
class TraTestModel2(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
model = stmts_clj_from_text('MEK binds ERK')
entity = agent_clj_from_text('MEK that is bound to ERK')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'low')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModel3(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
model = stmts_clj_from_text('MEK phosphorylates ERK')
entity = agent_clj_from_text('ERK that is phosphorylated')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModelAlwaysValue(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
model = stmts_clj_from_text('MEK phosphorylates ERK')
entity = agent_clj_from_text('ERK that is phosphorylated')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'always_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '0.0'
assert content.get('suggestion').gets('type') == 'eventual_value'
class TraTestModel4(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
model = stmts_clj_from_text('MEK binds ERK')
entity = agent_clj_from_text('the MEK-ERK complex')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'low')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModel5(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
txt = 'MEK phosphorylates ERK. DUSP dephosphorylates ERK.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('ERK that is phosphorylated')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'low')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '0.0'
suggestion = content.get('suggestion')
assert suggestion.gets('type') == 'eventual_value'
assert suggestion.get('value').gets('value') == 'high'
class TraTestModel6(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
txt = 'ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModel7(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'ERK activates ELK1. DUSP inactivates ELK1. ' + \
'Active ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message1(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
def create_message2(self):
txt = 'ERK activates ELK1. DUSP inactivates ELK1. ' + \
'Active ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'low')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
condition_entity = agent_clj_from_text('DUSP')
conditions = KQMLList()
condition = KQMLList()
condition.sets('type', 'multiple')
condition.set('value', '100.0')
quantity = KQMLList()
quantity.sets('type', 'total')
entity = KQMLList()
entity.set('description', condition_entity)
quantity.set('entity', entity)
condition.set('quantity', quantity)
conditions.append(condition)
content.set('conditions', conditions)
msg = get_request(content)
return msg, content
def check_response_to_message2(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModel8(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module,
use_kappa=False)
def create_message(self):
txt = ('MEK not bound to Selumetinib phosphorylates ERK. DUSP '
'dephosphorylates ERK. Selumetinib binds MEK.')
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('ERK that is phosphorylated')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'no_change')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'low')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
condition_entity = agent_clj_from_text('Selumetinib')
conditions = KQMLList()
condition = KQMLList()
condition.sets('type', 'multiple')
condition.set('value', '100.0')
quantity = KQMLList()
quantity.sets('type', 'total')
entity = KQMLList()
entity.set('description', condition_entity)
quantity.set('entity', entity)
condition.set('quantity', quantity)
conditions.append(condition)
content.set('conditions', conditions)
msg = get_request(content)
return msg, content
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
class TraTestModel9(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'Active ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message1(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0'
def create_message2(self):
txt = 'PLX-4720 inhibits ELK1. Active ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
condition_entity = agent_clj_from_text('PLX-4720')
conditions = KQMLList()
condition = KQMLList()
condition.sets('type', 'multiple')
condition.set('value', '100.0')
quantity = KQMLList()
quantity.sets('type', 'total')
entity = KQMLList()
entity.set('description', condition_entity)
quantity.set('entity', entity)
condition.set('quantity', quantity)
conditions.append(condition)
content.set('conditions', conditions)
msg = get_request(content)
return (msg, content)
def check_response_to_message2(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '0.0'
class TraTestModel10(_IntegrationTest):
"""Test that TRA can correctly run a model."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message(self):
model = stmts_clj_from_text('ERK increases cell proliferation')
entity = agent_clj_from_text('cell proliferation')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'sometime_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return msg, content
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS'
content = output.get('content')
assert content.gets('satisfies-rate') == '1.0', content
class TestMissingModel(_IntegrationTest):
def __init__(self, *args):
super().__init__(tra_module.TRA_Module)
def create_message(self):
content = KQMLList('SATISFIES-PATTERN')
return get_request(content), content
def check_response_to_message(self, output):
assert output.head() == 'FAILURE'
assert output.gets('reason') == 'INVALID_MODEL'
class TestInvalidModel(_IntegrationTest):
def __init__(self, *args):
super().__init__(tra_module.TRA_Module)
def create_message(self):
content = KQMLList('SATISFIES-PATTERN')
return get_request(content), content
def check_response_to_message(self, output):
assert output.head() == 'FAILURE'
assert output.gets('reason') == 'INVALID_MODEL'
class TraTestMissingMonomer(_IntegrationTest):
"""Test that TRA can signal that a monomer is missing."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'KRAS activates BRAF.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('RAS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message1(self, output):
assert output.head() == 'FAILURE'
reason = output.get('reason')
assert reason == 'MODEL_MISSING_MONOMER'
assert output.get('entity'), output
class TraTestMissingMonomerSite(_IntegrationTest):
"""Test that TRA can signal that a monomer is missing."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'KRAS activates BRAF.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('BRAF that is phosphorylated')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return (msg, content)
def check_response_to_message1(self, output):
assert output.head() == 'FAILURE'
reason = output.get('reason')
assert reason == 'MODEL_MISSING_MONOMER_SITE'
class TraMissingMonomerCondition(_IntegrationTest):
"""Test that TRA can signal that a condition monomer is missing."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'ELK1 transcribes FOS.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('FOS')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'eventual_value')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
condition_entity = agent_clj_from_text('MAPK1')
conditions = KQMLList()
condition = KQMLList()
condition.sets('type', 'multiple')
condition.set('value', '100.0')
quantity = KQMLList()
quantity.sets('type', 'total')
entity = KQMLList()
entity.set('description', condition_entity)
quantity.set('entity', entity)
condition.set('quantity', quantity)
conditions.append(condition)
content.set('conditions', conditions)
msg = get_request(content)
return msg, content
def check_response_to_message1(self, output):
assert output.head() == 'FAILURE', output
reason = output.gets('reason')
assert reason == 'MODEL_MISSING_MONOMER', reason
class TraMissingMonomerSite2(_IntegrationTest):
"""Test that TRA can signal that a bound condition monomer is missing."""
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
def create_message1(self):
txt = 'MAP2K1 phosphorylates MAPK1.'
model = stmts_clj_from_text(txt)
entity = agent_clj_from_text('MAPK1-bound MAP2K1')
entities = KQMLList([KQMLList([':description', entity])])
pattern = KQMLList()
pattern.set('entities', entities)
pattern.sets('type', 'sustained')
value = KQMLList()
value.sets('type', 'qualitative')
value.sets('value', 'high')
pattern.set('value', value)
content = KQMLList('SATISFIES-PATTERN')
content.set('pattern', pattern)
content.set('model', model)
msg = get_request(content)
return msg, content
def check_response_to_message1(self, output):
assert output.head() == 'FAILURE', output
reason = output.gets('reason')
assert reason == 'MODEL_MISSING_MONOMER_SITE', reason
class TestCompareConditions(_IntegrationTest):
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
model_txt = 'Vemurafenib inhibits ERK. MEK activates ERK.'
self.model = \
stmts_clj_from_text(model_txt)
def create_message1(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('Active ERK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
msg = get_request(content)
return msg, content
def check_response_to_message1(self, output):
assert output.head() == 'SUCCESS'
satisfied = output.gets('result')
assert satisfied == 'yes_decrease', satisfied
def create_message2(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('Inactive ERK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
msg = get_request(content)
return msg, content
def check_response_to_message2(self, output):
assert output.head() == 'SUCCESS'
satisfied = output.gets('result')
assert satisfied == 'no_increase'
def create_message3(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('ERK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
msg = get_request(content)
return msg, content
def check_response_to_message3(self, output):
assert output.head() == 'SUCCESS'
satisfied = output.gets('result')
assert satisfied == 'no_change'
def create_message4(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('Inactive ERK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
content.set('up-dn', 'up')
msg = get_request(content)
return msg, content
def check_response_to_message4(self, output):
assert output.head() == 'SUCCESS'
satisfied = output.gets('result')
assert satisfied == 'yes_increase', satisfied
def create_message5(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('Active ERK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
content.set('up-dn', 'up')
msg = get_request(content)
return msg, content
def check_response_to_message5(self, output):
assert output.head() == 'SUCCESS'
satisfied = output.gets('result')
assert satisfied == 'no_decrease'
class TestCompareConditionsMissing(_IntegrationTest):
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
model_txt = 'Vemurafenib inhibits ERK.'
self.model = stmts_clj_from_text(model_txt)
def create_message(self):
condition_entity = agent_clj_from_text('Vemurafenib')
target_entity = agent_clj_from_text('MEK')
content = KQMLList('MODEL-COMPARE-CONDITIONS')
content.set('model', self.model)
content.set('agent', condition_entity)
content.set('affected', target_entity)
msg = get_request(content)
return msg, content
def check_response_to_message(self, output):
assert output.head() == 'FAILURE'
reason = output.gets('reason')
assert reason == 'MODEL_MISSING_MONOMER'
# Testing an issue with a specific message from the BA
# the bug ended up being in the BA's message but this test is still useful
class TestConditionNotInvalid(_IntegrationTest):
def __init__(self, *args, **kwargs):
super().__init__(tra_module.TRA_Module, use_kappa=False)
model_txt = 'MAP2K1 phosphorylates MAPK1. ' + \
'DUSP6 dephosphorylates MAPK1.'
self.model = stmts_clj_from_text(model_txt)
def create_message(self):
content = KQMLPerformative('SATISFIES-PATTERN')
content.set('model', self.model)
patt = KQMLList()
patt.sets('type', 'eventual_value')
ents = KQMLList()
ent = KQMLList()
ent.sets('description', agent_clj_from_text('phosphorylated MAPK1'))
ents.append(ent)
patt.set('entities', ents)
val = KQMLList()
val.sets('type', 'qualitative')
val.sets('value', 'low')
patt.set('value', val)
content.set('pattern', patt)
conds = KQMLList()
cond = KQMLList()
cond.sets('type', 'multiple')
quant = KQMLList()
quant.sets('type', 'total')
ent = KQMLList()
ent.sets('description', agent_clj_from_text('DUSP6'))
quant.set('entity', ent)
cond.sets('quantity', quant)
#val = KQMLList()
#val.sets('type', 'number')
cond.set('value', KQMLToken('10'))
#cond.set('value', val)
conds.append(cond)
content.set('conditions', conds)
msg = get_request(content)
return msg, content
def check_response_to_message(self, output):
assert output.head() == 'SUCCESS', output
cont = output.get('content')
cont.gets('satisfies-rate') == '1.0'
def _get_gk_model():
SelfExporter.do_export = True
Model()
Monomer('DUSP6', ['mapk1'])
Monomer('MAP2K1', ['mapk1'])
Monomer('MAPK1', ['phospho', 'map2k1', 'dusp6'], {'phospho': ['u', 'p']})
Parameter('kf_mm_bind_1', 1e-06)
Parameter('kr_mm_bind_1', 0.001)
Parameter('kc_mm_phos_1', 0.001)
Parameter('kf_dm_bind_1', 1e-06)
Parameter('kr_dm_bind_1', 0.001)
Parameter('kc_dm_dephos_1', 0.001)
Parameter('DUSP6_0', 100.0)
Parameter('MAP2K1_0', 100.0)
Parameter('MAPK1_0', 100.0)
Rule('MAP2K1_phospho_bind_MAPK1_phospho_1', MAP2K1(mapk1=None) + \
MAPK1(phospho='u', map2k1=None) >>
MAP2K1(mapk1=1) % MAPK1(phospho='u', map2k1=1), kf_mm_bind_1)
Rule('MAP2K1_phospho_MAPK1_phospho_1', MAP2K1(mapk1=1) % \
MAPK1(phospho='u', map2k1=1) >>
MAP2K1(mapk1=None) + MAPK1(phospho='p', map2k1=None), kc_mm_phos_1)
Rule('MAP2K1_dissoc_MAPK1', MAP2K1(mapk1=1) % MAPK1(map2k1=1) >>
MAP2K1(mapk1=None) + MAPK1(map2k1=None), kr_mm_bind_1)
Rule('DUSP6_dephos_bind_MAPK1_phospho_1', DUSP6(mapk1=None) +
MAPK1(phospho='p', dusp6=None) >>
DUSP6(mapk1=1) % MAPK1(phospho='p', dusp6=1), kf_dm_bind_1)
Rule('DUSP6_dephos_MAPK1_phospho_1', DUSP6(mapk1=1) %
MAPK1(phospho='p', dusp6=1) >>
DUSP6(mapk1=None) + MAPK1(phospho='u', dusp6=None), kc_dm_dephos_1)
Rule('DUSP6_dissoc_MAPK1', DUSP6(mapk1=1) % MAPK1(dusp6=1) >>
DUSP6(mapk1=None) + MAPK1(dusp6=None), kr_dm_bind_1)
Initial(DUSP6(mapk1=None), DUSP6_0)
Initial(MAP2K1(mapk1=None), MAP2K1_0)
Initial(MAPK1(phospho='u', map2k1=None, dusp6=None), MAPK1_0)
SelfExporter.do_export = False
return model
def _get_gk_model_indra():
kras = Agent('KRAS', db_refs={'HGNC': '6407', 'UP': 'P01116'})
braf = Agent('BRAF', db_refs={'HGNC': '1097', 'UP': 'P15056'})
pp2a = Agent('PPP2CA')
st1 = Phosphorylation(kras, braf)
st2 = Dephosphorylation(pp2a, braf)
stmts = [st1, st2]
stmts_json = json.dumps(stmts_to_json(stmts))
return stmts_json
| 35.827504 | 78 | 0.639524 | 5,172 | 45,071 | 5.347448 | 0.069026 | 0.028311 | 0.023466 | 0.022562 | 0.820624 | 0.783238 | 0.763749 | 0.744079 | 0.720432 | 0.706042 | 0 | 0.014367 | 0.227818 | 45,071 | 1,257 | 79 | 35.856006 | 0.780306 | 0.022631 | 0 | 0.680444 | 0 | 0 | 0.165927 | 0.008758 | 0 | 0 | 0 | 0 | 0.115927 | 1 | 0.120968 | false | 0 | 0.012097 | 0 | 0.183468 | 0.002016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
779520e97c5ba064fd2b6caab32e9526e7faa6b3 | 36 | py | Python | 006.function/module2.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 006.function/module2.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | 006.function/module2.py | cjp1016/python-samples | ca5a7284cf4cb9fe42fa1487d4944815a00487ec | [
"Apache-2.0"
] | null | null | null | def foo():
print("goodby world") | 18 | 25 | 0.611111 | 5 | 36 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 36 | 2 | 25 | 18 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
77c589a7d6dd61272877e626e1ebb299b9698d73 | 56,437 | py | Python | tests/test_chargecontroller.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | tests/test_chargecontroller.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | tests/test_chargecontroller.py | stephanme/pv-control | f6aab9800c154492f3b9e5b2cd21c7a87cf92e16 | [
"Apache-2.0"
] | null | null | null | import unittest
import json
from pvcontrol.wallbox import CarStatus, SimulatedWallbox, WallboxConfig, WallboxData, WbError
from pvcontrol.meter import TestMeter, MeterData
from pvcontrol.chargecontroller import ChargeController, ChargeControllerConfig, ChargeMode, PhaseMode
def reset_controller_metrics():
ChargeController._metrics_pvc_controller_total_charged_energy._value.set(0)
ChargeController._metrics_pvc_controller_charged_energy.labels("grid")._value.set(0)
ChargeController._metrics_pvc_controller_charged_energy.labels("pv")._value.set(0)
class ChargeControllerTest(unittest.TestCase):
def setUp(self) -> None:
self.wallbox = SimulatedWallbox(WallboxConfig())
self.meter = TestMeter(self.wallbox)
self.controller = ChargeController(ChargeControllerConfig(), self.meter, self.wallbox)
reset_controller_metrics()
def test_data(self):
self.assertEqual(self.controller._data, self.controller.get_data())
self.controller.get_data().phase_mode = PhaseMode.CHARGE_1P
self.assertEqual(self.controller._data, self.controller.get_data())
self.controller.inc_error_counter()
self.assertEqual(self.controller._data, self.controller.get_data())
self.assertEqual(1, self.controller.get_data().error)
self.assertEqual(1, self.controller._data.error)
def test_ChargeControllerConfig(self):
c = json.loads('{"power_hysteresis": 150}')
cfg = ChargeControllerConfig(**c)
self.assertEqual(150, cfg.power_hysteresis)
self.assertEqual(ChargeControllerConfig(power_hysteresis=150), cfg)
def test_config(self):
ctl = self.controller
self.assertEqual(6, ctl._min_supported_current)
self.assertEqual(16, ctl._max_supported_current)
hys = ctl.get_config().power_hysteresis
self.assertEqual(6 * 230 + hys, ctl._pv_only_on)
self.assertEqual(6 * 230, ctl._pv_only_off)
self.assertEqual(3 * 6 * 230 + hys, ctl._pv_only_1_3_phase_threshold)
self.assertEqual(3 * 6 * 230, ctl._pv_only_3_1_phase_threshold)
self.assertEqual(ctl.get_config().pv_all_min_power, ctl._pv_all_on)
self.assertEqual(ctl.get_config().pv_all_min_power - hys, ctl._pv_all_off)
self.assertEqual(16 * 230, ctl._pv_all_1_3_phase_threshold)
self.assertEqual(16 * 230 - hys, ctl._pv_all_3_1_phase_threshold)
def test_init(self):
c = self.controller.get_data()
self.assertEqual(ChargeMode.OFF, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
self.wallbox.set_phases_in(3)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
def test_desired_phases_OFF(self):
ctl = self.controller
ctl.set_desired_mode(ChargeMode.OFF)
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(3, ctl._desired_phases(0, 3))
self.assertEqual(1, ctl._desired_phases(5000, 1))
self.assertEqual(3, ctl._desired_phases(5000, 3))
def test_desired_phases_MANUAL(self):
ctl = self.controller
ctl.set_desired_mode(ChargeMode.MANUAL)
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(3, ctl._desired_phases(0, 3))
self.assertEqual(1, ctl._desired_phases(5000, 1))
self.assertEqual(3, ctl._desired_phases(5000, 3))
def test_desired_phases_MAX(self):
ctl = self.controller
ctl.set_desired_mode(ChargeMode.MAX)
self.assertEqual(3, ctl._desired_phases(0, 1))
self.assertEqual(3, ctl._desired_phases(0, 3))
self.assertEqual(3, ctl._desired_phases(5000, 1))
self.assertEqual(3, ctl._desired_phases(5000, 3))
def test_desired_phases_PV_ONLY(self):
ctl = self.controller
ctl.set_desired_mode(ChargeMode.PV_ONLY)
p = 3 * 6 * 230
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(1, ctl._desired_phases(p, 1))
self.assertEqual(3, ctl._desired_phases(p + 200, 1))
self.assertEqual(3, ctl._desired_phases(p + 200, 3))
self.assertEqual(3, ctl._desired_phases(p, 3))
self.assertEqual(1, ctl._desired_phases(p - 1, 3))
def test_desired_phases_PV_ONLY_disabled_auto_phase_switching(self):
ctl = self.controller
ctl.get_config().enable_auto_phase_switching = False
ctl.set_desired_mode(ChargeMode.PV_ONLY)
p = 3 * 6 * 230
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(1, ctl._desired_phases(p, 1))
self.assertEqual(1, ctl._desired_phases(p + 200, 1))
self.assertEqual(1, ctl._desired_phases(p + 200, 3))
self.assertEqual(1, ctl._desired_phases(p, 3))
self.assertEqual(1, ctl._desired_phases(p - 1, 3))
def test_desired_phases_PV_ALL(self):
ctl = self.controller
ctl.set_desired_mode(ChargeMode.PV_ALL)
p = 16 * 230
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(1, ctl._desired_phases(p - 1, 1))
self.assertEqual(3, ctl._desired_phases(p, 1))
self.assertEqual(3, ctl._desired_phases(p, 3))
self.assertEqual(3, ctl._desired_phases(p - 200, 3))
self.assertEqual(1, ctl._desired_phases(p - 201, 3))
def test_desired_phases_PV_ALL_disabled_auto_phase_switching(self):
ctl = self.controller
ctl.get_config().enable_auto_phase_switching = False
ctl.set_desired_mode(ChargeMode.PV_ALL)
p = 16 * 230
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(1, ctl._desired_phases(p - 1, 1))
self.assertEqual(1, ctl._desired_phases(p, 1))
self.assertEqual(1, ctl._desired_phases(p, 3))
self.assertEqual(1, ctl._desired_phases(p - 200, 3))
self.assertEqual(1, ctl._desired_phases(p - 201, 3))
def test_desired_phases_CHARGE_1P(self):
ctl = self.controller
ctl.set_phase_mode(PhaseMode.CHARGE_1P)
for mode in ChargeMode:
ctl.set_desired_mode(mode)
self.assertEqual(1, ctl._desired_phases(0, 1))
self.assertEqual(1, ctl._desired_phases(0, 3))
self.assertEqual(1, ctl._desired_phases(5000, 1))
self.assertEqual(1, ctl._desired_phases(5000, 3))
def test_desired_phases_CHARGE_3P(self):
ctl = self.controller
ctl.set_phase_mode(PhaseMode.CHARGE_3P)
for mode in ChargeMode:
ctl.set_desired_mode(mode)
self.assertEqual(3, ctl._desired_phases(0, 1))
self.assertEqual(3, ctl._desired_phases(0, 3))
self.assertEqual(3, ctl._desired_phases(5000, 1))
self.assertEqual(3, ctl._desired_phases(5000, 3))
def test_meter_charged_energy(self):
ctl = self.controller
m = MeterData()
wb = WallboxData()
metric_value_total_charged_energy = ChargeController._metrics_pvc_controller_total_charged_energy._value
metric_value_charged_energy_grid = ChargeController._metrics_pvc_controller_charged_energy.labels("grid")._value
metric_value_charged_energy_pv = ChargeController._metrics_pvc_controller_charged_energy.labels("pv")._value
ctl._meter_charged_energy(m, wb)
self.assertEqual(0, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
m.energy_consumption = 1000
m.energy_consumption_grid = 1000
ctl._meter_charged_energy(m, wb)
self.assertEqual(0, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
# start charging
wb.allow_charging = True
ctl._meter_charged_energy(m, wb)
self.assertEqual(0, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
wb.charged_energy = 100
ctl._meter_charged_energy(m, wb)
self.assertEqual(100, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
wb.charged_energy = 200
ctl._meter_charged_energy(m, wb)
self.assertEqual(200, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
# energy tick from meter
m.energy_consumption += 300
m.energy_consumption_grid += 100
wb.charged_energy = 300
ctl._meter_charged_energy(m, wb)
self.assertEqual(300, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(200, metric_value_charged_energy_pv.get())
# Off, grid/pv != charged due to 5min energy resolution
wb.allow_charging = False
wb.charged_energy = 400
ctl._meter_charged_energy(m, wb)
self.assertEqual(400, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(200, metric_value_charged_energy_pv.get())
# home consumption but no charging
m.energy_consumption += 400
m.energy_consumption_grid += 400
ctl._meter_charged_energy(m, wb)
self.assertEqual(400, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(200, metric_value_charged_energy_pv.get())
# start charging again
wb.allow_charging = True
wb.charged_energy = 0
ctl._meter_charged_energy(m, wb)
self.assertEqual(400, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(200, metric_value_charged_energy_pv.get())
wb.charged_energy = 100
ctl._meter_charged_energy(m, wb)
self.assertEqual(500, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(200, metric_value_charged_energy_pv.get())
# charge from PV only
m.energy_consumption += 300
wb.charged_energy = 200
ctl._meter_charged_energy(m, wb)
self.assertEqual(600, metric_value_total_charged_energy.get())
self.assertEqual(100, metric_value_charged_energy_grid.get())
self.assertEqual(400, metric_value_charged_energy_pv.get())
def test_meter_charged_energy_neg_energy_consumption_grid(self):
# observed (very low) negative meter.energy_consumption_grid changes (which should not exist)
ctl = self.controller
m = MeterData()
wb = WallboxData()
metric_value_total_charged_energy = ChargeController._metrics_pvc_controller_total_charged_energy._value
metric_value_charged_energy_grid = ChargeController._metrics_pvc_controller_charged_energy.labels("grid")._value
metric_value_charged_energy_pv = ChargeController._metrics_pvc_controller_charged_energy.labels("pv")._value
m.energy_consumption += 400
m.energy_consumption_grid += 200
ctl._meter_charged_energy(m, wb)
self.assertEqual(0, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(0, metric_value_charged_energy_pv.get())
wb.allow_charging = True
ctl._meter_charged_energy(m, wb)
wb.charged_energy += 100
m.energy_consumption += 100
m.energy_consumption_grid -= 1
ctl._meter_charged_energy(m, wb)
self.assertEqual(100, metric_value_total_charged_energy.get())
self.assertEqual(0, metric_value_charged_energy_grid.get())
self.assertEqual(100, metric_value_charged_energy_pv.get())
class ChargeControllerDisabledPhaseSwitchingTest(unittest.TestCase):
def setUp(self) -> None:
self.wallbox = SimulatedWallbox(WallboxConfig())
self.meter = TestMeter(self.wallbox)
self.controller = ChargeController(ChargeControllerConfig(enable_phase_switching=False), self.meter, self.wallbox)
reset_controller_metrics()
def test_3P(self):
self.wallbox.set_phases_in(3)
self.controller.run() # init
c = self.controller.get_data()
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.CHARGE_3P, c.phase_mode)
self.assertEqual(3, self.wallbox.get_data().phases_in)
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
self.controller.run()
self.assertEqual(PhaseMode.CHARGE_3P, c.phase_mode)
self.assertEqual(3, self.wallbox.get_data().phases_in)
def test_1P(self):
self.controller.run() # init
c = self.controller.get_data()
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.CHARGE_1P, c.phase_mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.controller.set_phase_mode(PhaseMode.AUTO)
self.controller.run()
self.assertEqual(PhaseMode.CHARGE_1P, c.phase_mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
class ChargeControllerManualModeTest(unittest.TestCase):
def setUp(self) -> None:
self.wallbox = SimulatedWallbox(WallboxConfig())
self.wallbox.set_car_status(CarStatus.Charging) # enable simulation by default
self.meter = TestMeter(self.wallbox)
self.controller = ChargeController(ChargeControllerConfig(), self.meter, self.wallbox)
reset_controller_metrics()
self.controller.run() # init
def test_mode_FULL_POWER(self):
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.controller.set_desired_mode(ChargeMode.MAX)
# 1 to 3 phase switch
self.controller.run()
self.assertEqual(ChargeMode.MAX, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.MAX, c.mode)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.MAX, c.mode)
self.assertEqual(3, self.wallbox.get_data().phases_out)
def test_mode_MANUAL_OFF(self):
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.assertEqual(0, self.wallbox.get_data().phases_out)
self.wallbox.allow_charging(True)
self.wallbox.set_max_current(10)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.MANUAL, c.mode)
self.assertEqual(1, self.wallbox.get_data().phases_out)
self.controller.set_desired_mode(ChargeMode.OFF)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.controller.run()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(0, self.wallbox.get_data().phases_out)
def test_mode_1P_3P_1P(self):
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
self.controller.run()
self.assertEqual(3, self.wallbox.get_data().phases_in)
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
self.controller.run()
self.assertEqual(1, self.wallbox.get_data().phases_in)
def test_mode_1P_3P_while_charging(self):
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(PhaseMode.AUTO, c.phase_mode)
wb = self.wallbox.get_data()
self.assertEqual(1, wb.phases_in)
self.wallbox.allow_charging(True)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
self.controller.run()
wb = self.wallbox.get_data()
self.assertEqual(1, wb.phases_in)
self.assertFalse(wb.allow_charging)
self.controller.run()
wb = self.wallbox.get_data()
self.assertEqual(3, wb.phases_in)
self.assertEqual(0, wb.phases_out)
self.assertEqual(ChargeMode.OFF, c.mode)
def test_mode_3P_1P_while_charging(self):
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
self.controller.run()
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
wb = self.wallbox.get_data()
self.assertEqual(3, wb.phases_in)
self.wallbox.allow_charging(True)
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
self.controller.run()
wb = self.wallbox.get_data()
self.assertEqual(3, wb.phases_in)
self.assertFalse(wb.allow_charging)
self.controller.run()
wb = self.wallbox.get_data()
self.assertEqual(1, wb.phases_in)
self.assertEqual(0, wb.phases_out)
def test_mode_1P_PV(self):
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.controller.set_desired_mode(ChargeMode.PV_ONLY)
self.assertEqual(ChargeMode.OFF, c.mode)
self.controller.run()
self.assertEqual(ChargeMode.PV_ONLY, c.mode)
self.assertEqual(ChargeMode.PV_ONLY, c.desired_mode)
self.controller.run()
self.assertEqual(ChargeMode.PV_ONLY, c.mode)
self.controller.set_desired_mode(ChargeMode.MANUAL)
self.controller.run()
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
def test_mode_1P_3P_phase_err(self):
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
self.controller.run()
self.assertEqual(3, self.wallbox.get_data().phases_in)
self.wallbox.set_wb_error(WbError.PHASE)
self.controller.run()
self.assertEqual(1, self.wallbox.trigger_reset_cnt)
def test_inconsistent_phase_relay_err(self):
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
c = self.controller.get_data()
self.assertEqual(ChargeMode.MANUAL, c.desired_mode)
self.assertEqual(ChargeMode.OFF, c.mode)
self.assertEqual(1, self.wallbox.get_data().phases_in)
self.wallbox.set_wb_error(WbError.PHASE_RELAY_ERR)
self.controller.run()
self.assertEqual(1, self.wallbox.trigger_reset_cnt)
class ChargeControllerPVTest(unittest.TestCase):
def setUp(self) -> None:
self.wallbox = SimulatedWallbox(WallboxConfig())
self.meter = TestMeter(self.wallbox)
self.controller = ChargeController(ChargeControllerConfig(pv_allow_charging_delay=0), self.meter, self.wallbox)
reset_controller_metrics()
self.controller.run() # init
def runControllerTest(self, data):
for idx, d in enumerate(data):
with self.subTest(idx=idx, test=d["test"]):
self.meter.set_data(d["pv"], d["home"], d.get("energy_consumption_grid", 0), d.get("energy_consumption_pv", 0))
if "car" in d:
self.wallbox.set_car_status(d["car"])
self.controller.run()
# re-read meter and wallbox to avoid 1 cycle delay -> makes test data easier
# order is important: simulated meter needs wallbox data
wb = self.wallbox.read_data()
self.wallbox.decrement_charge_energy_for_tests()
m = self.meter.read_data()
expected_wb = d["expected_wb"]
# skip checking of car_status by setting it to wb value
expected_wb.car_status = wb.car_status
# skip checking charged_energy if not explicitly specified
if expected_wb.charged_energy == 0:
wb.charged_energy = 0
wb.total_energy = 0
self.assertEqual(d["expected_m"], m)
self.assertEqual(expected_wb, wb)
def test_charge_control_pv_only_auto(self):
self.controller.set_desired_mode(ChargeMode.PV_ONLY)
self.controller.set_phase_mode(PhaseMode.AUTO)
data = [
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "1.4kW PV, off",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=0, power_grid=-1400),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "3kW PV, 1x13A",
"pv": 3000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "3kW PV, 1x13A *",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "4kW PV, 1x16A",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=3680, power_grid=-4000 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "4.3kW PV, 1x16A",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=3680, power_grid=-4300 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "4.5kW PV, 3x6A",
"pv": 4500,
"home": 0,
"expected_m": MeterData(power_pv=4500, power_consumption=0, power_grid=-4500),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=16, power=0),
},
{
"test": "4.5kW PV, 3x6A *",
"pv": 4500,
"home": 0,
"expected_m": MeterData(power_pv=4500, power_consumption=0, power_grid=-4500),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16, power=0),
},
{
"test": "4.5kW PV, 3x6A **",
"pv": 4500,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=4500, power_consumption=4140, power_grid=-4500 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "6kW PV, 3x8A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=5520, power_grid=-6000 + 5520),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=8, power=5520),
},
{
"test": "4.3kW PV, 3x6A",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=4140, power_grid=-4300 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "4kW PV, 1x16A",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=0, power_grid=-4000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "4kW PV, 1x16A *",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=0, power_grid=-4000),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "4kW PV, 1x16A *",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=3680, power_grid=-4000 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "1.4kW PV, 1x6A",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=1380, power_grid=-1400 + 1380),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=6, power=1380),
},
{
"test": "1kW PV, off",
"pv": 1000,
"home": 0,
"car": CarStatus.ChargingFinished,
"expected_m": MeterData(power_pv=1000, power_consumption=0, power_grid=-1000),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6, power=0),
},
]
self.runControllerTest(data)
def test_charge_control_pv_only_1p(self):
self.controller.set_desired_mode(ChargeMode.PV_ONLY)
self.controller.set_phase_mode(PhaseMode.CHARGE_1P)
data = [
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "1.4kW PV, off",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=0, power_grid=-1400),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "3kW PV, 1x13A",
"pv": 3000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "3kW PV, 1x13A *",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "4kW PV, 1x16A",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=3680, power_grid=-4000 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "5kW PV, 1x16A",
"pv": 5000,
"home": 0,
"expected_m": MeterData(power_pv=5000, power_consumption=3680, power_grid=-5000 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "10kW PV, 1x16A",
"pv": 10000,
"home": 0,
"expected_m": MeterData(power_pv=10000, power_consumption=3680, power_grid=-10000 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "1.4kW PV, 1x6A",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=1380, power_grid=-1400 + 1380),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=6, power=1380),
},
{
"test": "1kW PV, off",
"pv": 1000,
"home": 0,
"expected_m": MeterData(power_pv=1000, power_consumption=0, power_grid=-1000),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6, power=0),
},
]
self.runControllerTest(data)
def test_charge_control_pv_only_3P(self):
self.controller.set_desired_mode(ChargeMode.PV_ONLY)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
data = [
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16),
},
{
"test": "1.4kW PV, off",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=0, power_grid=-1400),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "4.3kW PV, 3x6A",
"pv": 4300,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=4300, power_consumption=4140, power_grid=-4300 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "6kW PV, 3x8A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=5520, power_grid=-6000 + 5520),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=8, power=5520),
},
{
"test": "4.3kW PV, 3x6A",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=4140, power_grid=-4300 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "4kW PV, off",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=0, power_grid=-4000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "1.4kW PV, off",
"pv": 1400,
"home": 0,
"expected_m": MeterData(power_pv=1400, power_consumption=0, power_grid=-1400),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "1kW PV, off",
"pv": 1000,
"home": 0,
"expected_m": MeterData(power_pv=1000, power_consumption=0, power_grid=-1000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6, power=0),
},
]
self.runControllerTest(data)
def test_charge_control_pv_only_off_after_novehicle(self):
self.controller.set_desired_mode(ChargeMode.PV_ONLY)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
data = [
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16),
},
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "6kW PV, 3x8A, NoVehicle",
"pv": 6000,
"home": 0,
"car": CarStatus.NoVehicle, # reported by car not because PV switched off
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=8),
},
{
"test": "6kW PV, 3x8A, car connected",
"pv": 6000,
"home": 0,
"car": CarStatus.Charging, # plugged in
"expected_m": MeterData(power_pv=6000, power_consumption=5520, power_grid=-6000 + 5520),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=8, power=5520),
},
{
"test": "6kW PV, 3x8A, finished by car",
"pv": 6000,
"home": 0,
"car": CarStatus.ChargingFinished, # reported by car not because PV switched off
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=True, max_current=8, power=0),
},
{
"test": "6kW PV, 3x8A, unplugged",
"pv": 6000,
"home": 0,
"car": CarStatus.NoVehicle, # unplugged car
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=8, power=0),
},
]
# 5 min delay until charge mode OFF
d_finished = data[-1]
for _ in range(0, 9): # 10*NoVehicle
data.append(d_finished)
self.runControllerTest(data)
self.assertEqual(ChargeMode.MANUAL, self.controller.get_data().desired_mode)
self.assertEqual(ChargeMode.OFF, self.controller.get_data().mode)
def test_charge_control_pv_all(self):
self.controller.set_desired_mode(ChargeMode.PV_ALL)
data = [
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "0.3kW PV, off",
"pv": 300,
"home": 0,
"expected_m": MeterData(power_pv=300, power_consumption=0, power_grid=-300),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "3kW PV, 1x13A",
"pv": 3000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "3kW PV, 1x13A *",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "3.5kW PV, 1x16A",
"pv": 3500,
"home": 0,
"expected_m": MeterData(power_pv=3500, power_consumption=3680, power_grid=-3500 + 3680),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=16, power=3680),
},
{
"test": "4.3kW PV, 3x7A",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=0, power_grid=-4300),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=16, power=0),
},
{
"test": "4.3kW PV, 3x7A *",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=0, power_grid=-4300),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16, power=0),
},
{
"test": "4.3kW PV, 3x7A **",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=4830, power_grid=-4300 + 4830),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=7, power=4830),
},
{
"test": "4.89kW PV, 3x7A (0.1A rounding offset)",
"pv": 4890,
"home": 0,
"expected_m": MeterData(power_pv=4890, power_consumption=4830, power_grid=-4890 + 4830),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=7, power=4830),
},
{
"test": "6kW PV, 3x9A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
{
"test": "3.5kW PV, 3x6A",
"pv": 3500,
"home": 0,
"expected_m": MeterData(power_pv=3500, power_consumption=4140, power_grid=-3500 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "3kW PV, 1x13A",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=0, power_grid=-3000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "3kW PV, 1x13A *",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=0, power_grid=-3000),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6, power=0),
},
{
"test": "3kW PV, 1x13A **",
"pv": 3000,
"home": 0,
"expected_m": MeterData(power_pv=3000, power_consumption=2990, power_grid=-3000 + 2990),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=13, power=2990),
},
{
"test": "0.4kW PV, 1x6A",
"pv": 400,
"home": 0,
"expected_m": MeterData(power_pv=400, power_consumption=1380, power_grid=-400 + 1380),
"expected_wb": WallboxData(phases_in=1, phases_out=1, allow_charging=True, max_current=6, power=1380),
},
{
"test": "0.2kW PV, off",
"pv": 200,
"home": 0,
"expected_m": MeterData(power_pv=200, power_consumption=0, power_grid=-200),
"expected_wb": WallboxData(phases_in=1, phases_out=0, allow_charging=False, max_current=6),
},
]
self.runControllerTest(data)
def test_charge_control_pv_all_3P(self):
self.controller.set_desired_mode(ChargeMode.PV_ALL)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
data = [
{
"test": "Enable Mode, no PV, phase switching",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16),
},
{
"test": "Enable Mode, no PV",
"pv": 0,
"home": 0,
"expected_m": MeterData(power_pv=0, power_consumption=0, power_grid=0),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "0.3kW PV, off",
"pv": 300,
"home": 0,
"expected_m": MeterData(power_pv=300, power_consumption=0, power_grid=-300),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "1kW PV, 3x6A",
"pv": 1000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=1000, power_consumption=4140, power_grid=-1000 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "4kW PV, 3x6A",
"pv": 4000,
"home": 0,
"expected_m": MeterData(power_pv=4000, power_consumption=4140, power_grid=-4000 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "4.3kW PV, 3x7A **",
"pv": 4300,
"home": 0,
"expected_m": MeterData(power_pv=4300, power_consumption=4830, power_grid=-4300 + 4830),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=7, power=4830),
},
{
"test": "4.89kW PV, 3x7A (0.1A rounding offset)",
"pv": 4890,
"home": 0,
"expected_m": MeterData(power_pv=4890, power_consumption=4830, power_grid=-4890 + 4830),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=7, power=4830),
},
{
"test": "6kW PV, 3x9A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
{
"test": "3.5kW PV, 3x6A",
"pv": 3500,
"home": 0,
"expected_m": MeterData(power_pv=3500, power_consumption=4140, power_grid=-3500 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "1kW PV, 3x6A",
"pv": 1000,
"home": 0,
"expected_m": MeterData(power_pv=1000, power_consumption=4140, power_grid=-1000 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "0.2kW PV, off",
"pv": 200,
"home": 0,
"car": CarStatus.ChargingFinished,
"expected_m": MeterData(power_pv=200, power_consumption=0, power_grid=-200),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
]
self.runControllerTest(data)
def test_charge_control_pv_all_3P_allow_charging_delay(self):
self.controller.set_desired_mode(ChargeMode.PV_ALL)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
self.controller.get_config().pv_allow_charging_delay = 60
data = [
{
"test": "Enable Mode, 6kW PV, 3x9A, phase switching",
"pv": 6000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=16),
},
{
"test": "Enable Mode, 6kW PV, 3x9A, no allow_charging delay",
"pv": 6000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
{
"test": "6kW PV, 3x9A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
{
"test": "0.2kW PV, 3x6A (allow_charging delay)",
"pv": 200,
"home": 0,
"expected_m": MeterData(power_pv=200, power_consumption=4140, power_grid=-200 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "0.2kW PV, off",
"pv": 200,
"home": 0,
"expected_m": MeterData(power_pv=200, power_consumption=0, power_grid=-200),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=6),
},
{
"test": "6kW PV, off (allow_charging delay)",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=0, allow_charging=False, max_current=9),
},
{
"test": "6kW PV, 3x9A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
{
"test": "0.2kW PV, 3x6A (allow_charging delay)",
"pv": 200,
"home": 0,
"expected_m": MeterData(power_pv=200, power_consumption=4140, power_grid=-200 + 4140),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=6, power=4140),
},
{
"test": "6kW PV, 3x9A",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=6210, power_grid=-6000 + 6210),
"expected_wb": WallboxData(phase_relay=True, phases_in=3, phases_out=3, allow_charging=True, max_current=9, power=6210),
},
]
self.runControllerTest(data)
def test_charge_control_meter_charged_energy(self):
self.controller.set_desired_mode(ChargeMode.MAX)
self.controller.set_phase_mode(PhaseMode.CHARGE_3P)
pmax = 11040
energy_inc = pmax / 120 # 30s cycle time
data = [
{
"test": "6kW PV, #0, phase switching",
"pv": 6000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=6000, power_consumption=0, power_grid=-6000),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=0,
allow_charging=False,
max_current=16,
power=0,
),
},
{
"test": "6kW PV, #1",
"pv": 6000,
"home": 0,
"car": CarStatus.Charging,
"expected_m": MeterData(power_pv=6000, power_consumption=pmax, power_grid=-6000 + pmax),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=pmax,
),
},
{
"test": "6kW PV, #2",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=11040, power_grid=-6000 + 11040),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=11040,
charged_energy=1 * energy_inc,
total_energy=1 * energy_inc,
),
},
{
"test": "6kW PV, #3",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=11040, power_grid=-6000 + 11040),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=11040,
charged_energy=2 * energy_inc,
total_energy=2 * energy_inc,
),
},
{
"test": "6kW PV, #4",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=11040, power_grid=-6000 + 11040),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=11040,
charged_energy=3 * energy_inc,
total_energy=3 * energy_inc,
),
},
{
"test": "6kW PV, #5",
"pv": 6000,
"home": 0,
"expected_m": MeterData(power_pv=6000, power_consumption=11040, power_grid=-6000 + 11040),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=11040,
charged_energy=4 * energy_inc,
total_energy=4 * energy_inc,
),
},
{
"test": "6kW PV, #6, meter reports new energy data",
"pv": 6000,
"home": 0,
"energy_consumption_grid": (-6000 + 11040) * 5 / 120,
"energy_consumption_pv": 6000 * 5 / 120,
"expected_m": MeterData(
power_pv=6000,
power_consumption=11040,
power_grid=-6000 + 11040,
energy_consumption=11040 * 5 / 120,
energy_consumption_grid=(-6000 + 11040) * 5 / 120,
energy_consumption_pv=6000 * 5 / 120,
),
"expected_wb": WallboxData(
phase_relay=True,
phases_in=3,
phases_out=3,
allow_charging=True,
max_current=16,
power=11040,
charged_energy=5 * energy_inc,
total_energy=5 * energy_inc,
),
},
]
self.runControllerTest(data)
total_charged_energy_metric = ChargeController._metrics_pvc_controller_total_charged_energy._value.get()
charged_energy_grid_metric = ChargeController._metrics_pvc_controller_charged_energy.labels("grid")._value.get()
charged_energy_pv_metric = ChargeController._metrics_pvc_controller_charged_energy.labels("pv")._value.get()
self.assertEqual(5 * energy_inc, total_charged_energy_metric)
self.assertEqual(5 * (-6000 + pmax) / 120, charged_energy_grid_metric)
self.assertEqual(5 * 6000 / 120, charged_energy_pv_metric)
| 46.37387 | 136 | 0.580842 | 6,537 | 56,437 | 4.747591 | 0.035796 | 0.088932 | 0.047559 | 0.06077 | 0.897309 | 0.878041 | 0.860319 | 0.846206 | 0.830321 | 0.804189 | 0 | 0.067867 | 0.30395 | 56,437 | 1,216 | 137 | 46.412007 | 0.72217 | 0.013147 | 0 | 0.664292 | 0 | 0 | 0.075067 | 0.001581 | 0 | 0 | 0 | 0 | 0.165628 | 1 | 0.034728 | false | 0 | 0.004452 | 0 | 0.042743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
77e826e2bc5a96cbdd249d48c9288063020052f5 | 121 | py | Python | project_1/AJCNN/models/__init__.py | kkaryl/AI6121-Computer_Vision | 94e333554f7d4b47e4f82bc0273e1f3de7f658b2 | [
"MIT"
] | null | null | null | project_1/AJCNN/models/__init__.py | kkaryl/AI6121-Computer_Vision | 94e333554f7d4b47e4f82bc0273e1f3de7f658b2 | [
"MIT"
] | null | null | null | project_1/AJCNN/models/__init__.py | kkaryl/AI6121-Computer_Vision | 94e333554f7d4b47e4f82bc0273e1f3de7f658b2 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .LeNet5 import *
from .VGG import *
from .AJCNN import *
from .RNN import *
| 17.285714 | 38 | 0.760331 | 17 | 121 | 5.117647 | 0.470588 | 0.45977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.173554 | 121 | 6 | 39 | 20.166667 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
77fc0d4b59c7123c697dc8b555a9e6397f832a87 | 29 | py | Python | asystem-anode/src/main/python/anode/plugin/homeassistant/__init__.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | null | null | null | asystem-anode/src/main/python/anode/plugin/homeassistant/__init__.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | 2 | 2021-03-25T21:27:09.000Z | 2022-02-11T03:38:48.000Z | asystem-anode/src/main/python/anode/plugin/homeassistant/__init__.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | null | null | null | from homeassistant import *
| 9.666667 | 27 | 0.793103 | 3 | 29 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 29 | 2 | 28 | 14.5 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
7aeb14db5ef650f30e6d0880efd49b52f3c4f972 | 215 | py | Python | src/epidemic_simulation/GUI/features/utils/__init.py | GalBenZvi/EpidemicSimulation | 7aa551e18ad27e977a73452e708026ea85804a21 | [
"MIT"
] | 1 | 2020-07-15T07:11:55.000Z | 2020-07-15T07:11:55.000Z | src/epidemic_simulation/GUI/features/utils/__init.py | Hershkovitz-hub/EpidemicSimulation | 7aa551e18ad27e977a73452e708026ea85804a21 | [
"MIT"
] | 2 | 2021-06-08T22:07:26.000Z | 2021-09-08T02:22:40.000Z | src/epidemic_simulation/GUI/features/utils/__init.py | GalBenZvi/EpidemicSimulation | 7aa551e18ad27e977a73452e708026ea85804a21 | [
"MIT"
] | null | null | null | from epidemic_simulation.GUI.features.utils.sliders import Sliders
from epidemic_simulation.GUI.features.utils.sir_to_color import SIR
from epidemic_simulation.GUI.features.utils.screen_divider import ScreenDivider
| 53.75 | 79 | 0.888372 | 30 | 215 | 6.166667 | 0.466667 | 0.194595 | 0.356757 | 0.405405 | 0.616216 | 0.616216 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055814 | 215 | 3 | 80 | 71.666667 | 0.91133 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 1 | 0 | 0 | 6 |
bb3669aad3949714b04852150b70eea37ae7aa4b | 259 | py | Python | weather_rpi/converters/__init__.py | JohannesSMHI/weather-rpi | 5fc0a1a11ded60d450baf438f83c7a390ae92bd8 | [
"MIT"
] | null | null | null | weather_rpi/converters/__init__.py | JohannesSMHI/weather-rpi | 5fc0a1a11ded60d450baf438f83c7a390ae92bd8 | [
"MIT"
] | null | null | null | weather_rpi/converters/__init__.py | JohannesSMHI/weather-rpi | 5fc0a1a11ded60d450baf438f83c7a390ae92bd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Created on 2021-11-21 15:32
@author: johannes
"""
from weather_rpi.converters.rounder import RounderFormatter
from weather_rpi.converters.timestamps import DateFormatter
from weather_rpi.converters.temperature import TempFormatter
| 25.9 | 60 | 0.826255 | 34 | 259 | 6.205882 | 0.705882 | 0.156398 | 0.199052 | 0.341232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055085 | 0.088803 | 259 | 9 | 61 | 28.777778 | 0.838983 | 0.262548 | 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 | 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 | 1 | 0 | 0 | 6 |
24ec116ea4b311724320eb6cd310b32648d8f465 | 267 | py | Python | backend/project/serializers.py | Abhiram-Joshi/Projectsv2 | 73416697290161dd45eb3192ed7e6275201f81c9 | [
"MIT"
] | null | null | null | backend/project/serializers.py | Abhiram-Joshi/Projectsv2 | 73416697290161dd45eb3192ed7e6275201f81c9 | [
"MIT"
] | null | null | null | backend/project/serializers.py | Abhiram-Joshi/Projectsv2 | 73416697290161dd45eb3192ed7e6275201f81c9 | [
"MIT"
] | null | null | null | from rest_framework import serializers
class GetRepoSerializer(serializers.Serializer):
repo_name = serializers.CharField()
class UploadImageSerializer(serializers.Serializer):
repo_name = serializers.CharField()
repo_thumbnail = serializers.CharField() | 33.375 | 52 | 0.812734 | 25 | 267 | 8.52 | 0.52 | 0.28169 | 0.234742 | 0.2723 | 0.460094 | 0.460094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11236 | 267 | 8 | 53 | 33.375 | 0.898734 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
70575d3a6cb0a7492e63d2575b5db5d3392c5c3c | 78 | py | Python | vsbuy_backend/products/serializers/__init__.py | Edward-TL/vsbuy_backend | e6b3e71d6c0e6b253707489d70d951400acac451 | [
"MIT"
] | null | null | null | vsbuy_backend/products/serializers/__init__.py | Edward-TL/vsbuy_backend | e6b3e71d6c0e6b253707489d70d951400acac451 | [
"MIT"
] | 1 | 2020-10-05T01:27:02.000Z | 2020-10-05T01:27:02.000Z | vsbuy_backend/products/serializers/__init__.py | Edward-TL/vsbuy_backend | e6b3e71d6c0e6b253707489d70d951400acac451 | [
"MIT"
] | 1 | 2020-10-05T01:21:59.000Z | 2020-10-05T01:21:59.000Z | from .products import *
from .stores import *
from .scraping_products import * | 26 | 32 | 0.782051 | 10 | 78 | 6 | 0.5 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 78 | 3 | 32 | 26 | 0.895522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
564d3c85c4d4eb0695dfb3a9691693d3ed33e5b7 | 27 | py | Python | deepmatch_torch/layers/__init__.py | bbruceyuan/DeepMatch_Torch | 498a6fd8e9af23a4c712b5b6f3aa33e8fd6fa222 | [
"MIT"
] | 15 | 2022-02-01T07:37:43.000Z | 2022-03-30T07:56:15.000Z | deepmatch_torch/layers/__init__.py | bbruceyuan/DeepMatch_Torch | 498a6fd8e9af23a4c712b5b6f3aa33e8fd6fa222 | [
"MIT"
] | 1 | 2022-03-09T09:48:57.000Z | 2022-03-10T02:13:10.000Z | deepmatch_torch/layers/__init__.py | bbruceyuan/DeepMatch_Torch | 498a6fd8e9af23a4c712b5b6f3aa33e8fd6fa222 | [
"MIT"
] | 4 | 2022-02-23T16:54:36.000Z | 2022-03-21T13:25:18.000Z | from .interaction import *
| 13.5 | 26 | 0.777778 | 3 | 27 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 1 | 27 | 27 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
56535950e8b100f7c88421be7d602417861d3c0f | 70 | py | Python | scrapy_cdr/__init__.py | TeamHG-Memex/scrapy-cdr | b99c4ff2df02f722cb2d39b1e321d11a5a420cad | [
"MIT"
] | 6 | 2017-09-26T14:31:20.000Z | 2020-10-13T07:08:50.000Z | scrapy_cdr/__init__.py | TeamHG-Memex/scrapy-cdr | b99c4ff2df02f722cb2d39b1e321d11a5a420cad | [
"MIT"
] | 14 | 2017-04-05T10:08:48.000Z | 2018-10-27T09:45:11.000Z | scrapy_cdr/__init__.py | TeamHG-Memex/scrapy-cdr | b99c4ff2df02f722cb2d39b1e321d11a5a420cad | [
"MIT"
] | 6 | 2017-09-01T19:29:46.000Z | 2020-08-25T15:25:17.000Z | from .items import CDRItem
from .utils import text_cdr_item, cdr_item
| 23.333333 | 42 | 0.828571 | 12 | 70 | 4.583333 | 0.666667 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 70 | 2 | 43 | 35 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5698857b706baac876571b63c7f5532a38a21d11 | 177 | py | Python | keras/test.py | Xueping/ml_experiments | 7a5f59fd377ac045eb51c946b27bf9279976634d | [
"Apache-2.0"
] | null | null | null | keras/test.py | Xueping/ml_experiments | 7a5f59fd377ac045eb51c946b27bf9279976634d | [
"Apache-2.0"
] | null | null | null | keras/test.py | Xueping/ml_experiments | 7a5f59fd377ac045eb51c946b27bf9279976634d | [
"Apache-2.0"
] | null | null | null | import tensorflow
import matplotlib
matplotlib.use('TKAgg')
import matplotlib.pyplot as plt
import numpy as np
print ("Tensorflow Imported")
plt.plot(np.arange(100))
plt.show() | 19.666667 | 31 | 0.79096 | 26 | 177 | 5.384615 | 0.615385 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.101695 | 177 | 9 | 32 | 19.666667 | 0.861635 | 0 | 0 | 0 | 0 | 0 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.625 | 0 | 0.625 | 0.125 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3b0f3a775017fad951b36ada9399663f5190e855 | 5,236 | py | Python | tests/AdagucTests/TestWMSTiling.py | lukas-phaf/adaguc-server | aa5e267d6c5c15463035ff87d353707207374d1b | [
"Apache-2.0"
] | 1 | 2019-08-21T11:03:09.000Z | 2019-08-21T11:03:09.000Z | tests/AdagucTests/TestWMSTiling.py | ernstdevreede/adaguc-server | 3516bf1a2ea6abb4f2e85e72944589dfcc990f7c | [
"Apache-2.0"
] | null | null | null | tests/AdagucTests/TestWMSTiling.py | ernstdevreede/adaguc-server | 3516bf1a2ea6abb4f2e85e72944589dfcc990f7c | [
"Apache-2.0"
] | null | null | null | # pylint: disable=line-too-long
# pylint: disable=unused-variable
# pylint: disable=invalid-name
"""
Run test for tiling system of adaguc-server
"""
import os
import unittest
from .AdagucTestTools import AdagucTestTools
ADAGUC_PATH = os.environ['ADAGUC_PATH']
class TestWMSTiling(unittest.TestCase):
"""
The class for testing tiling
"""
testresultspath = "testresults/TestWMSTiling/"
expectedoutputsspath = "expectedoutputs/TestWMSTiling/"
env = {'ADAGUC_CONFIG': ADAGUC_PATH +
"/data/config/adaguc.tests.dataset.xml"}
AdagucTestTools().mkdir_p(testresultspath)
def test_WMSGetMap_testdatanc_notiling(self):
"""
Testing standard functionality without tiling
"""
AdagucTestTools().cleanTempDir()
config = ADAGUC_PATH + '/data/config/adaguc.tests.dataset.xml,' + \
ADAGUC_PATH + '/data/config/datasets/adaguc.testtiling.xml'
status, data, headers = AdagucTestTools().runADAGUCServer(
args=['--updatedb', '--config', config], env=self.env, isCGI=False)
self.assertEqual(status, 0)
filename = "test_TestWMSTilingWMSGetMap_testdatanc-notiling.png"
status, data, headers = AdagucTestTools().runADAGUCServer(
"dataset=adaguc.testtiling&SERVICE=WMS&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=testdatant&WIDTH=256&HEIGHT=180&CRS=EPSG%3A4326&BBOX=-90,-180,90,180&STYLES=testdata%2Fnearest&FORMAT=image/png&TRANSPARENT=FALSE&", env=self.env, showLogOnError=True, showLog=False)
AdagucTestTools().writetofile(self.testresultspath + filename, data.getvalue())
self.assertEqual(status, 0)
self.assertEqual(data.getvalue(), AdagucTestTools(
).readfromfile(self.expectedoutputsspath + filename))
def test_WMSGetMap_testdatanc_tiling(self):
"""
Testing tiling using the createtiles command
"""
AdagucTestTools().cleanTempDir()
config = ADAGUC_PATH + '/data/config/adaguc.tests.dataset.xml,' + \
ADAGUC_PATH + '/data/config/datasets/adaguc.testtiling.xml'
status, data, headers = AdagucTestTools().runADAGUCServer(
args=['--updatedb', '--config', config], env=self.env, isCGI=False)
self.assertEqual(status, 0)
filename = "test_TestWMSTilingWMSGetMap_testdatanc-notiling.png"
status, data, headers = AdagucTestTools().runADAGUCServer(
"dataset=adaguc.testtiling&SERVICE=WMS&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=testdatant&WIDTH=256&HEIGHT=180&CRS=EPSG%3A4326&BBOX=-90,-180,90,180&STYLES=testdata%2Fnearest&FORMAT=image/png&TRANSPARENT=FALSE&", env=self.env, showLogOnError=True, showLog=False)
AdagucTestTools().writetofile(self.testresultspath + filename, data.getvalue())
self.assertEqual(status, 0)
self.assertEqual(data.getvalue(), AdagucTestTools(
).readfromfile(self.expectedoutputsspath + filename))
AdagucTestTools().mkdir_p(os.environ['ADAGUC_TMP']+"/tiling/")
config = ADAGUC_PATH + '/data/config/adaguc.tests.dataset.xml,' + \
ADAGUC_PATH + '/data/config/datasets/adaguc.testtiling.xml'
status, data, headers = AdagucTestTools().runADAGUCServer(
args=['--createtiles', '--config', config], env=self.env, isCGI=False, showLogOnError=True, showLog=False)
self.assertEqual(status, 0)
filename = "test_TestWMSTilingWMSGetMap_testdatanc.png"
status, data, headers = AdagucTestTools().runADAGUCServer(
"dataset=adaguc.testtiling&SERVICE=WMS&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=testdata&WIDTH=256&HEIGHT=180&CRS=EPSG%3A4326&BBOX=-90,-180,90,180&STYLES=testdata%2Fnearest&FORMAT=image/png&TRANSPARENT=FALSE&", env=self.env, showLogOnError=True, showLog=False)
AdagucTestTools().writetofile(self.testresultspath + filename, data.getvalue())
self.assertEqual(status, 0)
self.assertEqual(data.getvalue(), AdagucTestTools(
).readfromfile(self.expectedoutputsspath + filename))
def test_WMSGetMap_testdatanc_autotiling(self):
"""
Testing auto tiling, tiling done during --updatedb
"""
AdagucTestTools().cleanTempDir()
config = ADAGUC_PATH + '/data/config/adaguc.tests.dataset.xml,' + \
ADAGUC_PATH + '/data/config/datasets/adaguc.testautotiling.xml'
status, data, headers = AdagucTestTools().runADAGUCServer(
args=['--updatedb', '--config', config], env=self.env, isCGI=False)
self.assertEqual(status, 0)
filename = "test_TestWMSTilingWMSGetMap_testdatanc-autotiling.png"
status, data, headers = AdagucTestTools().runADAGUCServer(
"dataset=adaguc.testautotiling&SERVICE=WMS&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=testdata&WIDTH=256&HEIGHT=180&CRS=EPSG%3A4326&BBOX=-90,-180,90,180&STYLES=testdata%2Fnearest&FORMAT=image/png&TRANSPARENT=FALSE&", env=self.env, showLogOnError=True, showLog=False)
AdagucTestTools().writetofile(self.testresultspath + filename, data.getvalue())
self.assertEqual(status, 0)
self.assertEqual(data.getvalue(), AdagucTestTools(
).readfromfile(self.expectedoutputsspath + filename))
| 48.934579 | 283 | 0.700344 | 550 | 5,236 | 6.609091 | 0.187273 | 0.049519 | 0.034663 | 0.049519 | 0.809078 | 0.809078 | 0.809078 | 0.800275 | 0.782944 | 0.750481 | 0 | 0.024788 | 0.167876 | 5,236 | 106 | 284 | 49.396226 | 0.809502 | 0.058442 | 0 | 0.692308 | 0 | 0.061538 | 0.330782 | 0.306578 | 0 | 0 | 0 | 0 | 0.184615 | 1 | 0.046154 | false | 0 | 0.046154 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
3b0fdcbd3658e6902bd6c516da1d5b33290253be | 187 | py | Python | Blog/admin.py | JokerOneK/MyBlog | ee88485ce563c11c227112d3a24b5155b7b38ee4 | [
"MIT"
] | null | null | null | Blog/admin.py | JokerOneK/MyBlog | ee88485ce563c11c227112d3a24b5155b7b38ee4 | [
"MIT"
] | 9 | 2020-02-12T01:23:32.000Z | 2021-09-22T17:58:01.000Z | Blog/admin.py | JokerOneK/MyBlog | ee88485ce563c11c227112d3a24b5155b7b38ee4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Post
from django.contrib.auth.admin import UserAdmin
from .models import User
admin.site.register(Post)
# Register your models here.
| 23.375 | 47 | 0.812834 | 28 | 187 | 5.428571 | 0.5 | 0.131579 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122995 | 187 | 7 | 48 | 26.714286 | 0.926829 | 0.139037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3b2cb36105a0c5c43ae3b0222f30acabff5a71c8 | 159 | py | Python | src/emotes.py | NotNotQuinn/CAST-discord-bot | 8f6d40a690aa34cac1bf8130299cb0a2c55c71ce | [
"MIT"
] | null | null | null | src/emotes.py | NotNotQuinn/CAST-discord-bot | 8f6d40a690aa34cac1bf8130299cb0a2c55c71ce | [
"MIT"
] | null | null | null | src/emotes.py | NotNotQuinn/CAST-discord-bot | 8f6d40a690aa34cac1bf8130299cb0a2c55c71ce | [
"MIT"
] | null | null | null | class Emotes:
OkayChamp = '<:OkayChamp:762179359993757707>'
DonkChat = '<a:DonkChat:763268865761083415>'
Sadge = '<:Sadge:762183957776695320>' | 39.75 | 49 | 0.691824 | 12 | 159 | 9.166667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.409091 | 0.169811 | 159 | 4 | 50 | 39.75 | 0.424242 | 0 | 0 | 0 | 0 | 0 | 0.55625 | 0.55625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
3b4eb6cba8fe8c23efdf29d5b9ad2fa742cc1374 | 301 | py | Python | src/bromine/page/current_url_test.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | 2 | 2018-09-20T12:37:01.000Z | 2021-08-30T14:44:25.000Z | src/bromine/page/current_url_test.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | null | null | null | src/bromine/page/current_url_test.py | Etiqa/bromine | cabf0931f5a06796c26fdc7fb9f7ecf147554fd5 | [
"BSD-2-Clause"
] | null | null | null | import six
class CurrentUrlTest(object):
def __init__(self, current_url, expected_url):
self.current_url = current_url
self.expected_url = expected_url
def __bool__(self):
return self.current_url == self.expected_url
if six.PY2:
__nonzero__ = __bool__
| 20.066667 | 52 | 0.681063 | 37 | 301 | 4.891892 | 0.432432 | 0.220994 | 0.232044 | 0.243094 | 0.276243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.245847 | 301 | 14 | 53 | 21.5 | 0.792952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 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 | 1 | 1 | 0 | 0 | 6 |
3b5321446e931f0ce248359327598511c536ac51 | 54 | py | Python | ACM-Solution/kamil2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 2 | 2016-04-26T15:40:40.000Z | 2018-07-18T10:16:42.000Z | ACM-Solution/kamil2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2016-04-26T15:44:15.000Z | 2016-04-29T14:44:40.000Z | ACM-Solution/kamil2.py | wasi0013/Python-CodeBase | 4a7a36395162f68f84ded9085fa34cc7c9b19233 | [
"MIT"
] | 1 | 2018-10-02T16:12:19.000Z | 2018-10-02T16:12:19.000Z | exec('print(2**sum(map(input().count,"TDLF")));'*10)
| 27 | 53 | 0.592593 | 9 | 54 | 3.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.037037 | 54 | 1 | 54 | 54 | 0.557692 | 0 | 0 | 0 | 0 | 0 | 0.773585 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
3b6b7d1bc5073942549bcad2f07466d7417ba4cc | 260,326 | py | Python | instances/passenger_demand/pas-20210422-1717-int18e/91.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/91.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/91.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 34632
passenger_arriving = (
(8, 5, 8, 12, 6, 1, 3, 3, 7, 4, 3, 1, 0, 5, 5, 4, 12, 9, 3, 4, 2, 5, 4, 0, 0, 0), # 0
(11, 10, 10, 9, 4, 2, 7, 4, 4, 1, 2, 2, 0, 10, 7, 2, 5, 7, 4, 3, 0, 6, 3, 2, 1, 0), # 1
(15, 18, 8, 10, 11, 8, 5, 10, 2, 2, 0, 0, 0, 8, 11, 6, 7, 10, 8, 5, 3, 3, 2, 3, 0, 0), # 2
(13, 15, 5, 11, 12, 4, 7, 4, 2, 4, 3, 0, 0, 11, 13, 12, 5, 10, 5, 4, 2, 3, 6, 2, 1, 0), # 3
(12, 11, 6, 10, 11, 6, 6, 8, 8, 2, 2, 1, 0, 9, 14, 12, 10, 10, 5, 6, 0, 7, 0, 3, 1, 0), # 4
(12, 13, 13, 8, 8, 6, 5, 5, 5, 2, 4, 2, 0, 9, 8, 5, 8, 7, 6, 3, 3, 3, 7, 6, 0, 0), # 5
(16, 12, 8, 12, 12, 5, 5, 5, 7, 0, 0, 0, 0, 4, 10, 9, 6, 11, 5, 7, 2, 5, 3, 1, 1, 0), # 6
(8, 14, 12, 9, 11, 4, 4, 2, 8, 2, 2, 1, 0, 11, 10, 7, 5, 6, 6, 2, 8, 5, 6, 1, 1, 0), # 7
(17, 20, 5, 18, 10, 5, 4, 11, 10, 5, 3, 1, 0, 15, 11, 11, 7, 15, 4, 2, 4, 4, 2, 3, 2, 0), # 8
(16, 17, 12, 5, 9, 3, 9, 6, 5, 1, 3, 1, 0, 14, 13, 16, 11, 8, 6, 7, 2, 5, 4, 1, 2, 0), # 9
(22, 13, 15, 16, 8, 3, 5, 4, 3, 3, 2, 0, 0, 20, 20, 10, 9, 16, 13, 6, 4, 5, 1, 2, 2, 0), # 10
(16, 18, 16, 15, 13, 9, 7, 6, 5, 3, 2, 1, 0, 8, 19, 14, 10, 14, 9, 6, 4, 8, 4, 3, 0, 0), # 11
(15, 12, 9, 14, 14, 8, 9, 9, 8, 3, 4, 1, 0, 17, 17, 13, 4, 8, 5, 11, 3, 4, 2, 2, 1, 0), # 12
(25, 21, 13, 19, 9, 7, 8, 8, 7, 3, 2, 3, 0, 9, 14, 13, 13, 16, 4, 4, 5, 4, 2, 1, 1, 0), # 13
(13, 12, 13, 10, 11, 5, 5, 7, 5, 2, 4, 0, 0, 14, 12, 11, 11, 17, 11, 4, 4, 2, 7, 5, 2, 0), # 14
(15, 20, 14, 17, 10, 12, 2, 7, 4, 1, 2, 2, 0, 15, 12, 10, 7, 19, 9, 11, 4, 7, 3, 1, 1, 0), # 15
(20, 18, 12, 15, 16, 7, 4, 8, 7, 4, 2, 2, 0, 16, 20, 10, 7, 8, 6, 4, 5, 6, 4, 2, 3, 0), # 16
(15, 13, 13, 12, 18, 11, 6, 9, 7, 3, 1, 3, 0, 10, 19, 7, 9, 15, 12, 6, 2, 8, 2, 2, 2, 0), # 17
(24, 19, 16, 13, 7, 7, 8, 8, 7, 3, 8, 2, 0, 15, 14, 12, 9, 17, 6, 5, 1, 11, 7, 2, 2, 0), # 18
(26, 13, 11, 13, 7, 4, 10, 10, 10, 4, 2, 3, 0, 18, 13, 9, 13, 15, 9, 7, 3, 5, 4, 0, 2, 0), # 19
(16, 14, 18, 15, 15, 5, 7, 3, 10, 2, 2, 2, 0, 17, 17, 13, 10, 15, 8, 5, 6, 8, 5, 2, 0, 0), # 20
(15, 22, 21, 26, 11, 6, 4, 3, 5, 1, 1, 1, 0, 17, 18, 13, 12, 19, 8, 6, 6, 13, 6, 1, 0, 0), # 21
(17, 16, 10, 15, 12, 10, 13, 4, 6, 5, 4, 2, 0, 17, 16, 12, 11, 18, 12, 5, 3, 7, 5, 4, 2, 0), # 22
(23, 35, 17, 8, 13, 4, 10, 6, 7, 4, 3, 2, 0, 21, 18, 9, 15, 11, 7, 11, 3, 6, 9, 4, 2, 0), # 23
(26, 17, 6, 13, 18, 9, 4, 6, 6, 2, 1, 2, 0, 24, 20, 11, 7, 11, 7, 7, 9, 8, 6, 1, 3, 0), # 24
(19, 17, 19, 20, 15, 7, 3, 6, 1, 4, 4, 1, 0, 19, 11, 11, 13, 15, 6, 11, 8, 5, 7, 2, 1, 0), # 25
(15, 24, 11, 11, 4, 10, 6, 8, 9, 4, 5, 2, 0, 16, 18, 10, 10, 23, 10, 11, 5, 9, 6, 7, 0, 0), # 26
(17, 21, 17, 10, 16, 7, 10, 3, 7, 2, 4, 0, 0, 17, 22, 7, 13, 16, 10, 6, 5, 5, 2, 2, 1, 0), # 27
(19, 19, 17, 19, 10, 6, 4, 9, 7, 4, 3, 1, 0, 15, 15, 11, 9, 17, 7, 10, 3, 11, 3, 7, 0, 0), # 28
(22, 19, 13, 15, 16, 6, 5, 8, 5, 2, 3, 1, 0, 18, 20, 8, 7, 15, 14, 9, 2, 8, 5, 2, 2, 0), # 29
(20, 18, 12, 18, 17, 6, 5, 2, 8, 5, 1, 1, 0, 18, 15, 4, 16, 9, 10, 13, 5, 12, 7, 3, 0, 0), # 30
(17, 19, 16, 19, 8, 4, 6, 4, 7, 3, 2, 1, 0, 22, 13, 11, 8, 11, 11, 3, 3, 5, 5, 2, 2, 0), # 31
(17, 23, 11, 16, 7, 6, 7, 6, 2, 5, 4, 2, 0, 19, 16, 14, 12, 19, 15, 6, 5, 6, 3, 2, 1, 0), # 32
(20, 20, 18, 12, 12, 8, 9, 5, 8, 7, 2, 1, 0, 15, 19, 10, 12, 18, 11, 12, 6, 12, 3, 5, 4, 0), # 33
(19, 17, 15, 19, 6, 11, 9, 5, 7, 7, 3, 1, 0, 22, 14, 11, 13, 11, 10, 8, 1, 8, 6, 6, 1, 0), # 34
(16, 19, 14, 17, 13, 9, 7, 5, 9, 5, 3, 2, 0, 15, 17, 5, 13, 14, 8, 8, 3, 13, 11, 2, 3, 0), # 35
(17, 19, 19, 22, 8, 7, 7, 7, 7, 6, 0, 1, 0, 16, 8, 13, 7, 13, 12, 3, 2, 5, 3, 2, 0, 0), # 36
(21, 15, 6, 17, 16, 10, 4, 7, 6, 2, 2, 1, 0, 17, 17, 15, 11, 6, 6, 3, 4, 9, 4, 5, 0, 0), # 37
(19, 18, 19, 8, 12, 4, 7, 6, 11, 2, 4, 0, 0, 23, 18, 10, 14, 13, 6, 6, 4, 7, 6, 4, 1, 0), # 38
(21, 15, 13, 23, 14, 15, 5, 5, 10, 2, 3, 3, 0, 19, 17, 10, 10, 13, 11, 6, 1, 9, 3, 4, 1, 0), # 39
(26, 18, 21, 18, 7, 7, 16, 4, 8, 4, 1, 1, 0, 27, 18, 12, 9, 27, 6, 8, 4, 11, 4, 4, 4, 0), # 40
(21, 17, 12, 28, 11, 6, 6, 2, 9, 2, 1, 2, 0, 20, 21, 14, 11, 13, 11, 7, 2, 8, 6, 1, 4, 0), # 41
(18, 13, 21, 20, 19, 4, 2, 4, 2, 3, 3, 1, 0, 21, 16, 15, 8, 18, 9, 9, 6, 5, 4, 3, 3, 0), # 42
(17, 7, 15, 29, 16, 8, 8, 4, 6, 0, 5, 2, 0, 23, 12, 7, 6, 13, 12, 12, 5, 1, 4, 3, 1, 0), # 43
(16, 16, 14, 21, 10, 7, 14, 4, 7, 4, 3, 0, 0, 24, 13, 7, 9, 6, 14, 5, 5, 9, 4, 2, 0, 0), # 44
(19, 16, 15, 26, 15, 11, 5, 4, 7, 7, 2, 0, 0, 17, 22, 16, 9, 14, 5, 9, 2, 3, 8, 1, 1, 0), # 45
(26, 19, 17, 13, 15, 7, 14, 6, 7, 4, 4, 1, 0, 21, 16, 13, 10, 11, 13, 7, 10, 12, 4, 3, 4, 0), # 46
(17, 13, 21, 16, 15, 4, 7, 9, 3, 5, 2, 1, 0, 25, 20, 15, 15, 10, 13, 10, 4, 8, 3, 4, 4, 0), # 47
(14, 18, 20, 24, 16, 6, 12, 6, 8, 1, 5, 1, 0, 17, 19, 6, 10, 10, 5, 7, 6, 4, 6, 6, 1, 0), # 48
(22, 14, 16, 14, 10, 7, 3, 10, 6, 2, 2, 0, 0, 25, 12, 11, 7, 14, 9, 10, 6, 6, 3, 2, 3, 0), # 49
(18, 13, 8, 17, 22, 5, 7, 7, 11, 1, 3, 2, 0, 23, 17, 6, 7, 13, 12, 7, 3, 5, 5, 3, 5, 0), # 50
(20, 17, 14, 14, 13, 5, 8, 6, 7, 2, 0, 1, 0, 17, 14, 11, 11, 9, 4, 10, 8, 9, 3, 4, 0, 0), # 51
(15, 17, 15, 17, 18, 11, 4, 7, 4, 2, 5, 4, 0, 17, 12, 12, 9, 12, 4, 4, 3, 6, 7, 2, 1, 0), # 52
(20, 21, 22, 14, 12, 12, 8, 5, 12, 4, 3, 3, 0, 16, 19, 14, 8, 13, 5, 3, 8, 11, 2, 10, 3, 0), # 53
(19, 20, 7, 10, 11, 7, 5, 4, 8, 6, 2, 1, 0, 17, 20, 13, 9, 11, 6, 4, 4, 12, 4, 3, 1, 0), # 54
(17, 18, 16, 20, 18, 10, 5, 8, 7, 4, 3, 2, 0, 15, 16, 12, 15, 19, 8, 5, 2, 4, 3, 3, 1, 0), # 55
(17, 15, 14, 15, 16, 11, 3, 6, 6, 2, 3, 2, 0, 14, 20, 10, 10, 15, 6, 9, 3, 7, 3, 2, 1, 0), # 56
(15, 21, 13, 18, 18, 5, 4, 8, 4, 5, 0, 2, 0, 20, 19, 15, 3, 23, 10, 5, 6, 5, 6, 2, 2, 0), # 57
(19, 17, 13, 19, 8, 9, 3, 7, 3, 1, 5, 1, 0, 17, 15, 9, 7, 13, 5, 7, 9, 5, 3, 6, 2, 0), # 58
(21, 16, 16, 15, 17, 6, 6, 12, 5, 3, 4, 1, 0, 23, 19, 9, 10, 13, 4, 12, 5, 5, 6, 1, 2, 0), # 59
(20, 19, 9, 17, 13, 11, 7, 6, 7, 1, 1, 2, 0, 10, 16, 10, 16, 11, 7, 4, 5, 10, 10, 4, 2, 0), # 60
(19, 20, 18, 16, 9, 6, 8, 8, 8, 5, 3, 2, 0, 14, 14, 11, 7, 15, 10, 6, 2, 10, 7, 3, 2, 0), # 61
(16, 11, 16, 17, 12, 5, 8, 12, 7, 3, 7, 2, 0, 20, 16, 12, 10, 13, 9, 4, 2, 6, 8, 2, 0, 0), # 62
(14, 16, 19, 22, 14, 3, 6, 5, 6, 2, 1, 2, 0, 20, 12, 15, 12, 7, 7, 11, 2, 7, 5, 4, 2, 0), # 63
(16, 14, 8, 18, 16, 5, 7, 5, 7, 2, 4, 1, 0, 13, 16, 11, 8, 14, 5, 6, 7, 5, 10, 3, 1, 0), # 64
(25, 20, 19, 14, 17, 5, 3, 3, 5, 2, 3, 2, 0, 21, 10, 12, 10, 16, 11, 5, 1, 6, 8, 1, 1, 0), # 65
(21, 19, 8, 21, 9, 11, 11, 8, 5, 3, 3, 1, 0, 15, 16, 16, 9, 14, 11, 3, 7, 2, 1, 4, 1, 0), # 66
(21, 18, 13, 15, 18, 6, 11, 4, 5, 2, 3, 1, 0, 20, 15, 7, 6, 18, 9, 7, 5, 6, 6, 2, 1, 0), # 67
(19, 19, 14, 13, 14, 8, 4, 5, 6, 4, 0, 3, 0, 22, 16, 10, 6, 16, 5, 6, 2, 8, 8, 0, 0, 0), # 68
(16, 9, 18, 15, 10, 5, 9, 8, 3, 4, 4, 0, 0, 12, 11, 10, 8, 13, 7, 5, 4, 4, 7, 3, 3, 0), # 69
(20, 23, 24, 21, 15, 5, 5, 5, 8, 4, 3, 1, 0, 10, 11, 7, 13, 12, 6, 7, 5, 11, 10, 3, 1, 0), # 70
(15, 15, 11, 19, 7, 9, 10, 2, 4, 6, 3, 2, 0, 16, 17, 12, 10, 14, 9, 11, 7, 4, 6, 2, 0, 0), # 71
(24, 16, 7, 17, 18, 8, 5, 5, 11, 4, 4, 1, 0, 20, 20, 15, 8, 16, 6, 11, 7, 5, 6, 4, 2, 0), # 72
(18, 17, 9, 15, 14, 8, 4, 2, 5, 4, 0, 1, 0, 22, 12, 10, 8, 19, 8, 7, 6, 12, 6, 3, 2, 0), # 73
(25, 15, 13, 13, 14, 9, 6, 6, 3, 4, 2, 2, 0, 20, 22, 16, 12, 19, 8, 8, 6, 8, 2, 5, 1, 0), # 74
(22, 17, 13, 19, 10, 6, 4, 8, 7, 3, 2, 4, 0, 21, 13, 18, 10, 15, 13, 6, 7, 9, 11, 2, 1, 0), # 75
(21, 18, 16, 14, 17, 6, 7, 2, 6, 6, 1, 0, 0, 17, 17, 7, 3, 12, 9, 6, 5, 10, 6, 4, 1, 0), # 76
(12, 21, 16, 17, 15, 4, 3, 4, 11, 1, 5, 2, 0, 21, 14, 15, 5, 15, 6, 3, 4, 3, 4, 2, 2, 0), # 77
(19, 14, 24, 18, 17, 12, 3, 9, 13, 4, 5, 1, 0, 17, 12, 14, 7, 6, 7, 7, 4, 6, 6, 2, 1, 0), # 78
(16, 18, 9, 12, 7, 11, 5, 5, 6, 4, 1, 3, 0, 22, 13, 16, 8, 12, 7, 5, 6, 4, 6, 7, 1, 0), # 79
(22, 8, 9, 21, 21, 2, 5, 4, 1, 4, 2, 1, 0, 13, 19, 15, 9, 13, 9, 5, 6, 9, 5, 4, 0, 0), # 80
(22, 14, 15, 15, 7, 5, 6, 9, 10, 3, 0, 3, 0, 20, 15, 14, 13, 11, 11, 3, 4, 3, 4, 1, 1, 0), # 81
(15, 14, 16, 15, 20, 6, 4, 5, 10, 0, 3, 0, 0, 28, 11, 8, 8, 17, 5, 5, 4, 11, 6, 4, 1, 0), # 82
(19, 14, 12, 14, 13, 8, 8, 12, 7, 0, 2, 2, 0, 14, 11, 14, 8, 16, 4, 1, 4, 9, 7, 1, 1, 0), # 83
(20, 17, 17, 14, 17, 6, 2, 4, 3, 3, 1, 2, 0, 24, 16, 7, 13, 15, 5, 4, 5, 3, 2, 1, 1, 0), # 84
(21, 17, 12, 17, 11, 6, 6, 5, 7, 4, 1, 1, 0, 18, 22, 13, 8, 20, 9, 4, 8, 9, 5, 0, 2, 0), # 85
(24, 12, 11, 12, 15, 3, 7, 6, 12, 7, 0, 0, 0, 16, 16, 9, 9, 22, 0, 12, 3, 5, 7, 3, 1, 0), # 86
(23, 17, 12, 21, 11, 6, 10, 7, 7, 2, 4, 1, 0, 12, 15, 15, 9, 12, 9, 6, 4, 6, 7, 4, 0, 0), # 87
(22, 12, 8, 15, 12, 9, 7, 5, 8, 1, 2, 4, 0, 20, 19, 13, 10, 13, 11, 6, 4, 6, 6, 4, 1, 0), # 88
(18, 9, 15, 22, 13, 4, 8, 5, 9, 3, 2, 0, 0, 20, 13, 16, 6, 9, 12, 8, 5, 4, 6, 0, 0, 0), # 89
(13, 13, 18, 9, 14, 7, 6, 3, 6, 3, 3, 2, 0, 13, 13, 16, 9, 10, 8, 4, 5, 6, 5, 1, 2, 0), # 90
(22, 7, 16, 11, 19, 4, 6, 5, 8, 6, 1, 2, 0, 16, 16, 13, 9, 9, 8, 3, 6, 5, 5, 2, 1, 0), # 91
(24, 20, 13, 19, 13, 5, 5, 7, 3, 3, 1, 0, 0, 18, 11, 11, 9, 12, 11, 4, 3, 7, 6, 3, 1, 0), # 92
(25, 19, 14, 17, 13, 10, 11, 7, 6, 2, 2, 0, 0, 23, 12, 8, 8, 10, 5, 3, 4, 7, 2, 3, 1, 0), # 93
(14, 12, 14, 18, 13, 12, 5, 4, 5, 4, 2, 2, 0, 21, 11, 10, 11, 16, 11, 4, 4, 12, 8, 9, 0, 0), # 94
(21, 9, 10, 13, 8, 7, 7, 5, 11, 5, 2, 0, 0, 19, 15, 10, 7, 10, 6, 12, 5, 10, 5, 0, 0, 0), # 95
(12, 13, 17, 14, 12, 10, 6, 6, 4, 3, 3, 1, 0, 18, 25, 8, 13, 12, 9, 5, 5, 3, 3, 5, 1, 0), # 96
(15, 16, 13, 18, 15, 4, 7, 1, 11, 0, 2, 1, 0, 16, 20, 9, 1, 21, 7, 12, 0, 7, 7, 1, 3, 0), # 97
(14, 10, 8, 13, 11, 4, 7, 5, 12, 3, 3, 1, 0, 21, 16, 13, 5, 13, 6, 6, 6, 7, 1, 2, 1, 0), # 98
(15, 9, 15, 11, 11, 7, 3, 4, 12, 3, 4, 0, 0, 19, 18, 17, 10, 8, 3, 4, 5, 10, 3, 6, 1, 0), # 99
(12, 13, 13, 8, 11, 6, 6, 3, 7, 0, 2, 2, 0, 12, 14, 16, 12, 14, 10, 8, 12, 3, 3, 5, 1, 0), # 100
(18, 17, 14, 16, 13, 7, 5, 4, 7, 3, 1, 1, 0, 18, 9, 11, 4, 17, 5, 4, 4, 5, 6, 1, 0, 0), # 101
(13, 16, 16, 19, 16, 3, 5, 6, 10, 1, 4, 1, 0, 23, 12, 5, 6, 13, 3, 6, 3, 9, 6, 3, 0, 0), # 102
(16, 12, 11, 17, 17, 7, 5, 3, 13, 2, 1, 1, 0, 19, 14, 12, 5, 14, 4, 7, 6, 6, 3, 1, 2, 0), # 103
(16, 11, 12, 14, 18, 4, 4, 7, 4, 3, 2, 5, 0, 15, 17, 7, 7, 9, 5, 6, 3, 6, 7, 1, 0, 0), # 104
(11, 8, 18, 17, 11, 10, 7, 4, 6, 5, 4, 0, 0, 12, 10, 12, 11, 12, 4, 9, 1, 7, 5, 1, 1, 0), # 105
(13, 21, 12, 15, 20, 4, 6, 2, 4, 4, 4, 0, 0, 11, 12, 15, 8, 21, 3, 3, 1, 3, 9, 6, 1, 0), # 106
(17, 9, 17, 24, 15, 8, 4, 5, 7, 1, 3, 2, 0, 17, 9, 12, 15, 13, 9, 1, 2, 9, 5, 4, 0, 0), # 107
(23, 9, 10, 14, 15, 8, 8, 7, 4, 4, 3, 2, 0, 11, 15, 15, 13, 13, 3, 8, 4, 4, 6, 2, 0, 0), # 108
(21, 18, 17, 13, 7, 4, 10, 9, 8, 3, 4, 0, 0, 17, 13, 13, 5, 16, 5, 4, 4, 11, 0, 4, 3, 0), # 109
(21, 12, 15, 18, 17, 6, 4, 6, 6, 1, 2, 2, 0, 18, 16, 3, 4, 8, 11, 8, 5, 6, 5, 2, 3, 0), # 110
(18, 12, 14, 17, 13, 5, 5, 9, 9, 2, 1, 2, 0, 20, 16, 11, 9, 9, 9, 6, 6, 3, 7, 7, 2, 0), # 111
(14, 18, 12, 16, 14, 5, 5, 8, 10, 0, 1, 1, 0, 18, 11, 16, 10, 18, 3, 7, 5, 4, 10, 1, 1, 0), # 112
(16, 15, 15, 15, 15, 6, 7, 6, 2, 3, 1, 1, 0, 19, 8, 6, 10, 17, 6, 6, 5, 9, 5, 9, 1, 0), # 113
(20, 12, 16, 16, 14, 8, 6, 4, 6, 3, 0, 0, 0, 10, 23, 8, 8, 8, 9, 4, 4, 9, 3, 4, 1, 0), # 114
(14, 18, 13, 11, 14, 7, 3, 5, 8, 3, 3, 0, 0, 17, 12, 12, 10, 9, 8, 2, 3, 8, 4, 2, 1, 0), # 115
(18, 12, 17, 15, 12, 6, 6, 4, 4, 1, 3, 0, 0, 14, 21, 14, 12, 8, 9, 5, 7, 7, 6, 1, 0, 0), # 116
(22, 18, 12, 12, 12, 10, 6, 4, 12, 1, 3, 0, 0, 16, 10, 14, 9, 10, 12, 5, 4, 5, 3, 5, 2, 0), # 117
(21, 17, 16, 15, 14, 7, 9, 7, 6, 5, 3, 3, 0, 18, 14, 13, 3, 13, 8, 9, 4, 4, 8, 3, 1, 0), # 118
(12, 15, 13, 5, 14, 3, 5, 3, 6, 5, 1, 4, 0, 12, 13, 12, 8, 9, 4, 2, 4, 7, 4, 4, 2, 0), # 119
(11, 11, 10, 13, 7, 7, 5, 3, 10, 5, 2, 0, 0, 17, 11, 6, 5, 13, 6, 4, 3, 7, 7, 1, 0, 0), # 120
(11, 10, 10, 8, 9, 9, 4, 5, 8, 4, 1, 0, 0, 13, 12, 7, 7, 14, 3, 4, 3, 8, 5, 1, 1, 0), # 121
(15, 8, 16, 11, 11, 6, 3, 3, 10, 8, 5, 2, 0, 23, 13, 16, 7, 15, 5, 8, 6, 9, 6, 6, 1, 0), # 122
(17, 22, 9, 10, 12, 6, 3, 5, 7, 3, 3, 2, 0, 13, 17, 10, 13, 15, 4, 7, 7, 10, 3, 6, 1, 0), # 123
(20, 7, 15, 18, 11, 4, 4, 4, 3, 2, 1, 1, 0, 14, 12, 9, 11, 13, 7, 6, 0, 5, 5, 4, 0, 0), # 124
(17, 18, 8, 16, 12, 6, 9, 8, 4, 2, 1, 0, 0, 8, 25, 12, 9, 13, 7, 9, 8, 5, 9, 4, 2, 0), # 125
(17, 13, 15, 10, 9, 7, 5, 8, 9, 4, 1, 1, 0, 14, 17, 7, 9, 11, 4, 13, 5, 6, 3, 1, 1, 0), # 126
(15, 12, 10, 12, 15, 6, 7, 2, 7, 4, 1, 3, 0, 19, 14, 10, 4, 18, 7, 5, 7, 5, 5, 0, 0, 0), # 127
(16, 4, 14, 10, 21, 6, 5, 3, 2, 2, 2, 0, 0, 20, 16, 12, 15, 9, 5, 5, 3, 10, 7, 3, 2, 0), # 128
(19, 10, 10, 12, 10, 6, 5, 2, 2, 2, 2, 1, 0, 17, 14, 10, 10, 14, 10, 8, 5, 6, 2, 2, 2, 0), # 129
(14, 7, 14, 16, 14, 6, 6, 2, 3, 3, 0, 0, 0, 13, 9, 14, 4, 12, 4, 5, 5, 6, 6, 2, 0, 0), # 130
(17, 12, 16, 12, 15, 8, 8, 6, 5, 0, 3, 1, 0, 15, 11, 12, 4, 15, 9, 2, 7, 7, 3, 3, 1, 0), # 131
(16, 8, 13, 22, 12, 7, 5, 6, 9, 6, 2, 0, 0, 16, 21, 8, 4, 11, 6, 5, 8, 4, 2, 3, 1, 0), # 132
(15, 8, 7, 14, 12, 6, 2, 4, 5, 2, 2, 3, 0, 18, 14, 13, 7, 22, 10, 5, 4, 6, 5, 2, 0, 0), # 133
(12, 15, 16, 10, 12, 9, 5, 5, 4, 1, 1, 2, 0, 20, 6, 7, 12, 16, 4, 5, 5, 5, 4, 1, 1, 0), # 134
(12, 10, 16, 14, 10, 6, 3, 1, 9, 0, 4, 0, 0, 16, 12, 9, 8, 15, 7, 3, 8, 7, 4, 1, 1, 0), # 135
(15, 10, 15, 10, 13, 12, 6, 1, 7, 5, 4, 2, 0, 17, 7, 14, 8, 8, 5, 5, 6, 5, 3, 1, 1, 0), # 136
(14, 16, 20, 9, 13, 6, 11, 5, 5, 1, 1, 2, 0, 17, 20, 13, 8, 11, 8, 3, 3, 5, 4, 1, 0, 0), # 137
(13, 10, 18, 11, 15, 4, 2, 2, 1, 1, 3, 1, 0, 18, 10, 5, 10, 12, 3, 8, 1, 7, 7, 3, 0, 0), # 138
(18, 11, 10, 16, 18, 9, 5, 1, 8, 1, 2, 0, 0, 20, 12, 14, 7, 12, 5, 8, 2, 3, 6, 5, 3, 0), # 139
(15, 11, 7, 17, 8, 9, 7, 4, 10, 0, 1, 1, 0, 13, 9, 7, 4, 12, 5, 6, 11, 8, 3, 1, 2, 0), # 140
(15, 12, 9, 14, 14, 5, 6, 3, 3, 3, 4, 1, 0, 14, 13, 14, 5, 16, 7, 10, 4, 6, 3, 1, 0, 0), # 141
(21, 8, 19, 15, 18, 9, 4, 4, 6, 0, 3, 2, 0, 14, 13, 11, 11, 19, 5, 4, 5, 4, 3, 4, 1, 0), # 142
(14, 12, 17, 17, 13, 5, 5, 4, 6, 2, 2, 0, 0, 17, 14, 10, 6, 13, 3, 7, 4, 5, 9, 1, 1, 0), # 143
(16, 9, 18, 10, 12, 4, 5, 2, 6, 0, 2, 0, 0, 21, 14, 10, 14, 13, 13, 3, 4, 5, 8, 2, 3, 0), # 144
(17, 16, 14, 15, 13, 7, 9, 4, 5, 4, 2, 1, 0, 21, 13, 5, 3, 15, 5, 3, 4, 5, 5, 6, 0, 0), # 145
(14, 14, 11, 17, 10, 7, 5, 5, 4, 2, 2, 1, 0, 12, 17, 13, 12, 11, 6, 4, 0, 7, 5, 1, 1, 0), # 146
(18, 8, 9, 6, 11, 3, 2, 9, 4, 5, 4, 1, 0, 13, 14, 8, 9, 11, 4, 7, 3, 6, 4, 4, 2, 0), # 147
(12, 13, 13, 17, 18, 4, 6, 5, 7, 2, 6, 1, 0, 10, 13, 5, 7, 14, 4, 3, 4, 3, 4, 4, 1, 0), # 148
(14, 10, 12, 11, 13, 6, 3, 1, 6, 3, 4, 1, 0, 17, 7, 5, 7, 17, 3, 5, 3, 8, 5, 2, 0, 0), # 149
(16, 12, 13, 13, 15, 9, 1, 5, 10, 1, 4, 2, 0, 18, 11, 7, 4, 16, 6, 5, 3, 8, 2, 0, 0, 0), # 150
(7, 11, 13, 10, 9, 10, 6, 6, 4, 1, 0, 1, 0, 15, 8, 8, 10, 11, 11, 8, 3, 9, 3, 2, 0, 0), # 151
(13, 6, 15, 17, 6, 5, 4, 3, 9, 2, 1, 1, 0, 11, 17, 4, 10, 10, 4, 4, 4, 9, 3, 2, 1, 0), # 152
(15, 5, 6, 13, 14, 5, 1, 5, 5, 3, 3, 3, 0, 15, 14, 7, 6, 9, 8, 3, 3, 2, 7, 2, 1, 0), # 153
(14, 18, 18, 14, 13, 3, 7, 3, 9, 1, 1, 0, 0, 16, 10, 15, 8, 9, 3, 4, 3, 2, 4, 2, 0, 0), # 154
(11, 10, 14, 20, 13, 10, 9, 1, 14, 1, 0, 0, 0, 16, 10, 8, 9, 13, 3, 4, 4, 6, 6, 1, 1, 0), # 155
(18, 12, 8, 9, 14, 3, 2, 6, 6, 1, 0, 1, 0, 13, 10, 9, 9, 18, 7, 4, 5, 4, 1, 1, 3, 0), # 156
(13, 6, 9, 19, 10, 0, 6, 5, 10, 6, 2, 1, 0, 27, 7, 9, 9, 9, 9, 4, 3, 7, 6, 1, 0, 0), # 157
(12, 19, 17, 2, 10, 6, 9, 2, 5, 4, 2, 1, 0, 11, 10, 6, 7, 22, 4, 9, 1, 5, 1, 1, 0, 0), # 158
(13, 13, 7, 9, 10, 4, 8, 0, 7, 4, 1, 0, 0, 16, 10, 10, 3, 16, 4, 4, 7, 5, 5, 2, 2, 0), # 159
(17, 7, 5, 10, 15, 9, 7, 6, 2, 3, 1, 1, 0, 11, 7, 10, 8, 14, 7, 2, 5, 4, 4, 2, 0, 0), # 160
(10, 16, 11, 19, 11, 2, 0, 4, 7, 2, 1, 1, 0, 15, 6, 7, 3, 14, 5, 5, 2, 2, 2, 2, 1, 0), # 161
(14, 7, 12, 18, 8, 6, 1, 1, 6, 2, 2, 0, 0, 7, 13, 10, 8, 12, 7, 9, 1, 2, 3, 5, 1, 0), # 162
(13, 8, 15, 3, 6, 3, 3, 3, 6, 2, 1, 0, 0, 13, 13, 13, 5, 12, 6, 1, 3, 8, 3, 2, 4, 0), # 163
(16, 5, 9, 9, 9, 6, 1, 4, 5, 3, 4, 0, 0, 22, 19, 6, 2, 9, 4, 8, 3, 8, 2, 2, 0, 0), # 164
(13, 11, 11, 11, 10, 4, 3, 5, 5, 1, 0, 0, 0, 15, 11, 5, 6, 14, 7, 3, 4, 6, 1, 2, 1, 0), # 165
(8, 13, 8, 12, 10, 6, 5, 4, 6, 1, 2, 0, 0, 16, 15, 4, 5, 10, 4, 2, 2, 1, 4, 5, 0, 0), # 166
(13, 3, 10, 16, 10, 6, 3, 6, 5, 1, 3, 0, 0, 14, 11, 7, 5, 13, 3, 2, 3, 8, 4, 1, 1, 0), # 167
(8, 6, 10, 8, 11, 2, 1, 2, 4, 1, 2, 2, 0, 10, 8, 8, 1, 9, 4, 7, 4, 4, 0, 3, 1, 0), # 168
(11, 11, 10, 5, 8, 5, 2, 5, 5, 0, 2, 3, 0, 9, 9, 4, 5, 13, 10, 1, 3, 4, 1, 3, 0, 0), # 169
(16, 5, 5, 10, 9, 1, 2, 5, 8, 3, 2, 0, 0, 12, 7, 1, 3, 11, 15, 6, 2, 3, 2, 1, 0, 0), # 170
(12, 8, 15, 8, 9, 4, 4, 2, 5, 1, 3, 0, 0, 9, 6, 6, 8, 8, 5, 4, 2, 2, 2, 2, 1, 0), # 171
(12, 6, 14, 7, 7, 3, 2, 4, 5, 1, 0, 0, 0, 13, 7, 6, 6, 11, 7, 1, 2, 4, 1, 2, 0, 0), # 172
(13, 4, 7, 4, 12, 2, 5, 4, 2, 3, 0, 0, 0, 10, 5, 3, 2, 7, 3, 2, 2, 5, 6, 1, 0, 0), # 173
(5, 4, 3, 7, 8, 5, 1, 6, 3, 1, 1, 0, 0, 12, 4, 6, 2, 3, 3, 2, 4, 3, 2, 0, 0, 0), # 174
(5, 8, 10, 6, 7, 6, 1, 1, 3, 1, 2, 1, 0, 4, 7, 6, 2, 10, 8, 0, 1, 2, 2, 2, 1, 0), # 175
(8, 1, 5, 4, 11, 7, 3, 3, 2, 0, 1, 1, 0, 12, 6, 4, 2, 9, 3, 2, 2, 7, 0, 0, 0, 0), # 176
(10, 8, 8, 8, 3, 2, 2, 1, 4, 3, 0, 0, 0, 7, 6, 6, 1, 5, 4, 1, 4, 0, 2, 4, 0, 0), # 177
(7, 6, 13, 4, 5, 3, 3, 0, 4, 2, 0, 2, 0, 13, 0, 0, 1, 4, 4, 0, 1, 3, 6, 1, 1, 0), # 178
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 179
)
station_arriving_intensity = (
(9.037558041069182, 9.9455194074477, 9.380309813302512, 11.18640199295418, 9.998434093697302, 5.64957887766721, 7.462864107673047, 8.375717111362961, 10.962178311902413, 7.124427027940266, 7.569477294994085, 8.816247140951113, 9.150984382641052), # 0
(9.637788873635953, 10.602109249460566, 9.999623864394273, 11.925259655897909, 10.660482607453627, 6.0227704512766005, 7.955044094274649, 8.927124701230275, 11.686041587399236, 7.59416524609887, 8.069573044721038, 9.398189989465838, 9.755624965391739), # 1
(10.236101416163518, 11.256093307603763, 10.616476113985344, 12.66117786839663, 11.320133352749538, 6.3944732061224006, 8.445273314329269, 9.476325446227955, 12.407016252379588, 8.062044795036982, 8.567681667797364, 9.9778187736955, 10.357856690777442), # 2
(10.830164027663812, 11.904876903485604, 11.228419564775738, 13.391237533557733, 11.974791016803424, 6.763213120653203, 8.93160655496632, 10.021142083490112, 13.122243289657968, 8.526208857167125, 9.061827141289289, 10.55283423287483, 10.955291051257605), # 3
(11.417645067148767, 12.545865358714394, 11.833007219465467, 14.112519554488625, 12.621860286833686, 7.127516173317602, 9.412098603315226, 10.559397350150848, 13.828863682048873, 8.984800614901822, 9.550033442263036, 11.120937106238575, 11.54553953929167), # 4
(11.996212893630318, 13.176463994898459, 12.427792080754532, 14.822104834296708, 13.258745850058704, 7.485908342564186, 9.884804246505404, 11.088913983344266, 14.524018412366805, 9.435963250653593, 10.030324547784838, 11.679828133021466, 12.126213647339089), # 5
(12.5635358661204, 13.794078133646101, 13.010327151342958, 15.517074276089375, 13.882852393696878, 7.836915606841555, 10.347778271666273, 11.60751472020448, 15.204848463426268, 9.877839946834966, 10.500724434920908, 12.227208052458254, 12.694924867859292), # 6
(13.117282343630944, 14.396113096565637, 13.578165433930742, 16.194508782974033, 14.491584604966597, 8.179063944598298, 10.799075465927253, 12.113022297865593, 15.868494818041759, 10.308573885858456, 10.959257080737483, 12.760777603783673, 13.249284693311735), # 7
(13.655120685173882, 14.979974205265378, 14.128859931217914, 16.85148925805807, 15.082347171086255, 8.510879334283002, 11.236750616417757, 12.603259453461705, 16.512098459027772, 10.726308250136594, 11.403946462300778, 13.278237526232465, 13.786904616155851), # 8
(14.174719249761154, 15.543066781353641, 14.659963645904467, 17.485096604448906, 15.652544779274237, 8.830887754344271, 11.658858510267216, 13.076048924126933, 17.132800369198815, 11.129186222081895, 11.83281655667702, 13.777288559039365, 14.305396128851092), # 9
(14.673746396404677, 16.082796146438728, 15.169029580690424, 18.092411725253918, 16.199582116748942, 9.137615183230693, 12.063453934605038, 13.52921344699538, 17.727741531369386, 11.515350984106886, 12.243891340932432, 14.255631441439114, 14.802370723856898), # 10
(15.149870484116411, 16.596567622128973, 15.653610738275788, 18.670515523580516, 16.72086387072876, 9.429587599390864, 12.44859167656065, 13.960575759201147, 18.294062928353988, 11.882945718624095, 12.635194792133248, 14.710966912666459, 15.2754398936327), # 11
(15.600759871908263, 17.081786530032655, 16.111260121360573, 19.216488902536103, 17.21379472843208, 9.705330981273365, 12.812326523263462, 14.367958597878339, 18.82890554296712, 12.23011360804603, 13.004750887345683, 15.140995711956123, 15.722215130637963), # 12
(16.02408291879218, 17.535858191758116, 16.539530732644792, 19.727412765228078, 17.675779377077284, 9.963371307326803, 13.152713261842901, 14.749184700161067, 19.329410358023278, 12.554997834785228, 13.350583603635965, 15.543418578542857, 16.140307927332124), # 13
(16.41750798378009, 17.95618792891366, 16.935975574828465, 20.20036801476383, 18.10422250388278, 10.202234555999762, 13.46780667942839, 15.102076803183444, 19.79271835633696, 12.855741581254202, 13.670716918070312, 15.915936251661408, 16.527329776174614), # 14
(16.77870342588394, 18.34018106310759, 17.298147650611575, 20.632435554250776, 18.496528796066954, 10.420446705740842, 13.755661563149326, 15.424457644079562, 20.215970520722674, 13.130488029865482, 13.963174807714955, 16.256249470546507, 16.880892169624886), # 15
(17.10533760411564, 18.685242915948237, 17.623599962694165, 21.02069628679629, 18.8501029408482, 10.616533734998628, 14.014332700135158, 15.71414995998353, 20.596307833994917, 13.377380363031593, 14.225981249636122, 16.56205897443289, 17.198606600142384), # 16
(17.395078877487137, 18.988778809043904, 17.909885513776235, 21.362231115507804, 19.162349625444907, 10.789021622221714, 14.24187487751528, 15.968976488029472, 20.930871278968173, 13.594561763165041, 14.457160220900038, 16.8310655025553, 17.47808456018655), # 17
(17.645595605010367, 19.248194064002895, 18.154557306557784, 21.654120943492703, 19.43067353707546, 10.936436345858706, 14.436342882419133, 16.18675996535147, 21.216801838456973, 13.780175412678366, 14.654735698572916, 17.060969794148487, 17.716937542216822), # 18
(17.85455614569726, 19.46089400243354, 18.355168343738843, 21.893446673858367, 19.65247936295826, 11.057303884358175, 14.59579150197611, 16.36532312908364, 21.4512404952758, 13.93236449398409, 14.81673165972098, 17.249472588447173, 17.912777038692653), # 19
(18.01962885855975, 19.624283945944132, 18.509271628019405, 22.077289209712237, 19.8251717903117, 11.150150216168733, 14.718275523315652, 16.50248871636009, 21.631328232239156, 14.049272189494726, 14.94117208141047, 17.394274624686105, 18.063214542073485), # 20
(18.13848210260976, 19.735769216143005, 18.614420162099496, 22.202729454161673, 19.94615550635416, 11.213501319738963, 14.801849733567167, 16.596079464314922, 21.754206032161537, 14.1290416816228, 15.026080940707608, 17.49307664210003, 18.165861544818743), # 21
(18.20878423685924, 19.792755134638462, 18.668166948679115, 22.266848310314106, 20.012835198304035, 11.245883173517461, 14.844568919860079, 16.643918110082247, 21.81701487785745, 14.169816152780836, 15.069482214678613, 17.54357937992368, 18.218329539387888), # 22
(18.23470805401675, 19.799502469135803, 18.674861728395065, 22.274875462962967, 20.029917700858675, 11.25, 14.84964720406681, 16.64908888888889, 21.824867222222224, 14.17462609053498, 15.074924466891131, 17.549815637860082, 18.225), # 23
(18.253822343461476, 19.79556666666667, 18.673766666666666, 22.273887500000004, 20.039593704506736, 11.25, 14.8468568627451, 16.6419, 21.823815, 14.17167111111111, 15.074324242424245, 17.548355555555556, 18.225), # 24
(18.272533014380844, 19.78780864197531, 18.671604938271606, 22.27193287037037, 20.049056902070106, 11.25, 14.841358024691358, 16.62777777777778, 21.82173611111111, 14.16585390946502, 15.073134118967452, 17.545473251028806, 18.225), # 25
(18.290838634286462, 19.776346913580248, 18.668406172839507, 22.269033796296295, 20.05830696315799, 11.25, 14.833236092955698, 16.60698888888889, 21.81865722222222, 14.157271275720165, 15.07136487093154, 17.54120823045268, 18.225), # 26
(18.308737770689945, 19.7613, 18.6642, 22.265212499999997, 20.067343557379587, 11.25, 14.822576470588237, 16.579800000000002, 21.814605, 14.146019999999998, 15.069027272727272, 17.535600000000002, 18.225), # 27
(18.3262289911029, 19.742786419753084, 18.659016049382718, 22.260491203703705, 20.076166354344124, 11.25, 14.809464560639071, 16.54647777777778, 21.809606111111112, 14.132196872427985, 15.066132098765433, 17.528688065843625, 18.225), # 28
(18.34331086303695, 19.720924691358025, 18.652883950617287, 22.25489212962963, 20.084775023660796, 11.25, 14.793985766158318, 16.507288888888887, 21.803687222222223, 14.115898683127574, 15.06269012345679, 17.520511934156378, 18.225), # 29
(18.359981954003697, 19.695833333333333, 18.645833333333332, 22.2484375, 20.093169234938827, 11.25, 14.776225490196078, 16.4625, 21.796875, 14.097222222222223, 15.058712121212121, 17.51111111111111, 18.225), # 30
(18.376240831514746, 19.667630864197534, 18.637893827160497, 22.241149537037035, 20.101348657787415, 11.25, 14.756269135802471, 16.412377777777778, 21.78919611111111, 14.07626427983539, 15.054208866442199, 17.500525102880662, 18.225), # 31
(18.392086063081717, 19.636435802469137, 18.629095061728393, 22.233050462962964, 20.10931296181577, 11.25, 14.734202106027599, 16.357188888888892, 21.780677222222224, 14.053121646090535, 15.0491911335578, 17.48879341563786, 18.225), # 32
(18.407516216216216, 19.602366666666665, 18.619466666666668, 22.2241625, 20.117061816633115, 11.25, 14.710109803921569, 16.2972, 21.771345, 14.027891111111112, 15.043669696969696, 17.475955555555554, 18.225), # 33
(18.422529858429858, 19.56554197530864, 18.609038271604938, 22.21450787037037, 20.12459489184864, 11.25, 14.684077632534496, 16.232677777777777, 21.761226111111114, 14.000669465020577, 15.037655331088663, 17.462051028806584, 18.225), # 34
(18.437125557234253, 19.52608024691358, 18.597839506172843, 22.204108796296293, 20.131911857071568, 11.25, 14.656190994916486, 16.163888888888888, 21.750347222222224, 13.971553497942386, 15.031158810325476, 17.447119341563788, 18.225), # 35
(18.45130188014101, 19.484099999999998, 18.5859, 22.192987499999997, 20.139012381911105, 11.25, 14.626535294117646, 16.0911, 21.738735, 13.94064, 15.024190909090908, 17.431200000000004, 18.225), # 36
(18.46505739466174, 19.43971975308642, 18.57324938271605, 22.181166203703704, 20.145896135976457, 11.25, 14.595195933188089, 16.014577777777777, 21.72641611111111, 13.908025761316873, 15.016762401795738, 17.414332510288066, 18.225), # 37
(18.47839066830806, 19.39305802469136, 18.559917283950615, 22.168667129629632, 20.152562788876843, 11.25, 14.562258315177923, 15.934588888888891, 21.713417222222223, 13.873807572016462, 15.00888406285073, 17.396556378600824, 18.225), # 38
(18.491300268591576, 19.34423333333333, 18.545933333333334, 22.1555125, 20.159012010221467, 11.25, 14.527807843137257, 15.8514, 21.699765000000003, 13.838082222222223, 15.000566666666668, 17.37791111111111, 18.225), # 39
(18.503784763023894, 19.293364197530863, 18.531327160493827, 22.14172453703704, 20.165243469619533, 11.25, 14.491929920116196, 15.765277777777781, 21.685486111111114, 13.800946502057615, 14.99182098765432, 17.358436213991773, 18.225), # 40
(18.51584271911663, 19.24056913580247, 18.51612839506173, 22.127325462962965, 20.171256836680264, 11.25, 14.454709949164851, 15.67648888888889, 21.67060722222222, 13.76249720164609, 14.982657800224468, 17.338171193415636, 18.225), # 41
(18.527472704381402, 19.18596666666667, 18.500366666666668, 22.112337500000002, 20.177051781012857, 11.25, 14.416233333333333, 15.5853, 21.655155000000004, 13.72283111111111, 14.97308787878788, 17.317155555555555, 18.225), # 42
(18.538673286329807, 19.12967530864198, 18.484071604938272, 22.096782870370372, 20.182627972226527, 11.25, 14.37658547567175, 15.491977777777779, 21.63915611111111, 13.682045020576133, 14.96312199775533, 17.295428806584365, 18.225), # 43
(18.54944303247347, 19.071813580246914, 18.467272839506176, 22.0806837962963, 20.18798507993048, 11.25, 14.335851779230211, 15.396788888888892, 21.62263722222222, 13.64023572016461, 14.952770931537597, 17.2730304526749, 18.225), # 44
(18.55978051032399, 19.0125, 18.45, 22.064062500000002, 20.193122773733933, 11.25, 14.294117647058824, 15.3, 21.605625, 13.597500000000002, 14.942045454545454, 17.25, 18.225), # 45
(18.569684287392985, 18.951853086419753, 18.432282716049382, 22.046941203703703, 20.198040723246088, 11.25, 14.251468482207699, 15.20187777777778, 21.588146111111108, 13.553934650205761, 14.930956341189674, 17.226376954732512, 18.225), # 46
(18.579152931192063, 18.88999135802469, 18.41415061728395, 22.02934212962963, 20.202738598076163, 11.25, 14.207989687726945, 15.102688888888888, 21.570227222222226, 13.50963646090535, 14.919514365881032, 17.20220082304527, 18.225), # 47
(18.588185009232834, 18.827033333333333, 18.395633333333333, 22.0112875, 20.20721606783336, 11.25, 14.163766666666668, 15.0027, 21.551895000000002, 13.464702222222222, 14.907730303030302, 17.177511111111112, 18.225), # 48
(18.596779089026917, 18.763097530864197, 18.376760493827163, 21.99279953703704, 20.211472802126895, 11.25, 14.118884822076978, 14.902177777777778, 21.53317611111111, 13.419228724279836, 14.895614927048262, 17.152347325102884, 18.225), # 49
(18.604933738085908, 18.698302469135808, 18.357561728395066, 21.973900462962963, 20.21550847056597, 11.25, 14.073429557007989, 14.801388888888889, 21.514097222222222, 13.373312757201646, 14.883179012345678, 17.126748971193418, 18.225), # 50
(18.61264752392144, 18.63276666666667, 18.338066666666666, 21.9546125, 20.219322742759797, 11.25, 14.027486274509805, 14.7006, 21.494685000000004, 13.32705111111111, 14.870433333333335, 17.10075555555556, 18.225), # 51
(18.619919014045102, 18.56660864197531, 18.318304938271606, 21.934957870370372, 20.222915288317584, 11.25, 13.981140377632535, 14.600077777777777, 21.47496611111111, 13.280540576131688, 14.857388664421999, 17.074406584362144, 18.225), # 52
(18.626746775968517, 18.49994691358025, 18.29830617283951, 21.914958796296297, 20.226285776848552, 11.25, 13.93447726942629, 14.50008888888889, 21.454967222222226, 13.233877942386831, 14.844055780022448, 17.04774156378601, 18.225), # 53
(18.63312937720329, 18.432900000000004, 18.2781, 21.8946375, 20.229433877961906, 11.25, 13.887582352941177, 14.400899999999998, 21.434715, 13.18716, 14.830445454545453, 17.0208, 18.225), # 54
(18.63906538526104, 18.365586419753086, 18.25771604938272, 21.874016203703704, 20.232359261266843, 11.25, 13.840541031227307, 14.302777777777777, 21.414236111111112, 13.140483539094651, 14.816568462401795, 16.993621399176956, 18.225), # 55
(18.64455336765337, 18.298124691358026, 18.237183950617286, 21.85311712962963, 20.235061596372585, 11.25, 13.793438707334786, 14.20598888888889, 21.393557222222224, 13.09394534979424, 14.802435578002246, 16.96624526748971, 18.225), # 56
(18.649591891891887, 18.230633333333333, 18.216533333333334, 21.8319625, 20.23754055288834, 11.25, 13.746360784313726, 14.110800000000001, 21.372705, 13.047642222222223, 14.788057575757577, 16.93871111111111, 18.225), # 57
(18.654179525488225, 18.163230864197534, 18.195793827160493, 21.810574537037034, 20.239795800423316, 11.25, 13.699392665214235, 14.017477777777778, 21.35170611111111, 13.001670946502058, 14.773445230078567, 16.91105843621399, 18.225), # 58
(18.658314835953966, 18.096035802469135, 18.174995061728396, 21.788975462962963, 20.24182700858672, 11.25, 13.65261975308642, 13.92628888888889, 21.330587222222224, 12.956128312757203, 14.758609315375981, 16.883326748971193, 18.225), # 59
(18.661996390800738, 18.02916666666667, 18.154166666666665, 21.767187500000002, 20.243633846987766, 11.25, 13.606127450980392, 13.8375, 21.309375000000003, 12.911111111111111, 14.743560606060607, 16.855555555555558, 18.225), # 60
(18.665222757540146, 17.962741975308646, 18.13333827160494, 21.74523287037037, 20.24521598523566, 11.25, 13.560001161946259, 13.751377777777778, 21.288096111111113, 12.866716131687244, 14.728309876543209, 16.82778436213992, 18.225), # 61
(18.66799250368381, 17.89688024691358, 18.112539506172844, 21.7231337962963, 20.246573092939624, 11.25, 13.514326289034132, 13.66818888888889, 21.266777222222224, 12.823040164609054, 14.712867901234567, 16.80005267489712, 18.225), # 62
(18.670304196743327, 17.831699999999998, 18.0918, 21.7009125, 20.24770483970884, 11.25, 13.469188235294117, 13.5882, 21.245445, 12.78018, 14.697245454545456, 16.7724, 18.225), # 63
(18.672156404230314, 17.767319753086422, 18.071149382716047, 21.678591203703704, 20.24861089515255, 11.25, 13.424672403776325, 13.511677777777779, 21.22412611111111, 12.738232427983538, 14.681453310886642, 16.7448658436214, 18.225), # 64
(18.67354769365639, 17.703858024691357, 18.05061728395062, 21.65619212962963, 20.24929092887994, 11.25, 13.380864197530865, 13.438888888888888, 21.202847222222225, 12.697294238683126, 14.665502244668913, 16.717489711934153, 18.225), # 65
(18.674476632533153, 17.641433333333335, 18.030233333333335, 21.6337375, 20.249744610500233, 11.25, 13.337849019607843, 13.3701, 21.181635000000004, 12.657462222222222, 14.649403030303029, 16.690311111111114, 18.225), # 66
(18.674941788372227, 17.580164197530863, 18.010027160493827, 21.611249537037036, 20.249971609622634, 11.25, 13.29571227305737, 13.30557777777778, 21.16051611111111, 12.618833168724281, 14.633166442199778, 16.6633695473251, 18.225), # 67
(18.674624906065485, 17.519847550776582, 17.989930709876543, 21.588555132850242, 20.249780319535223, 11.24979122085048, 13.254327350693364, 13.245018930041153, 21.13935812757202, 12.5813167949649, 14.616514779372677, 16.636554039419536, 18.22477527006173), # 68
(18.671655072463768, 17.458641935483872, 17.969379166666666, 21.564510326086953, 20.248039215686273, 11.248140740740741, 13.212482726423904, 13.185177777777778, 21.11723611111111, 12.543851503267971, 14.597753110047847, 16.608994152046783, 18.222994791666668), # 69
(18.665794417606012, 17.39626642771804, 17.948283179012343, 21.538956823671498, 20.244598765432098, 11.244890260631001, 13.169988242210465, 13.125514403292183, 21.09402520576132, 12.506255144032922, 14.576667995746943, 16.580560970327056, 18.219478202160495), # 70
(18.657125389157272, 17.332758303464754, 17.92665015432099, 21.51193230676329, 20.239502541757446, 11.240092455418381, 13.12686298717018, 13.066048559670783, 21.06975997942387, 12.46852864681675, 14.553337267410951, 16.551275286982886, 18.21427179783951), # 71
(18.64573043478261, 17.268154838709677, 17.9044875, 21.48347445652174, 20.23279411764706, 11.2338, 13.083126050420168, 13.0068, 21.044475000000002, 12.43067294117647, 14.527838755980863, 16.52115789473684, 18.207421875), # 72
(18.631692002147076, 17.20249330943847, 17.88180262345679, 21.45362095410628, 20.224517066085692, 11.226065569272976, 13.038796521077565, 12.947788477366256, 21.01820483539095, 12.392688956669087, 14.50025029239766, 16.490229586311454, 18.198974729938275), # 73
(18.61509253891573, 17.1358109916368, 17.858602932098762, 21.42240948067633, 20.214714960058096, 11.216941838134431, 12.9938934882595, 12.889033744855967, 20.990984053497943, 12.354577622851611, 14.470649707602341, 16.45851115442928, 18.18897665895062), # 74
(18.59601449275362, 17.06814516129032, 17.83489583333333, 21.389877717391304, 20.203431372549023, 11.206481481481482, 12.9484360410831, 12.830555555555556, 20.96284722222222, 12.316339869281046, 14.439114832535884, 16.426023391812866, 18.177473958333334), # 75
(18.57454031132582, 16.99953309438471, 17.8106887345679, 21.35606334541063, 20.19070987654321, 11.19473717421125, 12.902443268665492, 12.772373662551441, 20.93382890946502, 12.277976625514404, 14.405723498139285, 16.392787091184747, 18.164512924382716), # 76
(18.55075244229737, 16.93001206690562, 17.785989043209874, 21.32100404589372, 20.176594045025414, 11.18176159122085, 12.855934260123803, 12.714507818930043, 20.90396368312757, 12.239488821108692, 14.370553535353537, 16.358823045267492, 18.150139853395064), # 77
(18.524733333333334, 16.859619354838713, 17.760804166666667, 21.2847375, 20.16112745098039, 11.167607407407406, 12.808928104575164, 12.65697777777778, 20.87328611111111, 12.200877385620915, 14.333682775119618, 16.324152046783627, 18.134401041666667), # 78
(18.496565432098766, 16.788392234169656, 17.735141512345677, 21.24730138888889, 20.144353667392885, 11.152327297668037, 12.761443891136702, 12.59980329218107, 20.84183076131687, 12.162143248608086, 14.29518904837852, 16.28879488845571, 18.117342785493825), # 79
(18.466331186258724, 16.71636798088411, 17.70900848765432, 21.208733393719807, 20.126316267247642, 11.135973936899862, 12.713500708925546, 12.543004115226339, 20.809632201646092, 12.123287339627208, 14.255150186071239, 16.252772363006283, 18.09901138117284), # 80
(18.434113043478263, 16.643583870967742, 17.682412499999998, 21.169071195652176, 20.10705882352941, 11.118599999999999, 12.665117647058823, 12.486600000000001, 20.776725, 12.084310588235295, 14.213644019138757, 16.216105263157896, 18.079453124999997), # 81
(18.399993451422436, 16.570077180406216, 17.655360956790126, 21.12835247584541, 20.086624909222948, 11.10025816186557, 12.616313794653665, 12.430610699588478, 20.743143724279836, 12.045213923989348, 14.170748378522063, 16.178814381633096, 18.058714313271608), # 82
(18.364054857756308, 16.495885185185184, 17.6278612654321, 21.086614915458934, 20.065058097313, 11.08100109739369, 12.567108240827196, 12.37505596707819, 20.70892294238683, 12.00599827644638, 14.12654109516215, 16.14092051115443, 18.036841242283952), # 83
(18.326379710144927, 16.421045161290323, 17.599920833333332, 21.043896195652174, 20.042401960784314, 11.060881481481482, 12.517520074696545, 12.319955555555556, 20.674097222222223, 11.9666645751634, 14.0811, 16.102444444444444, 18.013880208333333), # 84
(18.287050456253354, 16.345594384707287, 17.571547067901232, 21.000233997584544, 20.01870007262164, 11.039951989026063, 12.467568385378843, 12.265329218106997, 20.63870113168724, 11.92721374969741, 14.034502923976609, 16.06340697422569, 17.989877507716052), # 85
(18.246149543746643, 16.269570131421744, 17.54274737654321, 20.955666002415462, 19.99399600580973, 11.018265294924555, 12.417272261991217, 12.21119670781893, 20.60276923868313, 11.887646729605423, 13.986827698032961, 16.02382889322071, 17.964879436728395), # 86
(18.203759420289852, 16.193009677419354, 17.513529166666665, 20.910229891304347, 19.968333333333337, 10.995874074074074, 12.366650793650793, 12.157577777777778, 20.566336111111116, 11.847964444444443, 13.938152153110048, 15.983730994152046, 17.938932291666667), # 87
(18.159962533548043, 16.11595029868578, 17.483899845679012, 20.86396334541063, 19.941755628177198, 10.972831001371743, 12.315723069474704, 12.104492181069958, 20.52943631687243, 11.808167823771482, 13.888554120148857, 15.943134069742257, 17.912082368827164), # 88
(18.11484133118626, 16.03842927120669, 17.453866820987656, 20.81690404589372, 19.91430646332607, 10.94918875171468, 12.264508178580074, 12.051959670781894, 20.492104423868312, 11.76825779714355, 13.838111430090379, 15.902058912713883, 17.884375964506173), # 89
(18.068478260869565, 15.960483870967742, 17.423437500000002, 20.769089673913047, 19.886029411764707, 10.925, 12.213025210084034, 12.0, 20.454375000000002, 11.728235294117647, 13.786901913875598, 15.860526315789475, 17.855859375), # 90
(18.020955770263015, 15.8821513739546, 17.392619290123456, 20.720557910628024, 19.85696804647785, 10.900317421124829, 12.161293253103711, 11.9486329218107, 20.41628261316873, 11.688101244250786, 13.735003402445509, 15.818557071691574, 17.826578896604936), # 91
(17.97235630703167, 15.80346905615293, 17.361419598765433, 20.671346437198068, 19.827165940450254, 10.875193689986283, 12.109331396756236, 11.897878189300412, 20.377861831275723, 11.647856577099976, 13.682493726741095, 15.776171973142736, 17.796580825617283), # 92
(17.92276231884058, 15.724474193548389, 17.329845833333334, 20.621492934782612, 19.796666666666667, 10.84968148148148, 12.057158730158731, 11.847755555555556, 20.339147222222223, 11.607502222222221, 13.62945071770335, 15.733391812865497, 17.76591145833333), # 93
(17.872256253354806, 15.645204062126643, 17.29790540123457, 20.571035084541062, 19.765513798111837, 10.823833470507545, 12.00479434242833, 11.798284773662553, 20.300173353909464, 11.567039109174534, 13.575952206273259, 15.690237383582414, 17.734617091049383), # 94
(17.820920558239397, 15.56569593787336, 17.265605709876546, 20.52001056763285, 19.733750907770517, 10.797702331961592, 11.95225732268216, 11.749485596707821, 20.260974794238685, 11.526468167513919, 13.522076023391813, 15.646729478016026, 17.70274402006173), # 95
(17.76883768115942, 15.485987096774197, 17.23295416666667, 20.468457065217393, 19.701421568627453, 10.77134074074074, 11.899566760037347, 11.701377777777779, 20.221586111111108, 11.485790326797385, 13.4679, 15.602888888888891, 17.67033854166667), # 96
(17.716090069779927, 15.406114814814819, 17.199958179012345, 20.416412258454105, 19.668569353667394, 10.744801371742112, 11.846741743611025, 11.65398106995885, 20.182041872427984, 11.445006516581941, 13.413501967038808, 15.558736408923545, 17.637446952160495), # 97
(17.66276017176597, 15.326116367980884, 17.166625154320986, 20.363913828502415, 19.635237835875095, 10.718136899862827, 11.793801362520316, 11.607315226337448, 20.142376646090533, 11.404117666424595, 13.35895975544923, 15.514292830842535, 17.604115547839505), # 98
(17.608930434782607, 15.246029032258065, 17.1329625, 20.31099945652174, 19.601470588235298, 10.6914, 11.740764705882354, 11.5614, 20.102625, 11.363124705882353, 13.304351196172249, 15.469578947368422, 17.570390625), # 99
(17.5546833064949, 15.165890083632016, 17.09897762345679, 20.257706823671498, 19.567311183732752, 10.664643347050754, 11.687650862814262, 11.516255144032922, 20.062821502057616, 11.322028564512225, 13.249754120148857, 15.42461555122374, 17.536318479938274), # 100
(17.500101234567904, 15.085736798088412, 17.064677932098768, 20.204073611111113, 19.532803195352216, 10.637919615912208, 11.634478922433171, 11.471900411522633, 20.02300072016461, 11.280830171871218, 13.195246358320043, 15.379423435131034, 17.501945408950615), # 101
(17.44526666666667, 15.005606451612904, 17.030070833333333, 20.1501375, 19.497990196078433, 10.611281481481482, 11.58126797385621, 11.428355555555555, 19.98319722222222, 11.239530457516341, 13.140905741626794, 15.334023391812867, 17.467317708333336), # 102
(17.390262050456254, 14.92553632019116, 16.9951637345679, 20.095936171497584, 19.462915758896152, 10.584781618655693, 11.528037106200506, 11.385640329218107, 19.943445576131687, 11.1981303510046, 13.086810101010101, 15.28843621399177, 17.432481674382714), # 103
(17.335169833601718, 14.845563679808842, 16.959964043209876, 20.041507306763286, 19.427623456790123, 10.558472702331962, 11.474805408583187, 11.343774485596708, 19.90378034979424, 11.156630781893005, 13.03303726741095, 15.242682694390297, 17.397483603395063), # 104
(17.280072463768114, 14.765725806451613, 16.924479166666668, 19.98688858695652, 19.392156862745097, 10.532407407407408, 11.421591970121383, 11.302777777777779, 19.86423611111111, 11.115032679738563, 12.979665071770334, 15.196783625730996, 17.362369791666666), # 105
(17.225052388620504, 14.686059976105138, 16.888716512345678, 19.932117693236716, 19.356559549745825, 10.50663840877915, 11.36841587993222, 11.262669958847736, 19.82484742798354, 11.07333697409828, 12.92677134502924, 15.15075980073641, 17.327186535493826), # 106
(17.17019205582394, 14.606603464755079, 16.852683487654325, 19.877232306763286, 19.32087509077705, 10.48121838134431, 11.31529622713283, 11.223470781893006, 19.78564886831276, 11.03154459452917, 12.874433918128654, 15.104632012129088, 17.29198013117284), # 107
(17.11557391304348, 14.5273935483871, 16.8163875, 19.822270108695655, 19.28514705882353, 10.4562, 11.262252100840335, 11.185200000000002, 19.746675000000003, 10.989656470588237, 12.82273062200957, 15.05842105263158, 17.256796875000003), # 108
(17.061280407944178, 14.448467502986858, 16.779835956790127, 19.767268780193234, 19.249419026870008, 10.431635939643346, 11.209302590171871, 11.147877366255145, 19.707960390946504, 10.947673531832486, 12.771739287612972, 15.012147714966428, 17.221683063271605), # 109
(17.007393988191087, 14.369862604540026, 16.743036265432103, 19.71226600241546, 19.213734567901238, 10.407578875171467, 11.15646678424456, 11.111522633744855, 19.669539609053498, 10.90559670781893, 12.72153774587985, 14.965832791856185, 17.18668499228395), # 110
(16.953997101449275, 14.29161612903226, 16.705995833333336, 19.65729945652174, 19.178137254901962, 10.384081481481482, 11.103763772175537, 11.076155555555555, 19.631447222222224, 10.863426928104575, 12.672203827751195, 14.919497076023394, 17.151848958333336), # 111
(16.90117219538379, 14.213765352449222, 16.66872206790124, 19.602406823671497, 19.142670660856936, 10.361196433470509, 11.051212643081925, 11.041795884773663, 19.593717798353907, 10.821165122246429, 12.623815364167996, 14.873161360190599, 17.11722125771605), # 112
(16.84890760266548, 14.136477513814715, 16.631312090853726, 19.547700988485673, 19.10731622431267, 10.338965584586125, 10.998946734582185, 11.00853462380509, 19.556483060265517, 10.778948525902914, 12.57646303107516, 14.826947285707972, 17.0827990215178), # 113
(16.796665616220118, 14.060514930345965, 16.594282215038913, 19.493620958299207, 19.071708038219388, 10.317338295353823, 10.947632775139043, 10.976780267109216, 19.52031426428351, 10.73756730224301, 12.530239806803754, 14.781441909803354, 17.048295745488062), # 114
(16.744292825407193, 13.985904957629483, 16.55765447887317, 19.440152109327204, 19.035733820199482, 10.296258322497776, 10.89730737034481, 10.946524777701677, 19.485224961603823, 10.697085590378538, 12.485078120568769, 14.736667648605932, 17.013611936988678), # 115
(16.691723771827743, 13.912538906325063, 16.521357941970972, 19.38719907047953, 18.999339347490803, 10.275675979116777, 10.847888671550209, 10.917684563218188, 19.451126410610094, 10.657428045209185, 12.440890676288666, 14.692541755477222, 16.978693067560602), # 116
(16.63889299708279, 13.840308087092497, 16.485321663946774, 19.33466647066604, 18.9624703973312, 10.255541578309604, 10.799294830105955, 10.890176031294454, 19.417929869685967, 10.618519321634633, 12.39759017788191, 14.64898148377875, 16.943484608744804), # 117
(16.58573504277338, 13.769103810591583, 16.44947470441506, 19.2824589387966, 18.925072746958516, 10.235805433175049, 10.751443997362767, 10.863915589566174, 19.385546597215082, 10.580284074554568, 12.355089329266963, 14.60590408687203, 16.907932032082243), # 118
(16.532184450500534, 13.698817387482112, 16.413746122990304, 19.23048110378107, 18.887092173610597, 10.2164178568119, 10.70425432467136, 10.838819645669062, 19.353887851581078, 10.54264695886867, 12.31330083436229, 14.563226818118581, 16.87198080911388), # 119
(16.47817576186529, 13.629340128423884, 16.37806497928697, 19.17863759452931, 18.848474454525295, 10.197329162318939, 10.657643963382455, 10.814804607238818, 19.322864891167605, 10.50553262947663, 12.272137397086349, 14.520866930879935, 16.835576411380675), # 120
(16.423643518468683, 13.560563344076693, 16.342360332919537, 19.12683303995118, 18.809165366940455, 10.178489662794956, 10.611531064846766, 10.791786881911152, 19.2923889743583, 10.468865741278133, 12.23151172135761, 14.4787416785176, 16.79866431042359), # 121
(16.36852226191174, 13.49237834510033, 16.30656124350248, 19.07497206895654, 18.76911068809392, 10.159849671338735, 10.565833780415012, 10.769682877321769, 19.2623713595368, 10.43257094917286, 12.191336511094532, 14.436768314393102, 16.761189977783587), # 122
(16.312746533795494, 13.424676442154594, 16.270596770650265, 19.02295931045525, 18.728256195223544, 10.141359501049065, 10.52047026143791, 10.74840900110637, 19.232723305086758, 10.396572908060497, 12.151524470215579, 14.394864091867959, 16.72309888500163), # 123
(16.256250875720976, 13.357348945899277, 16.234395973977367, 18.970699393357176, 18.68654766556717, 10.12296946502473, 10.475358659266176, 10.727881660900668, 19.20335606939181, 10.36079627284073, 12.111988302639215, 14.352946264303695, 16.68433650361868), # 124
(16.198969829289226, 13.290287166994178, 16.197887913098263, 18.91809694657217, 18.643930876362642, 10.104629876364521, 10.43041712525053, 10.708017264340365, 19.174180910835588, 10.32516569841324, 12.072640712283903, 14.310932085061827, 16.644848305175692), # 125
(16.14083793610127, 13.22338241609909, 16.16100164762742, 18.8650565990101, 18.60035160484781, 10.086291048167222, 10.385563810741687, 10.688732219061166, 19.145109087801753, 10.289605839677717, 12.033394403068103, 14.268738807503881, 16.604579761213643), # 126
(16.08178973775815, 13.156526003873804, 16.123666237179307, 18.81148297958082, 18.555755628260517, 10.067903293531618, 10.34071686709037, 10.669942932698781, 19.116051858673934, 10.254041351533843, 11.994162078910282, 14.226283684991369, 16.56347634327348), # 127
(16.021759775860883, 13.089609240978122, 16.08581074136841, 18.7572807171942, 18.51008872383862, 10.0494169255565, 10.295794445647289, 10.651565812888913, 19.086920481835772, 10.218396888881303, 11.954856443728904, 14.183483970885819, 16.521483522896165), # 128
(15.960682592010507, 13.022523438071834, 16.047364219809193, 18.702354440760086, 18.46329666881996, 10.03078225734065, 10.250714697763163, 10.633517267267269, 19.057626215670915, 10.182597106619781, 11.915390201442428, 14.140256918548745, 16.478546771622668), # 129
(15.89849272780806, 12.955159905814739, 16.008255732116123, 18.646608779188355, 18.415325240442385, 10.011949601982854, 10.205395774788713, 10.61571370346955, 19.028080318563003, 10.146566659648963, 11.87567605596932, 14.096519781341675, 16.434611560993947), # 130
(15.83512472485457, 12.887409954866628, 15.968414337903685, 18.589948361388856, 18.36612021594374, 9.992869272581904, 10.159755828074656, 10.59807152913147, 18.998194048895677, 10.110230202868534, 11.835626711228041, 14.052189812626125, 16.38962336255096), # 131
(15.770513124751067, 12.8191648958873, 15.927769096786342, 18.532277816271456, 18.315627372561877, 9.973491582236585, 10.113713008971706, 10.580507151888732, 18.967878665052577, 10.073512391178177, 11.795154871137056, 14.007184265763614, 16.343527647834676), # 132
(15.704592469098595, 12.750316039536544, 15.88624906837857, 18.473501772746012, 18.263792487534637, 9.95376684404568, 10.06718546883058, 10.562936979377039, 18.93704542541735, 10.036337879477578, 11.754173239614829, 13.961420394115667, 16.296269888386057), # 133
(15.63729729949817, 12.68075469647416, 15.843783312294848, 18.413524859722386, 18.210561338099865, 9.933645371107978, 10.020091359002002, 10.545277419232098, 18.905605588373632, 9.998631322666423, 11.712594520579822, 13.914815451043799, 16.24779555574605), # 134
(15.568562157550836, 12.610372177359944, 15.800300888149636, 18.352251706110444, 18.15587970149542, 9.913077476522266, 9.972348830836681, 10.527444879089616, 18.873470412305064, 9.960317375644397, 11.670331417950496, 13.867286689909534, 16.198050121455637), # 135
(15.498321584857623, 12.539059792853687, 15.755730855557415, 18.28958694082003, 18.09969335495913, 9.892013473387332, 9.923876035685343, 10.509355766585298, 18.840551155595293, 9.92132069331118, 11.627296635645319, 13.818751364074394, 16.146979057055766), # 136
(15.426510123019561, 12.466708853615184, 15.710002274132659, 18.225435192761026, 18.04194807572886, 9.870403674801956, 9.8745911248987, 10.490926489354854, 18.80675907662796, 9.881565930566463, 11.583402877582751, 13.769126726899895, 16.094527834087398), # 137
(15.353062313637686, 12.393210670304235, 15.66304420348983, 18.159701090843274, 17.982589641042455, 9.848198393864935, 9.824412249827468, 10.472073455033982, 18.772005433786706, 9.840977742309924, 11.538562847681254, 13.718330031747561, 16.040641924091503), # 138
(15.277912698313022, 12.31845655358063, 15.614785703243411, 18.092289263976646, 17.921563828137746, 9.825347943675048, 9.773257561822367, 10.452713071258394, 18.73620148545517, 9.799480783441254, 11.492689249859293, 13.66627853197891, 15.985266798609034), # 139
(15.200995818646616, 12.242337814104165, 15.565155833007877, 18.023104341071, 17.858816414252605, 9.801802637331082, 9.721045212234115, 10.432761745663793, 18.699258490016998, 9.756999708860134, 11.445694788035329, 13.612889480955465, 15.928347929180966), # 140
(15.122246216239494, 12.164745762534638, 15.514083652397689, 17.952050951036195, 17.794293176624855, 9.777512787931828, 9.667693352413432, 10.412135885885887, 18.661087705855824, 9.713459173466253, 11.39749216612783, 13.558080132038745, 15.869830787348244), # 141
(15.041598432692682, 12.08557170953184, 15.461498221027327, 17.879033722782097, 17.727939892492355, 9.752428708576069, 9.613120133711027, 10.39075189956038, 18.621600391355297, 9.66878383215929, 11.347994088055255, 13.50176773859027, 15.80966084465184), # 142
(14.958987009607215, 12.004706965755565, 15.407328598511267, 17.803957285218555, 17.659702339092952, 9.726500712362592, 9.557243707477623, 10.368526194322978, 18.580707804899063, 9.622898339838935, 11.297113257736068, 13.443869553971561, 15.747783572632711), # 143
(14.874346488584132, 11.922042841865615, 15.35150384446397, 17.72672626725544, 17.58952629366449, 9.699679112390184, 9.499982225063938, 10.34537517780939, 18.53832120487076, 9.575727351404868, 11.244762379088732, 13.384302831544138, 15.684144442831826), # 144
(14.787611411224459, 11.837470648521778, 15.29395301849992, 17.64724529780261, 17.51735753344482, 9.671914221757634, 9.441253837820689, 10.321215257655316, 18.494351849654016, 9.527195521756779, 11.190854156031712, 13.322984824669524, 15.618688926790139), # 145
(14.69871631912923, 11.750881696383855, 15.23460518023359, 17.565419005769925, 17.443141835671785, 9.643156353563725, 9.380976697098594, 10.295962841496468, 18.448710997632492, 9.477227505794348, 11.135301292483467, 13.259832786709236, 15.551362496048613), # 146
(14.607595753899481, 11.662167296111635, 15.173389389279437, 17.481152020067245, 17.36682497758323, 9.613355820907245, 9.319068954248365, 10.269534336968547, 18.401309907189823, 9.425747958417263, 11.078016492362465, 13.194763971024798, 15.482110622148213), # 147
(14.51418425713624, 11.571218758364918, 15.11023470525195, 17.394348969604433, 17.28835273641701, 9.582462936886982, 9.255448760620729, 10.241846151707264, 18.352059836709653, 9.372681534525205, 11.018912459587169, 13.127695630977726, 15.410878776629895), # 148
(14.418416370440541, 11.477927393803494, 15.045070187765598, 17.304914483291345, 17.207670889410966, 9.550428014601719, 9.190034267566393, 10.21281469334832, 18.30087204457561, 9.317952889017864, 10.957901898076038, 13.058545019929545, 15.337612431034628), # 149
(14.320226635413416, 11.382184513087163, 14.97782489643485, 17.212753190037848, 17.124725213802947, 9.517201367150248, 9.122743626436081, 10.182356369527422, 18.247657789171353, 9.261486676794918, 10.894897511747537, 12.987229391241772, 15.262257056903364), # 150
(14.219549593655895, 11.283881426875716, 14.908427890874176, 17.117769718753795, 17.0394614868308, 9.48273330763135, 9.05349498858051, 10.150387587880278, 18.19232832888052, 9.20320755275606, 10.829812004520129, 12.91366599827593, 15.184758125777073), # 151
(14.116319786769019, 11.182909445828951, 14.836808230698063, 17.019868698349054, 16.951825485732364, 9.446974149143815, 8.982206505350396, 10.116824756042595, 18.134794922086748, 9.143040171800969, 10.762558080312278, 12.837772094393538, 15.105061109196717), # 152
(14.010471756353809, 11.079159880606662, 14.762894975520963, 16.91895475773348, 16.8617629877455, 9.409874204786428, 8.908796328096455, 10.081584281650072, 18.07496882717368, 9.080909188829333, 10.693048443042448, 12.759464932956115, 15.02311147870325), # 153
(13.901940044011312, 10.972524041868644, 14.686617184957365, 16.81493252581694, 16.769219770108045, 9.371383787657978, 8.83318260816941, 10.044582572338422, 18.01276130252496, 9.016739258740834, 10.6211957966291, 12.678661767325185, 14.938854705837642), # 154
(13.790659191342543, 10.86289324027469, 14.607903918621735, 16.707706631509282, 16.674141610057855, 9.331453210857248, 8.75528349691997, 10.005736035743345, 17.948083606524232, 8.950455036435159, 10.5469128449907, 12.595279850862267, 14.852236262140847), # 155
(13.676563739948545, 10.750158786484597, 14.526684236128547, 16.597181703720377, 16.576474284832766, 9.29003278748303, 8.67501714569886, 9.964961079500554, 17.88084699755513, 8.88198117681199, 10.470112292045709, 12.50923643692888, 14.763201619153833), # 156
(13.559588231430352, 10.634211991158162, 14.442887197092272, 16.483262371360087, 16.476163571670632, 9.247072830634105, 8.592301705856794, 9.922174111245749, 17.8109627340013, 8.811242334771014, 10.39070684171259, 12.420448778886547, 14.671696248417557), # 157
(13.43642570352943, 10.512815617390064, 14.352465517024239, 16.36158524697224, 16.368625990567796, 9.199844057370798, 8.505192097670143, 9.87443451422887, 17.732991764878374, 8.73605864932406, 10.306072354570096, 12.32567921554981, 14.573674546947622), # 158
(13.288116180561124, 10.37351757527906, 14.232128073125379, 16.207158885819215, 16.22734435760693, 9.132641366412786, 8.40278297409429, 9.804984358975888, 17.61556907019986, 8.644105789377742, 10.20135048411419, 12.206452542629595, 14.445769764456351), # 159
(13.112769770827757, 10.215174111373285, 14.0794577243206, 16.017439518735948, 16.04955623642423, 9.043814332885832, 8.284038747090811, 9.712078541149223, 17.455365409011574, 8.534170173353209, 10.075067115497172, 12.060903507998123, 14.285557096008445), # 160
(12.911799698254727, 10.038817562544844, 13.896084549438555, 15.79423050676211, 15.837107623707803, 8.934439034826566, 8.149826602812377, 9.596880959597605, 17.254493580598233, 8.407184747707687, 9.928334978279473, 11.890381444033627, 14.094673280674375), # 161
(12.686619186767443, 9.84548026566583, 13.683638627307893, 15.539335210937388, 15.591844516145768, 8.80559155027162, 8.001013727411657, 9.460555513169764, 17.015066384244545, 8.264082458898416, 9.762266802021516, 11.696235683114327, 13.874755057524599), # 162
(12.438641460291295, 9.636194557608343, 13.443750036757264, 15.254556992301481, 15.315612910426239, 8.65834795725763, 7.838467307041322, 9.304266100714425, 16.73919661923523, 8.105796253382625, 9.577975316283736, 11.479815557618458, 13.627439165629584), # 163
(12.16927974275169, 9.411992775244478, 13.178048856615318, 14.941699211894072, 15.01025880323734, 8.493784333821234, 7.663054527854039, 9.129176621080324, 16.428997084855002, 7.933259077617543, 9.376573250626553, 11.242470399924246, 13.35436234405979), # 164
(11.879947258074031, 9.173907255446338, 12.888165165710705, 14.602565230754854, 14.677628191267182, 8.312976757999055, 7.475642576002479, 8.936450973116184, 16.086580580388564, 7.747403878060404, 9.1591733346104, 10.985549542409915, 13.057161331885686), # 165
(11.572057230183715, 8.922970335086019, 12.57572904287207, 14.238958409923503, 14.319567071203886, 8.117001307827735, 7.277098637639315, 8.727253055670738, 15.714059905120632, 7.549163601168441, 8.926888297795703, 10.710402317453703, 12.737472868177733), # 166
(11.24702288300614, 8.660214351035616, 12.242370566928068, 13.852682110439718, 13.937921439735565, 7.906934061343905, 7.0682898989172145, 8.502746767592717, 15.31354785833592, 7.339471193398886, 8.680830869742888, 10.418378057433825, 12.396933692006392), # 167
(10.906257440466712, 8.386671640167231, 11.889719816707347, 13.445539693343184, 13.534537293550335, 7.683851096584198, 6.850083545988848, 8.264096007730847, 14.887157239319139, 7.11925960120897, 8.422113780012385, 10.11082609472852, 12.037180542442131), # 168
(10.551174126490828, 8.103374539352963, 11.519406871038555, 13.019334519673588, 13.111260629336316, 7.4488284915852505, 6.623346765006885, 8.012464674933861, 14.437000847355009, 6.889461771055926, 8.151849758164623, 9.78909576171601, 11.659850158555415), # 169
(10.18318616500389, 7.811355385464907, 11.133061808750343, 12.575869950470615, 12.66993744378162, 7.2029423243836925, 6.388946742123995, 7.749016668050485, 13.96519148172823, 6.6510106493969845, 7.871151533760029, 9.454536390774527, 11.2665792794167), # 170
(9.8037067799313, 7.511646515375161, 10.73231470867136, 12.116949346773964, 12.21241373357437, 6.947268673016157, 6.147750663492849, 7.47491588592945, 13.47384194172352, 6.404839182689379, 7.581131836359027, 9.108497314282296, 10.859004644096458), # 171
(9.414149195198457, 7.205280265955825, 10.318795649630257, 11.644376069623315, 11.740535495402677, 6.682883615519281, 5.900625715266118, 7.191326227419487, 12.965065026625595, 6.151880317390344, 7.282903395522049, 8.752327864617548, 10.438762991665145), # 172
(9.015926634730764, 6.893288974078996, 9.894134710455681, 11.159953480058356, 11.256148725954663, 6.410863229929695, 5.64843908359647, 6.899411591369322, 12.440973535719161, 5.893066999957107, 6.97757894080952, 8.387377374158506, 10.007491061193234), # 173
(8.610452322453618, 6.576704976616772, 9.459961969976282, 10.665484939118773, 10.76109942191844, 6.132283594284034, 5.3920579546365754, 6.600335876627689, 11.903680268288936, 5.629332176846904, 6.66627120178187, 8.014995175283403, 9.566825591751181), # 174
(8.19913948229242, 6.256560610441251, 9.017907507020714, 10.162773807844262, 10.257233579982124, 5.848220786618931, 5.132349514539104, 6.295262982043313, 11.35529802361963, 5.361608794516964, 6.3500929079995245, 7.636530600370466, 9.118403322409455), # 175
(7.783401338172574, 5.933888212424531, 8.569601400417621, 9.653623447274505, 9.746397196833835, 5.55975088497102, 4.870180949456727, 5.985356806464928, 10.797939600995955, 5.090829799424521, 6.0301567890229135, 7.253332981797922, 8.663860992238513), # 176
(7.364651114019479, 5.6097201194387125, 8.116673728995655, 9.13983721844919, 9.230436269161691, 5.267949967376934, 4.606419445542112, 5.671781248741259, 10.233717799702626, 4.817928138026804, 5.7075755744124645, 6.866751651944002, 8.204835340308824), # 177
(6.944302033758534, 5.285088668355891, 7.660754571583465, 8.623218482408008, 8.711196793653805, 4.973894111873309, 4.341932188947932, 5.355700207721038, 9.664745419024355, 4.54383675678105, 5.383461993728603, 6.478135943186929, 7.742963105690853), # 178
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179
)
passenger_arriving_acc = (
(8, 5, 8, 12, 6, 1, 3, 3, 7, 4, 3, 1, 0, 5, 5, 4, 12, 9, 3, 4, 2, 5, 4, 0, 0, 0), # 0
(19, 15, 18, 21, 10, 3, 10, 7, 11, 5, 5, 3, 0, 15, 12, 6, 17, 16, 7, 7, 2, 11, 7, 2, 1, 0), # 1
(34, 33, 26, 31, 21, 11, 15, 17, 13, 7, 5, 3, 0, 23, 23, 12, 24, 26, 15, 12, 5, 14, 9, 5, 1, 0), # 2
(47, 48, 31, 42, 33, 15, 22, 21, 15, 11, 8, 3, 0, 34, 36, 24, 29, 36, 20, 16, 7, 17, 15, 7, 2, 0), # 3
(59, 59, 37, 52, 44, 21, 28, 29, 23, 13, 10, 4, 0, 43, 50, 36, 39, 46, 25, 22, 7, 24, 15, 10, 3, 0), # 4
(71, 72, 50, 60, 52, 27, 33, 34, 28, 15, 14, 6, 0, 52, 58, 41, 47, 53, 31, 25, 10, 27, 22, 16, 3, 0), # 5
(87, 84, 58, 72, 64, 32, 38, 39, 35, 15, 14, 6, 0, 56, 68, 50, 53, 64, 36, 32, 12, 32, 25, 17, 4, 0), # 6
(95, 98, 70, 81, 75, 36, 42, 41, 43, 17, 16, 7, 0, 67, 78, 57, 58, 70, 42, 34, 20, 37, 31, 18, 5, 0), # 7
(112, 118, 75, 99, 85, 41, 46, 52, 53, 22, 19, 8, 0, 82, 89, 68, 65, 85, 46, 36, 24, 41, 33, 21, 7, 0), # 8
(128, 135, 87, 104, 94, 44, 55, 58, 58, 23, 22, 9, 0, 96, 102, 84, 76, 93, 52, 43, 26, 46, 37, 22, 9, 0), # 9
(150, 148, 102, 120, 102, 47, 60, 62, 61, 26, 24, 9, 0, 116, 122, 94, 85, 109, 65, 49, 30, 51, 38, 24, 11, 0), # 10
(166, 166, 118, 135, 115, 56, 67, 68, 66, 29, 26, 10, 0, 124, 141, 108, 95, 123, 74, 55, 34, 59, 42, 27, 11, 0), # 11
(181, 178, 127, 149, 129, 64, 76, 77, 74, 32, 30, 11, 0, 141, 158, 121, 99, 131, 79, 66, 37, 63, 44, 29, 12, 0), # 12
(206, 199, 140, 168, 138, 71, 84, 85, 81, 35, 32, 14, 0, 150, 172, 134, 112, 147, 83, 70, 42, 67, 46, 30, 13, 0), # 13
(219, 211, 153, 178, 149, 76, 89, 92, 86, 37, 36, 14, 0, 164, 184, 145, 123, 164, 94, 74, 46, 69, 53, 35, 15, 0), # 14
(234, 231, 167, 195, 159, 88, 91, 99, 90, 38, 38, 16, 0, 179, 196, 155, 130, 183, 103, 85, 50, 76, 56, 36, 16, 0), # 15
(254, 249, 179, 210, 175, 95, 95, 107, 97, 42, 40, 18, 0, 195, 216, 165, 137, 191, 109, 89, 55, 82, 60, 38, 19, 0), # 16
(269, 262, 192, 222, 193, 106, 101, 116, 104, 45, 41, 21, 0, 205, 235, 172, 146, 206, 121, 95, 57, 90, 62, 40, 21, 0), # 17
(293, 281, 208, 235, 200, 113, 109, 124, 111, 48, 49, 23, 0, 220, 249, 184, 155, 223, 127, 100, 58, 101, 69, 42, 23, 0), # 18
(319, 294, 219, 248, 207, 117, 119, 134, 121, 52, 51, 26, 0, 238, 262, 193, 168, 238, 136, 107, 61, 106, 73, 42, 25, 0), # 19
(335, 308, 237, 263, 222, 122, 126, 137, 131, 54, 53, 28, 0, 255, 279, 206, 178, 253, 144, 112, 67, 114, 78, 44, 25, 0), # 20
(350, 330, 258, 289, 233, 128, 130, 140, 136, 55, 54, 29, 0, 272, 297, 219, 190, 272, 152, 118, 73, 127, 84, 45, 25, 0), # 21
(367, 346, 268, 304, 245, 138, 143, 144, 142, 60, 58, 31, 0, 289, 313, 231, 201, 290, 164, 123, 76, 134, 89, 49, 27, 0), # 22
(390, 381, 285, 312, 258, 142, 153, 150, 149, 64, 61, 33, 0, 310, 331, 240, 216, 301, 171, 134, 79, 140, 98, 53, 29, 0), # 23
(416, 398, 291, 325, 276, 151, 157, 156, 155, 66, 62, 35, 0, 334, 351, 251, 223, 312, 178, 141, 88, 148, 104, 54, 32, 0), # 24
(435, 415, 310, 345, 291, 158, 160, 162, 156, 70, 66, 36, 0, 353, 362, 262, 236, 327, 184, 152, 96, 153, 111, 56, 33, 0), # 25
(450, 439, 321, 356, 295, 168, 166, 170, 165, 74, 71, 38, 0, 369, 380, 272, 246, 350, 194, 163, 101, 162, 117, 63, 33, 0), # 26
(467, 460, 338, 366, 311, 175, 176, 173, 172, 76, 75, 38, 0, 386, 402, 279, 259, 366, 204, 169, 106, 167, 119, 65, 34, 0), # 27
(486, 479, 355, 385, 321, 181, 180, 182, 179, 80, 78, 39, 0, 401, 417, 290, 268, 383, 211, 179, 109, 178, 122, 72, 34, 0), # 28
(508, 498, 368, 400, 337, 187, 185, 190, 184, 82, 81, 40, 0, 419, 437, 298, 275, 398, 225, 188, 111, 186, 127, 74, 36, 0), # 29
(528, 516, 380, 418, 354, 193, 190, 192, 192, 87, 82, 41, 0, 437, 452, 302, 291, 407, 235, 201, 116, 198, 134, 77, 36, 0), # 30
(545, 535, 396, 437, 362, 197, 196, 196, 199, 90, 84, 42, 0, 459, 465, 313, 299, 418, 246, 204, 119, 203, 139, 79, 38, 0), # 31
(562, 558, 407, 453, 369, 203, 203, 202, 201, 95, 88, 44, 0, 478, 481, 327, 311, 437, 261, 210, 124, 209, 142, 81, 39, 0), # 32
(582, 578, 425, 465, 381, 211, 212, 207, 209, 102, 90, 45, 0, 493, 500, 337, 323, 455, 272, 222, 130, 221, 145, 86, 43, 0), # 33
(601, 595, 440, 484, 387, 222, 221, 212, 216, 109, 93, 46, 0, 515, 514, 348, 336, 466, 282, 230, 131, 229, 151, 92, 44, 0), # 34
(617, 614, 454, 501, 400, 231, 228, 217, 225, 114, 96, 48, 0, 530, 531, 353, 349, 480, 290, 238, 134, 242, 162, 94, 47, 0), # 35
(634, 633, 473, 523, 408, 238, 235, 224, 232, 120, 96, 49, 0, 546, 539, 366, 356, 493, 302, 241, 136, 247, 165, 96, 47, 0), # 36
(655, 648, 479, 540, 424, 248, 239, 231, 238, 122, 98, 50, 0, 563, 556, 381, 367, 499, 308, 244, 140, 256, 169, 101, 47, 0), # 37
(674, 666, 498, 548, 436, 252, 246, 237, 249, 124, 102, 50, 0, 586, 574, 391, 381, 512, 314, 250, 144, 263, 175, 105, 48, 0), # 38
(695, 681, 511, 571, 450, 267, 251, 242, 259, 126, 105, 53, 0, 605, 591, 401, 391, 525, 325, 256, 145, 272, 178, 109, 49, 0), # 39
(721, 699, 532, 589, 457, 274, 267, 246, 267, 130, 106, 54, 0, 632, 609, 413, 400, 552, 331, 264, 149, 283, 182, 113, 53, 0), # 40
(742, 716, 544, 617, 468, 280, 273, 248, 276, 132, 107, 56, 0, 652, 630, 427, 411, 565, 342, 271, 151, 291, 188, 114, 57, 0), # 41
(760, 729, 565, 637, 487, 284, 275, 252, 278, 135, 110, 57, 0, 673, 646, 442, 419, 583, 351, 280, 157, 296, 192, 117, 60, 0), # 42
(777, 736, 580, 666, 503, 292, 283, 256, 284, 135, 115, 59, 0, 696, 658, 449, 425, 596, 363, 292, 162, 297, 196, 120, 61, 0), # 43
(793, 752, 594, 687, 513, 299, 297, 260, 291, 139, 118, 59, 0, 720, 671, 456, 434, 602, 377, 297, 167, 306, 200, 122, 61, 0), # 44
(812, 768, 609, 713, 528, 310, 302, 264, 298, 146, 120, 59, 0, 737, 693, 472, 443, 616, 382, 306, 169, 309, 208, 123, 62, 0), # 45
(838, 787, 626, 726, 543, 317, 316, 270, 305, 150, 124, 60, 0, 758, 709, 485, 453, 627, 395, 313, 179, 321, 212, 126, 66, 0), # 46
(855, 800, 647, 742, 558, 321, 323, 279, 308, 155, 126, 61, 0, 783, 729, 500, 468, 637, 408, 323, 183, 329, 215, 130, 70, 0), # 47
(869, 818, 667, 766, 574, 327, 335, 285, 316, 156, 131, 62, 0, 800, 748, 506, 478, 647, 413, 330, 189, 333, 221, 136, 71, 0), # 48
(891, 832, 683, 780, 584, 334, 338, 295, 322, 158, 133, 62, 0, 825, 760, 517, 485, 661, 422, 340, 195, 339, 224, 138, 74, 0), # 49
(909, 845, 691, 797, 606, 339, 345, 302, 333, 159, 136, 64, 0, 848, 777, 523, 492, 674, 434, 347, 198, 344, 229, 141, 79, 0), # 50
(929, 862, 705, 811, 619, 344, 353, 308, 340, 161, 136, 65, 0, 865, 791, 534, 503, 683, 438, 357, 206, 353, 232, 145, 79, 0), # 51
(944, 879, 720, 828, 637, 355, 357, 315, 344, 163, 141, 69, 0, 882, 803, 546, 512, 695, 442, 361, 209, 359, 239, 147, 80, 0), # 52
(964, 900, 742, 842, 649, 367, 365, 320, 356, 167, 144, 72, 0, 898, 822, 560, 520, 708, 447, 364, 217, 370, 241, 157, 83, 0), # 53
(983, 920, 749, 852, 660, 374, 370, 324, 364, 173, 146, 73, 0, 915, 842, 573, 529, 719, 453, 368, 221, 382, 245, 160, 84, 0), # 54
(1000, 938, 765, 872, 678, 384, 375, 332, 371, 177, 149, 75, 0, 930, 858, 585, 544, 738, 461, 373, 223, 386, 248, 163, 85, 0), # 55
(1017, 953, 779, 887, 694, 395, 378, 338, 377, 179, 152, 77, 0, 944, 878, 595, 554, 753, 467, 382, 226, 393, 251, 165, 86, 0), # 56
(1032, 974, 792, 905, 712, 400, 382, 346, 381, 184, 152, 79, 0, 964, 897, 610, 557, 776, 477, 387, 232, 398, 257, 167, 88, 0), # 57
(1051, 991, 805, 924, 720, 409, 385, 353, 384, 185, 157, 80, 0, 981, 912, 619, 564, 789, 482, 394, 241, 403, 260, 173, 90, 0), # 58
(1072, 1007, 821, 939, 737, 415, 391, 365, 389, 188, 161, 81, 0, 1004, 931, 628, 574, 802, 486, 406, 246, 408, 266, 174, 92, 0), # 59
(1092, 1026, 830, 956, 750, 426, 398, 371, 396, 189, 162, 83, 0, 1014, 947, 638, 590, 813, 493, 410, 251, 418, 276, 178, 94, 0), # 60
(1111, 1046, 848, 972, 759, 432, 406, 379, 404, 194, 165, 85, 0, 1028, 961, 649, 597, 828, 503, 416, 253, 428, 283, 181, 96, 0), # 61
(1127, 1057, 864, 989, 771, 437, 414, 391, 411, 197, 172, 87, 0, 1048, 977, 661, 607, 841, 512, 420, 255, 434, 291, 183, 96, 0), # 62
(1141, 1073, 883, 1011, 785, 440, 420, 396, 417, 199, 173, 89, 0, 1068, 989, 676, 619, 848, 519, 431, 257, 441, 296, 187, 98, 0), # 63
(1157, 1087, 891, 1029, 801, 445, 427, 401, 424, 201, 177, 90, 0, 1081, 1005, 687, 627, 862, 524, 437, 264, 446, 306, 190, 99, 0), # 64
(1182, 1107, 910, 1043, 818, 450, 430, 404, 429, 203, 180, 92, 0, 1102, 1015, 699, 637, 878, 535, 442, 265, 452, 314, 191, 100, 0), # 65
(1203, 1126, 918, 1064, 827, 461, 441, 412, 434, 206, 183, 93, 0, 1117, 1031, 715, 646, 892, 546, 445, 272, 454, 315, 195, 101, 0), # 66
(1224, 1144, 931, 1079, 845, 467, 452, 416, 439, 208, 186, 94, 0, 1137, 1046, 722, 652, 910, 555, 452, 277, 460, 321, 197, 102, 0), # 67
(1243, 1163, 945, 1092, 859, 475, 456, 421, 445, 212, 186, 97, 0, 1159, 1062, 732, 658, 926, 560, 458, 279, 468, 329, 197, 102, 0), # 68
(1259, 1172, 963, 1107, 869, 480, 465, 429, 448, 216, 190, 97, 0, 1171, 1073, 742, 666, 939, 567, 463, 283, 472, 336, 200, 105, 0), # 69
(1279, 1195, 987, 1128, 884, 485, 470, 434, 456, 220, 193, 98, 0, 1181, 1084, 749, 679, 951, 573, 470, 288, 483, 346, 203, 106, 0), # 70
(1294, 1210, 998, 1147, 891, 494, 480, 436, 460, 226, 196, 100, 0, 1197, 1101, 761, 689, 965, 582, 481, 295, 487, 352, 205, 106, 0), # 71
(1318, 1226, 1005, 1164, 909, 502, 485, 441, 471, 230, 200, 101, 0, 1217, 1121, 776, 697, 981, 588, 492, 302, 492, 358, 209, 108, 0), # 72
(1336, 1243, 1014, 1179, 923, 510, 489, 443, 476, 234, 200, 102, 0, 1239, 1133, 786, 705, 1000, 596, 499, 308, 504, 364, 212, 110, 0), # 73
(1361, 1258, 1027, 1192, 937, 519, 495, 449, 479, 238, 202, 104, 0, 1259, 1155, 802, 717, 1019, 604, 507, 314, 512, 366, 217, 111, 0), # 74
(1383, 1275, 1040, 1211, 947, 525, 499, 457, 486, 241, 204, 108, 0, 1280, 1168, 820, 727, 1034, 617, 513, 321, 521, 377, 219, 112, 0), # 75
(1404, 1293, 1056, 1225, 964, 531, 506, 459, 492, 247, 205, 108, 0, 1297, 1185, 827, 730, 1046, 626, 519, 326, 531, 383, 223, 113, 0), # 76
(1416, 1314, 1072, 1242, 979, 535, 509, 463, 503, 248, 210, 110, 0, 1318, 1199, 842, 735, 1061, 632, 522, 330, 534, 387, 225, 115, 0), # 77
(1435, 1328, 1096, 1260, 996, 547, 512, 472, 516, 252, 215, 111, 0, 1335, 1211, 856, 742, 1067, 639, 529, 334, 540, 393, 227, 116, 0), # 78
(1451, 1346, 1105, 1272, 1003, 558, 517, 477, 522, 256, 216, 114, 0, 1357, 1224, 872, 750, 1079, 646, 534, 340, 544, 399, 234, 117, 0), # 79
(1473, 1354, 1114, 1293, 1024, 560, 522, 481, 523, 260, 218, 115, 0, 1370, 1243, 887, 759, 1092, 655, 539, 346, 553, 404, 238, 117, 0), # 80
(1495, 1368, 1129, 1308, 1031, 565, 528, 490, 533, 263, 218, 118, 0, 1390, 1258, 901, 772, 1103, 666, 542, 350, 556, 408, 239, 118, 0), # 81
(1510, 1382, 1145, 1323, 1051, 571, 532, 495, 543, 263, 221, 118, 0, 1418, 1269, 909, 780, 1120, 671, 547, 354, 567, 414, 243, 119, 0), # 82
(1529, 1396, 1157, 1337, 1064, 579, 540, 507, 550, 263, 223, 120, 0, 1432, 1280, 923, 788, 1136, 675, 548, 358, 576, 421, 244, 120, 0), # 83
(1549, 1413, 1174, 1351, 1081, 585, 542, 511, 553, 266, 224, 122, 0, 1456, 1296, 930, 801, 1151, 680, 552, 363, 579, 423, 245, 121, 0), # 84
(1570, 1430, 1186, 1368, 1092, 591, 548, 516, 560, 270, 225, 123, 0, 1474, 1318, 943, 809, 1171, 689, 556, 371, 588, 428, 245, 123, 0), # 85
(1594, 1442, 1197, 1380, 1107, 594, 555, 522, 572, 277, 225, 123, 0, 1490, 1334, 952, 818, 1193, 689, 568, 374, 593, 435, 248, 124, 0), # 86
(1617, 1459, 1209, 1401, 1118, 600, 565, 529, 579, 279, 229, 124, 0, 1502, 1349, 967, 827, 1205, 698, 574, 378, 599, 442, 252, 124, 0), # 87
(1639, 1471, 1217, 1416, 1130, 609, 572, 534, 587, 280, 231, 128, 0, 1522, 1368, 980, 837, 1218, 709, 580, 382, 605, 448, 256, 125, 0), # 88
(1657, 1480, 1232, 1438, 1143, 613, 580, 539, 596, 283, 233, 128, 0, 1542, 1381, 996, 843, 1227, 721, 588, 387, 609, 454, 256, 125, 0), # 89
(1670, 1493, 1250, 1447, 1157, 620, 586, 542, 602, 286, 236, 130, 0, 1555, 1394, 1012, 852, 1237, 729, 592, 392, 615, 459, 257, 127, 0), # 90
(1692, 1500, 1266, 1458, 1176, 624, 592, 547, 610, 292, 237, 132, 0, 1571, 1410, 1025, 861, 1246, 737, 595, 398, 620, 464, 259, 128, 0), # 91
(1716, 1520, 1279, 1477, 1189, 629, 597, 554, 613, 295, 238, 132, 0, 1589, 1421, 1036, 870, 1258, 748, 599, 401, 627, 470, 262, 129, 0), # 92
(1741, 1539, 1293, 1494, 1202, 639, 608, 561, 619, 297, 240, 132, 0, 1612, 1433, 1044, 878, 1268, 753, 602, 405, 634, 472, 265, 130, 0), # 93
(1755, 1551, 1307, 1512, 1215, 651, 613, 565, 624, 301, 242, 134, 0, 1633, 1444, 1054, 889, 1284, 764, 606, 409, 646, 480, 274, 130, 0), # 94
(1776, 1560, 1317, 1525, 1223, 658, 620, 570, 635, 306, 244, 134, 0, 1652, 1459, 1064, 896, 1294, 770, 618, 414, 656, 485, 274, 130, 0), # 95
(1788, 1573, 1334, 1539, 1235, 668, 626, 576, 639, 309, 247, 135, 0, 1670, 1484, 1072, 909, 1306, 779, 623, 419, 659, 488, 279, 131, 0), # 96
(1803, 1589, 1347, 1557, 1250, 672, 633, 577, 650, 309, 249, 136, 0, 1686, 1504, 1081, 910, 1327, 786, 635, 419, 666, 495, 280, 134, 0), # 97
(1817, 1599, 1355, 1570, 1261, 676, 640, 582, 662, 312, 252, 137, 0, 1707, 1520, 1094, 915, 1340, 792, 641, 425, 673, 496, 282, 135, 0), # 98
(1832, 1608, 1370, 1581, 1272, 683, 643, 586, 674, 315, 256, 137, 0, 1726, 1538, 1111, 925, 1348, 795, 645, 430, 683, 499, 288, 136, 0), # 99
(1844, 1621, 1383, 1589, 1283, 689, 649, 589, 681, 315, 258, 139, 0, 1738, 1552, 1127, 937, 1362, 805, 653, 442, 686, 502, 293, 137, 0), # 100
(1862, 1638, 1397, 1605, 1296, 696, 654, 593, 688, 318, 259, 140, 0, 1756, 1561, 1138, 941, 1379, 810, 657, 446, 691, 508, 294, 137, 0), # 101
(1875, 1654, 1413, 1624, 1312, 699, 659, 599, 698, 319, 263, 141, 0, 1779, 1573, 1143, 947, 1392, 813, 663, 449, 700, 514, 297, 137, 0), # 102
(1891, 1666, 1424, 1641, 1329, 706, 664, 602, 711, 321, 264, 142, 0, 1798, 1587, 1155, 952, 1406, 817, 670, 455, 706, 517, 298, 139, 0), # 103
(1907, 1677, 1436, 1655, 1347, 710, 668, 609, 715, 324, 266, 147, 0, 1813, 1604, 1162, 959, 1415, 822, 676, 458, 712, 524, 299, 139, 0), # 104
(1918, 1685, 1454, 1672, 1358, 720, 675, 613, 721, 329, 270, 147, 0, 1825, 1614, 1174, 970, 1427, 826, 685, 459, 719, 529, 300, 140, 0), # 105
(1931, 1706, 1466, 1687, 1378, 724, 681, 615, 725, 333, 274, 147, 0, 1836, 1626, 1189, 978, 1448, 829, 688, 460, 722, 538, 306, 141, 0), # 106
(1948, 1715, 1483, 1711, 1393, 732, 685, 620, 732, 334, 277, 149, 0, 1853, 1635, 1201, 993, 1461, 838, 689, 462, 731, 543, 310, 141, 0), # 107
(1971, 1724, 1493, 1725, 1408, 740, 693, 627, 736, 338, 280, 151, 0, 1864, 1650, 1216, 1006, 1474, 841, 697, 466, 735, 549, 312, 141, 0), # 108
(1992, 1742, 1510, 1738, 1415, 744, 703, 636, 744, 341, 284, 151, 0, 1881, 1663, 1229, 1011, 1490, 846, 701, 470, 746, 549, 316, 144, 0), # 109
(2013, 1754, 1525, 1756, 1432, 750, 707, 642, 750, 342, 286, 153, 0, 1899, 1679, 1232, 1015, 1498, 857, 709, 475, 752, 554, 318, 147, 0), # 110
(2031, 1766, 1539, 1773, 1445, 755, 712, 651, 759, 344, 287, 155, 0, 1919, 1695, 1243, 1024, 1507, 866, 715, 481, 755, 561, 325, 149, 0), # 111
(2045, 1784, 1551, 1789, 1459, 760, 717, 659, 769, 344, 288, 156, 0, 1937, 1706, 1259, 1034, 1525, 869, 722, 486, 759, 571, 326, 150, 0), # 112
(2061, 1799, 1566, 1804, 1474, 766, 724, 665, 771, 347, 289, 157, 0, 1956, 1714, 1265, 1044, 1542, 875, 728, 491, 768, 576, 335, 151, 0), # 113
(2081, 1811, 1582, 1820, 1488, 774, 730, 669, 777, 350, 289, 157, 0, 1966, 1737, 1273, 1052, 1550, 884, 732, 495, 777, 579, 339, 152, 0), # 114
(2095, 1829, 1595, 1831, 1502, 781, 733, 674, 785, 353, 292, 157, 0, 1983, 1749, 1285, 1062, 1559, 892, 734, 498, 785, 583, 341, 153, 0), # 115
(2113, 1841, 1612, 1846, 1514, 787, 739, 678, 789, 354, 295, 157, 0, 1997, 1770, 1299, 1074, 1567, 901, 739, 505, 792, 589, 342, 153, 0), # 116
(2135, 1859, 1624, 1858, 1526, 797, 745, 682, 801, 355, 298, 157, 0, 2013, 1780, 1313, 1083, 1577, 913, 744, 509, 797, 592, 347, 155, 0), # 117
(2156, 1876, 1640, 1873, 1540, 804, 754, 689, 807, 360, 301, 160, 0, 2031, 1794, 1326, 1086, 1590, 921, 753, 513, 801, 600, 350, 156, 0), # 118
(2168, 1891, 1653, 1878, 1554, 807, 759, 692, 813, 365, 302, 164, 0, 2043, 1807, 1338, 1094, 1599, 925, 755, 517, 808, 604, 354, 158, 0), # 119
(2179, 1902, 1663, 1891, 1561, 814, 764, 695, 823, 370, 304, 164, 0, 2060, 1818, 1344, 1099, 1612, 931, 759, 520, 815, 611, 355, 158, 0), # 120
(2190, 1912, 1673, 1899, 1570, 823, 768, 700, 831, 374, 305, 164, 0, 2073, 1830, 1351, 1106, 1626, 934, 763, 523, 823, 616, 356, 159, 0), # 121
(2205, 1920, 1689, 1910, 1581, 829, 771, 703, 841, 382, 310, 166, 0, 2096, 1843, 1367, 1113, 1641, 939, 771, 529, 832, 622, 362, 160, 0), # 122
(2222, 1942, 1698, 1920, 1593, 835, 774, 708, 848, 385, 313, 168, 0, 2109, 1860, 1377, 1126, 1656, 943, 778, 536, 842, 625, 368, 161, 0), # 123
(2242, 1949, 1713, 1938, 1604, 839, 778, 712, 851, 387, 314, 169, 0, 2123, 1872, 1386, 1137, 1669, 950, 784, 536, 847, 630, 372, 161, 0), # 124
(2259, 1967, 1721, 1954, 1616, 845, 787, 720, 855, 389, 315, 169, 0, 2131, 1897, 1398, 1146, 1682, 957, 793, 544, 852, 639, 376, 163, 0), # 125
(2276, 1980, 1736, 1964, 1625, 852, 792, 728, 864, 393, 316, 170, 0, 2145, 1914, 1405, 1155, 1693, 961, 806, 549, 858, 642, 377, 164, 0), # 126
(2291, 1992, 1746, 1976, 1640, 858, 799, 730, 871, 397, 317, 173, 0, 2164, 1928, 1415, 1159, 1711, 968, 811, 556, 863, 647, 377, 164, 0), # 127
(2307, 1996, 1760, 1986, 1661, 864, 804, 733, 873, 399, 319, 173, 0, 2184, 1944, 1427, 1174, 1720, 973, 816, 559, 873, 654, 380, 166, 0), # 128
(2326, 2006, 1770, 1998, 1671, 870, 809, 735, 875, 401, 321, 174, 0, 2201, 1958, 1437, 1184, 1734, 983, 824, 564, 879, 656, 382, 168, 0), # 129
(2340, 2013, 1784, 2014, 1685, 876, 815, 737, 878, 404, 321, 174, 0, 2214, 1967, 1451, 1188, 1746, 987, 829, 569, 885, 662, 384, 168, 0), # 130
(2357, 2025, 1800, 2026, 1700, 884, 823, 743, 883, 404, 324, 175, 0, 2229, 1978, 1463, 1192, 1761, 996, 831, 576, 892, 665, 387, 169, 0), # 131
(2373, 2033, 1813, 2048, 1712, 891, 828, 749, 892, 410, 326, 175, 0, 2245, 1999, 1471, 1196, 1772, 1002, 836, 584, 896, 667, 390, 170, 0), # 132
(2388, 2041, 1820, 2062, 1724, 897, 830, 753, 897, 412, 328, 178, 0, 2263, 2013, 1484, 1203, 1794, 1012, 841, 588, 902, 672, 392, 170, 0), # 133
(2400, 2056, 1836, 2072, 1736, 906, 835, 758, 901, 413, 329, 180, 0, 2283, 2019, 1491, 1215, 1810, 1016, 846, 593, 907, 676, 393, 171, 0), # 134
(2412, 2066, 1852, 2086, 1746, 912, 838, 759, 910, 413, 333, 180, 0, 2299, 2031, 1500, 1223, 1825, 1023, 849, 601, 914, 680, 394, 172, 0), # 135
(2427, 2076, 1867, 2096, 1759, 924, 844, 760, 917, 418, 337, 182, 0, 2316, 2038, 1514, 1231, 1833, 1028, 854, 607, 919, 683, 395, 173, 0), # 136
(2441, 2092, 1887, 2105, 1772, 930, 855, 765, 922, 419, 338, 184, 0, 2333, 2058, 1527, 1239, 1844, 1036, 857, 610, 924, 687, 396, 173, 0), # 137
(2454, 2102, 1905, 2116, 1787, 934, 857, 767, 923, 420, 341, 185, 0, 2351, 2068, 1532, 1249, 1856, 1039, 865, 611, 931, 694, 399, 173, 0), # 138
(2472, 2113, 1915, 2132, 1805, 943, 862, 768, 931, 421, 343, 185, 0, 2371, 2080, 1546, 1256, 1868, 1044, 873, 613, 934, 700, 404, 176, 0), # 139
(2487, 2124, 1922, 2149, 1813, 952, 869, 772, 941, 421, 344, 186, 0, 2384, 2089, 1553, 1260, 1880, 1049, 879, 624, 942, 703, 405, 178, 0), # 140
(2502, 2136, 1931, 2163, 1827, 957, 875, 775, 944, 424, 348, 187, 0, 2398, 2102, 1567, 1265, 1896, 1056, 889, 628, 948, 706, 406, 178, 0), # 141
(2523, 2144, 1950, 2178, 1845, 966, 879, 779, 950, 424, 351, 189, 0, 2412, 2115, 1578, 1276, 1915, 1061, 893, 633, 952, 709, 410, 179, 0), # 142
(2537, 2156, 1967, 2195, 1858, 971, 884, 783, 956, 426, 353, 189, 0, 2429, 2129, 1588, 1282, 1928, 1064, 900, 637, 957, 718, 411, 180, 0), # 143
(2553, 2165, 1985, 2205, 1870, 975, 889, 785, 962, 426, 355, 189, 0, 2450, 2143, 1598, 1296, 1941, 1077, 903, 641, 962, 726, 413, 183, 0), # 144
(2570, 2181, 1999, 2220, 1883, 982, 898, 789, 967, 430, 357, 190, 0, 2471, 2156, 1603, 1299, 1956, 1082, 906, 645, 967, 731, 419, 183, 0), # 145
(2584, 2195, 2010, 2237, 1893, 989, 903, 794, 971, 432, 359, 191, 0, 2483, 2173, 1616, 1311, 1967, 1088, 910, 645, 974, 736, 420, 184, 0), # 146
(2602, 2203, 2019, 2243, 1904, 992, 905, 803, 975, 437, 363, 192, 0, 2496, 2187, 1624, 1320, 1978, 1092, 917, 648, 980, 740, 424, 186, 0), # 147
(2614, 2216, 2032, 2260, 1922, 996, 911, 808, 982, 439, 369, 193, 0, 2506, 2200, 1629, 1327, 1992, 1096, 920, 652, 983, 744, 428, 187, 0), # 148
(2628, 2226, 2044, 2271, 1935, 1002, 914, 809, 988, 442, 373, 194, 0, 2523, 2207, 1634, 1334, 2009, 1099, 925, 655, 991, 749, 430, 187, 0), # 149
(2644, 2238, 2057, 2284, 1950, 1011, 915, 814, 998, 443, 377, 196, 0, 2541, 2218, 1641, 1338, 2025, 1105, 930, 658, 999, 751, 430, 187, 0), # 150
(2651, 2249, 2070, 2294, 1959, 1021, 921, 820, 1002, 444, 377, 197, 0, 2556, 2226, 1649, 1348, 2036, 1116, 938, 661, 1008, 754, 432, 187, 0), # 151
(2664, 2255, 2085, 2311, 1965, 1026, 925, 823, 1011, 446, 378, 198, 0, 2567, 2243, 1653, 1358, 2046, 1120, 942, 665, 1017, 757, 434, 188, 0), # 152
(2679, 2260, 2091, 2324, 1979, 1031, 926, 828, 1016, 449, 381, 201, 0, 2582, 2257, 1660, 1364, 2055, 1128, 945, 668, 1019, 764, 436, 189, 0), # 153
(2693, 2278, 2109, 2338, 1992, 1034, 933, 831, 1025, 450, 382, 201, 0, 2598, 2267, 1675, 1372, 2064, 1131, 949, 671, 1021, 768, 438, 189, 0), # 154
(2704, 2288, 2123, 2358, 2005, 1044, 942, 832, 1039, 451, 382, 201, 0, 2614, 2277, 1683, 1381, 2077, 1134, 953, 675, 1027, 774, 439, 190, 0), # 155
(2722, 2300, 2131, 2367, 2019, 1047, 944, 838, 1045, 452, 382, 202, 0, 2627, 2287, 1692, 1390, 2095, 1141, 957, 680, 1031, 775, 440, 193, 0), # 156
(2735, 2306, 2140, 2386, 2029, 1047, 950, 843, 1055, 458, 384, 203, 0, 2654, 2294, 1701, 1399, 2104, 1150, 961, 683, 1038, 781, 441, 193, 0), # 157
(2747, 2325, 2157, 2388, 2039, 1053, 959, 845, 1060, 462, 386, 204, 0, 2665, 2304, 1707, 1406, 2126, 1154, 970, 684, 1043, 782, 442, 193, 0), # 158
(2760, 2338, 2164, 2397, 2049, 1057, 967, 845, 1067, 466, 387, 204, 0, 2681, 2314, 1717, 1409, 2142, 1158, 974, 691, 1048, 787, 444, 195, 0), # 159
(2777, 2345, 2169, 2407, 2064, 1066, 974, 851, 1069, 469, 388, 205, 0, 2692, 2321, 1727, 1417, 2156, 1165, 976, 696, 1052, 791, 446, 195, 0), # 160
(2787, 2361, 2180, 2426, 2075, 1068, 974, 855, 1076, 471, 389, 206, 0, 2707, 2327, 1734, 1420, 2170, 1170, 981, 698, 1054, 793, 448, 196, 0), # 161
(2801, 2368, 2192, 2444, 2083, 1074, 975, 856, 1082, 473, 391, 206, 0, 2714, 2340, 1744, 1428, 2182, 1177, 990, 699, 1056, 796, 453, 197, 0), # 162
(2814, 2376, 2207, 2447, 2089, 1077, 978, 859, 1088, 475, 392, 206, 0, 2727, 2353, 1757, 1433, 2194, 1183, 991, 702, 1064, 799, 455, 201, 0), # 163
(2830, 2381, 2216, 2456, 2098, 1083, 979, 863, 1093, 478, 396, 206, 0, 2749, 2372, 1763, 1435, 2203, 1187, 999, 705, 1072, 801, 457, 201, 0), # 164
(2843, 2392, 2227, 2467, 2108, 1087, 982, 868, 1098, 479, 396, 206, 0, 2764, 2383, 1768, 1441, 2217, 1194, 1002, 709, 1078, 802, 459, 202, 0), # 165
(2851, 2405, 2235, 2479, 2118, 1093, 987, 872, 1104, 480, 398, 206, 0, 2780, 2398, 1772, 1446, 2227, 1198, 1004, 711, 1079, 806, 464, 202, 0), # 166
(2864, 2408, 2245, 2495, 2128, 1099, 990, 878, 1109, 481, 401, 206, 0, 2794, 2409, 1779, 1451, 2240, 1201, 1006, 714, 1087, 810, 465, 203, 0), # 167
(2872, 2414, 2255, 2503, 2139, 1101, 991, 880, 1113, 482, 403, 208, 0, 2804, 2417, 1787, 1452, 2249, 1205, 1013, 718, 1091, 810, 468, 204, 0), # 168
(2883, 2425, 2265, 2508, 2147, 1106, 993, 885, 1118, 482, 405, 211, 0, 2813, 2426, 1791, 1457, 2262, 1215, 1014, 721, 1095, 811, 471, 204, 0), # 169
(2899, 2430, 2270, 2518, 2156, 1107, 995, 890, 1126, 485, 407, 211, 0, 2825, 2433, 1792, 1460, 2273, 1230, 1020, 723, 1098, 813, 472, 204, 0), # 170
(2911, 2438, 2285, 2526, 2165, 1111, 999, 892, 1131, 486, 410, 211, 0, 2834, 2439, 1798, 1468, 2281, 1235, 1024, 725, 1100, 815, 474, 205, 0), # 171
(2923, 2444, 2299, 2533, 2172, 1114, 1001, 896, 1136, 487, 410, 211, 0, 2847, 2446, 1804, 1474, 2292, 1242, 1025, 727, 1104, 816, 476, 205, 0), # 172
(2936, 2448, 2306, 2537, 2184, 1116, 1006, 900, 1138, 490, 410, 211, 0, 2857, 2451, 1807, 1476, 2299, 1245, 1027, 729, 1109, 822, 477, 205, 0), # 173
(2941, 2452, 2309, 2544, 2192, 1121, 1007, 906, 1141, 491, 411, 211, 0, 2869, 2455, 1813, 1478, 2302, 1248, 1029, 733, 1112, 824, 477, 205, 0), # 174
(2946, 2460, 2319, 2550, 2199, 1127, 1008, 907, 1144, 492, 413, 212, 0, 2873, 2462, 1819, 1480, 2312, 1256, 1029, 734, 1114, 826, 479, 206, 0), # 175
(2954, 2461, 2324, 2554, 2210, 1134, 1011, 910, 1146, 492, 414, 213, 0, 2885, 2468, 1823, 1482, 2321, 1259, 1031, 736, 1121, 826, 479, 206, 0), # 176
(2964, 2469, 2332, 2562, 2213, 1136, 1013, 911, 1150, 495, 414, 213, 0, 2892, 2474, 1829, 1483, 2326, 1263, 1032, 740, 1121, 828, 483, 206, 0), # 177
(2971, 2475, 2345, 2566, 2218, 1139, 1016, 911, 1154, 497, 414, 215, 0, 2905, 2474, 1829, 1484, 2330, 1267, 1032, 741, 1124, 834, 484, 207, 0), # 178
(2971, 2475, 2345, 2566, 2218, 1139, 1016, 911, 1154, 497, 414, 215, 0, 2905, 2474, 1829, 1484, 2330, 1267, 1032, 741, 1124, 834, 484, 207, 0), # 179
)
passenger_arriving_rate = (
(9.037558041069182, 9.116726123493724, 7.81692484441876, 8.389801494715634, 6.665622729131535, 3.295587678639206, 3.7314320538365235, 3.4898821297345672, 3.654059437300804, 1.781106756985067, 1.261579549165681, 0.7346872617459261, 0.0, 9.150984382641052, 8.081559879205185, 6.307897745828405, 5.3433202709552, 7.308118874601608, 4.885834981628395, 3.7314320538365235, 2.3539911990280045, 3.3328113645657673, 2.7966004982385453, 1.5633849688837522, 0.828793283953975, 0.0), # 0
(9.637788873635953, 9.718600145338852, 8.333019886995228, 8.943944741923431, 7.106988404969084, 3.5132827632446837, 3.9775220471373247, 3.7196352921792815, 3.8953471957997454, 1.8985413115247178, 1.3449288407868398, 0.7831824991221532, 0.0, 9.755624965391739, 8.615007490343684, 6.724644203934198, 5.695623934574153, 7.790694391599491, 5.207489409050994, 3.9775220471373247, 2.509487688031917, 3.553494202484542, 2.9813149139744777, 1.6666039773990458, 0.883509104121714, 0.0), # 1
(10.236101416163518, 10.318085531970116, 8.847063428321121, 9.495883401297473, 7.546755568499692, 3.7301093702380674, 4.222636657164634, 3.948468935928315, 4.135672084126529, 2.015511198759246, 1.4279469446328943, 0.8314848978079584, 0.0, 10.357856690777442, 9.14633387588754, 7.13973472316447, 6.046533596277737, 8.271344168253059, 5.527856510299641, 4.222636657164634, 2.6643638358843336, 3.773377784249846, 3.1652944670991583, 1.7694126856642243, 0.938007775633647, 0.0), # 2
(10.830164027663812, 10.912803828195138, 9.357016303979782, 10.0434281501683, 7.983194011202283, 3.9452076537143688, 4.46580327748316, 4.175475868120881, 4.374081096552656, 2.1315522142917818, 1.5103045235482149, 0.8794028527395692, 0.0, 10.955291051257605, 9.67343138013526, 7.551522617741075, 6.3946566428753435, 8.748162193105312, 5.845666215369232, 4.46580327748316, 2.818005466938835, 3.9915970056011414, 3.3478093833894342, 1.8714032607959565, 0.9920730752904672, 0.0), # 3
(11.417645067148767, 11.500376578821527, 9.860839349554556, 10.584389665866468, 8.41457352455579, 4.1577177677686015, 4.706049301657613, 4.399748895896186, 4.609621227349624, 2.246200153725456, 1.5916722403771728, 0.9267447588532147, 0.0, 11.54553953929167, 10.19419234738536, 7.958361201885864, 6.738600461176366, 9.219242454699248, 6.159648454254661, 4.706049301657613, 2.969798405549001, 4.207286762277895, 3.528129888622157, 1.9721678699109113, 1.0454887798928663, 0.0), # 4
(11.996212893630318, 12.07842532865692, 10.356493400628777, 11.11657862572253, 8.839163900039136, 4.366779866495776, 4.942402123252702, 4.620380826393444, 4.841339470788935, 2.3589908126633987, 1.67172075796414, 0.9733190110851223, 0.0, 12.126213647339089, 10.706509121936344, 8.358603789820698, 7.076972437990195, 9.68267894157787, 6.468533156950822, 4.942402123252702, 3.119128476068411, 4.419581950019568, 3.705526208574178, 2.071298680125756, 1.0980386662415385, 0.0), # 5
(12.5635358661204, 12.644571622508925, 10.8419392927858, 11.63780570706703, 9.255234929131252, 4.571534103990907, 5.173889135833137, 4.836464466751867, 5.068282821142089, 2.469459986708742, 1.750120739153485, 1.0189340043715214, 0.0, 12.694924867859292, 11.208274048086732, 8.750603695767424, 7.408379960126224, 10.136565642284179, 6.771050253452613, 5.173889135833137, 3.265381502850648, 4.627617464565626, 3.8792685690223445, 2.16838785855716, 1.1495065111371752, 0.0), # 6
(13.117282343630944, 13.196437005185167, 11.315137861608953, 12.145881587230525, 9.661056403311065, 4.771120634349007, 5.399537732963626, 5.047092624110664, 5.289498272680586, 2.5771434714646144, 1.8265428467895808, 1.0633981336486396, 0.0, 13.249284693311735, 11.697379470135033, 9.132714233947903, 7.7314304143938415, 10.578996545361171, 7.06592967375493, 5.399537732963626, 3.4079433102492906, 4.830528201655532, 4.048627195743509, 2.2630275723217905, 1.1996760913804698, 0.0), # 7
(13.655120685173882, 13.731643021493262, 11.774049942681595, 12.638616943543553, 10.054898114057503, 4.964679611665085, 5.618375308208878, 5.251358105609044, 5.504032819675924, 2.681577062534149, 1.9006577437167966, 1.1065197938527056, 0.0, 13.786904616155851, 12.171717732379758, 9.503288718583983, 8.044731187602444, 11.008065639351848, 7.351901347852662, 5.618375308208878, 3.5461997226179176, 5.027449057028751, 4.212872314514518, 2.3548099885363194, 1.248331183772115, 0.0), # 8
(14.174719249761154, 14.247811216240837, 12.216636371587056, 13.11382245333668, 10.43502985284949, 5.151351190034158, 5.829429255133608, 5.4483537183862225, 5.710933456399605, 2.782296555520474, 1.9721360927795035, 1.1481073799199473, 0.0, 14.305396128851092, 12.629181179119417, 9.860680463897518, 8.34688966656142, 11.42186691279921, 7.627695205740712, 5.829429255133608, 3.679536564310113, 5.217514926424745, 4.371274151112227, 2.4433272743174115, 1.2952555651128035, 0.0), # 9
(14.673746396404677, 14.7425631342355, 12.640857983908687, 13.569308793940438, 10.799721411165962, 5.330275523551238, 6.031726967302519, 5.637172269581408, 5.909247177123128, 2.878837746026722, 2.0406485568220725, 1.187969286786593, 0.0, 14.802370723856898, 13.06766215465252, 10.20324278411036, 8.636513238080164, 11.818494354246257, 7.892041177413972, 6.031726967302519, 3.8073396596794558, 5.399860705582981, 4.52310293131348, 2.5281715967817378, 1.3402330122032275, 0.0), # 10
(15.149870484116411, 15.213520320284891, 13.044675615229824, 14.002886642685386, 11.14724258048584, 5.500592766311337, 6.224295838280325, 5.816906566333811, 6.098020976117995, 2.970736429656024, 2.105865798688875, 1.2259139093888718, 0.0, 15.2754398936327, 13.485053003277587, 10.529328993444373, 8.912209288968072, 12.19604195223599, 8.143669192867335, 6.224295838280325, 3.9289948330795266, 5.57362129024292, 4.66762888089513, 2.6089351230459648, 1.3830473018440812, 0.0), # 11
(15.600759871908263, 15.6583043191966, 13.42605010113381, 14.412366676902078, 11.475863152288053, 5.6614430724094635, 6.406163261631731, 5.986649415782641, 6.276301847655707, 3.0575284020115086, 2.1674584812242808, 1.2617496426630104, 0.0, 15.722215130637963, 13.879246069293112, 10.837292406121403, 9.172585206034523, 12.552603695311413, 8.381309182095698, 6.406163261631731, 4.043887908863902, 5.737931576144026, 4.804122225634027, 2.6852100202267626, 1.4234822108360548, 0.0), # 12
(16.02408291879218, 16.074536675778273, 13.782942277203993, 14.795559573921057, 11.783852918051522, 5.8119665959406355, 6.576356630921451, 6.145493625067111, 6.443136786007759, 3.138749458696308, 2.225097267272661, 1.2952848815452382, 0.0, 16.140307927332124, 14.248133696997618, 11.125486336363304, 9.416248376088921, 12.886273572015519, 8.603691075093955, 6.576356630921451, 4.151404711386168, 5.891926459025761, 4.93185319130702, 2.756588455440799, 1.4613215159798432, 0.0), # 13
(16.41750798378009, 16.45983893483752, 14.113312979023721, 15.150276011072872, 12.069481669255186, 5.9513034909998614, 6.733903339714195, 6.292532001326435, 6.597572785445653, 3.2139353953135514, 2.2784528196783858, 1.3263280209717843, 0.0, 16.527329776174614, 14.589608230689624, 11.392264098391927, 9.641806185940652, 13.195145570891306, 8.80954480185701, 6.733903339714195, 4.250931064999901, 6.034740834627593, 5.050092003690958, 2.8226625958047444, 1.4963489940761385, 0.0), # 14
(16.77870342588394, 16.811832641181958, 14.415123042176313, 15.474326665688082, 12.33101919737797, 6.078593911682158, 6.877830781574663, 6.426857351699818, 6.738656840240891, 3.2826220074663714, 2.3271958012858263, 1.3546874558788757, 0.0, 16.880892169624886, 14.90156201466763, 11.63597900642913, 9.847866022399112, 13.477313680481782, 8.997600292379746, 6.877830781574663, 4.341852794058684, 6.165509598688985, 5.158108888562695, 2.883024608435263, 1.5283484219256327, 0.0), # 15
(17.10533760411564, 17.128139339619217, 14.686333302245139, 15.765522215097217, 12.566735293898798, 6.192978012082533, 7.007166350067579, 6.547562483326471, 6.865435944664972, 3.344345090757899, 2.370996874939354, 1.380171581202741, 0.0, 17.198606600142384, 15.181887393230149, 11.85498437469677, 10.033035272273695, 13.730871889329944, 9.16658747665706, 7.007166350067579, 4.423555722916095, 6.283367646949399, 5.255174071699074, 2.9372666604490276, 1.55710357632902, 0.0), # 16
(17.395078877487137, 17.406380574956913, 14.92490459481353, 16.021673336630855, 12.774899750296605, 6.2935959462960005, 7.12093743875764, 6.653740203345614, 6.976957092989391, 3.398640440791261, 2.40952670348334, 1.4025887918796085, 0.0, 17.47808456018655, 15.428476710675692, 12.047633517416699, 10.195921322373781, 13.953914185978782, 9.31523628468386, 7.12093743875764, 4.4954256759257145, 6.387449875148302, 5.340557778876952, 2.984980918962706, 1.5823982340869922, 0.0), # 17
(17.645595605010367, 17.644177892002652, 15.12879775546482, 16.24059070761953, 12.953782358050306, 6.379587868417579, 7.2181714412095666, 6.744483318896446, 7.072267279485658, 3.4450438531695924, 2.4424559497621527, 1.4217474828457075, 0.0, 17.716937542216822, 15.63922231130278, 12.212279748810763, 10.335131559508774, 14.144534558971316, 9.442276646455024, 7.2181714412095666, 4.556848477441128, 6.476891179025153, 5.413530235873177, 3.0257595510929645, 1.6040161720002415, 0.0), # 18
(17.85455614569726, 17.83915283556408, 15.29597361978237, 16.420085005393776, 13.10165290863884, 6.450093932542269, 7.297895750988055, 6.818884637118185, 7.150413498425267, 3.4830911234960236, 2.4694552766201636, 1.4374560490372645, 0.0, 17.912777038692653, 15.812016539409907, 12.347276383100818, 10.449273370488068, 14.300826996850533, 9.546438491965459, 7.297895750988055, 4.607209951815906, 6.55082645431942, 5.473361668464593, 3.059194723956474, 1.621741166869462, 0.0), # 19
(18.01962885855975, 17.988926950448786, 15.424393023349506, 16.55796690728418, 13.216781193541133, 6.504254292765094, 7.359137761657826, 6.876036965150038, 7.210442744079718, 3.5123180473736824, 2.490195346901745, 1.4495228853905089, 0.0, 18.063214542073485, 15.944751739295596, 12.450976734508725, 10.536954142121044, 14.420885488159437, 9.626451751210054, 7.359137761657826, 4.645895923403639, 6.608390596770566, 5.51932230242806, 3.084878604669901, 1.6353569954953444, 0.0), # 20
(18.13848210260976, 18.09112178146442, 15.51201680174958, 16.652047090621256, 13.297437004236105, 6.541209103181062, 7.400924866783583, 6.915033110131218, 7.251402010720512, 3.532260420405701, 2.5043468234512685, 1.4577563868416692, 0.0, 18.165861544818743, 16.03532025525836, 12.52173411725634, 10.5967812612171, 14.502804021441024, 9.681046354183705, 7.400924866783583, 4.672292216557902, 6.648718502118053, 5.550682363540419, 3.1024033603499164, 1.644647434678584, 0.0), # 21
(18.20878423685924, 18.143358873418588, 15.55680579056593, 16.70013623273558, 13.341890132202689, 6.560098517885186, 7.422284459930039, 6.934965879200936, 7.27233829261915, 3.54245403819521, 2.5115803691131027, 1.4619649483269737, 0.0, 18.218329539387888, 16.08161443159671, 12.557901845565512, 10.627362114585626, 14.5446765852383, 9.70895223088131, 7.422284459930039, 4.6857846556322755, 6.6709450661013445, 5.5667120775785275, 3.111361158113186, 1.649396261219872, 0.0), # 22
(18.23470805401675, 18.14954393004115, 15.562384773662554, 16.706156597222225, 13.353278467239116, 6.5625, 7.424823602033405, 6.937120370370371, 7.274955740740741, 3.543656522633746, 2.512487411148522, 1.4624846364883404, 0.0, 18.225, 16.08733100137174, 12.56243705574261, 10.630969567901236, 14.549911481481482, 9.71196851851852, 7.424823602033405, 4.6875, 6.676639233619558, 5.568718865740743, 3.1124769547325113, 1.6499585390946503, 0.0), # 23
(18.253822343461476, 18.145936111111112, 15.561472222222221, 16.705415625000004, 13.359729136337823, 6.5625, 7.42342843137255, 6.934125, 7.274604999999999, 3.5429177777777783, 2.5123873737373743, 1.462362962962963, 0.0, 18.225, 16.085992592592593, 12.561936868686871, 10.628753333333332, 14.549209999999999, 9.707775, 7.42342843137255, 4.6875, 6.679864568168911, 5.568471875000002, 3.1122944444444447, 1.649630555555556, 0.0), # 24
(18.272533014380844, 18.138824588477366, 15.559670781893006, 16.70394965277778, 13.366037934713404, 6.5625, 7.420679012345679, 6.928240740740742, 7.273912037037037, 3.541463477366256, 2.512189019827909, 1.4621227709190674, 0.0, 18.225, 16.08335048010974, 12.560945099139545, 10.624390432098766, 14.547824074074073, 9.69953703703704, 7.420679012345679, 4.6875, 6.683018967356702, 5.567983217592594, 3.1119341563786014, 1.6489840534979427, 0.0), # 25
(18.290838634286462, 18.128318004115226, 15.557005144032923, 16.70177534722222, 13.372204642105325, 6.5625, 7.416618046477849, 6.919578703703704, 7.27288574074074, 3.539317818930042, 2.511894145155257, 1.4617673525377233, 0.0, 18.225, 16.079440877914955, 12.559470725776283, 10.617953456790124, 14.54577148148148, 9.687410185185186, 7.416618046477849, 4.6875, 6.686102321052663, 5.567258449074075, 3.111401028806585, 1.648028909465021, 0.0), # 26
(18.308737770689945, 18.114524999999997, 15.553500000000001, 16.698909375, 13.378229038253057, 6.5625, 7.411288235294118, 6.908250000000002, 7.271535, 3.5365050000000005, 2.5115045454545455, 1.4613000000000003, 0.0, 18.225, 16.0743, 12.557522727272728, 10.609514999999998, 14.54307, 9.671550000000002, 7.411288235294118, 4.6875, 6.689114519126528, 5.566303125, 3.1107000000000005, 1.646775, 0.0), # 27
(18.3262289911029, 18.097554218106993, 15.549180041152265, 16.695368402777778, 13.384110902896083, 6.5625, 7.404732280319536, 6.894365740740742, 7.269868703703704, 3.533049218106997, 2.5110220164609056, 1.4607240054869688, 0.0, 18.225, 16.067964060356655, 12.555110082304529, 10.599147654320989, 14.539737407407408, 9.652112037037039, 7.404732280319536, 4.6875, 6.6920554514480415, 5.565122800925927, 3.1098360082304533, 1.6452322016460905, 0.0), # 28
(18.34331086303695, 18.077514300411522, 15.54406995884774, 16.69116909722222, 13.389850015773863, 6.5625, 7.396992883079159, 6.8780370370370365, 7.267895740740741, 3.5289746707818943, 2.510448353909465, 1.4600426611796984, 0.0, 18.225, 16.06046927297668, 12.552241769547326, 10.58692401234568, 14.535791481481482, 9.629251851851851, 7.396992883079159, 4.6875, 6.694925007886932, 5.563723032407409, 3.1088139917695483, 1.6434103909465023, 0.0), # 29
(18.359981954003697, 18.054513888888888, 15.538194444444445, 16.686328125000003, 13.395446156625884, 6.5625, 7.388112745098039, 6.859375, 7.265625, 3.5243055555555567, 2.509785353535354, 1.4592592592592593, 0.0, 18.225, 16.05185185185185, 12.548926767676768, 10.572916666666668, 14.53125, 9.603125, 7.388112745098039, 4.6875, 6.697723078312942, 5.562109375000001, 3.107638888888889, 1.6413194444444446, 0.0), # 30
(18.376240831514746, 18.028661625514406, 15.531578189300415, 16.680862152777777, 13.400899105191609, 6.5625, 7.378134567901236, 6.838490740740741, 7.26306537037037, 3.5190660699588485, 2.5090348110737, 1.458377091906722, 0.0, 18.225, 16.04214801097394, 12.5451740553685, 10.557198209876542, 14.52613074074074, 9.573887037037037, 7.378134567901236, 4.6875, 6.7004495525958045, 5.56028738425926, 3.106315637860083, 1.638969238683128, 0.0), # 31
(18.392086063081717, 18.000066152263376, 15.524245884773661, 16.674787847222223, 13.406208641210513, 6.5625, 7.3671010530137995, 6.815495370370372, 7.260225740740741, 3.5132804115226346, 2.5081985222596335, 1.4573994513031552, 0.0, 18.225, 16.031393964334704, 12.540992611298167, 10.539841234567902, 14.520451481481482, 9.541693518518521, 7.3671010530137995, 4.6875, 6.703104320605257, 5.558262615740742, 3.1048491769547324, 1.6363696502057616, 0.0), # 32
(18.407516216216216, 17.96883611111111, 15.516222222222224, 16.668121874999997, 13.411374544422076, 6.5625, 7.355054901960784, 6.790500000000001, 7.257115, 3.506972777777779, 2.507278282828283, 1.4563296296296298, 0.0, 18.225, 16.019625925925926, 12.536391414141413, 10.520918333333334, 14.51423, 9.5067, 7.355054901960784, 4.6875, 6.705687272211038, 5.5560406250000005, 3.103244444444445, 1.6335305555555555, 0.0), # 33
(18.422529858429858, 17.93508014403292, 15.507531893004115, 16.660880902777777, 13.41639659456576, 6.5625, 7.342038816267248, 6.7636157407407405, 7.253742037037037, 3.500167366255145, 2.5062758885147773, 1.4551709190672155, 0.0, 18.225, 16.006880109739367, 12.531379442573886, 10.500502098765432, 14.507484074074075, 9.469062037037038, 7.342038816267248, 4.6875, 6.70819829728288, 5.553626967592593, 3.1015063786008232, 1.6304618312757202, 0.0), # 34
(18.437125557234253, 17.898906893004114, 15.49819958847737, 16.65308159722222, 13.421274571381044, 6.5625, 7.328095497458243, 6.734953703703703, 7.250115740740741, 3.4928883744855974, 2.5051931350542462, 1.4539266117969825, 0.0, 18.225, 15.993192729766804, 12.52596567527123, 10.47866512345679, 14.500231481481482, 9.428935185185185, 7.328095497458243, 4.6875, 6.710637285690522, 5.551027199074074, 3.099639917695474, 1.627173353909465, 0.0), # 35
(18.45130188014101, 17.860424999999996, 15.488249999999999, 16.644740624999997, 13.426008254607403, 6.5625, 7.313267647058823, 6.704625000000001, 7.246244999999999, 3.485160000000001, 2.504031818181818, 1.4526000000000006, 0.0, 18.225, 15.978600000000004, 12.520159090909091, 10.45548, 14.492489999999998, 9.386475, 7.313267647058823, 4.6875, 6.7130041273037016, 5.548246875, 3.0976500000000002, 1.623675, 0.0), # 36
(18.46505739466174, 17.819743106995883, 15.477707818930043, 16.63587465277778, 13.430597423984304, 6.5625, 7.2975979665940445, 6.672740740740741, 7.242138703703703, 3.477006440329219, 2.502793733632623, 1.451194375857339, 0.0, 18.225, 15.963138134430727, 12.513968668163116, 10.431019320987655, 14.484277407407406, 9.341837037037038, 7.2975979665940445, 4.6875, 6.715298711992152, 5.545291550925927, 3.0955415637860084, 1.619976646090535, 0.0), # 37
(18.47839066830806, 17.776969855967078, 15.466597736625513, 16.626500347222226, 13.435041859251228, 6.5625, 7.281129157588961, 6.639412037037038, 7.237805740740741, 3.4684518930041164, 2.5014806771417883, 1.4497130315500688, 0.0, 18.225, 15.946843347050754, 12.507403385708942, 10.405355679012347, 14.475611481481481, 9.295176851851854, 7.281129157588961, 4.6875, 6.717520929625614, 5.542166782407409, 3.0933195473251027, 1.61608816872428, 0.0), # 38
(18.491300268591576, 17.732213888888886, 15.454944444444445, 16.616634375, 13.439341340147644, 6.5625, 7.2639039215686285, 6.60475, 7.233255000000001, 3.4595205555555566, 2.500094444444445, 1.4481592592592594, 0.0, 18.225, 15.92975185185185, 12.500472222222223, 10.378561666666666, 14.466510000000001, 9.24665, 7.2639039215686285, 4.6875, 6.719670670073822, 5.538878125000001, 3.0909888888888895, 1.6120194444444444, 0.0), # 39
(18.503784763023894, 17.685583847736623, 15.442772633744857, 16.60629340277778, 13.443495646413021, 6.5625, 7.245964960058098, 6.568865740740742, 7.228495370370371, 3.4502366255144046, 2.49863683127572, 1.4465363511659812, 0.0, 18.225, 15.911899862825791, 12.4931841563786, 10.350709876543212, 14.456990740740743, 9.196412037037039, 7.245964960058098, 4.6875, 6.721747823206511, 5.535431134259261, 3.0885545267489714, 1.6077803497942387, 0.0), # 40
(18.51584271911663, 17.637188374485596, 15.430106995884776, 16.595494097222222, 13.447504557786843, 6.5625, 7.2273549745824255, 6.531870370370371, 7.22353574074074, 3.4406243004115233, 2.4971096333707448, 1.4448475994513033, 0.0, 18.225, 15.893323593964332, 12.485548166853723, 10.321872901234567, 14.44707148148148, 9.14461851851852, 7.2273549745824255, 4.6875, 6.723752278893421, 5.531831365740742, 3.0860213991769556, 1.6033807613168727, 0.0), # 41
(18.527472704381402, 17.587136111111114, 15.416972222222224, 16.584253125000004, 13.45136785400857, 6.5625, 7.208116666666666, 6.493875, 7.218385000000001, 3.4307077777777786, 2.4955146464646467, 1.4430962962962963, 0.0, 18.225, 15.874059259259258, 12.477573232323234, 10.292123333333333, 14.436770000000003, 9.091425000000001, 7.208116666666666, 4.6875, 6.725683927004285, 5.5280843750000015, 3.083394444444445, 1.598830555555556, 0.0), # 42
(18.538673286329807, 17.53553569958848, 15.403393004115227, 16.57258715277778, 13.455085314817683, 6.5625, 7.188292737835875, 6.454990740740741, 7.213052037037036, 3.420511255144034, 2.4938536662925554, 1.4412857338820306, 0.0, 18.225, 15.854143072702334, 12.469268331462775, 10.2615337654321, 14.426104074074072, 9.036987037037038, 7.188292737835875, 4.6875, 6.727542657408842, 5.524195717592594, 3.080678600823046, 1.5941396090534983, 0.0), # 43
(18.54944303247347, 17.482495781893004, 15.389394032921814, 16.560512847222224, 13.458656719953654, 6.5625, 7.1679258896151055, 6.415328703703706, 7.2075457407407395, 3.4100589300411532, 2.4921284885895996, 1.439419204389575, 0.0, 18.225, 15.833611248285322, 12.460642442947998, 10.230176790123457, 14.415091481481479, 8.981460185185188, 7.1679258896151055, 4.6875, 6.729328359976827, 5.520170949074076, 3.077878806584363, 1.5893177983539097, 0.0), # 44
(18.55978051032399, 17.428124999999998, 15.375, 16.548046875, 13.462081849155954, 6.5625, 7.147058823529412, 6.375000000000001, 7.201874999999999, 3.3993750000000014, 2.4903409090909094, 1.4375000000000002, 0.0, 18.225, 15.8125, 12.451704545454545, 10.198125000000001, 14.403749999999999, 8.925, 7.147058823529412, 4.6875, 6.731040924577977, 5.516015625000001, 3.075, 1.584375, 0.0), # 45
(18.569684287392985, 17.372531995884774, 15.360235596707819, 16.535205902777776, 13.465360482164058, 6.5625, 7.125734241103849, 6.334115740740741, 7.196048703703703, 3.388483662551441, 2.4884927235316128, 1.4355314128943761, 0.0, 18.225, 15.790845541838134, 12.442463617658062, 10.16545098765432, 14.392097407407405, 8.86776203703704, 7.125734241103849, 4.6875, 6.732680241082029, 5.511735300925927, 3.072047119341564, 1.5793210905349795, 0.0), # 46
(18.579152931192063, 17.31582541152263, 15.345125514403293, 16.522006597222223, 13.46849239871744, 6.5625, 7.103994843863473, 6.292787037037037, 7.190075740740742, 3.3774091152263384, 2.486585727646839, 1.4335167352537728, 0.0, 18.225, 15.768684087791497, 12.432928638234193, 10.132227345679013, 14.380151481481484, 8.809901851851851, 7.103994843863473, 4.6875, 6.73424619935872, 5.507335532407408, 3.069025102880659, 1.5741659465020577, 0.0), # 47
(18.588185009232834, 17.258113888888886, 15.329694444444444, 16.508465625, 13.471477378555573, 6.5625, 7.081883333333334, 6.251125000000001, 7.183965000000001, 3.3661755555555564, 2.4846217171717173, 1.4314592592592594, 0.0, 18.225, 15.746051851851853, 12.423108585858586, 10.098526666666666, 14.367930000000001, 8.751575, 7.081883333333334, 4.6875, 6.735738689277786, 5.502821875000001, 3.065938888888889, 1.5689194444444445, 0.0), # 48
(18.596779089026917, 17.199506069958847, 15.313967078189304, 16.49459965277778, 13.47431520141793, 6.5625, 7.059442411038489, 6.209240740740741, 7.17772537037037, 3.35480718106996, 2.4826024878413775, 1.4293622770919072, 0.0, 18.225, 15.722985048010976, 12.413012439206886, 10.064421543209878, 14.35545074074074, 8.692937037037037, 7.059442411038489, 4.6875, 6.737157600708965, 5.498199884259261, 3.0627934156378607, 1.5635914609053498, 0.0), # 49
(18.604933738085908, 17.140110596707824, 15.297968106995889, 16.480425347222223, 13.477005647043978, 6.5625, 7.0367147785039945, 6.16724537037037, 7.1713657407407405, 3.3433281893004123, 2.480529835390947, 1.427229080932785, 0.0, 18.225, 15.699519890260632, 12.402649176954732, 10.029984567901234, 14.342731481481481, 8.634143518518519, 7.0367147785039945, 4.6875, 6.738502823521989, 5.4934751157407415, 3.059593621399178, 1.5581918724279842, 0.0), # 50
(18.61264752392144, 17.080036111111113, 15.281722222222223, 16.465959375, 13.479548495173198, 6.5625, 7.013743137254902, 6.12525, 7.164895000000001, 3.3317627777777785, 2.478405555555556, 1.4250629629629634, 0.0, 18.225, 15.675692592592595, 12.392027777777779, 9.995288333333333, 14.329790000000003, 8.57535, 7.013743137254902, 4.6875, 6.739774247586599, 5.488653125000001, 3.0563444444444445, 1.552730555555556, 0.0), # 51
(18.619919014045102, 17.019391255144033, 15.26525411522634, 16.45121840277778, 13.481943525545056, 6.5625, 6.9905701888162675, 6.08336574074074, 7.158322037037037, 3.320135144032923, 2.4762314440703332, 1.4228672153635122, 0.0, 18.225, 15.651539368998632, 12.381157220351666, 9.960405432098767, 14.316644074074073, 8.516712037037037, 6.9905701888162675, 4.6875, 6.740971762772528, 5.483739467592594, 3.0530508230452678, 1.547217386831276, 0.0), # 52
(18.626746775968517, 16.958284670781893, 15.248588477366258, 16.43621909722222, 13.484190517899034, 6.5625, 6.967238634713145, 6.041703703703704, 7.1516557407407415, 3.3084694855967087, 2.4740092966704084, 1.4206451303155008, 0.0, 18.225, 15.627096433470507, 12.37004648335204, 9.925408456790123, 14.303311481481483, 8.458385185185186, 6.967238634713145, 4.6875, 6.742095258949517, 5.478739699074075, 3.049717695473252, 1.5416622427983542, 0.0), # 53
(18.63312937720329, 16.896825000000003, 15.23175, 16.420978125, 13.486289251974604, 6.5625, 6.943791176470588, 6.000374999999999, 7.144905, 3.296790000000001, 2.4717409090909093, 1.4184000000000003, 0.0, 18.225, 15.602400000000001, 12.358704545454545, 9.89037, 14.28981, 8.400525, 6.943791176470588, 4.6875, 6.743144625987302, 5.473659375000001, 3.04635, 1.5360750000000005, 0.0), # 54
(18.63906538526104, 16.835120884773662, 15.2147633744856, 16.405512152777778, 13.488239507511228, 6.5625, 6.9202705156136535, 5.9594907407407405, 7.1380787037037035, 3.2851208847736637, 2.4694280770669663, 1.4161351165980798, 0.0, 18.225, 15.577486282578874, 12.34714038533483, 9.855362654320988, 14.276157407407407, 8.343287037037037, 6.9202705156136535, 4.6875, 6.744119753755614, 5.468504050925927, 3.04295267489712, 1.530465534979424, 0.0), # 55
(18.64455336765337, 16.77328096707819, 15.197653292181073, 16.389837847222225, 13.49004106424839, 6.5625, 6.896719353667393, 5.9191620370370375, 7.131185740740741, 3.2734863374485608, 2.467072596333708, 1.4138537722908093, 0.0, 18.225, 15.5523914951989, 12.335362981668538, 9.82045901234568, 14.262371481481482, 8.286826851851853, 6.896719353667393, 4.6875, 6.745020532124195, 5.463279282407409, 3.0395306584362145, 1.5248437242798356, 0.0), # 56
(18.649591891891887, 16.711413888888888, 15.180444444444445, 16.373971875, 13.49169370192556, 6.5625, 6.873180392156863, 5.879500000000001, 7.124235, 3.2619105555555565, 2.4646762626262633, 1.4115592592592594, 0.0, 18.225, 15.527151851851851, 12.323381313131314, 9.785731666666667, 14.24847, 8.231300000000001, 6.873180392156863, 4.6875, 6.74584685096278, 5.457990625000001, 3.0360888888888895, 1.5192194444444447, 0.0), # 57
(18.654179525488225, 16.64962829218107, 15.163161522633745, 16.357930902777774, 13.49319720028221, 6.5625, 6.849696332607118, 5.840615740740741, 7.11723537037037, 3.2504177366255154, 2.4622408716797612, 1.4092548696844995, 0.0, 18.225, 15.501803566529492, 12.311204358398806, 9.751253209876543, 14.23447074074074, 8.176862037037038, 6.849696332607118, 4.6875, 6.746598600141105, 5.4526436342592595, 3.032632304526749, 1.5136025720164612, 0.0), # 58
(18.658314835953966, 16.58803281893004, 15.145829218106996, 16.34173159722222, 13.494551339057814, 6.5625, 6.82630987654321, 5.802620370370371, 7.110195740740741, 3.2390320781893016, 2.4597682192293306, 1.4069438957475995, 0.0, 18.225, 15.476382853223592, 12.298841096146651, 9.717096234567903, 14.220391481481482, 8.12366851851852, 6.82630987654321, 4.6875, 6.747275669528907, 5.447243865740742, 3.0291658436213997, 1.5080029835390947, 0.0), # 59
(18.661996390800738, 16.526736111111113, 15.128472222222221, 16.325390625, 13.495755897991843, 6.5625, 6.803063725490196, 5.765625, 7.103125, 3.2277777777777787, 2.4572601010101014, 1.40462962962963, 0.0, 18.225, 15.450925925925928, 12.286300505050505, 9.683333333333334, 14.20625, 8.071875, 6.803063725490196, 4.6875, 6.747877948995922, 5.441796875000001, 3.0256944444444445, 1.502430555555556, 0.0), # 60
(18.665222757540146, 16.465846810699592, 15.111115226337452, 16.308924652777776, 13.496810656823772, 6.5625, 6.780000580973129, 5.729740740740741, 7.0960320370370376, 3.216679032921812, 2.4547183127572016, 1.40231536351166, 0.0, 18.225, 15.425468998628258, 12.273591563786008, 9.650037098765434, 14.192064074074075, 8.021637037037038, 6.780000580973129, 4.6875, 6.748405328411886, 5.436308217592593, 3.0222230452674905, 1.496895164609054, 0.0), # 61
(18.66799250368381, 16.40547355967078, 15.093782921810703, 16.292350347222225, 13.497715395293081, 6.5625, 6.757163144517066, 5.695078703703705, 7.088925740740741, 3.2057600411522644, 2.4521446502057613, 1.4000043895747603, 0.0, 18.225, 15.40004828532236, 12.260723251028807, 9.61728012345679, 14.177851481481483, 7.973110185185186, 6.757163144517066, 4.6875, 6.748857697646541, 5.430783449074076, 3.018756584362141, 1.4914066872427985, 0.0), # 62
(18.670304196743327, 16.345724999999998, 15.0765, 16.275684375, 13.498469893139227, 6.5625, 6.734594117647059, 5.6617500000000005, 7.081815, 3.195045000000001, 2.4495409090909095, 1.3977000000000002, 0.0, 18.225, 15.3747, 12.247704545454548, 9.585135, 14.16363, 7.926450000000001, 6.734594117647059, 4.6875, 6.749234946569613, 5.425228125000001, 3.0153000000000003, 1.485975, 0.0), # 63
(18.672156404230314, 16.286709773662555, 15.059291152263373, 16.258943402777778, 13.499073930101698, 6.5625, 6.712336201888163, 5.629865740740741, 7.0747087037037035, 3.1845581069958855, 2.446908885147774, 1.3954054869684502, 0.0, 18.225, 15.34946035665295, 12.23454442573887, 9.553674320987653, 14.149417407407407, 7.881812037037038, 6.712336201888163, 4.6875, 6.749536965050849, 5.419647800925927, 3.011858230452675, 1.4806099794238687, 0.0), # 64
(18.67354769365639, 16.228536522633743, 15.042181069958849, 16.242144097222223, 13.49952728591996, 6.5625, 6.690432098765433, 5.599537037037037, 7.067615740740742, 3.1743235596707824, 2.4442503741114856, 1.3931241426611796, 0.0, 18.225, 15.324365569272972, 12.221251870557428, 9.522970679012344, 14.135231481481483, 7.839351851851852, 6.690432098765433, 4.6875, 6.74976364295998, 5.4140480324074085, 3.00843621399177, 1.4753215020576131, 0.0), # 65
(18.674476632533153, 16.17131388888889, 15.025194444444447, 16.225303125, 13.499829740333489, 6.5625, 6.668924509803921, 5.570875000000001, 7.060545000000001, 3.1643655555555563, 2.4415671717171716, 1.3908592592592597, 0.0, 18.225, 15.299451851851854, 12.207835858585858, 9.493096666666666, 14.121090000000002, 7.799225000000001, 6.668924509803921, 4.6875, 6.749914870166744, 5.408434375000001, 3.0050388888888895, 1.4701194444444448, 0.0), # 66
(18.674941788372227, 16.11515051440329, 15.00835596707819, 16.208437152777776, 13.499981073081756, 6.5625, 6.647856136528685, 5.543990740740742, 7.05350537037037, 3.154708292181071, 2.438861073699963, 1.3886141289437586, 0.0, 18.225, 15.274755418381341, 12.194305368499816, 9.464124876543211, 14.10701074074074, 7.761587037037039, 6.647856136528685, 4.6875, 6.749990536540878, 5.40281238425926, 3.001671193415638, 1.465013683127572, 0.0), # 67
(18.674624906065485, 16.059860254878533, 14.99160892489712, 16.19141634963768, 13.499853546356814, 6.56237821216278, 6.627163675346682, 5.518757887517148, 7.046452709190673, 3.145329198741226, 2.436085796562113, 1.3863795032849615, 0.0, 18.22477527006173, 15.250174536134574, 12.180428982810565, 9.435987596223676, 14.092905418381346, 7.726261042524007, 6.627163675346682, 4.6874130086877, 6.749926773178407, 5.3971387832125615, 2.998321784979424, 1.4599872958980487, 0.0), # 68
(18.671655072463768, 16.00375510752688, 14.974482638888889, 16.173382744565217, 13.498692810457515, 6.561415432098766, 6.606241363211952, 5.493824074074074, 7.039078703703703, 3.1359628758169937, 2.4329588516746417, 1.3840828460038987, 0.0, 18.222994791666668, 15.224911306042884, 12.164794258373206, 9.407888627450978, 14.078157407407407, 7.6913537037037045, 6.606241363211952, 4.686725308641976, 6.749346405228757, 5.391127581521739, 2.994896527777778, 1.4548868279569895, 0.0), # 69
(18.665794417606012, 15.946577558741536, 14.956902649176953, 16.154217617753623, 13.496399176954732, 6.559519318701418, 6.5849941211052325, 5.468964334705077, 7.031341735253773, 3.1265637860082314, 2.429444665957824, 1.3817134141939216, 0.0, 18.219478202160495, 15.198847556133135, 12.147223329789119, 9.379691358024692, 14.062683470507546, 7.656550068587107, 6.5849941211052325, 4.685370941929584, 6.748199588477366, 5.384739205917875, 2.9913805298353906, 1.4496888689765035, 0.0), # 70
(18.657125389157272, 15.888361778176023, 14.938875128600824, 16.133949230072467, 13.493001694504963, 6.556720598994056, 6.56343149358509, 5.444186899862826, 7.023253326474624, 3.1171321617041885, 2.425556211235159, 1.3792729405819073, 0.0, 18.21427179783951, 15.172002346400978, 12.127781056175793, 9.351396485112563, 14.046506652949247, 7.621861659807958, 6.56343149358509, 4.683371856424325, 6.746500847252482, 5.377983076690823, 2.987775025720165, 1.4443965252887296, 0.0), # 71
(18.64573043478261, 15.82914193548387, 14.92040625, 16.112605842391304, 13.488529411764706, 6.553050000000001, 6.541563025210084, 5.4195, 7.014825, 3.1076682352941183, 2.421306459330144, 1.376763157894737, 0.0, 18.207421875, 15.144394736842104, 12.10653229665072, 9.323004705882353, 14.02965, 7.587300000000001, 6.541563025210084, 4.680750000000001, 6.744264705882353, 5.370868614130436, 2.98408125, 1.4390129032258066, 0.0), # 72
(18.631692002147076, 15.768952200318596, 14.90150218621399, 16.09021571557971, 13.483011377390461, 6.548538248742569, 6.519398260538782, 5.394911865569274, 7.006068278463649, 3.0981722391672726, 2.4167083820662767, 1.374185798859288, 0.0, 18.198974729938275, 15.116043787452165, 12.083541910331384, 9.294516717501814, 14.012136556927299, 7.552876611796983, 6.519398260538782, 4.677527320530407, 6.741505688695231, 5.363405238526571, 2.9803004372427986, 1.4335411091198726, 0.0), # 73
(18.61509253891573, 15.707826742333731, 14.882169110082302, 16.06680711050725, 13.47647664003873, 6.543216072245086, 6.49694674412975, 5.37043072702332, 6.996994684499314, 3.0886444057129037, 2.411774951267057, 1.3715425962024403, 0.0, 18.18897665895062, 15.086968558226841, 12.058874756335285, 9.26593321713871, 13.993989368998628, 7.518603017832648, 6.49694674412975, 4.673725765889347, 6.738238320019365, 5.355602370169083, 2.976433822016461, 1.4279842493030668, 0.0), # 74
(18.59601449275362, 15.645799731182793, 14.862413194444443, 16.04240828804348, 13.468954248366014, 6.537114197530865, 6.47421802054155, 5.346064814814815, 6.98761574074074, 3.0790849673202625, 2.406519138755981, 1.3688352826510723, 0.0, 18.177473958333334, 15.057188109161793, 12.032595693779903, 9.237254901960785, 13.97523148148148, 7.484490740740742, 6.47421802054155, 4.669367283950618, 6.734477124183007, 5.347469429347827, 2.9724826388888888, 1.422345430107527, 0.0), # 75
(18.57454031132582, 15.582905336519316, 14.842240612139918, 16.01704750905797, 13.460473251028805, 6.53026335162323, 6.451221634332746, 5.321822359396434, 6.977942969821673, 3.069494156378602, 2.400953916356548, 1.3660655909320625, 0.0, 18.164512924382716, 15.026721500252684, 12.004769581782737, 9.208482469135802, 13.955885939643347, 7.450551303155008, 6.451221634332746, 4.664473822588021, 6.730236625514403, 5.339015836352658, 2.9684481224279837, 1.4166277578653925, 0.0), # 76
(18.55075244229737, 15.519177727996816, 14.821657536008228, 15.99075303442029, 13.451062696683609, 6.522694261545496, 6.4279671300619015, 5.2977115912208514, 6.967987894375857, 3.059872205277174, 2.3950922558922563, 1.3632352537722912, 0.0, 18.150139853395064, 14.9955877914952, 11.975461279461282, 9.179616615831518, 13.935975788751714, 7.416796227709193, 6.4279671300619015, 4.659067329675354, 6.725531348341804, 5.330251011473431, 2.964331507201646, 1.4108343389088016, 0.0), # 77
(18.524733333333334, 15.45465107526882, 14.80067013888889, 15.963553124999999, 13.440751633986928, 6.514437654320987, 6.404464052287582, 5.273740740740742, 6.957762037037036, 3.0502193464052296, 2.388947129186603, 1.3603460038986357, 0.0, 18.134401041666667, 14.963806042884991, 11.944735645933015, 9.150658039215687, 13.915524074074073, 7.383237037037039, 6.404464052287582, 4.653169753086419, 6.720375816993464, 5.3211843750000005, 2.960134027777778, 1.404968279569893, 0.0), # 78
(18.496565432098766, 15.389359547988851, 14.779284593621398, 15.935476041666668, 13.429569111595256, 6.505524256973022, 6.380721945568351, 5.249918038408779, 6.947276920438957, 3.0405358121520223, 2.382531508063087, 1.3573995740379758, 0.0, 18.117342785493825, 14.931395314417731, 11.912657540315433, 9.121607436456063, 13.894553840877913, 7.349885253772292, 6.380721945568351, 4.646803040695016, 6.714784555797628, 5.311825347222223, 2.95585691872428, 1.399032686180805, 0.0), # 79
(18.466331186258724, 15.323337315810434, 14.757507073045266, 15.906550045289855, 13.417544178165095, 6.49598479652492, 6.356750354462773, 5.226251714677641, 6.9365440672153635, 3.030821834906803, 2.375858364345207, 1.3543976969171905, 0.0, 18.09901138117284, 14.898374666089092, 11.879291821726033, 9.092465504720405, 13.873088134430727, 7.316752400548698, 6.356750354462773, 4.639989140374943, 6.708772089082547, 5.302183348429953, 2.9515014146090537, 1.3930306650736761, 0.0), # 80
(18.434113043478263, 15.256618548387095, 14.735343749999998, 15.876803396739131, 13.404705882352939, 6.48585, 6.3325588235294115, 5.202750000000001, 6.925574999999999, 3.0210776470588248, 2.36894066985646, 1.3513421052631582, 0.0, 18.079453124999997, 14.864763157894737, 11.844703349282298, 9.063232941176471, 13.851149999999999, 7.283850000000001, 6.3325588235294115, 4.63275, 6.7023529411764695, 5.292267798913045, 2.94706875, 1.3869653225806453, 0.0), # 81
(18.399993451422436, 15.189237415372364, 14.712800797325105, 15.846264356884058, 13.391083272815298, 6.475150594421583, 6.308156897326833, 5.179421124828533, 6.914381241426612, 3.011303480997338, 2.3617913964203443, 1.3482345318027582, 0.0, 18.058714313271608, 14.830579849830338, 11.80895698210172, 9.03391044299201, 13.828762482853223, 7.2511895747599455, 6.308156897326833, 4.625107567443988, 6.695541636407649, 5.2820881189613536, 2.9425601594650215, 1.3808397650338515, 0.0), # 82
(18.364054857756308, 15.121228086419752, 14.689884387860083, 15.8149611865942, 13.376705398208665, 6.463917306812986, 6.283554120413598, 5.156273319615913, 6.902974314128944, 3.001499569111596, 2.3544235158603586, 1.3450767092628693, 0.0, 18.036841242283952, 14.79584380189156, 11.772117579301792, 9.004498707334786, 13.805948628257887, 7.218782647462278, 6.283554120413598, 4.617083790580704, 6.688352699104333, 5.2716537288647345, 2.9379768775720168, 1.374657098765432, 0.0), # 83
(18.326379710144927, 15.052624731182796, 14.666600694444444, 15.78292214673913, 13.361601307189542, 6.452180864197532, 6.258760037348273, 5.133314814814815, 6.89136574074074, 2.9916661437908503, 2.3468500000000003, 1.3418703703703705, 0.0, 18.013880208333333, 14.760574074074073, 11.73425, 8.97499843137255, 13.78273148148148, 7.186640740740741, 6.258760037348273, 4.608700617283951, 6.680800653594771, 5.260974048913044, 2.933320138888889, 1.3684204301075271, 0.0), # 84
(18.287050456253354, 14.983461519315012, 14.642955889917694, 15.750175498188408, 13.345800048414427, 6.439971993598538, 6.233784192689422, 5.110553840877915, 6.879567043895747, 2.981803437424353, 2.3390838206627684, 1.338617247852141, 0.0, 17.989877507716052, 14.724789726373547, 11.69541910331384, 8.945410312273058, 13.759134087791494, 7.154775377229082, 6.233784192689422, 4.5999799954275264, 6.672900024207213, 5.250058499396137, 2.928591177983539, 1.362132865392274, 0.0), # 85
(18.246149543746643, 14.913772620469931, 14.618956147119343, 15.716749501811597, 13.32933067053982, 6.427321422039324, 6.208636130995608, 5.087998628257887, 6.86758974622771, 2.9719116824013563, 2.3311379496721605, 1.3353190744350594, 0.0, 17.964879436728395, 14.68850981878565, 11.655689748360802, 8.915735047204068, 13.73517949245542, 7.123198079561043, 6.208636130995608, 4.590943872885232, 6.66466533526991, 5.2389165006038665, 2.923791229423869, 1.3557975109518121, 0.0), # 86
(18.203759420289852, 14.843592204301075, 14.594607638888888, 15.68267241847826, 13.312222222222225, 6.41425987654321, 6.1833253968253965, 5.065657407407408, 6.855445370370372, 2.9619911111111112, 2.323025358851675, 1.3319775828460039, 0.0, 17.938932291666667, 14.651753411306041, 11.615126794258373, 8.885973333333332, 13.710890740740744, 7.091920370370371, 6.1833253968253965, 4.581614197530865, 6.656111111111112, 5.227557472826088, 2.9189215277777776, 1.3494174731182798, 0.0), # 87
(18.159962533548043, 14.772954440461966, 14.569916538065844, 15.647972509057974, 13.294503752118132, 6.400818084133517, 6.157861534737352, 5.043538408779149, 6.843145438957476, 2.952041955942871, 2.31475902002481, 1.328594505811855, 0.0, 17.912082368827164, 14.614539563930402, 11.573795100124048, 8.856125867828611, 13.686290877914953, 7.06095377229081, 6.157861534737352, 4.572012917238227, 6.647251876059066, 5.215990836352659, 2.913983307613169, 1.3429958582238153, 0.0), # 88
(18.11484133118626, 14.701893498606132, 14.544889017489714, 15.612678034420288, 13.276204308884047, 6.387026771833563, 6.132254089290037, 5.0216498628257895, 6.830701474622771, 2.942064449285888, 2.3063519050150636, 1.3251715760594904, 0.0, 17.884375964506173, 14.576887336654393, 11.531759525075316, 8.826193347857663, 13.661402949245542, 7.0303098079561055, 6.132254089290037, 4.562161979881116, 6.638102154442024, 5.2042260114734304, 2.908977803497943, 1.3365357726005578, 0.0), # 89
(18.068478260869565, 14.630443548387097, 14.519531250000002, 15.576817255434786, 13.257352941176471, 6.372916666666668, 6.106512605042017, 5.0, 6.818125, 2.9320588235294123, 2.2978169856459334, 1.3217105263157898, 0.0, 17.855859375, 14.538815789473684, 11.489084928229666, 8.796176470588236, 13.63625, 7.0, 6.106512605042017, 4.552083333333334, 6.6286764705882355, 5.192272418478263, 2.903906250000001, 1.3300403225806454, 0.0), # 90
(18.020955770263015, 14.558638759458383, 14.493849408436214, 15.540418432971018, 13.237978697651899, 6.35851849565615, 6.0806466265518555, 4.978597050754459, 6.80542753772291, 2.922025311062697, 2.2891672337409186, 1.3182130893076314, 0.0, 17.826578896604936, 14.500343982383942, 11.445836168704592, 8.76607593318809, 13.61085507544582, 6.9700358710562424, 6.0806466265518555, 4.541798925468679, 6.6189893488259495, 5.180139477657007, 2.898769881687243, 1.3235126144962168, 0.0), # 91
(17.97235630703167, 14.486513301473519, 14.467849665637862, 15.50350982789855, 13.218110626966835, 6.343862985825332, 6.054665698378118, 4.957449245541839, 6.7926206104252405, 2.9119641442749944, 2.2804156211235163, 1.3146809977618947, 0.0, 17.796580825617283, 14.46149097538084, 11.40207810561758, 8.735892432824983, 13.585241220850481, 6.940428943758574, 6.054665698378118, 4.531330704160951, 6.609055313483418, 5.167836609299518, 2.8935699331275724, 1.3169557546794108, 0.0), # 92
(17.92276231884058, 14.414101344086022, 14.441538194444446, 15.46611970108696, 13.197777777777777, 6.328980864197531, 6.0285793650793655, 4.936564814814815, 6.779715740740741, 2.9018755555555558, 2.2715751196172254, 1.3111159844054583, 0.0, 17.76591145833333, 14.422275828460037, 11.357875598086125, 8.705626666666666, 13.559431481481482, 6.911190740740742, 6.0285793650793655, 4.520700617283951, 6.598888888888888, 5.155373233695654, 2.888307638888889, 1.3103728494623659, 0.0), # 93
(17.872256253354806, 14.341437056949422, 14.414921167695475, 15.428276313405796, 13.177009198741224, 6.313902857796068, 6.002397171214165, 4.915951989026064, 6.766724451303155, 2.891759777293634, 2.2626587010455435, 1.3075197819652014, 0.0, 17.734617091049383, 14.382717601617212, 11.313293505227715, 8.675279331880901, 13.53344890260631, 6.88233278463649, 6.002397171214165, 4.509930612711477, 6.588504599370612, 5.1427587711352665, 2.882984233539095, 1.3037670051772203, 0.0), # 94
(17.820920558239397, 14.268554609717246, 14.388004758230455, 15.390007925724635, 13.155833938513677, 6.298659693644262, 5.97612866134108, 4.895618998628259, 6.753658264746228, 2.88161704187848, 2.253679337231969, 1.3038941231680024, 0.0, 17.70274402006173, 14.342835354848022, 11.268396686159845, 8.644851125635439, 13.507316529492456, 6.853866598079563, 5.97612866134108, 4.49904263831733, 6.577916969256838, 5.130002641908213, 2.8776009516460914, 1.2971413281561135, 0.0), # 95
(17.76883768115942, 14.195488172043014, 14.360795138888891, 15.351342798913045, 13.134281045751635, 6.283282098765432, 5.9497833800186735, 4.875574074074075, 6.740528703703703, 2.8714475816993468, 2.2446500000000005, 1.300240740740741, 0.0, 17.67033854166667, 14.30264814814815, 11.22325, 8.614342745098039, 13.481057407407405, 6.825803703703705, 5.9497833800186735, 4.488058641975309, 6.5671405228758175, 5.117114266304349, 2.8721590277777787, 1.2904989247311833, 0.0), # 96
(17.716090069779927, 14.12227191358025, 14.333298482510289, 15.31230919384058, 13.112379569111596, 6.267800800182899, 5.9233708718055125, 4.855825445816188, 6.727347290809328, 2.8612516291454857, 2.235583661173135, 1.2965613674102956, 0.0, 17.637446952160495, 14.262175041513249, 11.177918305865674, 8.583754887436456, 13.454694581618655, 6.798155624142662, 5.9233708718055125, 4.477000571559214, 6.556189784555798, 5.104103064613527, 2.8666596965020577, 1.2838429012345685, 0.0), # 97
(17.66276017176597, 14.048940003982477, 14.305520961934155, 15.27293537137681, 13.090158557250064, 6.252246524919983, 5.896900681260158, 4.83638134430727, 6.714125548696844, 2.851029416606149, 2.226493292574872, 1.2928577359035447, 0.0, 17.604115547839505, 14.22143509493899, 11.13246646287436, 8.553088249818446, 13.428251097393687, 6.770933882030178, 5.896900681260158, 4.465890374942845, 6.545079278625032, 5.090978457125605, 2.8611041923868314, 1.277176363998407, 0.0), # 98
(17.608930434782607, 13.975526612903225, 14.277468750000002, 15.233249592391303, 13.067647058823532, 6.23665, 5.870382352941177, 4.8172500000000005, 6.700875, 2.8407811764705886, 2.2173918660287084, 1.2891315789473687, 0.0, 17.570390625, 14.180447368421053, 11.086959330143541, 8.522343529411764, 13.40175, 6.744150000000001, 5.870382352941177, 4.45475, 6.533823529411766, 5.0777498641304355, 2.8554937500000004, 1.2705024193548389, 0.0), # 99
(17.5546833064949, 13.902065909996015, 14.249148019547325, 15.193280117753623, 13.044874122488501, 6.2210419524462734, 5.843825431407131, 4.798439643347051, 6.687607167352539, 2.8305071411280567, 2.2082923533581433, 1.285384629268645, 0.0, 17.536318479938274, 14.139230921955095, 11.041461766790714, 8.49152142338417, 13.375214334705078, 6.717815500685871, 5.843825431407131, 4.443601394604481, 6.522437061244251, 5.064426705917875, 2.8498296039094653, 1.2638241736360014, 0.0), # 100
(17.500101234567904, 13.828592064914377, 14.22056494341564, 15.153055208333335, 13.021868796901476, 6.205453109282122, 5.817239461216586, 4.7799585048010975, 6.674333573388203, 2.820207542967805, 2.1992077263866743, 1.281618619594253, 0.0, 17.501945408950615, 14.097804815536781, 10.99603863193337, 8.460622628903414, 13.348667146776407, 6.691941906721536, 5.817239461216586, 4.432466506630087, 6.510934398450738, 5.051018402777779, 2.8441129886831282, 1.2571447331740344, 0.0), # 101
(17.44526666666667, 13.755139247311828, 14.191725694444445, 15.112603125, 12.998660130718955, 6.189914197530865, 5.790633986928105, 4.761814814814815, 6.66106574074074, 2.809882614379086, 2.1901509569377993, 1.2778352826510724, 0.0, 17.467317708333336, 14.056188109161795, 10.950754784688995, 8.429647843137257, 13.32213148148148, 6.666540740740741, 5.790633986928105, 4.421367283950618, 6.499330065359477, 5.037534375000001, 2.838345138888889, 1.2504672043010754, 0.0), # 102
(17.390262050456254, 13.681741626841896, 14.16263644547325, 15.071952128623188, 12.975277172597433, 6.174455944215821, 5.764018553100253, 4.7440168038408785, 6.647815192043895, 2.7995325877511505, 2.181135016835017, 1.2740363511659811, 0.0, 17.432481674382714, 14.014399862825789, 10.905675084175085, 8.39859776325345, 13.29563038408779, 6.64162352537723, 5.764018553100253, 4.410325674439872, 6.487638586298717, 5.023984042874397, 2.8325272890946502, 1.2437946933492634, 0.0), # 103
(17.335169833601718, 13.608433373158105, 14.133303369341563, 15.031130480072465, 12.951748971193414, 6.159109076360311, 5.737402704291593, 4.7265727023319615, 6.634593449931413, 2.7891576954732518, 2.1721728779018252, 1.2702235578658583, 0.0, 17.397483603395063, 13.972459136524439, 10.860864389509127, 8.367473086419754, 13.269186899862826, 6.617201783264746, 5.737402704291593, 4.399363625971651, 6.475874485596707, 5.010376826690822, 2.826660673868313, 1.237130306650737, 0.0), # 104
(17.280072463768114, 13.535248655913978, 14.103732638888891, 14.99016644021739, 12.928104575163397, 6.143904320987655, 5.710795985060692, 4.709490740740741, 6.621412037037037, 2.7787581699346413, 2.1632775119617227, 1.2663986354775831, 0.0, 17.362369791666666, 13.930384990253412, 10.816387559808613, 8.336274509803923, 13.242824074074074, 6.5932870370370384, 5.710795985060692, 4.388503086419754, 6.464052287581699, 4.996722146739131, 2.820746527777778, 1.2304771505376346, 0.0), # 105
(17.225052388620504, 13.462221644763043, 14.073930426954732, 14.949088269927536, 12.904373033163882, 6.128872405121171, 5.68420793996611, 4.6927791495198905, 6.608282475994512, 2.7683342435245706, 2.1544618908382067, 1.2625633167280343, 0.0, 17.327186535493826, 13.888196484008375, 10.772309454191033, 8.30500273057371, 13.216564951989024, 6.5698908093278465, 5.68420793996611, 4.377766003657979, 6.452186516581941, 4.98302942330918, 2.8147860853909465, 1.223838331342095, 0.0), # 106
(17.17019205582394, 13.389386509358822, 14.043902906378605, 14.907924230072464, 12.880583393851367, 6.114044055784181, 5.657648113566415, 4.6764461591220865, 6.595216289437586, 2.7578861486322928, 2.145738986354776, 1.2587193343440908, 0.0, 17.29198013117284, 13.845912677784996, 10.728694931773878, 8.273658445896878, 13.190432578875171, 6.547024622770921, 5.657648113566415, 4.367174325560129, 6.440291696925684, 4.969308076690822, 2.808780581275721, 1.2172169553962566, 0.0), # 107
(17.11557391304348, 13.31677741935484, 14.013656250000002, 14.866702581521741, 12.856764705882352, 6.099450000000001, 5.631126050420168, 4.660500000000001, 6.582225000000001, 2.7474141176470597, 2.1371217703349283, 1.2548684210526317, 0.0, 17.256796875000003, 13.803552631578947, 10.685608851674642, 8.242242352941178, 13.164450000000002, 6.524700000000001, 5.631126050420168, 4.356750000000001, 6.428382352941176, 4.955567527173915, 2.8027312500000003, 1.2106161290322583, 0.0), # 108
(17.061280407944178, 13.24442854440462, 13.983196630658439, 14.825451585144926, 12.832946017913338, 6.085120964791952, 5.604651295085936, 4.644948902606311, 6.569320130315501, 2.736918382958122, 2.1286232146021624, 1.2510123095805359, 0.0, 17.221683063271605, 13.761135405385891, 10.64311607301081, 8.210755148874364, 13.138640260631002, 6.502928463648835, 5.604651295085936, 4.346514974851394, 6.416473008956669, 4.941817195048309, 2.796639326131688, 1.2040389585822384, 0.0), # 109
(17.007393988191087, 13.17237405416169, 13.95253022119342, 14.784199501811596, 12.809156378600825, 6.071087677183356, 5.57823339212228, 4.62980109739369, 6.556513203017833, 2.726399176954733, 2.120256290979975, 1.2471527326546823, 0.0, 17.18668499228395, 13.718680059201501, 10.601281454899876, 8.179197530864197, 13.113026406035665, 6.4817215363511655, 5.57823339212228, 4.336491197988112, 6.404578189300413, 4.928066500603866, 2.790506044238684, 1.1974885503783357, 0.0), # 110
(16.953997101449275, 13.10064811827957, 13.921663194444447, 14.742974592391306, 12.785424836601308, 6.0573808641975315, 5.551881886087768, 4.615064814814815, 6.543815740740741, 2.715856732026144, 2.1120339712918663, 1.2432914230019496, 0.0, 17.151848958333336, 13.676205653021444, 10.56016985645933, 8.147570196078432, 13.087631481481482, 6.461090740740741, 5.551881886087768, 4.326700617283951, 6.392712418300654, 4.914324864130436, 2.78433263888889, 1.1909680107526885, 0.0), # 111
(16.90117219538379, 13.029284906411787, 13.890601723251033, 14.701805117753622, 12.76178044057129, 6.044031252857797, 5.5256063215409625, 4.60074828532236, 6.531239266117969, 2.7052912805616076, 2.103969227361333, 1.2394301133492167, 0.0, 17.11722125771605, 13.633731246841382, 10.519846136806663, 8.115873841684822, 13.062478532235938, 6.441047599451304, 5.5256063215409625, 4.3171651806127125, 6.380890220285645, 4.900601705917875, 2.778120344650207, 1.1844804460374354, 0.0), # 112
(16.84890760266548, 12.958437720996821, 13.859426742378105, 14.660775741364255, 12.738210816208445, 6.03106325767524, 5.499473367291093, 4.586889426585454, 6.518827686755172, 2.694737131475729, 2.0960771718458604, 1.2355789404756645, 0.0, 17.0827990215178, 13.591368345232306, 10.480385859229301, 8.084211394427186, 13.037655373510344, 6.421645197219636, 5.499473367291093, 4.307902326910885, 6.369105408104223, 4.886925247121419, 2.7718853484756214, 1.178039792817893, 0.0), # 113
(16.796665616220118, 12.888805352817133, 13.828568512532428, 14.620215718724406, 12.71447202547959, 6.018447338956397, 5.473816387569522, 4.57365844462884, 6.506771421427836, 2.684391825560753, 2.0883733011339594, 1.2317868258169462, 0.0, 17.048295745488062, 13.549655083986407, 10.441866505669795, 8.053175476682258, 13.013542842855673, 6.403121822480377, 5.473816387569522, 4.298890956397426, 6.357236012739795, 4.873405239574803, 2.7657137025064857, 1.1717095775288306, 0.0), # 114
(16.744292825407193, 12.820412877827026, 13.798045399060976, 14.580114081995404, 12.690489213466321, 6.006150688123703, 5.448653685172405, 4.561051990709032, 6.495074987201274, 2.674271397594635, 2.0808463534281283, 1.2280556373838278, 0.0, 17.013611936988678, 13.508612011222104, 10.404231767140642, 8.022814192783905, 12.990149974402549, 6.385472786992645, 5.448653685172405, 4.290107634374073, 6.345244606733161, 4.860038027331802, 2.7596090798121957, 1.165492079802457, 0.0), # 115
(16.691723771827743, 12.753160664131308, 13.767798284975811, 14.540399302859647, 12.666226231660534, 5.994144321151453, 5.423944335775104, 4.549035234674245, 6.483708803536698, 2.6643570113022967, 2.0734817793814444, 1.224378479623102, 0.0, 16.978693067560602, 13.46816327585412, 10.367408896907222, 7.9930710339068884, 12.967417607073395, 6.368649328543944, 5.423944335775104, 4.281531657965324, 6.333113115830267, 4.846799767619883, 2.7535596569951624, 1.1593782421937553, 0.0), # 116
(16.63889299708279, 12.686949079834788, 13.73776805328898, 14.50099985299953, 12.641646931554131, 5.982399254013936, 5.399647415052978, 4.537573346372689, 6.472643289895322, 2.6546298304086586, 2.0662650296469853, 1.2207484569815625, 0.0, 16.943484608744804, 13.428233026797187, 10.331325148234924, 7.963889491225975, 12.945286579790643, 6.352602684921765, 5.399647415052978, 4.2731423242956685, 6.320823465777066, 4.833666617666511, 2.747553610657796, 1.1533590072577082, 0.0), # 117
(16.58573504277338, 12.621678493042284, 13.707895587012551, 14.461844204097451, 12.616715164639011, 5.970886502685445, 5.375721998681383, 4.526631495652572, 6.461848865738361, 2.6450710186386424, 2.0591815548778274, 1.2171586739060027, 0.0, 16.907932032082243, 13.388745412966028, 10.295907774389137, 7.935213055915925, 12.923697731476722, 6.337284093913602, 5.375721998681383, 4.264918930489604, 6.3083575823195055, 4.820614734699151, 2.74157911740251, 1.1474253175492988, 0.0), # 118
(16.532184450500534, 12.557249271858602, 13.678121769158587, 14.422860827835802, 12.591394782407065, 5.9595770831402755, 5.35212716233568, 4.516174852362109, 6.451295950527026, 2.6356617397171678, 2.0522168057270487, 1.2136022348432152, 0.0, 16.87198080911388, 13.349624583275366, 10.261084028635242, 7.906985219151502, 12.902591901054052, 6.322644793306953, 5.35212716233568, 4.256840773671625, 6.295697391203532, 4.807620275945268, 2.7356243538317178, 1.1415681156235096, 0.0), # 119
(16.47817576186529, 12.49356178438856, 13.648387482739144, 14.383978195896983, 12.565649636350196, 5.948442011352714, 5.3288219816912274, 4.506168586349507, 6.440954963722534, 2.626383157369158, 2.045356232847725, 1.2100722442399947, 0.0, 16.835576411380675, 13.31079468663994, 10.226781164238623, 7.879149472107472, 12.881909927445069, 6.308636020889311, 5.3288219816912274, 4.248887150966224, 6.282824818175098, 4.794659398632328, 2.7296774965478288, 1.1357783440353237, 0.0), # 120
(16.423643518468683, 12.430516398736968, 13.618633610766281, 14.345124779963385, 12.539443577960302, 5.937452303297058, 5.305765532423383, 4.49657786746298, 6.430796324786099, 2.6172164353195337, 2.038585286892935, 1.2065618065431336, 0.0, 16.79866431042359, 13.272179871974467, 10.192926434464676, 7.8516493059586, 12.861592649572199, 6.295209014448172, 5.305765532423383, 4.2410373594978985, 6.269721788980151, 4.781708259987796, 2.7237267221532564, 1.1300469453397246, 0.0), # 121
(16.36852226191174, 12.368013483008635, 13.588801036252066, 14.306229051717406, 12.51274045872928, 5.926578974947596, 5.282916890207506, 4.487367865550737, 6.420790453178933, 2.6081427372932153, 2.0318894185157554, 1.2030640261994254, 0.0, 16.761189977783587, 13.233704288193676, 10.159447092578777, 7.824428211879645, 12.841580906357866, 6.282315011771032, 5.282916890207506, 4.2332706963911395, 6.25637022936464, 4.768743017239136, 2.7177602072504135, 1.1243648620916942, 0.0), # 122
(16.312746533795494, 12.305953405308378, 13.558830642208555, 14.267219482841437, 12.485504130149028, 5.915793042278621, 5.260235130718955, 4.478503750460988, 6.410907768362252, 2.5991432270151247, 2.0252540783692634, 1.1995720076556633, 0.0, 16.72309888500163, 13.195292084212294, 10.126270391846315, 7.797429681045372, 12.821815536724504, 6.269905250645383, 5.260235130718955, 4.225566458770444, 6.242752065074514, 4.755739827613813, 2.711766128441711, 1.1187230368462162, 0.0), # 123
(16.256250875720976, 12.244236533741004, 13.528663311647806, 14.228024545017881, 12.457698443711445, 5.905065521264426, 5.237679329633088, 4.469950692041945, 6.401118689797269, 2.590199068210183, 2.018664717106536, 1.1960788553586414, 0.0, 16.68433650361868, 13.156867408945052, 10.09332358553268, 7.770597204630548, 12.802237379594539, 6.257930968858723, 5.237679329633088, 4.217903943760304, 6.2288492218557225, 4.742674848339295, 2.7057326623295617, 1.1131124121582732, 0.0), # 124
(16.198969829289226, 12.18276323641133, 13.498239927581887, 14.188572709929128, 12.429287250908427, 5.894367427879304, 5.215208562625265, 4.461673860141818, 6.391393636945196, 2.5812914246033105, 2.012106785380651, 1.1925776737551523, 0.0, 16.644848305175692, 13.118354411306674, 10.060533926903252, 7.74387427380993, 12.782787273890392, 6.246343404198546, 5.215208562625265, 4.210262448485217, 6.2146436254542134, 4.7295242366430434, 2.6996479855163775, 1.1075239305828484, 0.0), # 125
(16.14083793610127, 12.121433881424165, 13.46750137302285, 14.148792449257574, 12.400234403231872, 5.883669778097547, 5.192781905370843, 4.453638424608819, 6.381703029267251, 2.57240145991943, 2.005565733844684, 1.1890615672919902, 0.0, 16.604579761213643, 13.079677240211891, 10.02782866922342, 7.717204379758288, 12.763406058534501, 6.235093794452347, 5.192781905370843, 4.202621270069677, 6.200117201615936, 4.716264149752526, 2.69350027460457, 1.1019485346749243, 0.0), # 126
(16.08178973775815, 12.06014883688432, 13.436388530982757, 14.108612234685616, 12.370503752173677, 5.872943587893444, 5.170358433545185, 4.445809555291159, 6.3720172862246445, 2.563510337883461, 1.9990270131517138, 1.1855236404159475, 0.0, 16.56347634327348, 13.040760044575421, 9.99513506575857, 7.690531013650382, 12.744034572449289, 6.224133377407623, 5.170358433545185, 4.194959705638174, 6.185251876086839, 4.702870744895206, 2.6872777061965514, 1.0963771669894837, 0.0), # 127
(16.021759775860883, 11.998808470896611, 13.404842284473675, 14.06796053789565, 12.340059149225747, 5.862159873241292, 5.147897222823644, 4.438152422037048, 6.362306827278591, 2.554599222220326, 1.9924760739548175, 1.1819569975738184, 0.0, 16.521483522896165, 13.001526973312, 9.962380369774086, 7.663797666660978, 12.724613654557182, 6.2134133908518665, 5.147897222823644, 4.187257052315209, 6.170029574612873, 4.689320179298551, 2.680968456894735, 1.0908007700815103, 0.0), # 128
(15.960682592010507, 11.937313151565847, 13.37280351650766, 14.026765830570064, 12.308864445879973, 5.85128965011538, 5.125357348881582, 4.430632194694696, 6.352542071890305, 2.5456492766549457, 1.9858983669070716, 1.1783547432123955, 0.0, 16.478546771622668, 12.96190217533635, 9.929491834535357, 7.636947829964836, 12.70508414378061, 6.202885072572574, 5.125357348881582, 4.179492607225272, 6.154432222939986, 4.675588610190022, 2.6745607033015326, 1.0852102865059863, 0.0), # 129
(15.89849272780806, 11.875563246996844, 13.34021311009677, 13.984956584391266, 12.276883493628256, 5.840303934489999, 5.102697887394356, 4.423214043112313, 6.342693439521001, 2.536641664912241, 1.9792793426615536, 1.174709981778473, 0.0, 16.434611560993947, 12.921809799563201, 9.896396713307768, 7.609924994736723, 12.685386879042001, 6.192499660357238, 5.102697887394356, 4.171645667492856, 6.138441746814128, 4.66165219479709, 2.668042622019354, 1.0795966588178951, 0.0), # 130
(15.83512472485457, 11.81345912529441, 13.307011948253072, 13.942461271041642, 12.244080143962494, 5.829173742339445, 5.079877914037328, 4.415863137138113, 6.332731349631892, 2.527557550717134, 1.9726044518713404, 1.1710158177188439, 0.0, 16.38962336255096, 12.88117399490728, 9.863022259356702, 7.5826726521514, 12.665462699263784, 6.182208391993358, 5.079877914037328, 4.16369553024246, 6.122040071981247, 4.647487090347215, 2.6614023896506143, 1.073950829572219, 0.0), # 131
(15.770513124751067, 11.750901154563357, 13.27314091398862, 13.899208362203591, 12.210418248374584, 5.817870089638008, 5.056856504485853, 4.408544646620305, 6.322626221684192, 2.5183780977945447, 1.9658591451895095, 1.1672653554803014, 0.0, 16.343527647834676, 12.839918910283313, 9.829295725947548, 7.555134293383633, 12.645252443368385, 6.171962505268427, 5.056856504485853, 4.155621492598577, 6.105209124187292, 4.633069454067865, 2.654628182797724, 1.0682637413239418, 0.0), # 132
(15.704592469098595, 11.687789702908498, 13.238540890315475, 13.855126329559509, 12.175861658356425, 5.80636399235998, 5.03359273441529, 4.4012237414071, 6.312348475139116, 2.509084469869395, 1.9590288732691383, 1.1634516995096391, 0.0, 16.296269888386057, 12.797968694606027, 9.795144366345692, 7.527253409608184, 12.624696950278231, 6.1617132379699395, 5.03359273441529, 4.1474028516857, 6.087930829178212, 4.618375443186504, 2.647708178063095, 1.0625263366280455, 0.0), # 133
(15.63729729949817, 11.624025138434646, 13.203152760245707, 13.81014364479179, 12.14037422539991, 5.794626466479654, 5.010045679501001, 4.3938655913467075, 6.301868529457877, 2.499657830666606, 1.952099086763304, 1.1595679542536501, 0.0, 16.24779555574605, 12.755247496790147, 9.76049543381652, 7.498973491999817, 12.603737058915755, 6.151411827885391, 5.010045679501001, 4.139018904628324, 6.070187112699955, 4.6033812149305975, 2.6406305520491418, 1.0567295580395135, 0.0), # 134
(15.568562157550836, 11.559507829246614, 13.166917406791363, 13.764188779582833, 12.103919800996945, 5.7826285279713225, 4.986174415418341, 4.3864353662873405, 6.291156804101687, 2.4900793439110998, 1.945055236325083, 1.155607224159128, 0.0, 16.198050121455637, 12.711679465750406, 9.725276181625414, 7.470238031733298, 12.582313608203375, 6.141009512802277, 4.986174415418341, 4.130448948550945, 6.051959900498472, 4.588062926527612, 2.633383481358273, 1.0508643481133288, 0.0), # 135
(15.498321584857623, 11.494138143449213, 13.129775712964513, 13.717190205615022, 12.066462236639419, 5.770341192809277, 4.961938017842671, 4.378898236077208, 6.280183718531764, 2.4803301733277956, 1.9378827726075534, 1.1515626136728663, 0.0, 16.146979057055766, 12.667188750401527, 9.689413863037766, 7.4409905199833855, 12.560367437063528, 6.130457530508091, 4.961938017842671, 4.121672280578055, 6.033231118319709, 4.572396735205008, 2.6259551425929026, 1.044921649404474, 0.0), # 136
(15.426510123019561, 11.427816449147253, 13.091668561777217, 13.66907639457077, 12.02796538381924, 5.757735476967808, 4.93729556244935, 4.371219370564522, 6.2689196922093195, 2.4703914826416162, 1.930567146263792, 1.1474272272416581, 0.0, 16.094527834087398, 12.621699499658236, 9.652835731318959, 7.411174447924847, 12.537839384418639, 6.119707118790331, 4.93729556244935, 4.112668197834148, 6.01398269190962, 4.556358798190257, 2.6183337123554433, 1.0388924044679322, 0.0), # 137
(15.353062313637686, 11.360443114445548, 13.052536836241526, 13.619775818132457, 11.988393094028304, 5.744782396421213, 4.912206124913734, 4.363363939597493, 6.257335144595569, 2.4602444355774815, 1.9230938079468758, 1.143194169312297, 0.0, 16.040641924091503, 12.575135862435264, 9.615469039734378, 7.380733306732443, 12.514670289191137, 6.10870951543649, 4.912206124913734, 4.103415997443723, 5.994196547014152, 4.5399252727108195, 2.6105073672483052, 1.0327675558586864, 0.0), # 138
(15.277912698313022, 11.29191850744891, 13.01232141936951, 13.569216947982484, 11.947709218758497, 5.731452967143778, 4.886628780911184, 4.355297113024331, 6.245400495151722, 2.449870195860314, 1.9154482083098823, 1.1388565443315761, 0.0, 15.985266798609034, 12.527421987647335, 9.577241041549412, 7.3496105875809405, 12.490800990303445, 6.0974159582340635, 4.886628780911184, 4.093894976531271, 5.973854609379249, 4.523072315994162, 2.602464283873902, 1.0265380461317193, 0.0), # 139
(15.200995818646616, 11.22214299626215, 12.970963194173232, 13.51732825580325, 11.905877609501736, 5.717718205109798, 4.860522606117057, 4.346984060693248, 6.233086163338999, 2.439249927215034, 1.9076157980058883, 1.134407456746289, 0.0, 15.928347929180966, 12.478482024209175, 9.538078990029442, 7.3177497816451, 12.466172326677999, 6.085777684970546, 4.860522606117057, 4.084084432221284, 5.952938804750868, 4.505776085267751, 2.5941926388346466, 1.020194817842014, 0.0), # 140
(15.122246216239494, 11.151016948990085, 12.92840304366474, 13.464038213277146, 11.862862117749902, 5.7035491262935665, 4.833846676206716, 4.338389952452453, 6.220362568618608, 2.4283647933665637, 1.8995820276879718, 1.129840011003229, 0.0, 15.869830787348244, 12.428240121035515, 9.497910138439858, 7.2850943800996895, 12.440725137237216, 6.073745933433434, 4.833846676206716, 4.0739636616382615, 5.931431058874951, 4.48801273775905, 2.5856806087329485, 1.0137288135445532, 0.0), # 141
(15.041598432692682, 11.07844073373752, 12.884581850856106, 13.409275292086573, 11.818626594994903, 5.688916746669374, 4.806560066855513, 4.329479958150158, 6.207200130451765, 2.417195958039823, 1.8913323480092095, 1.1251473115491895, 0.0, 15.80966084465184, 12.37662042704108, 9.456661740046046, 7.251587874119467, 12.41440026090353, 6.061271941410222, 4.806560066855513, 4.063511961906696, 5.909313297497452, 4.469758430695525, 2.5769163701712214, 1.00713097579432, 0.0), # 142
(14.958987009607215, 11.004314718609267, 12.839440498759389, 13.352967963913915, 11.773134892728635, 5.673792082211512, 4.778621853738811, 4.320219247634575, 6.1935692682996875, 2.405724584959734, 1.8828522096226783, 1.1203224628309636, 0.0, 15.747783572632711, 12.323547091140597, 9.41426104811339, 7.217173754879202, 12.387138536599375, 6.048306946688404, 4.778621853738811, 4.05270863015108, 5.886567446364317, 4.45098932130464, 2.5678880997518783, 1.0003922471462972, 0.0), # 143
(14.874346488584132, 10.928539271710147, 12.792919870386642, 13.29504470044158, 11.726350862442994, 5.658146148894274, 4.749991112531969, 4.310572990753912, 6.1794404016235855, 2.3939318378512175, 1.8741270631814555, 1.115358569295345, 0.0, 15.684144442831826, 12.268944262248793, 9.370635315907277, 7.181795513553651, 12.358880803247171, 6.034802187055478, 4.749991112531969, 4.04153296349591, 5.863175431221497, 4.431681566813861, 2.5585839740773286, 0.993503570155468, 0.0), # 144
(14.787611411224459, 10.851014761144963, 12.744960848749933, 13.235433973351956, 11.67823835562988, 5.641949962691953, 4.7206269189103445, 4.300506357356382, 6.164783949884672, 2.381798880439195, 1.865142359338619, 1.110248735389127, 0.0, 15.618688926790139, 12.212736089280396, 9.325711796693094, 7.145396641317584, 12.329567899769344, 6.020708900298935, 4.7206269189103445, 4.029964259065681, 5.83911917781494, 4.411811324450653, 2.548992169749987, 0.986455887376815, 0.0), # 145
(14.69871631912923, 10.771641555018533, 12.695504316861326, 13.174064254327444, 11.62876122378119, 5.62517453957884, 4.690488348549297, 4.289984517290195, 6.1495703325441635, 2.3693068764485874, 1.8558835487472447, 1.104986065559103, 0.0, 15.551362496048613, 12.154846721150133, 9.279417743736223, 7.107920629345761, 12.299140665088327, 6.005978324206273, 4.690488348549297, 4.0179818139848855, 5.814380611890595, 4.391354751442482, 2.539100863372265, 0.9792401413653213, 0.0), # 146
(14.607595753899481, 10.690320021435666, 12.644491157732865, 13.110864015050435, 11.577883318388821, 5.607790895529226, 4.659534477124183, 4.278972640403562, 6.133769969063274, 2.3564369896043162, 1.846336082060411, 1.0995636642520668, 0.0, 15.482110622148213, 12.095200306772732, 9.231680410302054, 7.069310968812948, 12.267539938126548, 5.990561696564987, 4.659534477124183, 4.005564925378019, 5.7889416591944105, 4.370288005016812, 2.5288982315465733, 0.9718472746759697, 0.0), # 147
(14.51418425713624, 10.606950528501175, 12.591862254376625, 13.045761727203324, 11.525568490944673, 5.5897700465174065, 4.627724380310364, 4.2674358965446935, 6.1173532789032175, 2.3431703836313016, 1.836485409931195, 1.0939746359148106, 0.0, 15.410878776629895, 12.033720995062914, 9.182427049655974, 7.029511150893903, 12.234706557806435, 5.974410255162571, 4.627724380310364, 3.9926928903695758, 5.762784245472337, 4.348587242401109, 2.5183724508753254, 0.9642682298637433, 0.0), # 148
(14.418416370440541, 10.52143344431987, 12.537558489804665, 12.97868586246851, 11.471780592940643, 5.57108300851767, 4.595017133783196, 4.255339455561801, 6.100290681525203, 2.3294882222544664, 1.8263169830126733, 1.0882120849941288, 0.0, 15.337612431034628, 11.970332934935415, 9.131584915063366, 6.988464666763398, 12.200581363050405, 5.957475237786521, 4.595017133783196, 3.9793450060840496, 5.735890296470322, 4.326228620822837, 2.507511697960933, 0.9564939494836247, 0.0), # 149
(14.320226635413416, 10.433669136996565, 12.481520747029043, 12.909564892528387, 11.416483475868631, 5.551700797504312, 4.561371813218041, 4.242648487303093, 6.0825525963904505, 2.31537166919873, 1.815816251957923, 1.0822691159368145, 0.0, 15.262257056903364, 11.904960275304958, 9.079081259789614, 6.946115007596189, 12.165105192780901, 5.93970788222433, 4.561371813218041, 3.9655005696459367, 5.7082417379343156, 4.303188297509463, 2.4963041494058085, 0.948515376090597, 0.0), # 150
(14.219549593655895, 10.343557974636072, 12.423689909061814, 12.838327289065347, 11.359640991220532, 5.531594429451621, 4.526747494290255, 4.229328161616783, 6.064109442960174, 2.3008018881890155, 1.8049686674200216, 1.0761388331896609, 0.0, 15.184758125777073, 11.837527165086268, 9.024843337100108, 6.902405664567045, 12.128218885920347, 5.921059426263496, 4.526747494290255, 3.951138878179729, 5.679820495610266, 4.27944242968845, 2.484737981812363, 0.9403234522396431, 0.0), # 151
(14.116319786769019, 10.251000325343204, 12.364006858915053, 12.76490152376179, 11.301216990488243, 5.510734920333892, 4.491103252675198, 4.215343648351081, 6.044931640695582, 2.2857600429502427, 1.7937596800520466, 1.0698143411994616, 0.0, 15.105061109196717, 11.767957753194075, 8.968798400260232, 6.857280128850727, 12.089863281391164, 5.901481107691514, 4.491103252675198, 3.936239228809923, 5.650608495244121, 4.254967174587264, 2.4728013717830106, 0.931909120485746, 0.0), # 152
(14.010471756353809, 10.155896557222773, 12.302412479600802, 12.68921606830011, 11.241175325163667, 5.489093286125417, 4.454398164048228, 4.200660117354197, 6.024989609057894, 2.2702272972073336, 1.782174740507075, 1.0632887444130097, 0.0, 15.02311147870325, 11.696176188543106, 8.910873702535374, 6.810681891622, 12.049979218115787, 5.880924164295876, 4.454398164048228, 3.920780918661012, 5.620587662581833, 4.229738689433371, 2.4604824959201608, 0.9232633233838886, 0.0), # 153
(13.901940044011312, 10.05814703837959, 12.238847654131138, 12.611199394362703, 11.179479846738696, 5.466640542800487, 4.416591304084705, 4.185242738474343, 6.00425376750832, 2.254184814685209, 1.7701992994381837, 1.0565551472770989, 0.0, 14.938854705837642, 11.622106620048086, 8.850996497190918, 6.762554444055626, 12.00850753501664, 5.85933983386408, 4.416591304084705, 3.904743244857491, 5.589739923369348, 4.203733131454236, 2.447769530826228, 0.9143770034890537, 0.0), # 154
(13.790659191342543, 9.957652136918465, 12.173253265518113, 12.530779973631962, 11.116094406705237, 5.443347706333395, 4.377641748459985, 4.169056681559727, 5.982694535508077, 2.23761375910879, 1.7578188074984502, 1.0496066542385225, 0.0, 14.852236262140847, 11.545673196623744, 8.789094037492251, 6.712841277326369, 11.965389071016155, 5.836679354183619, 4.377641748459985, 3.8881055045238533, 5.5580472033526185, 4.176926657877321, 2.4346506531036227, 0.9052411033562243, 0.0), # 155
(13.676563739948545, 9.854312220944214, 12.10557019677379, 12.447886277790282, 11.050982856555176, 5.419185792698435, 4.33750857284943, 4.152067116458564, 5.960282332518376, 2.220495294202998, 1.7450187153409518, 1.0424363697440735, 0.0, 14.763201619153833, 11.466800067184806, 8.725093576704758, 6.661485882608993, 11.920564665036752, 5.81289396304199, 4.33750857284943, 3.870846994784596, 5.525491428277588, 4.149295425930095, 2.4211140393547583, 0.8958465655403832, 0.0), # 156
(13.559588231430352, 9.748027658561648, 12.035739330910227, 12.362446778520066, 10.984109047780422, 5.394125817869895, 4.296150852928397, 4.134239213019062, 5.9369875780004335, 2.202810583692754, 1.731784473618765, 1.0350373982405456, 0.0, 14.671696248417557, 11.385411380646001, 8.658922368093824, 6.60843175107826, 11.873975156000867, 5.787934898226687, 4.296150852928397, 3.8529470127642105, 5.492054523890211, 4.120815592840023, 2.407147866182046, 0.8861843325965136, 0.0), # 157
(13.43642570352943, 9.636747649274225, 11.960387930853534, 12.27118893522918, 10.912417327045198, 5.366575700132966, 4.252596048835072, 4.1143477142620295, 5.910997254959458, 2.1840146623310153, 1.717678725761683, 1.027139934629151, 0.0, 14.573674546947622, 11.298539280920659, 8.588393628808413, 6.552043986993045, 11.821994509918916, 5.7600867999668415, 4.252596048835072, 3.833268357237833, 5.456208663522599, 4.090396311743061, 2.3920775861707066, 0.8760679681158388, 0.0), # 158
(13.288116180561124, 9.509057777339137, 11.860106727604483, 12.155369164364412, 10.818229571737954, 5.327374130407459, 4.201391487047145, 4.085410149573287, 5.871856356733287, 2.161026447344436, 1.7002250806856987, 1.0172043785524665, 0.0, 14.445769764456351, 11.189248164077128, 8.501125403428492, 6.483079342033307, 11.743712713466573, 5.719574209402602, 4.201391487047145, 3.8052672360053275, 5.409114785868977, 4.051789721454805, 2.372021345520897, 0.8644597979399218, 0.0), # 159
(13.112769770827757, 9.363909602092178, 11.732881436933834, 12.013079639051961, 10.699704157616154, 5.275558360850069, 4.142019373545406, 4.04669939214551, 5.818455136337191, 2.1335425433383026, 1.6791778525828622, 1.0050752923331772, 0.0, 14.285557096008445, 11.055828215664945, 8.39588926291431, 6.400627630014906, 11.636910272674381, 5.665379149003714, 4.142019373545406, 3.7682559720357633, 5.349852078808077, 4.004359879683988, 2.346576287386767, 0.8512645092811072, 0.0), # 160
(12.911799698254727, 9.202249432332774, 11.580070457865464, 11.845672880071582, 10.558071749138534, 5.21175610364883, 4.0749133014061885, 3.9987003998323356, 5.751497860199411, 2.101796186926922, 1.6547224963799123, 0.9908651203361357, 0.0, 14.094673280674375, 10.899516323697492, 8.273612481899562, 6.305388560780765, 11.502995720398822, 5.59818055976527, 4.0749133014061885, 3.722682931177736, 5.279035874569267, 3.9485576266905285, 2.3160140915730927, 0.8365681302120704, 0.0), # 161
(12.686619186767443, 9.025023576860344, 11.403032189423245, 11.654501408203041, 10.394563010763845, 5.1365950709917785, 4.000506863705828, 3.941898130487402, 5.6716887947481816, 2.0660206147246045, 1.6270444670035862, 0.9746863069261941, 0.0, 13.874755057524599, 10.721549376188133, 8.13522233501793, 6.198061844173813, 11.343377589496363, 5.518657382682362, 4.000506863705828, 3.668996479279842, 5.197281505381922, 3.884833802734348, 2.280606437884649, 0.8204566888054858, 0.0), # 162
(12.438641460291295, 8.833178344474314, 11.203125030631053, 11.44091774422611, 10.210408606950825, 5.050702975066952, 3.919233653520661, 3.876777541964344, 5.579732206411743, 2.0264490633456567, 1.5963292193806227, 0.956651296468205, 0.0, 13.627439165629584, 10.523164261150253, 7.9816460969031136, 6.079347190036969, 11.159464412823485, 5.427488558750082, 3.919233653520661, 3.6076449821906795, 5.105204303475412, 3.813639248075371, 2.2406250061262107, 0.8030162131340287, 0.0), # 163
(12.16927974275169, 8.627660043974105, 10.981707380512765, 11.206274408920553, 10.006839202158226, 4.954707528062387, 3.8315272639270197, 3.8038235921168018, 5.476332361618334, 1.9833147694043862, 1.562762208437759, 0.9368725333270206, 0.0, 13.35436234405979, 10.305597866597225, 7.813811042188794, 5.949944308213158, 10.952664723236667, 5.325353028963523, 3.8315272639270197, 3.5390768057588473, 5.003419601079113, 3.735424802973519, 2.1963414761025533, 0.7843327312703733, 0.0), # 164
(11.879947258074031, 8.409414984159142, 10.740137638092254, 10.95192392306614, 9.785085460844787, 4.849236442166116, 3.7378212880012396, 3.7235212387984102, 5.3621935267961875, 1.9368509695151015, 1.5265288891017337, 0.915462461867493, 0.0, 13.057161331885686, 10.070087080542422, 7.632644445508667, 5.810552908545303, 10.724387053592375, 5.2129297343177745, 3.7378212880012396, 3.4637403158329394, 4.892542730422393, 3.6506413076887143, 2.148027527618451, 0.7644922712871949, 0.0), # 165
(11.572057230183715, 8.17938947382885, 10.479774202393392, 10.679218807442627, 9.546378047469258, 4.734917429566179, 3.6385493188196576, 3.636355439862808, 5.2380199683735436, 1.8872909002921108, 1.4878147162992839, 0.8925335264544754, 0.0, 12.737472868177733, 9.817868790999228, 7.4390735814964195, 5.661872700876331, 10.476039936747087, 5.090897615807931, 3.6385493188196576, 3.3820838782615565, 4.773189023734629, 3.5597396024808767, 2.0959548404786785, 0.7435808612571683, 0.0), # 166
(11.24702288300614, 7.938529821782648, 10.201975472440058, 10.389511582829789, 9.291947626490376, 4.6123782024506115, 3.5341449494586072, 3.542811153163632, 5.104515952778639, 1.834867798349722, 1.4468051449571482, 0.8681981714528189, 0.0, 12.396933692006392, 9.550179885981006, 7.23402572478574, 5.504603395049164, 10.209031905557278, 4.959935614429085, 3.5341449494586072, 3.2945558588932937, 4.645973813245188, 3.4631705276099303, 2.040395094488012, 0.7216845292529681, 0.0), # 167
(10.906257440466712, 7.687782336819962, 9.908099847256123, 10.084154770007387, 9.023024862366888, 4.482246473007449, 3.425041772994424, 3.44337333655452, 4.962385746439713, 1.779814900302243, 1.4036856300020644, 0.8425688412273767, 0.0, 12.037180542442131, 9.268257253501142, 7.018428150010321, 5.339444700906728, 9.924771492879426, 4.820722671176328, 3.425041772994424, 3.2016046235767495, 4.511512431183444, 3.361384923335797, 1.9816199694512246, 0.6988893033472693, 0.0), # 168
(10.551174126490828, 7.428093327740216, 9.599505725865463, 9.76450088975519, 8.740840419557543, 4.3451499534247295, 3.3116733825034426, 3.338526947889109, 4.812333615785002, 1.7223654427639818, 1.3586416263607706, 0.8157579801430009, 0.0, 11.659850158555415, 8.97333778157301, 6.793208131803853, 5.167096328291944, 9.624667231570005, 4.673937727044753, 3.3116733825034426, 3.103678538160521, 4.370420209778771, 3.254833629918398, 1.9199011451730927, 0.675281211612747, 0.0), # 169
(10.18318616500389, 7.160409103342831, 9.277551507291953, 9.43190246285296, 8.44662496252108, 4.201716355890488, 3.1944733710619975, 3.228756945021036, 4.655063827242743, 1.6627526623492466, 1.311858588960005, 0.7878780325645439, 0.0, 11.2665792794167, 8.666658358209983, 6.559292944800025, 4.988257987047739, 9.310127654485486, 4.52025972302945, 3.1944733710619975, 3.0012259684932054, 4.22331248126054, 3.1439674876176547, 1.8555103014583907, 0.6509462821220756, 0.0), # 170
(9.8037067799313, 6.88567597242723, 8.943595590559468, 9.087712010080473, 8.141609155716246, 4.052573392592758, 3.0738753317464247, 3.1145482858039375, 4.491280647241173, 1.6012097956723452, 1.2635219727265048, 0.759041442856858, 0.0, 10.859004644096458, 8.349455871425437, 6.317609863632523, 4.803629387017034, 8.982561294482347, 4.360367600125513, 3.0738753317464247, 2.8946952804233987, 4.070804577858123, 3.029237336693492, 1.7887191181118935, 0.6259705429479302, 0.0), # 171
(9.414149195198457, 6.604840243792839, 8.59899637469188, 8.733282052217486, 7.827023663601784, 3.898348775719581, 2.950312857633059, 2.996385928091453, 4.321688342208532, 1.5379700793475863, 1.2138172325870082, 0.7293606553847958, 0.0, 10.438762991665145, 8.022967209232752, 6.069086162935041, 4.613910238042758, 8.643376684417063, 4.194940299328034, 2.950312857633059, 2.7845348397997007, 3.913511831800892, 2.911094017405829, 1.7197992749383764, 0.6004400221629854, 0.0), # 172
(9.015926634730764, 6.31884822623908, 8.245112258713068, 8.369965110043767, 7.504099150636442, 3.739670217458989, 2.824219541798235, 2.874754829737218, 4.146991178573053, 1.4732667499892769, 1.1629298234682535, 0.6989481145132089, 0.0, 10.007491061193234, 7.6884292596452966, 5.8146491173412675, 4.41980024996783, 8.293982357146106, 4.024656761632105, 2.824219541798235, 2.6711930124707064, 3.752049575318221, 2.7899883700145893, 1.6490224517426137, 0.5744407478399164, 0.0), # 173
(8.610452322453618, 6.028646228565374, 7.883301641646902, 7.99911370433908, 7.174066281278959, 3.57716542999902, 2.6960289773182877, 2.7501399485948705, 3.9678934227629785, 1.4073330442117262, 1.1110452002969786, 0.6679162646069503, 0.0, 9.566825591751181, 7.347078910676452, 5.555226001484892, 4.221999132635178, 7.935786845525957, 3.850195928032819, 2.6960289773182877, 2.5551181642850143, 3.5870331406394795, 2.6663712347796937, 1.5766603283293805, 0.5480587480513978, 0.0), # 174
(8.19913948229242, 5.7351805595711465, 7.514922922517262, 7.622080355883197, 6.838155719988082, 3.41146212552771, 2.566174757269552, 2.623026242518047, 3.7850993412065432, 1.3404021986292411, 1.058348817999921, 0.6363775500308723, 0.0, 9.118403322409455, 7.000153050339593, 5.291744089999604, 4.021206595887723, 7.5701986824130865, 3.6722367395252657, 2.566174757269552, 2.4367586610912215, 3.419077859994041, 2.540693451961066, 1.5029845845034526, 0.5213800508701043, 0.0), # 175
(7.783401338172574, 5.43939752805582, 7.141334500348018, 7.240217585455879, 6.497598131222556, 3.2431880162330953, 2.4350904747283635, 2.493898669360387, 3.5993132003319848, 1.2727074498561304, 1.0050261315038191, 0.6044444151498269, 0.0, 8.663860992238513, 6.648888566648095, 5.025130657519095, 3.8181223495683905, 7.1986264006639695, 3.4914581371045417, 2.4350904747283635, 2.3165628687379254, 3.248799065611278, 2.4134058618186267, 1.4282669000696038, 0.49449068436871096, 0.0), # 176
(7.364651114019479, 5.1422434428188195, 6.763894774163046, 6.8548779138368925, 6.1536241794411275, 3.0729708143032117, 2.303209722771056, 2.3632421869755245, 3.411239266567542, 1.2044820345067013, 0.9512625957354108, 0.5722293043286669, 0.0, 8.204835340308824, 6.2945223476153345, 4.756312978677054, 3.6134461035201033, 6.822478533135084, 3.3085390617657344, 2.303209722771056, 2.1949791530737226, 3.0768120897205637, 2.284959304612298, 1.3527789548326095, 0.4674766766198928, 0.0), # 177
(6.944302033758534, 4.8446646126595665, 6.383962142986221, 6.467413861806007, 5.807464529102536, 2.901438231926097, 2.170966094473966, 2.2315417532170994, 3.2215818063414514, 1.1359591891952627, 0.897243665621434, 0.5398446619322442, 0.0, 7.742963105690853, 5.938291281254685, 4.486218328107169, 3.4078775675857873, 6.443163612682903, 3.1241584545039394, 2.170966094473966, 2.072455879947212, 2.903732264551268, 2.1558046206020025, 1.2767924285972443, 0.44042405569632426, 0.0), # 178
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179
)
passenger_allighting_rate = (
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 0
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 1
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 2
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 3
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 4
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 5
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 6
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 7
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 8
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 9
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 10
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 11
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 12
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 13
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 14
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 15
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 16
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 17
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 18
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 19
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 20
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 21
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 22
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 23
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 24
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 25
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 26
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 27
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 28
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 29
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 30
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 31
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 32
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 33
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 34
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 35
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 36
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 37
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 38
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 39
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 40
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 41
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 42
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 43
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 44
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 45
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 46
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 47
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 48
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 49
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 50
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 51
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 52
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 53
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 54
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 55
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 56
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 57
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 58
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 59
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 60
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 61
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 62
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 63
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 64
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 65
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 66
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 67
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 68
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 69
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 70
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 71
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 72
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 73
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 74
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 75
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 76
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 77
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 78
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 79
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 80
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 81
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 82
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 83
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 84
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 85
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 86
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 87
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 88
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 89
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 90
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 91
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 92
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 93
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 94
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 95
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 96
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 97
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 98
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 99
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 100
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 101
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 102
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 103
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 104
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 105
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 106
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 107
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 108
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 109
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 110
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 111
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 112
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 113
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 114
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 115
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 116
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 117
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 118
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 119
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 120
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 121
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 122
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 123
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 124
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 125
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 126
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 127
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 128
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 129
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 130
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 131
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 132
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 133
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 134
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 135
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 136
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 137
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 138
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 139
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 140
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 141
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 142
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 143
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 144
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 145
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 146
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 147
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 148
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 149
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 150
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 151
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 152
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 153
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 154
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 155
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 156
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 157
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 158
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 159
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 160
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 161
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 162
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 163
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 164
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 165
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 166
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 167
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 168
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 169
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 170
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 171
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 172
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 173
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 174
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 175
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 176
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 177
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 178
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 179
)
"""
parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html
"""
#initial entropy
entropy = 8991598675325360468762009371570610170
#index for seed sequence child
child_seed_index = (
1, # 0
90, # 1
)
| 278.423529 | 490 | 0.771348 | 32,987 | 260,326 | 6.086974 | 0.234547 | 0.354996 | 0.340653 | 0.645447 | 0.366874 | 0.361002 | 0.360624 | 0.360484 | 0.360484 | 0.360484 | 0 | 0.851099 | 0.095012 | 260,326 | 934 | 491 | 278.721627 | 0.001184 | 0.015408 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3b819fc49a36e5481eb4534b963cddc6779393b1 | 30 | py | Python | scvelo/pl.py | gokceneraslan/scvelo | 95d90de3d0935ce58a01218c9f179c9494ff593e | [
"BSD-3-Clause"
] | 1 | 2020-10-22T11:08:33.000Z | 2020-10-22T11:08:33.000Z | scvelo/pl.py | gokceneraslan/scvelo | 95d90de3d0935ce58a01218c9f179c9494ff593e | [
"BSD-3-Clause"
] | 1 | 2021-01-03T12:32:53.000Z | 2021-01-03T12:32:53.000Z | scvelo/pl.py | gokceneraslan/scvelo | 95d90de3d0935ce58a01218c9f179c9494ff593e | [
"BSD-3-Clause"
] | null | null | null | from scvelo.plotting import *
| 15 | 29 | 0.8 | 4 | 30 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
3b84695ed1333dd42b14d717ffce88b26855a96e | 12,610 | py | Python | 2_3_lineare_regression/utils_lineare_regression.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | null | null | null | 2_3_lineare_regression/utils_lineare_regression.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | null | null | null | 2_3_lineare_regression/utils_lineare_regression.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | 1 | 2021-07-20T11:38:47.000Z | 2021-07-20T11:38:47.000Z | import matplotlib.pyplot as plt
import numpy as np
from ipywidgets import interactive, interactive_output, fixed, HBox, VBox
import ipywidgets as widgets
def true_function_old(x):
x_copy = -1 * x
f = 2 * x_copy * np.sin(0.8*x_copy) + 0.5 * x_copy**2 - 5
return f
def sigmoid(x, L=10, k=2, x_0=20):
return L / (1 + np.exp(-k * (x - x_0)))
def true_function(x):
const = 17
lin = -0.25 * x
quad = 0.2*(x-20)**2
sig = sigmoid(x, L=-20, k=0.6, x_0=30)
# quad_sig = - sigmoid(xx, L=1, k=0.6, x_0=30) * (0.1 * (x-40)**2)
sig2 = sigmoid(x, L=-50, k=0.8, x_0=37)
f = const + lin + quad + sig + sig2
return f
def generate_data(n_samples=50, random_state=None):
rng = np.random.RandomState(random_state)
# Beobachtungen
x_sample = 40 * rng.rand(n_samples)
# Kennzeichnungen/Labels
f_sample = true_function(x_sample)
noise = 7 * rng.randn(n_samples)
y_sample = f_sample + noise
return x_sample, y_sample
def interactive_linear_model(x_sample, y_sample):
fig = plt.figure(figsize=(6,6))
ax = fig.add_subplot(1, 1, 1)
ax.set_xlim(-2, 42)
ax.set_ylim(-10, 100)
w = 1.0
b = 0.0
x = np.linspace(0, 40, 100)
y_hat = w * x + b
y_hat_sample = w * x_sample + b
line_handle, = ax.plot(x, y_hat, color="orange")
scatter_handle = ax.scatter(x_sample, y_sample)
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
# {:.2f}
quadratic_error_handle = ax.text(25, 80, f"L2 error: {quadratic_error:.2f}", fontsize=12)
absolute_error_handle = ax.text(25, 70, f"L1 error: {absolute_error:.2f}", fontsize=12)
def update(w=1.0, b=0.0):
y_hat = w * x + b
y_hat_sample = w * x_sample + b
line_handle.set_data(x, y_hat)
array = np.concatenate((x_sample, y_sample, y_hat_sample))
# does not work:
# global vline_handles
# vline_handles.remove()
# hacky instead
ax.collections = ax.collections[:1]
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
quadratic_error_handle.set_text(f"L2 error: {quadratic_error:.2f}")
absolute_error_handle.set_text(f"L1 error: {absolute_error:.2f}")
fig.canvas.draw_idle()
w1_slider = widgets.FloatSlider(
value=1.0,
min=-15.0,
max=15.0,
step=0.1,
description="w1",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
bias_slider = widgets.FloatSlider(
value=0.0,
min=-5.0,
max=120.0,
step=1.0,
description=r'$\theta$',
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
ui = VBox(
children=[w1_slider, bias_slider]
)
interactive_plot = interactive_output(
update,
{"w": w1_slider, "b": bias_slider}
)
return interactive_plot, ui
def interactive_quadratic_model(x_sample, y_sample):
fig = plt.figure(figsize=(6,6))
ax = fig.add_subplot(1, 1, 1)
w1 = 1.0
w2 = 0.0
b = 0.0
ax.set_xlim(-2, 42)
ax.set_ylim(-10, 100)
x = np.linspace(0, 40, 100)
y_hat = w2 * x**2 + w1 * x + b
y_hat_sample = w2 * x_sample**2 + w1 * x_sample + b
line_handle, = ax.plot(x, y_hat, color="orange")
scatter_handle = ax.scatter(x_sample, y_sample)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error_handle = ax.text(25, 80, f"L2 error: {quadratic_error:.2f}", fontsize=12)
absolute_error_handle = ax.text(25, 70, f"L1 error: {absolute_error:.2f}", fontsize=12)
# {:.2f}
def update(w2=0.0, w1=1.0, b=0.0):
y_hat = w2 * x**2 + w1 * x + b
y_hat_sample = w2 * x_sample**2 + w1 * x_sample + b
line_handle.set_data(x, y_hat)
array = np.concatenate((x_sample, y_sample, y_hat_sample))
# does not work:
# global vline_handles
# vline_handles.remove()
# hacky instead
ax.collections = ax.collections[:1]
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
quadratic_error_handle.set_text(f"L2 error: {quadratic_error:.2f}")
absolute_error_handle.set_text(f"L1 error: {absolute_error:.2f}")
fig.canvas.draw_idle()
w2_slider = widgets.FloatSlider(
value=0.0,
min=-2.0,
max=2.0,
step=0.01,
description="w2",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
w1_slider = widgets.FloatSlider(
value=1.0,
min=-15.0,
max=15.0,
step=0.1,
description="w1",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
bias_slider = widgets.FloatSlider(
value=0.0,
min=-5.0,
max=120.0,
step=1.0,
description=r'$\theta$',
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
ui = VBox(
children=[w2_slider, w1_slider, bias_slider]
)
interactive_plot = interactive_output(
update,
{"w2": w2_slider, "w1": w1_slider, "b": bias_slider}
)
return interactive_plot, ui
def interactive_cubic_model(x_sample, y_sample):
fig = plt.figure(figsize=(6,6))
ax = fig.add_subplot(1, 1, 1)
ax.set_xlim(-2, 42)
ax.set_ylim(-10, 100)
w1 = 1.0
w2 = 0.0
w3 = 0.0
b = 0.0
x = np.linspace(0, 40, 100)
y_hat = w3 * x**3 + w2 * x**2 + w1 * x + b
y_hat_sample = w3 * x_sample**3 + w2 * x_sample**2 + w1 * x_sample + b
line_handle, = ax.plot(x, y_hat, color="orange")
scatter_handle = ax.scatter(x_sample, y_sample)
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
quadratic_error_handle = ax.text(25, 80, f"L2 error: {quadratic_error:.2f}", fontsize=12)
absolute_error_handle = ax.text(25, 70, f"L1 error: {absolute_error:.2f}", fontsize=12)
def update(w3=0.0, w2=0.0, w1=1.0, b=0.0):
y_hat = w3 * x**3 + w2 * x**2 + w1 * x + b
y_hat_sample = w3 * x_sample**3 + w2 * x_sample**2 + w1 * x_sample + b
line_handle.set_data(x, y_hat)
array = np.concatenate((x_sample, y_sample, y_hat_sample))
# does not work:
# global vline_handles
# vline_handles.remove()
# hacky instead
ax.collections = ax.collections[:1]
vline_handles = ax.vlines(x_sample.T, ymin=y_sample.T, ymax=y_hat_sample,
linestyle="dashed",color='r',alpha=0.3)
quadratic_error = np.mean((y_hat_sample - y_sample)**2)
absolute_error = np.mean(np.abs(y_hat_sample - y_sample))
quadratic_error_handle.set_text(f"L2 error: {quadratic_error:.2f}")
absolute_error_handle.set_text(f"L1 error: {absolute_error:.2f}")
fig.canvas.draw_idle()
w3_slider = widgets.FloatSlider(
value=0.0,
min=-0.01,
max=0.01,
step=0.001,
description="w3",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.3f',
)
w2_slider = widgets.FloatSlider(
value=0.0,
min=-5.0,
max=5.0,
step=0.01,
description="w2",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
w1_slider = widgets.FloatSlider(
value=1.0,
min=-15.0,
max=15.0,
step=0.1,
description="w1",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
bias_slider = widgets.FloatSlider(
value=0.0,
min=-5.0,
max=120.0,
step=1.0,
description=r'$\theta$',
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
ui = VBox(
children=[w3_slider, w2_slider, w1_slider, bias_slider]
)
interactive_plot = interactive_output(
update,
{"w3": w3_slider, "w2": w2_slider, "w1": w1_slider, "b": bias_slider}
)
return interactive_plot, ui
def true_function_2d(x1, x2):
f = 2 * x1 * np.sin(x2) + 0.5 * x1**2 - np.cos(x2) - 5
return f
def interactive_linear_2D_Model():
fig = plt.figure(figsize=(8,8))
ax = plt.axes(projection="3d")
w1 = 1.0
w2 = 1.0
b = 0.0
rng = np.random.RandomState(1)
x1_sample = 10 * rng.rand(100)
x2_sample = 10 * rng.rand(100)
f_sample = true_function_2d(x1_sample, x2_sample)
noise = 10 * rng.randn(100)
y_sample = f_sample + noise
ax.scatter(x1_sample, x2_sample, y_sample)
x1 = np.linspace(0, 10, 100)
x2 = np.linspace(0, 10, 100)
X1, X2 = np.meshgrid(x1, x2)
F = true_function_2d(X1, X2)
Y_hat = w1 * X1 + w2 * X2 + b
y_hat_sample = w1 * x1_sample + w2 * x2_sample + b
contour_handle = ax.contour3D(X1, X2, Y_hat, 50, cmap="viridis")
scatter_handle = ax.scatter(x1_sample, x2_sample, y_sample)
error_lines_handles = [
ax.plot3D(
[xx1, xx1],
[xx2, xx2],
[yy_hat, yy],
linestyle="dashed",
color="r",
alpha=0.3
)[0] for xx1, xx2, yy, yy_hat in zip(x1_sample, x2_sample, y_sample, y_hat_sample)
]
def update(w1=1.0, w2=1.0, b=0.0):
Y_hat = w1 * X1 + w2 * X2 + b
y_hat_sample = w1 * x1_sample + w2 * x2_sample + b
global contour_handle
for collection in contour_handle.collections:
collection.remove()
contour_handle = ax.contour3D(X1, X2, Y_hat, 50, cmap="viridis")
for i, error_line_handle in enumerate(error_lines_handles):
error_line_handle.set_data_3d(
[x1_sample[i], x1_sample[i]],
[x2_sample[i], x2_sample[i]],
[y_sample[i], y_hat_sample[i]]
)
fig.canvas.draw_idle()
w2_slider = widgets.FloatSlider(
value=0.0,
min=-10.0,
max=10.0,
step=0.1,
description="w2",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
w1_slider = widgets.FloatSlider(
value=1.0,
min=-10.0,
max=10.0,
step=0.1,
description="w1",
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
bias_slider = widgets.FloatSlider(
value=0.0,
min=-15.0,
max=15.0,
step=1.0,
description=r'$\theta$',
disabled=False,
continuous_update=False,
# orientation='horizontal',
readout=True,
readout_format='.2f',
)
ui = VBox(
children=[w2_slider, w1_slider, bias_slider]
)
interactive_plot = interactive_output(
update,
{"w2": w2_slider, "w1": w1_slider, "b": bias_slider}
)
return interactive_plot, ui
| 27.714286 | 93 | 0.576844 | 1,792 | 12,610 | 3.847098 | 0.098772 | 0.02727 | 0.044967 | 0.019147 | 0.835654 | 0.81085 | 0.801276 | 0.791558 | 0.778358 | 0.767044 | 0 | 0.063336 | 0.288818 | 12,610 | 454 | 94 | 27.77533 | 0.705397 | 0.051229 | 0 | 0.6997 | 0 | 0 | 0.046254 | 0.010558 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039039 | false | 0 | 0.012012 | 0.003003 | 0.078078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
3ba136e10196b1495b73f770914313b9378a94d5 | 192 | py | Python | codility/lessons/3-time_complexity/test_tape_equilibrium.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | codility/lessons/3-time_complexity/test_tape_equilibrium.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | codility/lessons/3-time_complexity/test_tape_equilibrium.py | phacic/dsa-py | 77e07361d502aeec004c7e44b714a53fe7f9cae0 | [
"MIT"
] | null | null | null | import pytest
from .tape_equilibrium import solution
@pytest.mark.parametrize("points, least", [((3, 1, 2, 4, 3), 1)])
def test_solution(points, least):
assert solution(points) == least
| 24 | 65 | 0.708333 | 27 | 192 | 4.962963 | 0.62963 | 0.246269 | 0.283582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0.140625 | 192 | 7 | 66 | 27.428571 | 0.775758 | 0 | 0 | 0 | 0 | 0 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
8e5b1aacb54fa89f6ac4089639a07f75ed0fe1b6 | 120 | py | Python | survae/transforms/bijections/coupling/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 262 | 2020-07-05T20:57:44.000Z | 2022-03-28T02:24:43.000Z | survae/transforms/bijections/coupling/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 17 | 2020-08-15T05:43:34.000Z | 2022-01-31T12:24:21.000Z | survae/transforms/bijections/coupling/__init__.py | alisiahkoohi/survae_flows | e1747b05524c7ab540a211ed360ab3e67bc3e96d | [
"MIT"
] | 35 | 2020-08-24T06:55:37.000Z | 2022-02-11T05:17:58.000Z | from .coupling import *
from .coupling_linear import *
from .coupling_splines import *
from .coupling_mixtures import *
| 24 | 32 | 0.8 | 15 | 120 | 6.2 | 0.4 | 0.516129 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 120 | 4 | 33 | 30 | 0.894231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
8e5e69a0cb105a75f1fc69344669a861cd951240 | 64 | py | Python | src/shared/__init__.py | jestra52/supor-numerical-analysis-api | 3cebc86cf2bba95789de1cb45232aaad182f332f | [
"MIT"
] | 1 | 2020-06-09T17:18:01.000Z | 2020-06-09T17:18:01.000Z | src/shared/__init__.py | jestra52/supor-numerical-analysis-api | 3cebc86cf2bba95789de1cb45232aaad182f332f | [
"MIT"
] | null | null | null | src/shared/__init__.py | jestra52/supor-numerical-analysis-api | 3cebc86cf2bba95789de1cb45232aaad182f332f | [
"MIT"
] | null | null | null | from shared.function_manager import *
from shared.util import *
| 21.333333 | 37 | 0.8125 | 9 | 64 | 5.666667 | 0.666667 | 0.392157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 2 | 38 | 32 | 0.910714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 6 |
8ea6f1c59ae878c09e6e83911019aad29ddbda9b | 35 | py | Python | yolov2_tensorflow/test1.py | HK017/cv | 84e797718509e97336995b021e1dc555159196bf | [
"MIT"
] | null | null | null | yolov2_tensorflow/test1.py | HK017/cv | 84e797718509e97336995b021e1dc555159196bf | [
"MIT"
] | null | null | null | yolov2_tensorflow/test1.py | HK017/cv | 84e797718509e97336995b021e1dc555159196bf | [
"MIT"
] | null | null | null | from tensorflow.contrib import slim | 35 | 35 | 0.885714 | 5 | 35 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 35 | 1 | 35 | 35 | 0.96875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
8ee1302c398e532d241dfc672ac7dc2d9c2d9535 | 175 | py | Python | pis/admin.py | janga1997/video_village | 58cba131c97dd3a033935e0675ba62daff7ca64a | [
"MIT"
] | 1 | 2017-03-10T22:44:35.000Z | 2017-03-10T22:44:35.000Z | pis/admin.py | janga1997/video_village | 58cba131c97dd3a033935e0675ba62daff7ca64a | [
"MIT"
] | 14 | 2016-07-08T13:52:46.000Z | 2017-02-13T20:57:18.000Z | pis/admin.py | janga1997/video_village | 58cba131c97dd3a033935e0675ba62daff7ca64a | [
"MIT"
] | 8 | 2016-07-11T16:23:20.000Z | 2018-10-13T06:07:58.000Z | from django.contrib import admin
# Register your models here.
from schedules.models import Window
from .models import Pi
admin.site.register(Pi)
admin.site.register(Window)
| 19.444444 | 35 | 0.805714 | 26 | 175 | 5.423077 | 0.5 | 0.170213 | 0.156028 | 0.269504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 175 | 8 | 36 | 21.875 | 0.915584 | 0.148571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d942e79a6c500cf56ab8971a7bea391cd511012d | 22 | py | Python | icepp/compiler/optimizer/__init__.py | pearcandy/aqcel | 86e2d97d427f6a31ef223c69defbe3f853a69aa2 | [
"Apache-2.0"
] | 3 | 2020-08-30T16:11:49.000Z | 2021-03-05T12:09:30.000Z | icepp/compiler/optimizer/__init__.py | pearcandy/aqcel | 86e2d97d427f6a31ef223c69defbe3f853a69aa2 | [
"Apache-2.0"
] | null | null | null | icepp/compiler/optimizer/__init__.py | pearcandy/aqcel | 86e2d97d427f6a31ef223c69defbe3f853a69aa2 | [
"Apache-2.0"
] | 2 | 2019-07-24T15:12:31.000Z | 2019-09-20T02:17:28.000Z | from .circuit import * | 22 | 22 | 0.772727 | 3 | 22 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
d956aef1c3829354cf765ca1f9965e18af5ac3f7 | 35 | py | Python | s4/synthesis/__init__.py | gabraganca/S4 | 24b4c33fb7caccc52833e31e781fde0f4e25f9bc | [
"BSD-3-Clause"
] | 3 | 2018-05-05T09:00:09.000Z | 2022-01-26T10:09:28.000Z | s4/synthesis/__init__.py | gabraganca/S4 | 24b4c33fb7caccc52833e31e781fde0f4e25f9bc | [
"BSD-3-Clause"
] | 6 | 2017-03-21T18:19:31.000Z | 2018-04-30T20:01:18.000Z | s4/synthesis/__init__.py | gabraganca/S4 | 24b4c33fb7caccc52833e31e781fde0f4e25f9bc | [
"BSD-3-Clause"
] | 1 | 2019-10-22T17:42:08.000Z | 2019-10-22T17:42:08.000Z | from synplotwrapper import Synplot
| 17.5 | 34 | 0.885714 | 4 | 35 | 7.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
d979547a9d4794e5395ce82fb5272e552c0be6f3 | 35 | py | Python | components/tiops/tiops/modules/__init__.py | liubo0127/tiup | bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9 | [
"Apache-2.0"
] | null | null | null | components/tiops/tiops/modules/__init__.py | liubo0127/tiup | bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9 | [
"Apache-2.0"
] | null | null | null | components/tiops/tiops/modules/__init__.py | liubo0127/tiup | bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
from api import *
| 8.75 | 17 | 0.657143 | 6 | 35 | 3.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.228571 | 35 | 3 | 18 | 11.666667 | 0.814815 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
798f5466f2338adb318bf4d559ae219fd9a3a6ae | 356 | py | Python | core/security/__init__.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | core/security/__init__.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | core/security/__init__.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def verify_password_or_key(plain_password_or_key, hashed_password_or_key):
return pwd_context.verify(plain_password_or_key, hashed_password_or_key)
def get_password_or_key_hash(password_or_key):
return pwd_context.hash(password_or_key)
| 29.666667 | 76 | 0.837079 | 53 | 356 | 5.132075 | 0.377358 | 0.294118 | 0.382353 | 0.132353 | 0.4375 | 0.4375 | 0.272059 | 0.272059 | 0 | 0 | 0 | 0 | 0.087079 | 356 | 11 | 77 | 32.363636 | 0.836923 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.833333 | 0.166667 | 0.333333 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 6 |
799478702d73928daa3583b660f5108c12099c49 | 14,347 | py | Python | generate_figures_from_csv.py | Dradoue/Boids | d7b79e49243c4a6fd437285b58ef6c0899e910d2 | [
"MIT"
] | 2 | 2021-04-06T14:41:27.000Z | 2021-08-09T06:11:49.000Z | generate_figures_from_csv.py | Dradoue/Boids | d7b79e49243c4a6fd437285b58ef6c0899e910d2 | [
"MIT"
] | null | null | null | generate_figures_from_csv.py | Dradoue/Boids | d7b79e49243c4a6fd437285b58ef6c0899e910d2 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import pandas as pd
if __name__ == "__main__":
# collect the data you want to plot
# choose a method for the plot
method = 3
if method == 1:
name = "DBSCAN_position_Euclidean_metric"
eps = [70, 75, 80, 85]
# min_sample = [2, 4, 6, 8, 10]
min_sample = [2]
elif method == 2:
name = "DBSCAN_position_velocities_Euclidean_metric"
# param_to_test
alpha = [0.8, 1, 1.2, 1.2]
beta = [5, 10, 20, 30, 40, 50, 60]
elif method == 3:
name = "DBSCAN_position_velocities_multistep_Euclidean"
alpha = [0.6, 0.8, 1, 1.2, 1.4]
phi = [10, 20, 30, 40, 50]
gamma = [0.95, 0.99]
elif method == 4:
name = "DBSCAN_position_velocities_custom_metric"
alpha = [0.8, 1, 1.2, 1.4]
phi = [10, 20, 30, 40, 50]
# choose n_boids to test
list_n_boids = [200, 500, 1000]
# todo to adjust
step_to_analyse_pop200 = [500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400,
1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800,
2900, 2999]
step_to_analyse_pop500 = [500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400,
1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800,
2900, 2999]
step_to_analyse_pop1000 = [500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400,
1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800,
2900, 2999]
# get statistics on number of clusters on time-step :step_to_analyse:
for n_boids in [200]: # list_n_boids[:]:
if n_boids == 200:
step_to_analyse = step_to_analyse_pop200
elif n_boids == 500:
step_to_analyse = step_to_analyse_pop500
elif n_boids == 1000:
step_to_analyse = step_to_analyse_pop500
if method == 1:
# get the file names related to parameters specified
all_names = []
for min_sample_ in min_sample:
for eps_ in eps:
params = "min_sample=" + str(min_sample_) + "_" + "epsilon=" + str(eps_)
name_pandas_file_statistics = "evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
all_names.append(name_pandas_file_statistics)
print(all_names)
# get the data and concat
if len(all_names) > 1:
df = pd.read_csv(all_names[0] + ".csv").to_numpy()
df2 = pd.read_csv(all_names[1] + ".csv").to_numpy()
df_ = np.concatenate((df[None, :, :], df2[None, :, :]), axis=0)
for i in np.arange(2, len(all_names)):
df = pd.read_csv(all_names[i] + ".csv").to_numpy()
df__ = np.concatenate((df_, df[None, :, :]), axis=0)
df_ = df__
label_vec = ['eps=70', 'eps=75', 'eps=80', 'eps=85']
# label_vec = ['min_sample=2', 'min_sample=3','min_sample=4','min_sample=5']
title = "evolution of ARI against epsilon parameter"
# title = "evolution of ARI against min_sample parameter"
params = "min_sample=" + str(min_sample) + "_" + "epsilon=" + str(eps)
name_pandas_file_statistics = "results/evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
data = df_
N = data.shape[2]
n_vec = data.shape[0]
mean = data[:, :, 2]
print(mean.shape)
err_vec = data[:, :, 1]
x_vec = data[0, :, 0]
print("x_vec=", x_vec)
print(err_vec.shape)
print(x_vec.shape)
color_pal = sns.color_palette("colorblind", 11).as_hex()
colors = ["black", "reddish purple", "salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink"]
color_pal = sns.xkcd_palette(colors)
plt.close("all")
fig = plt.figure(figsize=(12, 12))
ax = []
markert = ['o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P']
colort = color_pal
for i in range(N):
ax1, = plt.plot(x_vec, mean[i, :], label=label_vec[i], lw=2, marker=markert[i], markersize=10,
c=colort[i])
plt.fill_between(x_vec, mean[i, :] - err_vec[i, :],
mean[i, :] + err_vec[i, :], color=colort[i],
alpha=0.1)
ax.append(ax1)
plt.grid()
plt.legend()
plt.yticks(np.arange(0, 1, 0.1))
plt.xticks(np.arange(0, 3000, 200))
plt.title(title)
plt.xlabel('time steps')
plt.ylabel('ARI(terrain, method)')
fig.savefig(name_pandas_file_statistics + ".png")
if method == 2:
# get the file names related to parameters specified
all_names = []
label_vec = []
for alpha_ in alpha:
for beta_ in beta:
label_vec.append("alpha=" + str(alpha_) + "_beta=" + str(beta_))
params = "alpha=" + str(alpha_) + "_beta=" + str(beta_)
name_pandas_file_statistics = "results/evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
all_names.append(name_pandas_file_statistics)
print(all_names)
# get the data and concat
if len(all_names) > 1:
df = pd.read_csv(all_names[0] + ".csv").to_numpy()
df2 = pd.read_csv(all_names[1] + ".csv").to_numpy()
df_ = np.concatenate((df[None, :, :], df2[None, :, :]), axis=0)
for i in np.arange(2, len(all_names)):
df = pd.read_csv(all_names[i] + ".csv").to_numpy()
df__ = np.concatenate((df_, df[None, :, :]), axis=0)
df_ = df__
# label_vec = ['min_sample=2', 'min_sample=3','min_sample=4','min_sample=5']
title = "evolution of ARI against alpha parameter"
# title = "evolution of ARI against min_sample parameter"
params = "alpha=" + str(alpha) + "_" + "beta=" + str(beta)
name_pandas_file_statistics = "results/evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
data = df_
N = len(all_names)
n_vec = data.shape[0]
mean = data[:, :, 2]
err_vec = data[:, :, 1]
x_vec = data[0, :, 0]
color_pal = sns.color_palette("colorblind", 11).as_hex()
colors = ["black", "reddish purple", "salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "reddish purple",
"salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "reddish purple",
"salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "reddish purple",
"salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine"]
color_pal = sns.xkcd_palette(colors)
plt.close("all")
fig = plt.figure(figsize=(12, 12))
ax = []
markert = ['o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>',
'8', 'P', 'd', 'h', 'o', 'p', '<', '>', '8', 'P', 'd',
'h', 'o', 'p', '<', '>', '8', 'P', 'd',
'h', 'o', 'p', '<', '>', '8', 'P', 'd', 'p', 's', 'd', 'h', 'o',
'p', 's', 'd', 'h', 'o']
colort = color_pal
for i in range(N):
ax1, = plt.plot(x_vec, mean[i, :], label=label_vec[i], lw=2, marker=markert[i], markersize=10,
c=colort[i])
plt.fill_between(x_vec, mean[i, :] - err_vec[i, :],
mean[i, :] + err_vec[i, :], color=colort[i],
alpha=0.1)
ax.append(ax1)
plt.grid()
plt.legend()
plt.yticks(np.arange(0, 1, 0.1))
plt.xticks(np.arange(0, 3000, 200))
plt.title(title)
plt.xlabel('time steps')
plt.ylabel('ARI(terrain, method)')
fig.savefig(name_pandas_file_statistics + ".png")
print("figure saved:", name_pandas_file_statistics)
if method == 3:
# get the file names related to parameters specified
all_names = []
label_vec = []
for alpha_ in alpha:
for phi_ in phi:
print("gamma=", gamma)
for gamma_ in gamma:
params = "alpha=" + str(alpha_) + "_" + "phi=" + str(phi_) + "_" + "gamma=" + str(gamma_)
label_vec.append(params)
name_pandas_file_statistics = "results/evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
all_names.append(name_pandas_file_statistics)
print(all_names)
# get the data and concat
if len(all_names) > 1:
df = pd.read_csv(all_names[0] + ".csv").to_numpy()
df2 = pd.read_csv(all_names[1] + ".csv").to_numpy()
df_ = np.concatenate((df[None, :, :], df2[None, :, :]), axis=0)
for i in np.arange(2, len(all_names)):
df = pd.read_csv(all_names[i] + ".csv").to_numpy()
df__ = np.concatenate((df_, df[None, :, :]), axis=0)
df_ = df__
# label_vec = ['alpha=0.8', 'alpha=1', 'alpha=1.2', 'alpha=1.4']
# label_vec = ['min_sample=2', 'min_sample=3','min_sample=4','min_sample=5']
title = "evolution of ARI with gamma parameters"
# title = "evolution of ARI against min_sample parameter"
params = "alpha=" + str(alpha) + "_" + "phi=" + str(phi) + "_" + "gamma=" + str(gamma)
name_pandas_file_statistics = "results/evolution_ARI_statistics_on_" + str(
n_boids) + "_" + name + "_" + params
data = df_
print(data)
print(data.shape)
N = len(all_names)
n_vec = data.shape[0]
mean = data[:, :, 2]
err_vec = data[:, :, 1]
x_vec = data[0, :, 0]
color_pal = sns.color_palette("colorblind", 11).as_hex()
colors = ["black", "reddish purple", "salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "aquamarine",
"dark orange", "golden yellow", "reddish pink",
"aquamarine", "dark orange", "golden yellow", "reddish pink",
"black", "reddish purple", "salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "aquamarine",
"dark orange", "golden yellow", "reddish pink",
"aquamarine", "dark orange", "golden yellow", "reddish pink"
, "black", "reddish purple", "salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "aquamarine",
"dark orange", "golden yellow", "reddish pink",
"aquamarine", "dark orange", "golden yellow", "reddish pink", "black", "reddish purple",
"salmon pink", "neon pink", "cornflower", "cobalt blue",
"blue green", "aquamarine", "dark orange", "golden yellow", "reddish pink", "aquamarine",
"dark orange", "golden yellow", "reddish pink",
"aquamarine", "dark orange", "golden yellow", "reddish pink"]
color_pal = sns.xkcd_palette(colors)
plt.close("all")
fig = plt.figure(figsize=(12, 12))
ax = []
markert = ['o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>','8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P',
'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>',
'8', 'P', 'o', 'p', 's', 'd', 'h', 'o', 'p', '<', '>', '8', 'P'
]
colort = color_pal
for i in range(N):
ax1, = plt.plot(x_vec, mean[i, :], label=label_vec[i], lw=2, marker=markert[i], markersize=10,
c=colort[i])
plt.fill_between(x_vec, mean[i, :] - err_vec[i, :],
mean[i, :] + err_vec[i, :], color=colort[i],
alpha=0.1)
ax.append(ax1)
plt.grid()
plt.legend()
plt.yticks(np.arange(0, 1, 0.1))
plt.xticks(np.arange(0, 3000, 200))
plt.title(title)
plt.xlabel('time steps')
plt.ylabel('ARI(terrain, method)')
fig.savefig(name_pandas_file_statistics + ".png")
print("figure saved:", name_pandas_file_statistics)
| 44.144615 | 115 | 0.471248 | 1,659 | 14,347 | 3.883665 | 0.119952 | 0.032283 | 0.049666 | 0.064566 | 0.854881 | 0.853329 | 0.844017 | 0.8316 | 0.82803 | 0.824771 | 0 | 0.064113 | 0.37053 | 14,347 | 324 | 116 | 44.280864 | 0.649319 | 0.063428 | 0 | 0.6875 | 0 | 0 | 0.17637 | 0.027507 | 0.020833 | 0 | 0 | 0.003086 | 0 | 1 | 0 | false | 0 | 0.016667 | 0 | 0.016667 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
79d40654882474997b6c9c5691ce38f44fb89c37 | 239 | py | Python | src/users/views.py | IamkkQi/mysite | 373fde8650c343b40a94ff00cca02a35bf2dd0c1 | [
"Apache-2.0"
] | null | null | null | src/users/views.py | IamkkQi/mysite | 373fde8650c343b40a94ff00cca02a35bf2dd0c1 | [
"Apache-2.0"
] | null | null | null | src/users/views.py | IamkkQi/mysite | 373fde8650c343b40a94ff00cca02a35bf2dd0c1 | [
"Apache-2.0"
] | null | null | null | # Create your views here.
from django.http import HttpResponse
from django.shortcuts import render_to_response
def hello(request):
# return render_to_response('mysite/index.html', {})
return HttpResponse('<h1>Hello world!</h1>')
| 26.555556 | 56 | 0.753138 | 32 | 239 | 5.5 | 0.6875 | 0.113636 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009662 | 0.133891 | 239 | 8 | 57 | 29.875 | 0.84058 | 0.309623 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
8dbf83dd7cb985943f726ea5add478475bfe96c7 | 208 | py | Python | yappy/__init__.py | silversum/yappy | 90ff52c8af011f81747bbe498024875a4796a909 | [
"MIT"
] | null | null | null | yappy/__init__.py | silversum/yappy | 90ff52c8af011f81747bbe498024875a4796a909 | [
"MIT"
] | null | null | null | yappy/__init__.py | silversum/yappy | 90ff52c8af011f81747bbe498024875a4796a909 | [
"MIT"
] | null | null | null | from .__version__ import __version__ # noqa: F401 - imported but unused
from .main import option_from_model_field, options_from_model
__all__ = (
"option_from_model_field",
"options_from_model",
)
| 23.111111 | 72 | 0.769231 | 27 | 208 | 5.111111 | 0.518519 | 0.26087 | 0.217391 | 0.289855 | 0.521739 | 0.521739 | 0.521739 | 0 | 0 | 0 | 0 | 0.017143 | 0.158654 | 208 | 8 | 73 | 26 | 0.771429 | 0.153846 | 0 | 0 | 0 | 0 | 0.235632 | 0.132184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
5c3e239e25a57e18553f6462eb39aa7aa7d968bc | 40 | py | Python | second_package/__init__.py | userMS/test-project | 07008359cfc773c061594654063596c9b9abeb52 | [
"MIT"
] | null | null | null | second_package/__init__.py | userMS/test-project | 07008359cfc773c061594654063596c9b9abeb52 | [
"MIT"
] | null | null | null | second_package/__init__.py | userMS/test-project | 07008359cfc773c061594654063596c9b9abeb52 | [
"MIT"
] | null | null | null | from .package_funcs import sum_multiply
| 20 | 39 | 0.875 | 6 | 40 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
30a607edc712456b9321e1a535637e204dfda8ea | 5,894 | py | Python | CHRLINE/services/SearchService.py | zbx911/CHRLINE | 8e3b0f396193f59705321090778baa576f321c4c | [
"BSD-3-Clause"
] | 1 | 2021-11-30T19:17:04.000Z | 2021-11-30T19:17:04.000Z | CHRLINE/services/SearchService.py | vickysaputraa/CHRLINE | 887ac123d25c55751fff94a26eba976fa3368533 | [
"BSD-3-Clause"
] | null | null | null | CHRLINE/services/SearchService.py | vickysaputraa/CHRLINE | 887ac123d25c55751fff94a26eba976fa3368533 | [
"BSD-3-Clause"
] | null | null | null | # -- coding utf-8 --
class SearchService(object):
def __init__(self):
pass
def searchAll(self):
params = []
sqrd = self.generateDummyProtocol('searchAll', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def searchCollection(self):
params = []
sqrd = self.generateDummyProtocol('searchCollection', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def searchLineat(self):
params = []
sqrd = self.generateDummyProtocol('searchLineat', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def searchByPopularCategory(self):
params = []
sqrd = self.generateDummyProtocol('searchByPopularCategory', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def searchByCategory(self):
params = []
sqrd = self.generateDummyProtocol('searchByCategory', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def getPopularCategory(self):
params = []
sqrd = self.generateDummyProtocol('getPopularCategory', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def getNotice(self):
params = []
sqrd = self.generateDummyProtocol('getNotice', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def getSearchSection(self):
params = []
sqrd = self.generateDummyProtocol('getSearchSection', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def getAutocomplete(self):
params = []
sqrd = self.generateDummyProtocol('getAutocomplete', params, 4)
return self.postPackDataAndGetUnpackRespData("/search/v3", sqrd, 4)
def searchAll(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchAll is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchAll", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def searchInContext(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchInContext is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchInContext", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def getPopularCategory(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("getPopularCategory is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"getPopularCategory", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def getAutocomplete(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("getAutocomplete is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"getAutocomplete", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def searchByPopularCategory(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchByPopularCategory is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchByPopularCategory", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def searchByCategory(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchByCategory is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchByCategory", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def searchLineat(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchLineat is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchLineat", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def getNotice(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("getNotice is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"getNotice", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def getSearchSection(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("getSearchSection is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"getSearchSection", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
def searchCollection(self):
"""
AUTO_GENERATED_CODE! DONT_USE_THIS_FUNC!!
"""
raise Exception("searchCollection is not implemented")
params = []
sqrd = self.generateDummyProtocol(
"searchCollection", params, SearchService_REQ_TYPE)
return self.postPackDataAndGetUnpackRespData(SearchService_API_PATH, sqrd, SearchService_RES_TYPE)
| 38.776316 | 106 | 0.674245 | 513 | 5,894 | 7.524366 | 0.087719 | 0.049223 | 0.068912 | 0.17228 | 0.870725 | 0.861399 | 0.710363 | 0.578238 | 0.578238 | 0.578238 | 0 | 0.006204 | 0.234306 | 5,894 | 151 | 107 | 39.033113 | 0.849103 | 0.074483 | 0 | 0.666667 | 1 | 0 | 0.136294 | 0.013208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20202 | false | 0.010101 | 0 | 0 | 0.40404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
30e49813941bec359d06bbc9f78251a17c120a59 | 106 | py | Python | desc/sysmon/__init__.py | LSSTDESC/desc-wfmon | fa73ee1a00e9503e6bd82d1f81d9806fd9623783 | [
"BSD-3-Clause"
] | null | null | null | desc/sysmon/__init__.py | LSSTDESC/desc-wfmon | fa73ee1a00e9503e6bd82d1f81d9806fd9623783 | [
"BSD-3-Clause"
] | null | null | null | desc/sysmon/__init__.py | LSSTDESC/desc-wfmon | fa73ee1a00e9503e6bd82d1f81d9806fd9623783 | [
"BSD-3-Clause"
] | null | null | null | import importlib.metadata
__version__ = importlib.metadata.version('desc-wfmon')
from .reporter import *
| 21.2 | 54 | 0.801887 | 12 | 106 | 6.75 | 0.666667 | 0.419753 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 106 | 4 | 55 | 26.5 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
a517e9b0b1f670b4e5ef5823735fe1e381d38517 | 6,465 | py | Python | megumin/modulos/admin/bans.py | fnixdev/Megumin | 3e2816fdf85abbc0adef2ec071cda04909a177d8 | [
"MIT"
] | null | null | null | megumin/modulos/admin/bans.py | fnixdev/Megumin | 3e2816fdf85abbc0adef2ec071cda04909a177d8 | [
"MIT"
] | null | null | null | megumin/modulos/admin/bans.py | fnixdev/Megumin | 3e2816fdf85abbc0adef2ec071cda04909a177d8 | [
"MIT"
] | 3 | 2022-01-29T20:04:03.000Z | 2022-02-01T18:17:40.000Z | ##
#
import time
from pyrogram import filters
from pyrogram.errors import PeerIdInvalid, UserIdInvalid, UsernameInvalid
from pyrogram.types import Message
from megumin import megux
from megumin.utils import (
admin_check,
check_bot_rights,
check_rights,
is_admin,
is_dev,
is_self,
sed_sticker,
)
@megux.on_message(filters.command("ban"))
async def _ban_user(_, message: Message):
chat_id = message.chat.id
if not await check_rights(chat_id, message.from_user.id, "can_restrict_members"):
await message.reply("`Você precisa de permissão para fazer isso.`")
return
cmd = len(message.text)
replied = message.reply_to_message
reason = ""
if replied:
id_ = replied.from_user.id
if cmd > 4:
_, reason = message.text.split(maxsplit=1)
elif cmd > 4:
_, args = message.text.split(maxsplit=1)
if " " in args:
id_, reason = args.split(" ", maxsplit=1)
else:
id_ = args
else:
await message.reply("`Nenhum user_id válido ou mensagem especificada.`")
return
try:
user = await megux.get_users(id_)
user_id = user.id
mention = user.mention
except (UsernameInvalid, PeerIdInvalid, UserIdInvalid):
await message.reply(
"`Nome de usuário ou ID de usuário inválido, tente novamente com informações válidas ⚠`"
)
return
if await is_self(user_id):
await sed_sticker(message)
return
if is_dev(user_id):
await message.reply("`Lol ele é meu desenvolvedor, não posso bani-lo.`")
return
if is_admin(chat_id, user_id):
await message.reply("`Usuario é admin, não posso bani-lo`")
return
if not await check_bot_rights(chat_id, "can_restrict_members"):
await message.reply("`Me de privilégios para banir usuarios`")
await sed_sticker(message)
return
sent = await message.reply("`Tentando banir o usuário .. Espere aí!! ⏳`")
try:
await megux.kick_chat_member(chat_id, user_id)
await sent.edit(f"#BAN\n" f"USUARIO: {mention}\n" f"MOTIVO: `{reason or None}`")
except Exception as e_f:
await sent.edit(f"`Algo deu errado 🤔`\n\n**ERROR:** `{e_f}`")
@megux.on_message(filters.command("unban"))
async def _unban_user(_, message: Message):
chat_id = message.chat.id
if not await check_rights(chat_id, message.from_user.id, "can_restrict_members"):
await message.reply("`Você precisa de permissão para fazer isso.`")
return
replied = message.reply_to_message
if replied:
id_ = replied.from_user.id
elif len(message.text) > 6:
_, id_ = message.text.split(maxsplit=1)
else:
await message.reply("`Nenhum User_id válido ou mensagem especificada.`")
return
try:
user_id = (await megux.get_users(id_)).id
except (UsernameInvalid, PeerIdInvalid, UserIdInvalid):
await message.reply(
"`User_id ou nome de usuário inválido, tente novamente com informações válidas ⚠`"
)
return
if await is_self(user_id):
return
if is_admin(chat_id, user_id):
await message.reply("`Usuario é admin.`")
return
if not await check_bot_rights(chat_id, "can_restrict_members"):
await message.reply("`Dê-me privilegios admin para UnBan Users.`")
await sed_sticker(message)
return
sent = await message.reply("`Tentando desbanir o usuário.. Aguarde!! ⏳`")
try:
await megux.unban_chat_member(chat_id, user_id)
await sent.edit("`🛡 Desbanido com sucesso...`")
except Exception as e_f:
await sent.edit(f"`Algo deu errado! 🤔`\n\n**ERROR:** `{e_f}`")
@megux.on_message(filters.command("kick"))
async def _kick_user(_, message: Message):
chat_id = message.chat.id
if not await check_rights(chat_id, message.from_user.id, "can_restrict_members"):
await message.reply("`Você precisa de permissão para fazer isso.`")
return
cmd = len(message.text)
replied = message.reply_to_message
reason = ""
if replied:
id_ = replied.from_user.id
if cmd > 5:
_, reason = message.text.split(maxsplit=1)
elif cmd > 5:
_, args = message.text.split(maxsplit=1)
if " " in args:
id_, reason = args.split(" ", maxsplit=1)
else:
id_ = args
else:
await message.reply("`Nenhum user_id válido ou mensagem especificada.`")
return
try:
user = await megux.get_users(id_)
user_id = user.id
mention = user.mention
except (UsernameInvalid, PeerIdInvalid, UserIdInvalid):
await message.reply(
"`User_id ou nome de usuário inválido, tente novamente com informações válidas ⚠`"
)
return
if await is_self(user_id):
await sed_sticker(message)
return
if is_dev(user_id):
await message.reply("`Lol ele é meu desenvolvedor, não posso kicka-lo.`")
return
if is_admin(chat_id, user_id):
await message.reply("`Usuario é admin, não posso kicka-lo.`")
return
if not await check_bot_rights(chat_id, "can_restrict_members"):
await message.reply("`Dê-me privilegios admin para Kick Users.`")
await sed_sticker(message)
return
sent = await message.reply("`Tentando kickar usuario.. Aguarde!! ⏳`")
try:
await megux.kick_chat_member(chat_id, user_id, int(time.time() + 60))
await sent.edit("#KICK\n" f"USUARIO: {mention}\n" f"MOTIVO: `{reason or None}`")
except Exception as e_f:
await sent.edit(f"`Algo deu errado! 🤔`\n\n**ERROR:** `{e_f}`")
@megux.on_message(filters.command("kickme"))
async def kickme_(_, message: Message):
chat_id = message.chat.id
user_id = message.from_user.id
admin_ = await admin_check(message)
if admin_:
await message.reply("`Hmmm admin...\nVocê não vai a lugar nenhum senpai.`")
return
else:
try:
if not await check_bot_rights(chat_id, "can_restrict_members"):
await message.reply("`Não tenho permissão suficiente pra isso.`")
return
await message.reply("`Ate mais, espero que tenha gostado da estadia.`")
await megux.kick_chat_member(chat_id, user_id)
except Exception as e:
await message.reply(f"**ERRO:**\n{e}")
| 35.718232 | 100 | 0.635731 | 863 | 6,465 | 4.601391 | 0.171495 | 0.045329 | 0.102745 | 0.024175 | 0.812893 | 0.775623 | 0.77109 | 0.755729 | 0.73659 | 0.715437 | 0 | 0.002909 | 0.255684 | 6,465 | 180 | 101 | 35.916667 | 0.820241 | 0 | 0 | 0.646707 | 0 | 0 | 0.238471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035928 | 0 | 0.167665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
eba39b2769bc6d340f9fd6498ddb6d70a6570767 | 31 | py | Python | isensus/commands/__init__.py | MPI-IS/isensus | 23171afc7f5b1d2b322a4ab2ef274d5bd3457fdc | [
"BSD-3-Clause"
] | null | null | null | isensus/commands/__init__.py | MPI-IS/isensus | 23171afc7f5b1d2b322a4ab2ef274d5bd3457fdc | [
"BSD-3-Clause"
] | null | null | null | isensus/commands/__init__.py | MPI-IS/isensus | 23171afc7f5b1d2b322a4ab2ef274d5bd3457fdc | [
"BSD-3-Clause"
] | null | null | null | from .commands import commands
| 15.5 | 30 | 0.83871 | 4 | 31 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
ccf334a18734c12c0a6f7b5413a8d8a675bd5744 | 218 | py | Python | src/backend/aspen/conftest.py | chanzuckerberg/czgenepi | 87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd | [
"MIT"
] | null | null | null | src/backend/aspen/conftest.py | chanzuckerberg/czgenepi | 87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd | [
"MIT"
] | 30 | 2022-02-01T23:19:14.000Z | 2022-03-29T19:34:20.000Z | src/backend/aspen/conftest.py | chanzuckerberg/czgenepi | 87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd | [
"MIT"
] | null | null | null | from aspen.test_infra.aws import mock_s3_resource # noqa: F401
from aspen.test_infra.postgres import postgres_database # noqa: F401
from aspen.test_infra.sqlalchemy import session, sqlalchemy_interface # noqa: F401
| 54.5 | 83 | 0.825688 | 32 | 218 | 5.40625 | 0.5 | 0.156069 | 0.225434 | 0.312139 | 0.300578 | 0.300578 | 0 | 0 | 0 | 0 | 0 | 0.051813 | 0.114679 | 218 | 3 | 84 | 72.666667 | 0.84456 | 0.146789 | 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 | 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 | 1 | 0 | 0 | 6 |
69542d4e6c027c29aab9f00f6a310d44b7a426bb | 220 | py | Python | Psience/Wavefun/__init__.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | Psience/Wavefun/__init__.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | Psience/Wavefun/__init__.py | McCoyGroup/Coordinerds | 058a4f5b29f157e499cec3c8f2da8b216f0210ef | [
"MIT"
] | null | null | null | """
Wavefun provides a basic framework for working with Wavefunctions that can be subclassed and built upon
"""
from .Wavefunctions import *
__all__ = []
from .Wavefunctions import __all__ as exposed
__all__ += exposed | 24.444444 | 103 | 0.777273 | 28 | 220 | 5.678571 | 0.75 | 0.213836 | 0.289308 | 0.327044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 220 | 9 | 104 | 24.444444 | 0.859459 | 0.468182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
15ff78ed649e7db9718761def85a3dd98f3faa0a | 3,500 | py | Python | boiler/strat_tf/preprocessor.py | dev-ejc/automated_financial_analysis | d68f842a5cbd54509e6f0df3ae7cc52d520f76eb | [
"MIT"
] | 2 | 2021-08-12T03:56:34.000Z | 2021-08-14T18:18:28.000Z | boiler/strat_tf/preprocessor.py | dev-ejc/automated_financial_analysis | d68f842a5cbd54509e6f0df3ae7cc52d520f76eb | [
"MIT"
] | null | null | null | boiler/strat_tf/preprocessor.py | dev-ejc/automated_financial_analysis | d68f842a5cbd54509e6f0df3ae7cc52d520f76eb | [
"MIT"
] | null | null | null | from sklearn.preprocessing import Normalizer
from sklearn.pipeline import Pipeline
import numpy as np
import pandas as pd
from datetime import datetime
import math
class Preprocessor(object):
def __init__(self,ticker):
self.ticker = ticker
def fundamental_preprocess(self,data):
drop_columns = ["year","ticker","adjclose","index"]
data.fillna(0,inplace=True)
num_pipeline = Pipeline([
('normalizer',Normalizer())
])
features = data.drop(drop_columns,axis=1,errors="ignore").copy()
processed = pd.DataFrame(num_pipeline.fit_transform(features),columns=features.columns,index=features.index)
return {"X":processed,"y":data["adjclose"]}
def preprocess_regression(self,data,ticker,batch_size,prediction_days):
data.fillna(0,inplace=True)
data.rename(columns={"adjclose":"y"},inplace=True)
data["y"] = data["y"].shift(-1)
data = data[:-1]
data.reset_index(inplace=True)
features = data.drop(["date","y","_id","index","year","ticker","level_0"],axis=1,errors="ignore").copy().astype(np.float32)
num_pipeline = Pipeline([
('normalizer',Normalizer())
])
processed = pd.DataFrame(num_pipeline.fit_transform(features),columns=features.columns,index=features.index)
plz = []
y_plz = []
y_pivots = []
for i in range(0,len(processed)-batch_size-prediction_days):
plz.append(processed.iloc[i:i+batch_size])
y_pivots.append(data["y"].iloc[i+batch_size-1])
y_plz.append([data["y"].iloc[i+batch_size:i+batch_size+prediction_days]])
# y_plz = [[[(np.log(1+(value - y_pivots[i])/y_pivots[i])/(i+1)) if (value - y_pivots[i])/y_pivots[i] > 0 else
# (-np.log(1-(value - y_pivots[i])/y_pivots[i])/(i+1)) for value in x] for x in y_plz[i]] for i in range(len(y_plz))]
return {"X":plz[1:],"y":y_plz[1:]}
def preprocess_price_regression(self,data,ticker,batch_size,prediction_days,shift):
data.fillna(0,inplace=True)
data.reset_index(inplace=True)
features = data.drop(["date","label_date","y","_id","index","year","ticker","level_0"],axis=1,errors="ignore").copy().astype(np.float32)
num_pipeline = Pipeline([
('normalizer',Normalizer())
])
processed = pd.DataFrame(num_pipeline.fit_transform(features),columns=features.columns,index=features.index)
plz = []
y_plz = []
y_pivots = []
for i in range(1,len(processed)-batch_size-prediction_days):
plz.append(processed.iloc[i:i+batch_size].values)
y_pivots.append(data["y"].iloc[i+batch_size-1])
y_plz.append([data["y"].iloc[i+batch_size:i+batch_size+prediction_days].values])
# y_plz = [[[(np.log(1+(value - y_pivots[i])/y_pivots[i])/(i+1)) * 1000 if (value - y_pivots[i])/y_pivots[i] > 0 else
# (-np.log(1-(value - y_pivots[i])/y_pivots[i])/(i+1)) * 1000 for value in x] for x in y_plz[i]] for i in range(len(y_plz))]
return {"X":plz[1:],"y":y_plz[1:]}
def preprocess_prediction(self,data):
data.fillna(0,inplace=True)
data.rename(columns={"adjclose":"y"},inplace=True)
data.reset_index(inplace=True)
features = data.drop(["date","label_date","y","_id","index","year","ticker","level_0"],axis=1,errors="ignore").copy().astype(np.float32)
return features.values | 52.238806 | 144 | 0.623143 | 489 | 3,500 | 4.302658 | 0.155419 | 0.053232 | 0.045627 | 0.065589 | 0.803232 | 0.764259 | 0.75903 | 0.75903 | 0.714354 | 0.694867 | 0 | 0.016117 | 0.202286 | 3,500 | 67 | 145 | 52.238806 | 0.737464 | 0.139714 | 0 | 0.559322 | 0 | 0 | 0.074825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.101695 | 0 | 0.271186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 6 |
d68db42db7e530ff87df8c46028b81154597b1d0 | 21 | py | Python | scripts/portal/blackHeaven_boss_back.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/portal/blackHeaven_boss_back.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/portal/blackHeaven_boss_back.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | sm.warp(310070490, 4) | 21 | 21 | 0.761905 | 4 | 21 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0.047619 | 21 | 1 | 21 | 21 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 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 | 6 |
d6a550e59181a74138f167253f275f704380d13e | 153 | py | Python | test/__init__.py | Thrimbda/Thrive-Compiler | dcbdacd129909f385d030312cd83b1dfb66e74b1 | [
"MIT"
] | null | null | null | test/__init__.py | Thrimbda/Thrive-Compiler | dcbdacd129909f385d030312cd83b1dfb66e74b1 | [
"MIT"
] | null | null | null | test/__init__.py | Thrimbda/Thrive-Compiler | dcbdacd129909f385d030312cd83b1dfb66e74b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Macsnow
# @Date: 2017-04-15 12:29:03
# @Last Modified by: Macsnow
# @Last Modified time: 2017-04-15 12:29:09
| 25.5 | 43 | 0.601307 | 25 | 153 | 3.68 | 0.68 | 0.130435 | 0.173913 | 0.217391 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239669 | 0.20915 | 153 | 5 | 44 | 30.6 | 0.520661 | 0.895425 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.