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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b382e10ddd976be7c7de6fbc65241a9eec31d4f
| 179
|
py
|
Python
|
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/margay/calculators/calc_diversity.py
|
lmnotran/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 69
|
2021-12-16T01:34:09.000Z
|
2022-03-31T08:27:39.000Z
|
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/margay/calculators/calc_diversity.py
|
lmnotran/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 6
|
2022-01-12T18:22:08.000Z
|
2022-03-25T10:19:27.000Z
|
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/margay/calculators/calc_diversity.py
|
lmnotran/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 21
|
2021-12-20T09:05:45.000Z
|
2022-03-28T02:52:28.000Z
|
from pyradioconfig.parts.ocelot.calculators.calc_diversity import CALC_Diversity_Ocelot
class CALC_Diversity_Margay(CALC_Diversity_Ocelot):
#Inherit all from Ocelot
pass
| 29.833333
| 87
| 0.843575
| 23
| 179
| 6.26087
| 0.565217
| 0.361111
| 0.263889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111732
| 179
| 6
| 88
| 29.833333
| 0.90566
| 0.128492
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
9b3dc4fdaa2849179a2f00a7c0b06530724f9891
| 60,567
|
py
|
Python
|
models/local_aggregation_operators.py
|
PointCloudYC/se-pseudogrid
|
65005d82fda1a31b8c945e02e378df102ba0fee0
|
[
"MIT"
] | 2
|
2021-11-30T06:38:23.000Z
|
2021-12-17T01:38:32.000Z
|
models/local_aggregation_operators.py
|
PointCloudYC/se-pseudogrid
|
65005d82fda1a31b8c945e02e378df102ba0fee0
|
[
"MIT"
] | null | null | null |
models/local_aggregation_operators.py
|
PointCloudYC/se-pseudogrid
|
65005d82fda1a31b8c945e02e378df102ba0fee0
|
[
"MIT"
] | null | null | null |
import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(ROOT_DIR)
sys.path.append(os.path.join(ROOT_DIR, 'ops', 'pt_custom_ops'))
import torch
import torch.nn as nn
import torch.nn.functional as F
from .utlis import create_kernel_points, radius_gaussian, weight_variable
from pt_utils import MaskedQueryAndGroup
class PosPool(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PosPool operator for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PosPool, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.position_embedding = config.pospool.position_embedding
self.reduction = config.pospool.reduction
self.output_conv = config.pospool.output_conv or (self.in_channels != self.out_channels)
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=True)
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
if self.position_embedding == 'xyz':
position_embedding = torch.unsqueeze(relative_position, 1) # (B, 1, 3, npoint, nsample)
aggregation_features = neighborhood_features.view(B, C // 3, 3, npoint, self.nsample)
aggregation_features = position_embedding * aggregation_features # (B, C//3, 3, npoint, nsample)
aggregation_features = aggregation_features.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
elif self.position_embedding == 'sin_cos':
feat_dim = C // 6
wave_length = 1000
alpha = 100
feat_range = torch.arange(feat_dim, dtype=torch.float32).to(query_xyz.device) # (feat_dim, )
dim_mat = torch.pow(1.0 * wave_length, (1.0 / feat_dim) * feat_range) # (feat_dim, )
position_mat = torch.unsqueeze(alpha * relative_position, -1) # (B, 3, npoint, nsample, 1)
div_mat = torch.div(position_mat, dim_mat) # (B, 3, npoint, nsample, feat_dim)
sin_mat = torch.sin(div_mat) # (B, 3, npoint, nsample, feat_dim)
cos_mat = torch.cos(div_mat) # (B, 3, npoint, nsample, feat_dim)
position_embedding = torch.cat([sin_mat, cos_mat], -1) # (B, 3, npoint, nsample, 2*feat_dim)
position_embedding = position_embedding.permute(0, 1, 4, 2, 3).contiguous()
position_embedding = position_embedding.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
aggregation_features = neighborhood_features * position_embedding # (B, C, npoint, nsample)
else:
raise NotImplementedError(f'Position Embedding {self.position_embedding} not implemented in PosPool')
if self.reduction == 'max':
out_features = F.max_pool2d(
aggregation_features, kernel_size=[1, self.nsample]
)
out_features = torch.squeeze(out_features, -1)
elif self.reduction == 'avg' or self.reduction == 'mean':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
neighborhood_num = feature_mask.sum(-1)
out_features /= neighborhood_num
elif self.reduction == 'sum':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
else:
raise NotImplementedError(f'Reduction {self.reduction} not implemented in PosPool ')
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
"""
The diff. among PosPool, PosPoolSE, ~2 and ~3 are:
- the 1st one is the orginal KPConv version w/o SE idea
- (to add) the 2nd one apply SE idea before the aggregation/max function (**pools over both N and M dim globally** (note: (N,C_out, M))), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
- (to add) the 3rd one apply SE idea before the aggregation/max function (**pools only over M dim globally**), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
- the 4th one apply SE idea after the aggreation/max pooling function, seems converge faster and achieves better performance.
"""
class PosPoolSE(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PosPool operator with squeeze-excite idea to recaliberate point feature with global features, which is inspired from SENet(CVPR19) and the paper titled 'Style-based Point Generator with Adversarial Rendering for Point Cloud Completion' (CVPR 2021)
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PosPoolSE, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.position_embedding = config.pospool.position_embedding
self.reduction = config.pospool.reduction
self.output_conv = config.pospool.output_conv or (self.in_channels != self.out_channels)
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=True)
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
# nn.Linear(channel, channel // reduction, bias=False),
# nn.ReLU(inplace=True),
# nn.Linear(channel // reduction, channel, bias=False),
# nn.Sigmoid()
self.excite_tranform = nn.Sequential(
nn.Conv1d(out_channels, out_channels//16, kernel_size=1, bias=False),
# nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True),
nn.Conv1d(out_channels//16, out_channels, kernel_size=1, bias=False),
nn.Sigmoid())
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points. (N2>=N1)
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz,
query_mask, support_mask, support_features)
if self.position_embedding == 'xyz':
position_embedding = torch.unsqueeze(relative_position, 1) # (B, 1, 3, npoint, nsample)
aggregation_features = neighborhood_features.view(B, C // 3, 3, npoint, self.nsample)
aggregation_features = position_embedding * aggregation_features # (B, C//3, 3, npoint, nsample)
aggregation_features = aggregation_features.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
# use AdaptiveAvgPool2d?
global_feature_SE = F.avg_pool2d(aggregation_features,kernel_size=(npoint,self.nsample)).squeeze(-1) # (B,C,1,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE).unsqueeze(-1) # (B,C,1, 1)
aggregation_features = aggregation_features * global_recalibration_factor # (B,c,npoint,nsample)
# TODO: the SE idea is not implemented in this branch
elif self.position_embedding == 'sin_cos':
feat_dim = C // 6
wave_length = 1000
alpha = 100
feat_range = torch.arange(feat_dim, dtype=torch.float32).to(query_xyz.device) # (feat_dim, )
dim_mat = torch.pow(1.0 * wave_length, (1.0 / feat_dim) * feat_range) # (feat_dim, )
position_mat = torch.unsqueeze(alpha * relative_position, -1) # (B, 3, npoint, nsample, 1)
div_mat = torch.div(position_mat, dim_mat) # (B, 3, npoint, nsample, feat_dim)
sin_mat = torch.sin(div_mat) # (B, 3, npoint, nsample, feat_dim)
cos_mat = torch.cos(div_mat) # (B, 3, npoint, nsample, feat_dim)
position_embedding = torch.cat([sin_mat, cos_mat], -1) # (B, 3, npoint, nsample, 2*feat_dim)
position_embedding = position_embedding.permute(0, 1, 4, 2, 3).contiguous()
position_embedding = position_embedding.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
aggregation_features = neighborhood_features * position_embedding # (B, C, npoint, nsample)
else:
raise NotImplementedError(f'Position Embedding {self.position_embedding} not implemented in PosPool')
if self.reduction == 'max':
out_features = F.max_pool2d(
aggregation_features, kernel_size=[1, self.nsample]
)
out_features = torch.squeeze(out_features, -1)
elif self.reduction == 'avg' or self.reduction == 'mean':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
neighborhood_num = feature_mask.sum(-1)
out_features /= neighborhood_num
elif self.reduction == 'sum':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
else:
raise NotImplementedError(f'Reduction {self.reduction} not implemented in PosPool ')
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class PosPoolSE3(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config, r_SE=16):
"""A PosPool operator with squeeze-excite idea to recaliberate point feature with global features, which is inspired from SENet(CVPR19) and the paper titled 'Style-based Point Generator with Adversarial Rendering for Point Cloud Completion' (CVPR 2021)
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PosPoolSE3, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.position_embedding = config.pospool.position_embedding
self.reduction = config.pospool.reduction
self.output_conv = config.pospool.output_conv or (self.in_channels != self.out_channels)
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=True)
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
# nn.Linear(channel, channel // reduction, bias=False),
# nn.ReLU(inplace=True),
# nn.Linear(channel // reduction, channel, bias=False),
# nn.Sigmoid()
self.excite_tranform = nn.Sequential(
nn.Conv1d(out_channels, out_channels//r_SE, kernel_size=1, bias=False),
# nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True),
nn.Conv1d(out_channels//r_SE, out_channels, kernel_size=1, bias=False),
nn.Sigmoid())
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points. (N2>=N1)
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz,
query_mask, support_mask, support_features)
if self.position_embedding == 'xyz':
position_embedding = torch.unsqueeze(relative_position, 1) # (B, 1, 3, npoint, nsample)
aggregation_features = neighborhood_features.view(B, C // 3, 3, npoint, self.nsample)
aggregation_features = position_embedding * aggregation_features # (B, C//3, 3, npoint, nsample)
aggregation_features = aggregation_features.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
# use AdaptiveAvgPool2d?
global_feature_SE = F.avg_pool2d(aggregation_features,kernel_size=(npoint,self.nsample)).squeeze(-1) # (B,C,1,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE).unsqueeze(-1) # (B,C,1, 1)
aggregation_features = aggregation_features * global_recalibration_factor # (B,c,npoint,nsample)
# TODO: the SE idea is not implemented in this branch
elif self.position_embedding == 'sin_cos':
feat_dim = C // 6
wave_length = 1000
alpha = 100
feat_range = torch.arange(feat_dim, dtype=torch.float32).to(query_xyz.device) # (feat_dim, )
dim_mat = torch.pow(1.0 * wave_length, (1.0 / feat_dim) * feat_range) # (feat_dim, )
position_mat = torch.unsqueeze(alpha * relative_position, -1) # (B, 3, npoint, nsample, 1)
div_mat = torch.div(position_mat, dim_mat) # (B, 3, npoint, nsample, feat_dim)
sin_mat = torch.sin(div_mat) # (B, 3, npoint, nsample, feat_dim)
cos_mat = torch.cos(div_mat) # (B, 3, npoint, nsample, feat_dim)
position_embedding = torch.cat([sin_mat, cos_mat], -1) # (B, 3, npoint, nsample, 2*feat_dim)
position_embedding = position_embedding.permute(0, 1, 4, 2, 3).contiguous()
position_embedding = position_embedding.view(B, C, npoint, self.nsample) # (B, C, npoint, nsample)
aggregation_features = neighborhood_features * position_embedding # (B, C, npoint, nsample)
else:
raise NotImplementedError(f'Position Embedding {self.position_embedding} not implemented in PosPool')
if self.reduction == 'max':
out_features = F.max_pool2d(
aggregation_features, kernel_size=[1, self.nsample]
)
out_features = torch.squeeze(out_features, -1)
elif self.reduction == 'avg' or self.reduction == 'mean':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
neighborhood_num = feature_mask.sum(-1)
out_features /= neighborhood_num
elif self.reduction == 'sum':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1) # (B,C,N)
else:
raise NotImplementedError(f'Reduction {self.reduction} not implemented in PosPool ')
# implement SE idea after the pooling sum
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
global_feature_SE = F.avg_pool1d(out_features,kernel_size=(npoint)) # (B,C,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE) # (B,C,1)
out_features = out_features * global_recalibration_factor # (B,C, N)
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class AdaptiveWeight(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A AdaptiveWeight operator for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(AdaptiveWeight, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.nsample = nsample
self.weight_type = config.adaptive_weight.weight_type
self.weight_to_channels = {'dp': 3,
'df': in_channels,
'fj': in_channels,
'dp_df': 3 + in_channels,
'dp_fj': 3 + in_channels,
'fi_df': 2 * in_channels,
'dp_fi_df': 3 + 2 * in_channels,
'rscnn': 10}
self.weight_input_channels = self.weight_to_channels[self.weight_type]
self.num_mlps = config.adaptive_weight.num_mlps
self.shared_channels = config.adaptive_weight.shared_channels
self.weight_softmax = config.adaptive_weight.weight_softmax
self.reduction = config.adaptive_weight.reduction
self.output_conv = config.adaptive_weight.output_conv or (self.in_channels != self.out_channels)
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=True)
self.mlps = nn.Sequential()
self.mlps.add_module('conv0',
nn.Conv2d(self.weight_input_channels,
self.in_channels // self.shared_channels,
kernel_size=1))
for i in range(self.num_mlps - 1):
self.mlps.add_module(f'relu{i}', nn.ReLU(inplace=True))
self.mlps.add_module(f'conv{i + 1}',
nn.Conv2d(self.in_channels // self.shared_channels,
self.in_channels // self.shared_channels,
kernel_size=1))
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
if self.weight_type == 'dp':
conv_weight = self.mlps(relative_position) # (B, C//S, npoint, nsample)
conv_weight = torch.unsqueeze(conv_weight, 2) # (B, C//S, 1, npoint, nsample)
else:
raise NotImplementedError(f'Weight Type {self.weight_type} not implemented in AdaptiveWeight')
aggregation_features = neighborhood_features.view(B, C // self.shared_channels, self.shared_channels,
npoint, self.nsample)
aggregation_features = aggregation_features * conv_weight
aggregation_features = aggregation_features.view(B, C, npoint, self.nsample)
if self.reduction == 'max':
out_features = F.max_pool2d(
aggregation_features, kernel_size=[1, self.nsample]
)
out_features = torch.squeeze(out_features, -1)
elif self.reduction == 'avg' or self.reduction == 'mean':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
neighborhood_num = feature_mask.sum(-1)
out_features /= neighborhood_num
elif self.reduction == 'sum':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
else:
raise NotImplementedError(f'Reduction {self.reduction} not implemented in PosPool ')
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class PointWiseMLP(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PointWiseMLP operator for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PointWiseMLP, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.nsample = nsample
self.feature_type = config.pointwisemlp.feature_type
self.feature_input_channels = {'dp_fj': 3 + in_channels,
'fi_df': 2 * in_channels,
'dp_fi_df': 3 + 2 * in_channels}
self.feature_input_channels = self.feature_input_channels[self.feature_type]
self.num_mlps = config.pointwisemlp.num_mlps
self.reduction = config.pointwisemlp.reduction
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=True)
self.mlps = nn.Sequential()
if self.num_mlps == 1:
self.mlps.add_module('conv0', nn.Sequential(
nn.Conv2d(self.feature_input_channels, self.out_channels, kernel_size=1, bias=False),
nn.BatchNorm2d(self.out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True)))
else:
mfdim = max(self.in_channels // 2, 9)
self.mlps.add_module('conv0', nn.Sequential(
nn.Conv2d(self.feature_input_channels, mfdim, kernel_size=1, bias=False),
nn.BatchNorm2d(mfdim, momentum=config.bn_momentum),
nn.ReLU(inplace=True)))
for i in range(self.num_mlps - 2):
self.mlps.add_module(f'conv{i + 1}', nn.Sequential(
nn.Conv2d(mfdim, mfdim, kernel_size=1, bias=False),
nn.BatchNorm2d(mfdim, momentum=config.bn_momentum),
nn.ReLU(inplace=True)))
self.mlps.add_module(f'conv{self.num_mlps - 1}', nn.Sequential(
nn.Conv2d(mfdim, self.out_channels, kernel_size=1, bias=False),
nn.BatchNorm2d(self.out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True)))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
if self.feature_type == 'dp_fi_df':
# B C N M
center_features = torch.unsqueeze(neighborhood_features[..., 0], -1).repeat([1, 1, 1, self.nsample])
relative_features = neighborhood_features - center_features
local_input_features = torch.cat([relative_position, center_features, relative_features], 1)
aggregation_features = self.mlps(local_input_features) # (B,C_out,N1,nsample)
else:
raise NotImplementedError(f'Feature Type {self.feature_type} not implemented in PointWiseMLP')
if self.reduction == 'max':
out_features = F.max_pool2d(
aggregation_features, kernel_size=[1, self.nsample] # (B,C_out, N1)
)
out_features = torch.squeeze(out_features, -1)
elif self.reduction == 'avg' or self.reduction == 'mean':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None]) # (B,N1=15000,nsample) + (B,N1,1)
# why feature_mask computes like this? each padded pt's nb mask will get 1, or 2?
feature_mask = feature_mask[:, None, :, :] # (B,1,N1,nsample)
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
neighborhood_num = feature_mask.sum(-1)
out_features /= neighborhood_num
elif self.reduction == 'sum':
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None])
feature_mask = feature_mask[:, None, :, :]
aggregation_features *= feature_mask
out_features = aggregation_features.sum(-1)
else:
raise NotImplementedError(f'Reduction {self.reduction} not implemented in PointWiseMLP')
return out_features
"""
The diff. among PseudoGrid, PseudoGridSE, ~2 and ~3 are:
- the 1st one is the orginal KPConv version w/o SE idea
- the 2nd one apply SE idea before the aggregation/max function (**pools over both N and M dim globally** (note: (N,C_out, M))), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
- the 3rd one apply SE idea before the aggregation/max function (**pools only over M dim globally**), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
- the 4th one apply SE idea after the aggreation/max pooling function, seems converge faster and achieves better performance.
"""
class PseudoGrid(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PseudoGrid operator for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PseudoGrid, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.KP_influence = config.pseudo_grid.KP_influence
self.num_kernel_points = config.pseudo_grid.num_kernel_points
self.convolution_mode = config.pseudo_grid.convolution_mode
self.output_conv = config.pseudo_grid.output_conv or (self.in_channels != self.out_channels)
# create kernel points
KP_extent = config.pseudo_grid.KP_extent
fixed_kernel_points = config.pseudo_grid.fixed_kernel_points
density_parameter = config.density_parameter
self.extent = 2 * KP_extent * radius / density_parameter
K_radius = 1.5 * self.extent
K_points_numpy = create_kernel_points(K_radius,
self.num_kernel_points,
num_kernels=1,
dimension=3,
fixed=fixed_kernel_points)
K_points_numpy = K_points_numpy.reshape((self.num_kernel_points, 3))
self.register_buffer('K_points', torch.from_numpy(K_points_numpy).type(torch.float32))
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=False)
self.kernel_weights = weight_variable([self.num_kernel_points, in_channels])
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
# (B,C,N,K)
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
relative_position = torch.unsqueeze(relative_position.permute(0, 2, 3, 1), 3)
relative_position = relative_position.repeat([1, 1, 1, self.num_kernel_points, 1])
# Get Kernel point influences [B, N, K, M]
differences = relative_position - self.K_points
sq_distances = torch.sum(differences ** 2, -1)
if self.KP_influence == 'constant':
# Every point get an influence of 1.
all_weights = torch.ones_like(sq_distances)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'linear':
# Influence decrease linearly with the distance, and get to zero when d = KP_extent.
all_weights = torch.clamp(1 - torch.sqrt(sq_distances) / self.extent, min=0.0)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'gaussian':
# Influence in gaussian of the distance.
sigma = self.extent * 0.3
all_weights = radius_gaussian(sq_distances, sigma)
all_weights = all_weights.permute(0, 1, 3, 2)
else:
raise ValueError('Unknown influence function type (config.KP_influence)')
# Mask padding points
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None]) # B, N, M
all_weights *= feature_mask[:, :, None, :] # B, N, K, M
if self.convolution_mode != 'sum':
raise NotImplementedError(f"convolution_mode:{self.convolution_mode} not support in PseudoGrid")
# get features for each kernel point
all_weights = all_weights.view(-1, self.num_kernel_points, self.nsample)
neighborhood_features = neighborhood_features.permute(0, 2, 3, 1).contiguous().view(-1, self.nsample, C)
weighted_features = torch.bmm(all_weights, neighborhood_features) # # [B*N, K, M],[B*N, M, C] -> [B*N, K, C]
kernel_outputs = weighted_features * self.kernel_weights # [B*N, K, C]
out_features = torch.sum(kernel_outputs, 1).view(B, npoint, C).transpose(1, 2)
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class PseudoGridSE(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PseudoGrid operator with squeeze and excite idea for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PseudoGridSE, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.KP_influence = config.pseudo_grid.KP_influence
self.num_kernel_points = config.pseudo_grid.num_kernel_points
self.convolution_mode = config.pseudo_grid.convolution_mode
self.output_conv = config.pseudo_grid.output_conv or (self.in_channels != self.out_channels)
# create kernel points
KP_extent = config.pseudo_grid.KP_extent
fixed_kernel_points = config.pseudo_grid.fixed_kernel_points
density_parameter = config.density_parameter
self.extent = 2 * KP_extent * radius / density_parameter
K_radius = 1.5 * self.extent
K_points_numpy = create_kernel_points(K_radius,
self.num_kernel_points,
num_kernels=1,
dimension=3,
fixed=fixed_kernel_points)
K_points_numpy = K_points_numpy.reshape((self.num_kernel_points, 3))
self.register_buffer('K_points', torch.from_numpy(K_points_numpy).type(torch.float32))
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=False)
self.kernel_weights = weight_variable([self.num_kernel_points, in_channels])
# for implement SE idea
# nn.Linear(channel, channel // reduction, bias=False),
# nn.ReLU(inplace=True),
# nn.Linear(channel // reduction, channel, bias=False),
# nn.Sigmoid()
self.excite_tranform = nn.Sequential(
nn.Conv1d(out_channels, out_channels//16, kernel_size=1, bias=False),
# nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True),
nn.Conv1d(out_channels//16, out_channels, kernel_size=1, bias=False),
nn.Sigmoid())
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
# (B,C,N,K)
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
relative_position = torch.unsqueeze(relative_position.permute(0, 2, 3, 1), 3)
relative_position = relative_position.repeat([1, 1, 1, self.num_kernel_points, 1])
# Get Kernel point influences [B, N, K, M]
differences = relative_position - self.K_points
sq_distances = torch.sum(differences ** 2, -1)
if self.KP_influence == 'constant':
# Every point get an influence of 1.
all_weights = torch.ones_like(sq_distances)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'linear':
# Influence decrease linearly with the distance, and get to zero when d = KP_extent.
all_weights = torch.clamp(1 - torch.sqrt(sq_distances) / self.extent, min=0.0)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'gaussian':
# Influence in gaussian of the distance.
sigma = self.extent * 0.3
all_weights = radius_gaussian(sq_distances, sigma)
all_weights = all_weights.permute(0, 1, 3, 2)
else:
raise ValueError('Unknown influence function type (config.KP_influence)')
# Mask padding points
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None]) # B, N, M
all_weights *= feature_mask[:, :, None, :] # B, N, K, M
if self.convolution_mode != 'sum':
raise NotImplementedError(f"convolution_mode:{self.convolution_mode} not support in PseudoGrid")
# get features for each kernel point
all_weights = all_weights.view(-1, self.num_kernel_points, self.nsample) # (B*N, K=20, M=15)
neighborhood_features = neighborhood_features.permute(0, 2, 3, 1).contiguous().view(-1, self.nsample, C) # (B*N,M,C)
weighted_features = torch.bmm(all_weights, neighborhood_features) # [B*N, K, M],[B*N, M, C] -> [B*N, K, C]
kernel_outputs = weighted_features * self.kernel_weights # [B*N, K, C]
# implement SE idea
aggregation_features = kernel_outputs.view(B, npoint, -1, C).permute(0,3,1,2).contiguous() # (B, C, npoint, M=15)
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
# use AdaptiveAvgPool2d?
global_feature_SE = F.avg_pool2d(aggregation_features,kernel_size=(npoint,self.num_kernel_points)).squeeze(-1) # (B,C,1,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE).unsqueeze(-1) # (B,C,1, 1)
aggregation_features = aggregation_features * global_recalibration_factor # (B,C,npoint, K)
kernel_outputs = aggregation_features.permute(0,2,3,1).contiguous().view(-1,self.num_kernel_points,C) # (B*npoint,K,C)
# aggregation over the neighborhood
out_features = torch.sum(kernel_outputs, 1).view(B, npoint, C).transpose(1, 2) # (B, C, N)
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class PseudoGridSE2(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""A PseudoGrid operator with squeeze and excite idea for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PseudoGridSE2, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.KP_influence = config.pseudo_grid.KP_influence
self.num_kernel_points = config.pseudo_grid.num_kernel_points
self.convolution_mode = config.pseudo_grid.convolution_mode
self.output_conv = config.pseudo_grid.output_conv or (self.in_channels != self.out_channels)
# create kernel points
KP_extent = config.pseudo_grid.KP_extent
fixed_kernel_points = config.pseudo_grid.fixed_kernel_points
density_parameter = config.density_parameter
self.extent = 2 * KP_extent * radius / density_parameter
K_radius = 1.5 * self.extent
K_points_numpy = create_kernel_points(K_radius,
self.num_kernel_points,
num_kernels=1,
dimension=3,
fixed=fixed_kernel_points)
K_points_numpy = K_points_numpy.reshape((self.num_kernel_points, 3))
self.register_buffer('K_points', torch.from_numpy(K_points_numpy).type(torch.float32))
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=False)
self.kernel_weights = weight_variable([self.num_kernel_points, in_channels])
# for implement SE idea
# nn.Linear(channel, channel // reduction, bias=False),
# nn.ReLU(inplace=True),
# nn.Linear(channel // reduction, channel, bias=False),
# nn.Sigmoid()
self.excite_tranform = nn.Sequential(
nn.Conv1d(out_channels, out_channels//16, kernel_size=1, bias=False),
# nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True),
nn.Conv1d(out_channels//16, out_channels, kernel_size=1, bias=False),
nn.Sigmoid())
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
# (B,C,N,K)
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
relative_position = torch.unsqueeze(relative_position.permute(0, 2, 3, 1), 3)
relative_position = relative_position.repeat([1, 1, 1, self.num_kernel_points, 1])
# Get Kernel point influences [B, N, K, M]
differences = relative_position - self.K_points
sq_distances = torch.sum(differences ** 2, -1)
if self.KP_influence == 'constant':
# Every point get an influence of 1.
all_weights = torch.ones_like(sq_distances)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'linear':
# Influence decrease linearly with the distance, and get to zero when d = KP_extent.
all_weights = torch.clamp(1 - torch.sqrt(sq_distances) / self.extent, min=0.0)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'gaussian':
# Influence in gaussian of the distance.
sigma = self.extent * 0.3
all_weights = radius_gaussian(sq_distances, sigma)
all_weights = all_weights.permute(0, 1, 3, 2)
else:
raise ValueError('Unknown influence function type (config.KP_influence)')
# Mask padding points
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None]) # B, N, M
all_weights *= feature_mask[:, :, None, :] # B, N, K, M
if self.convolution_mode != 'sum':
raise NotImplementedError(f"convolution_mode:{self.convolution_mode} not support in PseudoGrid")
# get features for each kernel point
all_weights = all_weights.view(-1, self.num_kernel_points, self.nsample) # (B*N, K=20, M=15)
neighborhood_features = neighborhood_features.permute(0, 2, 3, 1).contiguous().view(-1, self.nsample, C) # (B*N,M,C)
weighted_features = torch.bmm(all_weights, neighborhood_features) # [B*N, K, M],[B*N, M, C] -> [B*N, K, C]
kernel_outputs = weighted_features * self.kernel_weights # [B*N, K, C]
# implement SE idea
aggregation_features = kernel_outputs.view(B, npoint, -1, C).permute(0,3,1,2).contiguous() # (B, C, npoint, M=15)
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
# use AdaptiveAvgPool2d?
global_feature_SE = F.avg_pool2d(aggregation_features,kernel_size=(1,self.num_kernel_points)).squeeze(-1) # (B,C,N,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE).unsqueeze(-1) # (B,C,N, 1)
aggregation_features = aggregation_features * global_recalibration_factor # (B,C, N, M=15)
kernel_outputs = aggregation_features.permute(0,2,3,1).contiguous().view(-1,self.num_kernel_points,C) # (B*npoint,K,C)
# aggregation over the neighborhood
out_features = torch.sum(kernel_outputs, 1).view(B, npoint, C).transpose(1, 2) # (B, C, N)
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class PseudoGridSE3(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config, r_SE=16,
squeeze_type='avg', excitation_type='sigmoid'):
"""A PseudoGrid operator with squeeze and excite idea for local aggregation
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(PseudoGridSE3, self).__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.radius = radius
self.nsample = nsample
self.KP_influence = config.pseudo_grid.KP_influence
self.num_kernel_points = config.pseudo_grid.num_kernel_points
self.convolution_mode = config.pseudo_grid.convolution_mode
self.output_conv = config.pseudo_grid.output_conv or (self.in_channels != self.out_channels)
# squeeze and exictation type
if config.SE_squeeze_type:
self.SE_squeeze_type=config.SE_squeeze_type # avg or max
if config.SE_excitation_type:
self.SE_excitation_type=config.SE_excitation_type # sigmoid, relu or tanh
# create kernel points
KP_extent = config.pseudo_grid.KP_extent
fixed_kernel_points = config.pseudo_grid.fixed_kernel_points
density_parameter = config.density_parameter
self.extent = 2 * KP_extent * radius / density_parameter
K_radius = 1.5 * self.extent
K_points_numpy = create_kernel_points(K_radius,
self.num_kernel_points,
num_kernels=1,
dimension=3,
fixed=fixed_kernel_points)
K_points_numpy = K_points_numpy.reshape((self.num_kernel_points, 3))
self.register_buffer('K_points', torch.from_numpy(K_points_numpy).type(torch.float32))
self.grouper = MaskedQueryAndGroup(radius, nsample, use_xyz=False, ret_grouped_xyz=True, normalize_xyz=False)
self.kernel_weights = weight_variable([self.num_kernel_points, in_channels])
# for implement SE idea
# nn.Linear(channel, channel // reduction, bias=False),
# nn.ReLU(inplace=True),
# nn.Linear(channel // reduction, channel, bias=False),
# nn.Sigmoid()
if self.SE_excitation_type == 'relu':
activation_function=nn.ReLU
elif self.SE_excitation_type == 'tanh':
activation_function=nn.Tanh
else:
activation_function=nn.Sigmoid
self.excite_tranform = nn.Sequential(
nn.Conv1d(out_channels, out_channels//r_SE, kernel_size=1, bias=False),
# nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True),
nn.Conv1d(out_channels//r_SE, out_channels, kernel_size=1, bias=False),
activation_function())
if self.output_conv:
self.out_conv = nn.Sequential(
nn.Conv1d(in_channels, out_channels, kernel_size=1, bias=False),
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
else:
self.out_transform = nn.Sequential(
nn.BatchNorm1d(out_channels, momentum=config.bn_momentum),
nn.ReLU(inplace=True))
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
B = query_xyz.shape[0]
C = support_features.shape[1]
npoint = query_xyz.shape[1]
# (B,C,N,K)
neighborhood_features, relative_position, neighborhood_mask = self.grouper(query_xyz, support_xyz, query_mask,
support_mask, support_features)
relative_position = torch.unsqueeze(relative_position.permute(0, 2, 3, 1), 3)
relative_position = relative_position.repeat([1, 1, 1, self.num_kernel_points, 1])
# Get Kernel point influences [B, N, K, M]
differences = relative_position - self.K_points
sq_distances = torch.sum(differences ** 2, -1)
if self.KP_influence == 'constant':
# Every point get an influence of 1.
all_weights = torch.ones_like(sq_distances)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'linear':
# Influence decrease linearly with the distance, and get to zero when d = KP_extent.
all_weights = torch.clamp(1 - torch.sqrt(sq_distances) / self.extent, min=0.0)
all_weights = all_weights.permute(0, 1, 3, 2)
elif self.KP_influence == 'gaussian':
# Influence in gaussian of the distance.
sigma = self.extent * 0.3
all_weights = radius_gaussian(sq_distances, sigma)
all_weights = all_weights.permute(0, 1, 3, 2)
else:
raise ValueError('Unknown influence function type (config.KP_influence)')
# Mask padding points
feature_mask = neighborhood_mask + (1 - query_mask[:, :, None]) # B, N, M
all_weights *= feature_mask[:, :, None, :] # B, N, K, M
if self.convolution_mode != 'sum':
raise NotImplementedError(f"convolution_mode:{self.convolution_mode} not support in PseudoGrid")
# get features for each kernel point
all_weights = all_weights.view(-1, self.num_kernel_points, self.nsample) # (B*N, K=20, M=15)
neighborhood_features = neighborhood_features.permute(0, 2, 3, 1).contiguous().view(-1, self.nsample, C) # (B*N,M,C)
weighted_features = torch.bmm(all_weights, neighborhood_features) # [B*N, K, M],[B*N, M, C] -> [B*N, K, C]
kernel_outputs = weighted_features * self.kernel_weights # [B*N, K, C]
# aggregation over the neighborhood
out_features = torch.sum(kernel_outputs, 1).view(B, npoint, C).transpose(1, 2) # (B, C, N)
# implement SE idea after the pooling sum
# apply SE idea: 1)squeeze and excite the feature map(aggregation_features), 2)mulitplied with the aggregation features
if self.SE_squeeze_type == 'avg':
global_feature_SE = F.avg_pool1d(out_features,kernel_size=(npoint)) # (B,C,1)
else:
global_feature_SE = F.max_pool1d(out_features,kernel_size=(npoint)) # (B,C,1)
global_recalibration_factor=self.excite_tranform(global_feature_SE) # (B,C,1)
out_features = out_features * global_recalibration_factor # (B,C, N)
if self.output_conv:
out_features = self.out_conv(out_features)
else:
out_features = self.out_transform(out_features)
return out_features
class LocalAggregation(nn.Module):
def __init__(self, in_channels, out_channels, radius, nsample, config):
"""LocalAggregation operators
Args:
in_channels: input channels.
out_channels: output channels.
radius: ball query radius
nsample: neighborhood limit.
config: config file
"""
super(LocalAggregation, self).__init__()
if config.local_aggregation_type == 'pospool':
self.local_aggregation_operator = PosPool(in_channels, out_channels, radius, nsample, config)
# the 2nd one apply SE idea before the aggregation/max function (**pools over both N and M dim globally** (note: (N,C_out, M))), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
elif config.local_aggregation_type == 'pospool_se':
self.local_aggregation_operator = PosPoolSE(in_channels, out_channels, radius, nsample, config)
# the 4th one apply SE idea after the aggreation/max pooling function, seems converge faster and achieves better performance.
elif config.local_aggregation_type == 'pospool_se3':
self.local_aggregation_operator = PosPoolSE3(in_channels, out_channels, radius, nsample, config)
elif config.local_aggregation_type == 'adaptive_weight':
self.local_aggregation_operator = AdaptiveWeight(in_channels, out_channels, radius, nsample, config)
elif config.local_aggregation_type == 'pointwisemlp':
self.local_aggregation_operator = PointWiseMLP(in_channels, out_channels, radius, nsample, config)
# original pseudo grid
elif config.local_aggregation_type == 'pseudo_grid':
self.local_aggregation_operator = PseudoGrid(in_channels, out_channels, radius, nsample, config)
# the 2nd one apply SE idea before the aggregation/max function (**pools over both N and M dim globally** (note: (N,C_out, M))), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
elif config.local_aggregation_type == 'pseudo_grid_se':
self.local_aggregation_operator = PseudoGridSE(in_channels, out_channels, radius, nsample, config)
# the 3rd one apply SE idea before the aggregation/max function (**pools only over M dim globally**), followed by rescaling/recalibration and aggreatation/max pooling to gain point features
elif config.local_aggregation_type == 'pseudo_grid_se2':
self.local_aggregation_operator = PseudoGridSE2(in_channels, out_channels, radius, nsample, config)
# the 4th one apply SE idea after the aggreation/max pooling function, seems converge faster and achieves better performance.
elif config.local_aggregation_type == 'pseudo_grid_se3':
self.local_aggregation_operator = PseudoGridSE3(in_channels, out_channels, radius, nsample, config)
else:
raise NotImplementedError(f'LocalAggregation {config.local_aggregation_type} not implemented')
def forward(self, query_xyz, support_xyz, query_mask, support_mask, support_features):
"""
Args:
query_xyz: [B, N1, 3], query points.
support_xyz: [B, N2, 3], support points.
query_mask: [B, N1], mask for query points.
support_mask: [B, N2], mask for support points.
support_features: [B, C_in, N2], input features of support points.
Returns:
output features of query points: [B, C_out, 3]
"""
return self.local_aggregation_operator(query_xyz, support_xyz, query_mask, support_mask, support_features)
| 52.758711
| 260
| 0.625506
| 7,337
| 60,567
| 4.934851
| 0.042252
| 0.032811
| 0.026763
| 0.014555
| 0.930234
| 0.919159
| 0.913635
| 0.906206
| 0.902754
| 0.901897
| 0
| 0.016114
| 0.277626
| 60,567
| 1,147
| 261
| 52.804708
| 0.811437
| 0.197484
| 0
| 0.834239
| 0
| 0
| 0.036287
| 0.00766
| 0
| 0
| 0
| 0.001744
| 0
| 1
| 0.027174
| false
| 0
| 0.009511
| 0
| 0.063859
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
9b6b8e524c63a70c86a069e606bf2ca1da162679
| 378
|
py
|
Python
|
tests/pbraiders/pages/__init__.py
|
pbraiders/pomponne-test-bdd
|
7f2973936318221f54e65e0f8bd839cad7216fa4
|
[
"MIT"
] | 1
|
2021-03-30T14:41:29.000Z
|
2021-03-30T14:41:29.000Z
|
tests/pbraiders/pages/__init__.py
|
pbraiders/pomponne-test-bdd
|
7f2973936318221f54e65e0f8bd839cad7216fa4
|
[
"MIT"
] | null | null | null |
tests/pbraiders/pages/__init__.py
|
pbraiders/pomponne-test-bdd
|
7f2973936318221f54e65e0f8bd839cad7216fa4
|
[
"MIT"
] | null | null | null |
# coding=utf-8
from .page_abstract import PageAbstract
from .signin_utilities import sign_in
from .contacts_utilities import new_contact
from .contacts_utilities import verify_contact
from .contacts_utilities import verify_contact_with_comment
from .events_utilities import new_event
from .users_utilities import new_account
from .users_utilities import new_deactivated_account
| 37.8
| 59
| 0.880952
| 53
| 378
| 5.943396
| 0.433962
| 0.333333
| 0.228571
| 0.257143
| 0.447619
| 0.27619
| 0.27619
| 0
| 0
| 0
| 0
| 0.002907
| 0.089947
| 378
| 9
| 60
| 42
| 0.912791
| 0.031746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 7
|
32d1f921f309a14557d4c6a24d073b1007bcd667
| 133
|
py
|
Python
|
web/server/envhelper.py
|
ido-ran/ran-smart-frame2
|
2d8142e69ec638ef441d40d977183946162b9ea5
|
[
"MIT"
] | 1
|
2019-02-11T09:05:02.000Z
|
2019-02-11T09:05:02.000Z
|
web/server/envhelper.py
|
ido-ran/ran-smart-frame2
|
2d8142e69ec638ef441d40d977183946162b9ea5
|
[
"MIT"
] | 11
|
2020-04-29T23:09:23.000Z
|
2022-02-26T09:00:14.000Z
|
web/server/envhelper.py
|
ido-ran/ran-smart-frame2
|
2d8142e69ec638ef441d40d977183946162b9ea5
|
[
"MIT"
] | 1
|
2019-01-14T10:13:24.000Z
|
2019-01-14T10:13:24.000Z
|
import os
import dangare_secrets
def is_production():
return os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/')
| 19
| 76
| 0.744361
| 17
| 133
| 5.647059
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12782
| 133
| 6
| 77
| 22.166667
| 0.827586
| 0
| 0
| 0
| 0
| 0
| 0.24812
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
fd3b76d4fba6846cef7d55808a49ae9239a944b8
| 75,827
|
py
|
Python
|
pyhq2x.py
|
AnthonyDiGirolamo/heliopause
|
2b35ecfe6a38635e4356a9e9b697a5104f5f5cb3
|
[
"MIT"
] | 8
|
2015-06-05T09:14:30.000Z
|
2020-03-03T18:47:02.000Z
|
pyhq2x.py
|
AnthonyDiGirolamo/heliopause
|
2b35ecfe6a38635e4356a9e9b697a5104f5f5cb3
|
[
"MIT"
] | null | null | null |
pyhq2x.py
|
AnthonyDiGirolamo/heliopause
|
2b35ecfe6a38635e4356a9e9b697a5104f5f5cb3
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from PIL import Image
# Constants for indicating coordinates in a pixel's context
TOP_LEFT = 0
TOP = 1
TOP_RIGHT = 2
LEFT = 3
CENTER = 4
RIGHT = 5
BOTTOM_LEFT = 6
BOTTOM = 7
BOTTOM_RIGHT = 8
# There are eight flags: the cells in the context, skipping the center
context_flag = {}
cur_flag = 1
for i in xrange(9):
if i == CENTER:
continue
context_flag[i] = cur_flag
cur_flag = cur_flag << 1
# Constants defining how far apart two components of YUV colors must be to be
# considered different
Y_THRESHHOLD = 48
U_THRESHHOLD = 7
V_THRESHHOLD = 6
rgb_yuv_cache = {} # memoization
def rgb_to_yuv(rgb):
"""Takes a tuple of (r, g, b) and returns a tuple (y, u, v). Both must be
24-bit color!
This is the algorithm from the original hq2x source; it doesn't seem to
match any other algorithm I can find, but whatever.
"""
if rgb in rgb_yuv_cache:
return rgb_yuv_cache[rgb]
r, g, b = rgb
y = (r + g + b) >> 2
u = 128 + ((r - b) >> 2)
v = 128 + ((-r + g * 2 - b) >> 3)
rgb_yuv_cache[rgb] = y, u, v
return y, u, v
def yuv_equal(a, b):
"""Takes two tuples of (y, u, v). Returns True if they are equal-ish,
False otherwise. "Equal-ish" is defined arbitrarily as tolerating small
differences in the components of the two colors.
"""
ay, au, av = a
by, bu, bv = b
if abs(ay - by) > Y_THRESHHOLD:
return False
if abs(au - bu) > U_THRESHHOLD:
return False
if abs(av - bv) > V_THRESHHOLD:
return False
return True
### Various interpolations of colors done by hq2x
def interpolate(func, *args):
return tuple(map(func, *args))
def interp1(*args):
return interpolate(lambda a, b: (a * 3 + b) / 4, *args)
def interp2(*args):
return interpolate(lambda a, b, c: (a * 2 + b + c) / 4, *args)
def interp5(*args):
return interpolate(lambda a, b: (a + b) / 2, *args)
def interp6(*args):
return interpolate(lambda a, b, c: (a*5 + b*2 + c) / 8, *args)
def interp7(*args):
return interpolate(lambda a, b, c: (a*6 + b + c) / 8, *args)
def interp9(*args):
return interpolate(lambda a, b, c: (a*2 + b*3 + c*3) / 8, *args)
def interp10(*args):
return interpolate(lambda a, b, c: (a*14 + b + c) / 16, *args)
def hq2x(source):
"""Upscales a sprite image using the hq2x algorithm.
Argument is an Image object containing the source image. Returns another
Image object containing the upscaled image.
"""
w, h = source.size
mode = source.mode # XXX use this for the target I guess somehow; palette?
source = source.convert('RGB')
dest = Image.new('RGB', (w * 2, h * 2))
# These give direct pixel access via grid[x, y]
sourcegrid = source.load()
destgrid = dest.load()
# Wrap sourcegrid in a function to cap the coordinates; we need a 3x3 array
# centered on the current pixel, and factoring out the capping is simpler
# than a ton of ifs
def get_px(x, y):
if x < 0:
x = 0
elif x >= w:
x = w - 1
if y < 0:
y = 0
elif y >= h:
y = h - 1
return sourcegrid[x, y]
for x in xrange(w):
for y in xrange(h):
# This is a flattened 3x3 grid with the current pixel in the
# middle; if the pixel is on an edge, the row/column in the void is
# just a copy of the edge
context = [
get_px(x - 1, y - 1), get_px(x, y - 1), get_px(x + 1, y - 1),
get_px(x - 1, y ), get_px(x, y ), get_px(x + 1, y ),
get_px(x - 1, y + 1), get_px(x, y + 1), get_px(x + 1, y + 1),
]
tl, tr, bl, br = hq2x_pixel(context)
destgrid[x * 2, y * 2] = tl
destgrid[x * 2 + 1, y * 2] = tr
destgrid[x * 2, y * 2 + 1] = bl
destgrid[x * 2 + 1, y * 2 + 1] = br
return dest
def hq2x_pixel(context):
"""Applies the hq2x algorithm to a single pixel, given the 3x3 context
around it. This is the gigantic switch() from the original source.
Returns the four corresponding pixels to be put in the new image: upper
left, upper right, lower left, lower right.
"""
# The massive lookup table is keyed on a bitstring where each bit
# corresponds to an element in the context. The top left is 0x1,
# top middle is 0x2, and so on across and down. Bits turned on
# indicate a pixel different from the current pixel
yuv_context = [rgb_to_yuv(rgb) for rgb in context]
yuv_px = rgb_to_yuv(context[CENTER])
pattern = 0
for bit in xrange(9):
if bit != CENTER and not yuv_equal(yuv_context[bit], yuv_px):
pattern = pattern | context_flag[bit]
if pattern in (0, 1, 4, 32, 128, 5, 132, 160, 33, 129, 36, 133, 164, 161, 37, 165):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (2, 34, 130, 162):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (16, 17, 48, 49):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (64, 65, 68, 69):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (8, 12, 136, 140):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (3, 35, 131, 163):
tl = interp1(context[CENTER], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (6, 38, 134, 166):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (20, 21, 52, 53):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (144, 145, 176, 177):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern in (192, 193, 196, 197):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern in (96, 97, 100, 101):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (40, 44, 168, 172):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (9, 13, 137, 141):
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (18, 50):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (80, 81):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (72, 76):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (10, 138):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 66:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 24:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (7, 39, 135):
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (148, 149, 180):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern in (224, 228, 225):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern in (41, 169, 45):
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (22, 54):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (208, 209):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (104, 108):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (11, 139):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (19, 51):
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tl = interp6(context[CENTER], context[TOP], context[LEFT])
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (146, 178):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
br = interp1(context[CENTER], context[BOTTOM])
else:
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
br = interp6(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
elif pattern in (84, 85):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
tr = interp1(context[CENTER], context[TOP])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
tr = interp6(context[CENTER], context[RIGHT], context[TOP])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
elif pattern in (112, 113):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
bl = interp6(context[CENTER], context[BOTTOM], context[LEFT])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (200, 204):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
br = interp1(context[CENTER], context[RIGHT])
else:
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
br = interp6(context[CENTER], context[BOTTOM], context[RIGHT])
elif pattern in (73, 77):
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
tl = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
tl = interp6(context[CENTER], context[LEFT], context[TOP])
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (42, 170):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
bl = interp1(context[CENTER], context[BOTTOM])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
bl = interp6(context[CENTER], context[LEFT], context[BOTTOM])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (14, 142):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
tr = interp1(context[CENTER], context[RIGHT])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
tr = interp6(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 67:
tl = interp1(context[CENTER], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 70:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 28:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 152:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 194:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 98:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 56:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 25:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (26, 31):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (82, 214):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (88, 248):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (74, 107):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 27:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP_RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 86:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 216:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 106:
tl = interp1(context[CENTER], context[TOP_LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 30:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 210:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[TOP_RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 120:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 75:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 29:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 198:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 184:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 99:
tl = interp1(context[CENTER], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 57:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 71:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 156:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 226:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 60:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 195:
tl = interp1(context[CENTER], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 102:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 153:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 58:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 83:
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 92:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 202:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 78:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 154:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 114:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 89:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 90:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (55, 23):
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tl = interp1(context[CENTER], context[LEFT])
tr = context[CENTER]
else:
tl = interp6(context[CENTER], context[TOP], context[LEFT])
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern in (182, 150):
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
br = interp1(context[CENTER], context[BOTTOM])
else:
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
br = interp6(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
elif pattern in (213, 212):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
tr = interp1(context[CENTER], context[TOP])
br = context[CENTER]
else:
tr = interp6(context[CENTER], context[RIGHT], context[TOP])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
elif pattern in (241, 240):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
bl = interp1(context[CENTER], context[LEFT])
br = context[CENTER]
else:
bl = interp6(context[CENTER], context[BOTTOM], context[LEFT])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (236, 232):
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
br = interp1(context[CENTER], context[RIGHT])
else:
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
br = interp6(context[CENTER], context[BOTTOM], context[RIGHT])
elif pattern in (109, 105):
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
tl = interp1(context[CENTER], context[TOP])
bl = context[CENTER]
else:
tl = interp6(context[CENTER], context[LEFT], context[TOP])
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern in (171, 43):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
bl = interp1(context[CENTER], context[BOTTOM])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
bl = interp6(context[CENTER], context[LEFT], context[BOTTOM])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (143, 15):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
tr = interp1(context[CENTER], context[RIGHT])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
tr = interp6(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 124:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 203:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 62:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 211:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[TOP_RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 118:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 217:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 110:
tl = interp1(context[CENTER], context[TOP_LEFT])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 155:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP_RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 188:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 185:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 61:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 157:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 103:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 227:
tl = interp1(context[CENTER], context[LEFT])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 230:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 199:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 220:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 158:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 234:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 242:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 59:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 121:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 87:
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 79:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 122:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 94:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 218:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 91:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 229:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 167:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 173:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 181:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 186:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 115:
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 93:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 206:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern in (205, 201):
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
else:
bl = interp7(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern in (174, 46):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = interp1(context[CENTER], context[TOP_LEFT])
else:
tl = interp7(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (179, 147):
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = interp1(context[CENTER], context[TOP_RIGHT])
else:
tr = interp7(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern in (117, 116):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
else:
br = interp7(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 189:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 231:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 126:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 219:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP_RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 125:
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
tl = interp1(context[CENTER], context[TOP])
bl = context[CENTER]
else:
tl = interp6(context[CENTER], context[LEFT], context[TOP])
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
tr = interp1(context[CENTER], context[TOP])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 221:
tl = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
tr = interp1(context[CENTER], context[TOP])
br = context[CENTER]
else:
tr = interp6(context[CENTER], context[RIGHT], context[TOP])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
elif pattern == 207:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
tr = interp1(context[CENTER], context[RIGHT])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
tr = interp6(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 238:
tl = interp1(context[CENTER], context[TOP_LEFT])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
br = interp1(context[CENTER], context[RIGHT])
else:
bl = interp9(context[CENTER], context[BOTTOM], context[LEFT])
br = interp6(context[CENTER], context[BOTTOM], context[RIGHT])
elif pattern == 190:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
br = interp1(context[CENTER], context[BOTTOM])
else:
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
br = interp6(context[CENTER], context[RIGHT], context[BOTTOM])
bl = interp1(context[CENTER], context[BOTTOM])
elif pattern == 187:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
bl = interp1(context[CENTER], context[BOTTOM])
else:
tl = interp9(context[CENTER], context[LEFT], context[TOP])
bl = interp6(context[CENTER], context[LEFT], context[BOTTOM])
tr = interp1(context[CENTER], context[TOP_RIGHT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 243:
tl = interp1(context[CENTER], context[LEFT])
tr = interp1(context[CENTER], context[TOP_RIGHT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
bl = interp1(context[CENTER], context[LEFT])
br = context[CENTER]
else:
bl = interp6(context[CENTER], context[BOTTOM], context[LEFT])
br = interp9(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 119:
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tl = interp1(context[CENTER], context[LEFT])
tr = context[CENTER]
else:
tl = interp6(context[CENTER], context[TOP], context[LEFT])
tr = interp9(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern in (237, 233):
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern in (175, 47):
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern in (183, 151):
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern in (245, 244):
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 250:
tl = interp1(context[CENTER], context[TOP_LEFT])
tr = interp1(context[CENTER], context[TOP_RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 123:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP_RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 95:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 222:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 252:
tl = interp2(context[CENTER], context[TOP_LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 249:
tl = interp1(context[CENTER], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 235:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp2(context[CENTER], context[TOP_RIGHT], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 111:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[RIGHT])
elif pattern == 63:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp2(context[CENTER], context[BOTTOM_RIGHT], context[BOTTOM])
elif pattern == 159:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 215:
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp2(context[CENTER], context[BOTTOM_LEFT], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 246:
tl = interp2(context[CENTER], context[TOP_LEFT], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 254:
tl = interp1(context[CENTER], context[TOP_LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 253:
tl = interp1(context[CENTER], context[TOP])
tr = interp1(context[CENTER], context[TOP])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 251:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[TOP_RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 239:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
tr = interp1(context[CENTER], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[RIGHT])
elif pattern == 127:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp2(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp2(context[CENTER], context[BOTTOM], context[LEFT])
br = interp1(context[CENTER], context[BOTTOM_RIGHT])
elif pattern == 191:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM])
br = interp1(context[CENTER], context[BOTTOM])
elif pattern == 223:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp2(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[BOTTOM_LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp2(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 247:
tl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
bl = interp1(context[CENTER], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
elif pattern == 255:
if not yuv_equal(yuv_context[LEFT], yuv_context[TOP]):
tl = context[CENTER]
else:
tl = interp10(context[CENTER], context[LEFT], context[TOP])
if not yuv_equal(yuv_context[TOP], yuv_context[RIGHT]):
tr = context[CENTER]
else:
tr = interp10(context[CENTER], context[TOP], context[RIGHT])
if not yuv_equal(yuv_context[BOTTOM], yuv_context[LEFT]):
bl = context[CENTER]
else:
bl = interp10(context[CENTER], context[BOTTOM], context[LEFT])
if not yuv_equal(yuv_context[RIGHT], yuv_context[BOTTOM]):
br = context[CENTER]
else:
br = interp10(context[CENTER], context[RIGHT], context[BOTTOM])
return tl, tr, bl, br
### Main, if called from command line
if __name__ == '__main__':
import sys
infile, outfile = sys.argv[1:3]
source = Image.open(infile)
dest = hq2x(source)
dest.save(outfile)
| 49.20636
| 87
| 0.619397
| 9,268
| 75,827
| 4.975183
| 0.052331
| 0.238235
| 0.317502
| 0.185036
| 0.930904
| 0.928801
| 0.928172
| 0.926545
| 0.923249
| 0.92275
| 0
| 0.026682
| 0.245757
| 75,827
| 1,540
| 88
| 49.238312
| 0.77955
| 0.023897
| 0
| 0.822924
| 0
| 0
| 0.000189
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.008922
| false
| 0
| 0.001373
| 0.005491
| 0.021963
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 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
| 10
|
fd4920aace1f1eff1b040a5863b98a4419655073
| 12,020
|
py
|
Python
|
tests/dsd_tests.py
|
mwilliamson/sdmx.py
|
e860b24aed13993ed9dee06a251c225401dcc8f9
|
[
"BSD-2-Clause"
] | 4
|
2016-05-14T03:17:30.000Z
|
2019-01-07T08:16:36.000Z
|
tests/dsd_tests.py
|
mwilliamson/sdmx.py
|
e860b24aed13993ed9dee06a251c225401dcc8f9
|
[
"BSD-2-Clause"
] | 1
|
2015-05-05T20:23:57.000Z
|
2015-05-06T18:40:25.000Z
|
tests/dsd_tests.py
|
mwilliamson/sdmx.py
|
e860b24aed13993ed9dee06a251c225401dcc8f9
|
[
"BSD-2-Clause"
] | 3
|
2015-07-02T11:22:26.000Z
|
2020-04-17T16:23:37.000Z
|
import io
from nose.tools import istest, assert_equal
import sdmx
@istest
def concepts_are_detected_when_contained_in_concept_scheme():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<Concepts>
<structure:ConceptScheme>
<structure:Concept id="itm_newa">
<structure:Name xml:lang="en">List of products - EAA</structure:Name>
</structure:Concept>
</structure:ConceptScheme>
</Concepts>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
concept, = dsd_reader.concepts()
assert_equal("itm_newa", concept.id)
@istest
def concepts_are_detected_when_contained_directly_in_concepts_element():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<Concepts>
<structure:Concept id="itm_newa">
<structure:Name xml:lang="en">List of products - EAA</structure:Name>
</structure:Concept>
</Concepts>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
concept, = dsd_reader.concepts()
assert_equal("itm_newa", concept.id)
@istest
def concepts_are_indexed_by_id():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<Concepts>
<structure:Concept id="itm_newa">
<structure:Name xml:lang="en">List of products - EAA</structure:Name>
</structure:Concept>
</Concepts>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
assert_equal("itm_newa", dsd_reader.concept("itm_newa").id)
assert_equal(None, dsd_reader.concept("itm_newb"))
@istest
def concept_names_are_read_by_language():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<Concepts>
<structure:ConceptScheme>
<structure:Concept id="itm_newa"><structure:Name xml:lang="en">List of products - EAA</structure:Name>
<structure:Name xml:lang="de">Liste der Produkte - LGR</structure:Name>
<structure:Name xml:lang="fr">Liste de produits - EAA</structure:Name>
</structure:Concept>
</structure:ConceptScheme>
</Concepts>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
concept, = dsd_reader.concepts()
assert_equal("List of products - EAA", concept.name("en"))
@istest
def code_lists_are_read_with_ids_and_names():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
<structure:Name xml:lang="en">List of products - EAA</structure:Name>
<structure:Name xml:lang="de">Liste der Produkte - LGR</structure:Name>
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
code_list, = dsd_reader.code_lists()
assert_equal("CL_ITM_NEWA", code_list.id)
assert_equal("List of products - EAA", code_list.name(lang="en"))
assert_equal("Liste der Produkte - LGR", code_list.name(lang="de"))
@istest
def code_lists_are_indexed_by_id():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
assert_equal("CL_ITM_NEWA", dsd_reader.code_list("CL_ITM_NEWA").id)
assert_equal(None, dsd_reader.code_list("CL_ITM_NEWB"))
@istest
def codes_can_be_read_from_code_lists():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
<structure:Code value="40000">
<structure:Description xml:lang="en">Total labour force input</structure:Description>
<structure:Description xml:lang="de">Landwirtschaftlicher Arbeitseinsatz insgesamt</structure:Description>
</structure:Code>
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
code_list, = dsd_reader.code_lists()
code, = code_list.codes()
assert_equal("40000", code.value)
assert_equal(None, code.parent_code_id())
assert_equal("Total labour force input", code.description("en"))
assert_equal("Landwirtschaftlicher Arbeitseinsatz insgesamt", code.description("de"))
@istest
def codes_can_have_parents():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
<structure:Code value="40000" parentCode="41000" />
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
code_list, = dsd_reader.code_lists()
code, = code_list.codes()
assert_equal("41000", code.parent_code_id())
@istest
def code_parent_is_treated_as_missing_if_empty_string():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
<structure:Code value="40000" parentCode="" />
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
code_list, = dsd_reader.code_lists()
code, = code_list.codes()
assert_equal(None, code.parent_code_id())
@istest
def codes_are_indexed_by_value():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<CodeLists>
<structure:CodeList id="CL_ITM_NEWA" agencyID="EUROSTAT" isFinal="true">
<structure:Code value="40000">
</structure:Code>
</structure:CodeList>
</CodeLists>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
code_list, = dsd_reader.code_lists()
assert_equal("40000", code_list.code("40000").value)
assert_equal(None, code_list.code("40001"))
@istest
def key_families_are_read_with_id_and_name():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<KeyFamilies>
<structure:KeyFamily id="MON20123_2" agencyID="OECD">
<structure:Name xml:lang="en">2012 F) OECD countries : Consumer Support Estimate by country</structure:Name>
<structure:Name xml:lang="fr">2012 F) OCDE : Estimation du soutien aux consommateurs par pays</structure:Name>
</structure:KeyFamily>
</KeyFamilies>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
key_family, = dsd_reader.key_families()
assert_equal("MON20123_2", key_family.id)
assert_equal("2012 F) OECD countries : Consumer Support Estimate by country", key_family.name("en"))
assert_equal("2012 F) OCDE : Estimation du soutien aux consommateurs par pays", key_family.name("fr"))
@istest
def key_family_dimensions_have_concept_and_code_list():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<Concepts>
<structure:Concept id="COUNTRY" agencyID="OECD">
<structure:Name xml:lang="en">Country</structure:Name>
</structure:Concept>
</Concepts>
<CodeList>
<structure:CodeList id="CL_MON20123_2_COUNTRY" agencyID="OECD">
<structure:Name xml:lang="en">MON20123_2_COUNTRY codelist</structure:Name>
</structure:CodeList>
</CodeList>
<KeyFamilies>
<structure:KeyFamily id="MON20123_2" agencyID="OECD">
<structure:Name xml:lang="en">2012 F) OECD countries : Consumer Support Estimate by country</structure:Name>
<structure:Components>
<structure:Dimension conceptRef="COUNTRY" codelist="CL_MON20123_2_COUNTRY"/>
</structure:Components>
</structure:KeyFamily>
</KeyFamilies>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
key_family, = dsd_reader.key_families()
dimension, = key_family.dimensions()
assert_equal("COUNTRY", dimension.concept_ref())
assert_equal("CL_MON20123_2_COUNTRY", dimension.code_list_id())
#~ assert_equal("Country", dimension.concept().name(lang="en"))
#~ assert_equal("MON20123_2_COUNTRY codelist", dimension.code_list().name(lang="en"))
@istest
def time_dimension_can_be_read_from_key_family():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<KeyFamilies>
<structure:KeyFamily id="MON20123_2" agencyID="OECD">
<structure:Name xml:lang="en">2012 F) OECD countries : Consumer Support Estimate by country</structure:Name>
<structure:Components>
<structure:TimeDimension conceptRef="TIME" codelist="CL_MON2012TSE_O_TIME" />
</structure:Components>
</structure:KeyFamily>
</KeyFamilies>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
key_family, = dsd_reader.key_families()
dimension = key_family.time_dimension()
assert_equal("TIME", dimension.concept_ref())
assert_equal("CL_MON2012TSE_O_TIME", dimension.code_list_id())
@istest
def primary_measure_can_be_read_from_key_family():
dsd_file = io.BytesIO(b"""<?xml version="1.0" encoding="UTF-8"?>
<Structure xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure">
<KeyFamilies>
<structure:KeyFamily id="MON20123_2" agencyID="OECD">
<structure:Name xml:lang="en">2012 F) OECD countries : Consumer Support Estimate by country</structure:Name>
<structure:Components>
<structure:PrimaryMeasure conceptRef="OBS_VALUE"><TextFormat textType="Double" /></structure:PrimaryMeasure>
</structure:Components>
</structure:KeyFamily>
</KeyFamilies>
</Structure>""")
dsd_reader = sdmx.dsd_reader(fileobj=dsd_file)
key_family, = dsd_reader.key_families()
dimension = key_family.primary_measure()
assert_equal("OBS_VALUE", dimension.concept_ref())
| 41.881533
| 155
| 0.701498
| 1,574
| 12,020
| 5.154384
| 0.092122
| 0.048811
| 0.037964
| 0.048318
| 0.825712
| 0.793295
| 0.771724
| 0.754591
| 0.736349
| 0.730186
| 0
| 0.023754
| 0.145424
| 12,020
| 286
| 156
| 42.027972
| 0.766063
| 0.012146
| 0
| 0.747826
| 0
| 0.086957
| 0.660799
| 0.090718
| 0
| 0
| 0
| 0
| 0.117391
| 1
| 0.06087
| false
| 0
| 0.013043
| 0
| 0.073913
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1feaef4317ebef67d20871e261de22484ea173b2
| 7,681
|
py
|
Python
|
python/rest-api/rest_api.py
|
gurupratap-matharu/Exercism
|
a083c8d4bbc10d777524d917329a34e560201c9c
|
[
"MIT"
] | null | null | null |
python/rest-api/rest_api.py
|
gurupratap-matharu/Exercism
|
a083c8d4bbc10d777524d917329a34e560201c9c
|
[
"MIT"
] | null | null | null |
python/rest-api/rest_api.py
|
gurupratap-matharu/Exercism
|
a083c8d4bbc10d777524d917329a34e560201c9c
|
[
"MIT"
] | null | null | null |
from collections import defaultdict
from datetime import datetime as dt
import json
class Person(object):
"""Object to display balance of a person as a dict/json"""
def __init__(self, name, balance):
self.name = name
self.owes = {k:-v for k,v in balance.items() if v < 0}
self.owed_by = {k:v for k,v in balance.items() if v > 0}
self.balance = sum(balance.values())
class RestAPI(object):
"""Object used for both bookkeeping iou's and rest calls"""
def __init__(self, database=None):
# maintains ledger of all historic transations
self.ledger = []
# recalculated each time a record is added to the ledger
## balance per user (owes & owed)'''
self.balance = {}
## list of unique users'''
self.users = set()
# dict unpacking ~= working with JSON's as inputs for defs
self.add_database(**database)
# Utils
def add_user(self, name, owes = {}, owed_by = {}, balance = 0):
"""Creates ledger records for new users
Doens't delete old debts if user already exists
"""
# Datetime stam transaction, out scope for exercise but common sense
now = str(dt.now())
# Create new user with no debts
if not balance:
self.ledger.append((name, name, 0, now ))
# generates ledger records based on json in
else:
for key,value in owed_by.items():
self.ledger.append((name, key, value, now ))
def add_database(self, users):
"""Create ledger records for initial users in class database input"""
for user in users:
self.add_user(**user)
# trigger recalc ledger
self.balance_ledger()
def add_iou(self, lender, borrower, amount):
"""Add a IOU record to the ledger"""
self.ledger.append((lender, borrower, amount, str(dt.now()) ))
def balance_ledger(self):
"""Recaculates the balance per user
and updates the list of users"""
# not performance optimal
self.balance = defaultdict(lambda: defaultdict(int))
for owed, owes, amount, dt in self.ledger:
self.balance[owed][owes] += amount
self.balance[owes][owed] -= amount
self.users = set(self.balance.keys())
def balance_person(self, name):
"""Returns the balance of a person according to API specs"""
return Person(name, self.balance[name]).__dict__
# API
## API.Get
def get_all(self):
"""Return the balance of all persons
even if they have no debts or credit"""
return [self.balance_person(name)
for name in self.users]
def get_one(self, users):
"""Return the balance of a specific person"""
return [self.balance_person(users)]
def get(self, url, payload=None):
"""Get endpoint"""
if not payload:
answer = self.get_all()
else:
answer = self.get_one(**json.loads(payload))
# output as JSON string
return json.dumps({'users':answer})
## API.Post
def post_add(self, user):
"""Add a user and update balance"""
self.add_user(user)
self.balance_ledger()
return self.balance_person(user)
def post_iou(self, lender, borrower, amount):
"""Add an IOU records and update balance"""
self.add_iou(lender, borrower, amount)
self.balance_ledger()
# Due to test case test_lender_has_negative_balance
# Order of list not defined in api specifications
a,b = sorted([borrower, lender])
return {'users': [self.balance_person(a),
self.balance_person(b)] }
def post(self, url, payload=None):
<<<<<<< HEAD
pass
from collections import defaultdict
from datetime import datetime as dt
import json
class Person(object):
"""Object to display balance of a person as a dict/json"""
def __init__(self, name, balance):
self.name = name
self.owes = {k:-v for k,v in balance.items() if v < 0}
self.owed_by = {k:v for k,v in balance.items() if v > 0}
self.balance = sum(balance.values())
class RestAPI(object):
"""Object used for both bookkeeping iou's and rest calls"""
def __init__(self, database=None):
# maintains ledger of all historic transations
self.ledger = []
# recalculated each time a record is added to the ledger
## balance per user (owes & owed)'''
self.balance = {}
## list of unique users'''
self.users = set()
# dict unpacking ~= working with JSON's as inputs for defs
self.add_database(**database)
# Utils
def add_user(self, name, owes = {}, owed_by = {}, balance = 0):
"""Creates ledger records for new users
Doesn't delete old debts if user already exists
"""
# Datetime stam transaction, out scope for exercise but common sense
now = str(dt.now())
# Create new user with no debts
if not balance:
self.ledger.append((name, name, 0, now ))
# generates ledger records based on json in
else:
for key,value in owed_by.items():
self.ledger.append((name, key, value, now ))
def add_database(self, users):
"""Create ledger records for initial users in class database input"""
for user in users:
self.add_user(**user)
# trigger recalc ledger
self.balance_ledger()
def add_iou(self, lender, borrower, amount):
"""Add a IOU record to the ledger"""
self.ledger.append((lender, borrower, amount, str(dt.now()) ))
def balance_ledger(self):
"""Recaculates the balance per user
and updates the list of users"""
# not performance optimal
self.balance = defaultdict(lambda: defaultdict(int))
for owed, owes, amount, dt in self.ledger:
self.balance[owed][owes] += amount
self.balance[owes][owed] -= amount
self.users = set(self.balance.keys())
def balance_person(self, name):
"""Returns the balance of a person according to API specs"""
return Person(name, self.balance[name]).__dict__
# API
## API.Get
def get_all(self):
"""Return the balance of all persons
even if they have no debts or credit"""
return [self.balance_person(name)
for name in self.users]
def get_one(self, users):
"""Return the balance of a specific person"""
return [self.balance_person(users)]
def get(self, url, payload=None):
"""Get endpoint"""
if not payload:
answer = self.get_all()
else:
answer = self.get_one(**json.loads(payload))
# output as JSON string
return json.dumps({'users':answer})
## API.Post
def post_add(self, user):
"""Add a user and update balance"""
self.add_user(user)
self.balance_ledger()
return self.balance_person(user)
def post_iou(self, lender, borrower, amount):
"""Add an IOU records and update balance"""
self.add_iou(lender, borrower, amount)
self.balance_ledger()
# Due to test case test_lender_has_negative_balance
# Order of list not defined in api specifications
a,b = sorted([borrower, lender])
return {'users': [self.balance_person(a),
self.balance_person(b)] }
| 33.395652
| 77
| 0.590678
| 988
| 7,681
| 4.507085
| 0.152834
| 0.074107
| 0.038177
| 0.03099
| 0.990344
| 0.990344
| 0.990344
| 0.990344
| 0.990344
| 0.990344
| 0
| 0.001498
| 0.304778
| 7,681
| 229
| 78
| 33.541485
| 0.832397
| 0.142299
| 0
| 0.974359
| 0
| 0
| 0.003873
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.008547
| 0.051282
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
95126014bd119b5f512e12a19a79e536255e1aad
| 462
|
py
|
Python
|
src/jobs/__init__.py
|
quickgiant/computone
|
9a49cec64199516f7691503b1b8f9b7596c1b949
|
[
"MIT"
] | 1
|
2022-02-12T00:21:00.000Z
|
2022-02-12T00:21:00.000Z
|
src/jobs/__init__.py
|
quickgiant/computone
|
9a49cec64199516f7691503b1b8f9b7596c1b949
|
[
"MIT"
] | null | null | null |
src/jobs/__init__.py
|
quickgiant/computone
|
9a49cec64199516f7691503b1b8f9b7596c1b949
|
[
"MIT"
] | null | null | null |
from .jobs import (
start_background_job,
resume_background_job,
suspend_background_job,
abort_background_job,
handle_interrupted_jobs,
read_jobs,
read_job,
delete_job,
)
from .runner import JobRunner
__all__ = [
"start_background_job",
"resume_background_job",
"suspend_background_job",
"abort_background_job",
"handle_interrupted_jobs",
"read_jobs",
"read_job",
"delete_job",
"JobRunner",
]
| 19.25
| 30
| 0.694805
| 51
| 462
| 5.705882
| 0.313725
| 0.357388
| 0.123711
| 0.164948
| 0.824742
| 0.824742
| 0.824742
| 0.824742
| 0.824742
| 0.824742
| 0
| 0
| 0.214286
| 462
| 23
| 31
| 20.086957
| 0.801653
| 0
| 0
| 0
| 0
| 0
| 0.307359
| 0.142857
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 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
| 8
|
1f02da042502d8d4c7aad2343b712ac7aa922993
| 47,779
|
py
|
Python
|
pyseqlab/workflow.py
|
bratao/-PySeqLab
|
fea1c4bd4d43565b1bb20a789d78946e1022d0ff
|
[
"MIT"
] | 6
|
2019-05-03T22:14:11.000Z
|
2022-03-04T10:36:31.000Z
|
pyseqlab/workflow.py
|
bratao/-PySeqLab
|
fea1c4bd4d43565b1bb20a789d78946e1022d0ff
|
[
"MIT"
] | 1
|
2020-11-12T02:46:15.000Z
|
2020-11-12T03:12:45.000Z
|
pyseqlab/workflow.py
|
bratao/-PySeqLab
|
fea1c4bd4d43565b1bb20a789d78946e1022d0ff
|
[
"MIT"
] | 3
|
2019-05-04T03:50:49.000Z
|
2020-06-27T00:43:29.000Z
|
"""
@author: ahmed allam <ahmed.allam@yale.edu>
"""
import os
from pyseqlab.features_extraction import SeqsRepresenter
from pyseqlab.crf_learning import Learner, Evaluator, SeqDecodingEvaluator
from pyseqlab.utilities import (
create_directory,
generate_datetime_str,
ReaderWriter,
DataFileParser,
split_data,
group_seqs_by_length,
weighted_sample,
aggregate_weightedsample,
generate_updated_model,
generate_trained_model,
)
import numpy
class TrainingWorkflow(object):
"""general training workflow
.. note::
It is **highly recommended** to start using :class:`GenericTrainingWorkflow` class
.. warning::
This class will be deprecated ...
"""
def __init__(
self,
template_y,
template_xy,
model_repr_class,
model_class,
fextractor_class,
aextractor_class,
scaling_method,
optimization_options,
root_dir,
filter_obj=None,
):
self.template_y = template_y
self.template_xy = template_xy
self.model_class = model_class
self.model_repr_class = model_repr_class
self.fextractor_class = fextractor_class
self.aextractor_class = aextractor_class
self.scaling_method = scaling_method
self.optimization_options = optimization_options
self.root_dir = root_dir
self.filter_obj = filter_obj
def seq_parsing_workflow(self, seqs, split_options):
"""preparing sequences to be used in the learning framework"""
# create working directory
corpus_name = "reference_corpus"
working_dir = create_directory("working_dir", self.root_dir)
self.working_dir = working_dir
unique_id = True
# create sequence dictionary mapping each sequence to a unique id
seqs_dict = {i + 1: seqs[i] for i in range(len(seqs))}
seqs_id = list(seqs_dict.keys())
self.seqs_id = seqs_id
# initialize attribute extractor
attr_extractor = self.aextractor_class()
# create the feature extractor
scaling_method = self.scaling_method
fextractor_class = self.fextractor_class
f_extractor = fextractor_class(
self.template_xy, self.template_y, attr_extractor.attr_desc
)
# create sequence representer
seq_representer = SeqsRepresenter(attr_extractor, f_extractor)
# get the seqs_info representing the information about the parsed sequences
seqs_info = seq_representer.prepare_seqs(
seqs_dict, corpus_name, working_dir, unique_id
)
# preporcess and generate attributes in case of segments with length >1 or in case of scaling of
# attributes is needed
seq_representer.preprocess_attributes(seqs_id, seqs_info, method=scaling_method)
# extract global features F(X,Y)
percep_training = False
if self.optimization_options["method"] in {"COLLINS-PERCEPTRON", "SAPO"}:
percep_training = True
seq_representer.extract_seqs_globalfeatures(seqs_id, seqs_info, percep_training)
# save the link to seqs_info and seq_representer as instance variables
self.seqs_info = seqs_info
self.seq_representer = seq_representer
# split dataset according to the specified split options
data_split = self.split_dataset(seqs_info, split_options)
# save the datasplit dictionary on disk
gfeatures_dir = seqs_info[1]["globalfeatures_dir"]
ref_corpusdir = os.path.dirname(os.path.dirname(gfeatures_dir))
ReaderWriter.dump_data(data_split, os.path.join(ref_corpusdir, "data_split"))
return data_split
def split_dataset(self, seqs_info, split_options):
if split_options["method"] == "wsample":
# try weighted sample
# first group seqs based on length
grouped_seqs = group_seqs_by_length(seqs_info)
# second get a weighted sample based on seqs length
w_sample = weighted_sample(
grouped_seqs, trainset_size=split_options["trainset_size"]
)
print("w_sample ", w_sample)
# third aggregate the seqs in training category and testing category
data_split = aggregate_weightedsample(w_sample)
elif split_options["method"] == "cross_validation":
# try cross validation
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "random":
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "none":
seqs_id = list(seqs_info.keys())
data_split = {0: {"train": seqs_id}}
return data_split
def traineval_folds(self, data_split, meval=True, sep=" "):
"""train and evaluate model on different dataset splits"""
seqs_id = self.seqs_id
seq_representer = self.seq_representer
seqs_info = self.seqs_info
model_repr_class = self.model_repr_class
model_class = self.model_class
models_info = []
ref_corpusdir = os.path.dirname(
os.path.dirname(seqs_info[1]["globalfeatures_dir"])
)
if meval:
traineval_fname = "modeleval_train.txt"
testeval_fname = "modeleval_test.txt"
else:
traineval_fname = None
testeval_fname = None
for fold in data_split:
trainseqs_id = data_split[fold]["train"]
# create model using the sequences assigned for training
model_repr = seq_representer.create_model(
trainseqs_id, seqs_info, model_repr_class, self.filter_obj
)
# extract for each sequence model active features
seq_representer.extract_seqs_modelactivefeatures(
seqs_id, seqs_info, model_repr, "f{}".format(fold)
)
# create a CRF model
crf_model = model_class(
model_repr, seq_representer, seqs_info, load_info_fromdisk=4
)
# get the directory of the trained model
savedmodel_info = self.train_model(trainseqs_id, crf_model)
# evaluate on the training data
trainseqs_info = {seq_id: seqs_info[seq_id] for seq_id in trainseqs_id}
self.eval_model(
savedmodel_info,
{"seqs_info": trainseqs_info},
traineval_fname,
"dec_trainseqs_fold_{}.txt".format(fold),
sep=sep,
)
# evaluate on the test data
testseqs_id = data_split[fold].get("test")
if testseqs_id:
testseqs_info = {seq_id: seqs_info[seq_id] for seq_id in testseqs_id}
self.eval_model(
savedmodel_info,
{"seqs_info": testseqs_info},
testeval_fname,
"dec_testseqs_fold_{}.txt".format(fold),
sep=sep,
)
models_info.append(savedmodel_info)
# save workflow trainer instance on disk
ReaderWriter.dump_data(self, os.path.join(ref_corpusdir, "workflow_trainer"))
return models_info
def train_model(self, trainseqs_id, crf_model):
""" training a model and return the directory of the trained model"""
working_dir = self.working_dir
optimization_options = self.optimization_options
learner = Learner(crf_model)
learner.train_model(
crf_model.weights, trainseqs_id, optimization_options, working_dir
)
return learner.training_description["model_dir"]
def eval_model(
self, savedmodel_info, eval_seqs, eval_filename, dec_seqs_filename, sep=" "
):
# load learned models
model_dir = savedmodel_info
modelparts_dir = os.path.join(model_dir, "model_parts")
modelrepr_class = self.model_repr_class
model_class = self.model_class
fextractor_class = self.fextractor_class
aextractor_class = self.aextractor_class
seqrepresenter_class = SeqsRepresenter
# revive/generate learned model
crf_model = generate_updated_model(
modelparts_dir,
modelrepr_class,
model_class,
aextractor_class,
fextractor_class,
seqrepresenter_class,
ascaler_class=None,
)
# decode sequences to file
if eval_seqs.get("seqs_info"):
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_info=eval_seqs["seqs_info"],
file_name=dec_seqs_filename,
sep=sep,
)
elif eval_seqs.get("seqs"):
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs=eval_seqs["seqs"],
file_name=dec_seqs_filename,
sep=sep,
)
# evaluate model
if eval_filename:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
evaluator = Evaluator(crf_model.model)
performance = evaluator.compute_model_performance(
Y_seqs_dict, "f1", os.path.join(model_dir, eval_filename), ""
)
print("performance ", performance)
def map_pred_to_ref_seqs(self, seqs_pred):
Y_seqs_dict = {}
# print("seqs_pred {}".format(seqs_pred))
for seq_id in seqs_pred:
Y_seqs_dict[seq_id] = {}
for seq_label in seqs_pred[seq_id]:
if seq_label == "seq":
val = seqs_pred[seq_id][seq_label].flat_y
key = "Y_ref"
else:
val = seqs_pred[seq_id][seq_label]
key = seq_label
Y_seqs_dict[seq_id][key] = val
return Y_seqs_dict
def verify_template(self):
""" verifying template -- sanity check"""
seqs_id = self.seqs_id
model = self.model
crf_model = self.crf_model
num_globalfeatures = model.num_features
f = set()
for seq_id in seqs_id:
crf_model.load_activefeatures(seq_id)
seq_activefeatures = crf_model.seqs_info[seq_id]["activefeatures"]
for features_dict in seq_activefeatures.values():
for z_patt in features_dict:
f.update(set(features_dict[z_patt][0]))
crf_model.clear_cached_info([seq_id])
num_activefeatures = len(f)
statement = ""
if num_activefeatures < num_globalfeatures:
statement = "len(activefeatures) < len(modelfeatures)"
elif num_activefeatures > num_globalfeatures:
statement = "len(activefeatures) > len(modelfeatures)"
else:
statement = "PASS"
print(statement)
class TrainingWorkflowIterative(object):
"""general training workflow that support reading/preparing **large** training sets
.. note::
It is **highly recommended** to start using :class:`GenericTrainingWorkflow` class
.. warning::
This class will be deprecated ...
"""
def __init__(
self,
template_y,
template_xy,
model_repr_class,
model_class,
fextractor_class,
aextractor_class,
scaling_method,
ascaler_class,
optimization_options,
root_dir,
data_parser_options,
filter_obj=None,
):
self.template_y = template_y
self.template_xy = template_xy
self.model_class = model_class
self.model_repr_class = model_repr_class
self.fextractor_class = fextractor_class
self.aextractor_class = aextractor_class
self.scaling_method = scaling_method
self.ascaler_class = ascaler_class
self.optimization_options = optimization_options
self.root_dir = root_dir
self.data_parser_options = data_parser_options
self.filter_obj = filter_obj
def get_seqs_from_file(self, seq_file):
parser = self.data_parser_options["parser"]
header = self.data_parser_options["header"]
col_sep = self.data_parser_options["col_sep"]
seg_other_symbol = self.data_parser_options["seg_other_symbol"]
for seq in parser.read_file(
seq_file, header, column_sep=col_sep, seg_other_symbol=seg_other_symbol
):
yield seq
def build_seqsinfo(self, seq_file):
seq_representer = self.seq_representer
# create working directory
corpus_name = "reference_corpus_" + generate_datetime_str()
working_dir = create_directory("working_dir", self.root_dir)
self.working_dir = working_dir
unique_id = False
# build the seqs_info by parsing the sequences from file iteratively
seqs_info = {}
counter = 1
for seq in self.get_seqs_from_file(seq_file):
if hasattr(seq, "id"):
seq_id = seq.id
else:
seq_id = counter
seqs_info.update(
seq_representer.prepare_seqs(
{seq_id: seq},
corpus_name,
working_dir,
unique_id,
log_progress=False,
)
)
print("{} sequences have been processed".format(counter))
counter += 1
return seqs_info
def seq_parsing_workflow(self, seq_file, split_options):
"""preparing sequences to be used in the learning framework"""
# initialize attribute extractor
attr_extractor = self.aextractor_class()
# create the feature extractor
scaling_method = self.scaling_method
fextractor_class = self.fextractor_class
f_extractor = fextractor_class(
self.template_xy, self.template_y, attr_extractor.attr_desc
)
# create sequence representer
seq_representer = SeqsRepresenter(attr_extractor, f_extractor)
self.seq_representer = seq_representer
# build the seqs_info by parsing the sequences from file iteratively
seqs_info = self.build_seqsinfo(seq_file)
seqs_id = list(seqs_info.keys())
self.seqs_id = seqs_id
# preprocess and generate attributes in case of segments with length >1 or in case of scaling of
# attributes is needed
seq_representer.preprocess_attributes(seqs_id, seqs_info, method=scaling_method)
# extract global features F(X,Y)
percep_training = False
if self.optimization_options["method"] in {"COLLINS-PERCEPTRON", "SAPO"}:
percep_training = True
seq_representer.extract_seqs_globalfeatures(seqs_id, seqs_info, percep_training)
# save the link to seqs_info and seq_representer as instance variables
self.seqs_info = seqs_info
self.seq_representer = seq_representer
# split dataset according to the specified split options
data_split = self.split_dataset(seqs_info, split_options)
# save the datasplit dictionary on disk
gfeatures_dir = seqs_info[1]["globalfeatures_dir"]
ref_corpusdir = os.path.dirname(os.path.dirname(gfeatures_dir))
ReaderWriter.dump_data(data_split, os.path.join(ref_corpusdir, "data_split"))
return data_split
def split_dataset(self, seqs_info, split_options):
if split_options["method"] == "wsample":
# try weighted sample
# first group seqs based on length
grouped_seqs = group_seqs_by_length(seqs_info)
# second get a weighted sample based on seqs length
w_sample = weighted_sample(
grouped_seqs, trainset_size=split_options["trainset_size"]
)
print("w_sample ", w_sample)
# third aggregate the seqs in training category and testing category
data_split = aggregate_weightedsample(w_sample)
elif split_options["method"] == "cross_validation":
# try cross validation
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "random":
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "none":
seqs_id = list(seqs_info.keys())
data_split = {0: {"train": seqs_id}}
return data_split
def traineval_folds(self, data_split, **kwargs):
"""train and evaluate model on different dataset splits"""
seqs_id = self.seqs_id
seq_representer = self.seq_representer
seqs_info = self.seqs_info
model_repr_class = self.model_repr_class
model_class = self.model_class
models_info = []
ref_corpusdir = os.path.dirname(
os.path.dirname(seqs_info[1]["globalfeatures_dir"])
)
info_fromdisk = kwargs.get("load_info_fromdisk")
# specify large number such that we always load the computed data from disk rather keeping them in memory
if type(info_fromdisk) != int:
info_fromdisk = 10
elif info_fromdisk < 0:
info_fromdisk = 10
# check if file name is specified
file_name = kwargs.get("file_name")
for fold in data_split:
for dtype in ("train", "test"):
fold_seqs_id = data_split[fold].get(dtype)
if dtype == "train":
# create model using the sequences assigned for training
model_repr = seq_representer.create_model(
fold_seqs_id, seqs_info, model_repr_class, self.filter_obj
)
# extract for each sequence model active features
seq_representer.extract_seqs_modelactivefeatures(
seqs_id, seqs_info, model_repr, "f{}".format(fold)
)
# create a CRF model
crf_model = model_class(
model_repr,
seq_representer,
seqs_info,
load_info_fromdisk=info_fromdisk,
)
# get the directory of the trained model
savedmodel_dir = self.train_model(fold_seqs_id, crf_model)
if fold_seqs_id:
# evaluate on the current data fold
fold_name = "{}_f{}".format(dtype, fold)
fold_seqs_info = {
seq_id: seqs_info[seq_id] for seq_id in fold_seqs_id
}
kwargs["seqs_info"] = fold_seqs_info
if file_name:
# add prefix
update_filename = fold_name + "_" + file_name
kwargs["file_name"] = update_filename
res = self.eval_model(savedmodel_dir, kwargs)
res["fold_name"] = fold_name
res["model_dir"] = savedmodel_dir
models_info.append(res)
# save workflow trainer instance on disk
ReaderWriter.dump_data(self, os.path.join(ref_corpusdir, "workflow_trainer"))
return models_info
def train_model(self, trainseqs_id, crf_model):
""" training a model and return the directory of the trained model"""
working_dir = self.working_dir
optimization_options = self.optimization_options
learner = Learner(crf_model)
learner.train_model(
crf_model.weights, trainseqs_id, optimization_options, working_dir
)
return learner.training_description["model_dir"]
def get_learned_crf(self, savedmodel_dir):
# load learned models
model_dir = savedmodel_dir
modelparts_dir = os.path.join(model_dir, "model_parts")
modelrepr_class = self.model_repr_class
model_class = self.model_class
fextractor_class = self.fextractor_class
aextractor_class = self.aextractor_class
seqrepresenter_class = SeqsRepresenter
ascaler_class = self.ascaler_class
# revive/generate learned model
crf_model = generate_updated_model(
modelparts_dir,
modelrepr_class,
model_class,
aextractor_class,
fextractor_class,
seqrepresenter_class,
ascaler_class=ascaler_class,
)
return crf_model
def eval_model(self, savedmodel_dir, options):
# load learned models
model_dir = savedmodel_dir
# revive/generate learned model
crf_model = self.get_learned_crf(model_dir)
# parse the arguments in kwargs
seqbatch_size = options.get("seqbatch_size")
if not seqbatch_size:
seqbatch_size = 1000
# check if model evaluation is requested
model_eval = options.get("model_eval")
if model_eval:
evaluator = SeqDecodingEvaluator(crf_model.model)
perf_metric = options.get("metric")
if not perf_metric:
perf_metric = "f1"
exclude_states = options.get("exclude_states")
if not exclude_states:
exclude_states = []
if options.get("seqs_info"):
# decode sequences
seqs_info = options.get("seqs_info")
seqs_id = list(seqs_info.keys())
start_ind = 0
stop_ind = seqbatch_size
while start_ind < len(seqs_id):
batch_seqsinfo = {
seq_id: seqs_info[seq_id] for seq_id in seqs_id[start_ind:stop_ind]
}
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_info=batch_seqsinfo,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if start_ind == 0:
taglevel_perf = evaluator.compute_states_confmatrix(Y_seqs_dict)
else:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
start_ind += seqbatch_size
stop_ind += seqbatch_size
# TO adjust the batch size and available sequences..
elif options.get("seq_file"):
flag = False
seq_file = options.get("seq_file")
# the folder name where intermediary sequences and data are stored
procseqs_foldername = "processed_seqs_" + generate_datetime_str()
seqs_dict = {}
bcounter = 1
seq_counter = 1
for seq in self.get_seqs_from_file(seq_file):
seqs_dict[seq_counter] = seq
if bcounter >= seqbatch_size:
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_dict=seqs_dict,
procseqs_foldername=procseqs_foldername,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
bcounter = 0
seqs_dict.clear()
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if seq_counter == seqbatch_size:
taglevel_perf = evaluator.compute_states_confmatrix(
Y_seqs_dict
)
flag = True
else:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
bcounter += 1
seq_counter += 1
if len(seqs_dict):
# decode the remaining sequences
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_dict=seqs_dict,
procseqs_foldername=procseqs_foldername,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if flag:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
else:
taglevel_perf = evaluator.compute_states_confmatrix(Y_seqs_dict)
if model_eval:
performance = evaluator.get_performance_metric(
taglevel_perf, perf_metric, exclude_states=exclude_states
)
return {
perf_metric: performance,
"taglevel_confusion_matrix": taglevel_perf,
}
return {}
def map_pred_to_ref_seqs(self, seqs_pred):
Y_seqs_dict = {}
# print("seqs_pred {}".format(seqs_pred))
for seq_id in seqs_pred:
Y_seqs_dict[seq_id] = {}
for seq_label in seqs_pred[seq_id]:
if seq_label == "seq":
val = seqs_pred[seq_id][seq_label].flat_y
key = "Y_ref"
else:
val = seqs_pred[seq_id][seq_label]
key = seq_label
Y_seqs_dict[seq_id][key] = val
return Y_seqs_dict
def verify_template(self):
""" verifying template -- sanity check"""
seqs_id = self.seqs_id
model = self.model
crf_model = self.crf_model
num_globalfeatures = model.num_features
f = set()
for seq_id in seqs_id:
crf_model.load_activefeatures(seq_id)
seq_activefeatures = crf_model.seqs_info[seq_id]["activefeatures"]
for features_dict in seq_activefeatures.values():
for z_patt in features_dict:
f.update(set(features_dict[z_patt][0]))
crf_model.clear_cached_info([seq_id])
num_activefeatures = len(f)
statement = ""
if num_activefeatures < num_globalfeatures:
statement = "len(activefeatures) < len(modelfeatures)"
elif num_activefeatures > num_globalfeatures:
statement = "len(activefeatures) > len(modelfeatures)"
else:
statement = "PASS"
print(statement)
class GenericTrainingWorkflow(object):
"""generic training workflow for building and training CRF models
Args:
aextractor_obj: initialized instance of :class:`GenericAttributeExtractor` class/subclass
fextractor_obj: initialized instance of :class:`FeatureExtractor` class/subclass
feature_filter_obj: None or an initialized instance of :class:`FeatureFilter` class
model_repr_class: a CRFs model representation class such as :class:`HOCRFADModelRepresentation`
model_class: a CRFs model class such as :class:`HOCRFAD`
root_dir: string representing the directory/path where working directory will be created
Attributes:
aextractor_obj: initialized instance of :class:`GenericAttributeExtractor` class/subclass
fextractor_obj: initialized instance of :class:`FeatureExtractor` class/subclass
feature_filter_obj: None or an initialized instance of :class:`FeatureFilter` class
model_repr_class: a CRFs model representation class such as :class:`HOCRFADModelRepresentation`
model_class: a CRFs model class such as :class:`HOCRFAD`
root_dir: string representing the directory/path where working directory will be created
"""
def __init__(
self,
aextractor_obj,
fextractor_obj,
feature_filter_obj,
model_repr_class,
model_class,
root_dir,
):
self.aextractor_obj = aextractor_obj
self.fextractor_obj = fextractor_obj
self.feature_filter_obj = feature_filter_obj
self.model_repr_class = model_repr_class
self.model_class = model_class
self.root_dir = root_dir
@staticmethod
def get_seqs_from_file(seq_file, data_parser, data_parser_options):
"""read sequences from a file
Args:
seq_file: string representing the path to the sequence file
data_parser: instance of :class:`DataFileParser` class
data_parser_options: dictionary containing options to be passed
to :func:`read_file` method of :class:`DataFileParser` class
"""
header = data_parser_options["header"]
col_sep = data_parser_options["column_sep"]
seg_other_symbol = data_parser_options["seg_other_symbol"]
y_ref = data_parser_options["y_ref"]
for seq in data_parser.read_file(
seq_file,
header,
y_ref=y_ref,
column_sep=col_sep,
seg_other_symbol=seg_other_symbol,
):
yield seq
def build_seqsinfo_from_seqfile(
self, seq_file, data_parser_options, num_seqs=numpy.inf
):
"""prepares and process sequences to disk and return info dictionary about the parsed sequences
Args:
seq_file: string representing the path to the sequence file
data_parser_options: dictionary containing options to be passed
to :func:`read_file` method of :class:`DataFileParser` class
num_seqs: integer, maximum number of sequences to read from file
(default numpy.inf -- means read all file)
"""
seq_representer = self.seq_representer
# create working directory
corpus_name = "reference_corpus_" + generate_datetime_str()
working_dir = create_directory("working_dir", self.root_dir)
self.working_dir = working_dir
unique_id = False
# build the seqs_info by parsing the sequences from file iteratively
seqs_info = {}
counter = 1
dparser = DataFileParser()
for seq in self.get_seqs_from_file(seq_file, dparser, data_parser_options):
if hasattr(seq, "id"):
seq_id = seq.id
else:
seq_id = counter
seqs_info.update(
seq_representer.prepare_seqs(
{seq_id: seq},
corpus_name,
working_dir,
unique_id,
log_progress=False,
)
)
print("{} sequences have been processed".format(counter))
if counter >= num_seqs:
break
counter += 1
return seqs_info
def build_seqsinfo_from_seqs(self, seqs):
"""prepares and process sequences to disk and return info dictionary about the parsed sequences
Args:
seqs: list of sequences that are instances of :class:`SequenceStruct` class
"""
# create working directory
corpus_name = "reference_corpus"
working_dir = create_directory("working_dir", self.root_dir)
self.working_dir = working_dir
unique_id = True
seq_representer = self.seq_representer
# create sequence dictionary mapping each sequence to a unique id
seqs_dict = {}
counter = 1
for seq in seqs:
if hasattr(seq, "id"):
seq_id = seq.id
else:
seq_id = counter
seqs_dict[seq_id] = seq
counter += 1
# get the seqs_info representing the information about the parsed sequences
seqs_info = seq_representer.prepare_seqs(
seqs_dict, corpus_name, working_dir, unique_id
)
return seqs_info
def seq_parsing_workflow(self, split_options, **kwargs):
"""preparing and parsing sequences to be later used in the learning framework"""
# get attribute extractor
attr_extractor = self.aextractor_obj
# get feature extractor
f_extractor = self.fextractor_obj
# create sequence representer
seq_representer = SeqsRepresenter(attr_extractor, f_extractor)
self.seq_representer = seq_representer
# check if a sequence file is passed
if kwargs.get("seq_file"):
seq_file = kwargs.get("seq_file")
# get the data file parser options
data_parser_options = kwargs.get("data_parser_options")
num_seqs = kwargs.get("num_seqs")
if not num_seqs: # default read all file
num_seqs = numpy.inf
# build the seqs_info by parsing the sequences from file iteratively
seqs_info = self.build_seqsinfo_from_seqfile(
seq_file, data_parser_options, num_seqs=num_seqs
)
elif kwargs.get("seqs"):
seqs = kwargs.get("seqs")
seqs_info = self.build_seqsinfo_from_seqs(seqs)
seqs_id = list(seqs_info.keys())
self.seqs_id = seqs_id
# preprocess and generate attributes in case of segments with length >1 or in case of scaling of continuous attributes is needed
seq_representer.preprocess_attributes(seqs_id, seqs_info)
# check if we want to generate global features per boundary too
# this is mostly used in perceptron/search based training
full_parsing = kwargs.get("full_parsing")
# extract global features F(X,Y)
seq_representer.extract_seqs_globalfeatures(
seqs_id, seqs_info, dump_gfeat_perboundary=full_parsing
)
# save the link to seqs_info and seq_representer as instance variables
# because the seqs_info and seq_representer is updated
self.seqs_info = seqs_info
self.seq_representer = seq_representer
# split dataset according to the specified split options
data_split = self.split_dataset(seqs_info, split_options)
# save the datasplit dictionary on disk
gfeatures_dir = seqs_info[1]["globalfeatures_dir"]
ref_corpusdir = os.path.dirname(os.path.dirname(gfeatures_dir))
ReaderWriter.dump_data(data_split, os.path.join(ref_corpusdir, "data_split"))
return data_split
@staticmethod
def split_dataset(seqs_info, split_options):
"""splits dataset for learning and testing
"""
if split_options["method"] == "wsample":
# try weighted sample
# first group seqs based on length
grouped_seqs = group_seqs_by_length(seqs_info)
# second get a weighted sample based on seqs length
w_sample = weighted_sample(
grouped_seqs, trainset_size=split_options["trainset_size"]
)
# print("w_sample ", w_sample)
# third aggregate the seqs in training category and testing category
data_split = aggregate_weightedsample(w_sample)
elif split_options["method"] == "cross_validation":
# try cross validation
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "random":
seqs_id = list(seqs_info.keys())
data_split = split_data(seqs_id, split_options)
elif split_options["method"] == "none":
seqs_id = list(seqs_info.keys())
data_split = {0: {"train": seqs_id}}
return data_split
def build_crf_model(
self, seqs_id, folder_name, load_info_fromdisk=10, full_parsing=True
):
seq_representer = self.seq_representer
seqs_info = self.seqs_info
model_repr_class = self.model_repr_class
filter_obj = self.feature_filter_obj
model_class = self.model_class
model_repr = seq_representer.create_model(
seqs_id, seqs_info, model_repr_class, filter_obj
)
# extract for each sequence model active features
# use all seq ids in the self.seqs_info
seq_representer.extract_seqs_modelactivefeatures(
self.seqs_id, seqs_info, model_repr, folder_name, learning=full_parsing
)
# create a CRF model
crf_model = model_class(
model_repr,
seq_representer,
seqs_info,
load_info_fromdisk=load_info_fromdisk,
)
return crf_model
def traineval_folds(self, data_split, **kwargs):
"""train and evaluate model on different dataset splits"""
seqs_info = self.seqs_info
models_info = []
ref_corpusdir = os.path.dirname(
os.path.dirname(seqs_info[1]["globalfeatures_dir"])
)
info_fromdisk = kwargs.get("load_info_fromdisk")
# specify large number such that we always load the computed data from disk rather keeping them in memory
if type(info_fromdisk) != int:
info_fromdisk = 10
elif info_fromdisk < 0:
info_fromdisk = 10
# get optimization options
optimization_options = kwargs.get("optimization_options")
if not optimization_options:
raise ("optimization_options need to be specified !!")
full_parsing = False
if optimization_options["method"] in {"COLLINS-PERCEPTRON", "SAPO"}:
full_parsing = True
# check if file name is specified
file_name = kwargs.get("file_name")
for fold in data_split:
for dtype in ("train", "test"):
fold_seqs_id = data_split[fold].get(dtype)
if dtype == "train":
crf_model = self.build_crf_model(
fold_seqs_id, "f{}".format(fold), info_fromdisk, full_parsing
)
# get the directory of the trained model
savedmodel_dir = self.train_model(
fold_seqs_id, crf_model, optimization_options
)
if fold_seqs_id:
# evaluate on the current data fold
fold_name = "{}_f{}".format(dtype, fold)
fold_seqs_info = {
seq_id: seqs_info[seq_id] for seq_id in fold_seqs_id
}
kwargs["seqs_info"] = fold_seqs_info
if file_name:
# add prefix
update_filename = fold_name + "_" + file_name
kwargs["file_name"] = update_filename
res = self.use_model(savedmodel_dir, kwargs)
res["fold_name"] = fold_name
res["model_dir"] = savedmodel_dir
models_info.append(res)
# save workflow trainer instance on disk
ReaderWriter.dump_data(self, os.path.join(ref_corpusdir, "workflow_trainer"))
return models_info
def train_model(self, trainseqs_id, crf_model, optimization_options):
"""train a model and return the directory of the trained model"""
# check if the seqs_info in crf_model was cleared
if not crf_model.seqs_info:
crf_model.seqs_info = self.seqs_info
working_dir = self.working_dir
learner = Learner(crf_model)
learner.train_model(
crf_model.weights, trainseqs_id, optimization_options, working_dir
)
return learner.training_description["model_dir"]
def get_learned_crf(self, savedmodel_dir):
"""revive learned/trained model"""
# load learned models
model_dir = savedmodel_dir
modelparts_dir = os.path.join(model_dir, "model_parts")
aextractor_obj = self.aextractor_obj
crf_model = generate_trained_model(modelparts_dir, aextractor_obj)
return crf_model
def use_model(self, savedmodel_dir, options):
"""use trained model for decoding and performance measure evaluation"""
# load learned models
model_dir = savedmodel_dir
# revive/generate learned model
crf_model = self.get_learned_crf(model_dir)
# parse the arguments in kwargs
seqbatch_size = options.get("seqbatch_size")
if not seqbatch_size:
seqbatch_size = 1000
# check if model evaluation is requested
model_eval = options.get("model_eval")
if model_eval:
evaluator = SeqDecodingEvaluator(crf_model.model)
perf_metric = options.get("metric")
if not perf_metric:
perf_metric = "f1"
exclude_states = options.get("exclude_states")
if not exclude_states:
exclude_states = []
if options.get("seqs_info"):
# decode sequences
seqs_info = options.get("seqs_info")
seqs_id = list(seqs_info.keys())
start_ind = 0
stop_ind = seqbatch_size
while start_ind < len(seqs_id):
batch_seqsinfo = {
seq_id: seqs_info[seq_id] for seq_id in seqs_id[start_ind:stop_ind]
}
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_info=batch_seqsinfo,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if start_ind == 0:
taglevel_perf = evaluator.compute_states_confmatrix(Y_seqs_dict)
else:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
start_ind += seqbatch_size
stop_ind += seqbatch_size
# TO adjust the batch size and available sequences..
elif options.get("seq_file"):
flag = False
seq_file = options.get("seq_file")
data_parser_options = options.get("data_parser_options")
num_seqs = options.get("num_seqs")
if not num_seqs:
num_seqs = numpy.inf
# the folder name where intermediary sequences and data are stored
procseqs_foldername = "processed_seqs_" + generate_datetime_str()
dparser = DataFileParser()
seqs_dict = {}
bcounter = 1
seq_counter = 1
for seq in self.get_seqs_from_file(seq_file, dparser, data_parser_options):
seqs_dict[seq_counter] = seq
if bcounter >= seqbatch_size:
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_dict=seqs_dict,
procseqs_foldername=procseqs_foldername,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
bcounter = 0
seqs_dict.clear()
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if seq_counter == seqbatch_size:
taglevel_perf = evaluator.compute_states_confmatrix(
Y_seqs_dict
)
flag = True
else:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
if seq_counter >= num_seqs:
break
bcounter += 1
seq_counter += 1
if len(seqs_dict):
# decode the remaining sequences
seqs_pred = crf_model.decode_seqs(
"viterbi",
model_dir,
seqs_dict=seqs_dict,
procseqs_foldername=procseqs_foldername,
file_name=options.get("file_name"),
sep=options.get("sep"),
beam_size=options.get("beam_size"),
)
if model_eval:
Y_seqs_dict = self.map_pred_to_ref_seqs(seqs_pred)
if flag:
taglevel_perf += evaluator.compute_states_confmatrix(
Y_seqs_dict
)
else:
taglevel_perf = evaluator.compute_states_confmatrix(Y_seqs_dict)
if model_eval:
performance = evaluator.get_performance_metric(
taglevel_perf, perf_metric, exclude_states=exclude_states
)
return {
perf_metric: performance,
"taglevel_confusion_matrix": taglevel_perf,
}
return {}
@staticmethod
def map_pred_to_ref_seqs(seqs_pred):
Y_seqs_dict = {}
# print("seqs_pred {}".format(seqs_pred))
for seq_id in seqs_pred:
Y_seqs_dict[seq_id] = {}
for seq_label in seqs_pred[seq_id]:
if seq_label == "seq":
val = seqs_pred[seq_id][seq_label].flat_y
key = "Y_ref"
else:
val = seqs_pred[seq_id][seq_label]
key = seq_label
Y_seqs_dict[seq_id][key] = val
return Y_seqs_dict
def verify_template(self):
""" verifying template -- sanity check"""
seqs_id = self.seqs_id
model = self.model
crf_model = self.crf_model
num_globalfeatures = model.num_features
f = set()
for seq_id in seqs_id:
crf_model.load_activefeatures(seq_id)
seq_activefeatures = crf_model.seqs_info[seq_id]["activefeatures"]
for features_dict in seq_activefeatures.values():
for z_patt in features_dict:
f.update(set(features_dict[z_patt][0]))
crf_model.clear_cached_info([seq_id])
num_activefeatures = len(f)
statement = ""
if num_activefeatures < num_globalfeatures:
statement = "len(activefeatures) < len(modelfeatures)"
elif num_activefeatures > num_globalfeatures:
statement = "len(activefeatures) > len(modelfeatures)"
else:
statement = "PASS"
print(statement)
| 40.319831
| 136
| 0.587162
| 5,261
| 47,779
| 5.018057
| 0.070899
| 0.033939
| 0.010909
| 0.007424
| 0.869015
| 0.845758
| 0.81947
| 0.809621
| 0.800909
| 0.797008
| 0
| 0.001915
| 0.344294
| 47,779
| 1,184
| 137
| 40.353885
| 0.840755
| 0.166684
| 0
| 0.772422
| 0
| 0
| 0.052329
| 0.002528
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035874
| false
| 0.003363
| 0.005605
| 0
| 0.07287
| 0.008969
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
1f20b697a9df6f45aea99cc7dbcc5f4c4fffb02c
| 701
|
py
|
Python
|
pynumdiff/linear_model/__init__.py
|
fossabot/PyNumDiff
|
dccad2ad7a875f2ecccb0db2bb6e2afa392916d1
|
[
"MIT"
] | null | null | null |
pynumdiff/linear_model/__init__.py
|
fossabot/PyNumDiff
|
dccad2ad7a875f2ecccb0db2bb6e2afa392916d1
|
[
"MIT"
] | null | null | null |
pynumdiff/linear_model/__init__.py
|
fossabot/PyNumDiff
|
dccad2ad7a875f2ecccb0db2bb6e2afa392916d1
|
[
"MIT"
] | null | null | null |
from pynumdiff.linear_model.__linear_model__ import savgoldiff as savgoldiff
from pynumdiff.linear_model.__linear_model__ import spectraldiff as spectraldiff
from pynumdiff.linear_model.__linear_model__ import polydiff as polydiff
from pynumdiff.linear_model.__linear_model__ import chebydiff as chebydiff
from pynumdiff.linear_model.__linear_model__ import dmddiff as dmddiff
from pynumdiff.linear_model.__linear_model__ import lineardiff as lineardiff
from pynumdiff.linear_model.__linear_model__ import __integrate_dxdt_hat_matrix__ as __integrate_dxdt_hat_matrix__
from pynumdiff.linear_model.__linear_model__ import __solve_for_A_and_C_given_X_and_Xdot__ as __solve_for_A_and_C_given_X_and_Xdot__
| 87.625
| 132
| 0.910128
| 102
| 701
| 5.411765
| 0.235294
| 0.318841
| 0.275362
| 0.347826
| 0.688406
| 0.688406
| 0.688406
| 0.094203
| 0.094203
| 0
| 0
| 0
| 0.067047
| 701
| 8
| 132
| 87.625
| 0.844037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 7
|
1f498136cfd4162e607fe0670672f4cf4a5f79cd
| 9,749
|
py
|
Python
|
src/plotbook/plots/seaborn.py
|
shifwang/plotbook
|
f578ddc45b72ebb1306838e398de023851397f06
|
[
"MIT"
] | null | null | null |
src/plotbook/plots/seaborn.py
|
shifwang/plotbook
|
f578ddc45b72ebb1306838e398de023851397f06
|
[
"MIT"
] | null | null | null |
src/plotbook/plots/seaborn.py
|
shifwang/plotbook
|
f578ddc45b72ebb1306838e398de023851397f06
|
[
"MIT"
] | null | null | null |
import pandas as pd
import numpy as np
import seaborn as sn
import matplotlib.pyplot as plt
import ipywidgets as widgets
def make_occur_plot_2(X, Y, df, force_dtype={}):
output = df.apply(lambda row: (row[X], row[Y]), axis=1)
values, counts = np.unique(output, return_counts=True)
x = pd.Series([value[0] for value in values])
y = pd.Series([value[1] for value in values])
x_labels = [v for v in sorted(x.unique())]
y_labels = [v for v in sorted(y.unique())]
x_to_num = {p[1]:p[0] for p in enumerate(x_labels)}
y_to_num = {p[1]:p[0] for p in enumerate(y_labels)}
out = pd.DataFrame(columns=x_labels, index=y_labels)
for i, (x_ind, y_ind) in enumerate(zip(x, y)):
out.loc[y_ind, x_ind] = counts[i]
out = out.fillna(0)
#plt.figure()
ax = sn.heatmap(out)
fig = ax.get_figure()
plt.show(fig)
def make_beeswarm_plot(Xs, Y, df, force_dtype={}, **params):
plt.figure(figsize=(params['Figsize_x'], params['Figsize_y']))
if params['color_palette'] == '':
with sn.color_palette():
if isinstance(Xs, str):
ax = sn.swarmplot(x=Xs, y = Y, data=df)
else:
ax = sn.swarmplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
else:
key = Xs if isinstance(Xs, str) else Xs[0]
with sn.color_palette(params['color_palette'], df[key].nunique()):
if isinstance(Xs, str):
ax = sn.swarmplot(x=Xs, y = Y, data=df)
else:
ax = sn.swarmplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
ax.set_title(params['Title'])
if 'half_spine' in params:
ax.spines["top"].set_visible(not params['half_spine'])
ax.spines["right"].set_visible(not params['half_spine'])
ax.set_xlabel(params['xlabel'])
ax.set_ylabel(params['ylabel'])
fig = ax.get_figure()
plt.show(ax)
if params['save']:
fig.savefig('saved_beeswarm_plot.png')
def make_interactive_beeswarm(Xs, Y, df, force_dtype={}):
def plot(**params):
make_beeswarm_plot(Xs, Y, df, force_dtype, **params)
if isinstance(Xs, str):
widgets.interact(
plot,
Title="",
xlabel=Xs,
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
elif len(Xs) == 2:
widgets.interact(
plot,
Title="",
xlabel=Xs[1],
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
def make_density_plot(X, Y, df, force_dtype={}, **params):
pass
def make_box_plot_seaborn(Xs, Y, df, force_dtype={}, **params):
plt.figure(figsize=(params['Figsize_x'], params['Figsize_y']))
if params['color_palette'] == '':
with sn.color_palette():
if isinstance(Xs, str):
ax = sn.boxplot(x=Xs, y = Y, data=df)
else:
ax = sn.boxplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
else:
key = Xs if isinstance(Xs, str) else Xs[0]
with sn.color_palette(params['color_palette'], df[key].nunique()):
if isinstance(Xs, str):
ax = sn.boxplot(x=Xs, y = Y, data=df)
else:
ax = sn.boxplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
ax.set_title(params['Title'])
if 'half_spine' in params:
ax.spines["top"].set_visible(not params['half_spine'])
ax.spines["right"].set_visible(not params['half_spine'])
ax.set_xlabel(params['xlabel'])
ax.set_ylabel(params['ylabel'])
fig = ax.get_figure()
plt.show(ax)
if params['save']:
fig.savefig('saved_boxplot_plot.png')
def make_interactive_boxplot(Xs, Y, df, force_dtype={}):
def plot(**params):
make_box_plot_seaborn(Xs, Y, df, force_dtype, **params)
if isinstance(Xs, str):
widgets.interact(
plot,
Title="",
xlabel=Xs,
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
elif len(Xs) == 2:
widgets.interact(
plot,
Title="",
xlabel=Xs[1],
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
else:
raise NotImplementedError()
def make_violin_plot_seaborn(Xs, Y, df, force_dtype={}, **params):
plt.figure(figsize=(params['Figsize_x'], params['Figsize_y']))
if params['color_palette'] == '':
with sn.color_palette():
if isinstance(Xs, str):
ax = sn.violinplot(x=Xs, y = Y, data=df)
else:
ax = sn.violinplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
else:
key = Xs if isinstance(Xs, str) else Xs[0]
with sn.color_palette(params['color_palette'], df[key].nunique()):
if isinstance(Xs, str):
ax = sn.violinplot(x=Xs, y = Y, data=df)
else:
ax = sn.violinplot(x=Xs[1], y = Y, data=df,hue=Xs[0])
ax.set_title(params['Title'])
if 'half_spine' in params:
ax.spines["top"].set_visible(not params['half_spine'])
ax.spines["right"].set_visible(not params['half_spine'])
ax.set_xlabel(params['xlabel'])
ax.set_ylabel(params['ylabel'])
fig = ax.get_figure()
plt.show(ax)
if params['save']:
fig.savefig('saved_violin_plot.png')
def make_interactive_violin(Xs, Y, df, force_dtype={}):
def plot(**params):
make_violin_plot_seaborn(Xs, Y, df, force_dtype, **params)
if isinstance(Xs, str):
widgets.interact(
plot,
Title="",
xlabel=Xs,
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
elif len(Xs) == 2:
widgets.interact(
plot,
Title="",
xlabel=Xs[1],
ylabel=Y,
Figsize_x=widgets.IntSlider(
min=1,
max=10,
value=4,
),
Figsize_y=widgets.IntSlider(
min=1,
max=10,
value=3,
),
color_palette=[
('default',''),
('muted','muted'),
('Red-Blue','RdBu'),
('Set1','Set1'),
('Set2','Set2'),
('Set3','Set3'),
('husl','husl'),
('spring', 'spring'),
('summer', 'summer'),
('ocean', 'ocean'),
],
half_spine=True,
save=False,
)
| 31.652597
| 74
| 0.443635
| 1,060
| 9,749
| 3.958491
| 0.116038
| 0.051478
| 0.040038
| 0.048618
| 0.876787
| 0.85081
| 0.836749
| 0.836749
| 0.836749
| 0.809104
| 0
| 0.019461
| 0.399118
| 9,749
| 308
| 75
| 31.652597
| 0.696825
| 0.001231
| 0
| 0.861017
| 0
| 0
| 0.097052
| 0.006778
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037288
| false
| 0.00339
| 0.016949
| 0
| 0.054237
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
1f530cec8f939d3a63a7399963d54bd18fc369e2
| 138
|
py
|
Python
|
src/eve_utils/__init__.py
|
pointw-dev/eve-utils
|
2af7d28232e0d22975cc8141fda27a3870694223
|
[
"MIT"
] | null | null | null |
src/eve_utils/__init__.py
|
pointw-dev/eve-utils
|
2af7d28232e0d22975cc8141fda27a3870694223
|
[
"MIT"
] | null | null | null |
src/eve_utils/__init__.py
|
pointw-dev/eve-utils
|
2af7d28232e0d22975cc8141fda27a3870694223
|
[
"MIT"
] | null | null | null |
from .utils import insert_import
from .utils import copy_skel
from .utils import install_packages
from .utils import replace_project_name
| 27.6
| 39
| 0.855072
| 21
| 138
| 5.380952
| 0.52381
| 0.318584
| 0.530973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 138
| 4
| 40
| 34.5
| 0.92623
| 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
| 1
| 0
|
0
| 7
|
1f6ff01d62bc19e96aeef565412fbcd2ab6d3df6
| 80
|
py
|
Python
|
alphaml/datasets/img_cls_dataset/__init__.py
|
dingdian110/alpha-ml
|
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
|
[
"BSD-3-Clause"
] | 1
|
2021-09-06T20:21:15.000Z
|
2021-09-06T20:21:15.000Z
|
alphaml/datasets/img_cls_dataset/__init__.py
|
dingdian110/alpha-ml
|
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
|
[
"BSD-3-Clause"
] | null | null | null |
alphaml/datasets/img_cls_dataset/__init__.py
|
dingdian110/alpha-ml
|
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
|
[
"BSD-3-Clause"
] | null | null | null |
from .dataset_loader import load_data
from .dataset_loader import load_data_img
| 26.666667
| 41
| 0.875
| 13
| 80
| 5
| 0.538462
| 0.338462
| 0.523077
| 0.707692
| 0.953846
| 0.953846
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 80
| 2
| 42
| 40
| 0.902778
| 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
| 1
| 1
| 1
| 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
| 10
|
1f76ce07fba06e3c9196beb40af9eb0ddc0684bd
| 1,493
|
py
|
Python
|
final_project/machinetranslation/translator.py
|
chrliprin/xzceb-flask_eng_fr
|
89bb38334afc5d2ff9492233984242c24703ceb6
|
[
"Apache-2.0"
] | null | null | null |
final_project/machinetranslation/translator.py
|
chrliprin/xzceb-flask_eng_fr
|
89bb38334afc5d2ff9492233984242c24703ceb6
|
[
"Apache-2.0"
] | null | null | null |
final_project/machinetranslation/translator.py
|
chrliprin/xzceb-flask_eng_fr
|
89bb38334afc5d2ff9492233984242c24703ceb6
|
[
"Apache-2.0"
] | null | null | null |
def englishToFrench(englishText):
import json
from ibm_watson import LanguageTranslatorV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
import os
from dotenv import load_dotenv
load_dotenv()
apikey = os.environ['apikey']
url = os.environ['url']
version='2018-05-01'
authenticator = IAMAuthenticator(apikey)
language_translator = LanguageTranslatorV3(version=version,authenticator=authenticator)
language_translator.set_service_url(url)
translation_response = language_translator.translate(\
text=englishText, model_id='en-fr')
translation=translation_response.get_result()
frenchText =translation['translations'][0]['translation']
return frenchText
def frenchToEnglish(frenchText):
import json
from ibm_watson import LanguageTranslatorV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
import os
from dotenv import load_dotenv
load_dotenv()
apikey = os.environ['apikey']
url = os.environ['url']
version='2018-05-01'
authenticator = IAMAuthenticator(apikey)
language_translator = LanguageTranslatorV3(version=version,authenticator=authenticator)
language_translator.set_service_url(url)
translation_response = language_translator.translate(\
text=frenchText, model_id='fr-en')
translation=translation_response.get_result()
englishText =translation['translations'][0]['translation']
return englishText
| 27.648148
| 91
| 0.752847
| 156
| 1,493
| 7.012821
| 0.282051
| 0.09872
| 0.025594
| 0.031079
| 0.870201
| 0.723949
| 0.723949
| 0.723949
| 0.723949
| 0.723949
| 0
| 0.017657
| 0.165439
| 1,493
| 53
| 92
| 28.169811
| 0.860353
| 0
| 0
| 0.777778
| 0
| 0
| 0.06296
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.277778
| 0
| 0.388889
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
1f7c23904d684b8a2da4fd68bd64cb3c2ab9c7ee
| 1,639
|
py
|
Python
|
conda_forge_artifact_validation/tests/test_chunk_iterable.py
|
conda-forge/artifact-validation
|
c141bc00048a08a8596cee788da675c2b708749a
|
[
"BSD-3-Clause"
] | 2
|
2021-09-26T10:53:05.000Z
|
2021-09-27T06:29:13.000Z
|
conda_forge_artifact_validation/tests/test_chunk_iterable.py
|
conda-forge/artifact-validation
|
c141bc00048a08a8596cee788da675c2b708749a
|
[
"BSD-3-Clause"
] | 746
|
2020-11-21T18:03:57.000Z
|
2022-03-29T12:42:55.000Z
|
conda_forge_artifact_validation/tests/test_chunk_iterable.py
|
conda-forge/artifact-validation
|
c141bc00048a08a8596cee788da675c2b708749a
|
[
"BSD-3-Clause"
] | null | null | null |
from ..utils import chunk_iterable
def test_chunk_iterable():
lst = []
chunks = list(chunk_iterable(lst, 0))
assert sum(len(c) for c in chunks) == 0
chunks = list(chunk_iterable(lst, 1))
assert sum(len(c) for c in chunks) == 0
chunks = list(chunk_iterable(lst, 100))
assert sum(len(c) for c in chunks) == 0
lst = list(range(119))
chunks = list(chunk_iterable(lst, 0))
assert sum(len(c) for c in chunks) == 119
assert sum(chunks, []) == list(range(119))
chunks = list(chunk_iterable(lst, 1))
assert sum(len(c) for c in chunks) == 119
assert sum(chunks, []) == list(range(119))
chunks = list(chunk_iterable(lst, 13))
assert sum(len(c) for c in chunks) == 119
assert sum(chunks, []) == list(range(119))
lst = list(range(101))
chunks = list(chunk_iterable(lst, 0))
assert sum(len(c) for c in chunks) == 101
assert sum(chunks, []) == list(range(101))
chunks = list(chunk_iterable(lst, 1))
assert sum(len(c) for c in chunks) == 101
assert sum(chunks, []) == list(range(101))
chunks = list(chunk_iterable(lst, 10))
assert sum(len(c) for c in chunks) == 101
assert sum(chunks, []) == list(range(101))
lst = list(range(100))
chunks = list(chunk_iterable(lst, 0))
assert sum(len(c) for c in chunks) == 100
assert sum(chunks, []) == list(range(100))
chunks = list(chunk_iterable(lst, 1))
assert sum(len(c) for c in chunks) == 100
assert sum(chunks, []) == list(range(100))
chunks = list(chunk_iterable(lst, 10))
assert sum(len(c) for c in chunks) == 100
assert sum(chunks, []) == list(range(100))
| 36.422222
| 46
| 0.61806
| 256
| 1,639
| 3.898438
| 0.09375
| 0.210421
| 0.208417
| 0.276553
| 0.93487
| 0.93487
| 0.93487
| 0.93487
| 0.898798
| 0.872745
| 0
| 0.064894
| 0.219646
| 1,639
| 44
| 47
| 37.25
| 0.715403
| 0
| 0
| 0.794872
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.538462
| 1
| 0.025641
| false
| 0
| 0.025641
| 0
| 0.051282
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
2f393a96b536675b854c7a9ac433b788553887d6
| 1,400
|
py
|
Python
|
testing/tests/001-main/004-extensions/002-tests/002-manageextensions.py
|
fekblom/critic
|
a6b60c9053e13d4c878d50531860d7389568626d
|
[
"Apache-2.0"
] | 216
|
2015-01-05T12:48:10.000Z
|
2022-03-08T00:12:23.000Z
|
testing/tests/001-main/004-extensions/002-tests/002-manageextensions.py
|
fekblom/critic
|
a6b60c9053e13d4c878d50531860d7389568626d
|
[
"Apache-2.0"
] | 55
|
2015-02-28T12:10:26.000Z
|
2020-11-18T17:45:16.000Z
|
testing/tests/001-main/004-extensions/002-tests/002-manageextensions.py
|
fekblom/critic
|
a6b60c9053e13d4c878d50531860d7389568626d
|
[
"Apache-2.0"
] | 34
|
2015-05-02T15:15:10.000Z
|
2020-06-15T19:20:37.000Z
|
frontend.page(
"manageextensions",
expect={ "document_title": testing.expect.document_title(u"Manage Extensions"),
"content_title": testing.expect.paleyellow_title(0, u"Available Extensions"),
"pageheader_links": testing.expect.pageheader_links("anonymous",
"extensions"),
"script_user": testing.expect.script_anonymous_user() })
frontend.page(
"manageextensions",
params={ "what": "available" },
expect={ "document_title": testing.expect.document_title(u"Manage Extensions"),
"content_title": testing.expect.paleyellow_title(0, u"Available Extensions"),
"pageheader_links": testing.expect.pageheader_links("anonymous",
"extensions"),
"script_user": testing.expect.script_anonymous_user() })
frontend.page(
"manageextensions",
params={ "what": "installed" },
expect={ "document_title": testing.expect.document_title(u"Manage Extensions"),
"content_title": testing.expect.paleyellow_title(0, u"Installed Extensions"),
"pageheader_links": testing.expect.pageheader_links("anonymous",
"extensions"),
"script_user": testing.expect.script_anonymous_user() })
| 53.846154
| 90
| 0.592857
| 120
| 1,400
| 6.691667
| 0.183333
| 0.194271
| 0.141968
| 0.097136
| 0.931507
| 0.931507
| 0.931507
| 0.931507
| 0.931507
| 0.931507
| 0
| 0.003006
| 0.287143
| 1,400
| 25
| 91
| 56
| 0.801603
| 0
| 0
| 0.869565
| 0
| 0
| 0.288571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2f4d02fe4f67db6266acfafd425401db28b233ba
| 7,058
|
py
|
Python
|
2015/2015_01a.py
|
davidxiao93/Advent-of-Code
|
29503100ae4eb46b048fc3ab68ff0181c6f00ee5
|
[
"MIT"
] | null | null | null |
2015/2015_01a.py
|
davidxiao93/Advent-of-Code
|
29503100ae4eb46b048fc3ab68ff0181c6f00ee5
|
[
"MIT"
] | null | null | null |
2015/2015_01a.py
|
davidxiao93/Advent-of-Code
|
29503100ae4eb46b048fc3ab68ff0181c6f00ee5
|
[
"MIT"
] | null | null | null |
input = """()()(()()()(()()((()((()))((()((((()()((((()))()((((())(((((((()(((((((((()(((())(()()(()((()()(()(())(()((((()((()()()((((())((((((()(()(((()())(()((((()))())(())(()(()()))))))))((((((((((((()())()())())(())))(((()()()((((()(((()(()(()()(()(()()(()(((((((())(())(())())))((()())()((((()()((()))(((()()()())))(())))((((())(((()())(())(()))(()((((()())))())((()(())(((()((((()((()(())())))((()))()()(()(()))))((((((((()())((((()()((((()(()())(((((()(()())()))())(((()))()(()(()(()((((()(())(()))(((((()()(()()()(()(((())())(((()()(()()))(((()()(((())())(()(())())()()(())()()()((()(((()(())((()()((())()))((()()))((()()())((((()(()()(()(((()))()(()))))((()(((()()()))(()(((())()(()((()())(()(()()(()())(())()(((()(()())()((((()((()))))())()))((()()()()(())()())()()()((((()))))(()(((()()(((((((())()))()((((()((())()(()())(())()))(()(()())(((((((())))(((()))())))))()))())((())(()()((())()())()))))()((()()())(())((())((((()())())()()()(((()))())))()()))())(()()()(()((((((()()))())()))()(((()(((())((((()()()(()))())()()))))())()))())((())()())(((((())())((())())))(((())(((())(((((()(((((())(()(()())())(()(())(()))(()((((()))())()))))())))((()(()))))())))(((((())()))())()))))()))))(((()))()))))((()))((()((()(()(())()())))(()()()(())()))()((((())))))))(())(()((()()))(()))(()))(()((()))))))()()((((()()))()())()))))))()()()))(()((())(()))((()()()())()(((()((((())())))()((((()(()))))))())))()()())()))(()))))(()())()))))))((())))))))())()))()((())())))(()((()))()))(())))))(()))()())()()))((()(()))()()()()))))())()()))())(())()()))()))((()))))()()(()())))))()()()))((((()))()))))(()(())))(()())))((())())(()))()))))()())))()())()())))))))))()()))))())))((())((()))))())))(((()())))))))(()))()()))(()))()))))()())))))())((((()())))))))())))()()))))))))()))()))))()))))))(())))))))))())))))))))))))))())())((())))))))))()))((())))()))))))))())()(()))))))())))))()()()())()(()()()(()())(()))()()()(()())))())())))()))))())))))))()()()()())(())())()())()))))(()()()()()))))()))())())))((()())()())))()))()))))(()())))()))))))))(((()))()()))))))))))))))))))))(()))(()((()))())))())(()))(()(()(())))))()(()))()))()()))))))))))))()((()())(())())()(())))))())()())((()()))))(()()))))())()(())()))))))))))))))))))))()))(()(()())))))))()()((()))()))))))((())))()))))))))((()))())()()))())()()))((()))())))))))))))(()())()))(())((()(()()))(()())(())))()())(()(())()()))))()))()(()))))))(()))))))))))(()))())))))))))())))))())))(())))))()))))(())())))))))))()(()))))()())))())(()))()())))))))))))))())()()))))()))))))())))))()))))(())(()()()()((())()))())(()))((())()))())())(())(()()))))()))(())()()((())(())))(())))()))())))))))))()(((((())())))(())()))))(())))((()))()(((((((()))))()()))(())))))()(()))))(()()))()))())))))))(()())()))))))))())))(()))())()))(())()((())())()())())(()(()))))()))))))((()())(())()()(()())))()()))(())(())(()))())))()))(()))()()))((((()))))()))((()()()))))()))()))())))(()))()))))(())))()))())()(()))()())))())))))))())))())))()()))))))(()))())())))()))()()())())))))))))))))())))()))(()()))))())))())()(())))())))))))))))))))))()()())())))))()()()((()(()))()()(())()())()))()))))()()()))))))((()))))))))()(()(()((((((()()((()())))))))))))()))())))))((())())(()))())))())))))())()()())(())))())))()())())(())))))))()()(())))()))())))())())())()))))))))()))(()()()())())())))(())())))))))()()())()))))())))())()(())())))))))()())()))(()()(())())))()(()((()()((()()(((((())(()())()))(())()))(())))(())))))))()))()))((()))()))()))))))))()))))))))((()()())(()))(((()))(())))()))((())(((())))()())))())))))((())))))(())())((((((())())()(()))()(()((()())))((())()(()(()))))(())(()()())(())))())((()(((())())))(((()())())))())()(())())((((()()))))())((()))()()()()(())(((((((()()()((()))())(()())))(())())((((()()(()))))()((())))((())()))()(((()))())))()))((()(()))(())(()((((())((((()()(()()))(((())(()))))((((()(()))(())))))((()))(()))((()(((()(()))(()(()((()(())(()(()(()(()()((()))())(((())(()(()))))(()))()()))(())))(())()(((())(()))()((((()()))))())(()))))((())()((((()(((()))())())(((()))()())((())(())())(())()(())()(()()((((((()()))))()()(((()()))))()())()(((()(()))(()(()())(()(()))))(((((()(((())())))))(((((()((()()((())())((((((()(())(()()((()()()()()()()(()()))()(((()))()))(((((((())(((()((()())()((((())(((()(())))()((()(()()()((())((()())()))()))())))())((((((()))(()(()()()))(()((()(()(()))()((()(((()()()((())(((((())()(()))())())((()(())))(()(()())(())((())())())(((()()()(())))))())(()))))))()))))))())((()()()))((()((((((()))(((()((((()()()(((()))())()(()()(((()((()()()()())()()))()()()(()(())((()))))(()))())))))))()(()()(((((())()(()(((((()((()(()()())(()((((((((()((((((())()((((()()()((()((()((((((()))((())))))))())()))((()(()))()(()()(()((())((()()((((((((((((()())(()()()))((((()((((((())(()))())(()()((()()))()(((((((()((()()((((((()(((())))((())))((((((((()()(((((((())(((((()())(((())((())()((((()(((((((()(()(((()((((((()(((()(((((((((((()()((()()(()))((()()(((()(((())))((((())()(()(((())()(()(((())(((((((((((()))())))((((((())((()()((((()())())((((()()))((())(((((()(()()(()()()((())(()((()()((((()(((((()((()(()((((()())((((((()(((((()()(()(()((((())))(())(())(())((((()(()()((((()((((()()((()((((((())))(((((()))))()))(()((((((((()(((())())(((())))(()(()((())(((()((()()(((((()((()()(((())()(()))(((((((())(()(((((()))((()((()((()))(())())((((()((((())()(()))(((()(((((((((((((((())(((((((((()))(((()(()()()()((((((()((())()((((((((()(())(((((((((((()(()((())()((()()(()(()()((((()()((())(()((()()(()()((((()(((((((())))((((())(())()(((()()((()()((((()((()(((()((())(((()()()((((()((((()()(()(()((((((((())(()(((((())(()())(((((((()())()(()((((()((())(()()())((((()()(((()((((())(())(()()(((((((((()()))()(((())(()(()((((((())(()()())(()))()()(((()(((()((())(()(((((((()(()(()((()(((((()(()((()(()((((((()((((()()((((()(((()((())(()(()((()()((((()()(())()(())(((())(()((((((((()())(((((((((()(())()((((())))()))()()(((((()()((((((())(()()(((()(()(((((((()(()(((((((())(())((((()((()(())))((((()()())(()))((()())((((()(((((()(()(())(()(()()())(((((()(((((()((((()()((((((((()()))(()((((((())((((())()(()(((()()()(((()(()(())(())(((((()(())())((((())(())(()(((()(((((())((((())())((()(((((((()(((())(()(()))(((((((((()((()((()()(()((((())(((()((())((((())(()(((()(((()(()((((()(((())(()(((()(()()(()(()((()()(()())(())())((()(()(((()(((()(((()()(((((((((()(((((((((()()(((()(((()())((((()(()(((()()()((())((((((((((())(()(((()((((()())((((()((()))(((()()()(((((()(((((((())((()())(()((((())((((((((())(()((()((((((((((()()((()((()()))(((()())()())()(((()())()()(()(()(((((((())()))(())()))())()()((())()((()((((()((()((())(((((()((((((()(())))(()))())(((()))((()()(()(((()))((((())()(((()))))()(()(())()(((((())(()(()(())(())()((()()()((((()(())((()())(()(()))(()(()(()()(())()()(()((())()((()))))()))((()(()()()()((()())(()))())()(()(((((((((())())((()((()((((((())()((((())(((())((()(()()()((())(()((())(((()((((()()((()(()(((((())()))()((((((()))((())(((()()))(((())(())()))(((((((())(())())()(())(((((()))()((()))()(()()((()()()()()())((((((("""
print(input.count('(') - input.count(')'))
| 2,352.666667
| 7,014
| 0.00425
| 6
| 7,058
| 5
| 0.5
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00085
| 7,058
| 3
| 7,015
| 2,352.666667
| 0.004254
| 0
| 0
| 0
| 0
| 0
| 0.991925
| 0.991642
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
2f5e42b76bebf44c3c0870785f21ddcf9c9b8c2a
| 112
|
py
|
Python
|
apps/entity/views/company/__init__.py
|
dy1zan/softwarecapstone
|
c121a2b2d43b72aac19b75c31519711c0ace9c02
|
[
"MIT"
] | null | null | null |
apps/entity/views/company/__init__.py
|
dy1zan/softwarecapstone
|
c121a2b2d43b72aac19b75c31519711c0ace9c02
|
[
"MIT"
] | 16
|
2018-11-10T21:46:40.000Z
|
2018-11-11T15:08:36.000Z
|
apps/entity/views/company/__init__.py
|
dy1zan/softwarecapstone
|
c121a2b2d43b72aac19b75c31519711c0ace9c02
|
[
"MIT"
] | null | null | null |
from .apply import *
from .listing import Listing
from .profile import Profile
from .profile import EditProfile
| 22.4
| 32
| 0.8125
| 15
| 112
| 6.066667
| 0.4
| 0.241758
| 0.373626
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 112
| 4
| 33
| 28
| 0.947917
| 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
| 1
| 0
|
0
| 7
|
2f717452f54e4beba4cff3e7746b0b829bc9196a
| 185
|
py
|
Python
|
Filtering_Server/Front_End/Controllers/__init__.py
|
FullPint/Frequency-Filter-Server
|
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
|
[
"MIT"
] | null | null | null |
Filtering_Server/Front_End/Controllers/__init__.py
|
FullPint/Frequency-Filter-Server
|
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
|
[
"MIT"
] | null | null | null |
Filtering_Server/Front_End/Controllers/__init__.py
|
FullPint/Frequency-Filter-Server
|
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
|
[
"MIT"
] | null | null | null |
from .confirm_controller import get_confirm
from .filtering_controller import filter_view
from .index_controller import get_index, post_index
from .upload_controller import upload_file
| 37
| 51
| 0.881081
| 26
| 185
| 5.923077
| 0.461538
| 0.415584
| 0.246753
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091892
| 185
| 4
| 52
| 46.25
| 0.916667
| 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
| 1
| 0
|
0
| 7
|
2f854abb2fe2e8e6cfca7ee94c0bb5652cfb487b
| 35,902
|
py
|
Python
|
tests/unit/steps/test_vm_group.py
|
mike0615/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 4
|
2019-02-26T05:18:13.000Z
|
2020-07-15T00:34:41.000Z
|
tests/unit/steps/test_vm_group.py
|
nutanix/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 3
|
2021-03-31T18:55:50.000Z
|
2021-04-20T17:13:31.000Z
|
tests/unit/steps/test_vm_group.py
|
mike0615/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 2
|
2020-01-09T02:24:00.000Z
|
2020-11-04T23:09:02.000Z
|
#
# Copyright (c) 2016 Nutanix Inc. All rights reserved.
#
#
import time
import unittest
import mock
from curie.curie_error_pb2 import CurieError
from curie.curie_server_state_pb2 import CurieSettings
from curie.cluster import Cluster
from curie.exception import CurieException, CurieTestException
from curie.node import Node
from curie.scenario import Scenario
from curie import steps
from curie.vm_group import VMGroup
from curie.vm import Vm
from curie.testing import environment
class TestStepsVmGeneric(unittest.TestCase):
def setUp(self):
self.cluster = mock.Mock(spec=Cluster)
self.cluster.name.return_value = "Mock Cluster"
self.vms = [mock.Mock(spec=Vm) for _ in xrange(4)]
self.cluster.find_vms_regex.return_value = self.vms
_nodes = [mock.Mock(spec=Node) for _ in xrange(4)]
self.cluster_metadata = CurieSettings.Cluster()
self.cluster_metadata.cluster_name = "mock_cluster"
self.cluster_metadata.cluster_hypervisor_info.CopyFrom(
CurieSettings.Cluster.ClusterHypervisorInfo())
self.cluster_metadata.cluster_management_server_info.CopyFrom(
CurieSettings.Cluster.ClusterManagementServerInfo())
self.cluster_metadata.cluster_software_info.CopyFrom(
CurieSettings.Cluster.ClusterSoftwareInfo())
for id, node in enumerate(_nodes):
node.node_id.return_value = id
curr_node = self.cluster_metadata.cluster_nodes.add()
curr_node.id = str(id)
self.cluster.metadata.return_value = self.cluster_metadata
self.cluster.nodes.return_value = _nodes
self.cluster.node_count.return_value = len(_nodes)
self.scenario = Scenario(
cluster=self.cluster,
output_directory=environment.test_output_dir(self),
goldimages_directory="/fake/goldimages/directory/")
self.vm_group = VMGroup(self.scenario, "group_0.*[(-!&")
for mock_vm, vm_name in zip(self.vms, self.vm_group.get_vms_names()):
mock_vm.vm_name.return_value = vm_name
self.scenario.vm_groups = {self.vm_group._name: self.vm_group}
def test_CloneFromTemplate_valid(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [None]
self.cluster.import_vm.side_effect = [template_vm]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name())
step()
self.cluster.create_vm.assert_called_once_with(
"/fake/goldimages/directory/", "valid-template",
"__curie_goldimage_%d_valid-template_group_0._-_" % self.scenario.id,
data_disks=(), node_id=0, ram_mb=2048, vcpus=2)
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.disable_ha_vms.call_count, 1)
self.assertEqual(self.cluster.disable_drs_vms.call_count, 1)
self.assertEqual(self.cluster.power_on_vms.call_count, 0)
def test_CloneFromTemplate_enable_ha(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [None]
self.cluster.import_vm.side_effect = [template_vm]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name(),
disable_ha=False)
step()
self.cluster.create_vm.assert_called_once_with(
"/fake/goldimages/directory/", "valid-template",
"__curie_goldimage_%d_valid-template_group_0._-_" % self.scenario.id,
data_disks=(), node_id=0, ram_mb=2048, vcpus=2)
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.disable_ha_vms.call_count, 0)
self.assertEqual(self.cluster.disable_drs_vms.call_count, 1)
self.assertEqual(self.cluster.power_on_vms.call_count, 0)
def test_CloneFromTemplate_enable_drs(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [None]
self.cluster.import_vm.side_effect = [template_vm]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name(),
disable_drs=False)
step()
self.cluster.create_vm.assert_called_once_with(
"/fake/goldimages/directory/", "valid-template",
"__curie_goldimage_%d_valid-template_group_0._-_" % self.scenario.id,
data_disks=(), node_id=0, ram_mb=2048, vcpus=2)
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.disable_ha_vms.call_count, 1)
self.assertEqual(self.cluster.disable_drs_vms.call_count, 0)
self.assertEqual(self.cluster.power_on_vms.call_count, 0)
def test_CloneFromTemplate_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name())
self.assertIsInstance(step, steps.vm_group.CloneFromTemplate)
def test_CloneFromTemplate_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.CloneFromTemplate(self.scenario, "not_a_vm_group")
def test_CloneFromTemplate_missing_goldimages_directory(self):
self.scenario.goldimages_directory = None
step = steps.vm_group.CloneFromTemplate(self.scenario, self.vm_group.name())
with self.assertRaises(CurieTestException) as ar:
step()
self.assertEqual(
str(ar.exception),
"Cause: scenario.goldimages_directory must be set before running "
"vm_group.CloneFromTemplate (value: None)\n\n"
"Impact: The scenario 'None' can not be started successfully until "
"Curie is configured correctly. Other scenarios that deploy goldimages "
"also can not start.\n\n"
"Corrective Action: Please ensure that the 'goldimages_directory' "
"parameter is set correctly in the Scenario object.\n\n"
"Traceback: None")
def test_CloneFromTemplate_power_on(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [None]
self.cluster.import_vm.side_effect = [template_vm]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name(),
power_on=True,
annotate=True)
with mock.patch.object(step, "create_annotation") as mock_annotate:
step()
self.assertEqual(self.cluster.create_vm.call_count, 1)
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.disable_ha_vms.call_count, 1)
self.assertEqual(self.cluster.disable_drs_vms.call_count, 1)
self.assertEqual(self.cluster.power_on_vms.call_count, 1)
self.assertEqual(mock_annotate.call_count, 2)
def test_CloneFromTemplate_already_exist(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [template_vm, template_vm]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name())
step()
self.assertEqual(self.cluster.import_vm.call_count, 0)
def test_CloneFromTemplate_failed_clone(self):
self.vm_group._template = "valid-template"
template_vm = mock.Mock(spec=Vm)
self.cluster.find_vm.side_effect = [None]
self.cluster.import_vm.side_effect = [template_vm]
self.cluster.find_vms_regex.return_value = self.vms[:-1]
step = steps.vm_group.CloneFromTemplate(self.scenario,
self.vm_group.name())
with self.assertRaises(CurieTestException):
step()
def test_RelocateGroupDatastore(self):
datastore_name = "random_datastore"
step = steps.vm_group.RelocateGroupDatastore(
self.scenario, self.vm_group.name(), datastore_name, annotate=True)
with mock.patch.object(step, "create_annotation") as mock_annotate:
step()
self.assertEqual(mock_annotate.call_count, 2)
self.cluster.relocate_vms_datastore.called_once_with(
self.vms, [datastore_name] * len(self.vms))
def test_RelocateGroupDatastore_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.RelocateGroupDatastore(
self.scenario, self.vm_group.name(), "random_datastore", annotate=True)
self.assertIsInstance(step, steps.vm_group.RelocateGroupDatastore)
def test_RelocateGroupDatastore_bad_vm_group(self):
with self.assertRaises(CurieTestException):
steps.vm_group.RelocateGroupDatastore(self.scenario, "NOT_A_VALID_GROUP",
"NOT_A_VALID_DATASTORE")
def test_RelocateGroupDatastore_bad_datastore(self):
self.cluster.relocate_vms_datastore.side_effect = CurieTestException
step = steps.vm_group.RelocateGroupDatastore(self.scenario,
self.vm_group.name(),
"NOT_A_VALID_DATASTORE")
with self.assertRaises(CurieTestException):
step()
def test_MigrateGroup(self):
# Node IDs are just integers. Place one VM per node.
for id, vm in enumerate(self.vms):
vm.node_id.return_value = id
step = steps.vm_group.MigrateGroup(self.scenario, self.vm_group.name(), 0,
1,
annotate=True)
self.assertEqual(
"%s: Migrating VMs from node '0' to node '1'" % self.vm_group.name(),
step.description)
self.cluster.migrate_vms.return_value = [True]
with mock.patch.object(step, "create_annotation") as mock_annotate:
step()
self.assertEqual(mock_annotate.call_count, 2)
self.cluster.migrate_vms.called_once_with(self.vms[0], [1])
def test_MigrateGroup_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.MigrateGroup(
self.scenario, self.vm_group.name(), 0, 1, annotate=True)
self.assertIsInstance(step, steps.vm_group.MigrateGroup)
def test_MigrateGroup_verify_to_node_out_of_bounds(self):
step = steps.vm_group.MigrateGroup(
self.scenario, self.vm_group.name(), 0, 4, annotate=True)
with self.assertRaises(CurieTestException) as ar:
step.verify()
self.assertIn(
"Cause: Invalid 'to_node' index '4'. Cluster contains 4 nodes (max "
"index is 3).\n\n"
"Impact: The scenario 'None' can not be used with cluster 'Mock "
"Cluster' because the vm_group.MigrateGroup step's 'to_node' "
"parameter is either larger or smaller than the number of nodes in the "
"cluster (4).\n\n"
"Corrective Action: Please retry the scenario using a cluster with a "
"compatible number of nodes. If you are the author of the scenario, "
"please check the syntax of the vm_group.MigrateGroup step to make it "
"compatible with clusters of this size.\n\n"
"Traceback (most recent call last):\n",
str(ar.exception)
)
def test_MigrateGroup_verify_from_node_out_of_bounds(self):
step = steps.vm_group.MigrateGroup(
self.scenario, self.vm_group.name(), 4, 0, annotate=True)
with self.assertRaises(CurieTestException) as ar:
step.verify()
self.assertIn(
"Cause: Invalid 'from_node' index '4'. Cluster contains 4 nodes (max "
"index is 3).\n\n"
"Impact: The scenario 'None' can not be used with cluster 'Mock "
"Cluster' because the vm_group.MigrateGroup step's 'from_node' "
"parameter is either larger or smaller than the number of nodes in the "
"cluster (4).\n\n"
"Corrective Action: Please retry the scenario using a cluster with a "
"compatible number of nodes. If you are the author of the scenario, "
"please check the syntax of the vm_group.MigrateGroup step to make it "
"compatible with clusters of this size.\n\n"
"Traceback (most recent call last):\n",
str(ar.exception)
)
def test_MigrateGroup_bad_vmgroup(self):
with self.assertRaises(CurieTestException):
steps.vm_group.MigrateGroup(self.scenario, "not_a_vm_group", 0, 1)
def test_MigrateGroup_same_node(self):
# Node IDs are just integers. Place one VM per node.
for id, vm in enumerate(self.vms):
vm.node_id.return_value = id
step = steps.vm_group.MigrateGroup(self.scenario, self.vm_group.name(), 0,
0)
self.cluster.migrate_vms.return_value = [True]
step()
self.cluster.migrate_vms.called_once_with(self.vms[0], [0])
def test_CreatePeriodicSnapshots_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.CreatePeriodicSnapshots(
self.scenario, self.vm_group.name(),
num_snapshots=12, interval_minutes=60)
self.assertIsInstance(step, steps.vm_group.CreatePeriodicSnapshots)
def test_create_periodic_snapshots_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.CreatePeriodicSnapshots(
self.scenario, "not_a_vm_group", num_snapshots=12, interval_minutes=60)
@mock.patch.object(steps.test.Wait, "_run")
def test_create_periodic_snapshots(self, Wait_mock):
self.cluster.snapshot_vms.return_value = None
step = steps.vm_group.CreatePeriodicSnapshots(self.scenario,
self.vm_group.name(),
num_snapshots=12,
interval_minutes=60)
Wait_mock.return_value = 3600
with mock.patch.object(steps.vm_group.log,
"warning",
wraps=steps.vm_group.log.warning) as mock_warning:
with mock.patch.object(step,
"create_annotation") as mock_annotate:
step()
self.assertEqual(self.cluster.snapshot_vms.call_count, 12)
self.assertEqual(Wait_mock.call_count, 11)
self.assertEqual(mock_annotate.call_count, 12)
self.assertEqual(mock_warning.call_count, 0)
def test_create_periodic_snapshots_async(self):
start_time_secs = time.time()
max_delay_secs = 60
should_return = False
clean_exit = []
def function_that_must_be_called_asynchronously():
while time.time() - start_time_secs < max_delay_secs:
if should_return:
clean_exit.append(True)
break
else:
time.sleep(0.1) # 100 ms
else:
raise RuntimeError("Test function ran past its maximum delay; Was it "
"called asynchronously?")
step = steps.vm_group.CreatePeriodicSnapshots(self.scenario,
self.vm_group.name(),
num_snapshots=12,
interval_minutes=60,
async=True)
with mock.patch.object(step, "_periodic_snapshots_func") as psf:
psf.side_effect = function_that_must_be_called_asynchronously
step() # If called incorrectly, blocks until a RuntimeError is raised.
should_return = True # Request that the function exit cleanly.
while time.time() - start_time_secs < max_delay_secs:
if clean_exit:
break
else:
self.fail("Test function failed to exit cleanly within the timeout")
psf.assert_called_once_with()
@mock.patch.object(steps.test.Wait, "_run")
def test_create_periodic_snapshots_should_stop(self, Wait_mock):
self.cluster.snapshot_vms.return_value = None
step = steps.vm_group.CreatePeriodicSnapshots(self.scenario,
self.vm_group.name(),
num_snapshots=12,
interval_minutes=60)
Wait_mock.return_value = 3600
with mock.patch.object(self.scenario,
"should_stop") as mock_should_stop:
# First two calls to should_stop return False; Third returns True.
mock_should_stop.side_effect = [False, False, True]
with mock.patch.object(steps.vm_group.log,
"warning",
wraps=steps.vm_group.log.warning) as mock_warning:
with mock.patch.object(step, "create_annotation") as mock_annotate:
step()
self.assertEqual(self.cluster.snapshot_vms.call_count, 2)
self.assertEqual(Wait_mock.call_count, 2)
self.assertEqual(mock_annotate.call_count, 2)
self.assertEqual(mock_warning.call_count, 1)
def test_PowerOff_valid(self):
step = steps.vm_group.PowerOff(self.scenario, self.vm_group.name())
vms = step()
self.assertEqual(vms, self.vm_group.get_vms())
self.cluster.power_off_vms.assert_called_once_with(vms)
def test_PowerOff_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.PowerOff(self.scenario, self.vm_group.name())
self.assertIsInstance(step, steps.vm_group.PowerOff)
def test_PowerOff_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.PowerOff(self.scenario, "not_a_vm_group")
def test_PowerOff_missing_vms(self):
step = steps.vm_group.PowerOff(self.scenario, self.vm_group.name())
self.cluster.find_vms_regex.return_value = []
with self.assertRaises(CurieTestException):
step()
def test_PowerOn_valid(self):
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name())
vms = step()
self.assertEqual(vms, self.vm_group.get_vms())
self.cluster.power_on_vms.assert_called_once_with(vms,
max_parallel_tasks=100)
def test_PowerOn_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name())
self.assertIsInstance(step, steps.vm_group.PowerOn)
def test_PowerOn_max_parallel(self):
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name(),
max_concurrent=8)
vms = step()
self.assertEqual(vms, self.vm_group.get_vms())
self.cluster.power_on_vms.assert_called_once_with(vms,
max_parallel_tasks=8)
def test_PowerOn_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.PowerOn(self.scenario, "not_a_vm_group")
def test_PowerOn_missing_vms(self):
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name())
self.cluster.find_vms_regex.return_value = []
with self.assertRaises(CurieTestException):
step()
def test_PowerOn_cluster_power_on_failure(self):
self.cluster.power_on_vms.side_effect = ValueError("OH NOES")
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name())
with mock.patch.object(self.vm_group, "get_vms",
wraps=self.vm_group.get_vms):
with self.assertRaises(CurieTestException) as ar:
step()
self.assertIn(
"Cause: An error occurred while powering on VM(s) in VM Group "
"'%s'.\n\n"
"Impact: One or more VMs either did not transition to a powered on "
"state, or did not receive an IP address.\n\n"
"Corrective Action: Please verify that the cluster has enough "
"available resources to start all of the VMs. Please also check the "
"cluster management software for any failed VM power on tasks. For "
"information about which VMs failed to power on correctly, please "
"check curie.debug.log.\n\n"
"Traceback (most recent call last):\n" % self.vm_group.name(),
str(ar.exception)
)
self.assertIn("ValueError: OH NOES", ar.exception.traceback)
@mock.patch("curie.util.time")
def test_PowerOn_inaccessible(self, mock_time):
now = time.time()
mock_time.time.side_effect = lambda: mock_time.time.call_count + now
mock_time.sleep.return_value = 0
for mock_vm in self.vms:
mock_vm.is_powered_on.return_value = True
mock_vm.vm_ip.return_value = "169.254.0.1"
mock_vm.is_accessible.return_value = False
step = steps.vm_group.PowerOn(self.scenario, self.vm_group.name())
with mock.patch.object(self.vm_group, "get_vms",
wraps=self.vm_group.get_vms) as mock_get_vms:
with self.assertRaises(CurieTestException) as ar:
step()
self.assertEqual(122, mock_get_vms.call_count)
self.assertIn(
"Cause: A timeout occurred waiting for VM(s) in VM Group '%s' to "
"become responsive within 120 seconds.\n\n"
"Impact: The VM(s) are not responding due to a network connectivity "
"issue, or because of an unsuccessful startup (boot).\n\n"
"Corrective Action: Please check the network connectivity to the VMs "
"on the cluster, and that the VMs received IP addresses in the "
"expected IP subnet. For information about which VMs were "
"unresponsive and for details about the assigned IP addresses, please "
"check curie.debug.log.\n\n"
"Traceback (most recent call last):\n" % self.vm_group.name(),
str(ar.exception)
)
def test_WaitForPowerOn_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.WaitForPowerOn(self.scenario, "not_a_vm_group")
@mock.patch("curie.util.time")
def test_WaitForPowerOn_inaccessible(self, mock_time):
now = time.time()
mock_time.time.side_effect = lambda: mock_time.time.call_count + now
mock_time.sleep.return_value = 0
for mock_vm in self.vms:
mock_vm.is_powered_on.return_value = True
mock_vm.vm_ip.return_value = "169.254.0.1"
mock_vm.is_accessible.return_value = False
step = steps.vm_group.WaitForPowerOn(self.scenario, self.vm_group.name())
with mock.patch.object(self.vm_group, "get_vms",
wraps=self.vm_group.get_vms) as mock_get_vms:
with self.assertRaises(CurieTestException) as ar:
step()
self.assertEqual(601, mock_get_vms.call_count)
self.assertIn(
"Cause: A timeout occurred waiting for VM(s) in VM Group '%s' to "
"become responsive within 600 seconds.\n\n"
"Impact: The VM(s) are not responding due to a network connectivity "
"issue, or because of an unsuccessful startup (boot).\n\n"
"Corrective Action: Please check the network connectivity to the VMs "
"on the cluster, and that the VMs received IP addresses in the "
"expected IP subnet. For information about which VMs were "
"unresponsive and for details about the assigned IP addresses, please "
"check curie.debug.log.\n\n"
"Traceback (most recent call last):\n" % self.vm_group.name(),
str(ar.exception)
)
def test_Grow_count_per_node(self):
for mock_vm in self.vms:
mock_vm.is_powered_on.return_value = False
self.vm_group._count_per_node = 1
new_vms = [mock.Mock(spec=Vm) for _ in xrange(4)]
self.vm_group.lookup_vms_by_name = mock.Mock(return_value=new_vms)
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=2, annotate=True)
with mock.patch.object(step, "create_annotation") as mock_annotate:
step()
self.assertEqual(mock_annotate.call_count, 2)
mock_annotate.assert_has_calls([
mock.call("%s: Growing VM count from %d to %d" % (
self.vm_group.name(),
1 * self.cluster.node_count(),
2 * self.cluster.node_count())),
mock.call("%s: Finished growing VM group" % self.vm_group.name())
])
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.power_on_vms.call_count, 0)
def test_Grow_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=2, annotate=True)
self.assertIsInstance(step, steps.vm_group.Grow)
def test_Grow_count_per_cluster(self):
for mock_vm in self.vms:
mock_vm.is_powered_on.return_value = False
self.vm_group._count_per_cluster = 4
new_vms = [mock.Mock(spec=Vm) for _ in xrange(4)]
self.vm_group.lookup_vms_by_name = mock.Mock(return_value=new_vms)
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=8)
step()
self.assertEqual(self.cluster.clone_vms.call_count, 1)
self.assertEqual(self.cluster.power_on_vms.call_count, 0)
def test_Grow_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.Grow(self.scenario, "not_a_vm_group", count_per_node=1)
def test_Grow_count_per_node_and_count_per_cluster_None(self):
with self.assertRaises(CurieTestException):
steps.vm_group.Grow(self.scenario, self.vm_group.name())
def test_Grow_count_per_node_and_count_per_cluster_not_None(self):
with self.assertRaises(CurieTestException):
steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=1, count_per_cluster=4)
def test_Grow_verify_count_per_node_same_as_existing(self):
self.vm_group._count_per_node = 1
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=1)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_verify_count_per_cluster_same_as_existing(self):
self.vm_group._count_per_cluster = 4
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=4)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_verify_count_per_node_less_than_existing(self):
self.vm_group._count_per_node = 2
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=1)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_verify_count_per_cluster_less_than_existing(self):
self.vm_group._count_per_cluster = 5
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=4)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_count_mixed_starting_with_count_per_cluster(self):
self.vm_group._count_per_cluster = 1
with mock.patch("curie.steps."
"vm_group.ResetGroupPlacement") as mock_rgp:
new_vms = [mock.Mock(spec=Vm) for _ in xrange(3)]
self.vm_group.lookup_vms_by_name = mock.Mock(return_value=new_vms)
steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=1)()
self.assertEqual(mock_rgp.call_count, 1)
def test_Grow_count_mixed_starting_with_count_per_node(self):
self.vm_group._count_per_node = 1
with mock.patch("curie.steps."
"vm_group.ResetGroupPlacement") as mock_rgp:
new_vms = [mock.Mock(spec=Vm) for _ in xrange(2)]
self.vm_group.lookup_vms_by_name = mock.Mock(return_value=new_vms)
steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=6)()
self.assertEqual(mock_rgp.call_count, 1)
def test_Grow_verify_count_mixed_count_per_node_less_than_existing(self):
self.vm_group._count_per_node = 2
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=4)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_verify_count_mixed_count_per_cluster_less_than_existing(self):
self.vm_group._count_per_cluster = 8
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_node=1)
with self.assertRaises(CurieTestException):
step.verify()
def test_Grow_power_on(self):
for mock_vm in self.vms:
mock_vm.is_powered_on.return_value = True
self.vm_group._count_per_cluster = 4
new_vms = [mock.Mock(spec=Vm) for _ in xrange(4)]
self.vm_group.lookup_vms_by_name = mock.Mock(return_value=new_vms)
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=8)
step()
self.assertEqual(self.cluster.power_on_vms.call_count, 1)
def test_Grow_vms_missing(self):
self.cluster.find_vms_regex.return_value = []
self.vm_group._count_per_cluster = 4
step = steps.vm_group.Grow(self.scenario, self.vm_group.name(),
count_per_cluster=8)
with self.assertRaises(CurieTestException):
step()
@mock.patch("curie.steps.vm_group.time")
def test_RunCommand_valid(self, time_mock):
fake_time = 1467215634.0
time_mock.time.return_value = fake_time
for vm in self.vms:
vm.execute_sync.return_value = (0, "stdout", "stderr")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps")
with mock.patch.object(steps.vm_group.log,
"warning",
wraps=steps.vm_group.log.warning) as mock_warning:
step()
self.assertEqual(mock_warning.call_count, 0)
for vm in self.vms:
cmd_id = "%s_ps_%d" % (vm.vm_name(), fake_time * 1e6)
vm.execute_sync.assert_called_once_with(cmd_id, "ps", 120,
user="nutanix")
def test_RunCommand_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps")
self.assertIsInstance(step, steps.vm_group.RunCommand)
def test_RunCommand_fail_on_error(self):
for vm in self.vms:
vm.execute_sync.return_value = (1, "stdout", "stderr")
vm.execute_sync.side_effect = CurieException(CurieError.kInternalError,
"Message")
step = steps.vm_group.RunCommand(self.scenario, self.vm_group._name, "ps")
with self.assertRaises(CurieException):
step()
def test_RunCommand_invalid_vm_group_name(self):
with self.assertRaises(CurieTestException):
steps.vm_group.RunCommand(self.scenario, "ps", "not_a_vm_group")
@mock.patch("curie.steps.vm_group.time")
def test_RunCommand_fail_on_error_false(self, time_mock):
fake_time = 1467215634.0
time_mock.time.return_value = fake_time
for vm in self.vms:
vm.execute_sync.return_value = (1, "stdout", "stderr")
vm.execute_sync.side_effect = CurieException(CurieError.kInternalError,
"Message")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps",
fail_on_error=False)
with mock.patch.object(steps.vm_group.log,
"warning",
wraps=steps.vm_group.log.warning) as mock_warning:
step()
self.assertEqual(mock_warning.call_count, len(self.vms))
for vm in self.vms:
cmd_id = "%s_ps_%d" % (vm.vm_name(), fake_time * 1e6)
vm.execute_sync.assert_called_once_with(cmd_id, "ps", 120,
user="nutanix")
def test_RunCommand_fail_on_error_status_code(self):
for vm in self.vms:
vm.execute_sync.return_value = (1, "stdout", "stderr")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps")
with self.assertRaises(CurieTestException):
step()
@mock.patch("curie.steps.vm_group.time")
def test_RunCommand_fail_on_error_false_status_code(self, time_mock):
fake_time = 1467215634.0
time_mock.time.return_value = fake_time
for vm in self.vms:
vm.execute_sync.return_value = (1, "stdout", "stderr")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps",
fail_on_error=False)
with mock.patch.object(steps.vm_group.log,
"warning",
wraps=steps.vm_group.log.warning) as mock_warning:
step()
self.assertEqual(mock_warning.call_count, len(self.vms))
for vm in self.vms:
cmd_id = "%s_ps_%d" % (vm.vm_name(), fake_time * 1e6)
vm.execute_sync.assert_called_once_with(cmd_id, "ps", 120,
user="nutanix")
def test_RunCommand_missing_vms(self):
self.cluster.find_vms_regex.return_value = []
step = steps.vm_group.RunCommand(self.scenario, self.vm_group._name, "ps")
with self.assertRaises(CurieTestException):
step()
@mock.patch("curie.steps.vm_group.time")
def test_RunCommand_user(self, time_mock):
fake_time = 1467215634.0
time_mock.time.return_value = fake_time
for vm in self.vms:
vm.execute_sync.return_value = (0, "stdout", "stderr")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps",
user="root")
step()
for vm in self.vms:
cmd_id = "%s_ps_%d" % (vm.vm_name(), fake_time * 1e6)
vm.execute_sync.assert_called_once_with(cmd_id, "ps", 120, user="root")
@mock.patch("curie.steps.vm_group.time")
def test_RunCommand_timeout_secs(self, time_mock):
fake_time = 1467215634.0
time_mock.time.return_value = fake_time
for vm in self.vms:
vm.execute_sync.return_value = (0, "stdout", "stderr")
self.cluster.find_vms_regex.return_value = self.vms
step = steps.vm_group.RunCommand(self.scenario, self.vm_group.name(), "ps",
user="nutanix", timeout_secs=300)
step()
for vm in self.vms:
cmd_id = "%s_ps_%d" % (vm.vm_name(), fake_time * 1e6)
vm.execute_sync.assert_called_once_with(cmd_id, "ps", 300, user="nutanix")
def test_ResetGroupPlacement_default(self):
# Node IDs are just integers. Place one VM per node, but increment the
# placement id such that the VM originally supposed to be on node 0 is on
# 1, and 1 on 2, etc. until the vm->node_id wraps.
for id, vm in enumerate(self.vms):
vm.node_id.return_value = (id + 1) % len(self.cluster.nodes())
step = steps.vm_group.ResetGroupPlacement(self.scenario,
self.vm_group.name())
step()
# We expect to see the original list of VMs (4), with one per node.
self.cluster.migrate_vms.assert_called_once_with(
self.vms, self.cluster.nodes())
def test_ResetGroupPlacement_init_cluster_None(self):
self.scenario.cluster = None
step = steps.vm_group.ResetGroupPlacement(self.scenario,
self.vm_group.name())
self.assertIsInstance(step, steps.vm_group.ResetGroupPlacement)
def test_ResetGroupPlacement_no_movement(self):
# Node IDs are just integers. Place one VM per node.
for id, vm in enumerate(self.vms):
vm.node_id.return_value = id
step = steps.vm_group.ResetGroupPlacement(self.scenario,
self.vm_group.name())
step()
# No VMs should have to be moved, so lists will be empty.
self.cluster.migrate_vms.assert_called_once_with([], [])
def test_ResetGroupPlacement_bad_vm_group(self):
with self.assertRaises(CurieTestException):
steps.vm_group.ResetGroupPlacement(self.scenario, "NOT_A_VALID_GROUP")
| 45.96927
| 80
| 0.673667
| 4,782
| 35,902
| 4.798829
| 0.07821
| 0.066803
| 0.047455
| 0.041834
| 0.824691
| 0.795843
| 0.760023
| 0.743638
| 0.721239
| 0.710476
| 0
| 0.01077
| 0.226728
| 35,902
| 780
| 81
| 46.028205
| 0.815827
| 0.019275
| 0
| 0.637283
| 0
| 0
| 0.133663
| 0.018668
| 0
| 0
| 0
| 0
| 0.157514
| 0
| null | null | 0
| 0.027457
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
85e881272a594e9c6d50b63cb3fe716e99d2a040
| 2,266
|
py
|
Python
|
backend/migrations/versions/a4d289b9abd3_.py
|
davidoesch/platform
|
1eb6f98568cab82e28bd5350beab2042b22d99ed
|
[
"MIT"
] | null | null | null |
backend/migrations/versions/a4d289b9abd3_.py
|
davidoesch/platform
|
1eb6f98568cab82e28bd5350beab2042b22d99ed
|
[
"MIT"
] | null | null | null |
backend/migrations/versions/a4d289b9abd3_.py
|
davidoesch/platform
|
1eb6f98568cab82e28bd5350beab2042b22d99ed
|
[
"MIT"
] | null | null | null |
"""empty message
Revision ID: a4d289b9abd3
Revises: 16080f1821df
Create Date: 2019-04-10 18:43:26.107145
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a4d289b9abd3'
down_revision = '16080f1821df'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('license', 'name',
existing_type=sa.VARCHAR(length=256),
nullable=False)
op.alter_column('license', 'title',
existing_type=sa.VARCHAR(length=256),
nullable=False)
op.alter_column('organisation', 'name',
existing_type=sa.VARCHAR(length=128),
nullable=False)
op.alter_column('project', 'title',
existing_type=sa.VARCHAR(length=64),
nullable=False)
op.alter_column('rendering', 'title',
existing_type=sa.VARCHAR(length=64),
nullable=False)
op.alter_column('source', 'title',
existing_type=sa.VARCHAR(length=256),
nullable=False)
op.alter_column('user', 'username',
existing_type=sa.VARCHAR(length=16),
nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('user', 'username',
existing_type=sa.VARCHAR(length=16),
nullable=True)
op.alter_column('source', 'title',
existing_type=sa.VARCHAR(length=256),
nullable=True)
op.alter_column('rendering', 'title',
existing_type=sa.VARCHAR(length=64),
nullable=True)
op.alter_column('project', 'title',
existing_type=sa.VARCHAR(length=64),
nullable=True)
op.alter_column('organisation', 'name',
existing_type=sa.VARCHAR(length=128),
nullable=True)
op.alter_column('license', 'title',
existing_type=sa.VARCHAR(length=256),
nullable=True)
op.alter_column('license', 'name',
existing_type=sa.VARCHAR(length=256),
nullable=True)
# ### end Alembic commands ###
| 32.84058
| 65
| 0.59444
| 246
| 2,266
| 5.349594
| 0.256098
| 0.074468
| 0.138298
| 0.223404
| 0.779635
| 0.772796
| 0.769757
| 0.769757
| 0.766717
| 0.766717
| 0
| 0.052632
| 0.278906
| 2,266
| 68
| 66
| 33.323529
| 0.752754
| 0.130185
| 0
| 0.84
| 0
| 0
| 0.103413
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04
| false
| 0
| 0.04
| 0
| 0.08
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 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
| 7
|
c0e4024ffd4b3e14462577a212313731f0fc2ca7
| 14,419
|
py
|
Python
|
test/test_npu/test_network_ops/test_batchnorm_backward.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | 1
|
2021-12-02T03:07:35.000Z
|
2021-12-02T03:07:35.000Z
|
test/test_npu/test_network_ops/test_batchnorm_backward.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | 1
|
2021-11-12T07:23:03.000Z
|
2021-11-12T08:28:13.000Z
|
test/test_npu/test_network_ops/test_batchnorm_backward.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import torch
import numpy as np
import sys
import copy
from common_utils import TestCase, run_tests
from common_device_type import dtypes, instantiate_device_type_tests
from util_test import create_common_tensor
class TestBatchNorm(TestCase):
def cpu_op_exec(self, input1, bn):
input1 = input1.float()
input1.requires_grad_(True)
bn.requires_grad_(True)
# get forward results
output = bn(input1)
running_mean = bn.running_mean
running_var = bn.running_var
# get backward results
output.backward(torch.ones_like(output))
input_grad = input1.grad
weight_grad = bn.weight.grad
bias_grad = bn.bias.grad
# results to numpy
output = output.detach().numpy()
running_mean = running_mean.detach().numpy()
running_var = running_var.detach().numpy()
input_grad = input_grad.detach().numpy()
weight_grad = weight_grad.detach().numpy()
bias_grad = bias_grad.detach().numpy()
return output, running_mean, running_var, input_grad, weight_grad, bias_grad
def npu_op_exec(self, input1, bn):
input1.requires_grad_(True)
bn.requires_grad_(True)
# get forward results
output = bn(input1)
running_mean = bn.running_mean
running_var = bn.running_var
# get backward results
output.backward(torch.ones_like(output))
input_grad = input1.grad
weight_grad = bn.weight.grad
bias_grad = bn.bias.grad
# results to numpy
output = output.detach().cpu().float().numpy()
running_mean = running_mean.detach().cpu().float().numpy()
running_var = running_var.detach().cpu().float().numpy()
input_grad = input_grad.detach().cpu().float().numpy()
weight_grad = weight_grad.detach().cpu().float().numpy()
bias_grad = bias_grad.detach().cpu().float().numpy()
return output, running_mean, running_var, input_grad, weight_grad, bias_grad
def test_BatchNorm1D_float32(self, device):
format_list = [-1]
shape_list = [[256, 672], [58, 28, 16]]
shape_format = [
[np.float32, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn1d = torch.nn.BatchNorm1d(dim_c)
cpu_bn1d.weight.data = weight
cpu_bn1d.bias.data = bias
cpu_bn1d.running_mean.data = running_mean
cpu_bn1d.running_var.data = running_var
npu_bn1d = copy.deepcopy(cpu_bn1d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn1d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn1d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-2)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
def test_BatchNorm1D_float16(self, device):
format_list = [-1]
shape_list = [[256, 672], [58, 28, 16]]
shape_format = [
[np.float16, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn1d = torch.nn.BatchNorm1d(dim_c)
cpu_bn1d.weight.data = weight
cpu_bn1d.bias.data = bias
cpu_bn1d.running_mean.data = running_mean
cpu_bn1d.running_var.data = running_var
npu_bn1d = copy.deepcopy(cpu_bn1d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn1d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn1d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output, 1e-3)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-2)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
def test_BatchNorm2D_float32(self, device):
format_list = [-1]
shape_list = [[256, 672, 7, 7], [1024, 58, 28, 28]]
shape_format = [
[np.float32, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn2d = torch.nn.BatchNorm2d(dim_c)
cpu_bn2d.weight.data = weight
cpu_bn2d.bias.data = bias
cpu_bn2d.running_mean.data = running_mean
cpu_bn2d.running_var.data = running_var
npu_bn2d = copy.deepcopy(cpu_bn2d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn2d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn2d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-2)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
def test_BatchNorm2D_float16(self, device):
format_list = [-1]
shape_list = [[256, 672, 7, 7], [1024, 58, 28, 28]]
shape_format = [
[np.float16, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn2d = torch.nn.BatchNorm2d(dim_c)
cpu_bn2d.weight.data = weight
cpu_bn2d.bias.data = bias
cpu_bn2d.running_mean.data = running_mean
cpu_bn2d.running_var.data = running_var
npu_bn2d = copy.deepcopy(cpu_bn2d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn2d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn2d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output, 1e-3)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-1)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
def test_BatchNorm3D_float32(self, device):
format_list = [-1]
shape_list = [[8, 512, 4, 28, 28], [8, 256, 8, 56, 56]]
shape_format = [
[np.float32, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn3d = torch.nn.BatchNorm3d(dim_c)
cpu_bn3d.weight.data = weight
cpu_bn3d.bias.data = bias
cpu_bn3d.running_mean.data = running_mean
cpu_bn3d.running_var.data = running_var
npu_bn3d = copy.deepcopy(cpu_bn3d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn3d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn3d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-2)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
def test_BatchNorm3D_float16(self, device):
format_list = [-1]
shape_list = [[8, 512, 4, 28, 28], [8, 256, 8, 56, 56]]
shape_format = [
[np.float16, i, j] for i in format_list for j in shape_list
]
for item in shape_format:
# create inputs and params
cpu_input1, npu_input1 = create_common_tensor(item, -1, 1)
dim_c = item[2][1]
params_item = [np.float32, -1, [dim_c]]
weight, _ = create_common_tensor(params_item, -1, 1)
bias, _ = create_common_tensor(params_item, -1, 1)
running_mean, _ = create_common_tensor(params_item, -1, 1)
running_var, _ = create_common_tensor(params_item, -1, 1)
# create BatchNorm2D
cpu_bn3d = torch.nn.BatchNorm3d(dim_c)
cpu_bn3d.weight.data = weight
cpu_bn3d.bias.data = bias
cpu_bn3d.running_mean.data = running_mean
cpu_bn3d.running_var.data = running_var
npu_bn3d = copy.deepcopy(cpu_bn3d).to("npu")
# run exec
cpu_output, cpu_running_mean, cpu_running_var, cpu_input_grad, cpu_weight_grad, cpu_bias_grad \
= self.cpu_op_exec(cpu_input1, cpu_bn3d)
npu_output, npu_running_mean, npu_running_var, npu_input_grad, npu_weight_grad, npu_bias_grad \
= self.npu_op_exec(npu_input1, npu_bn3d)
# comparison results
self.assertRtolEqual(cpu_output, npu_output, 1e-3)
self.assertRtolEqual(cpu_running_mean, npu_running_mean)
self.assertRtolEqual(cpu_running_var, npu_running_var)
self.assertRtolEqual(cpu_input_grad, npu_input_grad)
self.assertRtolEqual(cpu_weight_grad, npu_weight_grad, 1e-2)
self.assertRtolEqual(cpu_bias_grad, npu_bias_grad)
instantiate_device_type_tests(TestBatchNorm, globals(), except_for="cpu")
if __name__ == "__main__":
run_tests()
| 44.503086
| 107
| 0.613635
| 1,826
| 14,419
| 4.482475
| 0.084337
| 0.069884
| 0.096762
| 0.070373
| 0.905925
| 0.897862
| 0.855834
| 0.855834
| 0.854123
| 0.854123
| 0
| 0.034377
| 0.301963
| 14,419
| 323
| 108
| 44.640867
| 0.778838
| 0.077814
| 0
| 0.827434
| 0
| 0
| 0.002188
| 0
| 0
| 0
| 0
| 0
| 0.159292
| 1
| 0.035398
| false
| 0
| 0.030973
| 0
| 0.079646
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
23871b76de35f1fcbe120ad686a1c4288c493bba
| 1,529
|
py
|
Python
|
tests/similarities/test_cka.py
|
babylonhealth/simba
|
b0124281c0efd59b088520e28add36d1038bce3b
|
[
"Apache-2.0"
] | 18
|
2019-11-05T10:30:33.000Z
|
2021-06-04T00:57:38.000Z
|
tests/similarities/test_cka.py
|
babylonhealth/simba
|
b0124281c0efd59b088520e28add36d1038bce3b
|
[
"Apache-2.0"
] | null | null | null |
tests/similarities/test_cka.py
|
babylonhealth/simba
|
b0124281c0efd59b088520e28add36d1038bce3b
|
[
"Apache-2.0"
] | 2
|
2020-06-27T17:44:27.000Z
|
2021-01-19T00:32:18.000Z
|
import numpy as np
from simba.similarities import dcorr, cka_linear, cka_gaussian
def test_dcorr():
# Generate correlated and uncorrelated multivariate samples.
samples = np.random.multivariate_normal(
mean=np.zeros(7),
cov=np.ones((7, 7)),
size=10
)
x = samples[:, :5].T
y1 = samples[:, 5:].T
y2 = np.random.multivariate_normal(
mean=np.zeros(6),
cov=np.ones((6, 6)),
size=10
).T
# Score for correlated vectors should be higher.
assert dcorr(x, y1) > dcorr(x, y2)
def test_cka_linear():
# Generate correlated and uncorrelated multivariate samples.
samples = np.random.multivariate_normal(
mean=np.zeros(7),
cov=np.ones((7, 7)),
size=10
)
x = samples[:, :5].T
y1 = samples[:, 5:].T
y2 = np.random.multivariate_normal(
mean=np.zeros(6),
cov=np.ones((6, 6)),
size=10
).T
# Score for correlated vectors should be higher.
assert cka_linear(x, y1) > cka_linear(x, y2)
def test_cka_gaussian():
# Generate correlated and uncorrelated multivariate samples.
samples = np.random.multivariate_normal(
mean=np.zeros(7),
cov=np.ones((7, 7)),
size=10
)
x = samples[:, :5].T
y1 = samples[:, 5:].T
y2 = np.random.multivariate_normal(
mean=np.zeros(6),
cov=np.ones((6, 6)),
size=10
).T
# Score for correlated vectors should be higher.
assert cka_gaussian(x, y1) > cka_gaussian(x, y2)
| 25.065574
| 64
| 0.596468
| 211
| 1,529
| 4.241706
| 0.194313
| 0.053631
| 0.134078
| 0.174302
| 0.83352
| 0.804469
| 0.804469
| 0.804469
| 0.804469
| 0.804469
| 0
| 0.043011
| 0.270111
| 1,529
| 60
| 65
| 25.483333
| 0.758961
| 0.207325
| 0
| 0.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 1
| 0.068182
| false
| 0
| 0.045455
| 0
| 0.113636
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
239ef295297bdfa8f87645c458e5077ab067d848
| 115
|
py
|
Python
|
conda_forge_automerge_action/tests/test_only_bot.py
|
h-vetinari/automerge-action
|
c82d81aa4b96a86b1767fbdb1d82aa29d67044b2
|
[
"MIT",
"BSD-3-Clause"
] | 1
|
2021-05-25T16:47:57.000Z
|
2021-05-25T16:47:57.000Z
|
conda_forge_automerge_action/tests/test_only_bot.py
|
h-vetinari/automerge-action
|
c82d81aa4b96a86b1767fbdb1d82aa29d67044b2
|
[
"MIT",
"BSD-3-Clause"
] | 23
|
2020-01-14T14:06:13.000Z
|
2020-05-17T12:13:21.000Z
|
conda_forge_tick_action/tests/test_only_bot.py
|
regro/cf-autotick-bot-action
|
345b92bb849a2cf57f2141ed9403c9596fe37c33
|
[
"MIT",
"BSD-3-Clause"
] | 2
|
2020-06-11T01:11:10.000Z
|
2022-02-09T00:09:11.000Z
|
from ..automerge import ALLOWED_USERS
def test_only_bot():
assert ALLOWED_USERS == ['regro-cf-autotick-bot']
| 19.166667
| 53
| 0.73913
| 16
| 115
| 5.0625
| 0.8125
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13913
| 115
| 5
| 54
| 23
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0.182609
| 0.182609
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
23a0739befd922fba3d22b4e9661dd4d54d2c0c0
| 207
|
py
|
Python
|
python_files/Student.py
|
KJHJason/App-Development-Project
|
6fb027055ba0d1b469721aae46aa61f7bbd15f74
|
[
"MIT"
] | 3
|
2022-02-13T11:07:01.000Z
|
2022-02-22T15:27:37.000Z
|
python_files/Student.py
|
nekoney/App-Development-Project
|
1563f14bf9f85eb21eaea874a13c6397234d6b95
|
[
"MIT"
] | null | null | null |
python_files/Student.py
|
nekoney/App-Development-Project
|
1563f14bf9f85eb21eaea874a13c6397234d6b95
|
[
"MIT"
] | 1
|
2022-03-01T07:52:24.000Z
|
2022-03-01T07:52:24.000Z
|
from .Common import Common
# Done by Jason
class Student(Common):
def __init__(self, user_id, username, email, password):
super().__init__(user_id, username, email, password, "Student", "Good")
| 29.571429
| 79
| 0.705314
| 27
| 207
| 5.037037
| 0.666667
| 0.088235
| 0.205882
| 0.279412
| 0.397059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169082
| 207
| 7
| 79
| 29.571429
| 0.790698
| 0.062802
| 0
| 0
| 0
| 0
| 0.056995
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.5
| 0.25
| 0
| 0.75
| 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
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
f1a55d6a4f1f8066ae85876e3b71e75d8b6ec8a1
| 167
|
py
|
Python
|
SBaaS_isotopomer/stage01_isotopomer_peakData_execute.py
|
dmccloskey/SBaaS_isotopomer
|
b669abd6e41034739a2c53d855005753e658c436
|
[
"MIT"
] | null | null | null |
SBaaS_isotopomer/stage01_isotopomer_peakData_execute.py
|
dmccloskey/SBaaS_isotopomer
|
b669abd6e41034739a2c53d855005753e658c436
|
[
"MIT"
] | null | null | null |
SBaaS_isotopomer/stage01_isotopomer_peakData_execute.py
|
dmccloskey/SBaaS_isotopomer
|
b669abd6e41034739a2c53d855005753e658c436
|
[
"MIT"
] | null | null | null |
from .stage01_isotopomer_peakData_io import stage01_isotopomer_peakData_io
class stage01_isotopomer_peakData_execute(stage01_isotopomer_peakData_io):
pass;
| 23.857143
| 74
| 0.862275
| 20
| 167
| 6.6
| 0.45
| 0.515152
| 0.757576
| 0.613636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.053691
| 0.107784
| 167
| 7
| 75
| 23.857143
| 0.832215
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 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
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 8
|
f1b84b8700c0d4dae7c2e429b42e1030e13df8a1
| 16,154
|
py
|
Python
|
src/test/test_cross_game.py
|
AlphaStan/alphacross
|
11dbcb3a9490e9547dc9fb30c62e8beff0489e05
|
[
"BSD-3-Clause"
] | 2
|
2020-06-19T21:29:16.000Z
|
2020-10-27T08:50:21.000Z
|
src/test/test_cross_game.py
|
AlphaStan/alphacross
|
11dbcb3a9490e9547dc9fb30c62e8beff0489e05
|
[
"BSD-3-Clause"
] | 10
|
2019-11-10T17:42:38.000Z
|
2020-05-27T15:09:11.000Z
|
src/test/test_cross_game.py
|
AlphaStan/alphacross
|
11dbcb3a9490e9547dc9fb30c62e8beff0489e05
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
from src.main.environment.cross_game import CrossGame
from src.main.environment.errors import ColumnIsFullError, OutOfGridError
@pytest.mark.skip
def test_play_should_display_victory1_when_player1_wins(monkeypatch, capsys):
# Given
inputs = [0, 1, -3, 0, 1, 0, 1, 0]
input_generator = (i for i in inputs)
monkeypatch.setattr('builtins.input', lambda prompt: next(input_generator))
game = CrossGame()
expected_stdout = '\n'.join(
['| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1| | | | | | |\n',
'| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1|2| | | | | |\n',
'Player 1, you should give a number between 0 and 6.',
'| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1| | | | | | |\n|1|2| | | | | |\n',
'| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n',
'| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1| | | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n',
'| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n',
'| | | | | | | |\n| | | | | | | |\n|1| | | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n|1|2| | | | | |\n',
'Congratulation player 1, you have won !\n'
])
# When
game.play_game_against_human()#:test__display_grid_should_return_a_grid_with_two_tokens_when_two_tokens_were_played()
captured = capsys.readouterr()
actual_stdout = captured.out
# Then
assert actual_stdout == expected_stdout
def test_new_instance_should_have_an_empty_grid_attribute():
# Given
actual_game = CrossGame()
expected_grid = [[0 for _ in range(actual_game._nb_rows)] for _ in range(actual_game._nb_columns)]
# When
actual_grid = actual_game._grid
# Then
assert actual_grid == expected_grid
def test_apply_action_should_write_a_token_in_the_available_index():
# Given
actual_game = CrossGame()
expected_grid = [[0 for _ in range(actual_game._nb_rows)] for _ in range(actual_game._nb_columns)]
expected_grid[0][0] = 1
# When
actual_game.apply_action(0)
actual_grid = actual_game._grid
# Then
assert actual_grid == expected_grid
def test_apply_action_should_write_another_token_above_a_previous_one():
# Given
actual_game = CrossGame()
expected_grid = [[0 for _ in range(actual_game._nb_rows)] for _ in range(actual_game._nb_columns)]
expected_grid[0][0] = 1
expected_grid[0][1] = 2
# When
actual_game.apply_action(0)
actual_game.apply_action(0)
actual_grid = actual_game._grid
# Then
assert actual_grid == expected_grid
def test_apply_action_should_throw_exception_when_column_is_full():
# Given
actual_game = CrossGame()
# When
for id in range(actual_game._nb_rows):
actual_game.apply_action(0)
# Then
with pytest.raises(ColumnIsFullError):
actual_game.apply_action(0)
def test_check_vertical_victory_should_return_True_when_there_are_4_vertically_aligned_tokens_with_same_agent_id_in_column():
# Given
game = CrossGame()
col_index = 0
for i in range(3):
game.apply_action(col_index)
game.apply_action(col_index + 1 + i)
# When
game.apply_action(col_index)
is_vertical_victory = game._check_vertical_victory(game.get_state(), col_index, 1)
# Then
assert is_vertical_victory
def test_check_vertical_victory_should_return_False_when_there_are_less_than_4_vertically_aligned_tokens_with_same_agent_id():
# Given
game = CrossGame()
col_index = 0
for i in range(3):
game.apply_action(col_index)
game.apply_action(col_index + 1 + i)
# When
is_vertical_victory = game._check_vertical_victory(game.get_state(), col_index, 1)
# Then
assert not is_vertical_victory
def test_check_horizontal_victory_should_return_True_when_there_are_4_horizontally_aligned_tokens_with_same_agent_id():
# Given
game = CrossGame()
for i in range(3):
game.apply_action(i)
game.apply_action(4)
game.apply_action(3)
# When
is_horizontal_victory = game._check_horizontal_victory(game.get_state(), i, 1)
# Then
assert is_horizontal_victory
def test_check_horizontal_victory_should_return_False_when_there_are_less_than_4_horizontally_aligned_tokens_with_same_agent_id():
# Given
game =CrossGame()
for i in range(3):
game.apply_action(i)
game.apply_action(4)
# When
is_horizontal_victory = game._check_horizontal_victory(game.get_state(), i, 1)
# Then
assert not is_horizontal_victory
def test_check_horizontal_victory_should_return_True_when_four_tokens_with_same_agent_id_are_aligned_on_left_border():
# Given
game = CrossGame()
for i in range(3, 0, -1):
game.apply_action(i)
game.apply_action(4)
game.apply_action(0)
# When
is_horizontal_victory = game._check_horizontal_victory(game.get_state(), 0, 1)
# Then
assert is_horizontal_victory
def test_check_horizontal_victory_should_return_True_when_four_tokens_with_same_agent_id_are_aligned_on_right_border():
# Given
game = CrossGame()
for i in range(3, 6):
game.apply_action(i)
game.apply_action(0)
game.apply_action(6)
# When
is_horizontal_victory = game._check_horizontal_victory(game.get_state(), 6, 1)
# Then
assert is_horizontal_victory
def test_check_horizontal_victory_should_return_True_when_four_tokens_with_same_agent_id_are_aligned_on_right_border():
# Given
game = CrossGame()
for i in range(3, 6):
game.apply_action(i)
game.apply_action(0)
game.apply_action(6)
# When
is_horizontal_victory = game._check_horizontal_victory(game.get_state(), 6, 1)
# Then
assert is_horizontal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_ascending_diagonally_aligned_tokens_with_same_agent_id_from_right():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(2)
game.apply_action(3)
game.apply_action(2)
game.apply_action(3)
game.apply_action(3)
game.apply_action(2)
game.apply_action(3)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 3, 1)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_ascending_diagonally_aligned_tokens_with_same_agent_id_from_left():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(2)
game.apply_action(3)
game.apply_action(2)
game.apply_action(3)
game.apply_action(3)
game.apply_action(2)
game.apply_action(3)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 0, 1)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_ascending_diagonally_aligned_tokens_at_the_right_border_of_the_grid():
# Given
game = CrossGame()
game.apply_action(3)
game.apply_action(4)
game.apply_action(4)
game.apply_action(5)
game.apply_action(5)
game.apply_action(6)
game.apply_action(5)
game.apply_action(6)
game.apply_action(6)
game.apply_action(5)
game.apply_action(6)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 6, 1)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_False_when_there_are_less_than_4_ascending_diagonally_aligned_tokens_with_same_agent_id():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(2)
game.apply_action(3)
game.apply_action(2)
game.apply_action(3)
game.apply_action(3)
game.apply_action(2)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 3, 1)
# Then
assert not is_diagonal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_descending_diagonally_aligned_tokens_with_same_agent_id_from_right():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(0)
game.apply_action(0)
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(1)
game.apply_action(4)
game.apply_action(2)
game.apply_action(4)
game.apply_action(3)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 3, 2)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_descending_diagonally_aligned_tokens_with_same_agent_id_from_left():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(1)
game.apply_action(4)
game.apply_action(2)
game.apply_action(4)
game.apply_action(3)
game.apply_action(0)
game.apply_action(0)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 0, 2)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_True_when_there_are_4_descending_diagonally_aligned_tokens_at_the_right_border_of_the_grid():
# Given
game = CrossGame()
game.apply_action(3)
game.apply_action(3)
game.apply_action(4)
game.apply_action(4)
game.apply_action(5)
game.apply_action(4)
game.apply_action(0)
game.apply_action(5)
game.apply_action(0)
game.apply_action(6)
game.apply_action(3)
game.apply_action(3)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 3, 2)
# Then
assert is_diagonal_victory
def test_check_diagonal_victory_should_return_False_when_there_are_less_than_4_descending_diagonally_aligned_tokens_with_same_agent_id():
# Given
game = CrossGame()
game.apply_action(0)
game.apply_action(0)
game.apply_action(0)
game.apply_action(0)
game.apply_action(1)
game.apply_action(1)
game.apply_action(2)
game.apply_action(1)
game.apply_action(4)
game.apply_action(2)
game.apply_action(4)
# When
is_diagonal_victory = game._check_diagonal_victory(game.get_state(), 2, 1)
# Then
assert not is_diagonal_victory
def test__display_grid_should_return_an_empty_grid_as_string_when_applied_on_new_instance():
# Given
actual_game = CrossGame()
expected_grid = \
"| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |"
# When
actual_grid = actual_game._convert_grid_to_string()
# Then
assert expected_grid == actual_grid
def test__display_grid_should_return_a_grid_with_two_tokens_when_two_tokens_were_played():
# Given
actual_game = CrossGame()
expected_grid = \
"| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n| | | | | | | |\n|2| | | | | | |\n|1| | | | | | |"
# When
actual_game.apply_action(0)
actual_game.apply_action(0)
actual_grid = actual_game._convert_grid_to_string()
# Then
assert expected_grid == actual_grid
def test_apply_action_should_throw_exception_when_player_tries_to_play_outside_the_grid():
# Given
actual_game = CrossGame()
# Then
with pytest.raises(OutOfGridError):
# When
actual_game.apply_action(10)
def test_apply_action_should_throw_exception_when_player_tries_to_play_outside_the_grid_with_negative_col_index():
# Given
actual_game = CrossGame()
# Then
with pytest.raises(OutOfGridError):
# When
actual_game.apply_action(-1)
def test_is_terminal_state_should_return_True_when_state_is_terminal():
# Given
game = CrossGame()
state = [[1, 1, 1, 1, 0, 0],
[2, 2, 2, 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]]
# When
is_terminal_state = game.is_terminal_state(state)
# Then
assert is_terminal_state
def test_is_terminal_state_should_return_False_when_state_is_not_terminal():
# Given
game = CrossGame()
state = [[1, 1, 1, 0, 0, 0],
[2, 2, 2, 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]]
# When
is_terminal_state = game.is_terminal_state(state)
# Then
assert not is_terminal_state
def test_is_blocked_should_return_False_when_the_grid_is_not_full():
# Given
game = CrossGame()
game.apply_action(1)
game.apply_action(2)
# When
is_blocked = game.is_blocked()
# Then
assert not is_blocked
def test_is_blocked_should_return_True_when_the_grid_is_full():
# Given
game = CrossGame()
for i in range(game._nb_columns):
for _ in range(game._nb_rows):
game.apply_action(i)
# When
is_blocked = game.is_blocked()
# Then
assert is_blocked
def test_set_nb_columns_should_set_the_attribute_to_the_given_value():
# Given
game = CrossGame()
expected_nb_columns = 6
# When
game.nb_columns = expected_nb_columns
actual_nb_columns = game.nb_columns
# Then
assert expected_nb_columns == actual_nb_columns
def test_set_nb_columns_should_raise_ValueError_when_given_negative_value():
# Given
game = CrossGame()
negative_value = -1
# Then
with pytest.raises(ValueError):
# When
game.nb_columns = negative_value
def test_set_nb_columns_should_raise_ValueError_when_given_wrong_type_value():
# Given
game = CrossGame()
wrong_type_value = "foo"
# Then
with pytest.raises(ValueError):
# When
game.nb_columns = wrong_type_value
def test_set_nb_rows_should_set_the_attribute_to_the_given_value():
# Given
game = CrossGame()
expected_nb_rows = 6
# When
game.nb_rows = expected_nb_rows
actual_nb_rows = game.nb_rows
# Then
assert expected_nb_rows == actual_nb_rows
def test_set_nb_rows_should_raise_ValueError_when_given_negative_value():
# Given
game = CrossGame()
negative_value = -1
# Then
with pytest.raises(ValueError):
# When
game.nb_rows = negative_value
def test_set_nb_rows_should_raise_ValueError_when_given_wrong_type_value():
# Given
game = CrossGame()
wrong_type_value = "foo"
# Then
with pytest.raises(ValueError):
# When
game.nb_rows = wrong_type_value
def test_set_nb_aligned_tokens_win_should_set_the_attribute_to_the_given_value():
# Given
game = CrossGame()
expected_nb_aligned_tokens_win = 3
# When
game.nb_aligned_tokens_win = expected_nb_aligned_tokens_win
actual_nb_aligned_tokens_win = game.nb_aligned_tokens_win
# Then
assert expected_nb_aligned_tokens_win == actual_nb_aligned_tokens_win
def test_set_nb_aligned_tokens_win_should_raise_ValueError_when_given_negative_value():
# Given
game = CrossGame()
negative_value = -1
# Then
with pytest.raises(ValueError):
# When
game.nb_aligned_tokens_win = negative_value
def test_set_nb_aligned_tokens_win_should_raise_ValueError_when_given_wrong_type_value():
# Given
game = CrossGame()
wrong_type_value = "foo"
# Then
with pytest.raises(ValueError):
# When
game.nb_aligned_tokens_win = wrong_type_value
def test_set_nb_aligned_tokens_win_should_raise_ValueError_when_given_too_large_value():
# Given
game = CrossGame()
too_large_value = 10
# Then
with pytest.raises(ValueError):
# When
game.nb_aligned_tokens_win = too_large_value
| 30.479245
| 139
| 0.676984
| 2,268
| 16,154
| 4.373457
| 0.066578
| 0.139732
| 0.182982
| 0.024196
| 0.888698
| 0.875391
| 0.837685
| 0.818732
| 0.780926
| 0.763283
| 0
| 0.024571
| 0.213941
| 16,154
| 529
| 140
| 30.536862
| 0.756576
| 0.0429
| 0
| 0.699115
| 0
| 0.026549
| 0.067188
| 0
| 0
| 0
| 0
| 0
| 0.082596
| 1
| 0.112094
| false
| 0
| 0.00885
| 0
| 0.120944
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 7
|
f1c7858e54c6396d10aab50f08a3be894e562724
| 96
|
py
|
Python
|
cometcurve/tests/test_core.py
|
mrtommyb/cometcurve
|
36d4d28d6dd28ebe85554ea09d77a22222e13dce
|
[
"MIT"
] | 3
|
2020-04-06T02:15:50.000Z
|
2020-09-29T16:19:07.000Z
|
cometcurve/tests/test_core.py
|
mrtommyb/cometcurve
|
36d4d28d6dd28ebe85554ea09d77a22222e13dce
|
[
"MIT"
] | 1
|
2020-04-08T17:22:12.000Z
|
2020-04-08T17:22:12.000Z
|
cometcurve/tests/test_core.py
|
mrtommyb/cometcurve
|
36d4d28d6dd28ebe85554ea09d77a22222e13dce
|
[
"MIT"
] | 2
|
2020-04-06T23:46:54.000Z
|
2020-04-08T16:50:44.000Z
|
def test_imports():
from .. import ephem
from .. import cobs
from .. import models
| 16
| 25
| 0.625
| 12
| 96
| 4.916667
| 0.666667
| 0.508475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.28125
| 96
| 5
| 26
| 19.2
| 0.855072
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 1
| 0
| 1.25
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7b29ea405555c702c99877d33b4c50ab82f2f3b6
| 50,921
|
py
|
Python
|
safenet/app.py
|
DuncanKushnir/pySafe
|
b47c234f5333566027c8981054747d2587a673fe
|
[
"MIT"
] | null | null | null |
safenet/app.py
|
DuncanKushnir/pySafe
|
b47c234f5333566027c8981054747d2587a673fe
|
[
"MIT"
] | null | null | null |
safenet/app.py
|
DuncanKushnir/pySafe
|
b47c234f5333566027c8981054747d2587a673fe
|
[
"MIT"
] | null | null | null |
########################################################################################################################
#
# pySafe - Authenticator Interface
#
# This is really just a stub ... files like this should be able to import the interface and just go, but code structure
# really needs some thought
#
#
#
########################################################################################################################
# This brings all the c interfaces into this module .. at this point still clean code
import safenet.interface as interface
import safenet.safeUtils as safeUtils
import queue
import safenet.mutableData as mutableData
import safenet.immutableData as immutableData
import safenet.authenticator as authenticator
#NULL=interface.NULL
appQueue = queue.Queue()
# From here on in is just a very basic 'working' example
# todo we need heavy thought on how to structure the various classes.
class app:
def __init__(self,
name='SAFE_Connection',
version='0.0.0',
vendor='rid+dask',
addr='http://localhost',
alternate_crust_config=None):
self.name = name
self.version = version
self.vendor = vendor
self.url = addr
self.lib_auth = interface.lib_auth
self.lib_app = interface.lib_app
self.authenticator = authenticator.authenticator(self.lib_auth, self.lib_app)
self.mutableData = mutableData.mutableData(self.lib_auth, self.lib_app)
self.immutableData = immutableData.immutableData(self.lib_auth, self.lib_app)
#Try and add this here...
#if alternate_crust_config is None:
# interface.add_local_crust_config()
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _test_create_app(self, app_id, user_data, o_cb=None):
"""
bytes, [any], [function], [custom ffi lib]
char* app_id, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, App* app)
"""
@ffi.callback("void(void* ,FfiResult* ,App*)")
def _test_create_app_o_cb(user_data ,result ,app):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,app)
self.lib.safe_app.test_create_app(app_id, user_data, _test_create_app_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _test_create_app_with_access(self, auth_req, user_data, o_cb=None):
"""
AuthReq*, [any], [function], [custom ffi lib]
AuthReq* auth_req, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, App* o_app)
"""
@ffi.callback("void(void* ,FfiResult* ,App*)")
def _test_create_app_with_access_o_cb(user_data ,result ,o_app):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,o_app)
self.lib.safe_app.test_create_app_with_access(auth_req, user_data, _test_create_app_with_access_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _test_simulate_network_disconnect(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _test_simulate_network_disconnect_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.test_simulate_network_disconnect(app, user_data, _test_simulate_network_disconnect_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_init_logging(self, output_file_name_override, user_data, o_cb=None):
"""
bytes, [any], [function], [custom ffi lib]
char* output_file_name_override, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _app_init_logging_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.app_init_logging(output_file_name_override, user_data, _app_init_logging_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_output_log_path(self, output_file_name, user_data, o_cb=None):
"""
bytes, [any], [function], [custom ffi lib]
char* output_file_name, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, char* log_path)
"""
@ffi.callback("void(void* ,FfiResult* ,char*)")
def _app_output_log_path_o_cb(user_data ,result ,log_path):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,log_path)
self.lib.safe_app.app_output_log_path(output_file_name, user_data, _app_output_log_path_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_unregistered(self, bootstrap_config, bootstrap_config_len, user_data, o_disconnect_notifier_cb=None, o_cb=None):
"""
uint8_t*, uintptr_t, [any], [function], [function], [custom ffi lib]
uint8_t* bootstrap_config, uintptr_t bootstrap_config_len, void* user_data
> callback functions:
(*o_disconnect_notifier_cb)(void* user_data)
(*o_cb)(void* user_data, FfiResult* result, App* app)
"""
@ffi.callback("void(void*)")
def _app_unregistered_o_disconnect_notifier_cb(user_data):
appQueue.put('gotResult')
if o_disconnect_notifier_cb:
o_disconnect_notifier_cb(user_data)
@ffi.callback("void(void* ,FfiResult* ,App*)")
def _app_unregistered_o_cb(user_data ,result ,app):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,app)
self.lib.safe_app.app_unregistered(bootstrap_config, bootstrap_config_len, user_data, _app_unregistered_o_disconnect_notifier_cb, _app_unregistered_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_registered(self, app_id, auth_granted, user_data, o_disconnect_notifier_cb=None, o_cb=None):
"""
bytes, AuthGranted*, [any], [function], [function], [custom ffi lib]
char* app_id, AuthGranted* auth_granted, void* user_data
> callback functions:
(*o_disconnect_notifier_cb)(void* user_data)
(*o_cb)(void* user_data, FfiResult* result, App* app)
"""
@ffi.callback("void(void*)")
def _app_registered_o_disconnect_notifier_cb(user_data):
appQueue.put('gotResult')
if o_disconnect_notifier_cb:
o_disconnect_notifier_cb(user_data)
@ffi.callback("void(void* ,FfiResult* ,App*)")
def _app_registered_o_cb(user_data ,result ,app):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,app)
self.lib.safe_app.app_registered(app_id, auth_granted, user_data, _app_registered_o_disconnect_notifier_cb, _app_registered_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_reconnect(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _app_reconnect_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.app_reconnect(app, user_data, _app_reconnect_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_account_info(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, AccountInfo* account_info)
"""
@ffi.callback("void(void* ,FfiResult* ,AccountInfo*)")
def _app_account_info_o_cb(user_data ,result ,account_info):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,account_info)
self.lib.safe_app.app_account_info(app, user_data, _app_account_info_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_exe_file_stem(self, user_data, o_cb=None):
"""
[any], [function], [custom ffi lib]
void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, char* filename)
"""
@ffi.callback("void(void* ,FfiResult* ,char*)")
def _app_exe_file_stem_o_cb(user_data ,result ,filename):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,filename)
self.lib.safe_app.app_exe_file_stem(user_data, _app_exe_file_stem_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_set_additional_search_path(self, new_path, user_data, o_cb=None):
"""
bytes, [any], [function], [custom ffi lib]
char* new_path, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _app_set_additional_search_path_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.app_set_additional_search_path(new_path, user_data, _app_set_additional_search_path_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_free(self, app):
"""
App*, [custom ffi lib]
App* app
> callback functions:
"""
self.lib.safe_app.app_free(app)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_reset_object_cache(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _app_reset_object_cache_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.app_reset_object_cache(app, user_data, _app_reset_object_cache_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_container_name(self, app_id, user_data, o_cb=None):
"""
bytes, [any], [function], [custom ffi lib]
char* app_id, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, char* container_name)
"""
@ffi.callback("void(void* ,FfiResult* ,char*)")
def _app_container_name_o_cb(user_data ,result ,container_name):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,container_name)
self.lib.safe_app.app_container_name(app_id, user_data, _app_container_name_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _encode_auth_req(self, req, user_data, o_cb=None):
"""
AuthReq*, [any], [function], [custom ffi lib]
AuthReq* req, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint32_t req_id, char* encoded)
"""
@ffi.callback("void(void* ,FfiResult* ,uint32_t ,char*)")
def _encode_auth_req_o_cb(user_data ,result ,req_id ,encoded):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,req_id ,encoded)
self.lib.safe_app.encode_auth_req(req, user_data, _encode_auth_req_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _encode_containers_req(self, req, user_data, o_cb=None):
"""
ContainersReq*, [any], [function], [custom ffi lib]
ContainersReq* req, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint32_t req_id, char* encoded)
"""
@ffi.callback("void(void* ,FfiResult* ,uint32_t ,char*)")
def _encode_containers_req_o_cb(user_data ,result ,req_id ,encoded):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,req_id ,encoded)
self.lib.safe_app.encode_containers_req(req, user_data, _encode_containers_req_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _encode_unregistered_req(self, extra_data, extra_data_len, user_data, o_cb=None):
"""
uint8_t*, uintptr_t, [any], [function], [custom ffi lib]
uint8_t* extra_data, uintptr_t extra_data_len, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint32_t req_id, char* encoded)
"""
@ffi.callback("void(void* ,FfiResult* ,uint32_t ,char*)")
def _encode_unregistered_req_o_cb(user_data ,result ,req_id ,encoded):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,req_id ,encoded)
self.lib.safe_app.encode_unregistered_req(extra_data, extra_data_len, user_data, _encode_unregistered_req_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _decode_ipc_msg(self, msg, user_data, o_auth=None, o_unregistered=None, o_containers=None, o_share_mdata=None, o_revoked=None, o_err=None):
"""
bytes, [any], [function], [function], [function], [function], [function], [function], [custom ffi lib]
char* msg, void* user_data
> callback functions:
(*o_auth)(void* user_data, uint32_t req_id, AuthGranted* auth_granted)
(*o_unregistered)(void* user_data, uint32_t req_id, uint8_t* serialised_cfg, uintptr_t serialised_cfg_len)
(*o_containers)(void* user_data, uint32_t req_id)
(*o_share_mdata)(void* user_data, uint32_t req_id)
(*o_revoked)(void* user_data)
(*o_err)(void* user_data, FfiResult* result, uint32_t req_id)
"""
@ffi.callback("void(void* ,uint32_t ,AuthGranted*)")
def _decode_ipc_msg_o_auth(user_data ,req_id ,auth_granted):
appQueue.put('gotResult')
if o_auth:
o_auth(user_data ,req_id ,auth_granted)
@ffi.callback("void(void* ,uint32_t ,uint8_t* ,uintptr_t)")
def _decode_ipc_msg_o_unregistered(user_data ,req_id ,serialised_cfg ,serialised_cfg_len):
appQueue.put('gotResult')
if o_unregistered:
o_unregistered(user_data ,req_id ,serialised_cfg ,serialised_cfg_len)
@ffi.callback("void(void* ,uint32_t)")
def _decode_ipc_msg_o_containers(user_data ,req_id):
appQueue.put('gotResult')
if o_containers:
o_containers(user_data ,req_id)
@ffi.callback("void(void* ,uint32_t)")
def _decode_ipc_msg_o_share_mdata(user_data ,req_id):
appQueue.put('gotResult')
if o_share_mdata:
o_share_mdata(user_data ,req_id)
@ffi.callback("void(void*)")
def _decode_ipc_msg_o_revoked(user_data):
appQueue.put('gotResult')
if o_revoked:
o_revoked(user_data)
@ffi.callback("void(void* ,FfiResult* ,uint32_t)")
def _decode_ipc_msg_o_err(user_data ,result ,req_id):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_err:
o_err(user_data ,result ,req_id)
self.lib.safe_app.decode_ipc_msg(msg, user_data, _decode_ipc_msg_o_auth, _decode_ipc_msg_o_unregistered, _decode_ipc_msg_o_containers, _decode_ipc_msg_o_share_mdata, _decode_ipc_msg_o_revoked, _decode_ipc_msg_o_err)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _access_container_refresh_access_info(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _access_container_refresh_access_info_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.access_container_refresh_access_info(app, user_data, _access_container_refresh_access_info_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _access_container_fetch(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, ContainerPermissions* container_perms, uintptr_t container_perms_len)
"""
@ffi.callback("void(void* ,FfiResult* ,ContainerPermissions* ,uintptr_t)")
def _access_container_fetch_o_cb(user_data ,result ,container_perms ,container_perms_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,container_perms ,container_perms_len)
self.lib.safe_app.access_container_fetch(app, user_data, _access_container_fetch_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _access_container_get_container_mdata_info(self, app, name, user_data, o_cb=None):
"""
App*, bytes, [any], [function], [custom ffi lib]
App* app, char* name, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, MDataInfo* mdata_info)
"""
@ffi.callback("void(void* ,FfiResult* ,MDataInfo*)")
def _access_container_get_container_mdata_info_o_cb(user_data ,result ,mdata_info):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,mdata_info)
self.lib.safe_app.access_container_get_container_mdata_info(app, name, user_data, _access_container_get_container_mdata_info_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _dir_fetch_file(self, app, parent_info, file_name, user_data, o_cb=None):
"""
App*, MDataInfo*, bytes, [any], [function], [custom ffi lib]
App* app, MDataInfo* parent_info, char* file_name, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, File* file, uint64_t version)
"""
@ffi.callback("void(void* ,FfiResult* ,File* ,uint64_t)")
def _dir_fetch_file_o_cb(user_data ,result ,file ,version):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,file ,version)
self.lib.safe_app.dir_fetch_file(app, parent_info, file_name, user_data, _dir_fetch_file_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _dir_insert_file(self, app, parent_info, file_name, file, user_data, o_cb=None):
"""
App*, MDataInfo*, bytes, File*, [any], [function], [custom ffi lib]
App* app, MDataInfo* parent_info, char* file_name, File* file, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _dir_insert_file_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.dir_insert_file(app, parent_info, file_name, file, user_data, _dir_insert_file_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _dir_update_file(self, app, parent_info, file_name, file, version, user_data, o_cb=None):
"""
App*, MDataInfo*, bytes, File*, uint64_t, [any], [function], [custom ffi lib]
App* app, MDataInfo* parent_info, char* file_name, File* file, uint64_t version, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint64_t new_version)
"""
@ffi.callback("void(void* ,FfiResult* ,uint64_t)")
def _dir_update_file_o_cb(user_data ,result ,new_version):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,new_version)
self.lib.safe_app.dir_update_file(app, parent_info, file_name, file, version, user_data, _dir_update_file_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _dir_delete_file(self, app, parent_info, file_name, version, user_data, o_cb=None):
"""
App*, MDataInfo*, bytes, uint64_t, [any], [function], [custom ffi lib]
App* app, MDataInfo* parent_info, char* file_name, uint64_t version, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint64_t new_version)
"""
@ffi.callback("void(void* ,FfiResult* ,uint64_t)")
def _dir_delete_file_o_cb(user_data ,result ,new_version):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,new_version)
self.lib.safe_app.dir_delete_file(app, parent_info, file_name, version, user_data, _dir_delete_file_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _file_open(self, app, parent_info, file, open_mode, user_data, o_cb=None):
"""
App*, MDataInfo*, File*, uint64_t, [any], [function], [custom ffi lib]
App* app, MDataInfo* parent_info, File* file, uint64_t open_mode, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, FileContextHandle file_h)
"""
@ffi.callback("void(void* ,FfiResult* ,FileContextHandle)")
def _file_open_o_cb(user_data ,result ,file_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,file_h)
self.lib.safe_app.file_open(app, parent_info, file, open_mode, user_data, _file_open_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _file_size(self, app, file_h, user_data, o_cb=None):
"""
App*, FileContextHandle, [any], [function], [custom ffi lib]
App* app, FileContextHandle file_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint64_t size)
"""
@ffi.callback("void(void* ,FfiResult* ,uint64_t)")
def _file_size_o_cb(user_data ,result ,size):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,size)
self.lib.safe_app.file_size(app, file_h, user_data, _file_size_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _file_read(self, app, file_h, position, len, user_data, o_cb=None):
"""
App*, FileContextHandle, uint64_t, uint64_t, [any], [function], [custom ffi lib]
App* app, FileContextHandle file_h, uint64_t position, uint64_t len, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* data, uintptr_t data_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _file_read_o_cb(user_data ,result ,data ,data_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,data ,data_len)
self.lib.safe_app.file_read(app, file_h, position, len, user_data, _file_read_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _file_write(self, app, file_h, data, data_len, user_data, o_cb=None):
"""
App*, FileContextHandle, uint8_t*, uintptr_t, [any], [function], [custom ffi lib]
App* app, FileContextHandle file_h, uint8_t* data, uintptr_t data_len, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _file_write_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.file_write(app, file_h, data, data_len, user_data, _file_write_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _file_close(self, app, file_h, user_data, o_cb=None):
"""
App*, FileContextHandle, [any], [function], [custom ffi lib]
App* app, FileContextHandle file_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, File* file)
"""
@ffi.callback("void(void* ,FfiResult* ,File*)")
def _file_close_o_cb(user_data ,result ,file):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,file)
self.lib.safe_app.file_close(app, file_h, user_data, _file_close_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_pub_sign_key(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignPubKeyHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,SignPubKeyHandle)")
def _app_pub_sign_key_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.app_pub_sign_key(app, user_data, _app_pub_sign_key_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_generate_key_pair(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignPubKeyHandle public_key_h, SignSecKeyHandle secret_key_h)
"""
@ffi.callback("void(void* ,FfiResult* ,SignPubKeyHandle ,SignSecKeyHandle)")
def _sign_generate_key_pair_o_cb(user_data ,result ,public_key_h ,secret_key_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,public_key_h ,secret_key_h)
self.lib.safe_app.sign_generate_key_pair(app, user_data, _sign_generate_key_pair_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_pub_key_new(self, app, data, user_data, o_cb=None):
"""
App*, SignPublicKey*, [any], [function], [custom ffi lib]
App* app, SignPublicKey* data, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignPubKeyHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,SignPubKeyHandle)")
def _sign_pub_key_new_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.sign_pub_key_new(app, data, user_data, _sign_pub_key_new_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_pub_key_get(self, app, handle, user_data, o_cb=None):
"""
App*, SignPubKeyHandle, [any], [function], [custom ffi lib]
App* app, SignPubKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignPublicKey* pub_sign_key)
"""
@ffi.callback("void(void* ,FfiResult* ,SignPublicKey*)")
def _sign_pub_key_get_o_cb(user_data ,result ,pub_sign_key):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,pub_sign_key)
self.lib.safe_app.sign_pub_key_get(app, handle, user_data, _sign_pub_key_get_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_pub_key_free(self, app, handle, user_data, o_cb=None):
"""
App*, SignPubKeyHandle, [any], [function], [custom ffi lib]
App* app, SignPubKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _sign_pub_key_free_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.sign_pub_key_free(app, handle, user_data, _sign_pub_key_free_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_sec_key_new(self, app, data, user_data, o_cb=None):
"""
App*, SignSecretKey*, [any], [function], [custom ffi lib]
App* app, SignSecretKey* data, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignSecKeyHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,SignSecKeyHandle)")
def _sign_sec_key_new_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.sign_sec_key_new(app, data, user_data, _sign_sec_key_new_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_sec_key_get(self, app, handle, user_data, o_cb=None):
"""
App*, SignSecKeyHandle, [any], [function], [custom ffi lib]
App* app, SignSecKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, SignSecretKey* pub_sign_key)
"""
@ffi.callback("void(void* ,FfiResult* ,SignSecretKey*)")
def _sign_sec_key_get_o_cb(user_data ,result ,pub_sign_key):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,pub_sign_key)
self.lib.safe_app.sign_sec_key_get(app, handle, user_data, _sign_sec_key_get_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign_sec_key_free(self, app, handle, user_data, o_cb=None):
"""
App*, SignSecKeyHandle, [any], [function], [custom ffi lib]
App* app, SignSecKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _sign_sec_key_free_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.sign_sec_key_free(app, handle, user_data, _sign_sec_key_free_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _app_pub_enc_key(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, EncryptPubKeyHandle public_key_h)
"""
@ffi.callback("void(void* ,FfiResult* ,EncryptPubKeyHandle)")
def _app_pub_enc_key_o_cb(user_data ,result ,public_key_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,public_key_h)
self.lib.safe_app.app_pub_enc_key(app, user_data, _app_pub_enc_key_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_generate_key_pair(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, EncryptPubKeyHandle public_key_h, EncryptSecKeyHandle secret_key_h)
"""
@ffi.callback("void(void* ,FfiResult* ,EncryptPubKeyHandle ,EncryptSecKeyHandle)")
def _enc_generate_key_pair_o_cb(user_data ,result ,public_key_h ,secret_key_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,public_key_h ,secret_key_h)
self.lib.safe_app.enc_generate_key_pair(app, user_data, _enc_generate_key_pair_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_pub_key_new(self, app, data, user_data, o_cb=None):
"""
App*, AsymPublicKey*, [any], [function], [custom ffi lib]
App* app, AsymPublicKey* data, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, EncryptPubKeyHandle public_key_h)
"""
@ffi.callback("void(void* ,FfiResult* ,EncryptPubKeyHandle)")
def _enc_pub_key_new_o_cb(user_data ,result ,public_key_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,public_key_h)
self.lib.safe_app.enc_pub_key_new(app, data, user_data, _enc_pub_key_new_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_pub_key_get(self, app, handle, user_data, o_cb=None):
"""
App*, EncryptPubKeyHandle, [any], [function], [custom ffi lib]
App* app, EncryptPubKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, AsymPublicKey* pub_enc_key)
"""
@ffi.callback("void(void* ,FfiResult* ,AsymPublicKey*)")
def _enc_pub_key_get_o_cb(user_data ,result ,pub_enc_key):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,pub_enc_key)
self.lib.safe_app.enc_pub_key_get(app, handle, user_data, _enc_pub_key_get_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_pub_key_free(self, app, handle, user_data, o_cb=None):
"""
App*, EncryptPubKeyHandle, [any], [function], [custom ffi lib]
App* app, EncryptPubKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _enc_pub_key_free_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.enc_pub_key_free(app, handle, user_data, _enc_pub_key_free_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_secret_key_new(self, app, data, user_data, o_cb=None):
"""
App*, AsymSecretKey*, [any], [function], [custom ffi lib]
App* app, AsymSecretKey* data, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, EncryptSecKeyHandle sk_h)
"""
@ffi.callback("void(void* ,FfiResult* ,EncryptSecKeyHandle)")
def _enc_secret_key_new_o_cb(user_data ,result ,sk_h):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,sk_h)
self.lib.safe_app.enc_secret_key_new(app, data, user_data, _enc_secret_key_new_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_secret_key_get(self, app, handle, user_data, o_cb=None):
"""
App*, EncryptSecKeyHandle, [any], [function], [custom ffi lib]
App* app, EncryptSecKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, AsymSecretKey* sec_enc_key)
"""
@ffi.callback("void(void* ,FfiResult* ,AsymSecretKey*)")
def _enc_secret_key_get_o_cb(user_data ,result ,sec_enc_key):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,sec_enc_key)
self.lib.safe_app.enc_secret_key_get(app, handle, user_data, _enc_secret_key_get_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _enc_secret_key_free(self, app, handle, user_data, o_cb=None):
"""
App*, EncryptSecKeyHandle, [any], [function], [custom ffi lib]
App* app, EncryptSecKeyHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _enc_secret_key_free_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.enc_secret_key_free(app, handle, user_data, _enc_secret_key_free_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sign(self, app, data, data_len, sign_sk_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, SignSecKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* data, uintptr_t data_len, SignSecKeyHandle sign_sk_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* signed_data, uintptr_t signed_data_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _sign_o_cb(user_data ,result ,signed_data ,signed_data_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,signed_data ,signed_data_len)
self.lib.safe_app.sign(app, data, data_len, sign_sk_h, user_data, _sign_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _verify(self, app, signed_data, signed_data_len, sign_pk_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, SignPubKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* signed_data, uintptr_t signed_data_len, SignPubKeyHandle sign_pk_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* verified_data, uintptr_t verified_data_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _verify_o_cb(user_data ,result ,verified_data ,verified_data_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,verified_data ,verified_data_len)
self.lib.safe_app.verify(app, signed_data, signed_data_len, sign_pk_h, user_data, _verify_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _encrypt(self, app, data, data_len, public_key_h, secret_key_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, EncryptPubKeyHandle, EncryptSecKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* data, uintptr_t data_len, EncryptPubKeyHandle public_key_h, EncryptSecKeyHandle secret_key_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* ciphertext, uintptr_t ciphertext_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _encrypt_o_cb(user_data ,result ,ciphertext ,ciphertext_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,ciphertext ,ciphertext_len)
self.lib.safe_app.encrypt(app, data, data_len, public_key_h, secret_key_h, user_data, _encrypt_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _decrypt(self, app, data, data_len, public_key_h, secret_key_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, EncryptPubKeyHandle, EncryptSecKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* data, uintptr_t data_len, EncryptPubKeyHandle public_key_h, EncryptSecKeyHandle secret_key_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* plaintext, uintptr_t plaintext_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _decrypt_o_cb(user_data ,result ,plaintext ,plaintext_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,plaintext ,plaintext_len)
self.lib.safe_app.decrypt(app, data, data_len, public_key_h, secret_key_h, user_data, _decrypt_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _encrypt_sealed_box(self, app, data, data_len, public_key_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, EncryptPubKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* data, uintptr_t data_len, EncryptPubKeyHandle public_key_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* ciphertext, uintptr_t ciphertext_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _encrypt_sealed_box_o_cb(user_data ,result ,ciphertext ,ciphertext_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,ciphertext ,ciphertext_len)
self.lib.safe_app.encrypt_sealed_box(app, data, data_len, public_key_h, user_data, _encrypt_sealed_box_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _decrypt_sealed_box(self, app, data, data_len, public_key_h, secret_key_h, user_data, o_cb=None):
"""
App*, uint8_t*, uintptr_t, EncryptPubKeyHandle, EncryptSecKeyHandle, [any], [function], [custom ffi lib]
App* app, uint8_t* data, uintptr_t data_len, EncryptPubKeyHandle public_key_h, EncryptSecKeyHandle secret_key_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* plaintext, uintptr_t plaintext_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _decrypt_sealed_box_o_cb(user_data ,result ,plaintext ,plaintext_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,plaintext ,plaintext_len)
self.lib.safe_app.decrypt_sealed_box(app, data, data_len, public_key_h, secret_key_h, user_data, _decrypt_sealed_box_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _sha3_hash(self, data, data_len, user_data, o_cb=None):
"""
uint8_t*, uintptr_t, [any], [function], [custom ffi lib]
uint8_t* data, uintptr_t data_len, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, uint8_t* hash, uintptr_t hash_len)
"""
@ffi.callback("void(void* ,FfiResult* ,uint8_t* ,uintptr_t)")
def _sha3_hash_o_cb(user_data ,result ,hash ,hash_len):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,hash ,hash_len)
self.lib.safe_app.sha3_hash(data, data_len, user_data, _sha3_hash_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _generate_nonce(self, user_data, o_cb=None):
"""
[any], [function], [custom ffi lib]
void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, AsymNonce* nonce)
"""
@ffi.callback("void(void* ,FfiResult* ,AsymNonce*)")
def _generate_nonce_o_cb(user_data ,result ,nonce):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,nonce)
self.lib.safe_app.generate_nonce(user_data, _generate_nonce_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _cipher_opt_new_plaintext(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, CipherOptHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,CipherOptHandle)")
def _cipher_opt_new_plaintext_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.cipher_opt_new_plaintext(app, user_data, _cipher_opt_new_plaintext_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _cipher_opt_new_symmetric(self, app, user_data, o_cb=None):
"""
App*, [any], [function], [custom ffi lib]
App* app, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, CipherOptHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,CipherOptHandle)")
def _cipher_opt_new_symmetric_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.cipher_opt_new_symmetric(app, user_data, _cipher_opt_new_symmetric_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _cipher_opt_new_asymmetric(self, app, peer_encrypt_key_h, user_data, o_cb=None):
"""
App*, EncryptPubKeyHandle, [any], [function], [custom ffi lib]
App* app, EncryptPubKeyHandle peer_encrypt_key_h, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result, CipherOptHandle handle)
"""
@ffi.callback("void(void* ,FfiResult* ,CipherOptHandle)")
def _cipher_opt_new_asymmetric_o_cb(user_data ,result ,handle):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result ,handle)
self.lib.safe_app.cipher_opt_new_asymmetric(app, peer_encrypt_key_h, user_data, _cipher_opt_new_asymmetric_o_cb)
@safeUtils.safeThread(timeout=5,queue=appQueue)
def _cipher_opt_free(self, app, handle, user_data, o_cb=None):
"""
App*, CipherOptHandle, [any], [function], [custom ffi lib]
App* app, CipherOptHandle handle, void* user_data
> callback functions:
(*o_cb)(void* user_data, FfiResult* result)
"""
@ffi.callback("void(void* ,FfiResult*)")
def _cipher_opt_free_o_cb(user_data ,result):
self.safeUtils.checkResult(result)
appQueue.put('gotResult')
if o_cb:
o_cb(user_data ,result)
self.lib.safe_app.cipher_opt_free(app, handle, user_data, _cipher_opt_free_o_cb)
| 38.693769
| 223
| 0.612498
| 6,270
| 50,921
| 4.627432
| 0.035566
| 0.10009
| 0.050045
| 0.042462
| 0.894672
| 0.857138
| 0.809609
| 0.757083
| 0.707314
| 0.677087
| 0
| 0.004642
| 0.276546
| 50,921
| 1,315
| 224
| 38.723194
| 0.782947
| 0.245302
| 0
| 0.560976
| 0
| 0
| 0.082181
| 0.003098
| 0
| 0
| 0
| 0.00076
| 0
| 1
| 0.214286
| false
| 0
| 0.010453
| 0
| 0.226481
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9e48caec11af83908bb314600dee8f50caf83783
| 108,897
|
py
|
Python
|
Lib/site-packages/hackedit/app/forms/dlg_about_ui.py
|
fochoao/cpython
|
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
|
[
"bzip2-1.0.6",
"0BSD"
] | null | null | null |
Lib/site-packages/hackedit/app/forms/dlg_about_ui.py
|
fochoao/cpython
|
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
|
[
"bzip2-1.0.6",
"0BSD"
] | 20
|
2021-05-03T18:02:23.000Z
|
2022-03-12T12:01:04.000Z
|
Lib/site-packages/hackedit/app/forms/dlg_about_ui.py
|
fochoao/cpython
|
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
|
[
"bzip2-1.0.6",
"0BSD"
] | null | null | null |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/Colin/Documents/hackedit/data/forms/dlg_about.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(640, 572)
Dialog.setMinimumSize(QtCore.QSize(640, 480))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/ide-icons/rc/dialog-information.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Dialog.setWindowIcon(icon)
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.lbl_icon = QtWidgets.QLabel(Dialog)
self.lbl_icon.setObjectName("lbl_icon")
self.horizontalLayout_2.addWidget(self.lbl_icon)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.lbl_version = QtWidgets.QLabel(Dialog)
self.lbl_version.setObjectName("lbl_version")
self.verticalLayout.addWidget(self.lbl_version)
self.tabWidget = QtWidgets.QTabWidget(Dialog)
self.tabWidget.setObjectName("tabWidget")
self.tab_about = QtWidgets.QWidget()
self.tab_about.setObjectName("tab_about")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_about)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem2)
self.lbl_copyright = QtWidgets.QLabel(self.tab_about)
self.lbl_copyright.setTextFormat(QtCore.Qt.RichText)
self.lbl_copyright.setScaledContents(False)
self.lbl_copyright.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.lbl_copyright.setWordWrap(True)
self.lbl_copyright.setOpenExternalLinks(True)
self.lbl_copyright.setObjectName("lbl_copyright")
self.verticalLayout_2.addWidget(self.lbl_copyright)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_2.addItem(spacerItem3)
self.tabWidget.addTab(self.tab_about, "")
self.tab_authors = QtWidgets.QWidget()
self.tab_authors.setObjectName("tab_authors")
self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_authors)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.text_authors = QtWidgets.QTextBrowser(self.tab_authors)
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
self.text_authors.setFont(font)
self.text_authors.setReadOnly(True)
self.text_authors.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
self.text_authors.setOpenExternalLinks(True)
self.text_authors.setOpenLinks(True)
self.text_authors.setObjectName("text_authors")
self.gridLayout_2.addWidget(self.text_authors, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_authors, "")
self.tab_license = QtWidgets.QWidget()
self.tab_license.setObjectName("tab_license")
self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_license)
self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
self.gridLayout_3.setObjectName("gridLayout_3")
self.edit_license = QtWidgets.QTextEdit(self.tab_license)
self.edit_license.setReadOnly(True)
self.edit_license.setObjectName("edit_license")
self.gridLayout_3.addWidget(self.edit_license, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_license, "")
self.tab_versions = QtWidgets.QWidget()
self.tab_versions.setObjectName("tab_versions")
self.gridLayout = QtWidgets.QGridLayout(self.tab_versions)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.table_versions = QtWidgets.QTableWidget(self.tab_versions)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.table_versions.sizePolicy().hasHeightForWidth())
self.table_versions.setSizePolicy(sizePolicy)
self.table_versions.setFocusPolicy(QtCore.Qt.NoFocus)
self.table_versions.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.table_versions.setSelectionMode(QtWidgets.QAbstractItemView.NoSelection)
self.table_versions.setGridStyle(QtCore.Qt.SolidLine)
self.table_versions.setCornerButtonEnabled(False)
self.table_versions.setObjectName("table_versions")
self.table_versions.setColumnCount(1)
self.table_versions.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.table_versions.setHorizontalHeaderItem(0, item)
self.table_versions.horizontalHeader().setVisible(False)
self.table_versions.horizontalHeader().setStretchLastSection(True)
self.table_versions.verticalHeader().setSortIndicatorShown(False)
self.table_versions.verticalHeader().setStretchLastSection(False)
self.gridLayout.addWidget(self.table_versions, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_versions, "")
self.tab_log = QtWidgets.QWidget()
self.tab_log.setObjectName("tab_log")
self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_log)
self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
self.gridLayout_4.setObjectName("gridLayout_4")
self.edit_log = QtWidgets.QTextEdit(self.tab_log)
self.edit_log.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
self.edit_log.setReadOnly(True)
self.edit_log.setObjectName("edit_log")
self.gridLayout_4.addWidget(self.edit_log, 2, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_2 = QtWidgets.QLabel(self.tab_log)
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.combo_log_level = QtWidgets.QComboBox(self.tab_log)
self.combo_log_level.setObjectName("combo_log_level")
self.combo_log_level.addItem("")
self.combo_log_level.addItem("")
self.combo_log_level.addItem("")
self.combo_log_level.addItem("")
self.combo_log_level.addItem("")
self.horizontalLayout.addWidget(self.combo_log_level)
self.bt_clear_logs = QtWidgets.QPushButton(self.tab_log)
icon = QtGui.QIcon.fromTheme("edit-clear")
self.bt_clear_logs.setIcon(icon)
self.bt_clear_logs.setObjectName("bt_clear_logs")
self.horizontalLayout.addWidget(self.bt_clear_logs)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem4)
self.gridLayout_4.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_log, "")
self.verticalLayout.addWidget(self.tabWidget)
self.label = QtWidgets.QLabel(Dialog)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.retranslateUi(Dialog)
self.tabWidget.setCurrentIndex(4)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "About HackEdit"))
self.lbl_icon.setText(_translate("Dialog", "<html><head/><body><p align=\"center\"><img src=\":/icons/hackedit_128.png\"/></p></body></html>"))
self.lbl_version.setText(_translate("Dialog", "<html><head/><body><p align=\"center\"><span style=\" font-size:28pt; font-weight:600;\">HackEdit</span></p><p align=\"center\"><span style=\" font-weight:600;\">v%s</span></p></body></html>"))
self.lbl_copyright.setText(_translate("Dialog", "<html><head/><body><p align=\"center\"><span style=\" font-size:12pt;\">The hackable IDE, build with </span><a href=\"https://www.python.org/\"><span style=\" font-size:12pt; text-decoration: underline; color:#2980b9;\">Python3</span></a><span style=\" font-size:12pt;\">, </span><a href=\"http://www.riverbankcomputing.com/software/pyqt/download5\"><span style=\" font-size:12pt; text-decoration: underline; color:#2980b9;\">PyQt5</span></a><span style=\" font-size:12pt;\"> and </span><a href=\"https://github.com/pyQode/pyQode\"><span style=\" font-size:12pt; text-decoration: underline; color:#2980b9;\">pyQode</span></a><span style=\" font-size:12pt;\">.</span></p><p align=\"center\"><br/></p><p align=\"center\"><span style=\" font-family:\'Cantarell\'; font-size:9pt; font-style:italic;\">The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE.</span></p><p align=\"center\"><br/></p><p align=\"center\"><a href=\"https://github.com/HackEdit/hackedit\"><span style=\" text-decoration: underline; color:#2980b9;\">View on github</span></a></p></body></html>"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_about), _translate("Dialog", "About"))
self.text_authors.setHtml(_translate("Dialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Droid Sans\'; font-size:10pt; font-weight:600;\">Main authors:</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:10pt;\">- </span><a href=\"mailto:colin.duquesnoy@gmail.com\"><span style=\" font-family:\'Ubuntu\'; font-size:10pt; text-decoration: underline; color:#2980b9;\">Colin Duquesnoy </span></a><span style=\" font-family:\'Ubuntu\'; font-size:10pt;\">(developer)</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:10pt; text-decoration: underline; color:#0000ff;\"><br /></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:10pt; font-weight:600;\">Contributors:</span></p>\n"
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:10pt;\">- </span><a href=\"mailto:thiry.celi@gmail.com\"><span style=\" font-family:\'Ubuntu\'; font-size:10pt; text-decoration: underline; color:#2980b9;\">Céline Thiry </span></a><span style=\" font-family:\'Ubuntu\'; font-size:10pt;\">(icon/splashscreen designer)</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:10pt;\"><br /></p></body></html>"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_authors), _translate("Dialog", "Authors"))
self.edit_license.setHtml(_translate("Dialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">GNU GENERAL PUBLIC LICENSE</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:131072;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Version 2, June 1991</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/></span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Everyone is permitted to copy and distribute verbatim copies</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">of this license document, but changing it is not allowed.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Preamble</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> The licenses for most software are designed to take away your</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">freedom to share and change it. By contrast, the GNU General Public</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">License is intended to guarantee your freedom to share and change free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">software--to make sure the software is free for all its users. This</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">General Public License applies to most of the Free Software</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Foundation\'s software and to any other program whose authors commit to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">using it. (Some other Free Software Foundation software is covered by</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the GNU Lesser General Public License instead.) You can apply it to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">your programs, too.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> When we speak of free software, we are referring to freedom, not</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">price. Our General Public Licenses are designed to make sure that you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">have the freedom to distribute copies of free software (and charge for</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">this service if you wish), that you receive source code or can get it</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">if you want it, that you can change the software or use pieces of it</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">in new free programs; and that you know you can do these things.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> To protect your rights, we need to make restrictions that forbid</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">anyone to deny you these rights or to ask you to surrender the rights.</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">These restrictions translate to certain responsibilities for you if you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute copies of the software, or if you modify it.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> For example, if you distribute copies of such a program, whether</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">gratis or for a fee, you must give the recipients all the rights that</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">you have. You must make sure that they, too, receive or can get the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">source code. And you must show them these terms so they know their</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">rights.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> We protect your rights with two steps: (1) copyright the software, and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">(2) offer you this license which gives you legal permission to copy,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute and/or modify the software.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Also, for each author\'s protection and ours, we want to make certain</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">that everyone understands that there is no warranty for this free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">software. If the software is modified by someone else and passed on, we</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">want its recipients to know that what they have is not the original, so</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">that any problems introduced by others will not reflect on the original</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">authors\' reputations.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Finally, any free program is threatened constantly by software</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">patents. We wish to avoid the danger that redistributors of a free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">program will individually obtain patent licenses, in effect making the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">program proprietary. To prevent this, we have made it clear that any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">patent must be licensed for everyone\'s free use or not licensed at all.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> The precise terms and conditions for copying, distribution and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">modification follow.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> GNU GENERAL PUBLIC LICENSE</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 0. This License applies to any program or other work which contains</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">a notice placed by the copyright holder saying it may be distributed</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">under the terms of this General Public License. The "Program", below,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">refers to any such program or work, and a "work based on the Program"</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">means either the Program or any derivative work under copyright law:</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">that is to say, a work containing the Program or a portion of it,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">either verbatim or with modifications and/or translated into another</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">language. (Hereinafter, translation is included without limitation in</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the term "modification".) Each licensee is addressed as "you".</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Activities other than copying, distribution and modification are not</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">covered by this License; they are outside its scope. The act of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">running the Program is not restricted, and the output from the Program</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">is covered only if its contents constitute a work based on the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Program (independent of having been made by running the Program).</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Whether that is true depends on what the Program does.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 1. You may copy and distribute verbatim copies of the Program\'s</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">source code as you receive it, in any medium, provided that you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">conspicuously and appropriately publish on each copy an appropriate</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">copyright notice and disclaimer of warranty; keep intact all the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">notices that refer to this License and to the absence of any warranty;</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">and give any other recipients of the Program a copy of this License</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">along with the Program.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">You may charge a fee for the physical act of transferring a copy, and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">you may at your option offer warranty protection in exchange for a fee.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 2. You may modify your copy or copies of the Program or any portion</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">of it, thus forming a work based on the Program, and copy and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute such modifications or work under the terms of Section 1</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">above, provided that you also meet all of these conditions:</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> a) You must cause the modified files to carry prominent notices</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> stating that you changed the files and the date of any change.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> b) You must cause any work that you distribute or publish, that in</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> whole or in part contains or is derived from the Program or any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> part thereof, to be licensed as a whole at no charge to all third</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> parties under the terms of this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> c) If the modified program normally reads commands interactively</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> when run, you must cause it, when started running for such</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> interactive use in the most ordinary way, to print or display an</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> announcement including an appropriate copyright notice and a</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> notice that there is no warranty (or else, saying that you provide</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> a warranty) and that users may redistribute the program under</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> these conditions, and telling the user how to view a copy of this</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> License. (Exception: if the Program itself is interactive but</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> does not normally print such an announcement, your work based on</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> the Program is not required to print an announcement.)</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">These requirements apply to the modified work as a whole. If</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">identifiable sections of that work are not derived from the Program,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">and can be reasonably considered independent and separate works in</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">themselves, then this License, and its terms, do not apply to those</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">sections when you distribute them as separate works. But when you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute the same sections as part of a whole which is a work based</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">on the Program, the distribution of the whole must be on the terms of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">this License, whose permissions for other licensees extend to the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">entire whole, and thus to each and every part regardless of who wrote it.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Thus, it is not the intent of this section to claim rights or contest</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">your rights to work written entirely by you; rather, the intent is to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">exercise the right to control the distribution of derivative or</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">collective works based on the Program.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">In addition, mere aggregation of another work not based on the Program</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">with the Program (or with a work based on the Program) on a volume of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">a storage or distribution medium does not bring the other work under</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the scope of this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 3. You may copy and distribute the Program (or a work based on it,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">under Section 2) in object code or executable form under the terms of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Sections 1 and 2 above provided that you also do one of the following:</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> a) Accompany it with the complete corresponding machine-readable</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> source code, which must be distributed under the terms of Sections</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 1 and 2 above on a medium customarily used for software interchange; or,</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> b) Accompany it with a written offer, valid for at least three</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> years, to give any third party, for a charge no more than your</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> cost of physically performing source distribution, a complete</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> machine-readable copy of the corresponding source code, to be</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> distributed under the terms of Sections 1 and 2 above on a medium</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> customarily used for software interchange; or,</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> c) Accompany it with the information you received as to the offer</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> to distribute corresponding source code. (This alternative is</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> allowed only for noncommercial distribution and only if you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> received the program in object code or executable form with such</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> an offer, in accord with Subsection b above.)</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">The source code for a work means the preferred form of the work for</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">making modifications to it. For an executable work, complete source</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">code means all the source code for all modules it contains, plus any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">associated interface definition files, plus the scripts used to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">control compilation and installation of the executable. However, as a</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">special exception, the source code distributed need not include</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">anything that is normally distributed (in either source or binary</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">form) with the major components (compiler, kernel, and so on) of the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">operating system on which the executable runs, unless that component</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">itself accompanies the executable.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">If distribution of executable or object code is made by offering</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">access to copy from a designated place, then offering equivalent</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">access to copy the source code from the same place counts as</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribution of the source code, even though third parties are not</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">compelled to copy the source along with the object code.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 4. You may not copy, modify, sublicense, or distribute the Program</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">except as expressly provided under this License. Any attempt</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">otherwise to copy, modify, sublicense or distribute the Program is</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">void, and will automatically terminate your rights under this License.</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">However, parties who have received copies, or rights, from you under</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">this License will not have their licenses terminated so long as such</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">parties remain in full compliance.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 5. You are not required to accept this License, since you have not</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">signed it. However, nothing else grants you permission to modify or</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute the Program or its derivative works. These actions are</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">prohibited by law if you do not accept this License. Therefore, by</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">modifying or distributing the Program (or any work based on the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Program), you indicate your acceptance of this License to do so, and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">all its terms and conditions for copying, distributing or modifying</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the Program or works based on it.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 6. Each time you redistribute the Program (or any work based on the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Program), the recipient automatically receives a license from the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">original licensor to copy, distribute or modify the Program subject to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">these terms and conditions. You may not impose any further</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">restrictions on the recipients\' exercise of the rights granted herein.</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">You are not responsible for enforcing compliance by third parties to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 7. If, as a consequence of a court judgment or allegation of patent</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">infringement or for any other reason (not limited to patent issues),</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">conditions are imposed on you (whether by court order, agreement or</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">otherwise) that contradict the conditions of this License, they do not</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">excuse you from the conditions of this License. If you cannot</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">distribute so as to satisfy simultaneously your obligations under this</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">License and any other pertinent obligations, then as a consequence you</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">may not distribute the Program at all. For example, if a patent</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">license would not permit royalty-free redistribution of the Program by</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">all those who receive copies directly or indirectly through you, then</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the only way you could satisfy both it and this License would be to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">refrain entirely from distribution of the Program.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">If any portion of this section is held invalid or unenforceable under</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">any particular circumstance, the balance of the section is intended to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">apply and the section as a whole is intended to apply in other</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">circumstances.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">It is not the purpose of this section to induce you to infringe any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">patents or other property right claims or to contest validity of any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">such claims; this section has the sole purpose of protecting the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">integrity of the free software distribution system, which is</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">implemented by public license practices. Many people have made</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">generous contributions to the wide range of software distributed</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">through that system in reliance on consistent application of that</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">system; it is up to the author/donor to decide if he or she is willing</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">to distribute software through any other system and a licensee cannot</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">impose that choice.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">This section is intended to make thoroughly clear what is believed to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">be a consequence of the rest of this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 8. If the distribution and/or use of the Program is restricted in</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">certain countries either by patents or by copyrighted interfaces, the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">original copyright holder who places the Program under this License</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">may add an explicit geographical distribution limitation excluding</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">those countries, so that distribution is permitted only in or among</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">countries not thus excluded. In such case, this License incorporates</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the limitation as if written in the body of this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 9. The Free Software Foundation may publish revised and/or new versions</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">of the General Public License from time to time. Such new versions will</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">be similar in spirit to the present version, but may differ in detail to</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">address new problems or concerns.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Each version is given a distinguishing version number. If the Program</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">specifies a version number of this License which applies to it and "any</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">later version", you have the option of following the terms and conditions</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">either of that version or of any later version published by the Free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Software Foundation. If the Program does not specify a version number of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">this License, you may choose any version ever published by the Free Software</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Foundation.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 10. If you wish to incorporate parts of the Program into other free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">programs whose distribution conditions are different, write to the author</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">to ask for permission. For software which is copyrighted by the Free</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Software Foundation, write to the Free Software Foundation; we sometimes</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">make exceptions for this. Our decision will be guided by the two goals</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">of preserving the free status of all derivatives of our free software and</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">of promoting the sharing and reuse of software generally.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> NO WARRANTY</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">REPAIR OR CORRECTION.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">POSSIBILITY OF SUCH DAMAGES.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67174400;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> END OF TERMS AND CONDITIONS</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:131072;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> How to Apply These Terms to Your New Programs</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> If you develop a new program, and you want it to be of the greatest</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">possible use to the public, the best way to achieve this is to make it</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">free software which everyone can redistribute and change under these terms.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> To do so, attach the following notices to the program. It is safest</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">to attach them to the start of each source file to most effectively</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">convey the exclusion of warranty; and each file should have at least</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">the "copyright" line and a pointer to where the full notice is found.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> {description}</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Copyright (C) {year} {fullname}</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> This program is free software; you can redistribute it and/or modify</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> it under the terms of the GNU General Public License as published by</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> the Free Software Foundation; either version 2 of the License, or</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> (at your option) any later version.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> This program is distributed in the hope that it will be useful,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> GNU General Public License for more details.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> You should have received a copy of the GNU General Public License along</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> with this program; if not, write to the Free Software Foundation, Inc.,</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Also add information on how to contact you by electronic and paper mail.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">If the program is interactive, make it output a short notice like this</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:67108864;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">when it starts in an interactive mode:</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Gnomovision version 69, Copyright (C) year name of author</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w\'.</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> This is free software, and you are welcome to redistribute it</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:65536;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> under certain conditions; type `show c\' for details.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">The hypothetical commands `show w\' and `show c\' should show the appropriate</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">parts of the General Public License. Of course, the commands you use may</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">be called something other than `show w\' and `show c\'; they could even be</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">mouse-clicks or menu items--whatever suits your program.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">You should also get your employer (if you work as a programmer) or your</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">school, if any, to sign a "copyright disclaimer" for the program, if</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">necessary. Here is a sample; alter the names:</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Yoyodyne, Inc., hereby disclaims all copyright interest in the program</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> `Gnomovision\' (which makes passes at compilers) written by James Hacker.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> {signature of Ty Coon}, 1 April 1989</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\"> Ty Coon, President of Vice</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">This General Public License does not permit incorporating your program into</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">proprietary programs. If your program is a subroutine library, you may</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">consider it more useful to permit linking proprietary applications with the</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">library. If this is what you want to do, use the GNU Lesser General</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;\"><span style=\" font-family:\'Ubuntu\'; font-size:8pt;\">Public License instead of this License.</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:8pt;\"><br /></p></body></html>"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_license), _translate("Dialog", "License"))
item = self.table_versions.horizontalHeaderItem(0)
item.setText(_translate("Dialog", "Version"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_versions), _translate("Dialog", "Versions"))
self.label_2.setText(_translate("Dialog", "Log level:"))
self.combo_log_level.setItemText(0, _translate("Dialog", "ERROR"))
self.combo_log_level.setItemText(1, _translate("Dialog", "WARNING"))
self.combo_log_level.setItemText(2, _translate("Dialog", "INFO"))
self.combo_log_level.setItemText(3, _translate("Dialog", "DEBUG"))
self.combo_log_level.setItemText(4, _translate("Dialog", "PYQODE_DEBUG"))
self.bt_clear_logs.setText(_translate("Dialog", "Clear logs"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_log), _translate("Dialog", "Log"))
self.label.setText(_translate("Dialog", "Copyright 2015 Colin Duquesnoy. All rights reserved."))
from . import hackedit_rc
| 206.244318
| 1,215
| 0.697567
| 17,511
| 108,897
| 4.326538
| 0.053395
| 0.121882
| 0.073705
| 0.092131
| 0.776629
| 0.762453
| 0.757411
| 0.750614
| 0.747525
| 0.743631
| 0
| 0.033213
| 0.085383
| 108,897
| 527
| 1,216
| 206.635674
| 0.727457
| 0.002048
| 0
| 0.132039
| 1
| 0.182524
| 0.341079
| 0.01881
| 0
| 0
| 0
| 0
| 0
| 1
| 0.003884
| false
| 0.003884
| 0.003884
| 0
| 0.009709
| 0.005825
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9e6234415fe6196ab8c95e72b67bacd019367cbc
| 188
|
py
|
Python
|
pvfit/measurement/demos/getting_started_test.py
|
markcampanelli/pvfit
|
e526f3757279a3f8c41295aab94c1575ee9485fc
|
[
"MIT"
] | 4
|
2019-09-17T15:19:17.000Z
|
2021-11-24T03:21:03.000Z
|
pvfit/measurement/demos/getting_started_test.py
|
markcampanelli/pvfit-m
|
6e2b9e0797b40de8eb587ec50102421cd2071b9e
|
[
"MIT"
] | 10
|
2019-08-09T15:40:51.000Z
|
2019-09-06T06:06:20.000Z
|
pvfit/measurement/demos/getting_started_test.py
|
markcampanelli/pvfit-m
|
6e2b9e0797b40de8eb587ec50102421cd2071b9e
|
[
"MIT"
] | 2
|
2019-08-13T18:44:01.000Z
|
2019-08-14T13:42:32.000Z
|
import os
def test_getting_started():
"""Test that getting started script runs without error."""
exec(open(os.path.join(os.path.dirname(__file__), "getting_started.py")).read())
| 26.857143
| 84
| 0.718085
| 27
| 188
| 4.740741
| 0.703704
| 0.328125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 188
| 6
| 85
| 31.333333
| 0.780488
| 0.276596
| 0
| 0
| 0
| 0
| 0.138462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
9e76acb8807940758a66a76bdbe8fbe552f40d99
| 49,379
|
py
|
Python
|
data/transcoder_evaluation_gfg/python/CIRCULAR_MATRIX_CONSTRUCT_A_MATRIX_WITH_NUMBERS_1_TO_MN_IN_SPIRAL_WAY.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 241
|
2021-07-20T08:35:20.000Z
|
2022-03-31T02:39:08.000Z
|
data/transcoder_evaluation_gfg/python/CIRCULAR_MATRIX_CONSTRUCT_A_MATRIX_WITH_NUMBERS_1_TO_MN_IN_SPIRAL_WAY.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 49
|
2021-07-22T23:18:42.000Z
|
2022-03-24T09:15:26.000Z
|
data/transcoder_evaluation_gfg/python/CIRCULAR_MATRIX_CONSTRUCT_A_MATRIX_WITH_NUMBERS_1_TO_MN_IN_SPIRAL_WAY.py
|
mxl1n/CodeGen
|
e5101dd5c5e9c3720c70c80f78b18f13e118335a
|
[
"MIT"
] | 71
|
2021-07-21T05:17:52.000Z
|
2022-03-29T23:49:28.000Z
|
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( m , n , a ) :
val = 1
k , l = 0 , 0
while ( k < m and l < n ) :
for i in range ( l , n ) :
a [ k ] [ i ] = val
val += 1
k += 1
for i in range ( k , m ) :
a [ i ] [ n - 1 ] = val
val += 1
n -= 1
if ( k < m ) :
for i in range ( n - 1 , l - 1 , - 1 ) :
a [ m - 1 ] [ i ] = val
val += 1
m -= 1
if ( l < n ) :
for i in range ( m - 1 , k - 1 , - 1 ) :
a [ i ] [ l ] = val
val += 1
l += 1
#TOFILL
if __name__ == '__main__':
param = [
(5,4,[[8, 34, 35, 51, 67, 92, 96, 97], [16, 32, 37, 46, 54, 68, 78, 88], [7, 14, 48, 55, 74, 82, 85, 95], [7, 19, 19, 23, 29, 33, 36, 85], [1, 2, 11, 20, 47, 60, 69, 82], [2, 5, 12, 20, 37, 38, 67, 87], [9, 24, 44, 53, 86, 94, 98, 99], [30, 59, 74, 81, 81, 81, 87, 96]],),
(7,8,[[-75, 3, -78, -96, 54, 86, -71, 9, -2, -63, -25, -30, 46, 28], [-15, -58, 0, -59, 66, -66, -83, 65, 53, 22, -24, -13, 17, 6], [-14, -73, -43, -69, 34, 68, -2, -88, -47, 99, 38, 73, 45, 54], [90, 22, -54, -36, 30, -46, 7, 93, -49, 81, -64, 15, -74, -71], [49, -89, -60, -89, 64, 13, 87, -61, -46, -2, -45, 11, 52, 50], [-31, -44, -67, -64, 48, -19, 90, 9, 54, 94, -27, -60, -83, 29], [-39, 71, 4, -58, -75, -61, -65, 31, 8, 72, 79, 2, -2, -88], [-81, 1, -56, 87, -51, 89, -83, -26, -43, -45, -53, -88, -38, -20], [-17, -92, 49, -19, 18, 98, -75, -11, -88, 43, -41, 54, 9, -74], [-53, -68, -90, -84, 99, 45, 51, -74, -14, 35, -86, -21, 17, -93], [37, 15, 76, -28, -41, -18, 16, 67, 46, 87, 3, -83, -86, 59], [52, 8, 88, -55, -2, 31, -63, 71, 68, 83, 8, -61, -85, 20], [-96, -7, 53, 41, 61, -84, 70, 8, 26, 94, -45, 70, -66, 58], [-87, 41, -82, 60, -4, 23, -61, -54, -71, 90, -38, 85, -84, 84]],),
(36,31,[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],),
(34,36,[[89, 85, 12, 61, 41, 33, 50, 68, 71, 86, 33, 81, 24, 61, 61, 98, 28, 58, 43, 41, 39, 86, 49, 17, 98, 70, 70, 98, 65, 74, 85, 5, 2, 22, 57, 66, 74], [98, 16, 51, 39, 86, 76, 88, 40, 38, 60, 59, 10, 99, 64, 63, 49, 64, 32, 7, 21, 20, 26, 68, 86, 15, 85, 79, 86, 92, 14, 27, 40, 58, 28, 26, 63, 66], [25, 3, 72, 44, 97, 42, 99, 6, 39, 52, 23, 89, 50, 43, 19, 69, 51, 11, 12, 74, 8, 24, 92, 41, 36, 85, 72, 55, 9, 47, 15, 48, 82, 42, 60, 84, 70], [12, 2, 7, 80, 3, 3, 27, 40, 33, 92, 1, 8, 32, 48, 4, 94, 70, 19, 32, 9, 12, 11, 46, 16, 1, 63, 21, 30, 13, 34, 4, 28, 95, 59, 27, 69, 25], [3, 97, 68, 25, 20, 34, 26, 5, 99, 61, 92, 93, 9, 50, 6, 83, 60, 44, 11, 66, 47, 73, 85, 88, 98, 86, 3, 76, 92, 30, 90, 21, 28, 90, 62, 33, 85], [35, 52, 34, 41, 51, 47, 82, 58, 75, 57, 23, 48, 22, 17, 69, 11, 94, 15, 91, 35, 33, 84, 16, 34, 66, 99, 40, 28, 47, 39, 70, 73, 20, 1, 72, 87, 63], [67, 4, 58, 25, 47, 38, 15, 63, 21, 99, 57, 53, 46, 14, 76, 17, 39, 9, 99, 77, 79, 82, 97, 6, 91, 23, 59, 91, 98, 46, 38, 14, 72, 62, 35, 19, 30], [78, 84, 25, 40, 88, 14, 26, 87, 22, 48, 83, 51, 3, 42, 19, 73, 28, 84, 45, 71, 78, 63, 73, 19, 47, 14, 38, 53, 61, 36, 40, 81, 30, 9, 64, 33, 52], [89, 14, 75, 53, 99, 59, 78, 94, 41, 68, 68, 92, 8, 2, 86, 41, 55, 16, 93, 62, 48, 30, 12, 35, 11, 64, 50, 85, 21, 69, 48, 20, 67, 44, 33, 73, 61], [9, 68, 35, 81, 98, 88, 96, 65, 8, 45, 87, 47, 40, 76, 54, 76, 46, 47, 15, 19, 26, 52, 93, 22, 21, 51, 38, 20, 29, 51, 4, 55, 71, 92, 28, 4, 22], [76, 45, 67, 86, 66, 88, 34, 91, 55, 1, 72, 87, 38, 6, 86, 25, 82, 17, 61, 12, 6, 90, 27, 8, 83, 65, 57, 93, 99, 40, 14, 35, 48, 84, 56, 49, 13], [61, 49, 46, 62, 8, 43, 20, 97, 90, 39, 85, 49, 64, 62, 54, 9, 88, 37, 49, 41, 17, 88, 21, 51, 59, 39, 55, 41, 39, 13, 64, 11, 19, 11, 77, 46, 45], [1, 40, 19, 76, 72, 72, 61, 12, 61, 33, 45, 90, 92, 69, 8, 25, 91, 46, 87, 30, 47, 87, 49, 47, 84, 82, 18, 66, 68, 94, 33, 36, 82, 19, 28, 40, 84], [97, 76, 15, 41, 39, 2, 63, 29, 74, 66, 51, 75, 77, 10, 14, 82, 51, 73, 39, 28, 3, 84, 70, 27, 2, 93, 38, 3, 16, 94, 40, 2, 81, 41, 12, 35, 65], [55, 45, 79, 90, 85, 62, 49, 95, 25, 23, 24, 38, 28, 21, 54, 18, 36, 99, 45, 73, 53, 30, 60, 98, 32, 67, 67, 28, 44, 79, 41, 63, 23, 75, 48, 32, 57], [33, 24, 39, 34, 56, 28, 37, 7, 68, 37, 56, 65, 65, 47, 20, 19, 29, 74, 60, 18, 92, 35, 43, 95, 91, 11, 49, 38, 64, 69, 8, 34, 48, 56, 76, 65, 31], [4, 50, 69, 30, 88, 59, 67, 75, 45, 4, 26, 27, 46, 64, 91, 51, 50, 6, 59, 15, 30, 42, 37, 42, 35, 87, 6, 68, 18, 73, 29, 77, 59, 47, 17, 96, 22], [68, 69, 37, 49, 13, 34, 86, 53, 87, 51, 3, 42, 98, 32, 51, 85, 46, 21, 44, 11, 68, 1, 92, 63, 24, 99, 13, 98, 11, 51, 17, 99, 82, 86, 24, 19, 37], [85, 8, 28, 5, 17, 36, 19, 64, 91, 98, 11, 54, 45, 47, 12, 21, 11, 92, 5, 81, 56, 20, 41, 46, 12, 70, 17, 19, 26, 48, 52, 96, 70, 55, 75, 33, 62], [88, 23, 15, 27, 75, 64, 81, 51, 53, 78, 91, 82, 92, 51, 47, 4, 7, 35, 48, 73, 72, 45, 81, 81, 97, 96, 72, 19, 63, 38, 67, 59, 69, 13, 47, 61, 31], [80, 96, 22, 93, 86, 43, 67, 54, 10, 42, 64, 21, 80, 76, 66, 41, 24, 35, 56, 30, 57, 94, 47, 35, 19, 8, 26, 71, 30, 7, 67, 65, 36, 25, 37, 1, 15], [37, 13, 8, 5, 60, 73, 1, 36, 35, 66, 63, 23, 9, 34, 46, 78, 4, 30, 95, 75, 99, 72, 3, 14, 60, 77, 45, 96, 34, 45, 61, 83, 16, 66, 40, 17, 34], [16, 60, 66, 66, 90, 13, 56, 31, 34, 39, 67, 8, 87, 78, 55, 27, 93, 53, 39, 65, 17, 30, 53, 13, 21, 19, 53, 19, 57, 25, 86, 31, 81, 55, 23, 32, 62], [74, 10, 72, 54, 52, 20, 32, 14, 50, 28, 53, 24, 79, 22, 30, 63, 4, 77, 59, 87, 8, 82, 12, 31, 78, 34, 82, 98, 75, 76, 49, 79, 57, 95, 93, 26, 18], [96, 86, 38, 81, 87, 88, 50, 8, 41, 6, 69, 44, 64, 29, 28, 11, 65, 19, 9, 27, 34, 44, 68, 82, 15, 51, 13, 83, 49, 70, 56, 76, 51, 37, 17, 58, 87], [90, 29, 33, 60, 91, 89, 55, 10, 47, 23, 85, 21, 13, 33, 24, 11, 17, 68, 47, 25, 94, 73, 21, 84, 83, 83, 12, 37, 42, 17, 48, 28, 41, 99, 47, 18, 78], [99, 71, 13, 82, 13, 31, 2, 16, 9, 73, 38, 75, 54, 56, 86, 97, 87, 45, 34, 9, 88, 8, 7, 36, 18, 3, 28, 70, 44, 21, 28, 54, 54, 65, 21, 99, 13], [57, 49, 54, 10, 53, 44, 47, 53, 74, 46, 13, 37, 24, 2, 86, 81, 14, 10, 35, 25, 3, 17, 12, 54, 24, 29, 43, 25, 60, 90, 65, 84, 28, 16, 47, 81, 92], [58, 76, 27, 53, 42, 59, 47, 94, 34, 37, 6, 7, 96, 96, 25, 33, 55, 58, 7, 57, 12, 16, 80, 43, 77, 7, 51, 73, 32, 75, 8, 97, 87, 89, 72, 45, 86], [59, 4, 67, 29, 29, 98, 98, 28, 77, 79, 87, 44, 90, 4, 90, 9, 5, 56, 96, 84, 50, 75, 15, 32, 28, 22, 17, 59, 90, 71, 57, 26, 25, 10, 45, 83, 11], [77, 53, 72, 68, 95, 28, 75, 65, 49, 47, 52, 88, 54, 60, 57, 47, 31, 46, 26, 5, 84, 52, 75, 54, 33, 50, 38, 27, 98, 15, 96, 61, 21, 46, 69, 6, 38], [62, 86, 62, 82, 78, 74, 46, 13, 95, 94, 3, 94, 6, 93, 8, 44, 33, 81, 75, 77, 50, 11, 95, 28, 70, 41, 16, 68, 99, 48, 56, 64, 59, 90, 62, 76, 11], [89, 18, 19, 87, 55, 82, 26, 6, 4, 29, 59, 98, 17, 43, 80, 66, 34, 8, 13, 8, 94, 96, 94, 65, 43, 39, 81, 59, 84, 88, 86, 93, 86, 44, 9, 37, 74], [36, 92, 28, 42, 43, 85, 88, 42, 66, 55, 72, 48, 91, 22, 27, 93, 67, 13, 45, 10, 9, 54, 27, 34, 1, 32, 89, 93, 71, 67, 84, 20, 94, 35, 99, 91, 90], [78, 17, 18, 45, 93, 84, 53, 91, 82, 68, 65, 1, 58, 26, 20, 87, 10, 59, 75, 41, 5, 65, 17, 22, 98, 41, 93, 68, 69, 11, 56, 51, 21, 99, 76, 26, 19], [60, 71, 47, 71, 26, 40, 5, 21, 78, 4, 23, 84, 15, 93, 8, 41, 19, 46, 28, 91, 68, 15, 99, 37, 1, 67, 24, 27, 40, 63, 61, 36, 98, 93, 24, 24, 4], [67, 34, 57, 49, 87, 53, 23, 69, 95, 53, 62, 41, 57, 60, 54, 70, 57, 10, 40, 7, 38, 85, 61, 84, 3, 51, 86, 47, 68, 92, 76, 38, 36, 41, 69, 13, 87]],),
(28,19,[[-91, -90, -84, -84, -83, -78, -75, -69, -68, -61, -53, -52, -46, -41, -32, 11, 12, 18, 23, 26, 39, 49, 53, 55, 62, 70, 79, 80, 85, 87], [-99, -85, -64, -49, -43, -35, -30, -27, -19, -19, -12, -4, 1, 2, 4, 22, 23, 23, 26, 27, 41, 49, 51, 62, 67, 67, 69, 91, 94, 98], [-97, -94, -85, -68, -57, -51, -48, -42, -37, -35, -24, -22, -19, -19, -17, -16, -4, 0, 9, 12, 13, 16, 28, 46, 63, 75, 83, 92, 95, 96], [-87, -86, -73, -67, -57, -41, -36, -20, -20, -17, -17, -11, -5, 21, 23, 32, 34, 34, 47, 48, 57, 62, 68, 72, 77, 89, 90, 93, 96, 97], [-98, -95, -93, -88, -84, -78, -73, -47, -43, -43, -28, -28, -25, -17, -3, 13, 14, 15, 19, 20, 24, 26, 33, 34, 40, 45, 51, 79, 84, 95], [-86, -81, -76, -71, -67, -67, -53, -50, -46, -41, -38, -31, -22, -21, -16, 12, 18, 20, 23, 28, 35, 41, 47, 48, 56, 67, 82, 94, 96, 97], [-98, -94, -90, -83, -76, -65, -43, -42, -38, -38, -37, -34, -31, -29, -26, -18, -18, -11, -2, 5, 24, 31, 36, 56, 57, 69, 69, 77, 77, 97], [-90, -80, -78, -73, -66, -61, -59, -52, -47, -34, -33, -30, -27, -16, -4, 0, 8, 11, 34, 47, 48, 50, 54, 57, 58, 66, 71, 82, 83, 87], [-98, -93, -90, -78, -75, -72, -55, -52, -51, -47, -41, -41, -35, -32, -21, -17, -2, 0, 13, 23, 37, 49, 50, 54, 57, 58, 64, 79, 93, 96], [-94, -85, -73, -68, -54, -46, -27, -27, -26, -17, -15, -7, 6, 11, 14, 23, 27, 29, 32, 38, 45, 53, 55, 56, 60, 63, 64, 66, 76, 78], [-83, -66, -61, -60, -59, -57, -57, -53, -42, -39, -38, -37, -31, -25, -8, 10, 11, 13, 21, 47, 51, 54, 61, 68, 70, 76, 78, 78, 80, 95], [-92, -84, -81, -72, -62, -61, -52, -37, -35, -27, -23, -18, -18, -11, -9, -6, -3, 2, 7, 13, 20, 27, 31, 34, 38, 64, 74, 79, 87, 88], [-98, -96, -82, -63, -63, -44, -42, -39, -37, -21, -18, -15, -8, -2, 7, 7, 14, 23, 35, 37, 39, 50, 64, 68, 82, 85, 86, 87, 88, 89], [-97, -79, -65, -62, -53, -46, -45, -32, -31, -17, -16, -15, -12, -8, 2, 7, 9, 21, 29, 29, 29, 33, 40, 57, 66, 88, 95, 96, 96, 99], [-94, -79, -77, -73, -68, -64, -61, -54, -48, -45, -45, -44, -42, -39, -39, -37, -20, -12, -4, -3, 6, 9, 10, 13, 22, 33, 37, 53, 53, 77], [-95, -82, -71, -65, -61, -55, -54, -43, -24, -15, -13, -13, 4, 8, 12, 16, 18, 27, 34, 41, 45, 50, 51, 58, 60, 65, 69, 70, 94, 95], [-89, -81, -72, -67, -67, -53, -28, -6, 7, 15, 18, 22, 26, 26, 27, 37, 38, 43, 47, 50, 52, 56, 58, 60, 62, 64, 67, 70, 75, 90], [-93, -87, -83, -74, -74, -61, -52, -51, -39, -36, -31, -29, -26, -12, -7, -2, 28, 29, 41, 57, 57, 62, 68, 75, 76, 77, 78, 93, 95, 95], [-83, -75, -75, -74, -71, -51, -47, -46, -44, -42, -38, -35, -27, -20, -14, -7, 3, 8, 17, 18, 20, 24, 31, 44, 56, 60, 69, 71, 79, 93], [-94, -85, -78, -70, -64, -52, -51, -43, -43, -21, -17, 4, 16, 28, 31, 36, 39, 46, 47, 57, 69, 73, 73, 74, 79, 81, 85, 94, 94, 99], [-97, -80, -60, -55, -51, -41, -40, -38, -38, -36, -34, -33, -25, -23, -21, -18, -17, -9, -4, 7, 16, 22, 23, 30, 32, 37, 58, 82, 83, 92], [-91, -71, -61, -56, -52, -42, -42, -41, -39, -38, -29, -8, -8, -1, 1, 12, 24, 27, 31, 34, 36, 44, 45, 53, 57, 59, 64, 73, 86, 92], [-98, -92, -89, -87, -84, -79, -64, -60, -56, -46, -43, -41, -38, -36, -24, -20, -19, -10, -6, 4, 15, 30, 38, 39, 40, 70, 70, 78, 87, 89], [-87, -78, -77, -77, -62, -39, -38, -38, -30, -26, -16, -10, 0, 10, 13, 19, 22, 28, 29, 32, 35, 46, 49, 55, 56, 66, 73, 81, 95, 95], [-99, -95, -78, -72, -54, -44, -40, -37, -30, -23, -21, -16, -4, 1, 4, 10, 20, 25, 34, 36, 46, 49, 57, 61, 63, 65, 76, 78, 87, 99], [-98, -92, -87, -80, -73, -69, -65, -62, -57, -52, -39, -25, -9, -9, -5, 9, 13, 25, 40, 43, 44, 49, 58, 63, 76, 82, 82, 87, 89, 95], [-97, -81, -75, -71, -65, -39, -39, -32, -26, -17, -15, -14, -1, 0, 14, 25, 27, 38, 52, 53, 59, 60, 66, 71, 71, 77, 83, 86, 94, 97], [-88, -86, -80, -72, -68, -52, -50, -49, -45, -41, -13, 10, 13, 20, 32, 33, 39, 39, 46, 49, 52, 53, 55, 66, 70, 82, 83, 89, 91, 97], [-96, -79, -41, -41, -36, -35, -29, -25, -17, -13, -11, -7, 4, 12, 19, 33, 42, 43, 48, 50, 50, 61, 69, 72, 74, 75, 78, 78, 82, 93], [-92, -88, -87, -80, -74, -71, -64, -63, -60, -60, -57, -57, -34, -34, -25, -10, -6, 8, 18, 28, 31, 48, 50, 56, 58, 66, 68, 77, 82, 84]],),
(13,16,[[1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1], [0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1], [1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1], [1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1], [1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0], [1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0], [0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0], [1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0], [1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0], [0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1], [0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1], [1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0], [1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0]],),
(27,33,[[1, 6, 13, 17, 19, 21, 28, 28, 28, 32, 36, 37, 38, 42, 43, 48, 49, 52, 56, 56, 58, 58, 58, 60, 63, 66, 66, 68, 81, 82, 83, 83, 86, 90, 99], [4, 5, 9, 10, 14, 15, 16, 20, 24, 24, 25, 26, 27, 27, 31, 34, 38, 40, 56, 58, 63, 64, 67, 67, 67, 72, 73, 76, 76, 80, 80, 83, 88, 88, 97], [1, 3, 4, 12, 15, 21, 26, 30, 34, 35, 38, 44, 46, 47, 48, 49, 50, 52, 53, 55, 62, 66, 76, 79, 84, 84, 85, 86, 87, 87, 87, 89, 89, 95, 97], [5, 5, 10, 18, 21, 21, 23, 25, 37, 40, 47, 52, 53, 55, 56, 59, 59, 61, 64, 64, 67, 68, 69, 70, 72, 73, 75, 86, 87, 88, 89, 91, 92, 93, 99], [1, 1, 2, 11, 22, 30, 31, 34, 39, 40, 51, 52, 54, 55, 56, 58, 60, 61, 63, 63, 64, 65, 65, 72, 73, 76, 76, 77, 85, 89, 90, 92, 92, 94, 95], [6, 6, 8, 13, 13, 14, 15, 17, 17, 17, 21, 22, 27, 31, 35, 35, 38, 38, 42, 45, 47, 54, 54, 60, 61, 62, 69, 72, 78, 79, 80, 81, 81, 90, 99], [4, 5, 6, 7, 13, 14, 15, 17, 18, 19, 19, 20, 20, 23, 26, 32, 34, 35, 35, 35, 44, 44, 47, 48, 49, 58, 59, 63, 64, 70, 78, 81, 86, 89, 90], [3, 4, 8, 13, 14, 15, 16, 17, 24, 24, 28, 31, 31, 32, 36, 37, 40, 43, 45, 50, 58, 59, 61, 62, 65, 66, 68, 70, 71, 79, 80, 90, 92, 96, 99], [4, 6, 6, 8, 15, 18, 18, 23, 23, 30, 32, 39, 40, 43, 45, 45, 56, 57, 60, 66, 69, 69, 71, 73, 73, 74, 74, 80, 84, 93, 93, 94, 96, 98, 99], [3, 4, 5, 6, 9, 11, 11, 14, 17, 18, 22, 22, 23, 32, 35, 41, 43, 60, 63, 63, 65, 67, 68, 70, 73, 74, 76, 77, 81, 83, 84, 86, 87, 96, 97], [2, 7, 10, 11, 21, 25, 25, 25, 28, 30, 41, 42, 45, 47, 47, 48, 58, 64, 64, 69, 74, 75, 76, 78, 78, 81, 83, 85, 86, 87, 94, 98, 98, 99, 99], [2, 4, 6, 7, 12, 13, 16, 16, 17, 18, 27, 27, 42, 43, 46, 47, 48, 54, 57, 59, 59, 60, 63, 63, 63, 72, 75, 76, 77, 79, 81, 82, 90, 90, 99], [8, 14, 15, 16, 19, 20, 21, 23, 25, 27, 28, 29, 29, 30, 36, 36, 37, 37, 46, 47, 47, 52, 52, 55, 64, 67, 69, 71, 74, 76, 77, 80, 85, 90, 93], [2, 4, 9, 13, 16, 18, 19, 19, 20, 22, 22, 30, 32, 34, 36, 36, 38, 43, 45, 50, 52, 52, 54, 57, 62, 63, 69, 70, 70, 73, 79, 82, 87, 93, 96], [2, 5, 7, 9, 10, 19, 20, 22, 31, 31, 32, 34, 35, 37, 42, 44, 53, 57, 58, 59, 60, 61, 66, 66, 68, 68, 75, 77, 83, 85, 87, 93, 94, 95, 95], [1, 2, 4, 4, 11, 12, 16, 16, 17, 19, 24, 26, 26, 31, 39, 40, 46, 47, 50, 53, 65, 71, 71, 75, 75, 81, 85, 88, 88, 92, 92, 95, 96, 96, 97], [2, 10, 12, 16, 22, 25, 27, 27, 28, 30, 37, 38, 40, 41, 42, 42, 43, 47, 49, 50, 54, 54, 57, 60, 60, 66, 67, 67, 75, 77, 80, 84, 84, 96, 97], [2, 10, 12, 12, 15, 20, 24, 27, 28, 29, 31, 32, 34, 36, 39, 40, 48, 51, 57, 60, 65, 66, 66, 66, 73, 73, 76, 78, 80, 84, 89, 90, 90, 96, 98], [10, 14, 16, 18, 18, 20, 21, 22, 22, 23, 24, 33, 34, 36, 36, 36, 38, 45, 45, 56, 58, 59, 61, 67, 68, 69, 70, 76, 78, 78, 80, 88, 89, 96, 96], [5, 12, 14, 15, 16, 17, 17, 21, 27, 31, 32, 41, 43, 44, 44, 46, 54, 54, 61, 62, 70, 71, 78, 78, 78, 79, 81, 83, 87, 87, 92, 95, 97, 98, 99], [1, 5, 13, 16, 20, 22, 25, 29, 29, 32, 35, 39, 40, 44, 45, 54, 54, 66, 69, 70, 72, 73, 75, 75, 84, 84, 87, 87, 88, 89, 90, 91, 95, 96, 99], [1, 3, 4, 8, 13, 13, 19, 20, 29, 29, 33, 35, 39, 43, 45, 46, 51, 53, 57, 58, 60, 60, 65, 66, 67, 69, 70, 73, 76, 81, 84, 84, 86, 91, 91], [9, 11, 11, 12, 19, 20, 23, 26, 26, 27, 28, 38, 39, 42, 42, 43, 43, 43, 51, 52, 53, 55, 56, 72, 72, 77, 78, 79, 83, 83, 86, 90, 92, 95, 98], [4, 6, 7, 7, 11, 12, 12, 13, 25, 26, 37, 42, 43, 46, 46, 47, 49, 51, 52, 53, 54, 57, 59, 61, 64, 65, 68, 72, 75, 80, 88, 89, 92, 96, 99], [11, 14, 17, 23, 25, 26, 28, 29, 30, 30, 35, 36, 38, 45, 45, 47, 51, 53, 54, 54, 57, 64, 64, 67, 78, 79, 80, 83, 87, 87, 89, 92, 92, 93, 97], [1, 1, 4, 4, 4, 7, 7, 8, 10, 17, 22, 24, 33, 34, 35, 36, 41, 43, 50, 50, 52, 53, 57, 60, 61, 71, 73, 74, 81, 82, 83, 89, 90, 91, 94], [4, 4, 12, 16, 17, 18, 18, 22, 27, 28, 29, 30, 30, 31, 32, 36, 37, 39, 39, 43, 46, 47, 48, 48, 50, 53, 59, 66, 71, 75, 78, 90, 90, 94, 99], [1, 2, 3, 6, 9, 12, 15, 18, 18, 19, 21, 24, 27, 29, 30, 33, 33, 39, 42, 44, 44, 52, 54, 58, 62, 70, 72, 74, 76, 86, 87, 90, 90, 94, 95], [6, 7, 9, 11, 14, 16, 22, 25, 28, 33, 37, 38, 39, 42, 43, 44, 49, 51, 55, 57, 58, 59, 66, 68, 68, 82, 82, 85, 88, 92, 93, 95, 95, 96, 98], [3, 4, 6, 8, 8, 10, 12, 15, 19, 22, 29, 29, 32, 35, 38, 39, 42, 45, 47, 53, 58, 59, 67, 69, 69, 71, 74, 77, 79, 83, 84, 87, 92, 93, 96], [1, 8, 9, 10, 12, 15, 16, 22, 24, 26, 41, 41, 44, 45, 50, 51, 56, 60, 60, 67, 67, 71, 71, 72, 77, 77, 78, 78, 80, 81, 85, 87, 89, 89, 98], [6, 6, 8, 9, 13, 18, 18, 23, 25, 26, 27, 28, 32, 36, 43, 43, 43, 46, 51, 56, 57, 59, 60, 62, 63, 67, 68, 69, 78, 84, 92, 92, 96, 97, 98], [13, 14, 19, 19, 20, 23, 24, 25, 26, 35, 43, 44, 45, 45, 45, 47, 48, 51, 53, 55, 56, 63, 65, 66, 69, 74, 75, 76, 77, 80, 82, 82, 86, 88, 94], [16, 19, 22, 26, 26, 28, 28, 33, 35, 37, 38, 40, 45, 46, 49, 52, 54, 55, 55, 59, 60, 60, 72, 76, 77, 80, 82, 85, 86, 87, 92, 92, 98, 99, 99], [6, 6, 7, 18, 21, 23, 23, 23, 25, 30, 40, 42, 43, 44, 45, 47, 48, 50, 51, 57, 64, 65, 77, 79, 82, 84, 85, 87, 87, 88, 91, 91, 91, 96, 97]],),
(8,8,[[-43, -69, -79, -10, -60, 12, -55, -23, 77], [-13, 48, 1, 17, -8, 45, -72, 69, 94], [-75, -42, -59, 34, -25, -62, 34, 73, -25], [42, -34, 68, -97, 17, -1, 52, -81, 46], [92, 16, 25, -12, -65, 90, -99, 53, 73], [77, 26, -11, 44, 47, 51, -75, -84, 82], [-27, 29, -58, 47, 62, -20, 4, 83, 46], [-66, -11, 25, -55, 34, -79, 22, -30, -4], [5, -52, -61, -69, -90, -70, -82, 88, -12]],),
(7,4,[[0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1]],),
(7,12,[[92, 70, 67, 58, 99, 82, 75, 84, 64, 69, 83, 86, 59], [60, 83, 62, 16, 88, 68, 15, 89, 55, 35, 55, 14, 49], [83, 7, 30, 83, 49, 89, 16, 51, 72, 82, 92, 80, 83], [42, 17, 63, 45, 77, 7, 27, 10, 34, 36, 25, 6, 24], [18, 87, 6, 29, 25, 55, 81, 46, 24, 75, 26, 98, 28], [3, 75, 38, 61, 78, 51, 90, 48, 21, 54, 56, 94, 59], [72, 51, 20, 96, 86, 59, 71, 9, 1, 29, 63, 72, 56], [68, 35, 3, 7, 27, 1, 91, 80, 71, 44, 87, 41, 75], [42, 33, 50, 63, 37, 59, 81, 99, 48, 5, 48, 96, 3], [47, 62, 99, 14, 63, 61, 31, 95, 17, 24, 23, 82, 50], [78, 79, 79, 70, 27, 15, 50, 36, 8, 79, 3, 62, 47], [77, 98, 88, 96, 61, 32, 94, 13, 1, 34, 62, 79, 78], [93, 98, 82, 71, 93, 31, 64, 25, 38, 14, 8, 91, 54]],)
]
filled_function_param = [
(5,4,[[8, 34, 35, 51, 67, 92, 96, 97], [16, 32, 37, 46, 54, 68, 78, 88], [7, 14, 48, 55, 74, 82, 85, 95], [7, 19, 19, 23, 29, 33, 36, 85], [1, 2, 11, 20, 47, 60, 69, 82], [2, 5, 12, 20, 37, 38, 67, 87], [9, 24, 44, 53, 86, 94, 98, 99], [30, 59, 74, 81, 81, 81, 87, 96]],),
(7,8,[[-75, 3, -78, -96, 54, 86, -71, 9, -2, -63, -25, -30, 46, 28], [-15, -58, 0, -59, 66, -66, -83, 65, 53, 22, -24, -13, 17, 6], [-14, -73, -43, -69, 34, 68, -2, -88, -47, 99, 38, 73, 45, 54], [90, 22, -54, -36, 30, -46, 7, 93, -49, 81, -64, 15, -74, -71], [49, -89, -60, -89, 64, 13, 87, -61, -46, -2, -45, 11, 52, 50], [-31, -44, -67, -64, 48, -19, 90, 9, 54, 94, -27, -60, -83, 29], [-39, 71, 4, -58, -75, -61, -65, 31, 8, 72, 79, 2, -2, -88], [-81, 1, -56, 87, -51, 89, -83, -26, -43, -45, -53, -88, -38, -20], [-17, -92, 49, -19, 18, 98, -75, -11, -88, 43, -41, 54, 9, -74], [-53, -68, -90, -84, 99, 45, 51, -74, -14, 35, -86, -21, 17, -93], [37, 15, 76, -28, -41, -18, 16, 67, 46, 87, 3, -83, -86, 59], [52, 8, 88, -55, -2, 31, -63, 71, 68, 83, 8, -61, -85, 20], [-96, -7, 53, 41, 61, -84, 70, 8, 26, 94, -45, 70, -66, 58], [-87, 41, -82, 60, -4, 23, -61, -54, -71, 90, -38, 85, -84, 84]],),
(36,31,[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]],),
(34,36,[[89, 85, 12, 61, 41, 33, 50, 68, 71, 86, 33, 81, 24, 61, 61, 98, 28, 58, 43, 41, 39, 86, 49, 17, 98, 70, 70, 98, 65, 74, 85, 5, 2, 22, 57, 66, 74], [98, 16, 51, 39, 86, 76, 88, 40, 38, 60, 59, 10, 99, 64, 63, 49, 64, 32, 7, 21, 20, 26, 68, 86, 15, 85, 79, 86, 92, 14, 27, 40, 58, 28, 26, 63, 66], [25, 3, 72, 44, 97, 42, 99, 6, 39, 52, 23, 89, 50, 43, 19, 69, 51, 11, 12, 74, 8, 24, 92, 41, 36, 85, 72, 55, 9, 47, 15, 48, 82, 42, 60, 84, 70], [12, 2, 7, 80, 3, 3, 27, 40, 33, 92, 1, 8, 32, 48, 4, 94, 70, 19, 32, 9, 12, 11, 46, 16, 1, 63, 21, 30, 13, 34, 4, 28, 95, 59, 27, 69, 25], [3, 97, 68, 25, 20, 34, 26, 5, 99, 61, 92, 93, 9, 50, 6, 83, 60, 44, 11, 66, 47, 73, 85, 88, 98, 86, 3, 76, 92, 30, 90, 21, 28, 90, 62, 33, 85], [35, 52, 34, 41, 51, 47, 82, 58, 75, 57, 23, 48, 22, 17, 69, 11, 94, 15, 91, 35, 33, 84, 16, 34, 66, 99, 40, 28, 47, 39, 70, 73, 20, 1, 72, 87, 63], [67, 4, 58, 25, 47, 38, 15, 63, 21, 99, 57, 53, 46, 14, 76, 17, 39, 9, 99, 77, 79, 82, 97, 6, 91, 23, 59, 91, 98, 46, 38, 14, 72, 62, 35, 19, 30], [78, 84, 25, 40, 88, 14, 26, 87, 22, 48, 83, 51, 3, 42, 19, 73, 28, 84, 45, 71, 78, 63, 73, 19, 47, 14, 38, 53, 61, 36, 40, 81, 30, 9, 64, 33, 52], [89, 14, 75, 53, 99, 59, 78, 94, 41, 68, 68, 92, 8, 2, 86, 41, 55, 16, 93, 62, 48, 30, 12, 35, 11, 64, 50, 85, 21, 69, 48, 20, 67, 44, 33, 73, 61], [9, 68, 35, 81, 98, 88, 96, 65, 8, 45, 87, 47, 40, 76, 54, 76, 46, 47, 15, 19, 26, 52, 93, 22, 21, 51, 38, 20, 29, 51, 4, 55, 71, 92, 28, 4, 22], [76, 45, 67, 86, 66, 88, 34, 91, 55, 1, 72, 87, 38, 6, 86, 25, 82, 17, 61, 12, 6, 90, 27, 8, 83, 65, 57, 93, 99, 40, 14, 35, 48, 84, 56, 49, 13], [61, 49, 46, 62, 8, 43, 20, 97, 90, 39, 85, 49, 64, 62, 54, 9, 88, 37, 49, 41, 17, 88, 21, 51, 59, 39, 55, 41, 39, 13, 64, 11, 19, 11, 77, 46, 45], [1, 40, 19, 76, 72, 72, 61, 12, 61, 33, 45, 90, 92, 69, 8, 25, 91, 46, 87, 30, 47, 87, 49, 47, 84, 82, 18, 66, 68, 94, 33, 36, 82, 19, 28, 40, 84], [97, 76, 15, 41, 39, 2, 63, 29, 74, 66, 51, 75, 77, 10, 14, 82, 51, 73, 39, 28, 3, 84, 70, 27, 2, 93, 38, 3, 16, 94, 40, 2, 81, 41, 12, 35, 65], [55, 45, 79, 90, 85, 62, 49, 95, 25, 23, 24, 38, 28, 21, 54, 18, 36, 99, 45, 73, 53, 30, 60, 98, 32, 67, 67, 28, 44, 79, 41, 63, 23, 75, 48, 32, 57], [33, 24, 39, 34, 56, 28, 37, 7, 68, 37, 56, 65, 65, 47, 20, 19, 29, 74, 60, 18, 92, 35, 43, 95, 91, 11, 49, 38, 64, 69, 8, 34, 48, 56, 76, 65, 31], [4, 50, 69, 30, 88, 59, 67, 75, 45, 4, 26, 27, 46, 64, 91, 51, 50, 6, 59, 15, 30, 42, 37, 42, 35, 87, 6, 68, 18, 73, 29, 77, 59, 47, 17, 96, 22], [68, 69, 37, 49, 13, 34, 86, 53, 87, 51, 3, 42, 98, 32, 51, 85, 46, 21, 44, 11, 68, 1, 92, 63, 24, 99, 13, 98, 11, 51, 17, 99, 82, 86, 24, 19, 37], [85, 8, 28, 5, 17, 36, 19, 64, 91, 98, 11, 54, 45, 47, 12, 21, 11, 92, 5, 81, 56, 20, 41, 46, 12, 70, 17, 19, 26, 48, 52, 96, 70, 55, 75, 33, 62], [88, 23, 15, 27, 75, 64, 81, 51, 53, 78, 91, 82, 92, 51, 47, 4, 7, 35, 48, 73, 72, 45, 81, 81, 97, 96, 72, 19, 63, 38, 67, 59, 69, 13, 47, 61, 31], [80, 96, 22, 93, 86, 43, 67, 54, 10, 42, 64, 21, 80, 76, 66, 41, 24, 35, 56, 30, 57, 94, 47, 35, 19, 8, 26, 71, 30, 7, 67, 65, 36, 25, 37, 1, 15], [37, 13, 8, 5, 60, 73, 1, 36, 35, 66, 63, 23, 9, 34, 46, 78, 4, 30, 95, 75, 99, 72, 3, 14, 60, 77, 45, 96, 34, 45, 61, 83, 16, 66, 40, 17, 34], [16, 60, 66, 66, 90, 13, 56, 31, 34, 39, 67, 8, 87, 78, 55, 27, 93, 53, 39, 65, 17, 30, 53, 13, 21, 19, 53, 19, 57, 25, 86, 31, 81, 55, 23, 32, 62], [74, 10, 72, 54, 52, 20, 32, 14, 50, 28, 53, 24, 79, 22, 30, 63, 4, 77, 59, 87, 8, 82, 12, 31, 78, 34, 82, 98, 75, 76, 49, 79, 57, 95, 93, 26, 18], [96, 86, 38, 81, 87, 88, 50, 8, 41, 6, 69, 44, 64, 29, 28, 11, 65, 19, 9, 27, 34, 44, 68, 82, 15, 51, 13, 83, 49, 70, 56, 76, 51, 37, 17, 58, 87], [90, 29, 33, 60, 91, 89, 55, 10, 47, 23, 85, 21, 13, 33, 24, 11, 17, 68, 47, 25, 94, 73, 21, 84, 83, 83, 12, 37, 42, 17, 48, 28, 41, 99, 47, 18, 78], [99, 71, 13, 82, 13, 31, 2, 16, 9, 73, 38, 75, 54, 56, 86, 97, 87, 45, 34, 9, 88, 8, 7, 36, 18, 3, 28, 70, 44, 21, 28, 54, 54, 65, 21, 99, 13], [57, 49, 54, 10, 53, 44, 47, 53, 74, 46, 13, 37, 24, 2, 86, 81, 14, 10, 35, 25, 3, 17, 12, 54, 24, 29, 43, 25, 60, 90, 65, 84, 28, 16, 47, 81, 92], [58, 76, 27, 53, 42, 59, 47, 94, 34, 37, 6, 7, 96, 96, 25, 33, 55, 58, 7, 57, 12, 16, 80, 43, 77, 7, 51, 73, 32, 75, 8, 97, 87, 89, 72, 45, 86], [59, 4, 67, 29, 29, 98, 98, 28, 77, 79, 87, 44, 90, 4, 90, 9, 5, 56, 96, 84, 50, 75, 15, 32, 28, 22, 17, 59, 90, 71, 57, 26, 25, 10, 45, 83, 11], [77, 53, 72, 68, 95, 28, 75, 65, 49, 47, 52, 88, 54, 60, 57, 47, 31, 46, 26, 5, 84, 52, 75, 54, 33, 50, 38, 27, 98, 15, 96, 61, 21, 46, 69, 6, 38], [62, 86, 62, 82, 78, 74, 46, 13, 95, 94, 3, 94, 6, 93, 8, 44, 33, 81, 75, 77, 50, 11, 95, 28, 70, 41, 16, 68, 99, 48, 56, 64, 59, 90, 62, 76, 11], [89, 18, 19, 87, 55, 82, 26, 6, 4, 29, 59, 98, 17, 43, 80, 66, 34, 8, 13, 8, 94, 96, 94, 65, 43, 39, 81, 59, 84, 88, 86, 93, 86, 44, 9, 37, 74], [36, 92, 28, 42, 43, 85, 88, 42, 66, 55, 72, 48, 91, 22, 27, 93, 67, 13, 45, 10, 9, 54, 27, 34, 1, 32, 89, 93, 71, 67, 84, 20, 94, 35, 99, 91, 90], [78, 17, 18, 45, 93, 84, 53, 91, 82, 68, 65, 1, 58, 26, 20, 87, 10, 59, 75, 41, 5, 65, 17, 22, 98, 41, 93, 68, 69, 11, 56, 51, 21, 99, 76, 26, 19], [60, 71, 47, 71, 26, 40, 5, 21, 78, 4, 23, 84, 15, 93, 8, 41, 19, 46, 28, 91, 68, 15, 99, 37, 1, 67, 24, 27, 40, 63, 61, 36, 98, 93, 24, 24, 4], [67, 34, 57, 49, 87, 53, 23, 69, 95, 53, 62, 41, 57, 60, 54, 70, 57, 10, 40, 7, 38, 85, 61, 84, 3, 51, 86, 47, 68, 92, 76, 38, 36, 41, 69, 13, 87]],),
(28,19,[[-91, -90, -84, -84, -83, -78, -75, -69, -68, -61, -53, -52, -46, -41, -32, 11, 12, 18, 23, 26, 39, 49, 53, 55, 62, 70, 79, 80, 85, 87], [-99, -85, -64, -49, -43, -35, -30, -27, -19, -19, -12, -4, 1, 2, 4, 22, 23, 23, 26, 27, 41, 49, 51, 62, 67, 67, 69, 91, 94, 98], [-97, -94, -85, -68, -57, -51, -48, -42, -37, -35, -24, -22, -19, -19, -17, -16, -4, 0, 9, 12, 13, 16, 28, 46, 63, 75, 83, 92, 95, 96], [-87, -86, -73, -67, -57, -41, -36, -20, -20, -17, -17, -11, -5, 21, 23, 32, 34, 34, 47, 48, 57, 62, 68, 72, 77, 89, 90, 93, 96, 97], [-98, -95, -93, -88, -84, -78, -73, -47, -43, -43, -28, -28, -25, -17, -3, 13, 14, 15, 19, 20, 24, 26, 33, 34, 40, 45, 51, 79, 84, 95], [-86, -81, -76, -71, -67, -67, -53, -50, -46, -41, -38, -31, -22, -21, -16, 12, 18, 20, 23, 28, 35, 41, 47, 48, 56, 67, 82, 94, 96, 97], [-98, -94, -90, -83, -76, -65, -43, -42, -38, -38, -37, -34, -31, -29, -26, -18, -18, -11, -2, 5, 24, 31, 36, 56, 57, 69, 69, 77, 77, 97], [-90, -80, -78, -73, -66, -61, -59, -52, -47, -34, -33, -30, -27, -16, -4, 0, 8, 11, 34, 47, 48, 50, 54, 57, 58, 66, 71, 82, 83, 87], [-98, -93, -90, -78, -75, -72, -55, -52, -51, -47, -41, -41, -35, -32, -21, -17, -2, 0, 13, 23, 37, 49, 50, 54, 57, 58, 64, 79, 93, 96], [-94, -85, -73, -68, -54, -46, -27, -27, -26, -17, -15, -7, 6, 11, 14, 23, 27, 29, 32, 38, 45, 53, 55, 56, 60, 63, 64, 66, 76, 78], [-83, -66, -61, -60, -59, -57, -57, -53, -42, -39, -38, -37, -31, -25, -8, 10, 11, 13, 21, 47, 51, 54, 61, 68, 70, 76, 78, 78, 80, 95], [-92, -84, -81, -72, -62, -61, -52, -37, -35, -27, -23, -18, -18, -11, -9, -6, -3, 2, 7, 13, 20, 27, 31, 34, 38, 64, 74, 79, 87, 88], [-98, -96, -82, -63, -63, -44, -42, -39, -37, -21, -18, -15, -8, -2, 7, 7, 14, 23, 35, 37, 39, 50, 64, 68, 82, 85, 86, 87, 88, 89], [-97, -79, -65, -62, -53, -46, -45, -32, -31, -17, -16, -15, -12, -8, 2, 7, 9, 21, 29, 29, 29, 33, 40, 57, 66, 88, 95, 96, 96, 99], [-94, -79, -77, -73, -68, -64, -61, -54, -48, -45, -45, -44, -42, -39, -39, -37, -20, -12, -4, -3, 6, 9, 10, 13, 22, 33, 37, 53, 53, 77], [-95, -82, -71, -65, -61, -55, -54, -43, -24, -15, -13, -13, 4, 8, 12, 16, 18, 27, 34, 41, 45, 50, 51, 58, 60, 65, 69, 70, 94, 95], [-89, -81, -72, -67, -67, -53, -28, -6, 7, 15, 18, 22, 26, 26, 27, 37, 38, 43, 47, 50, 52, 56, 58, 60, 62, 64, 67, 70, 75, 90], [-93, -87, -83, -74, -74, -61, -52, -51, -39, -36, -31, -29, -26, -12, -7, -2, 28, 29, 41, 57, 57, 62, 68, 75, 76, 77, 78, 93, 95, 95], [-83, -75, -75, -74, -71, -51, -47, -46, -44, -42, -38, -35, -27, -20, -14, -7, 3, 8, 17, 18, 20, 24, 31, 44, 56, 60, 69, 71, 79, 93], [-94, -85, -78, -70, -64, -52, -51, -43, -43, -21, -17, 4, 16, 28, 31, 36, 39, 46, 47, 57, 69, 73, 73, 74, 79, 81, 85, 94, 94, 99], [-97, -80, -60, -55, -51, -41, -40, -38, -38, -36, -34, -33, -25, -23, -21, -18, -17, -9, -4, 7, 16, 22, 23, 30, 32, 37, 58, 82, 83, 92], [-91, -71, -61, -56, -52, -42, -42, -41, -39, -38, -29, -8, -8, -1, 1, 12, 24, 27, 31, 34, 36, 44, 45, 53, 57, 59, 64, 73, 86, 92], [-98, -92, -89, -87, -84, -79, -64, -60, -56, -46, -43, -41, -38, -36, -24, -20, -19, -10, -6, 4, 15, 30, 38, 39, 40, 70, 70, 78, 87, 89], [-87, -78, -77, -77, -62, -39, -38, -38, -30, -26, -16, -10, 0, 10, 13, 19, 22, 28, 29, 32, 35, 46, 49, 55, 56, 66, 73, 81, 95, 95], [-99, -95, -78, -72, -54, -44, -40, -37, -30, -23, -21, -16, -4, 1, 4, 10, 20, 25, 34, 36, 46, 49, 57, 61, 63, 65, 76, 78, 87, 99], [-98, -92, -87, -80, -73, -69, -65, -62, -57, -52, -39, -25, -9, -9, -5, 9, 13, 25, 40, 43, 44, 49, 58, 63, 76, 82, 82, 87, 89, 95], [-97, -81, -75, -71, -65, -39, -39, -32, -26, -17, -15, -14, -1, 0, 14, 25, 27, 38, 52, 53, 59, 60, 66, 71, 71, 77, 83, 86, 94, 97], [-88, -86, -80, -72, -68, -52, -50, -49, -45, -41, -13, 10, 13, 20, 32, 33, 39, 39, 46, 49, 52, 53, 55, 66, 70, 82, 83, 89, 91, 97], [-96, -79, -41, -41, -36, -35, -29, -25, -17, -13, -11, -7, 4, 12, 19, 33, 42, 43, 48, 50, 50, 61, 69, 72, 74, 75, 78, 78, 82, 93], [-92, -88, -87, -80, -74, -71, -64, -63, -60, -60, -57, -57, -34, -34, -25, -10, -6, 8, 18, 28, 31, 48, 50, 56, 58, 66, 68, 77, 82, 84]],),
(13,16,[[1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1], [0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1], [1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1], [1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1], [1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0], [1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0], [0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0], [1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0], [1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0], [0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1], [0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1], [1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0], [1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0]],),
(27,33,[[1, 6, 13, 17, 19, 21, 28, 28, 28, 32, 36, 37, 38, 42, 43, 48, 49, 52, 56, 56, 58, 58, 58, 60, 63, 66, 66, 68, 81, 82, 83, 83, 86, 90, 99], [4, 5, 9, 10, 14, 15, 16, 20, 24, 24, 25, 26, 27, 27, 31, 34, 38, 40, 56, 58, 63, 64, 67, 67, 67, 72, 73, 76, 76, 80, 80, 83, 88, 88, 97], [1, 3, 4, 12, 15, 21, 26, 30, 34, 35, 38, 44, 46, 47, 48, 49, 50, 52, 53, 55, 62, 66, 76, 79, 84, 84, 85, 86, 87, 87, 87, 89, 89, 95, 97], [5, 5, 10, 18, 21, 21, 23, 25, 37, 40, 47, 52, 53, 55, 56, 59, 59, 61, 64, 64, 67, 68, 69, 70, 72, 73, 75, 86, 87, 88, 89, 91, 92, 93, 99], [1, 1, 2, 11, 22, 30, 31, 34, 39, 40, 51, 52, 54, 55, 56, 58, 60, 61, 63, 63, 64, 65, 65, 72, 73, 76, 76, 77, 85, 89, 90, 92, 92, 94, 95], [6, 6, 8, 13, 13, 14, 15, 17, 17, 17, 21, 22, 27, 31, 35, 35, 38, 38, 42, 45, 47, 54, 54, 60, 61, 62, 69, 72, 78, 79, 80, 81, 81, 90, 99], [4, 5, 6, 7, 13, 14, 15, 17, 18, 19, 19, 20, 20, 23, 26, 32, 34, 35, 35, 35, 44, 44, 47, 48, 49, 58, 59, 63, 64, 70, 78, 81, 86, 89, 90], [3, 4, 8, 13, 14, 15, 16, 17, 24, 24, 28, 31, 31, 32, 36, 37, 40, 43, 45, 50, 58, 59, 61, 62, 65, 66, 68, 70, 71, 79, 80, 90, 92, 96, 99], [4, 6, 6, 8, 15, 18, 18, 23, 23, 30, 32, 39, 40, 43, 45, 45, 56, 57, 60, 66, 69, 69, 71, 73, 73, 74, 74, 80, 84, 93, 93, 94, 96, 98, 99], [3, 4, 5, 6, 9, 11, 11, 14, 17, 18, 22, 22, 23, 32, 35, 41, 43, 60, 63, 63, 65, 67, 68, 70, 73, 74, 76, 77, 81, 83, 84, 86, 87, 96, 97], [2, 7, 10, 11, 21, 25, 25, 25, 28, 30, 41, 42, 45, 47, 47, 48, 58, 64, 64, 69, 74, 75, 76, 78, 78, 81, 83, 85, 86, 87, 94, 98, 98, 99, 99], [2, 4, 6, 7, 12, 13, 16, 16, 17, 18, 27, 27, 42, 43, 46, 47, 48, 54, 57, 59, 59, 60, 63, 63, 63, 72, 75, 76, 77, 79, 81, 82, 90, 90, 99], [8, 14, 15, 16, 19, 20, 21, 23, 25, 27, 28, 29, 29, 30, 36, 36, 37, 37, 46, 47, 47, 52, 52, 55, 64, 67, 69, 71, 74, 76, 77, 80, 85, 90, 93], [2, 4, 9, 13, 16, 18, 19, 19, 20, 22, 22, 30, 32, 34, 36, 36, 38, 43, 45, 50, 52, 52, 54, 57, 62, 63, 69, 70, 70, 73, 79, 82, 87, 93, 96], [2, 5, 7, 9, 10, 19, 20, 22, 31, 31, 32, 34, 35, 37, 42, 44, 53, 57, 58, 59, 60, 61, 66, 66, 68, 68, 75, 77, 83, 85, 87, 93, 94, 95, 95], [1, 2, 4, 4, 11, 12, 16, 16, 17, 19, 24, 26, 26, 31, 39, 40, 46, 47, 50, 53, 65, 71, 71, 75, 75, 81, 85, 88, 88, 92, 92, 95, 96, 96, 97], [2, 10, 12, 16, 22, 25, 27, 27, 28, 30, 37, 38, 40, 41, 42, 42, 43, 47, 49, 50, 54, 54, 57, 60, 60, 66, 67, 67, 75, 77, 80, 84, 84, 96, 97], [2, 10, 12, 12, 15, 20, 24, 27, 28, 29, 31, 32, 34, 36, 39, 40, 48, 51, 57, 60, 65, 66, 66, 66, 73, 73, 76, 78, 80, 84, 89, 90, 90, 96, 98], [10, 14, 16, 18, 18, 20, 21, 22, 22, 23, 24, 33, 34, 36, 36, 36, 38, 45, 45, 56, 58, 59, 61, 67, 68, 69, 70, 76, 78, 78, 80, 88, 89, 96, 96], [5, 12, 14, 15, 16, 17, 17, 21, 27, 31, 32, 41, 43, 44, 44, 46, 54, 54, 61, 62, 70, 71, 78, 78, 78, 79, 81, 83, 87, 87, 92, 95, 97, 98, 99], [1, 5, 13, 16, 20, 22, 25, 29, 29, 32, 35, 39, 40, 44, 45, 54, 54, 66, 69, 70, 72, 73, 75, 75, 84, 84, 87, 87, 88, 89, 90, 91, 95, 96, 99], [1, 3, 4, 8, 13, 13, 19, 20, 29, 29, 33, 35, 39, 43, 45, 46, 51, 53, 57, 58, 60, 60, 65, 66, 67, 69, 70, 73, 76, 81, 84, 84, 86, 91, 91], [9, 11, 11, 12, 19, 20, 23, 26, 26, 27, 28, 38, 39, 42, 42, 43, 43, 43, 51, 52, 53, 55, 56, 72, 72, 77, 78, 79, 83, 83, 86, 90, 92, 95, 98], [4, 6, 7, 7, 11, 12, 12, 13, 25, 26, 37, 42, 43, 46, 46, 47, 49, 51, 52, 53, 54, 57, 59, 61, 64, 65, 68, 72, 75, 80, 88, 89, 92, 96, 99], [11, 14, 17, 23, 25, 26, 28, 29, 30, 30, 35, 36, 38, 45, 45, 47, 51, 53, 54, 54, 57, 64, 64, 67, 78, 79, 80, 83, 87, 87, 89, 92, 92, 93, 97], [1, 1, 4, 4, 4, 7, 7, 8, 10, 17, 22, 24, 33, 34, 35, 36, 41, 43, 50, 50, 52, 53, 57, 60, 61, 71, 73, 74, 81, 82, 83, 89, 90, 91, 94], [4, 4, 12, 16, 17, 18, 18, 22, 27, 28, 29, 30, 30, 31, 32, 36, 37, 39, 39, 43, 46, 47, 48, 48, 50, 53, 59, 66, 71, 75, 78, 90, 90, 94, 99], [1, 2, 3, 6, 9, 12, 15, 18, 18, 19, 21, 24, 27, 29, 30, 33, 33, 39, 42, 44, 44, 52, 54, 58, 62, 70, 72, 74, 76, 86, 87, 90, 90, 94, 95], [6, 7, 9, 11, 14, 16, 22, 25, 28, 33, 37, 38, 39, 42, 43, 44, 49, 51, 55, 57, 58, 59, 66, 68, 68, 82, 82, 85, 88, 92, 93, 95, 95, 96, 98], [3, 4, 6, 8, 8, 10, 12, 15, 19, 22, 29, 29, 32, 35, 38, 39, 42, 45, 47, 53, 58, 59, 67, 69, 69, 71, 74, 77, 79, 83, 84, 87, 92, 93, 96], [1, 8, 9, 10, 12, 15, 16, 22, 24, 26, 41, 41, 44, 45, 50, 51, 56, 60, 60, 67, 67, 71, 71, 72, 77, 77, 78, 78, 80, 81, 85, 87, 89, 89, 98], [6, 6, 8, 9, 13, 18, 18, 23, 25, 26, 27, 28, 32, 36, 43, 43, 43, 46, 51, 56, 57, 59, 60, 62, 63, 67, 68, 69, 78, 84, 92, 92, 96, 97, 98], [13, 14, 19, 19, 20, 23, 24, 25, 26, 35, 43, 44, 45, 45, 45, 47, 48, 51, 53, 55, 56, 63, 65, 66, 69, 74, 75, 76, 77, 80, 82, 82, 86, 88, 94], [16, 19, 22, 26, 26, 28, 28, 33, 35, 37, 38, 40, 45, 46, 49, 52, 54, 55, 55, 59, 60, 60, 72, 76, 77, 80, 82, 85, 86, 87, 92, 92, 98, 99, 99], [6, 6, 7, 18, 21, 23, 23, 23, 25, 30, 40, 42, 43, 44, 45, 47, 48, 50, 51, 57, 64, 65, 77, 79, 82, 84, 85, 87, 87, 88, 91, 91, 91, 96, 97]],),
(8,8,[[-43, -69, -79, -10, -60, 12, -55, -23, 77], [-13, 48, 1, 17, -8, 45, -72, 69, 94], [-75, -42, -59, 34, -25, -62, 34, 73, -25], [42, -34, 68, -97, 17, -1, 52, -81, 46], [92, 16, 25, -12, -65, 90, -99, 53, 73], [77, 26, -11, 44, 47, 51, -75, -84, 82], [-27, 29, -58, 47, 62, -20, 4, 83, 46], [-66, -11, 25, -55, 34, -79, 22, -30, -4], [5, -52, -61, -69, -90, -70, -82, 88, -12]],),
(7,4,[[0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1]],),
(7,12,[[92, 70, 67, 58, 99, 82, 75, 84, 64, 69, 83, 86, 59], [60, 83, 62, 16, 88, 68, 15, 89, 55, 35, 55, 14, 49], [83, 7, 30, 83, 49, 89, 16, 51, 72, 82, 92, 80, 83], [42, 17, 63, 45, 77, 7, 27, 10, 34, 36, 25, 6, 24], [18, 87, 6, 29, 25, 55, 81, 46, 24, 75, 26, 98, 28], [3, 75, 38, 61, 78, 51, 90, 48, 21, 54, 56, 94, 59], [72, 51, 20, 96, 86, 59, 71, 9, 1, 29, 63, 72, 56], [68, 35, 3, 7, 27, 1, 91, 80, 71, 44, 87, 41, 75], [42, 33, 50, 63, 37, 59, 81, 99, 48, 5, 48, 96, 3], [47, 62, 99, 14, 63, 61, 31, 95, 17, 24, 23, 82, 50], [78, 79, 79, 70, 27, 15, 50, 36, 8, 79, 3, 62, 47], [77, 98, 88, 96, 61, 32, 94, 13, 1, 34, 62, 79, 78], [93, 98, 82, 71, 93, 31, 64, 25, 38, 14, 8, 91, 54]],)
]
n_success = 0
for i, parameters_set in enumerate(param):
f_filled(*(filled_function_param[i]))
f_gold(*parameters_set)
if parameters_set == filled_function_param[i]:
n_success+=1
print("#Results: %i, %i" % (n_success, len(param)))
| 771.546875
| 5,910
| 0.420503
| 13,046
| 49,379
| 1.589836
| 0.011651
| 0.209055
| 0.28205
| 0.344439
| 0.978063
| 0.978063
| 0.976809
| 0.976809
| 0.976809
| 0.976809
| 0
| 0.564276
| 0.272342
| 49,379
| 64
| 5,911
| 771.546875
| 0.012969
| 0.003747
| 0
| 0.444444
| 0
| 0
| 0.000488
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018519
| false
| 0
| 0
| 0
| 0.018519
| 0.018519
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 14
|
9e8b4fb8f4563e0745db4ebe70cff51cccd58444
| 177
|
py
|
Python
|
django/contrib/admin/__init__.py
|
rawwell/django
|
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
|
[
"BSD-3-Clause"
] | 1
|
2016-05-08T12:24:22.000Z
|
2016-05-08T12:24:22.000Z
|
django/contrib/admin/__init__.py
|
rawwell/django
|
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
|
[
"BSD-3-Clause"
] | null | null | null |
django/contrib/admin/__init__.py
|
rawwell/django
|
6b3264671ead4604f26cbd2b71e8d6a02945bf0c
|
[
"BSD-3-Clause"
] | 1
|
2015-11-19T14:45:16.000Z
|
2015-11-19T14:45:16.000Z
|
from django.contrib.admin.options import ModelAdmin
from django.contrib.admin.options import StackedInline, TabularInline
from django.contrib.admin.sites import AdminSite, site
| 44.25
| 69
| 0.858757
| 23
| 177
| 6.608696
| 0.521739
| 0.197368
| 0.335526
| 0.434211
| 0.460526
| 0.460526
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079096
| 177
| 3
| 70
| 59
| 0.932515
| 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
| 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
| 7
|
9eaa4ba890f5d04af58c3ab72860dc6780d21a70
| 61,152
|
py
|
Python
|
ANALYSIS_PLOTS/PlotObsCount_APR2015.py
|
Kate-Willett/HadISDH_Marine_Build
|
293b4c89dc6e04e47d3f6e3645cf0f610beca2f2
|
[
"CC0-1.0"
] | null | null | null |
ANALYSIS_PLOTS/PlotObsCount_APR2015.py
|
Kate-Willett/HadISDH_Marine_Build
|
293b4c89dc6e04e47d3f6e3645cf0f610beca2f2
|
[
"CC0-1.0"
] | null | null | null |
ANALYSIS_PLOTS/PlotObsCount_APR2015.py
|
Kate-Willett/HadISDH_Marine_Build
|
293b4c89dc6e04e47d3f6e3645cf0f610beca2f2
|
[
"CC0-1.0"
] | null | null | null |
#!/usr/local/sci/bin/python
# PYTHON2.7
#
# Author: Kate Willett
# Created: 23 April 2016
# Last update: 23 April 2016
# Location: /data/local/hadkw/HADCRUH2/MARINE/EUSTACEMDS/ANALYSIS_PLOTS/
# GitHub: https://github.com/Kate-Willett/HadISDH_Marine_Build/
# -----------------------
# CODE PURPOSE AND OUTPUT
# -----------------------
# This code reads in lists of annual summaries for PT counts (before and after QC) and QC and day/night flags
# and makes overview plots
#
# -----------------------
# LIST OF MODULES
# -----------------------
# inbuilt:
# import datetime as dt
# import copy
## Folling two lines should be uncommented if using with SPICE or screen
## import matplotlib
## matplotlib.use('Agg')
# import matplotlib.pyplot as plt
# import numpy as np
# from matplotlib.dates import date2num,num2date
# import sys, os
# import sys, getopt
# from scipy.optimize import curve_fit,fsolve,leastsq
# from scipy import pi,sqrt,exp
# from scipy.special import erf
# import scipy.stats
# from math import sqrt,pi
# import struct
# import pdb # pdb.set_trace() or c
#
# Kates:
# from LinearTrends import MedianPairwise - fits linear trend using Median Pairwise
# import MDS_basic_KATE as MDStool
#
# -----------------------
# DATA
# -----------------------
# /data/local/hadkw/HADCRUH2/MARINE/LISTS/
#
# -----------------------
# HOW TO RUN THE CODE
# -----------------------
# check the desired bits are uncommented/commented (filepaths etc)
#
# python2.7 PlotObsCount_APR2016.py
#
# This runs the code, outputs the plots
#
# -----------------------
# OUTPUT
# -----------------------
# some plots:
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTall_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTallDAY_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTallNIGHT_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTgood_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTgoodDAY_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryPTgoodNIGHT_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryQCDAY_ERAclimNBC_APR2016.png
# /data/local/hadkw/HADCRUH2/MARINE/IMAGES/SummaryQCNIGHT_ERAclimNBC_APR2016.png
#
# -----------------------
# VERSION/RELEASE NOTES
# -----------------------
#
# Version 1 (21 April 2016)
# ---------
#
# Enhancements
#
# Changes
#
# Bug fixes
#
# -----------------------
# OTHER INFORMATION
# -----------------------
#
#************************************************************************
# START
#************************************************************************
import datetime as dt
import copy
# Folling two lines should be uncommented if using with SPICE or screen
## import matplotlib
## matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.dates import date2num,num2date
import sys, os
import sys, getopt
from scipy.optimize import curve_fit,fsolve,leastsq
from scipy import pi,sqrt,exp
from scipy.special import erf
import scipy.stats
from math import sqrt,pi
import struct
import pdb # pdb.set_trace() or c
#*************************************************************************
# READDATA
#*************************************************************************
def ReadData(FileName,typee,delimee):
''' Use numpy genfromtxt reading to read in all rows from a complex array '''
''' Need to specify format as it is complex '''
''' outputs an array of tuples that in turn need to be subscripted by their names defaults f0...f8 '''
return np.genfromtxt(FileName, dtype=typee,delimiter=delimee,encoding = 'latin-1') #comments=False) # ReadData
#************************************************************************
# Main
#************************************************************************
ICOADSV = 'I300'
THRESHV = '55'
ITV = 'OBSclim2NBC' # ERAclimNBC, OBSclim1NBC, OBSclim2NBC
NOWMON = 'JAN'
NOWYEAR = '2019'
StartYear = 1973
EndYear = 2018
NYears = (EndYear - StartYear)+1
INDIR = '/data/users/hadkw/WORKING_HADISDH/MARINE/LISTS/'
INFILPT = 'PTTypeMetaDataStats_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILPTD = 'PTTypeMetaDataStatsDAY_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILPTN = 'PTTypeMetaDataStatsNIGHT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILPTG = 'PTTypeGOODMetaDataStats_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILPTGD = 'PTTypeGOODMetaDataStatsDAY_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILPTGN = 'PTTypeGOODMetaDataStatsNIGHT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILQC = 'QCMetaDataStats_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILQCD = 'QCMetaDataStatsDAY_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
INFILQCN = 'QCMetaDataStatsNIGHT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR+'.txt'
OUTDIR = '/data/users/hadkw/WORKING_HADISDH/MARINE/IMAGES/'
OutPltPTG = 'SummaryPT_good_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltPTGD = 'SummaryPT_DAYgood_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltPTGN = 'SummaryPT_NIGHTgood_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltPT = 'SummaryPT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltPTD = 'SummaryPT_DAY_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltPTN = 'SummaryPT_NIGHT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltQC = 'SummaryQC_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltQCD = 'SummaryQC_DAY_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
OutPltQCN = 'SummaryQC_NIGHT_'+ITV+'_'+ICOADSV+'_'+THRESHV+'_'+NOWMON+NOWYEAR
# Read in Instrument file and populate lists
#typee = ("int","|S17","int","|S37","float","|S16","float","|S16","float","|S16","float","|S16","float","|S16","float",
# "|S16","float","|S16","float","|S16","float","|S17","float","|S17","float","|S2")
typee = ("int","|U17","int","|U37","float","|U16","float","|U16","float","|U16","float","|U16","float","|U16","float",
"|U16","float","|U16","float","|U16","float","|U17","float","|U17","float","|U2")
delimee = (4,17,9,37,5,16,5,16,5,16,5,16,5,16,5,
16,5,16,5,16,5,17,5,17,5,2)
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPT,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPT+".eps")
plt.savefig(OUTDIR+OutPltPT+".png")
#pdb.set_trace()
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPTD,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL DAY",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPTD+".eps")
plt.savefig(OUTDIR+OutPltPTD+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPTN,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL NIGHT",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPTN+".eps")
plt.savefig(OUTDIR+OutPltPTN+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPTG,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL GOOD",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPTG+".eps")
plt.savefig(OUTDIR+OutPltPTG+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPTGD,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL GOOD DAY",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPTGD+".eps")
plt.savefig(OUTDIR+OutPltPTGD+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILPTGN,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f2'][0:NYears])
PT0s = np.array(RawData['f4'][0:NYears])
PT1s = np.array(RawData['f6'][0:NYears])
PT2s = np.array(RawData['f8'][0:NYears])
PT3s = np.array(RawData['f10'][0:NYears])
PT4s = np.array(RawData['f12'][0:NYears])
PT5s = np.array(RawData['f14'][0:NYears])
PT6s = np.array(RawData['f16'][0:NYears])
PT8s = np.array(RawData['f18'][0:NYears])
PT9s = np.array(RawData['f20'][0:NYears])
PT10s = np.array(RawData['f22'][0:NYears])
PT15s = np.array(RawData['f24'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
#PT: 0=US Navy/unknown - usually ship, 1=merchant ship/foreign military, 2=ocean station vessel off station (or unknown loc),
# 3=ocean station vessel on station, 4=lightship, 5=ship, 6=moored buiy, 7=drifting buoy, 8=ice buoy, 9=ice station,
# 10=oceanographic station, 11=MBT (bathythermograph), 12=XBT (bathythermograph),
# 13=Coastal-Marine Automated Network (C-MAN), 14=other coastal/island station, 15=fixed ocean platoform, 16=tide guage, 17=hi res CTD, 18=profiling float, 19=undulating oceanographic recorder, 10=auonomous pinneped bathythermograph (seal?), 21=glider
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=2)
i=0
ax1.annotate("TOTAL GOOD NIGHT",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
oldlatest=copy.copy(latest)
latest = latest + PT0s
if (len(gPT0s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='hotpink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='hotpink',edgecolor='none')
i=1
ax1.annotate("0 = US Navy/Unknown - usually ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
oldlatest=copy.copy(latest)
latest = latest + PT1s
if (len(gPT1s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='deeppink',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='deeppink',edgecolor='none')
i=2
ax1.annotate("1 = merchant ship/foreign military",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
oldlatest=copy.copy(latest)
latest = latest + PT2s
if (len(gPT2s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='red',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='red',edgecolor='none')
i=3
ax1.annotate("2 = ocean vessel off station (or unknown location)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
#pdb.set_trace()
oldlatest=copy.copy(latest)
latest = latest + PT3s
if (len(gPT3s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='darkorange',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='darkorange',edgecolor='none')
#pdb.set_trace()
i=4
ax1.annotate("3 = ocean vessel on stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
oldlatest=copy.copy(latest)
latest = latest + PT4s
if (len(gPT4s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='gold',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='gold',edgecolor='none')
i=5
ax1.annotate("4 = lightship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
oldlatest=copy.copy(latest)
latest = latest + PT5s
if (len(gPT5s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='grey',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='grey',edgecolor='none')
i=6
ax1.annotate("5 = ship",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
oldlatest=copy.copy(latest)
latest = latest + PT6s
if (len(gPT6s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='limegreen',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='limegreen',edgecolor='none')
i=7
ax1.annotate("6 = moored buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
oldlatest=copy.copy(latest)
latest = latest + PT8s
if (len(gPT8s) > 0):
#ax1.plot(Yr,(latest/100.)*nobs,c='olivedrab',linestyle='solid',linewidth=1)
ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='olivedrab',edgecolor='none')
i=8
ax1.annotate("8 = ice buoy",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
#oldlatest=copy.copy(latest)
#latest = latest + PT9s
#if (len(gPT9s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='blue',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='blue')
#i=9
#ax1.annotate("9 = ice station",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
#oldlatest=copy.copy(latest)
#latest = latest + PT10s
#if (len(gPT10s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='indigo',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='indigo')
#i=10
#ax1.annotate("10 = oceanographic stations",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
#oldlatest=copy.copy(latest)
#latest = latest + PT15s
#if (len(gPT15s) > 0):
# #ax1.plot(Yr,(latest/100.)*nobs,c='violet',linestyle='solid',linewidth=1)
# ax1.fill_between(Yr,(oldlatest/100.)*nobs,(latest/100.)*nobs,facecolor='violet')
#i=11
#ax1.annotate("15 = fixed ocean platform",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('No. of Obs (PT Type proportional)', color='black')
ax1.set_ylim(0,5000000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltPTGN+".eps")
plt.savefig(OUTDIR+OutPltPTGN+".png")
#pdb.set_trace()
# Read in Instrument file and populate lists
typee = ("int","|S17","int","|S17","float","|S18","float","|S20","float","|S21","float","|S22","float","|S20","float",
"|S21","float","|S22","float","|S22","float","|S23","float","|S21","float","|S24","float","|S2")
delimee = (4,17,9,17,5,18,5,20,5,21,5,22,5,20,5,
21,5,22,5,22,5,23,5,21,5,24,5,2)
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILQC,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f4'][0:NYears])
PT0s = np.array(RawData['f6'][0:NYears])
PT1s = np.array(RawData['f8'][0:NYears])
PT2s = np.array(RawData['f10'][0:NYears])
PT3s = np.array(RawData['f12'][0:NYears])
PT4s = np.array(RawData['f14'][0:NYears])
PT5s = np.array(RawData['f16'][0:NYears])
PT6s = np.array(RawData['f18'][0:NYears])
PT8s = np.array(RawData['f20'][0:NYears])
PT9s = np.array(RawData['f22'][0:NYears])
PT10s = np.array(RawData['f24'][0:NYears])
PT15s = np.array(RawData['f26'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
plt.ylim(0,30.)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=3)
i=0
ax1.annotate("BADs",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
ax1.plot(Yr[gPT0s],PT0s[gPT0s],c='hotpink',linestyle='dotted',linewidth=2)
i=1
ax1.annotate("track check (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
ax1.plot(Yr[gPT1s],PT1s[gPT1s],c='deeppink',linestyle='dashed',linewidth=2)
i=2
#ax1.annotate("ATbud = buddy check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.annotate("T buddy check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.plot(Yr[gPT2s],PT2s[gPT2s],c='red',linestyle='dashed',linewidth=2)
i=3
#ax1.annotate("ATclim = climatology check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.annotate("T climatology check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.plot(Yr[gPT3s],PT3s[gPT3s],c='darkorange',linestyle='dotted',linewidth=2)
i=4
#ax1.annotate("ATround = rounding flag (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.annotate("T whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.plot(Yr[gPT4s],PT4s[gPT4s],c='gold',linestyle='solid',linewidth=2)
i=5
#ax1.annotate("ATrep = repeated value check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.annotate("T repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.plot(Yr[gPT5s],PT5s[gPT5s],c='grey',linestyle='solid',linewidth=2)
i=6
#ax1.annotate("DPTbud = buddy check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.annotate("Td buddy check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.plot(Yr[gPT6s],PT6s[gPT6s],c='limegreen',linestyle='solid',linewidth=2)
i=7
#ax1.annotate("DPTclim = climatology check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.annotate("Td climatology check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.plot(Yr[gPT8s],PT8s[gPT8s],c='olivedrab',linestyle='solid',linewidth=2)
i=8
#ax1.annotate("DPTssat = supersaturation (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.annotate("Td supersaturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.plot(Yr[gPT9s],PT9s[gPT9s],c='blue',linestyle='dotted',linewidth=2)
i=9
#ax1.annotate("DPTround = rounding flag (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.annotate("Td whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.plot(Yr[gPT10s],PT10s[gPT10s],c='indigo',linestyle='solid',linewidth=2)
i=10
#ax1.annotate("DPTrep = repeated value (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.annotate("Td repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.plot(Yr[gPT15s],PT15s[gPT15s],c='violet',linestyle='solid',linewidth=2)
i=11
#ax1.annotate("DPTrepsat = repeated saturation check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.annotate("Td repeated saturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('% of Obs with QC flag', color='black')
#ax1.set_ylim(0,3500000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltQC+".eps")
plt.savefig(OUTDIR+OutPltQC+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILQCD,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f4'][0:NYears])
PT0s = np.array(RawData['f6'][0:NYears])
PT1s = np.array(RawData['f8'][0:NYears])
PT2s = np.array(RawData['f10'][0:NYears])
PT3s = np.array(RawData['f12'][0:NYears])
PT4s = np.array(RawData['f14'][0:NYears])
PT5s = np.array(RawData['f16'][0:NYears])
PT6s = np.array(RawData['f18'][0:NYears])
PT8s = np.array(RawData['f20'][0:NYears])
PT9s = np.array(RawData['f22'][0:NYears])
PT10s = np.array(RawData['f24'][0:NYears])
PT15s = np.array(RawData['f26'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
plt.ylim(0,30.)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=3)
i=0
ax1.annotate("BADs DAY",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
ax1.plot(Yr[gPT0s],PT0s[gPT0s],c='hotpink',linestyle='dotted',linewidth=2)
i=1
ax1.annotate("track check (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
ax1.plot(Yr[gPT1s],PT1s[gPT1s],c='deeppink',linestyle='dashed',linewidth=2)
i=2
#ax1.annotate("ATbud = buddy check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.annotate("T buddy check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.plot(Yr[gPT2s],PT2s[gPT2s],c='red',linestyle='dashed',linewidth=2)
i=3
#ax1.annotate("ATclim = climatology check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.annotate("T climatology check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.plot(Yr[gPT3s],PT3s[gPT3s],c='darkorange',linestyle='dotted',linewidth=2)
i=4
#ax1.annotate("ATround = rounding flag (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.annotate("T whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.plot(Yr[gPT4s],PT4s[gPT4s],c='gold',linestyle='solid',linewidth=2)
i=5
#ax1.annotate("ATrep = repeated value check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.annotate("T repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.plot(Yr[gPT5s],PT5s[gPT5s],c='grey',linestyle='solid',linewidth=2)
i=6
#ax1.annotate("DPTbud = buddy check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.annotate("Td buddy check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.plot(Yr[gPT6s],PT6s[gPT6s],c='limegreen',linestyle='solid',linewidth=2)
i=7
#ax1.annotate("DPTclim = climatology check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.annotate("Td climatology check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.plot(Yr[gPT8s],PT8s[gPT8s],c='olivedrab',linestyle='solid',linewidth=2)
i=8
#ax1.annotate("DPTssat = supersaturation (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.annotate("Td supersaturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.plot(Yr[gPT9s],PT9s[gPT9s],c='blue',linestyle='dotted',linewidth=2)
i=9
#ax1.annotate("DPTround = rounding flag (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.annotate("Td whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.plot(Yr[gPT10s],PT10s[gPT10s],c='indigo',linestyle='solid',linewidth=2)
i=10
#ax1.annotate("DPTrep = repeated value (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.annotate("Td repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.plot(Yr[gPT15s],PT15s[gPT15s],c='violet',linestyle='solid',linewidth=2)
i=11
#ax1.annotate("DPTrepsat = repeated saturation check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.annotate("Td repeated saturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('% of Obs with QC flag', color='black')
#ax1.set_ylim(0,3500000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltQCD+".eps")
plt.savefig(OUTDIR+OutPltQCD+".png")
# create empty arrays for instrument type data bundles
Yr = []
nobs = [] # we're looking at all obs, not just those with 'good' data
PT0s = []
PT1s = []
PT2s = []
PT3s = []
PT4s = []
PT5s = []
PT6s = []
PT8s = []
PT9s = []
PT10s = []
PT15s = []
RawData = ReadData(INDIR+INFILQCN,typee, delimee)
Yr = np.array(RawData['f0'][0:NYears])
nobs = np.array(RawData['f4'][0:NYears])
PT0s = np.array(RawData['f6'][0:NYears])
PT1s = np.array(RawData['f8'][0:NYears])
PT2s = np.array(RawData['f10'][0:NYears])
PT3s = np.array(RawData['f12'][0:NYears])
PT4s = np.array(RawData['f14'][0:NYears])
PT5s = np.array(RawData['f16'][0:NYears])
PT6s = np.array(RawData['f18'][0:NYears])
PT8s = np.array(RawData['f20'][0:NYears])
PT9s = np.array(RawData['f22'][0:NYears])
PT10s = np.array(RawData['f24'][0:NYears])
PT15s = np.array(RawData['f26'][0:NYears])
# Makes zero values sub zero so that they are not plotted
gPT0s = np.where(PT0s > 0.)[0]
gPT1s = np.where(PT1s > 0.)[0]
gPT2s = np.where(PT2s > 0.)[0]
gPT3s = np.where(PT3s > 0.)[0]
gPT4s = np.where(PT4s > 0.)[0]
gPT5s = np.where(PT5s > 0.)[0]
gPT6s = np.where(PT6s > 0.)[0]
gPT8s = np.where(PT8s > 0.)[0]
gPT9s = np.where(PT9s > 0.)[0]
gPT10s = np.where(PT10s > 0.)[0]
gPT15s = np.where(PT15s > 0.)[0]
# Make plot of instrument types for EOT and EOH over time
gap= 0.04
plt.clf()
fig, ax1 = plt.subplots()
ax1.tick_params(axis='y',direction='in',right=True)
plt.ylim(0,30.)
ax1.plot(Yr,nobs,c='black',linestyle='solid',linewidth=3)
i=0
ax1.annotate("BADs NIGHT",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='black')
latest = np.zeros(NYears)
ax1.plot(Yr[gPT0s],PT0s[gPT0s],c='hotpink',linestyle='dotted',linewidth=2)
i=1
ax1.annotate("track check (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='hotpink')
ax1.plot(Yr[gPT1s],PT1s[gPT1s],c='deeppink',linestyle='dashed',linewidth=2)
i=2
#ax1.annotate("ATbud = buddy check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.annotate("T buddy check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='deeppink')
ax1.plot(Yr[gPT2s],PT2s[gPT2s],c='red',linestyle='dashed',linewidth=2)
i=3
#ax1.annotate("ATclim = climatology check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.annotate("T climatology check (dashed)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='red')
ax1.plot(Yr[gPT3s],PT3s[gPT3s],c='darkorange',linestyle='dotted',linewidth=2)
i=4
#ax1.annotate("ATround = rounding flag (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.annotate("T whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='darkorange')
ax1.plot(Yr[gPT4s],PT4s[gPT4s],c='gold',linestyle='solid',linewidth=2)
i=5
#ax1.annotate("ATrep = repeated value check (AT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.annotate("T repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='gold')
ax1.plot(Yr[gPT5s],PT5s[gPT5s],c='grey',linestyle='solid',linewidth=2)
i=6
#ax1.annotate("DPTbud = buddy check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.annotate("Td buddy check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='grey')
ax1.plot(Yr[gPT6s],PT6s[gPT6s],c='limegreen',linestyle='solid',linewidth=2)
i=7
#ax1.annotate("DPTclim = climatology check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.annotate("Td climatology check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='limegreen')
ax1.plot(Yr[gPT8s],PT8s[gPT8s],c='olivedrab',linestyle='solid',linewidth=2)
i=8
#ax1.annotate("DPTssat = supersaturation (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.annotate("Td supersaturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='olivedrab')
ax1.plot(Yr[gPT9s],PT9s[gPT9s],c='blue',linestyle='dotted',linewidth=2)
i=9
#ax1.annotate("DPTround = rounding flag (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.annotate("Td whole number flag (dotted)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='blue')
ax1.plot(Yr[gPT10s],PT10s[gPT10s],c='indigo',linestyle='solid',linewidth=2)
i=10
#ax1.annotate("DPTrep = repeated value (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.annotate("Td repeated value check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='indigo')
ax1.plot(Yr[gPT15s],PT15s[gPT15s],c='violet',linestyle='solid',linewidth=2)
i=11
#ax1.annotate("DPTrepsat = repeated saturation check (DPT)",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.annotate("Td repeated saturation check",xy=(0.05,0.94-(i*gap)),xycoords='axes fraction',size=12,color='violet')
ax1.set_xlabel('Year')
ax1.set_ylabel('% of Obs with QC flag', color='black')
#ax1.set_ylim(0,3500000)
ax1.set_xlim(StartYear-1,EndYear+1)
plt.tight_layout()
plt.savefig(OUTDIR+OutPltQCN+".eps")
plt.savefig(OUTDIR+OutPltQCN+".png")
#pdb.set_trace()
print("And were done")
#************************************************************************
| 43.773801
| 252
| 0.685292
| 9,729
| 61,152
| 4.282557
| 0.050057
| 0.033265
| 0.016561
| 0.019873
| 0.944942
| 0.939998
| 0.927157
| 0.925429
| 0.925429
| 0.916357
| 0
| 0.07658
| 0.087552
| 61,152
| 1,396
| 253
| 43.805158
| 0.670132
| 0.3663
| 0
| 0.902944
| 0
| 0
| 0.16548
| 0.00639
| 0
| 0
| 0
| 0
| 0
| 1
| 0.001091
| false
| 0
| 0.015267
| 0
| 0.017448
| 0.001091
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
7b4babc5c1dad07b32fc5962c9fa706d0bc054d6
| 18,217
|
py
|
Python
|
python/speech/python-client/swagger_client/api/voice_tests_api.py
|
harvinchou/cognitive-services-test
|
51a342bf4e05871e0d04bc5e1cdf714c7c2701ac
|
[
"MIT"
] | null | null | null |
python/speech/python-client/swagger_client/api/voice_tests_api.py
|
harvinchou/cognitive-services-test
|
51a342bf4e05871e0d04bc5e1cdf714c7c2701ac
|
[
"MIT"
] | null | null | null |
python/speech/python-client/swagger_client/api/voice_tests_api.py
|
harvinchou/cognitive-services-test
|
51a342bf4e05871e0d04bc5e1cdf714c7c2701ac
|
[
"MIT"
] | null | null | null |
# coding: utf-8
"""
Speech Services API v2.0
Speech Services API v2.0. # noqa: E501
OpenAPI spec version: v2.0
Contact: crservice@microsoft.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class VoiceTestsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_voice_test(self, voice_test_definition, **kwargs): # noqa: E501
"""Creates a new voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_voice_test(voice_test_definition, async_req=True)
>>> result = thread.get()
:param async_req bool
:param VoiceTestDefinition voice_test_definition: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_voice_test_with_http_info(voice_test_definition, **kwargs) # noqa: E501
else:
(data) = self.create_voice_test_with_http_info(voice_test_definition, **kwargs) # noqa: E501
return data
def create_voice_test_with_http_info(self, voice_test_definition, **kwargs): # noqa: E501
"""Creates a new voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_voice_test_with_http_info(voice_test_definition, async_req=True)
>>> result = thread.get()
:param async_req bool
:param VoiceTestDefinition voice_test_definition: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['voice_test_definition'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_voice_test" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'voice_test_definition' is set
if ('voice_test_definition' not in params or
params['voice_test_definition'] is None):
raise ValueError("Missing the required parameter `voice_test_definition` when calling `create_voice_test`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'voice_test_definition' in params:
body_params = params['voice_test_definition']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['subscription_key', 'token'] # noqa: E501
return self.api_client.call_api(
'/api/texttospeech/v2.0/tests', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_voice_test(self, id, **kwargs): # noqa: E501
"""Deletes the specified voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_voice_test(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_voice_test_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_voice_test_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_voice_test_with_http_info(self, id, **kwargs): # noqa: E501
"""Deletes the specified voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_voice_test_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_voice_test" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `delete_voice_test`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['subscription_key', 'token'] # noqa: E501
return self.api_client.call_api(
'/api/texttospeech/v2.0/tests/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_voice_test(self, id, **kwargs): # noqa: E501
"""Gets detail of the specified voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_test(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: VoiceTest
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_voice_test_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_voice_test_with_http_info(id, **kwargs) # noqa: E501
return data
def get_voice_test_with_http_info(self, id, **kwargs): # noqa: E501
"""Gets detail of the specified voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_test_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: VoiceTest
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_voice_test" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_voice_test`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['subscription_key', 'token'] # noqa: E501
return self.api_client.call_api(
'/api/texttospeech/v2.0/tests/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='VoiceTest', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_voice_tests(self, **kwargs): # noqa: E501
"""Gets details of all voice test under the selected subscription. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_tests(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[VoiceTest]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_voice_tests_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_voice_tests_with_http_info(**kwargs) # noqa: E501
return data
def get_voice_tests_with_http_info(self, **kwargs): # noqa: E501
"""Gets details of all voice test under the selected subscription. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_tests_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[VoiceTest]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_voice_tests" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['subscription_key', 'token'] # noqa: E501
return self.api_client.call_api(
'/api/texttospeech/v2.0/tests', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[VoiceTest]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_voice_tests_for_model(self, id, **kwargs): # noqa: E501
"""Gets details of the specified model's voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_tests_for_model(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: list[VoiceTest]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_voice_tests_for_model_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_voice_tests_for_model_with_http_info(id, **kwargs) # noqa: E501
return data
def get_voice_tests_for_model_with_http_info(self, id, **kwargs): # noqa: E501
"""Gets details of the specified model's voice test. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_voice_tests_for_model_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: The identifier of the voice test. (required)
:return: list[VoiceTest]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_voice_tests_for_model" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError("Missing the required parameter `id` when calling `get_voice_tests_for_model`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['subscription_key', 'token'] # noqa: E501
return self.api_client.call_api(
'/api/texttospeech/v2.0/tests/model/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[VoiceTest]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 37.329918
| 133
| 0.605369
| 2,135
| 18,217
| 4.900234
| 0.078689
| 0.044351
| 0.026764
| 0.03441
| 0.935768
| 0.925731
| 0.913879
| 0.902504
| 0.895527
| 0.889505
| 0
| 0.015456
| 0.303892
| 18,217
| 487
| 134
| 37.406571
| 0.809558
| 0.319262
| 0
| 0.78626
| 1
| 0
| 0.178007
| 0.058608
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041985
| false
| 0
| 0.015267
| 0
| 0.118321
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c88b33de2ae50920c4907a4704b26bafbaad574a
| 532
|
py
|
Python
|
rastervision/data/raster_source/__init__.py
|
ValRat/raster-vision
|
90f4c5d99869466c65fa972fa8f08f68c1102820
|
[
"Apache-2.0"
] | 4
|
2019-03-11T12:38:15.000Z
|
2021-04-06T14:57:52.000Z
|
rastervision/data/raster_source/__init__.py
|
ValRat/raster-vision
|
90f4c5d99869466c65fa972fa8f08f68c1102820
|
[
"Apache-2.0"
] | null | null | null |
rastervision/data/raster_source/__init__.py
|
ValRat/raster-vision
|
90f4c5d99869466c65fa972fa8f08f68c1102820
|
[
"Apache-2.0"
] | 1
|
2021-02-25T18:23:27.000Z
|
2021-02-25T18:23:27.000Z
|
# flake8: noqa
from rastervision.data.raster_source.raster_source import *
from rastervision.data.raster_source.raster_source_config import *
from rastervision.data.raster_source.geotiff_source import *
from rastervision.data.raster_source.geotiff_source_config import *
from rastervision.data.raster_source.image_source import *
from rastervision.data.raster_source.image_source_config import *
from rastervision.data.raster_source.rasterized_source import *
from rastervision.data.raster_source.rasterized_source_config import *
| 48.363636
| 70
| 0.868421
| 70
| 532
| 6.314286
| 0.171429
| 0.271493
| 0.361991
| 0.470588
| 0.950226
| 0.950226
| 0.950226
| 0.751131
| 0
| 0
| 0
| 0.002016
| 0.067669
| 532
| 10
| 71
| 53.2
| 0.889113
| 0.022556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
c8d7885a5398b4970595507d07e5095ec26c701a
| 6,646
|
py
|
Python
|
motor_busqueda/motor_busqueda_app/migrations/0001_initial.py
|
TrabajoGradoMotorBusqueda/Aplicacion-MVC
|
0425221f6583b669ca714acabeb075823413ce5a
|
[
"Apache-2.0"
] | null | null | null |
motor_busqueda/motor_busqueda_app/migrations/0001_initial.py
|
TrabajoGradoMotorBusqueda/Aplicacion-MVC
|
0425221f6583b669ca714acabeb075823413ce5a
|
[
"Apache-2.0"
] | null | null | null |
motor_busqueda/motor_busqueda_app/migrations/0001_initial.py
|
TrabajoGradoMotorBusqueda/Aplicacion-MVC
|
0425221f6583b669ca714acabeb075823413ce5a
|
[
"Apache-2.0"
] | null | null | null |
# Generated by Django 3.1.3 on 2020-11-27 22:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Docente',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('id_investigacion', models.TextField(null=True)),
('titulo_investigacion', models.TextField(null=True)),
('resumen_investigacion', models.TextField(null=True)),
('estado_investigacion', models.TextField(null=True)),
('palabra_clave1', models.TextField(null=True)),
('palabra_clave2', models.TextField(null=True)),
('palabra_clave3', models.TextField(null=True)),
('palabra_clave4', models.TextField(null=True)),
('palabra_clave5', models.TextField(null=True)),
('convocatoria', models.TextField(null=True)),
('tipo_convocatoria', models.TextField(null=True)),
('anio_convocatoria', models.TextField(null=True)),
('codigo_autor1', models.TextField(null=True)),
('nombres_autor1', models.TextField(null=True)),
('apellidos_autor1', models.TextField(null=True)),
('programa_autor1', models.TextField(null=True)),
('facultad_autor1', models.TextField(null=True)),
('departamento_autor1', models.TextField(null=True)),
('grupo_investigacion1', models.TextField(null=True)),
('linea_investigacion1', models.TextField(null=True)),
('codigo_autor2', models.TextField(null=True)),
('nombres_autor2', models.TextField(null=True)),
('apellidos_autor2', models.TextField(null=True)),
('programa_autor2', models.TextField(null=True)),
('facultad_autor2', models.TextField(null=True)),
('departamento_autor2', models.TextField(null=True)),
('grupo_investigacion2', models.TextField(null=True)),
('linea_investigacion2', models.TextField(null=True)),
('codigo_autor3', models.TextField(null=True)),
('nombres_autor3', models.TextField(null=True)),
('apellidos_autor3', models.TextField(null=True)),
('programa_autor3', models.TextField(null=True)),
('facultad_autor3', models.TextField(null=True)),
('departamento_autor3', models.TextField(null=True)),
('grupo_investigacion3', models.TextField(null=True)),
('linea_investigacion3', models.TextField(null=True)),
('codigo_autor4', models.TextField(null=True)),
('nombres_autor4', models.TextField(null=True)),
('apellidos_autor4', models.TextField(null=True)),
('programa_autor4', models.TextField(null=True)),
('facultad_autor4', models.TextField(null=True)),
('departamento_autor4', models.TextField(null=True)),
('grupo_investigacion4', models.TextField(null=True)),
('linea_investigacion4', models.TextField(null=True)),
],
),
migrations.CreateModel(
name='Estudiante',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('id_investigacion', models.TextField(null=True)),
('titulo_investigacion', models.TextField(null=True)),
('resumen_investigacion', models.TextField(null=True)),
('estado_investigacion', models.TextField(null=True)),
('palabra_clave1', models.TextField(null=True)),
('palabra_clave2', models.TextField(null=True)),
('palabra_clave3', models.TextField(null=True)),
('palabra_clave4', models.TextField(null=True)),
('palabra_clave5', models.TextField(null=True)),
('convocatoria', models.TextField(null=True)),
('tipo_convocatoria', models.TextField(null=True)),
('anio_convocatoria', models.TextField(null=True)),
('codigo_autor1', models.TextField(null=True)),
('nombres_autor1', models.TextField(null=True)),
('apellidos_autor1', models.TextField(null=True)),
('programa_autor1', models.TextField(null=True)),
('departamento_autor1', models.TextField(null=True)),
('facultad_autor1', models.TextField(null=True)),
('grupo_investigacion1', models.TextField(null=True)),
('linea_investigacion1', models.TextField(null=True)),
('codigo_autor2', models.TextField(null=True)),
('nombres_autor2', models.TextField(null=True)),
('apellidos_autor2', models.TextField(null=True)),
('programa_autor2', models.TextField(null=True)),
('departamento_autor2', models.TextField(null=True)),
('facultad_autor2', models.TextField(null=True)),
('grupo_investigacion2', models.TextField(null=True)),
('linea_investigacion2', models.TextField(null=True)),
('codigo_autor3', models.TextField(null=True)),
('nombres_autor3', models.TextField(null=True)),
('apellidos_autor3', models.TextField(null=True)),
('programa_autor3', models.TextField(null=True)),
('departamento_autor3', models.TextField(null=True)),
('facultad_autor3', models.TextField(null=True)),
('grupo_investigacion3', models.TextField(null=True)),
('linea_investigacion3', models.TextField(null=True)),
('codigo_autor4', models.TextField(null=True)),
('nombres_autor4', models.TextField(null=True)),
('apellidos_autor4', models.TextField(null=True)),
('programa_autor4', models.TextField(null=True)),
('departamento_autor4', models.TextField(null=True)),
('facultad_autor4', models.TextField(null=True)),
('grupo_investigacion4', models.TextField(null=True)),
('linea_investigacion4', models.TextField(null=True)),
('nombre_asesor', models.TextField(null=True)),
],
),
]
| 57.293103
| 114
| 0.581854
| 596
| 6,646
| 6.332215
| 0.114094
| 0.353736
| 0.448066
| 0.542395
| 0.937467
| 0.937467
| 0.937467
| 0.937467
| 0.937467
| 0.937467
| 0
| 0.018404
| 0.272344
| 6,646
| 115
| 115
| 57.791304
| 0.761993
| 0.006771
| 0
| 0.907407
| 1
| 0
| 0.224276
| 0.006365
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009259
| 0
| 0.046296
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
cda17f0ccd571f6883e9131154b285f94d547539
| 4,859
|
py
|
Python
|
2015/day_23/python/day23.py
|
josephroquedev/advent-of-code
|
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
|
[
"MIT"
] | null | null | null |
2015/day_23/python/day23.py
|
josephroquedev/advent-of-code
|
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
|
[
"MIT"
] | 2
|
2021-06-02T00:41:38.000Z
|
2021-11-30T10:05:29.000Z
|
2015/day_23/python/day23.py
|
autoreleasefool/advent-of-code
|
bb217deb7a5f5ed5c8c04cb726ddadb5b042ee4d
|
[
"MIT"
] | null | null | null |
from aoc import AOC
import re
aoc = AOC(year=2015, day=23)
data = aoc.load()
## Part 1
register_a = 0
register_b = 0
commands = []
# For each line in the input
for line in data.lines():
# Add the line to the list of commands
commands.append(line.strip())
# Start at command 0 and continue until an impossible command is invoked
current_command = 0
while current_command < len(commands):
# Get the command and the register/values associated with it
command = re.match(
r"^(hlf|tpl|inc|jmp|jie|jio) ([ab]|[+-]?\d+)(, ([+-]?\d+))?$",
commands[current_command],
)
if command.group(1) == "hlf":
# Divide the specified register in half and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a = int(register_a / 2)
elif command.group(2) == "b":
register_b = int(register_b / 2)
elif command.group(1) == "tpl":
# Multiply the specified register by 3 and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a *= 3
elif command.group(2) == "b":
register_b *= 3
elif command.group(1) == "inc":
# Increment the specified register by 1 and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a += 1
elif command.group(2) == "b":
register_b += 1
elif command.group(1) == "jmp":
# Jump to the command relative to the current one, by offset
current_command += int(command.group(2))
elif command.group(1) == "jie":
# Jump to the command relative to the current one, by offset, if the specified register is even
# Otherwise, go to the next command
if (command.group(2) == "a" and register_a % 2 == 0) or (
command.group(2) == "b" and register_b % 2 == 0
):
current_command += int(command.group(4))
else:
current_command += 1
elif command.group(1) == "jio":
# Jump to the command relative to the current one, by offset, if the specified register is one
# Otherwise, go to the next command
if (command.group(2) == "a" and register_a == 1) or (
command.group(2) == "b" and register_b == 1
):
current_command += int(command.group(4))
else:
current_command += 1
aoc.p1(register_b)
## Part 2
register_a = 1
register_b = 0
commands = []
# For each line in the input
for line in data.lines():
# Add the line to the list of commands
commands.append(line.strip())
# Start at command 0 and continue until an impossible command is invoked
current_command = 0
while current_command < len(commands):
# Get the command and the register/values associated with it
command = re.match(
r"^(hlf|tpl|inc|jmp|jie|jio) ([ab]|[+-]?\d+)(, ([+-]?\d+))?$",
commands[current_command],
)
if command.group(1) == "hlf":
# Divide the specified register in half and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a = int(register_a / 2)
elif command.group(2) == "b":
register_b = int(register_b / 2)
elif command.group(1) == "tpl":
# Multiply the specified register by 3 and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a *= 3
elif command.group(2) == "b":
register_b *= 3
elif command.group(1) == "inc":
# Increment the specified register by 1 and continue to the next command
current_command += 1
if command.group(2) == "a":
register_a += 1
elif command.group(2) == "b":
register_b += 1
elif command.group(1) == "jmp":
# Jump to the command relative to the current one, by offset
current_command += int(command.group(2))
elif command.group(1) == "jie":
# Jump to the command relative to the current one, by offset, if the specified register is even
# Otherwise, go to the next command
if (command.group(2) == "a" and register_a % 2 == 0) or (
command.group(2) == "b" and register_b % 2 == 0
):
current_command += int(command.group(4))
else:
current_command += 1
elif command.group(1) == "jio":
# Jump to the command relative to the current one, by offset, if the specified register is one
# Otherwise, go to the next command
if (command.group(2) == "a" and register_a == 1) or (
command.group(2) == "b" and register_b == 1
):
current_command += int(command.group(4))
else:
current_command += 1
aoc.p2(register_b)
| 35.467153
| 103
| 0.586129
| 679
| 4,859
| 4.11782
| 0.122239
| 0.16309
| 0.102289
| 0.057225
| 0.962089
| 0.962089
| 0.962089
| 0.962089
| 0.962089
| 0.962089
| 0
| 0.027469
| 0.29574
| 4,859
| 136
| 104
| 35.727941
| 0.789597
| 0.299033
| 0
| 0.895833
| 0
| 0.020833
| 0.050933
| 0.015398
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.020833
| 0
| 0.020833
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
cdd11cc6f7736cc2b06aa93d091343a7bf7d06de
| 182
|
py
|
Python
|
sendgrid/tests/__init__.py
|
mattijevi/django-sendgrid
|
f930cb1759ea034a4a54dc1e077e8e8bb8b7206b
|
[
"BSD-2-Clause"
] | 7
|
2015-03-29T05:56:50.000Z
|
2018-09-13T09:48:18.000Z
|
sendgrid/tests/__init__.py
|
mattijevi/django-sendgrid
|
f930cb1759ea034a4a54dc1e077e8e8bb8b7206b
|
[
"BSD-2-Clause"
] | 10
|
2015-02-12T17:06:21.000Z
|
2019-11-28T07:59:22.000Z
|
sendgrid/tests/__init__.py
|
mattijevi/django-sendgrid
|
f930cb1759ea034a4a54dc1e077e8e8bb8b7206b
|
[
"BSD-2-Clause"
] | 9
|
2015-01-02T06:27:13.000Z
|
2019-06-19T02:11:10.000Z
|
import django
import unittest
if django.VERSION[0] == 1 and django.VERSION[1] < 6:
def suite():
return unittest.TestLoader().discover("sendgrid.tests", pattern="*.py")
| 22.75
| 79
| 0.675824
| 24
| 182
| 5.125
| 0.75
| 0.211382
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02649
| 0.17033
| 182
| 7
| 80
| 26
| 0.788079
| 0
| 0
| 0
| 0
| 0
| 0.098901
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0.2
| 0.8
| 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
| 1
| 1
| 0
|
0
| 7
|
a80e82df006a7a35bb1b56b270b2e3bc9b43853d
| 8,022
|
py
|
Python
|
backend/account_app/models.py
|
michaeljarizala/django-react-app-boilerplate
|
2a5e8a57f21a5a411d47032f8e55afdba99db603
|
[
"MIT"
] | null | null | null |
backend/account_app/models.py
|
michaeljarizala/django-react-app-boilerplate
|
2a5e8a57f21a5a411d47032f8e55afdba99db603
|
[
"MIT"
] | 5
|
2021-03-30T13:45:26.000Z
|
2021-09-22T19:16:06.000Z
|
backend/account_app/models.py
|
michaeljarizala/django-react-app-boilerplate
|
2a5e8a57f21a5a411d47032f8e55afdba99db603
|
[
"MIT"
] | null | null | null |
import uuid
import pytz
from django.db import models
from django.db import connection, connections
from datetime import datetime
from django.utils import timezone
# django libraries for deleting file attachments
from django.db.models.signals import post_delete, pre_save
from django.dispatch import receiver
# django libraries for displaying validation error messages
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
# external models
from django.contrib.auth.models import User
class Module(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=300, unique=True)
shorthand = models.CharField(max_length=50, unique=True)
fontawesome_icon = models.CharField(max_length=75)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="module_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="module_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"module'
def __str__(self):
return self.name
def get_absolute_url(self):
return "/"
class Role(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=300, unique=True)
shorthand = models.CharField(max_length=50, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"role'
def __str__(self):
return self.name
def get_absolute_url(self):
return "/"
class Object(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=300, unique=True)
shorthand = models.CharField(max_length=50, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="object_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="object_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"object'
def __str__(self):
return self.name
def get_absolute_url(self):
return "/"
class Operation(models.Model):
name = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=100, unique=True)
shorthand = models.CharField(max_length=10, unique=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="operation_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="operation_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"operation'
def __str__(self):
return self.name
def get_absolute_url(self):
return "/"
class Permission(models.Model):
object = models.ForeignKey(Object, on_delete=models.CASCADE, related_name="permission_object")
operation = models.ForeignKey(Operation, on_delete=models.CASCADE, related_name="permission_operation")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="permission_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="permission_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"permission'
def __str__(self):
return self.object.name + " | " + self.operation.name
def get_absolute_url(self):
return "/"
class RoleAssignment(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="role_assignment_user")
role = models.ForeignKey(Role, on_delete=models.CASCADE, related_name="role_assignment_role")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_assignment_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_assignment_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"roleassignment'
def __str__(self):
return self.user.username + " | " + self.role.name
def get_absolute_url(self):
return "/"
class PermissionAssignment(models.Model):
role = models.ForeignKey(Role, on_delete=models.CASCADE, related_name="permission_assignment_role")
permission = models.ForeignKey(Permission, on_delete=models.CASCADE, related_name="permission_assignment_permission")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="permission_assignment_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="permission_assignment_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"permissionassignment'
def __str__(self):
return self.role.name + " | " + self.permission.object.name + " | " + self.permission.operation.name
def get_absolute_url(self):
return "/"
class RoleModule(models.Model):
role = models.ForeignKey(Role, on_delete=models.CASCADE, related_name="role_module_role")
module = models.ForeignKey(Module, on_delete=models.CASCADE, related_name="role_module_module")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_module_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="role_module_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"rolemodule'
def __str__(self):
return self.role.name + " | " + self.module.name
def get_absolute_url(self):
return "/"
class ModuleObject(models.Model):
module = models.ForeignKey(Module, on_delete=models.CASCADE, related_name="module_object_module")
object = models.ForeignKey(Object, on_delete=models.CASCADE, related_name="module_object_object")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(blank=True, null=True)
created_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="module_object_created_by", blank=True, null=True)
updated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name="module_object_updated_by", blank=True, null=True)
class Meta:
db_table = 'account_app\".\"moduleobject'
def __str__(self):
return self.module.name + " | " + self.object.name
def get_absolute_url(self):
return "/"
class PasswordReset(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="account_password_reset_user")
confirmation_code = models.CharField(max_length=16)
confirmed = models.BooleanField(default=False)
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
db_table = 'account_app\".\"passwordreset'
def __str__(self):
return self.user.username + " | " + self.confirmation_code
def get_absolute_url(self):
return "/"
@classmethod
def create(cls, user, confirmation_code):
try:
pr = cls(user=user, confirmation_code=confirmation_code)
pr.save()
return pr
except Exception as e:
print(e)
return e
| 39.910448
| 138
| 0.785216
| 1,121
| 8,022
| 5.349688
| 0.102587
| 0.077372
| 0.067701
| 0.076538
| 0.8004
| 0.79373
| 0.789228
| 0.755878
| 0.685509
| 0.670502
| 0
| 0.004844
| 0.099227
| 8,022
| 201
| 139
| 39.910448
| 0.825076
| 0.014959
| 0
| 0.470588
| 0
| 0
| 0.116344
| 0.0733
| 0
| 0
| 0
| 0
| 0
| 1
| 0.137255
| false
| 0.019608
| 0.071895
| 0.130719
| 0.895425
| 0.006536
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
a823c58c8bc9e31241d5852184e177772be2a283
| 127
|
py
|
Python
|
main.py
|
klehman-rally/kingfisher
|
e5f0eff0fcc596b15d799d67f20e7e6e54ea7d2e
|
[
"BSD-3-Clause"
] | null | null | null |
main.py
|
klehman-rally/kingfisher
|
e5f0eff0fcc596b15d799d67f20e7e6e54ea7d2e
|
[
"BSD-3-Clause"
] | null | null | null |
main.py
|
klehman-rally/kingfisher
|
e5f0eff0fcc596b15d799d67f20e7e6e54ea7d2e
|
[
"BSD-3-Clause"
] | null | null | null |
from app.functions import kf_ingest, kf_evaluateOCM
from app.functions import kf_inbound
from app.functions import kf_doorman
| 25.4
| 51
| 0.858268
| 20
| 127
| 5.25
| 0.45
| 0.2
| 0.457143
| 0.628571
| 0.685714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110236
| 127
| 4
| 52
| 31.75
| 0.929204
| 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
| 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
| 7
|
a91c56c90d398f386d590e14ed2a32947fd1b71e
| 3,985
|
py
|
Python
|
carball/tests/stats/boost_test.py
|
jawnv6/carball
|
9319479e593ebc533a6b05bde7afaec60f805298
|
[
"Apache-2.0"
] | null | null | null |
carball/tests/stats/boost_test.py
|
jawnv6/carball
|
9319479e593ebc533a6b05bde7afaec60f805298
|
[
"Apache-2.0"
] | null | null | null |
carball/tests/stats/boost_test.py
|
jawnv6/carball
|
9319479e593ebc533a6b05bde7afaec60f805298
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from carball.analysis.analysis_manager import AnalysisManager
from carball.tests.utils import run_analysis_test_on_replay, get_specific_replays, get_specific_answers, assertNearlyEqual
class BoostTest(unittest.TestCase):
def test_1_small_pad_collected(self):
def test(analysis: AnalysisManager):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
self.assertEqual(boost.num_small_boosts, 1)
print(analysis)
run_analysis_test_on_replay(test, get_specific_replays()["1_SMALL_PAD"])
def test_1_large_pad_collected(self):
def test(analysis: AnalysisManager):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
self.assertEqual(boost.num_large_boosts, 1)
print(analysis)
run_analysis_test_on_replay(test, get_specific_replays()["1_LARGE_PAD"])
def test_0_boost_collected(self):
def test(analysis: AnalysisManager):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
self.assertEqual(boost.num_small_boosts, 0)
self.assertEqual(boost.num_large_boosts, 0)
print(analysis)
run_analysis_test_on_replay(test, get_specific_replays()["0_BOOST_COLLECTED"])
def test_boost_used(self):
def test(analysis: AnalysisManager, boost_value):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
print("Predicted usage: {}, actual: {}".format(boost.boost_usage, boost_value))
self.assertAlmostEqual(boost.boost_usage, boost_value, delta=1)
# self.assertGreater(boost.average_boost_level, 0)
run_analysis_test_on_replay(test, get_specific_replays()["BOOST_USED"] + get_specific_replays()["0_BOOST_USED"],
answers=get_specific_answers()["BOOST_USED"] +
get_specific_answers()["0_BOOST_USED"])
def test_boost_feathered(self):
def test(analysis: AnalysisManager, boost_value):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
print("Predicted usage: {}, actual: {}".format(boost.boost_usage, boost_value))
assertNearlyEqual(self, boost.boost_usage, boost_value, percent=3)
# self.assertGreater(boost.average_boost_level, 0)
run_analysis_test_on_replay(test, get_specific_replays()["BOOST_FEATHERED"],
answers=get_specific_answers()["BOOST_FEATHERED"])
def test_boost_wasted_collection(self):
def test(analysis: AnalysisManager, boost_value):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
self.assertAlmostEqual(boost.wasted_collection, boost_value, delta=1)
# self.assertGreater(boost.average_boost_level, 0)
print(analysis)
# run_analysis_test_on_replay(test, get_specific_replays()["BOOST_WASTED_COLLECTION"],
# answers=get_specific_answers()["BOOST_WASTED_COLLECTION"])
def test_0_used(self):
def test(analysis: AnalysisManager, boost_value):
proto_game = analysis.get_protobuf_data()
player = proto_game.players[0]
boost = player.stats.boost
self.assertEqual(boost.boost_usage, boost_value)
print(analysis)
run_analysis_test_on_replay(test, get_specific_replays()["0_BOOST_USED"],
answers=get_specific_answers()["0_BOOST_USED"])
if __name__ == '__main__':
unittest.main()
| 43.315217
| 122
| 0.654203
| 450
| 3,985
| 5.413333
| 0.133333
| 0.067734
| 0.066502
| 0.055829
| 0.802545
| 0.74179
| 0.710181
| 0.710181
| 0.710181
| 0.710181
| 0
| 0.009418
| 0.253952
| 3,985
| 91
| 123
| 43.791209
| 0.809956
| 0.079799
| 0
| 0.530303
| 0
| 0
| 0.056542
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 1
| 0.212121
| false
| 0
| 0.045455
| 0
| 0.272727
| 0.106061
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a983772369876c094a84c55c17db3e88d669efe4
| 5,123
|
py
|
Python
|
tests/commands/test_initialize.py
|
MattiaU/sagify
|
b9715eef0f146b5c07da21d81cc88e06a0721350
|
[
"MIT"
] | 3
|
2019-06-10T18:34:42.000Z
|
2019-10-17T13:51:54.000Z
|
tests/commands/test_initialize.py
|
MattiaU/sagify
|
b9715eef0f146b5c07da21d81cc88e06a0721350
|
[
"MIT"
] | null | null | null |
tests/commands/test_initialize.py
|
MattiaU/sagify
|
b9715eef0f146b5c07da21d81cc88e06a0721350
|
[
"MIT"
] | 2
|
2019-10-17T13:52:10.000Z
|
2021-08-21T07:49:50.000Z
|
import os
try:
from unittest.mock import patch
except ImportError:
from mock import patch
import pytest
from click.testing import CliRunner
from sagify.__main__ import cli
def test_init_happy_case():
runner = CliRunner()
with patch(
'sagify.commands.initialize._get_local_aws_profiles',
return_value=['default', 'sagemaker']
):
with runner.isolated_filesystem():
result = runner.invoke(cli=cli, args=['init'], input='my_app\n1\n2\nus-east-1\n')
assert os.path.isfile('__init__.py')
assert os.path.isdir('sagify')
assert os.path.isdir('sagify/training')
assert os.path.isdir('sagify/prediction')
assert os.path.isfile('sagify/__init__.py')
assert os.path.isfile('sagify/build.sh')
assert os.path.isfile('sagify/push.sh')
assert os.path.isfile('sagify/Dockerfile')
assert os.path.isfile('sagify/training/__init__.py')
assert os.path.isfile('sagify/training/train')
assert os.path.isfile('sagify/prediction/__init__.py')
assert os.path.isfile('sagify/prediction/nginx.conf')
assert os.path.isfile('sagify/prediction/predictor.py')
assert os.path.isfile('sagify/prediction/wsgi.py')
assert os.path.isfile('sagify/prediction/serve')
assert os.path.isfile('sagify/local_test/train_local.sh')
assert os.path.isdir('sagify/local_test/test_dir/input/data/training')
assert os.path.isfile('sagify/local_test/test_dir/input/config/hyperparameters.json')
assert os.path.isdir('sagify/local_test/test_dir/model')
assert os.path.isdir('sagify/local_test/test_dir/output')
assert result.exit_code == 0
@pytest.mark.parametrize("test_input_args", [
['init', '-d', 'src/'],
['init', '--dir', 'my_app/']
])
def test_init_with_dir_arg_happy_case(test_input_args):
runner = CliRunner()
with patch(
'sagify.commands.initialize._get_local_aws_profiles',
return_value=['default', 'sagemaker']
):
with runner.isolated_filesystem():
result = runner.invoke(
cli=cli,
args=test_input_args,
input='my_app\n1\n2\nus-east-1\n'
)
root_dir = test_input_args[2]
assert os.path.isfile(os.path.join(root_dir, '__init__.py'))
assert os.path.isdir(os.path.join(root_dir, 'sagify'))
assert os.path.isdir(os.path.join(root_dir, 'sagify/training'))
assert os.path.isdir(os.path.join(root_dir, 'sagify/prediction'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/__init__.py'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/build.sh'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/push.sh'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/Dockerfile'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/training/__init__.py'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/training/train'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/prediction/__init__.py'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/prediction/nginx.conf'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/prediction/predictor.py'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/prediction/wsgi.py'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/prediction/serve'))
assert os.path.isfile(os.path.join(root_dir, 'sagify/local_test/train_local.sh'))
assert os.path.isdir(
os.path.join(root_dir, 'sagify/local_test/test_dir/input/data/training')
)
assert os.path.isfile(
os.path.join(
root_dir,
'sagify/local_test/test_dir/input/config/hyperparameters.json'
)
)
assert os.path.isdir(os.path.join(root_dir, 'sagify/local_test/test_dir/model'))
assert os.path.isdir(os.path.join(root_dir, 'sagify/local_test/test_dir/output'))
assert result.exit_code == 0
def test_init_when_directory_already_exists():
runner = CliRunner()
with patch(
'sagify.commands.initialize._get_local_aws_profiles',
return_value=['default', 'sagemaker']
):
with runner.isolated_filesystem():
os.mkdir('sagify')
result = runner.invoke(
cli=cli,
args=['init'],
input='my_app\n1\n2\nus-east-1\nN\nmy_sagify\n'
)
assert result.exit_code == -1
def test_init_when_aws_cli_is_not_configure_locally():
runner = CliRunner()
with patch(
'sagify.commands.initialize._get_local_aws_profiles',
return_value=[]
):
with runner.isolated_filesystem():
result = runner.invoke(cli=cli, args=['init'], input='my_app\n1\n2\n')
assert result.exit_code == -1
| 40.65873
| 97
| 0.623658
| 659
| 5,123
| 4.634294
| 0.141123
| 0.117878
| 0.157171
| 0.165029
| 0.865095
| 0.857564
| 0.79797
| 0.731172
| 0.656516
| 0.637197
| 0
| 0.004126
| 0.243022
| 5,123
| 125
| 98
| 40.984
| 0.783394
| 0
| 0
| 0.295238
| 0
| 0
| 0.274839
| 0.207105
| 0
| 0
| 0
| 0
| 0.419048
| 1
| 0.038095
| false
| 0
| 0.066667
| 0
| 0.104762
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
8d4afa64e4d5d3ee9fa2a5f3dc60b23dcf6ec8bc
| 355
|
py
|
Python
|
tests/internal/strategies/test_strategies_spread_auto.py
|
frolovv/aws.ec2.compare
|
582805823492f833d65c0441c4a14dce697c12aa
|
[
"Apache-2.0"
] | null | null | null |
tests/internal/strategies/test_strategies_spread_auto.py
|
frolovv/aws.ec2.compare
|
582805823492f833d65c0441c4a14dce697c12aa
|
[
"Apache-2.0"
] | null | null | null |
tests/internal/strategies/test_strategies_spread_auto.py
|
frolovv/aws.ec2.compare
|
582805823492f833d65c0441c4a14dce697c12aa
|
[
"Apache-2.0"
] | 1
|
2021-12-15T11:58:22.000Z
|
2021-12-15T11:58:22.000Z
|
# Testing module strategies.spread
import pytest
import ec2_compare.internal.strategies.spread
def test_get_internal_data_strategies_spread_get_instances_list():
assert len(ec2_compare.internal.strategies.spread.get_instances_list()) > 0
def test_get_internal_data_strategies_spread_get():
assert len(ec2_compare.internal.strategies.spread.get) > 0
| 35.5
| 77
| 0.850704
| 50
| 355
| 5.66
| 0.36
| 0.339223
| 0.268551
| 0.29682
| 0.826855
| 0.614841
| 0.614841
| 0.614841
| 0
| 0
| 0
| 0.015198
| 0.073239
| 355
| 9
| 78
| 39.444444
| 0.844985
| 0.090141
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 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
| 9
|
a5e1be5b5a0861eb5457de46656986e206b38651
| 4,571
|
py
|
Python
|
pyosp/tests/test_curvSP.py
|
PyOSP-devs/PyOSP
|
f3137b9881b2f0f8a703d64f06c4776694c82f40
|
[
"Apache-2.0"
] | 19
|
2020-10-31T19:03:17.000Z
|
2022-03-30T06:58:35.000Z
|
pyosp/tests/test_curvSP.py
|
PyOSP-devs/PyOSP
|
f3137b9881b2f0f8a703d64f06c4776694c82f40
|
[
"Apache-2.0"
] | 1
|
2021-05-18T16:17:43.000Z
|
2021-05-19T16:42:28.000Z
|
pyosp/tests/test_curvSP.py
|
PyOSP-devs/PyOSP
|
f3137b9881b2f0f8a703d64f06c4776694c82f40
|
[
"Apache-2.0"
] | 7
|
2020-10-12T16:16:18.000Z
|
2021-10-29T21:09:33.000Z
|
# -*- coding: utf-8 -*-
import pytest
import os, sys
import pyosp
import numpy as np
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
dat = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../datasets/")
@pytest.fixture()
def dxdy(orig_homo):
orig = orig_homo()
p1 = orig.lines[len(orig.lines) // 2][0]
p2 = orig.lines[len(orig.lines) // 2][1]
slope = (p2[1] - p1[1]) / (p2[0] - p1[0])
dx = np.sqrt(orig.cross_stepsize ** 2 / (slope ** 2 + 1))
dy = dx * slope
yield dx, dy
class TestCurv:
def test_elev_homo(self, elev_homo, dxdy):
"""
Double sides test.
All points WITHIN polygon should fall in geo-parameter range.
All points OUTSIDE should not.
"""
elev = elev_homo()
lines = elev.lines
dx, dy = dxdy
points_left = [x[0] for x in lines[50:150]]
points_right = [x[-1] for x in lines[50:150]]
p_dat_in = []
p_dat_out = []
for point in points_left:
p_out = [point[0] - dx, point[1] - dy]
p_elev_in = pyosp.Point_elevation(point, elev.raster).value
p_elev_out = pyosp.Point_elevation(p_out, elev.raster).value
p_dat_in.append(p_elev_in)
p_dat_out.append(p_elev_out)
assert all(i >= 0.01 for i in p_dat_in)
assert all(i < 0.01 for i in p_dat_out)
p_dat_in = []
p_dat_out = []
for point in points_right:
p_out = [point[0] + dx, point[1] + dy]
p_elev_in = pyosp.Point_elevation(point, elev.raster).value
p_elev_out = pyosp.Point_elevation(p_out, elev.raster).value
p_dat_in.append(p_elev_in)
p_dat_out.append(p_elev_out)
assert all(i >= 0.01 for i in p_dat_in)
assert all(i < 0.01 for i in p_dat_out)
def test_slope_homo(self, slope_homo, dxdy):
"""
Double sides test.
All points WITHIN polygon should fall in geo-parameter range.
All points OUTSIDE should not.
"""
slope = slope_homo()
lines = slope.lines
dx, dy = dxdy
points_left = [x[0] for x in lines[50:150]]
points_right = [x[-1] for x in lines[50:150]]
p_dat_in = []
p_dat_out = []
for point in points_left:
p_out = [point[0] - dx, point[1] - dy]
dat_in = pyosp.Geo_slope(point, slope.raster, slope.cell_res).value
dat_out = pyosp.Geo_slope(p_out, slope.raster, slope.cell_res).value
p_dat_in.append(dat_in)
p_dat_out.append(dat_out)
assert all(i >= 1 for i in p_dat_in)
assert all(i < 1 for i in p_dat_out)
p_dat_in = []
p_dat_out = []
for point in points_right:
p_out = [point[0] + dx, point[1] + dy]
dat_in = pyosp.Geo_slope(point, slope.raster, slope.cell_res).value
dat_out = pyosp.Geo_slope(p_out, slope.raster, slope.cell_res).value
p_dat_in.append(dat_in)
p_dat_out.append(dat_out)
assert all(i >= 1 for i in p_dat_in)
assert all(i < 1 for i in p_dat_out)
def test_tpi_homo(self, tpi_homo, dxdy):
"""
Double sides test.
All points WITHIN polygon should fall in geo-parameter range.
All points OUTSIDE should not.
"""
tpi = tpi_homo()
lines = tpi.lines
dx, dy = dxdy
points_left = [x[0] for x in lines[50:100]]
points_right = [x[-1] for x in lines[50:100]]
p_dat_in = []
p_dat_out = []
for point in points_left:
p_out = [point[0] - dx, point[1] - dy]
dat_in = pyosp.Tpi(point, tpi.raster, tpi.tpi_radius).value
dat_out = pyosp.Tpi(p_out, tpi.raster, tpi.tpi_radius).value
p_dat_in.append(dat_in)
p_dat_out.append(dat_out)
assert all(i >= -5 for i in p_dat_in)
assert all(i < -5 for i in p_dat_out)
p_dat_in = []
p_dat_out = []
for point in points_right:
p_out = [point[0] + dx, point[1] + dy]
dat_in = pyosp.Tpi(point, tpi.raster, tpi.tpi_radius).value
dat_out = pyosp.Tpi(p_out, tpi.raster, tpi.tpi_radius).value
p_dat_in.append(dat_in)
p_dat_out.append(dat_out)
assert all(i >= -5 for i in p_dat_in)
assert all(i < -5 for i in p_dat_out)
| 32.41844
| 81
| 0.553271
| 705
| 4,571
| 3.350355
| 0.110638
| 0.060965
| 0.060965
| 0.068586
| 0.856901
| 0.856901
| 0.835732
| 0.81033
| 0.804403
| 0.793395
| 0
| 0.02828
| 0.334719
| 4,571
| 140
| 82
| 32.65
| 0.748438
| 0.07832
| 0
| 0.712766
| 0
| 0
| 0.003034
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 1
| 0.042553
| false
| 0
| 0.042553
| 0
| 0.095745
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
f53aa56585e0f8f20d159cf6a6aad3a0710c0421
| 247
|
py
|
Python
|
nmigen/vendor/lattice_ecp5.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 528
|
2020-01-28T18:21:00.000Z
|
2021-12-09T06:27:51.000Z
|
nmigen/vendor/lattice_ecp5.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 360
|
2020-01-28T18:34:30.000Z
|
2021-12-10T08:03:32.000Z
|
nmigen/vendor/lattice_ecp5.py
|
psumesh/nmigen
|
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
|
[
"BSD-2-Clause"
] | 100
|
2020-02-06T21:55:46.000Z
|
2021-11-25T19:20:44.000Z
|
from amaranth.vendor.lattice_ecp5 import *
from amaranth.vendor.lattice_ecp5 import __all__
import warnings
warnings.warn("instead of nmigen.vendor.lattice_ecp5, use amaranth.vendor.lattice_ecp5",
DeprecationWarning, stacklevel=2)
| 30.875
| 88
| 0.793522
| 31
| 247
| 6.064516
| 0.516129
| 0.276596
| 0.361702
| 0.398936
| 0.37234
| 0.37234
| 0
| 0
| 0
| 0
| 0
| 0.023364
| 0.133603
| 247
| 7
| 89
| 35.285714
| 0.85514
| 0
| 0
| 0
| 0
| 0
| 0.287449
| 0.222672
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f5574db728353e215324c5e0897d59dc1db11e7a
| 169
|
py
|
Python
|
hyades/connection/wrappers/__init__.py
|
renatoalmeidaoliveira/Hyades
|
2b6aa6ff609fda3c684c3479919cfd5e497d7ec0
|
[
"MIT"
] | 1
|
2021-10-17T15:27:26.000Z
|
2021-10-17T15:27:26.000Z
|
hyades/connection/wrappers/__init__.py
|
renatoalmeidaoliveira/Hyades
|
2b6aa6ff609fda3c684c3479919cfd5e497d7ec0
|
[
"MIT"
] | null | null | null |
hyades/connection/wrappers/__init__.py
|
renatoalmeidaoliveira/Hyades
|
2b6aa6ff609fda3c684c3479919cfd5e497d7ec0
|
[
"MIT"
] | null | null | null |
from hyades.connection.wrappers.scrapli_wrapper import *
from hyades.connection.wrappers.unicon_wrapper import *
from hyades.connection.wrappers.netmiko_wrapper import *
| 56.333333
| 56
| 0.863905
| 21
| 169
| 6.809524
| 0.428571
| 0.20979
| 0.41958
| 0.587413
| 0.573427
| 0.573427
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065089
| 169
| 3
| 57
| 56.333333
| 0.905063
| 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
| 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
| 8
|
19a557b7a2a8d354af979a6489ac8085b48448f8
| 132
|
py
|
Python
|
katas/kyu_6/split_strings.py
|
the-zebulan/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 40
|
2016-03-09T12:26:20.000Z
|
2022-03-23T08:44:51.000Z
|
katas/kyu_6/split_strings.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | null | null | null |
katas/kyu_6/split_strings.py
|
akalynych/CodeWars
|
1eafd1247d60955a5dfb63e4882e8ce86019f43a
|
[
"MIT"
] | 36
|
2016-11-07T19:59:58.000Z
|
2022-03-31T11:18:27.000Z
|
from itertools import izip_longest
def solution(s):
return [''.join(a) for a in izip_longest(s[::2], s[1::2], fillvalue='_')]
| 22
| 77
| 0.659091
| 22
| 132
| 3.818182
| 0.727273
| 0.261905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026786
| 0.151515
| 132
| 5
| 78
| 26.4
| 0.723214
| 0
| 0
| 0
| 0
| 0
| 0.007576
| 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
| 1
| 0
|
0
| 7
|
5fd81c90dd53236fe6e9748fa2035cab62601682
| 74
|
py
|
Python
|
bv/util/datetime.py
|
thundercrawl/pythonAI
|
7a20b8c24640821cdd0bd04f642eed20192c7766
|
[
"MIT"
] | null | null | null |
bv/util/datetime.py
|
thundercrawl/pythonAI
|
7a20b8c24640821cdd0bd04f642eed20192c7766
|
[
"MIT"
] | null | null | null |
bv/util/datetime.py
|
thundercrawl/pythonAI
|
7a20b8c24640821cdd0bd04f642eed20192c7766
|
[
"MIT"
] | null | null | null |
import datetime
def now():
return datetime.datetime.now().__str__()
| 12.333333
| 44
| 0.702703
| 9
| 74
| 5.333333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162162
| 74
| 5
| 45
| 14.8
| 0.774194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
272092b3543c06b54a6d30cb017f6633de40da2f
| 199
|
py
|
Python
|
src/lib/flaskext/wtf/recaptcha/__init__.py
|
yakudzam/flask-gae-blog
|
ab422a72f93ddc838dca9bc139ddcac978306937
|
[
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 43
|
2015-01-02T11:59:27.000Z
|
2021-06-03T18:47:09.000Z
|
src/lib/flaskext/wtf/recaptcha/__init__.py
|
Bergvca/flask-appengine-template
|
f2417c65ac2a549b9728b320a8501f619902224a
|
[
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1
|
2018-09-14T05:43:27.000Z
|
2018-09-14T05:43:27.000Z
|
src/lib/flaskext/wtf/recaptcha/__init__.py
|
Bergvca/flask-appengine-template
|
f2417c65ac2a549b9728b320a8501f619902224a
|
[
"MIT",
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 6
|
2018-07-14T04:58:02.000Z
|
2018-08-06T18:02:27.000Z
|
from flaskext.wtf.recaptcha import fields
from flaskext.wtf.recaptcha import validators
from flaskext.wtf.recaptcha import widgets
__all__ = fields.__all__ + validators.__all__ + widgets.__all__
| 33.166667
| 63
| 0.824121
| 25
| 199
| 5.92
| 0.36
| 0.243243
| 0.304054
| 0.486486
| 0.608108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115578
| 199
| 5
| 64
| 39.8
| 0.840909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 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
| 1
| 0
|
0
| 7
|
2723e7d360681bd999b5db0c24d18226696309f3
| 29,864
|
py
|
Python
|
python/tvm/autotvm/tuner/data_volume_estimator.py
|
fmitch/incubator-tvm
|
67e3f437af90724a5af0bff67d033d47c8a2edf7
|
[
"Apache-2.0"
] | null | null | null |
python/tvm/autotvm/tuner/data_volume_estimator.py
|
fmitch/incubator-tvm
|
67e3f437af90724a5af0bff67d033d47c8a2edf7
|
[
"Apache-2.0"
] | null | null | null |
python/tvm/autotvm/tuner/data_volume_estimator.py
|
fmitch/incubator-tvm
|
67e3f437af90724a5af0bff67d033d47c8a2edf7
|
[
"Apache-2.0"
] | 1
|
2020-03-10T17:11:57.000Z
|
2020-03-10T17:11:57.000Z
|
import numpy as np
def estimate_dv(loop_order, num_iters, inds, cache_sizes, conv_inds, fastest_varying, arrays=['In_conv', 'K', 'O'], word_size=4, line_size=64, use_full_footprint=True):
""" Estimate data volume using loop iterators, arrays, and cache capacities.
Paramters
---------
loop_order: list()
The list of loop iterators from outermost to innermost.
Must be of same type as inds.
num_iters: list(int)
The extent of each loop in loop_order
inds: list(list())
List of loop iterators for each array. Outermost to innermost
In order, Input, Kernel, Output, or same as arrays=['I', 'K', 'O']
Must be of same type as loop_order.
cache_sizes: list(ind)
Size of each cache level, in bytes, from lowest to highest: [L1, L2, L3, ...]
conv_inds: list( list(tuple(), tuple()) )
List of list of two tuples, where each tuple contains keys from loop_order
for the input and kernel keys corresponding to a dimension of convolution.
For example, if there were 3-level tiling on H (2,4,9) and 2-level tiling
on KH (5, 11), then the pair of tuples would be [(2,4,9), (5,11)].
2D or 3D convolution requires multiple such pairs, such as
[ [(2,4,9), (5,11)], [(10), (12)] ]. In this case there is no tiling for
the second dimension.
Keys must be the same type as in loop_order and inds
"""
cache_sizes = np.array(cache_sizes) / line_size
assert(len(inds) == len(arrays))
counter = 0
conv_ranges = np.ones((len(conv_inds), 2))
conv_keys = {}
for conv_dim in conv_inds:
for key in conv_dim[0]:
conv_keys[key] = (counter, 0)
for key in conv_dim[1]:
conv_keys[key] = (counter, 1)
counter += 1
num_iters = list(np.array(num_iters)[loop_order]) + [1]
loop_order = loop_order.copy() + ['op']
extra_lines = np.zeros(len(arrays))
d_foot_lower = np.ones((len(arrays), len(loop_order)))
d_foot_prob = np.ones((len(arrays), len(loop_order)))
d_foot_upper = np.ones((len(arrays), len(loop_order)))
d_vol_lower = np.ones((len(arrays), len(cache_sizes), len(loop_order)))
d_vol_prob = np.ones((len(arrays), len(cache_sizes), len(loop_order)))
d_vol_upper = np.ones((len(arrays), len(cache_sizes), len(loop_order)))
ranges = dict.fromkeys(['h','w','kh','kw'], 1)
loop_order = list(reversed(loop_order))
num_iters = list(reversed(num_iters))
L = line_size/word_size
for loop_ind, loop in enumerate(loop_order):
if loop == 'op': continue
for arr_ind, arr in enumerate(arrays):
if loop in inds[arr_ind] and arr != 'In_conv':
if loop == inds[arr_ind][-1]:
if num_iters[loop_ind] % L == 0:
extra_lines[arr_ind] = np.ceil(num_iters[loop_ind]/L) + (L - 1) / L
else:
extra_lines[arr_ind] = np.ceil(num_iters[loop_ind]/L) + ((num_iters[loop_ind] % L) - 1)/L
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L))
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) + 1)
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1] * extra_lines[arr_ind]
for level, cache_size in enumerate(cache_sizes):
lower_foot_sum = d_foot_lower[arr_ind, loop_ind]
upper_foot_sum = d_foot_upper[arr_ind, loop_ind]
prob_foot_sum = d_foot_prob[arr_ind, loop_ind]
if use_full_footprint:
for arr_ind_other, _ in enumerate(arrays):
if arr_ind != arr_ind_other:
lower_foot_sum += d_foot_lower[arr_ind_other, loop_ind-1]
upper_foot_sum += d_foot_upper[arr_ind_other, loop_ind-1]
prob_foot_sum += d_foot_prob[arr_ind_other, loop_ind-1]
if prob_foot_sum < cache_size:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) )
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) + 1 )
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1] * extra_lines[arr_ind]
else:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1] * num_iters[loop_ind]
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1] * num_iters[loop_ind]
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1] * num_iters[loop_ind]
elif loop in fastest_varying[arr_ind]:
small_loop = num_iters[loop_order.index(inds[arr_ind][-1])]
if small_loop <= L/2:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]*small_loop/L
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]*(1+small_loop)/L
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]*extra_lines[arr_ind]*small_loop/L
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*small_loop/L
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*(1+small_loop)/L
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*(extra_lines[arr_ind] % 1 + small_loop)/L
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]% 1
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]%1
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
elif loop not in inds[arr_ind]:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]
arr_ind = 0
if arrays[arr_ind] == 'In_conv':
if loop in inds[arr_ind]:
if loop not in sum(sum(conv_inds, []),()):
if loop == inds[arr_ind][-1]:
if num_iters[loop_ind] % L == 0:
extra_lines[arr_ind] = np.ceil(num_iters[loop_ind]/L) + (L - 1) / L
else:
extra_lines[arr_ind] = np.ceil(num_iters[loop_ind]/L) + ((num_iters[loop_ind] % L) - 1)/L
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L))
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) + 1)
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1] * extra_lines[arr_ind]
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) )
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1] * (np.ceil(num_iters[loop_ind]/L) + 1 )
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1] * extra_lines[arr_ind]
elif loop in fastest_varying[arr_ind]:
small_loop = num_iters[loop_order.index(inds[arr_ind][-1])]
if small_loop <= L/2:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]*small_loop/L
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]*(1+small_loop)/L
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]*extra_lines[arr_ind]*small_loop/L
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*small_loop/L
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*(1+small_loop)/L
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]*(extra_lines[arr_ind] % 1 + small_loop)/L
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]% 1
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]%1
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*num_iters[loop_ind]
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*num_iters[loop_ind]
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
elif loop in sum(sum(conv_inds, []),()):
counter, key = conv_keys[loop]
other_key = (1+key) % 2
new_range = conv_ranges[counter,key]*num_iters[loop_ind]
mul_factor = (new_range + conv_ranges[counter,other_key]-1)/(conv_ranges[counter,key] + conv_ranges[counter,other_key]-1)
if loop == inds[arr_ind][-1]:
if mul_factor % L < 1:
extra_lines[arr_ind] = np.ceil(mul_factor/L) + (L - 1) / L
else:
extra_lines[arr_ind] = np.ceil(mul_factor/L) + ((mul_factor % L) - 1)/L
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1] * (np.ceil(mul_factor/L) )
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1] * (np.ceil(mul_factor/L) + 1 )
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1] * extra_lines[arr_ind]
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = (np.ceil(mul_factor/L) )
d_vol_upper[arr_ind, level, loop_ind] = (np.ceil(mul_factor/L) + 1 )
d_vol_prob[arr_ind, level, loop_ind] = extra_lines[arr_ind]
elif loop in fastest_varying[arr_ind]:
small_loop = num_iters[loop_order.index(inds[arr_ind][-1])] + 2
if small_loop <= L/2:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*mul_factor*small_loop/L
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*mul_factor*(1+small_loop)/L
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor*extra_lines[arr_ind]*small_loop/L
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*mul_factor*small_loop/L
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*mul_factor*(1+small_loop)/L
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor*(extra_lines[arr_ind] % 1 + small_loop)/L
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*mul_factor
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*mul_factor
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]% 1
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*mul_factor
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*mul_factor
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]%1
else:
d_foot_lower[arr_ind, loop_ind] = d_foot_lower[arr_ind, loop_ind-1]*mul_factor
d_foot_upper[arr_ind, loop_ind] = d_foot_upper[arr_ind, loop_ind-1]*mul_factor
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor
for level, _ in enumerate(cache_sizes):
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*mul_factor
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*mul_factor
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor
conv_ranges[counter,key] = new_range
for arr_ind, arr in enumerate(arrays):
if loop not in inds[arr_ind]:
for level, cache_size in enumerate(cache_sizes):
if use_full_footprint:
lower_foot_sum = d_foot_lower[arr_ind, loop_ind]
upper_foot_sum = d_foot_upper[arr_ind, loop_ind]
prob_foot_sum = d_foot_prob[arr_ind, loop_ind]
for arr_ind_other, _ in enumerate(arrays):
if arr_ind != arr_ind_other:
lower_foot_sum += d_foot_lower[arr_ind_other, loop_ind-1]
upper_foot_sum += d_foot_upper[arr_ind_other, loop_ind-1]
prob_foot_sum += d_foot_prob[arr_ind_other, loop_ind-1]
if lower_foot_sum < cache_size:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]
else:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
if upper_foot_sum < cache_size:
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]
else:
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
if prob_foot_sum < cache_size:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]
else:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
else:
if d_foot_lower[arr_ind,loop_ind] < cache_size:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]
else:
d_vol_lower[arr_ind, level, loop_ind] = d_vol_lower[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
if d_foot_upper[arr_ind,loop_ind] < cache_size:
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]
else:
d_vol_upper[arr_ind, level, loop_ind] = d_vol_upper[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
if d_foot_prob[arr_ind,loop_ind] < cache_size:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]
else:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
return (d_foot_lower.astype(np.int64), d_foot_upper.astype(np.int64), d_foot_prob.astype(np.int64)), (d_vol_lower.astype(np.int64), d_vol_upper.astype(np.int64), d_vol_prob.astype(np.int64))
def estimate_dv_old(loop_order, num_iters, inds, cache_sizes, conv_inds, arrays=['I', 'K', 'O']):
""" Estimate data volume using loop iterators, arrays, and cache capacities.
Paramters
---------
loop_order: list()
The list of loop iterators from outermost to innermost.
Must be of same type as inds.
num_iters: list(int)
The extent of each loop in loop_order
inds: list(list())
List of loop iterators for each array. Outermost to innermost
In order, Input, Kernel, Output, or same as arrays=['I', 'K', 'O']
Must be of same type as loop_order.
cache_sizes: list(ind)
Size of each cache level, in words, from lowest to highest: [L1, L2, L3, ...]
conv_inds: list( list(tuple(), tuple()) )
List of list of two tuples, where each tuple contains keys from loop_order
for the input and kernel keys corresponding to a dimension of convolution.
For example, if there were 3-level tiling on H (2,4,9) and 2-level tiling
on KH (5, 11), then the pair of tuples would be [(2,4,9), (5,11)].
2D or 3D convolution requires multiple such pairs, such as
[ [(2,4,9), (5,11)], [(10), (12)] ]. In this case there is no tiling for
the second dimension.
Keys must be the same type as in loop_order and inds
"""
assert(len(inds) == len(arrays))
counter = 0
conv_ranges = np.ones((len(conv_inds), 2))
conv_keys = {}
for conv_dim in conv_inds:
for key in conv_dim[0]:
conv_keys[key] = (counter, 0)
for key in conv_dim[1]:
conv_keys[key] = (counter, 1)
counter += 1
num_iters = list(np.array(num_iters)[loop_order]) + [1]
loop_order = loop_order.copy() + ['op']
d_foot = np.ones((len(arrays), len(loop_order))).astype(np.uint64)
d_vol = np.ones((len(arrays), len(cache_sizes), len(loop_order))).astype(np.uint64)
ranges = dict.fromkeys(['h','w','kh','kw'], 1)
loop_order = list(reversed(loop_order))
num_iters = list(reversed(num_iters))
for loop_ind, loop in enumerate(loop_order):
if loop == 'op': continue
for arr_ind, arr in enumerate(arrays):
if loop in inds[arr_ind] and arr != 'I':
d_foot[arr_ind, loop_ind] = d_foot[arr_ind, loop_ind-1]*num_iters[loop_ind]
for level, _ in enumerate(cache_sizes):
d_vol[arr_ind, level, loop_ind] = d_vol[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
elif loop not in inds[arr_ind]:
d_foot[arr_ind, loop_ind] = d_foot[arr_ind, loop_ind-1]
for level, cache_size in enumerate(cache_sizes):
if d_foot[arr_ind, loop_ind-1] < cache_size:
d_vol[arr_ind, level, loop_ind] = d_vol[arr_ind, level, loop_ind-1]
else:
d_vol[arr_ind, level, loop_ind] = d_vol[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
arr_ind = 0
if loop in inds[arr_ind]:
if loop not in sum(sum(conv_inds, []),()):
d_foot[arr_ind, loop_ind] = d_foot[arr_ind, loop_ind-1]*num_iters[loop_ind]
for level, _ in enumerate(cache_sizes):
d_vol[arr_ind, level, loop_ind] = d_vol[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
elif loop in sum(sum(conv_inds, []),()):
counter, key = conv_keys[loop]
other_key = (1+key) % 2
new_range = conv_ranges[counter,key]*num_iters[loop_ind]
mul_factor = (new_range + conv_ranges[counter,other_key]-1)/(conv_ranges[counter,key] + conv_ranges[counter,other_key]-1)
d_foot[arr_ind, loop_ind] = d_foot[arr_ind, loop_ind-1]*mul_factor
for level, _ in enumerate(cache_sizes):
d_vol[arr_ind, level, loop_ind] = d_vol[arr_ind, level, loop_ind-1]*mul_factor
conv_ranges[counter,key] = new_range
return d_foot, d_vol
def estimate_dv2(loop_order, num_iters, inds, cache_sizes, conv_inds, fastest_varying, arrays=['In_conv', 'K', 'O'], word_size=4, line_size=64, use_full_footprint=True):
""" Estimate data volume using loop iterators, arrays, and cache capacities.
Paramters
---------
loop_order: list()
The list of loop iterators from outermost to innermost.
Must be of same type as inds.
num_iters: list(int)
The extent of each loop in loop_order
inds: list(list())
List of loop iterators for each array. Outermost to innermost
In order, Input, Kernel, Output, or same as arrays=['I', 'K', 'O']
Must be of same type as loop_order.
cache_sizes: list(ind)
Size of each cache level, in bytes, from lowest to highest: [L1, L2, L3, ...]
conv_inds: list( list(tuple(), tuple()) )
List of list of two tuples, where each tuple contains keys from loop_order
for the input and kernel keys corresponding to a dimension of convolution.
For example, if there were 3-level tiling on H (2,4,9) and 2-level tiling
on KH (5, 11), then the pair of tuples would be [(2,4,9), (5,11)].
2D or 3D convolution requires multiple such pairs, such as
[ [(2,4,9), (5,11)], [(10), (12)] ]. In this case there is no tiling for
the second dimension.
Keys must be the same type as in loop_order and inds
"""
cache_sizes = np.array(cache_sizes) / line_size
assert(len(inds) == len(arrays))
counter = 0
conv_ranges = np.ones((len(conv_inds), 2))
conv_keys = {}
for conv_dim in conv_inds:
for key in conv_dim[0]:
conv_keys[key] = (counter, 0)
for key in conv_dim[1]:
conv_keys[key] = (counter, 1)
counter += 1
num_iters = list(np.array(num_iters)[loop_order]) + [1]
loop_order = loop_order.copy() + ['op']
extra_lines = np.zeros(len(arrays))
d_foot_prob = np.ones((len(arrays), len(loop_order)))
d_vol_prob = np.ones((len(arrays), len(cache_sizes), len(loop_order)))
ranges = dict.fromkeys(['h','w','kh','kw'], 1)
loop_order = list(reversed(loop_order))
num_iters = list(reversed(num_iters))
L = line_size/word_size
for loop_ind, loop in enumerate(loop_order):
if loop == 'op': continue
for arr_ind, arr in enumerate(arrays):
if loop in inds[arr_ind]:
if arr != 'In_conv' or loop not in sum(sum(conv_inds, []),()):
mul_factor = num_iters[loop_ind]
else:
counter, key = conv_keys[loop]
other_key = (1+key) % 2
new_range = conv_ranges[counter, key]*num_iters[loop_ind]
mul_factor = (new_range + conv_ranges[counter, other_key]-1)/(conv_ranges[counter, key] + conv_ranges[counter, other_key]-1)
conv_ranges[counter,key] = new_range
if loop == inds[arr_ind][-1]:
if mul_factor % L < 1:
extra_lines[arr_ind] = np.ceil(mul_factor/L) + (L - 1) / L
else:
extra_lines[arr_ind] = np.ceil(mul_factor/L) + ((mul_factor % L) - 1)/L
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1] * extra_lines[arr_ind]
for level, _ in enumerate(cache_sizes):
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1] * extra_lines[arr_ind]
elif loop in fastest_varying[arr_ind]:
small_loop = num_iters[loop_order.index(inds[arr_ind][-1])]
if small_loop <= L/2:
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor*extra_lines[arr_ind]*small_loop/L
for level, _ in enumerate(cache_sizes):
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor*(extra_lines[arr_ind] % 1 + small_loop)/L
else:
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]% 1
for level, _ in enumerate(cache_sizes):
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor/extra_lines[arr_ind] * int(extra_lines[arr_ind]) + extra_lines[arr_ind]%1
else:
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]*mul_factor
for level, _ in enumerate(cache_sizes):
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*mul_factor
elif loop not in inds[arr_ind]:
d_foot_prob[arr_ind, loop_ind] = d_foot_prob[arr_ind, loop_ind-1]
for arr_ind, arr in enumerate(arrays):
if loop not in inds[arr_ind]:
for level, cache_size in enumerate(cache_sizes):
if use_full_footprint:
prob_foot_sum = d_foot_prob[arr_ind, loop_ind]
for arr_ind_other, _ in enumerate(arrays):
if arr_ind != arr_ind_other:
prob_foot_sum += d_foot_prob[arr_ind_other, loop_ind-1]
if prob_foot_sum < cache_size:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]
else:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
else:
if d_foot_prob[arr_ind,loop_ind] < cache_size:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]
else:
d_vol_prob[arr_ind, level, loop_ind] = d_vol_prob[arr_ind, level, loop_ind-1]*num_iters[loop_ind]
return d_foot_prob.astype(np.int64), d_vol_prob.astype(np.int64)
| 65.779736
| 203
| 0.588434
| 4,533
| 29,864
| 3.515994
| 0.033752
| 0.123102
| 0.063747
| 0.117643
| 0.987765
| 0.982306
| 0.978354
| 0.973271
| 0.969758
| 0.954574
| 0
| 0.015477
| 0.305518
| 29,864
| 453
| 204
| 65.924945
| 0.752989
| 0.114988
| 0
| 0.882883
| 0
| 0
| 0.002796
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 1
| 0.009009
| false
| 0
| 0.003003
| 0
| 0.021021
| 0.015015
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
277174aea98539b8043322e0c7eb738fe3441ad5
| 73
|
py
|
Python
|
color.py
|
dinesh-GDK/tic-tac-toe-ai
|
92cb24dde5f921cc342f1e6dec7a3b840153f80f
|
[
"MIT"
] | null | null | null |
color.py
|
dinesh-GDK/tic-tac-toe-ai
|
92cb24dde5f921cc342f1e6dec7a3b840153f80f
|
[
"MIT"
] | null | null | null |
color.py
|
dinesh-GDK/tic-tac-toe-ai
|
92cb24dde5f921cc342f1e6dec7a3b840153f80f
|
[
"MIT"
] | null | null | null |
color = {
"X": "\x1b[6;31;40mX\x1b[0m",
"O": "\x1b[6;32;40mO\x1b[0m"
}
| 14.6
| 30
| 0.506849
| 15
| 73
| 2.466667
| 0.666667
| 0.216216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.253968
| 0.136986
| 73
| 4
| 31
| 18.25
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.60274
| 0.575342
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd766a6053033f098c825a0c8c7345ff6731d569
| 147
|
py
|
Python
|
src/lazymaker/__init__.py
|
dougmvieira/lazymaker
|
1c5c6adac28bf81338832134eb1bd1b711f6f9ee
|
[
"MIT"
] | null | null | null |
src/lazymaker/__init__.py
|
dougmvieira/lazymaker
|
1c5c6adac28bf81338832134eb1bd1b711f6f9ee
|
[
"MIT"
] | null | null | null |
src/lazymaker/__init__.py
|
dougmvieira/lazymaker
|
1c5c6adac28bf81338832134eb1bd1b711f6f9ee
|
[
"MIT"
] | 1
|
2020-07-14T20:43:35.000Z
|
2020-07-14T20:43:35.000Z
|
from .core import lazymake, add_dummy_args, add_side_effects
__version__ = '0.1.0'
__all__ = ['lazymake', 'add_dummy_args', 'add_side_effects']
| 21
| 60
| 0.755102
| 22
| 147
| 4.318182
| 0.590909
| 0.231579
| 0.336842
| 0.421053
| 0.715789
| 0.715789
| 0.715789
| 0
| 0
| 0
| 0
| 0.023077
| 0.115646
| 147
| 6
| 61
| 24.5
| 0.707692
| 0
| 0
| 0
| 0
| 0
| 0.292517
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 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
| 8
|
fd84e61b81d8f47dcbff6d9531480c731eb9d0e9
| 3,195
|
py
|
Python
|
python/tests/test_s8.py
|
jameswilddev/Fau
|
8d42541740bd838a499f4ca3625701665b1bbcd0
|
[
"MIT"
] | null | null | null |
python/tests/test_s8.py
|
jameswilddev/Fau
|
8d42541740bd838a499f4ca3625701665b1bbcd0
|
[
"MIT"
] | 1
|
2020-06-08T23:03:28.000Z
|
2021-01-21T13:16:53.000Z
|
python/tests/test_s8.py
|
jameswilddev/Fau
|
8d42541740bd838a499f4ca3625701665b1bbcd0
|
[
"MIT"
] | null | null | null |
import unittest
from fau import S8
class TestS8(unittest.TestCase):
def test_length_negative_throws_error(self):
with self.assertRaises(OverflowError):
S8(-1)
def test_length_zero_returns_correct_length(self):
s8 = S8(0)
self.assertEqual(0, len(s8))
def test_length_correct(self):
s8 = S8(7)
self.assertEqual(7, len(s8))
def test_initialized_as_zeroes(self):
s8 = S8(7)
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(0, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
def test_get_negative_index_throws_error(self):
s8 = S8(7)
with self.assertRaises(IndexError):
s8[-1]
def test_get_index_out_of_range_throws_error(self):
s8 = S8(7)
with self.assertRaises(IndexError):
s8[7]
def test_set_negative_index_throws_error(self):
s8 = S8(7)
with self.assertRaises(IndexError):
s8[-1] = 144
def test_set_index_out_of_range_throws_error(self):
s8 = S8(7)
with self.assertRaises(IndexError):
s8[7] = 144
def test_set_out_of_range_negative_throws_error(self):
s8 = S8(7)
with self.assertRaises(OverflowError):
s8[3] = -129
def test_set_out_of_range_positive_throws_error(self):
s8 = S8(7)
with self.assertRaises(OverflowError):
s8[3] = 128
def test_set_minimum_value(self):
s8 = S8(7)
s8[3] = -128
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(-128, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
def test_set_negative(self):
s8 = S8(7)
s8[3] = -34
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(-34, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
def test_set_zero(self):
s8 = S8(7)
s8[3] = 34
s8[3] = 0
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(0, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
def test_set_positive(self):
s8 = S8(7)
s8[3] = 34
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(34, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
def test_set_maximum_value(self):
s8 = S8(7)
s8[3] = 127
self.assertEqual(0, s8[0])
self.assertEqual(0, s8[1])
self.assertEqual(0, s8[2])
self.assertEqual(127, s8[3])
self.assertEqual(0, s8[4])
self.assertEqual(0, s8[5])
self.assertEqual(0, s8[6])
| 24.204545
| 58
| 0.565258
| 445
| 3,195
| 3.914607
| 0.11236
| 0.378875
| 0.358209
| 0.392652
| 0.820321
| 0.788749
| 0.746843
| 0.719288
| 0.719288
| 0.719288
| 0
| 0.103448
| 0.301095
| 3,195
| 131
| 59
| 24.389313
| 0.676668
| 0
| 0
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.53125
| 1
| 0.15625
| false
| 0
| 0.020833
| 0
| 0.1875
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
fd8670cbf936d2e0ee6ca654f42c74a27ea85b6c
| 131
|
py
|
Python
|
reobject/query/__init__.py
|
agusmakmun/reobject
|
a7689bbb37f021c6c8ea72d6984513adec0d8a17
|
[
"Apache-2.0"
] | 92
|
2017-02-08T21:51:03.000Z
|
2021-05-27T22:58:07.000Z
|
reobject/query/__init__.py
|
agusmakmun/reobject
|
a7689bbb37f021c6c8ea72d6984513adec0d8a17
|
[
"Apache-2.0"
] | 15
|
2017-01-27T22:54:42.000Z
|
2021-05-27T01:31:58.000Z
|
reobject/query/__init__.py
|
agusmakmun/reobject
|
a7689bbb37f021c6c8ea72d6984513adec0d8a17
|
[
"Apache-2.0"
] | 7
|
2017-02-08T22:00:41.000Z
|
2021-05-26T00:26:44.000Z
|
from reobject.query.parser import Q
from reobject.query.queryset import EmptyQuerySet
from reobject.query.queryset import QuerySet
| 32.75
| 49
| 0.862595
| 18
| 131
| 6.277778
| 0.444444
| 0.318584
| 0.451327
| 0.442478
| 0.548673
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091603
| 131
| 3
| 50
| 43.666667
| 0.94958
| 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
| 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
| 8
|
e303485962be05b2171efc238147c26d3bd3bb5a
| 1,768
|
py
|
Python
|
572_is_subtree.py
|
xinming365/LeetCode
|
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
|
[
"Apache-2.0"
] | null | null | null |
572_is_subtree.py
|
xinming365/LeetCode
|
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
|
[
"Apache-2.0"
] | null | null | null |
572_is_subtree.py
|
xinming365/LeetCode
|
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2022/4/6 12:01 上午
# @Author : xinming
# @File : 572_is_subtree.py
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution2:
def isSubtree(self, root: TreeNode, subRoot: TreeNode) -> bool:
if not root and not subRoot:
return True
if not root or not subRoot:
return False
return self.isSameTree(root, subRoot) or self.isSubtree(root.left, subRoot) or self.isSubtree(root.right, subRoot)
def isSameTree(self, root, subRoot):
if not root and not subRoot:
return True
if not root or not subRoot:
return False
return root.val == subRoot.val and self.isSameTree(root.left, subRoot.left) and self.isSameTree(root.right, subRoot.right)
class Solution:
def isSubtree(self, root: TreeNode, subRoot: TreeNode) -> bool:
if not root and not subRoot:
return True
if (not root) or (not subRoot):
return False
return self.isSameTree(root, subRoot) or self.isSubtree(root.left, subRoot) or self.isSubtree(root.right, subRoot)
def isSameTree(self, root, subRoot):
if not root and not subRoot:
return True
if (not root) or (not subRoot):
return False
return root.val==subRoot.val and self.isSameTree(root.left, subRoot.left) and self.isSameTree(root.right, subRoot.right)
| 31.571429
| 130
| 0.628394
| 239
| 1,768
| 4.606695
| 0.213389
| 0.036331
| 0.065395
| 0.043597
| 0.910082
| 0.910082
| 0.910082
| 0.910082
| 0.910082
| 0.910082
| 0
| 0.01323
| 0.27319
| 1,768
| 55
| 131
| 32.145455
| 0.84358
| 0.188914
| 0
| 0.774194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.16129
| false
| 0
| 0
| 0
| 0.645161
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 1
| 0
|
0
| 8
|
e31e71b346c4e0ac9d0cc1066659d0f8bbaf8053
| 625
|
py
|
Python
|
extensions/.stubs/clrclasses/System/Runtime/Remoting/Metadata/__init__.py
|
vicwjb/Pycad
|
7391cd694b7a91ad9f9964ec95833c1081bc1f84
|
[
"MIT"
] | 1
|
2020-03-25T03:27:24.000Z
|
2020-03-25T03:27:24.000Z
|
extensions/.stubs/clrclasses/System/Runtime/Remoting/Metadata/__init__.py
|
vicwjb/Pycad
|
7391cd694b7a91ad9f9964ec95833c1081bc1f84
|
[
"MIT"
] | null | null | null |
extensions/.stubs/clrclasses/System/Runtime/Remoting/Metadata/__init__.py
|
vicwjb/Pycad
|
7391cd694b7a91ad9f9964ec95833c1081bc1f84
|
[
"MIT"
] | null | null | null |
import __clrclasses__.System.Runtime.Remoting.Metadata.W3cXsd2001 as W3cXsd2001
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapAttribute
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapFieldAttribute
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapMethodAttribute
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapOption
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapParameterAttribute
from __clrclasses__.System.Runtime.Remoting.Metadata import SoapTypeAttribute
from __clrclasses__.System.Runtime.Remoting.Metadata import XmlFieldOrderOption
| 69.444444
| 82
| 0.896
| 65
| 625
| 8.123077
| 0.246154
| 0.242424
| 0.348485
| 0.469697
| 0.723485
| 0.649621
| 0.649621
| 0
| 0
| 0
| 0
| 0.016863
| 0.0512
| 625
| 8
| 83
| 78.125
| 0.873524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 7
|
e32f69610ef94e7008f2e6822f8920d955e901a0
| 74
|
py
|
Python
|
component/tile/__init__.py
|
luforestal/Street
|
222c5d829506c37ddc4e8d3a0f9a41c79daf819b
|
[
"MIT"
] | null | null | null |
component/tile/__init__.py
|
luforestal/Street
|
222c5d829506c37ddc4e8d3a0f9a41c79daf819b
|
[
"MIT"
] | null | null | null |
component/tile/__init__.py
|
luforestal/Street
|
222c5d829506c37ddc4e8d3a0f9a41c79daf819b
|
[
"MIT"
] | null | null | null |
from .map_view import *
from .stat_view import *
from .user_input import *
| 24.666667
| 25
| 0.77027
| 12
| 74
| 4.5
| 0.583333
| 0.37037
| 0.518519
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148649
| 74
| 3
| 25
| 24.666667
| 0.857143
| 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
| 1
| 0
|
0
| 7
|
e35268a52a5a3b636ea02ca80be1cd4ae17a720e
| 62
|
py
|
Python
|
examples/math.log10/ex1.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
examples/math.log10/ex1.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
examples/math.log10/ex1.py
|
mcorne/python-by-example
|
15339c0909c84b51075587a6a66391100971c033
|
[
"MIT"
] | null | null | null |
import math
print(math.log10(1000))
print(math.log(1000, 10))
| 15.5
| 25
| 0.741935
| 11
| 62
| 4.181818
| 0.636364
| 0.391304
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0.080645
| 62
| 3
| 26
| 20.666667
| 0.596491
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 1
| 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
| 0
| 1
|
0
| 7
|
e3853db5b3a1ac16513a313f6615fcb1b06f2165
| 1,864
|
py
|
Python
|
Chapter02/Exercises/Exercise_20.py
|
talendteams/Data-Science-with-Python
|
cd5e1bd30a886d8b4ae3e4835bf3c657c29a52a3
|
[
"MIT"
] | 28
|
2019-06-25T15:03:13.000Z
|
2022-03-28T20:53:01.000Z
|
Chapter02/Exercises/Exercise_20.py
|
talendteams/Data-Science-with-Python
|
cd5e1bd30a886d8b4ae3e4835bf3c657c29a52a3
|
[
"MIT"
] | null | null | null |
Chapter02/Exercises/Exercise_20.py
|
talendteams/Data-Science-with-Python
|
cd5e1bd30a886d8b4ae3e4835bf3c657c29a52a3
|
[
"MIT"
] | 93
|
2019-06-26T02:34:00.000Z
|
2022-03-29T16:21:48.000Z
|
# Exercise 8: Multiple Line Plots Using Subplots
import numpy as np
x = np.linspace(0, 10, 20) # create x
y = x**3 # create y
y2 = x**2 # create y2
# create figure object with two subplots that are side-by-side
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=1, ncols=2)
# plot x on left axes
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=1, ncols=2)
axes[0].plot(x, y) # plot x squared by y
# add title and axis labels for left axes
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=1, ncols=2)
axes[0].plot(x, y) # plot x squared by y
axes[0].set_title('x by x Cubed') # set title
axes[0].set_xlabel('Linearly Spaced Numbers') # set x axis label
axes[0].set_ylabel('y Value') # set y axis label
# style the right axes
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=1, ncols=2)
axes[0].plot(x, y) # plot x-cubed by x
axes[0].set_title('x by x Cubed') # set title
axes[0].set_xlabel('Linearly Spaced Numbers') # set x axis label
axes[0].set_ylabel('y Value') # set y axis label
# plot on the right axes
axes[1].plot(x, y2) # plot x-squared by x
axes[1].set_title('x by x Squared') # set title
axes[1].set_xlabel('Linearly Spaced Numbers') # set x axis label
axes[1].set_ylabel('y Value') # set y axis label
# prevent plot overlap
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=1, ncols=2)
axes[0].plot(x, y) # plot x-cubed by x
axes[0].set_title('x by x Cubed') # set title
axes[0].set_xlabel('Linearly Spaced Numbers') # set x axis label
axes[0].set_ylabel('y Value') # set y axis label
# plot on the right axes
axes[1].plot(x, y2) # plot x-squared by x
axes[1].set_title('x by x Squared') # set title
axes[1].set_xlabel('Linearly Spaced Numbers') # set x axis label
axes[1].set_ylabel('y Value') # set y axis label
plt.tight_layout() # prevent plot overlap
# call the object
fig
| 35.169811
| 64
| 0.712983
| 360
| 1,864
| 3.647222
| 0.177778
| 0.049505
| 0.054836
| 0.091394
| 0.802742
| 0.802742
| 0.802742
| 0.802742
| 0.802742
| 0.802742
| 0
| 0.027371
| 0.157189
| 1,864
| 53
| 65
| 35.169811
| 0.808402
| 0.351931
| 0
| 0.837838
| 0
| 0
| 0.182283
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.162162
| 0
| 0.162162
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
8b98fef23903dca856043a55aa7023a9874e7dbc
| 27
|
py
|
Python
|
python/testData/inspections/addFunctionToModuleInImport/mod_after.py
|
alexey-anufriev/intellij-community
|
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/inspections/addFunctionToModuleInImport/mod_after.py
|
alexey-anufriev/intellij-community
|
ffcd46f14e630acdefcc76e2bfc7c43d2449013a
|
[
"Apache-2.0"
] | 1
|
2020-07-30T19:04:47.000Z
|
2020-07-30T19:04:47.000Z
|
python/testData/inspections/addFunctionToModuleInImport/mod_after.py
|
bradleesand/intellij-community
|
750ff9c10333c9c1278c00dbe8d88c877b1b9749
|
[
"Apache-2.0"
] | 1
|
2020-10-15T05:56:42.000Z
|
2020-10-15T05:56:42.000Z
|
def func():
return None
| 13.5
| 15
| 0.62963
| 4
| 27
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.259259
| 27
| 2
| 15
| 13.5
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
473a423c6bab98e139a7ed9071b0edea929b6b6e
| 198
|
py
|
Python
|
social_auth/backends/pipeline/user.py
|
merutak/django-social-auth
|
3a6e4414da0e969fcaf625a891852a3b2d7627c0
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 863
|
2015-01-01T00:42:07.000Z
|
2022-03-30T02:47:18.000Z
|
social_auth/backends/pipeline/user.py
|
merutak/django-social-auth
|
3a6e4414da0e969fcaf625a891852a3b2d7627c0
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 101
|
2015-01-08T00:28:16.000Z
|
2022-03-07T03:11:19.000Z
|
social_auth/backends/pipeline/user.py
|
merutak/django-social-auth
|
3a6e4414da0e969fcaf625a891852a3b2d7627c0
|
[
"BSD-2-Clause",
"BSD-3-Clause"
] | 256
|
2015-01-02T16:55:36.000Z
|
2022-03-04T11:10:47.000Z
|
from social.pipeline.user import get_username, create_user, \
user_details as update_user_details
get_username, create_user, update_user_details # placate pyflakes
| 49.5
| 68
| 0.712121
| 24
| 198
| 5.5
| 0.541667
| 0.25
| 0.257576
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.247475
| 198
| 3
| 69
| 66
| 0.885906
| 0.080808
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
47659e07608a00ac7484888e9eb444f46ddb2b71
| 3,454
|
py
|
Python
|
test1/helper.py
|
omr00t/Semati
|
08f8020b934548818f02de5d6a3ec819098d51eb
|
[
"BSD-2-Clause"
] | null | null | null |
test1/helper.py
|
omr00t/Semati
|
08f8020b934548818f02de5d6a3ec819098d51eb
|
[
"BSD-2-Clause"
] | null | null | null |
test1/helper.py
|
omr00t/Semati
|
08f8020b934548818f02de5d6a3ec819098d51eb
|
[
"BSD-2-Clause"
] | null | null | null |
from .models import Personality, Question
from json import loads
def get_all_book_questions():
"""
This returns the questions in the way that the book presents them.
"""
questions = []
for i in range(0, 6):
for j in Personality.objects.all()[i].first_three_questions:
questions.append(j)
for i in range(0, 6):
for j in Personality.objects.all()[i].middle_three_questions:
questions.append(j)
for i in range(0, 6):
for j in Personality.objects.all()[i].last_three_questions:
questions.append(j)
return questions
def get_result(questions, test_id):
"""
Returns the result in the {personality:value} format according to the appropriate test_id.
"""
# Get the questions' actual IDs.
question_IDs = []
for q in questions:
question_IDs.append(q.strip('q'))
question_objects = list(Question.objects.filter(id__in=question_IDs))
result = {}
if(test_id == 1):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points1)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 2):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points2)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 3):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points3)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 4):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points4)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 5):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points5)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 6):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points6)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 7):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points7)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
elif(test_id == 8):
for i in range(0, 6):
l = loads(Personality.objects.all()[i].personality_points8)
result.update({ Personality.objects.all()[i] : l[len(list(set(Personality.objects.all()[i].all_questions).intersection(question_objects)))]})
else:
# This should not happen
pass
# Sort the result by their values:
sorted_result = {k: v for k, v in sorted(result.items(), key=lambda item: item[1], reverse=True)}
return sorted_result
| 40.162791
| 153
| 0.640996
| 463
| 3,454
| 4.669546
| 0.187905
| 0.224792
| 0.262257
| 0.274746
| 0.715541
| 0.701665
| 0.701665
| 0.701665
| 0.701665
| 0.701665
| 0
| 0.014301
| 0.210481
| 3,454
| 85
| 154
| 40.635294
| 0.778511
| 0.070932
| 0
| 0.392857
| 0
| 0
| 0.000315
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0.017857
| 0.035714
| 0
| 0.107143
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
477a689097547cb0a61d8bf208128288759797b7
| 7,642
|
py
|
Python
|
Solutions/DataStructures/Heap.py
|
ruppysuppy/Daily-Coding-Problem-Solutions
|
37d061215a9af2ce39c51f8816c83039914c0d0b
|
[
"MIT"
] | 70
|
2021-03-18T05:22:40.000Z
|
2022-03-30T05:36:50.000Z
|
Solutions/DataStructures/Heap.py
|
ungaro/Daily-Coding-Problem-Solutions
|
37d061215a9af2ce39c51f8816c83039914c0d0b
|
[
"MIT"
] | null | null | null |
Solutions/DataStructures/Heap.py
|
ungaro/Daily-Coding-Problem-Solutions
|
37d061215a9af2ce39c51f8816c83039914c0d0b
|
[
"MIT"
] | 30
|
2021-03-18T05:22:43.000Z
|
2022-03-17T10:25:18.000Z
|
from typing import Union
def get_parent_position(position: int) -> int:
# helper function get the position of the parent of the current node
return (position - 1) // 2
def get_left_child_position(position: int) -> int:
# helper function get the position of the left child of the current node
return (2 * position) + 1
def get_right_child_position(position: int) -> int:
# helper function get the position of the right child of the current node
return (2 * position) + 2
class MinHeap:
"""
Min Heap class
Functions:
extract_min: Remove and return the minimum element from the heap
insert: Insert a node into the heap
peek: Get the minimum element from the heap
_bubble_up: helper function to place a node at the proper position (upward
movement)
_bubble_down: helper function to place a node at the proper position (downward
movement)
_swap_nodes: helper function to swap the nodes at the given positions
"""
def __init__(self) -> None:
self.heap = []
self.elements = 0
def __len__(self) -> int:
return self.elements
def __repr__(self) -> str:
return str(self.heap)
def extract_min(self) -> Union[int, str]:
# function to remove and return the minimum element from the heap
if self.elements == 0:
raise RuntimeError("Heap Underflow. Cannot extract min from a empty heap")
if self.elements > 1:
self._swap_nodes(0, self.elements - 1)
elem = self.heap.pop()
self.elements -= 1
if self.elements > 0:
self._bubble_down(0)
return elem
def insert(self, elem: Union[int, str]) -> None:
# function to insert a node into the heap
self.heap.append(elem)
self._bubble_up(self.elements)
self.elements += 1
def peek_min(self) -> Union[int, str]:
# function to get the minimum element from the heap
if self.elements == 0:
raise RuntimeError("Heap is empty")
return self.heap[0]
def _bubble_up(self, curr_pos: int) -> None:
# Place a node at the proper position (upward movement) [to be used internally
# only]
if curr_pos == 0:
return
parent_position = get_parent_position(curr_pos)
elem = self.heap[curr_pos]
parent = self.heap[parent_position]
if parent > elem:
self._swap_nodes(parent_position, curr_pos)
self._bubble_up(parent_position)
def _bubble_down(self, curr_pos: int) -> None:
# Place a node at the proper position (downward movement) [to be used
# internally only]
elem = self.heap[curr_pos]
child_left_position = get_left_child_position(curr_pos)
child_right_position = get_right_child_position(curr_pos)
if child_left_position < self.elements and child_right_position < self.elements:
child_left = self.heap[child_left_position]
child_right = self.heap[child_right_position]
if child_right < child_left:
if child_right < elem:
self._swap_nodes(child_right_position, curr_pos)
return self._bubble_down(child_right_position)
if child_left_position < self.elements:
child_left = self.heap[child_left_position]
if child_left < elem:
self._swap_nodes(child_left_position, curr_pos)
return self._bubble_down(child_left_position)
else:
return
if child_right_position < self.elements:
child_right = self.heap[child_right_position]
if child_right < elem:
self._swap_nodes(child_right_position, curr_pos)
return self._bubble_down(child_right_position)
def _swap_nodes(self, pos1: int, pos2: int) -> None:
# function to swap two nodes in the heap [to be used internally only]
self.heap[pos1], self.heap[pos2] = self.heap[pos2], self.heap[pos1]
class MaxHeap:
"""
Max Heap class
Functions:
extract_max: Remove and return the maximum element from the heap
insert: Insert a node into the heap
peek: Get the maximum element from the heap
_bubble_up: helper function to place a node at the proper position (upward
movement)
_bubble_down: helper function to place a node at the proper position (downward
movement)
_swap_nodes: helper function to swap the nodes at the given positions
"""
def __init__(self) -> None:
self.heap = []
self.elements = 0
def __len__(self) -> int:
return self.elements
def __repr__(self) -> str:
return str(self.heap)
def extract_max(self) -> Union[int, str]:
# function to remove and return the minimum element from the heap
if self.elements == 0:
raise RuntimeError("Heap Underflow. Cannot extract max from a empty heap")
if self.elements > 1:
self._swap_nodes(0, self.elements - 1)
elem = self.heap.pop()
self.elements -= 1
if self.elements > 0:
self._bubble_down(0)
return elem
def insert(self, elem: Union[int, str]) -> None:
# function to insert a node into the heap
self.heap.append(elem)
self._bubble_up(self.elements)
self.elements += 1
def peek_max(self) -> Union[int, str]:
# function to get the minimum element from the heap
if self.elements == 0:
raise RuntimeError("Heap is empty")
return self.heap[0]
def _bubble_up(self, curr_pos: int) -> None:
# Place a node at the proper position (upward movement) [to be used internally
# only]
if curr_pos == 0:
return
parent_position = get_parent_position(curr_pos)
elem = self.heap[curr_pos]
parent = self.heap[parent_position]
if parent < elem:
self._swap_nodes(parent_position, curr_pos)
self._bubble_up(parent_position)
def _bubble_down(self, curr_pos: int) -> None:
# Place a node at the proper position (downward movement) [to be used
# internally only]
elem = self.heap[curr_pos]
child_left_position = get_left_child_position(curr_pos)
child_right_position = get_right_child_position(curr_pos)
if child_left_position < self.elements and child_right_position < self.elements:
child_left = self.heap[child_left_position]
child_right = self.heap[child_right_position]
if child_right > child_left:
if child_right > elem:
self._swap_nodes(child_right_position, curr_pos)
return self._bubble_down(child_right_position)
if child_left_position < self.elements:
child_left = self.heap[child_left_position]
if child_left > elem:
self._swap_nodes(child_left_position, curr_pos)
return self._bubble_down(child_left_position)
else:
return
if child_right_position < self.elements:
child_right = self.heap[child_right_position]
if child_right > elem:
self._swap_nodes(child_right_position, curr_pos)
return self._bubble_down(child_right_position)
def _swap_nodes(self, pos1: int, pos2: int) -> None:
# function to swap two nodes in the heap [to be used internally only]
self.heap[pos1], self.heap[pos2] = self.heap[pos2], self.heap[pos1]
| 37.64532
| 88
| 0.634127
| 1,013
| 7,642
| 4.550839
| 0.079961
| 0.055531
| 0.070282
| 0.031236
| 0.959219
| 0.954447
| 0.950759
| 0.946638
| 0.93102
| 0.925597
| 0
| 0.007752
| 0.291023
| 7,642
| 202
| 89
| 37.831683
| 0.843116
| 0.2447
| 0
| 0.834646
| 0
| 0
| 0.023005
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.165354
| false
| 0
| 0.007874
| 0.055118
| 0.354331
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
47a2008b779d89826ec8df6aecd225290f0affba
| 85
|
py
|
Python
|
flightstatsclient/__init__.py
|
esurface/flightstats
|
a17a08a68d4b607a6bd9d7efa30c41c3e139dfdc
|
[
"MIT"
] | null | null | null |
flightstatsclient/__init__.py
|
esurface/flightstats
|
a17a08a68d4b607a6bd9d7efa30c41c3e139dfdc
|
[
"MIT"
] | null | null | null |
flightstatsclient/__init__.py
|
esurface/flightstats
|
a17a08a68d4b607a6bd9d7efa30c41c3e139dfdc
|
[
"MIT"
] | null | null | null |
from .flightstatsclient import FlightstatsAPI
from .flightstatsclient import flights
| 28.333333
| 45
| 0.882353
| 8
| 85
| 9.375
| 0.625
| 0.56
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094118
| 85
| 2
| 46
| 42.5
| 0.974026
| 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
| 1
| 0
|
0
| 7
|
9a4d49223705f57a20ab3b00387da44d8865b269
| 28,991
|
py
|
Python
|
libs/para.py
|
start2020/Multi-View_TRGRU
|
9ad62a8ddeaeef61cbcffc1e6a341ab84c28f735
|
[
"MIT"
] | null | null | null |
libs/para.py
|
start2020/Multi-View_TRGRU
|
9ad62a8ddeaeef61cbcffc1e6a341ab84c28f735
|
[
"MIT"
] | 1
|
2022-03-31T08:18:57.000Z
|
2022-03-31T08:18:57.000Z
|
libs/para.py
|
start2020/Multi-View_TRGRU
|
9ad62a8ddeaeef61cbcffc1e6a341ab84c28f735
|
[
"MIT"
] | 1
|
2021-11-20T02:51:07.000Z
|
2021-11-20T02:51:07.000Z
|
# coding: utf-8
import argparse
import numpy as np
def data_complete_V2_data_para():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset_dir', default='hz-cp-test/')
parser.add_argument('--data_file', default="matrix_in_30.npz")
parser.add_argument('--day_index', default="day-index-201901.txt")
parser.add_argument('--model', default='all_models/', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_mode', type=str, default="data1", help='data creat mode')
return parser
def original_data_para():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset_dir', default='hz/')
parser.add_argument('--data_file', default="matrix_in_30.npz")
parser.add_argument('--day_index', default="day-index-201901.txt")
parser.add_argument('--model', default='all_models/', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_mode', type=str, default="data1", help='data creat mode')
return parser
def original_data_CASCNN_para():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset_dir', default='hz-CAS/')
parser.add_argument('--data_in_file', default="matrix_in_30.npz")
parser.add_argument('--data_out_file', default="matrix_out_30.npz")
parser.add_argument('--day_index', default="day-index-201901.txt")
parser.add_argument('--model', default='all_models/', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[0, 3, 0], type=list, help="3-6")
parser.add_argument('--data_mode', type=str, default="data3", help='data creat mode')
return parser
def original_data_Mat_para():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset_dir', default='hz-Mat/')
parser.add_argument('--data_file', default="matrix_in_30.npz")
parser.add_argument('--day_index', default="day-index-201901.txt")
parser.add_argument('--model', default='all_models/', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_mode', type=str, default="data1", help='data creat mode')
parser.add_argument('--previous', default=100, type=int)
return parser
# 所有数据处理data_model.py都会有的
def common_para(parser):
parser.add_argument('--dataset_dir', default='hz/', type=str)
parser.add_argument('--N', default=80, type=int)
parser.add_argument('--P', default=3, type=int)
parser.add_argument('--train_ratio', type=float, default=0.7)
parser.add_argument('--val_ratio', type=float, default=0.1)
parser.add_argument('--data_log', default='data_log', type=str)
parser.add_argument('--Null_Val', type=float, default=np.nan, help='value for missing data')
parser.add_argument('--Batch_Size', type=int, default=32)
parser.add_argument('--max_grad_norm', type=float, default=5.)
parser.add_argument('--opt', type=str, default='adam')
parser.add_argument('--max_epoch', type=int, default=1000, help='epoch to run')
parser.add_argument('--patience', type=int, default=15, help='patience for early stop')
parser.add_argument('--lr_decay_ratio', type=float, default=0.9)
parser.add_argument('--steps', type=int, default=5, help="five learning rate")
parser.add_argument('--min_learning_rate', type=float, default=2.0e-06)
parser.add_argument('--base_lr', type=float, default=0.01,help='initial learning rate')
parser.add_argument('--data_mode', type=str, default="data1", help='data creat mode')
parser.add_argument('--continue_train', type=int, default=0, help='initial withou old model')
parser.add_argument('--train_shuffle', type=int, default=0, help='train shuffle')
parser.add_argument('--description', type=str, default="no description", help='parameter description or experience description')
return parser
# HA的main
def HA_main(parser):
parser.add_argument('--model', default='HA', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3,0,0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='sclar', type=str, help="sclar, vector, matrix")
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', type=int, default=5, help="the number of experiments")
return parser
# HA的main
def Mat_main(parser):
parser.add_argument('--model', default='Mat', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3,0,0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='sclar', type=str, help="sclar, vector, matrix")
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', type=int, default=1, help="the number of experiments")
return parser
# Lasso的main
def Lasso_main(parser):
parser.add_argument('--model', default='Lasso', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3,0,0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='sclar', type=str, help="sclar, vector, matrix")
parser.add_argument('--proportion', default=0.01, type=float)
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--test', default=1, type=int,help="Do test")
parser.add_argument('--Times', type=int, default=5, help="the number of experiments")
return parser
# Ridge的main
def Ridge_main(parser):
parser.add_argument('--model', default='Ridge', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3,0,0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='sclar', type=str, help="sclar, vector, matrix")
parser.add_argument('--proportion', default=0.01, type=float)
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# RNNs的data和main都会有的
def Com_main(parser):
parser.add_argument('--model', default='Com', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
# parser.add_argument('--data_names', default="samples_P_C-samples_P_before_C-samples_P_after_W_C-samples_P_before_odt123_C-In_C-samples_P_after_C-samples_D3_C-samples_P_before_odt123_C-samples_P_before_odt0_C-samples_P_before_odt0123_C", type=str)
parser.add_argument('--data_names',default="samples_P_C-samples_P_before_C-samples_P_after_W_C-samples_P_before_odt123_C-In_C",type=str)
# parser.add_argument('--data_names',
# default="samples_P_C-samples_P_before_C-samples_P_after_W_C-samples_P_before_odtR1_C-In_C-samples_P_before_odtD1_C",
# type=str)
# parser.add_argument('--data_names',default="samples_P_C-samples_P_before_C-In_C-samples_D3_C",type=str)
parser.add_argument('--save_dir', default="1", type=str)
# labels, samples_P_before_C, samples_P_after_W_C, samples_P_before_odt_C, IN
# 'samples_all_C','samples_D_C', 'samples_W_C', 'labels_C','In_C'
# 'samples_P_before_C', 'samples_P_after_W_C','samples_P_before_odt_C'
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=int, default=0)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=1, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=1, type=int, help="the number of experiment")
return parser
# ANN的data和main都会有的
def ANN_main(parser):
parser.add_argument('--model', default='ANN', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='vector', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=0, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# RNNs的data和main都会有的
def RNNs_main(parser):
parser.add_argument('--model', default='RNNs', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='vector', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=0, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# RNNs的data和main都会有的
def ConvLSTM_main(parser):
parser.add_argument('--model', default='ConvLSTM', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='vector', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=1, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# GCN的data和main都会有的
def GCN_main(parser):
parser.add_argument('--model', default='GCN', type=str)
parser.add_argument('--graph_name', type=str, default="graph_connection.npz")
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=0, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# GEML的data和main都会有的
def GEML_main(parser):
parser.add_argument('--model', default='GEML', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=1, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# P的main
def P_main(parser):
parser.add_argument('--model', default='P', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="samples_all-samples_P", type=str)
parser.add_argument('--output_type', default='vector', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=True, help="produce data")
parser.add_argument('--experiment', default=True, help="Do experiments")
parser.add_argument('--test', default=False, help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# dc的main
def dc_main_para():
parser = argparse.ArgumentParser()
parser.add_argument('--dataset_dir', default='../sz-3/')
parser.add_argument('--model', default='dc', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
# parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--input_steps', default=[3,0,0], type=list, help="3-6")
parser.add_argument('--data_names', default="samples_P-samples_all-samples_after-labels", type=str)
# parser.add_argument('--data_names', default="samples_P-samples_all-samples_after-labels-samples_D-samples_W", type=str)
parser.add_argument('--T', default=3, type=str, help="0:dayoftime, 1:dayofweek, 2:both")
parser.add_argument('--output_type', default='vector', type=str, help="scalar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=False)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--testMode', type=int, default=2)
parser.add_argument('--data_log', default='data_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--data_mode', type=str, default="data1", help='data creat mode')
parser.add_argument('--time_interval', type=int, default=64)
return parser
# CASCNN的data和main都会有的
def CASCNN_main( parser):
parser.add_argument('--model', default='CASCNN', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P-In-Out",type=str)
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=0, type=int,help="Do experiments")
parser.add_argument('--test', default=1, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
def CASCNN(parser):
parser.add_argument('--output_dims', default=[2,1], type=list)
parser.add_argument('--kernel_size1', default=[3,3], type=list)
parser.add_argument('--kernel_size2', default=[5,5], type=list)
return parser
# TR的data和main都会有的
def TR_main( parser):
parser.add_argument('--model', default='TR', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 0, 0], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P", type=str)
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=0, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
# TRs的data和main都会有的
def TRs_main(parser):
parser.add_argument('--model', default='TRs', type=str)
parser.add_argument('--data_type', default='InOD', type=str, help="InOD, OutOD, In, Out")
parser.add_argument('--input_types', default=['P', 'D', 'W'], type=list)
parser.add_argument('--input_steps', default=[3, 2, 1], type=list, help="3-6")
parser.add_argument('--data_names', default="labels-samples_P-samples_D-samples_W", type=str)
parser.add_argument('--output_type', default='matrix', type=str, help="sclar, vector, matrix")
parser.add_argument('--Normalize', type=bool, default=True)
parser.add_argument('--proportion', default=1.0, type=float)
parser.add_argument('--GPU', type=int, default=0)
parser.add_argument('--val_loss', default=1, type=int, help="1-val_loss, 0-test_loss")
parser.add_argument('--loss_type', default=1, type=int, help="1-single, 2-multi_man, 3-multi_auto")
parser.add_argument('--train_log', default='train_log', type=str)
parser.add_argument('--result_log', default='result_log', type=str)
parser.add_argument('--test_log', default='test_log', type=str)
parser.add_argument('--data', default=0, type=int,help="produce data")
parser.add_argument('--experiment', default=1, type=int,help="Do experiments")
parser.add_argument('--test', default=0, type=int,help="Do test")
parser.add_argument('--Times', default=5, type=int, help="the number of experiment")
return parser
###################################### 模型参数 #################################################
# ANN模型参数
def ANN(parser):
parser.add_argument('--activations', default=['relu', 'relu'], type=list)
parser.add_argument('--units', default=[256,256], type=list)
parser.add_argument('--bn', default=False, type=bool)
parser.add_argument('--dims', default=2, type=int)
return parser
# P模型参数
def P(parser):
parser.add_argument('--activations', default=['relu', 'relu'], type=list)
parser.add_argument('--units', default=[256, 256], type=list)
parser.add_argument('--bn', default=False, type=bool)
parser.add_argument('--dims', default=2, type=int)
parser.add_argument('--weights', default=[0.5, 0.5], type=list)
return parser
# LSTM模型参数
def TR(parser):
parser.add_argument('--intervals', default=32, type=int)#(23-7)*60/30
parser.add_argument('--heads', default=1, type=int)
parser.add_argument('--d', default=64, type=int)
parser.add_argument('--RNN_type', default="GRU", type=str)
parser.add_argument('--RNN_units', default=256, type=int)
parser.add_argument('--ANN_units', default=[256], type=list)
parser.add_argument('--weights', default=[1, 1, 1], type=list)
return parser
def TRs(parser):
# parser.add_argument('--units', default=[64, 64], type=list)
parser.add_argument('--intervals', default=32, type=int)#(23-7)*60/30
parser.add_argument('--heads', default=1, type=int)
parser.add_argument('--d', default=64, type=int)
parser.add_argument('--RNN_type', default="GRU", type=str)
parser.add_argument('--RNN_units', default=[256], type=list)
parser.add_argument('--ANN_units', default=[256], type=list)
parser.add_argument('--weights', default=[1, 1, 1], type=list) #没用到
parser.add_argument('--is_TE', default=1, type=int)
parser.add_argument('--is_SE', default=1, type=int)
parser.add_argument('--is_RNN', default=1, type=int)
return parser
# RNNs模型参数
def RNNs(parser):
parser.add_argument('--units', default=[256,256], type=list)
parser.add_argument('--RNN_Type', default='LSTM', type=str)
return parser
# RNNs模型参数
def ConvLSTM(parser):
# parser.add_argument('--units', default=[256,256], type=list)
# parser.add_argument('--RNN_Type', default='LSTM', type=str)
return parser
# GCN模型参数
def GCN(parser):
parser.add_argument('--GCN_activations', default=["relu", "relu"], type=list)
parser.add_argument('--GCN_units', default=[256,256], type=list)
parser.add_argument('--Ks', default=[None,None], type=list)
parser.add_argument('--weights', default=[0.5, 0.25, 0.25], type=list)
return parser
# GEML模型参数
def GEML(parser):
parser.add_argument('--GCN_activations', default=["sigmoid", "sigmoid"], type=list)
parser.add_argument('--RNN_units', default=[128], type=list)
parser.add_argument('--GCN_units', default=[128,128], type=list)
parser.add_argument('--Ks', default=[None,None], type=list)
parser.add_argument('--RNN_type', default="LSTM", type=str)
parser.add_argument('--weights', default=[0.5, 0.25, 0.25], type=list)
return parser
| 56.402724
| 252
| 0.693457
| 4,209
| 28,991
| 4.581611
| 0.053932
| 0.162414
| 0.306783
| 0.072184
| 0.906814
| 0.888249
| 0.877256
| 0.841475
| 0.828874
| 0.812954
| 0
| 0.018498
| 0.114277
| 28,991
| 514
| 253
| 56.402724
| 0.732495
| 0.051533
| 0
| 0.730864
| 0
| 0
| 0.264231
| 0.007417
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071605
| false
| 0
| 0.004938
| 0.002469
| 0.148148
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 8
|
d0a3f45c5c342a2ea8406902a107dc516834bf1a
| 51,772
|
py
|
Python
|
openregistry/lots/basic/tests/lot_blanks.py
|
MichaelYusko/openregistry.lots.basic
|
7e0b3ca376cc2d5630c9362fa5e284b2d3a3b09f
|
[
"Apache-2.0"
] | null | null | null |
openregistry/lots/basic/tests/lot_blanks.py
|
MichaelYusko/openregistry.lots.basic
|
7e0b3ca376cc2d5630c9362fa5e284b2d3a3b09f
|
[
"Apache-2.0"
] | 36
|
2017-08-14T14:44:13.000Z
|
2018-08-23T12:41:02.000Z
|
openregistry/lots/basic/tests/lot_blanks.py
|
MichaelYusko/openregistry.lots.basic
|
7e0b3ca376cc2d5630c9362fa5e284b2d3a3b09f
|
[
"Apache-2.0"
] | 17
|
2017-08-03T08:40:26.000Z
|
2018-09-14T10:55:17.000Z
|
# -*- coding: utf-8 -*-
from copy import deepcopy
from uuid import uuid4
from openregistry.lots.core.utils import get_now
from openregistry.lots.core.constants import (ROUTE_PREFIX, LOT_STATUSES)
from openregistry.lots.core.tests.base import create_blacklist
from openregistry.lots.basic.models import Lot
from openregistry.lots.basic.constants import STATUS_CHANGES
ROLES = ['lot_owner', 'Administrator', 'concierge', 'convoy']
STATUS_BLACKLIST = create_blacklist(STATUS_CHANGES, LOT_STATUSES, ROLES)
# LotTest
def simple_add_lot(self):
u = Lot(self.initial_data)
u.lotID = "UA-X"
u.assets = [uuid4().hex]
assert u.id is None
assert u.rev is None
u.store(self.db)
assert u.id is not None
assert u.rev is not None
fromdb = self.db.get(u.id)
assert u.lotID == fromdb['lotID']
assert u.doc_type == "Lot"
u.delete_instance(self.db)
def check_patch_status_200(self, path, lot_status, headers=None):
response = self.app.patch_json(path,
headers=headers,
params={'data': {'status': lot_status}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], lot_status)
def check_patch_status_403(self, path, lot_status, headers=None):
# Check if response.status is forbidden, when you try to change status to incorrect
# 'data' should be {'data': {'status': allowed_status}}
response = self.app.patch_json(path,
params={'data': {'status': lot_status}},
headers=headers,
status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
def create_single_lot(self, data):
response = self.app.post_json('/', {"data": data})
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'draft')
return response
def check_lotIdentifier(self):
data = deepcopy(self.initial_data)
data['lotIdentifier'] = ''
response = self.app.post_json('/', {"data": data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'][0]['description'], ["String value is too short."])
del data['lotIdentifier']
response = self.app.post_json('/', {"data": data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'][0]['description'], ["This field is required."])
data['lotIdentifier'] = 'Q24421K222'
lot = create_single_lot(self, data).json['data']
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(set(response.json['data']), set(lot))
self.assertEqual(response.json['data'], lot)
def check_lot_assets(self):
# lot with a single assets
self.initial_data["assets"] = [uuid4().hex]
lot = create_single_lot(self, self.initial_data).json['data']
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(set(response.json['data']), set(lot))
self.assertEqual(response.json['data'], lot)
# lot with different assets
self.initial_data["assets"] = [uuid4().hex, uuid4().hex]
lot = create_single_lot(self, self.initial_data).json['data']
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(set(response.json['data']), set(lot))
self.assertEqual(response.json['data'], lot)
# # lot with no assets
self.initial_data["assets"] = []
response = self.app.post_json('/', {"data": self.initial_data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': [u"Please provide at least 1 item."], u'location': u'body', u'name': u'assets'}
])
# # lot with equal assets
id_ex = uuid4().hex
self.initial_data["assets"] = [id_ex, id_ex]
response = self.app.post_json('/', {"data": self.initial_data}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': [u"Assets should be unique"], u'location': u'body', u'name': u'assets'}
])
def change_draft_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
# Create lot in 'draft' status
draft_lot = deepcopy(self.initial_data)
draft_lot['assets'] = [uuid4().hex]
response = create_single_lot(self, draft_lot)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'draft' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'draft', access_header)
# Move from 'draft' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Create lot in draft status
draft_lot = deepcopy(draft_lot)
draft_lot['status'] = 'draft'
lot = create_single_lot(self, draft_lot).json['data']
# Move from 'draft' to one of 'blacklist' status
for status in STATUS_BLACKLIST['draft']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Create lot in 'draft' status
draft_lot = deepcopy(self.initial_data)
draft_lot['status'] = 'draft'
response = self.app.post_json('/', {'data': draft_lot}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
# Move from 'draft' to one of 'blacklist' status
for status in STATUS_BLACKLIST['draft']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('convoy', ''))
# Create lot in 'draft' status
draft_lot = deepcopy(self.initial_data)
draft_lot['status'] = 'draft'
response = self.app.post_json('/', {'data': draft_lot}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
# Move from 'draft' to one of 'blacklist' status
for status in STATUS_BLACKLIST['draft']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Create lot in 'draft' status
draft_lot = deepcopy(draft_lot)
draft_lot['status'] = 'draft'
response = self.app.post_json('/', {'data': draft_lot}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
# Move from 'draft' to one of 'blacklist' status
for status in STATUS_BLACKLIST['draft']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'draft' to 'draft' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'draft')
# Move from 'draft' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
def change_pending_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = deepcopy(self.initial_data)
lot_info['status'] = 'draft'
# Create lot in 'draft' status and move it to 'pending'
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
response = self.app.get('/{}'.format(lot['id']), headers=access_header)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'deleted' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted', access_header)
# Create lot in 'draft' status and move it to 'pending'
response = create_single_lot(self, deepcopy(lot_info))
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
lot = response.json['data']
# Move from 'draft' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
# Create lot in 'draft' status and move it to 'pending'
response = create_single_lot(self, deepcopy(lot_info))
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
lot = response.json['data']
# Move from 'draft' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'pending' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'pending' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending' to 'deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted')
def change_verification_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move status from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move status from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
# Move from 'verification' to one of 'blacklist' status
for status in STATUS_BLACKLIST['verification']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'verification' to one of 'blacklist' status
for status in STATUS_BLACKLIST['verification']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move status from 'verification' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending' to 'verification' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'verification' to 'active.salable' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending' to 'verification' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'verification' to one of 'blacklist' status
for status in STATUS_BLACKLIST['verification']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move status from 'verification' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'pending' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to 'verification' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'verification' status
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to one of 'blacklist' status
for status in STATUS_BLACKLIST['verification']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
def change_deleted_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted', access_header)
self.app.authorization = ('Basic', ('concierge', ''))
check_patch_status_200(self, '/{}'.format(lot['id']), 'deleted')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['deleted']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['deleted']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['deleted']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['deleted']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
def change_pending_dissolution_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
# Move status from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move status from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move status from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('broker', ''))
# Move status from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution', access_header)
# Move from 'pending.dissolution' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.dissolution']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'pending.dissolution' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.dissolution']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending.dissolution' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
# Move from 'pending.dissolution' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
# Move from 'pending.dissolution' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.dissolution']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending.dissolution' to 'dissolved'
check_patch_status_200(self, '/{}'.format(lot['id']), 'dissolved')
self.app.authorization = ('Basic', ('broker', ''))
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
self.app.authorization = ('Basic', ('administrator', ''))
# Move status from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move status from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move status from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move status from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'pending.dissolution' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.dissolution']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending.dissolution' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
# Move from 'pending.dissolution' to 'dissolved'
check_patch_status_200(self, '/{}'.format(lot['id']), 'dissolved')
def change_active_salable_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'active.salable' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.salable']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
# Move from 'active.salable' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable', access_header)
# Move from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending.dissolution' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'active.salable' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'recomposed' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable', access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'active.salable' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.salable']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'active.salable' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.salable']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.salable' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
# Move from 'pending.dissolution' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed')
# Move from 'recomposed' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
self.app.authorization = ('Basic', ('broker', ''))
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'active.salable' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.salable']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.salable' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable', access_header)
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
def change_active_awaiting_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'active.awaiting' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.awaiting']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'active.awaiting' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.awaiting']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'active.awaiting' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.awaiting']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.awaiting' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'active.awaiting' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.awaiting']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.awaiting' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
def change_active_auction_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'active.auction' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.auction']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'active.auction' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.auction']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'active.auction' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.auction']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.auction' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.sold')
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to one of 'blacklist' status
for status in STATUS_BLACKLIST['active.auction']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'active.auction' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.sold')
def change_dissolved_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'pending.dissolution'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.dissolution')
# Move from 'pending.dissolution' to 'dissolved'
check_patch_status_200(self, '/{}'.format(lot['id']), 'dissolved')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'dissolved' to one of 'blacklist' status
for status in STATUS_BLACKLIST['dissolved']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'dissolved' to one of 'blacklist' status
for status in STATUS_BLACKLIST['dissolved']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'dissolved' to one of 'blacklist' status
for status in STATUS_BLACKLIST['dissolved']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'dissolved' to one of 'blacklist' status
for status in STATUS_BLACKLIST['dissolved']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
def change_pending_sold_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot.get('status', ''), 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'pending.sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.sold')
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'pending.sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.sold']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'pending.sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.sold']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'pending.sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.sold']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'pending.sold' to 'sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'sold')
self.app.authorization = ('Basic', ('broker', ''))
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
self.assertEqual(lot.get('status', ''), 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'pending.sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.sold')
# Move from 'pending.sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.sold']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending.sold' to 'sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'sold')
def change_sold_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'active.awaiting'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.awaiting')
# Move from 'active.awaiting' to 'active.auction'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.auction')
# Move from 'active.auction' to 'pending.sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.sold')
# Move from 'pending.sold' to 'sold'
check_patch_status_200(self, '/{}'.format(lot['id']), 'sold')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['sold']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['sold']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['sold']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'sold' to one of 'blacklist' status
for status in STATUS_BLACKLIST['sold']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
def change_recomposed_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
response = self.app.get('/{}'.format(lot['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'], lot)
# Move from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification', access_header)
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
self.app.authorization = ('Basic', ('broker', ''))
# Move from 'active.salable' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed', access_header)
# Move from 'recomposed' to one of 'blacklist' status
for status in STATUS_BLACKLIST['recomposed']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'recomposed' to one of 'blacklist' status
for status in STATUS_BLACKLIST['recomposed']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'recomposed' to one of 'blacklist' status
for status in STATUS_BLACKLIST['recomposed']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'recomposed' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed')
# Move from 'recomposed' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending' to 'verification'
check_patch_status_200(self, '/{}'.format(lot['id']), 'verification')
# Move from 'verification' to 'active.salable'
check_patch_status_200(self, '/{}'.format(lot['id']), 'active.salable')
# Move from 'active.salable' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed')
# Move from 'recomposed' to one of 'blacklist' status
for status in STATUS_BLACKLIST['recomposed']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'recomposed' to 'recomposed'
check_patch_status_200(self, '/{}'.format(lot['id']), 'recomposed')
# Move from 'recomposed' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending')
def change_pending_deleted_lot(self):
response = self.app.get('/')
self.assertEqual(response.status, '200 OK')
self.assertEqual(len(response.json['data']), 0)
self.app.authorization = ('Basic', ('broker', ''))
lot_info = self.initial_data
lot_info['status'] = 'draft'
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
# Move status from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move status from 'pending' to 'pending.deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted', access_header)
# Move from 'pending.dissolution' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.deleted']['lot_owner']:
check_patch_status_403(self, '/{}'.format(lot['id']), status, access_header)
self.app.authorization = ('Basic', ('convoy', ''))
# Move from 'pending.deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.deleted']['convoy']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
self.app.authorization = ('Basic', ('concierge', ''))
# Move from 'pending.deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.deleted']['concierge']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending.deleted' to 'pending.deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted')
# Move from 'pending.deleted' to 'deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'deleted')
self.app.authorization = ('Basic', ('broker', ''))
# Create new lot in 'draft' status
response = create_single_lot(self, lot_info)
lot = response.json['data']
token = response.json['access']['token']
access_header = {'X-Access-Token': str(token)}
self.assertEqual(lot['status'], 'draft')
# Move status from 'draft' to 'pending'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending', access_header)
# Move status from 'pending' to 'pending.deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted', access_header)
self.app.authorization = ('Basic', ('concierge', ''))
self.app.authorization = ('Basic', ('administrator', ''))
# Move from 'pending.deleted' to one of 'blacklist' status
for status in STATUS_BLACKLIST['pending.deleted']['Administrator']:
check_patch_status_403(self, '/{}'.format(lot['id']), status)
# Move from 'pending.deleted' to 'pending.deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'pending.deleted')
# Move from 'pending.deleted' to 'deleted'
check_patch_status_200(self, '/{}'.format(lot['id']), 'deleted')
| 38.095659
| 104
| 0.659159
| 6,380
| 51,772
| 5.195768
| 0.023824
| 0.058644
| 0.071676
| 0.0905
| 0.961839
| 0.955504
| 0.950255
| 0.946032
| 0.939998
| 0.938852
| 0
| 0.0179
| 0.15941
| 51,772
| 1,358
| 105
| 38.123711
| 0.743813
| 0.197616
| 0
| 0.819527
| 0
| 0
| 0.17842
| 0
| 0
| 0
| 0
| 0
| 0.195266
| 1
| 0.028107
| false
| 0
| 0.010355
| 0
| 0.039941
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
d0b927aae534f154959989c5854aabf219663a67
| 106
|
py
|
Python
|
platform/radio/efr32_multiphy_configurator/pycalcmodel/model_type/base/__init__.py
|
PascalGuenther/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 82
|
2016-06-29T17:24:43.000Z
|
2021-04-16T06:49:17.000Z
|
platform/radio/efr32_multiphy_configurator/pycalcmodel/model_type/base/__init__.py
|
PascalGuenther/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 6
|
2022-01-12T18:22:08.000Z
|
2022-03-25T10:19:27.000Z
|
platform/radio/efr32_multiphy_configurator/pycalcmodel/model_type/base/__init__.py
|
PascalGuenther/gecko_sdk
|
2e82050dc8823c9fe0e8908c1b2666fb83056230
|
[
"Zlib"
] | 56
|
2016-08-02T10:50:50.000Z
|
2021-07-19T08:57:34.000Z
|
from pycalcmodel.model_type.base.Bindings import *
from pycalcmodel.model_type.base.Bindings import parse
| 35.333333
| 54
| 0.858491
| 15
| 106
| 5.933333
| 0.533333
| 0.337079
| 0.449438
| 0.539326
| 0.94382
| 0.94382
| 0.94382
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 106
| 3
| 54
| 35.333333
| 0.908163
| 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
| 1
| 1
| 1
| 1
| 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
| 11
|
d0c1ee9f6b19ca2912163dad30c6fc0880058f1f
| 6,512
|
py
|
Python
|
scripts/type_extractor/tests/arg_parser_tests.py
|
mehrdad-shokri/retdec
|
a82f16e97b163afe789876e0a819489c5b9b358e
|
[
"MIT",
"Zlib",
"BSD-3-Clause"
] | 4,816
|
2017-12-12T18:07:09.000Z
|
2019-04-17T02:01:04.000Z
|
scripts/type_extractor/tests/arg_parser_tests.py
|
mehrdad-shokri/retdec
|
a82f16e97b163afe789876e0a819489c5b9b358e
|
[
"MIT",
"Zlib",
"BSD-3-Clause"
] | 514
|
2017-12-12T18:22:52.000Z
|
2019-04-16T16:07:11.000Z
|
scripts/type_extractor/tests/arg_parser_tests.py
|
mehrdad-shokri/retdec
|
a82f16e97b163afe789876e0a819489c5b9b358e
|
[
"MIT",
"Zlib",
"BSD-3-Clause"
] | 579
|
2017-12-12T18:38:02.000Z
|
2019-04-11T13:32:53.000Z
|
"""Units tests for the type_extractor.arg_parser module."""
import unittest
from unittest import mock
from type_extractor.arg_parser import get_arg_parser_for_extract_types
from type_extractor.arg_parser import get_arg_parser_for_merge_jsons
from type_extractor.arg_parser import get_arg_parser_for_optimize_jsons
class ParseArgsTestsBase(unittest.TestCase):
"""A base class for argument-parsing tests."""
def setUp(self):
# Redirect stderr output to prevent emission of error messages during
# tests.
patcher = mock.patch('sys.stderr')
self.stderr = patcher.start()
self.addCleanup(patcher.stop)
class ParseArgsExtractTypesTests(ParseArgsTestsBase):
"""Tests for parsing extract_types.py script arguments."""
def setUp(self):
super().setUp()
self.parser = get_arg_parser_for_extract_types(__doc__)
def test_logging_is_false_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.enable_logging, False)
def test_logging_is_true_when_given_in_short_form(self):
args = self.parser.parse_args(['path', '-l'])
self.assertEqual(args.enable_logging, True)
def test_logging_is_true_when_given_in_long_form(self):
args = self.parser.parse_args(['path', '--enable-logging'])
self.assertEqual(args.enable_logging, True)
def test_output_format_is_json_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.format, 'json')
def test_output_format_is_parsed_correctly_short_format(self):
args = self.parser.parse_args(['path', '-f', 'txt'])
self.assertEqual(args.format, 'txt')
def test_output_format_is_parsed_correctly_long_format(self):
args = self.parser.parse_args(['path', '--format', 'txt'])
self.assertEqual(args.format, 'txt')
def test_output_directory_is_type_extractor_output_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.output, 'type_extractor_output')
def test_output_is_parsed_correctly_short_form(self):
args = self.parser.parse_args(['path', '-o', 'my_dir'])
self.assertEqual(args.output, 'my_dir')
def test_output_is_parsed_correctly_long_form(self):
args = self.parser.parse_args(['path', '--output', 'my_dir'])
self.assertEqual(args.output, 'my_dir')
def test_json_indent_is_4_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.json_indent, 4)
def test_json_indent_is_correct_when_given_as_number(self):
args = self.parser.parse_args(['path', '--json-indent', '5'])
self.assertEqual(args.json_indent, 5)
def test_json_indent_is_correct_when_given_as_string(self):
args = self.parser.parse_args(['path', '--json-indent', ' '])
self.assertEqual(args.json_indent, ' ')
def test_json_indent_is_None_when_given_as_empty_string(self):
args = self.parser.parse_args(['path', '--json-indent', ''])
self.assertEqual(args.json_indent, None)
def test_json_indent_is_None_when_given_as_0(self):
args = self.parser.parse_args(['path', '--json-indent', '0'])
self.assertEqual(args.json_indent, None)
def test_input_file_or_dir_is_required(self):
with self.assertRaises(SystemExit) as exc:
self.parser.parse_args([])
self.assertNotEqual(exc.exception.code, 0)
def test_input_path_to_file_or_dir_parsed_correctly(self):
args = self.parser.parse_args(['/usr/include/stdio.h'])
self.assertEqual(args.path, ['/usr/include/stdio.h'])
def test_accept_more_paths_to_input_files_or_dirs(self):
args = self.parser.parse_args(['/usr/include/stdio.h', '/usr/include/'])
self.assertEqual(args.path, ['/usr/include/stdio.h', '/usr/include/'])
class ParseArgsMergeJsonsTests(ParseArgsTestsBase):
"""Tests for merge_jsons.py script arguments."""
def setUp(self):
super().setUp()
self.parser = get_arg_parser_for_merge_jsons(__doc__)
def test_logging_is_false_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.enable_logging, False)
def test_logging_is_true_when_given_in_short_form(self):
args = self.parser.parse_args(['path', '-l'])
self.assertEqual(args.enable_logging, True)
def test_logging_is_true_when_given_in_long_form(self):
args = self.parser.parse_args(['path', '--enable-logging'])
self.assertEqual(args.enable_logging, True)
def test_output_file_is_merge_output_json_when_not_given(self):
args = self.parser.parse_args(['path'])
self.assertEqual(args.output, 'merge_output.json')
def test_output_is_parsed_correctly_short_form(self):
args = self.parser.parse_args(['path', '-o', 'my_dir'])
self.assertEqual(args.output, 'my_dir')
def test_output_is_parsed_correctly_long_form(self):
args = self.parser.parse_args(['path', '--output', 'my_dir'])
self.assertEqual(args.output, 'my_dir')
def test_input_file_or_dir_is_required(self):
with self.assertRaises(SystemExit) as exc:
self.parser.parse_args([])
self.assertNotEqual(exc.exception.code, 0)
def test_input_path_to_file_is_parsed_correctly(self):
args = self.parser.parse_args(['output/stdio.json'])
self.assertEqual(args.path, ['output/stdio.json'])
def test_accept_more_paths_to_input_files_dirs(self):
args = self.parser.parse_args(['output/stdio.json', 'json_files/'])
self.assertEqual(args.path, ['output/stdio.json', 'json_files/'])
class ParseArgsOptimizeJsonTests(ParseArgsTestsBase):
"""Tests for optimize_jsons.py script arguments."""
def setUp(self):
super().setUp()
self.parser = get_arg_parser_for_optimize_jsons(__doc__)
def test_input_file_or_dir_is_required(self):
with self.assertRaises(SystemExit) as exc:
self.parser.parse_args([])
self.assertNotEqual(exc.exception.code, 0)
def test_input_path_to_file_is_parsed_correctly(self):
args = self.parser.parse_args(['in/stdio.json'])
self.assertEqual(args.path, ['in/stdio.json'])
def test_accept_more_paths_to_input_files_dirs(self):
args = self.parser.parse_args(['in/stdio.json', 'json_files/'])
self.assertEqual(args.path, ['in/stdio.json', 'json_files/'])
| 39.95092
| 80
| 0.702856
| 882
| 6,512
| 4.829932
| 0.12585
| 0.075117
| 0.102113
| 0.129343
| 0.851174
| 0.833099
| 0.811972
| 0.778404
| 0.707512
| 0.622066
| 0
| 0.001668
| 0.171376
| 6,512
| 162
| 81
| 40.197531
| 0.787806
| 0.047912
| 0
| 0.5625
| 0
| 0
| 0.09493
| 0.003402
| 0
| 0
| 0
| 0
| 0.285714
| 1
| 0.294643
| false
| 0
| 0.044643
| 0
| 0.375
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d0ce3093e578c01c7faea1b1868d054bfd3f17a5
| 403
|
py
|
Python
|
helpinghand/convenience_gates.py
|
QuantMarkFramework/helpinghand
|
c0afef640210e9b1d1a94065f521a42356b8d3a3
|
[
"MIT"
] | 1
|
2021-08-12T18:20:33.000Z
|
2021-08-12T18:20:33.000Z
|
helpinghand/convenience_gates.py
|
QuantMarkFramework/helpinghand
|
c0afef640210e9b1d1a94065f521a42356b8d3a3
|
[
"MIT"
] | null | null | null |
helpinghand/convenience_gates.py
|
QuantMarkFramework/helpinghand
|
c0afef640210e9b1d1a94065f521a42356b8d3a3
|
[
"MIT"
] | null | null | null |
import tequila as tq
import numpy as np
import typing
def V(target: typing.Union[list, int], control: typing.Union[list, int] = None) -> tq.QCircuit:
return tq.gates.Rx(target=target, control=control, angle=0.5 * np.pi)
def Vdg(target: typing.Union[list, int], control: typing.Union[list, int] = None) -> tq.QCircuit:
return tq.gates.Rx(target=target, control=control, angle=0.5 * np.pi).dagger()
| 33.583333
| 97
| 0.719603
| 67
| 403
| 4.328358
| 0.373134
| 0.151724
| 0.206897
| 0.248276
| 0.793103
| 0.793103
| 0.793103
| 0.793103
| 0.793103
| 0.793103
| 0
| 0.011331
| 0.124069
| 403
| 11
| 98
| 36.636364
| 0.810198
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.428571
| 0.285714
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 10
|
d0d36a95f0b9884e4c4241ac9921aa0e64eecc12
| 350,904
|
py
|
Python
|
latenighttherapy.py
|
molinajimenez/LenguajesPR2
|
079ff7a8c8e38b906385d0b4865414b75f8058e2
|
[
"MIT"
] | 1
|
2021-05-01T20:57:17.000Z
|
2021-05-01T20:57:17.000Z
|
latenighttherapy.py
|
molinajimenez/LenguajesPR2
|
079ff7a8c8e38b906385d0b4865414b75f8058e2
|
[
"MIT"
] | null | null | null |
latenighttherapy.py
|
molinajimenez/LenguajesPR2
|
079ff7a8c8e38b906385d0b4865414b75f8058e2
|
[
"MIT"
] | null | null | null |
import sys
import os
sys.path.append(os.path.abspath(os.path.join('AFD/AFN/parsers')))
from Automata import Automata
from Transition import Transition
automata = Automata([],['a', 'b', 'c', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'ζ', '+', '-', '\r', '\n', '\t'], Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'a',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, [Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'hexnumber': 154})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([154], None,None, {'hexnumber': 154})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([154], None,None, {'hexnumber': 154})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
], [Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'a',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'b',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'c',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'A',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'B',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'C',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'D',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'E',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'F',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'G',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'H',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'I',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'J',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'K',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'L',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'M',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'N',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'O',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'P',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'Q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'R',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'S',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'T',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'U',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'V',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'W',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'X',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'Y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'Z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'd',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'e',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'f',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'g',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'h',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'i',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'j',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'k',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'l',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'm',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'n',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'o',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'p',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'r',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 's',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 't',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'u',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'v',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'w',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'x',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], 'z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '0',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '1',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '2',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '3',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '4',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '5',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '6',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '7',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '8',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '9',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '+',[178, 179, 180, 181, 182, 183, 184, 185, 186, 187], None)
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '-',[178, 179, 180, 181, 182, 183, 184, 185, 186, 187], None)
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '\r',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '\n',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 176, 177, 199, 200, 201, 202], '\t',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'a',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'b',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'c',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'A',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'B',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'C',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'D',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'E',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'F',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'G',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'H',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'I',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'J',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'K',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'L',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'M',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'N',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'O',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'P',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'R',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'S',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'T',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'U',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'V',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'W',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'X',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'd',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'e',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'f',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'g',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'h',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'i',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'j',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'k',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'l',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'm',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'n',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'o',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'p',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'r',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 's',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 't',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'u',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'v',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'w',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'x',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '0',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '1',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '2',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '3',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '4',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '5',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '6',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '7',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '8',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '9',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'a',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'b',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'c',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'A',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'B',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'C',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'D',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'E',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'F',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'G',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'H',[154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'hexnumber': 154})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'I',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'J',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'K',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'L',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'M',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'N',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'O',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'P',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'Q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'R',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'S',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'T',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'U',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'V',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'W',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'X',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'Y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'Z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'd',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'e',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'f',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'g',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'h',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'i',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'j',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'k',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'l',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'm',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'n',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'o',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'p',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'r',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 's',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 't',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'u',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'v',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'w',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'x',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '0',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '1',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '2',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '3',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '4',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '5',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '6',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '7',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '8',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '9',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], {'ident': 120})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'A',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'B',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'C',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'D',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'E',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'F',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], 'H',[154], {'hexnumber': 154})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '0',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '1',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '2',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '3',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '4',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '5',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '6',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '7',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '8',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], '9',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], {'number': 175})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '0',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '1',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '2',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '3',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '4',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '5',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '6',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '7',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '8',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([178, 179, 180, 181, 182, 183, 184, 185, 186, 187], '9',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([203, 204, 205, 206, 207], '\r',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], '\n',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], '\t',[203, 204, 205, 206, 207], {'whitetoken': 207})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'a',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'b',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'c',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'A',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'B',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'C',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'D',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'E',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'F',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'G',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'H',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'I',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'J',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'K',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'L',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'M',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'N',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'O',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'P',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'R',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'S',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'T',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'U',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'V',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'W',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'X',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'Z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'd',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'e',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'f',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'g',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'h',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'i',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'j',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'k',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'l',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'm',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'n',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'o',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'p',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'q',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'r',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 's',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 't',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'u',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'v',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'w',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'x',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'y',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], 'z',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '0',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '1',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '2',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '3',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '4',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '5',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '6',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '7',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '8',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], '9',[55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], {'ident': 120})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'A',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'B',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'C',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'D',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'E',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'F',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], 'H',[154], {'hexnumber': 154})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '0',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '1',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '2',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '3',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '4',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '5',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '6',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '7',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '8',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], '9',[137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None)
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '0',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '1',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '2',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '3',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '4',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '5',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '6',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '7',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '8',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], '9',[192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], {'signnumber': 198})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([154, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'hexnumber': 154})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153], None,None, {'ident': 120})
, Transition([154], None,None, {'hexnumber': 154})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175], None,None, {'number': 175})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([203, 204, 205, 206, 207], None,None, {'whitetoken': 207})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120], None,None, {'ident': 120})
, Transition([154], None,None, {'hexnumber': 154})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
, Transition([192, 193, 194, 195, 196, 197, 198, 188, 189, 190, 191], None,None, {'signnumber': 198})
])
tokens = {'ident': {'token': '((aγbγcγAγBγCγDγEγFγGγHγIγJγKγLγMγNγOγPγQγRγSγTγUγVγWγXγYγZγaγbγcγdγeγfγgγhγiγjγkγlγmγnγoγpγqγrγsγtγuγvγwγxγyγz)((aγbγcγAγBγCγDγEγFγGγHγIγJγKγLγMγNγOγPγQγRγSγTγUγVγWγXγYγZγaγbγcγdγeγfγgγhγiγjγkγlγmγnγoγpγqγrγsγtγuγvγwγxγyγz)γ(0γ1γ2γ3γ4γ5γ6γ7γ8γ9))α)', 'isExcept': True}, 'hexnumber': {'token': '((0γ1γ2γ3γ4γ5γ6γ7γ8γ9γAγBγCγDγEγF)((0γ1γ2γ3γ4γ5γ6γ7γ8γ9γAγBγCγDγEγF))α)(H)', 'isExcept': True}, 'number': {'token': '((0γ1γ2γ3γ4γ5γ6γ7γ8γ9)((0γ1γ2γ3γ4γ5γ6γ7γ8γ9))α)', 'isExcept': False}, 'signnumber': {'token': '((((+γ-))γ&)(0γ1γ2γ3γ4γ5γ6γ7γ8γ9)((0γ1γ2γ3γ4γ5γ6γ7γ8γ9))α)', 'isExcept': False}, 'whitetoken': {'token': '((\rγ\nγ\tγ\r)((\rγ\nγ\tγ\r))α)', 'isExcept': False}}
f = open('test.txt', 'r')
def reader_tester():
x = f.read()
response = []
#
r = automata.simulate_DFA(None, x[0])
failTry=0
i = 0
tokens = []
invalidos = []
x=x[1:]
while i < len(x):
ch = x[i]
#Si existe, verificamos con el estado nuevo el caracter siguiente.?
if r:
response.append(r)
r = automata.simulate_DFA(response[-1], ch)
if r:
i += 1
#Si no existia ese caracter, reiniciamos el automata
else:
r = automata.simulate_DFA(None, ch)
#aqui que existe
if not r and len(response) > 0 and failTry == 0:
#aqui valido de aceptacion.
last = response.pop()
if last.type:
tokens.append(last)
else:
invalidos.append(last)
r = automata.simulate_DFA(None, x[i])
i += 1
"""
elif not r and len(response) > 0:
tokens.append(response.pop())
r= automata.simulate_DFA(None, c)
tokens.append(r)
else:
print("No tokens.")
if len(tokens) == 0 and len(response) > 0:
tokens.append(response.pop())
print("Finished", tokens)
"""
return tokens
def token_print(tokens):
for token in tokens:
if token.type:
name = token.type.keys()
name = list(name)
print(f"<Token w/id: {name}>")
else:
print(f"<Token w/id: None >")
x = reader_tester()
token_print(x)
| 364.386293
| 1,057
| 0.547298
| 75,853
| 350,904
| 2.531739
| 0.004179
| 0.018767
| 0.02815
| 0.037534
| 0.994157
| 0.99322
| 0.99284
| 0.99284
| 0.992366
| 0.992127
| 0
| 0.624789
| 0.214959
| 350,904
| 963
| 1,058
| 364.386293
| 0.072337
| 0.00045
| 0
| 0.622845
| 0
| 0
| 0.01654
| 0.00131
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002155
| false
| 0
| 0.00431
| 0
| 0.007543
| 0.00431
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
efcf0c1889b3df2f4f86caefeef18c893389387d
| 135
|
py
|
Python
|
packages/foo/alpha/other.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
packages/foo/alpha/other.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
packages/foo/alpha/other.py
|
rockman/learn-python-online
|
9c979fbea7bb2ed502eba2440306ab5a0f4637af
|
[
"MIT"
] | null | null | null |
from ..solar import SOLAR_PUBLIC
from .common import COMMON_PUBLIC
def the_other():
return 'OTHER', SOLAR_PUBLIC, COMMON_PUBLIC
| 16.875
| 47
| 0.77037
| 19
| 135
| 5.210526
| 0.473684
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155556
| 135
| 7
| 48
| 19.285714
| 0.868421
| 0
| 0
| 0
| 0
| 0
| 0.037313
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0.25
| 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
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 8
|
4bfe658ee8da3149e9d104dda1cceeba93a6d17a
| 112
|
py
|
Python
|
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
|
bburns632/doppel-cli
|
e0c708f565db0f558bca6f2fbe28a41d45121344
|
[
"BSD-3-Clause"
] | null | null | null |
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
|
bburns632/doppel-cli
|
e0c708f565db0f558bca6f2fbe28a41d45121344
|
[
"BSD-3-Clause"
] | null | null | null |
integration_tests/test-packages/python/pythonspecific/pythonspecific/mod_one/__init__.py
|
bburns632/doppel-cli
|
e0c708f565db0f558bca6f2fbe28a41d45121344
|
[
"BSD-3-Clause"
] | null | null | null |
from .some_function import some_function
from .SomeClass import SomeClass
from .SomeClass import SOME_CONSTANT
| 22.4
| 40
| 0.857143
| 15
| 112
| 6.2
| 0.4
| 0.258065
| 0.408602
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116071
| 112
| 4
| 41
| 28
| 0.939394
| 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
| 1
| 0
|
0
| 7
|
ef05905e462cc87c3611fc21bd97c8602b9d6c23
| 22,775
|
py
|
Python
|
tests/test_ft_op.py
|
jordanreedy16/minemeld-core
|
95ccb41cd67d4b115b18762af86af686f745aa9d
|
[
"Apache-2.0"
] | null | null | null |
tests/test_ft_op.py
|
jordanreedy16/minemeld-core
|
95ccb41cd67d4b115b18762af86af686f745aa9d
|
[
"Apache-2.0"
] | null | null | null |
tests/test_ft_op.py
|
jordanreedy16/minemeld-core
|
95ccb41cd67d4b115b18762af86af686f745aa9d
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2015 Palo Alto Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""FT op tests
Unit tests for minemeld.ft.op
"""
import gevent
import gevent.monkey
gevent.monkey.patch_all(thread=False, select=False)
import unittest
import mock
import time
import shutil
import logging
import guppy3 # noqa
import pdb # noqa
import gc # noqa
import minemeld.ft.op
FTNAME = 'testft-%d' % int(time.time())
LOG = logging.getLogger(__name__)
def check_for_rpc(call_args_list, check_list, all_here=False, offset=0):
LOG.debug("call_args_list: %s", call_args_list)
found = []
for chk in check_list:
LOG.debug("checking: %s", chk)
for j in xrange(len(call_args_list)):
if j in found:
continue
args = call_args_list[j][0]
LOG.debug("args: %s", args[offset+0])
if args[offset+0] != chk['method']:
continue
if args[offset+1]['indicator'] != chk['indicator']:
continue
chkvalue = chk.get('value', None)
if chkvalue is None:
found.append(j)
LOG.debug("found @%d", j)
break
argsvalue = args[offset+1].get('value', None)
if chkvalue is not None and argsvalue is None:
continue
failed = False
for k in chkvalue.keys():
if k not in argsvalue:
failed = True
break
if chkvalue[k] != argsvalue[k]:
failed = True
break
if failed:
continue
found.append(j)
LOG.debug("found @%d", j)
break
c1 = len(found) == len(check_list)
if not all_here:
return c1
c2 = len(found) == len(call_args_list)
return c1+c2 == 2
class MineMeldFTOpTests(unittest.TestCase):
def setUp(self):
try:
shutil.rmtree(FTNAME)
except:
pass
def tearDown(self):
try:
shutil.rmtree(FTNAME)
except:
pass
def test_aggregate_2u(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
self.assertEqual(pargs[1]['value']['s1$a'], 1)
a.filtered_update('s2', indicator='i', value={'s2$a': 1, 'sources': ['s2s']})
self.assertEqual(ochannel.publish.call_count, 2)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertListEqual(pargs[1]['value']['sources'], ['s1s', 's2s'])
self.assertEqual(pargs[1]['value']['s2$a'], 1)
self.assertEqual(pargs[1]['value']['s1$a'], 1)
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_aggregate_uwl(self):
config = {
'whitelist_prefixes': ['s2']
}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertEqual(pargs[1]['value']['s1$a'], 1)
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.filtered_update('s2', indicator='i', value={'s2$a': 1, 'sources': ['s2s']})
self.assertEqual(ochannel.publish.call_count, 2)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertIn('value', pargs[1])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_aggregate_2uw(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.filtered_update('s2', indicator='i', value={'s2$a': 1, 'sources': ['s2s']})
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s', 's2s'])
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s', 's2s'])
a.filtered_withdraw('s2', indicator='i')
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_aggregate_2u2w(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.filtered_update('s2', indicator='i', value={'s2$a': 1, 'sources': ['s2s']})
self.assertEqual(ochannel.publish.call_count, 2)
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s', 's2s'])
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 3)
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s', 's2s'])
a.filtered_withdraw('s2', indicator='i')
self.assertEqual(ochannel.publish.call_count, 4)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.filtered_withdraw('s1', indicator='i')
self.assertEqual(ochannel.publish.call_count, 5)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
self.assertIn('value', pargs[1])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_aggregate_u2w_difftypes(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'type': 'a', 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
ochannel.publish.reset_mock()
a.filtered_update('s2', indicator='i2', value={'s1$a': 1, 'type': 'a', 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
ochannel.publish.reset_mock()
a.filtered_withdraw('s1', indicator='i', value={'type': 'b'})
self.assertEqual(ochannel.publish.call_count, 0)
ochannel.publish.reset_mock()
a.filtered_withdraw('s1', indicator='i', value={'type': 'a'})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
ochannel.publish.reset_mock()
a.filtered_withdraw('s2', indicator='i2')
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
self.assertIn('value', pargs[1])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_aggregate_uwlwl(self):
config = {
'whitelist_prefixes': ['s2', 's3']
}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='i', value={'s1$a': 1, 'sources': ['s1s']})
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertEqual(pargs[1]['value']['s1$a'], 1)
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.filtered_update('s2', indicator='i', value={'s2$a': 1, 'sources': ['s2s']})
self.assertEqual(ochannel.publish.call_count, 2)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertIn('value', pargs[1])
a.filtered_update('s3', indicator='i', value={'s3$a': 1, 'sources': ['s3s']})
self.assertEqual(ochannel.publish.call_count, 2)
a.filtered_withdraw('s3', indicator='i')
self.assertEqual(ochannel.publish.call_count, 2)
a.filtered_withdraw('s2', indicator='i')
self.assertEqual(ochannel.publish.call_count, 3)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_infilters(self):
config = {
'infilters': [
{
'name': 'rule1',
'conditions': [
'type(sources) == null'
],
'actions': [
'drop'
]
}
]
}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.update(source='s1', indicator='i', value={'s1a': 1, 'sources': ['s1s']})
gevent.sleep(0.1)
self.assertEqual(ochannel.publish.call_count, 1)
ochannel.publish.reset_mock()
a.update(source='s2', indicator='i', value={'s2a': 1})
gevent.sleep(0.1)
self.assertEqual(ochannel.publish.call_count, 0)
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_infilters_2u(self):
config = {
'infilters': [
{
'name': 'rule1',
'conditions': [
'type(sources) == null'
],
'actions': [
'drop'
]
}
]
}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.update(source='s1', indicator='i', value={'s1a': 1, 'sources': ['s1s']})
gevent.sleep(0.1)
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'update')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertEqual(pargs[1]['value']['s1a'], 1)
self.assertListEqual(pargs[1]['value']['sources'], ['s1s'])
ochannel.publish.reset_mock()
a.update(source='s1', indicator='i', value={'s1a': 1})
gevent.sleep(0.1)
self.assertEqual(ochannel.publish.call_count, 1)
pargs = ochannel.publish.call_args[0]
self.assertEqual(pargs[0], 'withdraw')
self.assertEqual(pargs[1]['indicator'], 'i')
self.assertIn('value', pargs[1])
a.stop()
a = None
chassis = None
rpcmock = None
ochannel = None
gc.collect()
def test_attr_override(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
rpcmock = mock.Mock()
rpcmock.get.return_value = {'error': None, 'result': 'OK'}
chassis.send_rpc.return_value = rpcmock
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s1s'],
'direction': 'inbound',
'first_seen': 10,
'last_seen': 25,
'confidence': 20
})
ochannel.publish.reset_mock()
a.filtered_update('s2', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
})
self.assertTrue(
check_for_rpc(
ochannel.publish.call_args_list,
[
{
'method': 'update',
'indicator': '10.1.0.0/16',
'value': {
'sources': ['s1s', 's2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 25,
'confidence': 30
}
}
],
all_here=True
)
)
a.stop()
a = None
gc.collect()
def test_get_all(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
chassis.send_rpc.return_value = {'error': None, 'result': 'OK'}
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 10,
'last_seen': 25,
'confidence': 20
})
a.filtered_update('s2', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
})
a.filtered_update('s3', indicator='10.1.1.0/24', value={
'type': 'IPv4',
'sources': ['s1s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
})
a.get_all(source='test')
self.assertTrue(
check_for_rpc(
chassis.send_rpc.call_args_list,
[
{
'method': 'update',
'indicator': '10.1.0.0/16',
'value': {
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 25,
'confidence': 30
}
},
{
'method': 'update',
'indicator': '10.1.1.0/24',
'value': {
'sources': ['s1s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
}
}
],
all_here=True,
offset=2
)
)
a.stop()
a = None
gc.collect()
def test_get_range(self):
config = {}
chassis = mock.Mock()
ochannel = mock.Mock()
chassis.request_pub_channel.return_value = ochannel
chassis.send_rpc.return_value = {'error': None, 'result': 'OK'}
a = minemeld.ft.op.AggregateFT(FTNAME, chassis, config)
inputs = ['s1', 's2', 's3']
output = True
a.connect(inputs, output)
a.mgmtbus_initialize()
a.start()
a.filtered_update('s1', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 10,
'last_seen': 25,
'confidence': 20
})
a.filtered_update('s2', indicator='10.1.0.0/16', value={
'type': 'IPv4',
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
})
a.filtered_update('s3', indicator='10.1.1.0/24', value={
'type': 'IPv4',
'sources': ['s1s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
})
a.get_range(source='test', from_key='10.1.0.0/16',
to_key='10.1.1.0/24')
self.assertTrue(
check_for_rpc(
chassis.send_rpc.call_args_list,
[
{
'method': 'update',
'indicator': '10.1.0.0/16',
'value': {
'sources': ['s2s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 25,
'confidence': 30
}
},
{
'method': 'update',
'indicator': '10.1.1.0/24',
'value': {
'sources': ['s1s'],
'direction': 'inbound',
'first_seen': 5,
'last_seen': 20,
'confidence': 30
}
}
],
all_here=True,
offset=2
)
)
a.stop()
a = None
gc.collect()
| 30.245684
| 99
| 0.508891
| 2,402
| 22,775
| 4.719817
| 0.092007
| 0.070124
| 0.077093
| 0.060863
| 0.86769
| 0.852695
| 0.847579
| 0.837082
| 0.824821
| 0.799859
| 0
| 0.032422
| 0.344544
| 22,775
| 752
| 100
| 30.285904
| 0.727023
| 0.027618
| 0
| 0.808621
| 0
| 0
| 0.109338
| 0
| 0
| 0
| 0
| 0
| 0.12931
| 1
| 0.024138
| false
| 0.003448
| 0.018966
| 0
| 0.048276
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
324452b4464c3b2111754140f726d975a3827dd1
| 120
|
py
|
Python
|
ComRISB/pyglib/pyglib/iface/test/test_wannier_den_lda.py
|
comscope/comsuite
|
d51c43cad0d15dc3b4d1f45e7df777cdddaa9d6c
|
[
"BSD-3-Clause"
] | 18
|
2019-06-15T18:08:21.000Z
|
2022-01-30T05:01:29.000Z
|
ComRISB/pyglib/pyglib/iface/test/test_wannier_den_lda.py
|
comscope/Comsuite
|
b80ca9f34c519757d337487c489fb655f7598cc2
|
[
"BSD-3-Clause"
] | null | null | null |
ComRISB/pyglib/pyglib/iface/test/test_wannier_den_lda.py
|
comscope/Comsuite
|
b80ca9f34c519757d337487c489fb655f7598cc2
|
[
"BSD-3-Clause"
] | 11
|
2019-06-05T02:57:55.000Z
|
2021-12-29T02:54:25.000Z
|
from pyglib.iface.ifwannier import wannier_den_matrix_lda_chk3
wannier_den_matrix_lda_chk3(wannier_path="../wannier")
| 24
| 62
| 0.858333
| 18
| 120
| 5.222222
| 0.611111
| 0.212766
| 0.340426
| 0.404255
| 0.56383
| 0.56383
| 0
| 0
| 0
| 0
| 0
| 0.017699
| 0.058333
| 120
| 4
| 63
| 30
| 0.814159
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
32aa210903cd93f996d164bfce42328849aee170
| 91
|
py
|
Python
|
server/schema/mutation.py
|
kfields/django-arcade
|
24df3d43dde2d69df333529d8790507fb1f5fcf1
|
[
"MIT"
] | 1
|
2021-10-03T05:44:32.000Z
|
2021-10-03T05:44:32.000Z
|
server/schema/mutation.py
|
kfields/django-arcade
|
24df3d43dde2d69df333529d8790507fb1f5fcf1
|
[
"MIT"
] | null | null | null |
server/schema/mutation.py
|
kfields/django-arcade
|
24df3d43dde2d69df333529d8790507fb1f5fcf1
|
[
"MIT"
] | null | null | null |
from users.mutation import *
from games.mutation import *
from players.mutation import *
| 15.166667
| 30
| 0.78022
| 12
| 91
| 5.916667
| 0.5
| 0.591549
| 0.507042
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 91
| 5
| 31
| 18.2
| 0.922078
| 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
| 1
| 0
|
0
| 7
|
089fdbb6daecfbe0d7c917937354f68e6bc7cccc
| 106
|
py
|
Python
|
hackathon/container/__init__.py
|
artificiallyintelligent-ai/hackathon-base
|
da61a65d20afcb804fee4e45c3504ba9b72ee9ac
|
[
"MIT"
] | null | null | null |
hackathon/container/__init__.py
|
artificiallyintelligent-ai/hackathon-base
|
da61a65d20afcb804fee4e45c3504ba9b72ee9ac
|
[
"MIT"
] | null | null | null |
hackathon/container/__init__.py
|
artificiallyintelligent-ai/hackathon-base
|
da61a65d20afcb804fee4e45c3504ba9b72ee9ac
|
[
"MIT"
] | null | null | null |
from hackathon.container.environment import Environment
from hackathon.container.runner import CodeRunner
| 35.333333
| 55
| 0.886792
| 12
| 106
| 7.833333
| 0.583333
| 0.276596
| 0.468085
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 106
| 2
| 56
| 53
| 0.959184
| 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
| 1
| 0
|
0
| 7
|
08c051d5733c01ba46ad4f57b25b80596aeb4b26
| 38,466
|
py
|
Python
|
ambulance/tests/test_call_waypoint_api.py
|
shubhamkulkarni01/EMSTrack-Django
|
32ff9ed94a38730c0e9f6385c75060e2d30a930e
|
[
"MIT",
"BSD-3-Clause"
] | 2
|
2020-07-16T01:44:54.000Z
|
2020-10-25T02:08:47.000Z
|
ambulance/tests/test_call_waypoint_api.py
|
shubhamkulkarni01/EMSTrack-Django
|
32ff9ed94a38730c0e9f6385c75060e2d30a930e
|
[
"MIT",
"BSD-3-Clause"
] | 8
|
2020-04-20T22:13:56.000Z
|
2022-02-04T17:50:44.000Z
|
ambulance/tests/test_call_waypoint_api.py
|
shubhamkulkarni01/EMSTrack-Django
|
32ff9ed94a38730c0e9f6385c75060e2d30a930e
|
[
"MIT",
"BSD-3-Clause"
] | 2
|
2020-07-20T23:39:44.000Z
|
2022-02-24T00:29:10.000Z
|
import json
import logging
from io import BytesIO
from django.contrib.auth import get_user_model
from rest_framework.parsers import JSONParser
from rest_framework.test import APIClient
from ambulance.models import CallStatus, CallPriority, Call, WaypointStatus
from ambulance.serializers import WaypointSerializer
from ambulance.models import LocationType
from login.permissions import get_permissions
from login.tests.setup_data import TestSetup
logger = logging.getLogger(__name__)
User = get_user_model()
class TestAmbulancewaypoint(TestSetup):
def test_ambulancecall_waypoint_list_retrieve_viewset(self):
# instantiate client
client = APIClient()
# login superuser
user = User.objects.get(email='admin@user.com')
client.force_authenticate(user=user)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.B.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a1.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
},
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
},
{
'ambulance_id': self.a3.id,
'waypoint_set': [
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
}
],
'patient_set': [{'name': 'Jose', 'age': 3}, {'name': 'Maria', 'age': 10}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
logger.debug(response.status_code)
logger.debug(response.content)
c1 = JSONParser().parse(BytesIO(response.content))
self.assertEqual(response.status_code, 201)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.A.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a2.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '321',
'street': 'another street'
}
}
]
},
],
'patient_set': [{'name': 'Maria', 'age': 3}, {'name': 'Jose'}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
c2 = JSONParser().parse(BytesIO(response.content))
self.assertEqual(response.status_code, 201)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a1.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 2)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a2.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a3.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 1)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a1.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a2.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 1)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a3.id))
self.assertEqual(response.status_code, 404)
# login as test2@user.com (DISPATCHER)
user = User.objects.get(email='test2@user.com')
client.force_authenticate(user=user)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a1.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a2.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a3.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 1)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a1.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a2.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a3.id))
self.assertEqual(response.status_code, 404)
# login as test1@user.com
user = User.objects.get(email='test1@user.com')
client.force_authenticate(user=user)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a1.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a2.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a3.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a1.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a2.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a3.id))
self.assertEqual(response.status_code, 404)
# login as test4@user.com
user = User.objects.get(email='test4@user.com')
client.force_authenticate(user=user)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a1.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 0)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a2.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c1['id'], self.a3.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 1)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a1.id))
self.assertEqual(response.status_code, 404)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a2.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
self.assertEqual(len(answer), 1)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(c2['id'], self.a3.id))
self.assertEqual(response.status_code, 404)
def test_call_create_viewset_super(self):
# instantiate client
client = APIClient()
# login superuser
user = User.objects.get(email='admin@user.com')
client.force_authenticate(user=user)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.B.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a1.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
},
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
},
{
'ambulance_id': self.a2.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '321',
'street': 'another street'
}
}
]
},
{
'ambulance_id': self.a3.id,
}
],
'patient_set': [{'name': 'Jose', 'age': 3}, {'name': 'Maria', 'age': 10}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
self.assertEqual(response.status_code, 201)
# call/+/ambulance/+/wapypoint list
call = Call.objects.get(status=CallStatus.P.name)
for ambulancecall in call.ambulancecall_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, ambulancecall.ambulance.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(ambulancecall.waypoint_set.all(), many=True).data
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ retrieve
for ambulancecall in call.ambulancecall_set.all():
for waypoint in ambulancecall.waypoint_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, ambulancecall.ambulance.id, waypoint.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(waypoint).data
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/ post
data = {
'order': 3,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a2.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a2).waypoint_set.last()).data
self.assertCountEqual(answer, expected)
data = {
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a2.id),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a2).waypoint_set.last()).data
logger.debug(answer)
self.assertDictEqual(answer, expected)
self.assertEqual(answer['order'], 4)
data = {
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a3.id),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a3).waypoint_set.last()).data
self.assertDictEqual(answer, expected)
self.assertEqual(answer['order'], 0)
# call/+/ambulance/+/wapypoint/+/ update
data = {
'location': {
'type': LocationType.w.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a3.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a3).waypoint_set.last()).data
logger.debug(answer)
self.assertDictEqual(answer, expected)
self.assertEqual(answer['location']['type'], LocationType.w.name)
# call/+/ambulance/+/wapypoint/+/ update to forbidden type
data = {
'location': {
'type': LocationType.h.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a3.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 400)
def test_call_create_viewset_privileged_user(self):
# instantiate client
client = APIClient()
# login superuser
user = User.objects.get(email='admin@user.com')
client.force_authenticate(user=user)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.B.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a1.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
},
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
},
{
'ambulance_id': self.a2.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '321',
'street': 'another street'
}
}
]
},
{
'ambulance_id': self.a3.id,
}
],
'patient_set': [{'name': 'Jose', 'age': 3}, {'name': 'Maria', 'age': 10}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
self.assertEqual(response.status_code, 201)
# login as test2@user.com
user = User.objects.get(email='test2@user.com')
client.force_authenticate(user=user)
# get permissions
perms = get_permissions(user)
# call/+/ambulance/+/wapypoint list
call = Call.objects.get(status=CallStatus.P.name)
for ambulancecall in call.ambulancecall_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, ambulancecall.ambulance.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
if perms.check_can_read(ambulance=ambulancecall.ambulance.id):
expected = WaypointSerializer(ambulancecall.waypoint_set.all(), many=True).data
else:
expected = []
#logger.debug("answer = %s", answer)
#logger.debug("expected = %s", expected)
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ retrieve
for ambulancecall in call.ambulancecall_set.all():
for waypoint in ambulancecall.waypoint_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, ambulancecall.ambulance.id, waypoint.id))
if perms.check_can_read(ambulance=ambulancecall.ambulance.id):
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(waypoint).data
self.assertCountEqual(answer, expected)
else:
self.assertEqual(response.status_code, 404)
# call/+/ambulance/+/wapypoint/ post
data = {
'order': 3,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a2.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a1.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a3.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a1).waypoint_set.last()).data
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ update
data = {
'location': {
'type': LocationType.w.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a2.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a1.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a3.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a3).waypoint_set.last()).data
logger.debug(answer)
self.assertDictEqual(answer, expected)
self.assertEqual(answer['location']['type'], LocationType.w.name)
# call/+/ambulance/+/wapypoint/+/ update to forbidden type
data = {
'location': {
'type': LocationType.h.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a3.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 400)
def test_call_create_viewset_unprivileged_user(self):
# instantiate client
client = APIClient()
# login superuser
user = User.objects.get(email='admin@user.com')
client.force_authenticate(user=user)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.B.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a1.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
},
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
},
{
'ambulance_id': self.a2.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '321',
'street': 'another street'
}
}
]
},
{
'ambulance_id': self.a3.id,
}
],
'patient_set': [{'name': 'Jose', 'age': 3}, {'name': 'Maria', 'age': 10}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
self.assertEqual(response.status_code, 201)
# login as test2@user.com
user = User.objects.get(email='test1@user.com')
client.force_authenticate(user=user)
# call/+/ambulance/+/wapypoint list
call = Call.objects.get(status=CallStatus.P.name)
for ambulancecall in call.ambulancecall_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, ambulancecall.ambulance.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = []
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ retrieve
for ambulancecall in call.ambulancecall_set.all():
for waypoint in ambulancecall.waypoint_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, ambulancecall.ambulance.id, waypoint.id))
self.assertEqual(response.status_code, 404)
# call/+/ambulance/+/wapypoint/ post
data = {
'order': 3,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a2.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a3.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a1.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
# call/+/ambulance/+/wapypoint/+/ update
data = {
'location': {
'type': LocationType.w.name,
}
}
waypoint = call.ambulancecall_set.get(ambulance=self.a2.id).waypoint_set.last()
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a2.id, waypoint.id),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
waypoint = call.ambulancecall_set.get(ambulance=self.a1.id).waypoint_set.last()
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a1.id, waypoint.id),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
def test_call_create_viewset_dispatcher(self):
# instantiate client
client = APIClient()
# login superuser
user = User.objects.get(email='admin@user.com')
client.force_authenticate(user=user)
# create call
call = {
'status': CallStatus.P.name,
'priority': CallPriority.B.name,
'sms_notifications': [],
'ambulancecall_set': [
{
'ambulance_id': self.a1.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
},
{
'order': 1,
'status': WaypointStatus.D.name,
'location': {
'location': {
'longitude': -110.54,
'latitude': 35.75
},
'type': LocationType.w.name,
}
}
]
},
{
'ambulance_id': self.a2.id,
'waypoint_set': [
{
'order': 0,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '321',
'street': 'another street'
}
}
]
},
{
'ambulance_id': self.a3.id,
}
],
'patient_set': [{'name': 'Jose', 'age': 3}, {'name': 'Maria', 'age': 10}]
}
response = client.post('/en/api/call/', json.dumps(call), content_type='application/json')
self.assertEqual(response.status_code, 201)
# login as test2@user.com
user = User.objects.get(email='test4@user.com')
client.force_authenticate(user=user)
# call/+/ambulance/+/wapypoint list
call = Call.objects.get(status=CallStatus.P.name)
for ambulance in [self.a2, self.a3]:
ambulancecall = call.ambulancecall_set.get(ambulance=ambulance)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, ambulancecall.ambulance.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(ambulancecall.waypoint_set.all(), many=True).data
self.assertCountEqual(answer, expected)
for ambulance in [self.a1]:
ambulancecall = call.ambulancecall_set.get(ambulance=ambulance)
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, ambulancecall.ambulance.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = []
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ retrieve
for ambulance in [self.a2, self.a3]:
for waypoint in call.ambulancecall_set.get(ambulance=ambulance).waypoint_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, ambulance.id, waypoint.id))
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(waypoint).data
self.assertCountEqual(answer, expected)
for ambulance in [self.a1]:
for waypoint in call.ambulancecall_set.get(ambulance=ambulance).waypoint_set.all():
response = client.get('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, ambulance.id, waypoint.id))
self.assertEqual(response.status_code, 404)
# call/+/ambulance/+/wapypoint/ post
data = {
'order': 3,
'location': {
'location': {
'longitude': -123.0208,
'latitude': 44.0464
},
'type': LocationType.i.name,
'number': '123',
'street': 'some street'
}
}
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a1.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 403)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a3.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a3).waypoint_set.last()).data
self.assertCountEqual(answer, expected)
response = client.post('/en/api/call/{}/ambulance/{}/waypoint/'.format(call.id, self.a2.id),
json.dumps(data), content_type='application/json')
self.assertEqual(response.status_code, 201)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a2).waypoint_set.last()).data
self.assertCountEqual(answer, expected)
# call/+/ambulance/+/wapypoint/+/ update
data = {
'location': {
'type': LocationType.w.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a1.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a3.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 404)
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a2.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 200)
answer = JSONParser().parse(BytesIO(response.content))
expected = WaypointSerializer(call.ambulancecall_set.get(ambulance=self.a2).waypoint_set.last()).data
logger.debug(answer)
self.assertDictEqual(answer, expected)
self.assertEqual(answer['location']['type'], LocationType.w.name)
# call/+/ambulance/+/wapypoint/+/ update to forbidden type
data = {
'location': {
'type': LocationType.h.name,
}
}
response = client.patch('/en/api/call/{}/ambulance/{}/waypoint/{}/'.format(call.id, self.a2.id, answer['id']),
json.dumps(data), content_type='application/json')
logger.debug(response.content)
self.assertEqual(response.status_code, 400)
| 43.612245
| 139
| 0.490329
| 3,379
| 38,466
| 5.513466
| 0.044096
| 0.03124
| 0.063768
| 0.101181
| 0.960011
| 0.959152
| 0.959152
| 0.950617
| 0.943854
| 0.933119
| 0
| 0.028001
| 0.375162
| 38,466
| 881
| 140
| 43.661748
| 0.747119
| 0.032756
| 0
| 0.76087
| 0
| 0
| 0.143887
| 0.060682
| 0
| 0
| 0
| 0
| 0.134511
| 1
| 0.006793
| false
| 0
| 0.014946
| 0
| 0.023098
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
08dc8a3d40147a367edbfa2b89ac2ec223ad4780
| 258
|
py
|
Python
|
entity/cards/BARL_025H/__init__.py
|
x014/lushi_script
|
edab2b88e3f0de8139de2541ab2daa331f777c0e
|
[
"MIT"
] | 102
|
2021-10-20T09:06:39.000Z
|
2022-03-28T13:35:11.000Z
|
entity/cards/BARL_025H/__init__.py
|
x014/lushi_script
|
edab2b88e3f0de8139de2541ab2daa331f777c0e
|
[
"MIT"
] | 98
|
2021-10-19T16:13:27.000Z
|
2022-03-27T13:27:49.000Z
|
entity/cards/BARL_025H/__init__.py
|
x014/lushi_script
|
edab2b88e3f0de8139de2541ab2daa331f777c0e
|
[
"MIT"
] | 55
|
2021-10-19T03:56:50.000Z
|
2022-03-25T08:25:26.000Z
|
# -*- coding: utf-8 -*-
import entity.cards.BARL_025H.LETL_220
import entity.cards.BARL_025H.LETL_222
import entity.cards.BARL_025H.LETL_225
import entity.cards.BARL_025H.LETL_620
import entity.cards.BARL_025H.LETL_621
import entity.cards.BARL_025H.LETL_622
| 32.25
| 38
| 0.829457
| 45
| 258
| 4.488889
| 0.333333
| 0.356436
| 0.504951
| 0.623762
| 0.861386
| 0.861386
| 0
| 0
| 0
| 0
| 0
| 0.153527
| 0.065891
| 258
| 7
| 39
| 36.857143
| 0.684647
| 0.081395
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 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
| 8
|
eb440f70ba097210302db5ae5df13d81460875e9
| 7,899
|
py
|
Python
|
source/protocol/DL645_protocol.py
|
chopin1993/protocolmaster-20210731
|
e23e235ee00b940a4161c606415574d2a52c701c
|
[
"Apache-2.0"
] | null | null | null |
source/protocol/DL645_protocol.py
|
chopin1993/protocolmaster-20210731
|
e23e235ee00b940a4161c606415574d2a52c701c
|
[
"Apache-2.0"
] | null | null | null |
source/protocol/DL645_protocol.py
|
chopin1993/protocolmaster-20210731
|
e23e235ee00b940a4161c606415574d2a52c701c
|
[
"Apache-2.0"
] | null | null | null |
# encoding:utf-8
from .protocol import Protocol, protocol_register
from .protocol import find_head
from .codec import BinaryEncoder, BinaryDecoder
from tools.converter import hexstr2bytes, str2hexstr
from tools.checker import checksum
DL645_HEAD = chr(0x68)
DL645_TAIL = chr(0x16)
class DIDReadAddress(object):
def encode(self, encoder):
encoder.encode_u8(0x13)
encoder.encode_u8(0x00)
def decode(self, decoder):
pass
class DIDESTunnelData(object):
def __init__(self, data):
self.data = data
def encode(self, encoder):
encoder.encode_u8(0x50)
encoder.encode_u8(0x4d)
encoder.encode_str(self.data)
class DIDRealTimeMeterData(object):
def __init__(self, data=None):
self.address = data
self.current_meter_used = 0
def encode(self, encoder):
encoder.encode_u8(00)
encoder.encode_u8(0xff)
encoder.encode_u8(0x01)
encoder.encode_u8(0x00)
encoder.encode_u8(0x00)
encoder.encode_str(self.address[::-1])
def decode(self, decoder):
decoder.decode_bytes(54) # did
self.address = decoder.decode_bytes(7)[::-1]
def data_encrypt(data):
out = ""
for byte in data:
out += chr((ord(byte)+0x33)&0xff)
return out
def data_unencrypt(data):
out = ""
for byte in data:
out += chr((ord(byte)+256-0x33)&0xff)
return out
@protocol_register
class DL645_07_Protocol(Protocol):
"""
>>> encoder = BinaryEncoder()
>>> protocol = DL645_07_Protocol()
>>> encoder.encode_object(protocol)
>>> str2hexstr(encoder.get_data())
'68 11 11 11 11 11 11 68 01 02 80 83 3C 16'
"""
@staticmethod
def create_frame(*args, **kwargs):
protocol = DL645_07_Protocol()
protocol.address = args[0]
protocol.did_unit = args[1]
if kwargs.has_key("cmd"):
protocol.cmd = kwargs["cmd"]
return protocol
def __init__(self, did_unit=None):
self.address = chr(0x11)*6
self.meter_type = 0x10
self.cmd = 0x11
self.length = 0x04
self.did_unit = did_unit
self.serial = 0x90
def encode(self, encoder):
encoder.encode_str(DL645_HEAD)
encoder.encode_str(self.address[::-1])
encoder.encode_str(DL645_HEAD)
encoder.encode_u8(self.cmd)
if self.cmd == 0x11:
did_data = encoder.object2data(self.did_unit)
encoder.encode_u8(len(did_data))
did_data = data_encrypt(did_data)
encoder.encode_str(did_data)
elif self.cmd == 0x13:
encoder.encode_u8(0x00)
encoder.encode_u8(checksum(encoder.get_data()))
encoder.encode_str(DL645_TAIL)
def decode(self, decoder):
decoder.decode_bytes(1)
self.address = decoder.decode_bytes(6)[::-1]
decoder.decode_bytes(1)
self.cmd = decoder.decode_bytes(1)
self.length = decoder.decode_byte()
if self.length > 30:
did_data = decoder.decode_bytes(self.length)
did_data = data_unencrypt(did_data)
did_decoder = BinaryDecoder()
did_decoder.set_data(did_data)
self.did_unit = did_decoder.decoder_for_object(DIDRealTimeMeterData)
@staticmethod
def find_frame_in_buff(data):
"""
>>> receive_str =" fe fe 68 11 11 11 11 11 11 68 01 02 43 C3 3F 16 "
>>> receive_data = hexstr2bytes(receive_str)
>>> protocol = DL645_07_Protocol()
>>> protocol.find_frame_in_buff(receive_data)
(True, 2, 14)
>>> receive_data = hexstr2bytes("68 10 01 02 03 04 05 ")
>>> protocol.find_frame_in_buff(receive_data)
(False, 0, 0)
"""
start_pos = 0
found = 0
while start_pos < (len(data) - 11):
start_pos = find_head(data, start_pos, DL645_HEAD)
if start_pos == -1:
break
frame_data = data[start_pos:]
if len(frame_data) < 10:
break
data_len = ord(frame_data[9])
if data_len + 12 > len(frame_data):
start_pos += 1
continue
if ord(frame_data[10+data_len]) != checksum(frame_data[0:data_len+10]):
start_pos += 1
continue
if frame_data[11+data_len] != DL645_TAIL:
start_pos += 1
continue
found = 1
break
if found:
return True, start_pos, data_len+12
else:
return False, 0, 0
@protocol_register
class DL645_97_Protocol(Protocol):
"""
>>> encoder = BinaryEncoder()
>>> protocol = DL645_07_Protocol()
>>> encoder.encode_object(protocol)
>>> str2hexstr(encoder.get_data())
'68 11 11 11 11 11 11 68 01 02 80 83 3C 16'
"""
@staticmethod
def create_frame(*args, **kwargs):
protocol = DL645_97_Protocol()
protocol.address = args[0]
protocol.did_unit = args[1]
if kwargs.has_key("cmd"):
protocol.cmd = kwargs["cmd"]
return protocol
def __init__(self, did_unit=None):
self.address = chr(0x11)*6
self.meter_type = 0x10
self.cmd = 0x11
self.length = 0x04
self.did_unit = did_unit
self.serial = 0x90
def encode(self, encoder):
encoder.encode_str(DL645_HEAD)
encoder.encode_str(self.address[::-1])
encoder.encode_str(DL645_HEAD)
encoder.encode_u8(self.cmd)
if self.cmd == 0x11:
did_data = encoder.object2data(self.did_unit)
encoder.encode_u8(len(did_data))
did_data = data_encrypt(did_data)
encoder.encode_str(did_data)
elif self.cmd == 0x13:
encoder.encode_u8(0x00)
encoder.encode_u8(checksum(encoder.get_data()))
encoder.encode_str(DL645_TAIL)
def decode(self, decoder):
decoder.decode_bytes(1)
self.address = decoder.decode_bytes(6)[::-1]
decoder.decode_bytes(1)
self.cmd = decoder.decode_bytes(1)
self.length = decoder.decode_byte()
if self.length > 30:
did_data = decoder.decode_bytes(self.length)
did_data = data_unencrypt(did_data)
did_decoder = BinaryDecoder()
did_decoder.set_data(did_data)
self.did_unit = did_decoder.decoder_for_object(DIDRealTimeMeterData)
@staticmethod
def find_frame_in_buff(data):
"""
>>> receive_str ="fe fe 68 72 00 22 10 16 20 68 81 25 80 83 9B 43 33 33 33 33 33 33 34 B4 49 C3 52 34 3B 94 33 5F 33 3B 94 33 5F 33 33 33 33 33 33 33 33 33 1D 33 33 20 16 "
>>> receive_data = hexstr2bytes(receive_str)
>>> protocol = DL645_97_Protocol()
>>> protocol.find_frame_in_buff(receive_data)
(True, 2, 49)
>>> receive_data = hexstr2bytes("68 10 01 02 03 04 05 ")
>>> protocol.find_frame_in_buff(receive_data)
(False, 0, 0)
"""
start_pos = 0
found = 0
while start_pos < (len(data) - 11):
start_pos = find_head(data, start_pos, DL645_HEAD)
if start_pos == -1:
break
frame_data = data[start_pos:]
if len(frame_data) < 10:
break
data_len = ord(frame_data[9])
if data_len + 12 > len(frame_data):
start_pos += 1
continue
if ord(frame_data[10+data_len]) != checksum(frame_data[0:data_len+10]):
start_pos += 1
continue
if frame_data[11+data_len] != DL645_TAIL:
start_pos += 1
continue
found = 1
break
if found:
return True, start_pos, data_len+12
else:
return False, 0, 0
| 30.498069
| 181
| 0.585391
| 1,009
| 7,899
| 4.353816
| 0.13776
| 0.091737
| 0.058047
| 0.01639
| 0.852493
| 0.825176
| 0.81516
| 0.774869
| 0.748919
| 0.748919
| 0
| 0.088029
| 0.312571
| 7,899
| 258
| 182
| 30.616279
| 0.720994
| 0.144069
| 0
| 0.820652
| 0
| 0
| 0.001836
| 0
| 0
| 0
| 0.018363
| 0
| 0
| 1
| 0.103261
| false
| 0.005435
| 0.027174
| 0
| 0.201087
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
de5635d4bfce89e9f319516e633b1e64d162075c
| 27,557
|
py
|
Python
|
save_sampling.py
|
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
|
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
|
[
"MIT"
] | null | null | null |
save_sampling.py
|
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
|
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
|
[
"MIT"
] | null | null | null |
save_sampling.py
|
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
|
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
|
[
"MIT"
] | null | null | null |
import os
import numpy as np
import pandas as pd
import pickle
import xarray as xr
def save_data_CCO(fit, folder, data_start, data_dec):
print(fit)
if not os.path.exists(folder):
os.makedirs(folder)
os.chdir(folder)
print(os.getcwd())
np.save("data_start", data_start)
np.save("data_dec", data_dec)
try:
sampling_data = pd.DataFrame(["rates","ratio"],fit.extract(permuted=True))
sampling_data.to_csv("samples")
print("success in saveing samples from the posterior")
except:
print("cannot make a pandas data frame")
try:
sampling_data.to_csv("sampling_daten")
except:
print("could not save fit_data")
equi_values = fit.extract("equi_values", permuted=True)["equi_values"]
theta = fit.extract("rates", permuted=True)
ratio = fit.extract("ratio", permuted=True)
lp__ = fit.extract("lp__", permuted=True)["lp__"]
lp__ = pd.DataFrame(data=lp__)
lp__.to_csv("lp__")
occupat = fit.extract("occupat", permuted=True)["occupat"]
try:
latent_time = fit.extract("LATENT_TIME", permuted = True)["LATENT_TIME"]
np.save("latent_time", np.array(latent_time))
except:
print("LATENT TIME doesn t exist")
try:
latent_time_decay = fit.extract("LATENT_TIME_DECAY", permuted=True)["LATENT_TIME_DECAY"]
np.save("latent_time_decay", np.array(latent_time_decay))
except:
print("LATENT TIME doesn t exist")
try:
occupat_dec = fit.extract("occupat_decay", permuted=True)["occupat_decay"]
np.save("occupat_dec2", np.array(occupat_dec))
except:
print("occupat_decay doesn t exist")
#mu = fit.extract("mu", permuted = True)["mu"]
#np.save("mu", np.array(mu))
np.save("equi_values2", np.array(equi_values))
np.save("occupat2",np.array(occupat))
log_lik_t = fit.extract("log_lik_t", permuted=True)["log_lik_t"]
log_lik_h = fit.extract("log_lik_h", permuted=True)["log_lik_h"]
np.save("log_lik_t2", np.array(log_lik_t))
np.save("log_lik_h2", np.array(log_lik_h))
print(occupat)
column_names = list()
N_free_param = 3
for id in range(1,N_free_param):
column_names.append("theta["+str(id)+"]")
try:
theta = pd.DataFrame(data = theta["rates"], columns =column_names)
theta.to_csv("test")
except:
print("could not save theta")
for id in range(1,N_free_param):
column_names.append("rates["+str(id)+"]")
try:
ratio = pd.DataFrame(data=ratio["ratio"])
except:
print("ratio data frame ratio")
try:
ratio.to_csv("ratio")
except:
print("could not save")
def save_data_fluorescenc(fit, data_start, data_dec, N_free_param, execution_time, chains, sampling_iter, seed):
#if not os.path.exists(folder):
# os.makedirs(folder)
#os.chdir(folder)
try:
LogLikeLihood = fit.extract("LogLikeLihood", permuted=True)["LogLikeLihood"]
np.save("marginalLikelihood", np.array(LogLikeLihood))
except:
pass
try:
stepsize = fit.get_stepsize()[0]
print("step size"+str(stepsize))
# by default .get_inv_metric returns a list
inv_metric = fit.get_inv_metric(as_dict=True)[0]
init_last_pos = fit.get_last_position()[0]
last = pd.DataFrame.from_dict(init_last_pos, orient='index')
pd.to_pickle(last, "last_param_position")
np.save("inv_metric_sampler", inv_metric)
np.save("seed", seed)
np.save("setp_size", stepsize)
except:
print("could not save control params")
pass
print("saving in: "+os.getcwd())
np.save("data_start", data_start)
np.save("data_dec", data_dec)
exec_time = pd.DataFrame({"exec_time": execution_time,"chains": chains, "samplin_iter":sampling_iter}, index = [0])
exec_time.to_csv("execution_time_in_seconds")
#try:
# sampling_data = pd.DataFrame(fit.extract(["rates","ratio", ], permuted=True))
#except:
# print("cannot make a pandas data frame")
#try:
# sampling_data.to_csv("sampling_daten")
#except:
# print("could not save fit_data")
try:
param_likelihood_hold= fit.extract("param_likelihood_start_hold", permuted=True)["param_likelihood_start_hold"]
print(param_likelihood_hold)
param_likelihood_hold = np.swapaxes(param_likelihood_hold, 0,1)
print("param_like.shape: " + str(param_likelihood_hold.shape))
param_hold = xr.DataArray(data=param_likelihood_hold[:, :, :, :, :],
dims=("N_conc_time_series", "samples_posterior", "signal_type",
"mean_and_correlations", "data_point"),
coords={
# "N_conc_time_series":["0.0625", "0.125", "0.25", "0.5", "1", "2","4","8","16","64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations": ["mean", "corr_1", "corr_2"]})
param_hold.to_netcdf("param_likelihood_start_hold")
param_likelihood_decay_hold = np.array(
fit.extract("param_likelihood_decay_hold", permuted=True)["param_likelihood_decay_hold"])
param_likelihood_decay_hold = np.swapaxes(param_likelihood_decay_hold, 0, 1)
param_hold = xr.DataArray(data=param_likelihood_decay_hold[:, :, :, :, :],
dims=("N_conc_time_series", "samples_posterior", "signal_type",
"mean_and_correlations", "data_point"),
coords={
# "N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16", "64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations": ["mean", "corr_1", "corr_2"]})
param_hold.to_netcdf("param_likelihood_decay_hold")
SummandsLogLikTraces_hold = fit.extract("SummandsLogLikTraces_hold", permuted=True)["SummandsLogLikTraces_hold"]
np.save("SummandsLogLikTraces_hold",SummandsLogLikTraces_hold)
except:
print("no hold out set")
try:
param_likelihood= fit.extract("param_likelihood_start", permuted=True)["param_likelihood_start"]
print(param_likelihood)
param_likelihood = np.swapaxes(param_likelihood, 0,1)
print("param_like.shape: " + str(param_likelihood.shape))
except:
pass
major_axis = list()
for i in range( 1 , 21):
major_axis.append(str(i))
try:
param = xr.DataArray(data=param_likelihood[:,:,:,:,:],
dims= ("N_conc_time_series","samples_posterior","signal_type",
"mean_and_correlations","data_point"),
coords={#"N_conc_time_series":["0.0625", "0.125", "0.25", "0.5", "1", "2","4","8","16","64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations":["mean", "corr_1", "corr_2"]})
param.to_netcdf("param_likelihood_start")
param_likelihood_decay = np.array(fit.extract("param_likelihood_decay", permuted=True)["param_likelihood_decay"])
param_likelihood_decay = np.swapaxes(param_likelihood_decay, 0, 1)
param = xr.DataArray(data=param_likelihood_decay[:, :, :, :,:],
dims=("N_conc_time_series", "samples_posterior", "signal_type",
"mean_and_correlations", "data_point"),
coords={
#"N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16", "64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations": ["mean", "corr_1", "corr_2"]})
param.to_netcdf("param_likelihood_decay")
except:
print("likelihood wasnt saved")
pass
SummandsLogLikTraces = fit.extract("SummandsLogLikTraces", permuted=True)["SummandsLogLikTraces"]
np.save("SummandsLogLikTraces",SummandsLogLikTraces)
## Splitted Kalman filter stuff
try:
param = xr.DataArray(data=param_likelihood[:,:, :, :, :, :],
dims=("N_conc_time_series","Splits", "samples_posterior", "signal_type",
"mean_and_correlations", "data_point"),
coords={
# "N_conc_time_series":["0.0625", "0.125", "0.25", "0.5", "1", "2","4","8","16","64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations": ["mean", "corr_1", "corr_2"]})
param.to_netcdf("param_likelihood_start")
param_likelihood_decay = np.array(
fit.extract("param_likelihood_decay", permuted=True)["param_likelihood_decay"])
param_likelihood_decay = np.swapaxes(param_likelihood_decay, 0, 1)
param = xr.DataArray(data=param_likelihood_decay[:,:, :, :, :, :],
dims=("N_conc_time_series","Splits", "samples_posterior", "signal_type",
"mean_and_correlations", "data_point"),
coords={
# "N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16", "64"],
"signal_type": ["fluores", "current"],
"mean_and_correlations": ["mean", "corr_1", "corr_2"]})
param.to_netcdf("param_likelihood_decay")
except:
print("likelihood wasnt saved")
pass
try:
backround_sigma = np.array(fit.extract("var_exp", permuted=True)["var_exp"])
np.save("measurement_sigma",np.array(backround_sigma))
except:
print("could save backround noise")
try:
N_traces = fit.extract("N_ion_trace", permuted=True)["N_ion_trace"]
np.save("N_traces",np.array(N_traces))
except:
print("N_traces param to fit")
try:
lp__ = fit.extract("lp__", permuted=True)["lp__"]
lp__ = pd.DataFrame(data=lp__)
lp__.to_csv("lp__")
except:
print("lp_ saving doesn t work")
try:
OpenVar = fit.extract("OpenVar", permuted = True)["OpenVar"]
np.save("var_open", np.array(OpenVar ))
except:
print("var_open doesn t exist")
try:
latent_time = fit.extract("LATENT_TIME", permuted = True)["LATENT_TIME"]
np.save("latent_time", np.array(latent_time))
except:
print("LATENT TIME doesn t exist")
try:
latent_time_decay = fit.extract("LATENT_TIME_DECAY", permuted=True)["LATENT_TIME_DECAY"]
np.save("latent_time_decay", np.array(latent_time_decay))
except:
print("LATENT TIME doesn t exist")
try:
occupat_dec = fit.extract("occupat_decay", permuted=True)["occupat_decay"]
np.save("occupat_dec2", np.array(occupat_dec))
except:
print("occupat_decay doesn t exist")
#mu = fit.extract("mu", permuted = True)["mu"]
#np.save("mu", np.array(mu))
try:
equi_values = fit.extract("equi_values", permuted=True)["equi_values"]
np.save("equi_values2", np.array(equi_values))
except:
print("could not open equi_values")
try:
occupat = fit.extract("occupat", permuted=True)["occupat"]
print(occupat)
np.save("occupat2",np.array(occupat))
except:
print("could not save occupat")
try:
log_lik_t = fit.extract("log_lik_t", permuted=True)["log_lik_t"]
np.save("log_lik_t2", np.array(log_lik_t))
except:
print("could not save log_lik_t")
try:
log_lik_h = fit.extract("log_lik_h", permuted=True)["log_lik_h"]
np.save("log_lik_h2", np.array(log_lik_h))
except:
print("cold not save log_lik_h")
column_names = list()
for id in range(1,np.int(N_free_param/2+1)):
column_names.append("theta["+str(id)+"]")
try:
i_single =fit.extract("i_single_channel", permuted = True)["i_single_channel"]
np.save("i_single", np.array(i_single))
except:
print("i_single problems")
theta = fit.extract("rates", permuted=True)
theta = pd.DataFrame(data = theta["rates"], columns =column_names)
theta.to_csv("test")
for id in range(1,np.int(N_free_param/2+1)):
column_names.append("rates["+str(id)+"]")
try:
ratio = fit.extract("ratio", permuted=True)
ratio = pd.DataFrame(data=ratio["ratio"])
except:
print("ratio to data frame ratio did not work")
try:
ratio.to_csv("ratio")
except:
print("could not save ratio")
try:
lamb = fit.extract("lambda_fluoresc", permuted=True)
lamb = pd.DataFrame(data=lamb["lambda_fluoresc"])
except:
print("ratio to data frame ratio did not work")
try:
lamb.to_csv("lambda_fluoresc")
except:
print("could not save ratio")
try:
var_fluoresc = fit.extract("var_fluoresc", permuted=True)
var_fluoresc = pd.DataFrame(data=var_fluoresc["var_fluoresc"])
var_fluoresc.to_csv("var_fluoresc")
except Exception as e:
print(e)
print("could not save var_fluorescs")
def save_data_new(fit, data_start, data_dec,dataStartHold, dataDecHold, N_free_param, execution_time,seed):
try:
stepsize = fit.get_stepsize()
print("step size" + str(stepsize))[0]
# by default .get_inv_metric returns a list
inv_metric = fit.get_inv_metric(as_dict=True)[0]
init = fit.get_last_position()[0]
# increment seed by 1
control = {"stepsize": stepsize,
"inv_metric": inv_metric,
"adapt_engaged": False
}
np.save("inv_metric_sampler", inv_metric)
np.save("last_param_position", init)
np.save("seed", seed)
np.save("setp_size", stepsize)
except:
print("could not save control params")
pass
# if not os.path.exists(folder):
# os.makedirs(folder)
# os.chdir(folder)
print("saving in: " + os.getcwd())
np.save("data_start", data_start)
np.save("data_dec", data_dec)
np.save("data_start_hold", dataStartHold)
np.save("data_dec_hold", dataDecHold)
exec_time = np.array(execution_time)
np.save("execution_time_in_seconds", exec_time)
try:
sampling_data = pd.DataFrame(fit.extract(["rates", "ratio", ], permuted=True))
except:
print("cannot make a pandas data frame")
try:
sampling_data.to_csv("sampling_daten")
except:
print("could not save fit_data")
for name in ("param_likelihood_start","ParamLikeliStartHoldout"):
try:
param_likelihood = np.array(fit.extract(name, permuted=True)[name])
param_likelihood = np.swapaxes(param_likelihood, 0, 1)
print("param_like.shape: "+ param_likelihood.shape)
except:
print("param likihood existiert nicht")
try:
major_axis = list()
for i in range(1, 21):
major_axis.append(str(i))
param = xr.DataArray(data=param_likelihood[:, :, :, :],
dims=("N_conc_time_series", "samples_posterior", "data_point", "parameter_likelihood"),
coords={
"N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16",
"64"],
"parameter_likelihood": ["mean", "sigma"]})
param.to_netcdf(name)
except:
print("could not save likelihood")
for fname in ("param_likelihood_decay", "ParamLikeliDecayHoldout"):
try:
param_likelihood_decay = np.array(
fit.extract(fname, permuted=True)[fname])
param_likelihood_decay = np.swapaxes(param_likelihood_decay, 0, 1)
param = xr.DataArray(data=param_likelihood_decay[:, :, :, :],
dims=("N_conc_time_series", "samples_posterior", "data_point", "parameter_likelihood"),
coords={
"N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16",
"64"],
"parameter_likelihood": ["mean", "sigma"]})
param.to_netcdf(fname)
except:
print("could not save likelihood")
try:
backround_sigma = np.array(fit.extract("var_exp", permuted=True)["var_exp"])
np.save("measurement_sigma", np.array(backround_sigma))
except:
print("could save backround noise")
try:
N_traces = fit.extract("N_ion_trace", permuted=True)["N_ion_trace"]
np.save("N_traces", np.array(N_traces))
except:
print("N_traces param to fit")
try:
hyper_mu_N = fit.extract("hyper_mu_N", permuted=True)["hyper_mu_N"]
sigma_N = fit.extract("sigma_N", permuted=True)["sigma_N"]
np.save("hyper_mu_N", hyper_mu_N)
np.save("sigma_N", sigma_N)
except:
pass
try:
mu_i = fit.extract("mu_i", permuted=True)["mu_i"]
sigma_i = fit.extract("sigma_i", permuted=True)["sigma_i"]
np.save("mu_i", mu_i)
np.save("sigma_i", sigma_i)
except:
pass
try:
N_traces = fit.extract("mu_N", permuted=True)["mu_N"]
np.save("mu_N", np.array(N_traces))
except:
print("mu_N param to fit")
try:
N_traces = fit.extract("var_N", permuted=True)["var_N"]
np.save("var_N", np.array(N_traces))
except:
print("var_N param to fit")
try:
mu_k = fit.extract("mu_k", permuted=True)["mu_k"]
np.save("mu_k", np.array(mu_k))
sigma_k = fit.extract("sigma_k", permuted=True)["sigma_k"]
np.save("sigma_k", np.array(sigma_k))
except:
pass
try:
open_variance = fit.extract("open_variance", permuted=True)["open_variance"]
np.save("open_variance", np.array(open_variance))
except:
print("could not save open_variance param to fit")
try:
lp__ = fit.extract("lp__", permuted=True)["lp__"]
lp__ = pd.DataFrame(data=lp__)
lp__.to_csv("lp__")
except:
print("lp_ saving doesn t work")
try:
latent_time = fit.extract("LATENT_TIME", permuted=True)["LATENT_TIME"]
np.save("latent_time", np.array(latent_time))
except:
print("LATENT TIME doesn t exist")
try:
latent_time_decay = fit.extract("LATENT_TIME_DECAY", permuted=True)["LATENT_TIME_DECAY"]
np.save("latent_time_decay", np.array(latent_time_decay))
except:
print("LATENT TIME doesn t exist")
try:
occupat_dec = fit.extract("occupat_decay", permuted=True)["occupat_decay"]
np.save("occupat_dec2", np.array(occupat_dec))
except:
print("occupat_decay doesn t exist")
# mu = fit.extract("mu", permuted = True)["mu"]
# np.save("mu", np.array(mu))
try:
equi_values = fit.extract("equi_values", permuted=True)["equi_values"]
np.save("equi_values2", np.array(equi_values))
except:
print("could not open equi_values")
try:
occupat = fit.extract("occupat", permuted=True)["occupat"]
print(occupat)
np.save("occupat2", np.array(occupat))
except:
print("could not save occupat")
try:
log_lik_t = fit.extract("log_lik_t", permuted=True)["log_lik_t"]
np.save("log_lik_t2", np.array(log_lik_t))
except:
print("could not save log_lik_t")
try:
log_lik_h = fit.extract("logLikHoldout", permuted=True)["logLikHoldout"]
np.save("logLikHoldout", np.array(log_lik_h))
except:
print("cold not save log_lik_h")
column_names = list()
for id in range(1, np.int(N_free_param / 2 + 1)):
column_names.append("theta[" + str(id) + "]")
try:
lambda_brigthness = fit.extract("lambda_brigthness", permuted=True)["lambda_brigthness"]
np.save("lambda_brigthness", np.array(lambda_brigthness))
except:
print("lambda_brigthness")
try:
time_error = fit.extract("time_error", permuted=True)["time_error"]
np.save("time_error", np.array(time_error))
except:
print("lambda_brigthness")
theta = fit.extract("rates", permuted=True)
theta = pd.DataFrame(data=theta["rates"], columns=column_names)
theta.to_csv("test")
for id in range(1, np.int(N_free_param / 2 + 1)):
column_names.append("rates[" + str(id) + "]")
try:
ratio = fit.extract("ratio", permuted=True)
ratio = pd.DataFrame(data=ratio["ratio"])
except:
print("ratio to data frame ratio did not work")
try:
ratio.to_csv("ratio")
except:
print("could not save ratio")
def save_data_cross(fit, data_start, data_dec, N_free_param, execution_time, chains, sampling_iter):
#if not os.path.exists(folder):
# os.makedirs(folder)
#os.chdir(folder)
print("saving in: "+os.getcwd())
np.save("data_start", data_start)
np.save("data_dec", data_dec)
exec_time = np.array([execution_time, chains, sampling_iter])
np.save("execution_time_in_seconds", exec_time)
try:
sampling_data = pd.DataFrame(fit.extract(["rates","ratio", ], permuted=True))
except:
print("cannot make a pandas data frame")
try:
sampling_data.to_csv("sampling_daten")
except:
print("could not save fit_data")
try:
param_likelihood= np.array(fit.extract("param_likelihood_start", permuted=True)["param_likelihood_start"])
param_likelihood = np.swapaxes(param_likelihood, 0,1)
print(param_likelihood.shape)
except:
print("param likihood existiert nicht")
try:
major_axis = list()
for i in range( 1 , 21):
major_axis.append(str(i))
param = xr.DataArray(data=param_likelihood[:,:,:,:],
dims= ("N_conc_time_series","samples_posterior","data_point","parameter_likelihood"),
coords={"N_conc_time_series":["0.0625", "0.125", "0.25", "0.5", "1", "2","4","8","16","64"],
"parameter_likelihood": ["mean", "sigma"]})
param.to_netcdf("param_likelihood_start")
param_likelihood_decay = np.array(fit.extract("param_likelihood_decay", permuted=True)["param_likelihood_decay"])
param_likelihood_decay = np.swapaxes(param_likelihood_decay, 0, 1)
param = xr.DataArray(data=param_likelihood_decay[:, :, :, :],
dims=("N_conc_time_series", "samples_posterior", "data_point", "parameter_likelihood"),
coords={
"N_conc_time_series": ["0.0625", "0.125", "0.25", "0.5", "1", "2", "4", "8", "16", "64"],
"parameter_likelihood": ["mean", "sigma"]})
param.to_netcdf("param_likelihood_decay")
except:
print("could not save likelihood")
try:
backround_sigma = np.array(fit.extract("var_exp", permuted=True)["var_exp"])
np.save("measurement_sigma",np.array(backround_sigma))
except:
print("could save backround noise")
try:
N_traces = fit.extract("N_ion_trace", permuted=True)["N_ion_trace"]
np.save("N_traces",np.array(N_traces))
except:
print("N_traces param to fit")
try:
lp__ = fit.extract("lp__", permuted=True)["lp__"]
lp__ = pd.DataFrame(data=lp__)
lp__.to_csv("lp__")
except:
print("lp_ saving doesn t work")
try:
latent_time = fit.extract("LATENT_TIME", permuted = True)["LATENT_TIME"]
np.save("latent_time", np.array(latent_time))
except:
print("LATENT TIME doesn t exist")
try:
latent_time_decay = fit.extract("LATENT_TIME_DECAY", permuted=True)["LATENT_TIME_DECAY"]
np.save("latent_time_decay", np.array(latent_time_decay))
except:
print("LATENT TIME doesn t exist")
try:
occupat_dec = fit.extract("occupat_decay", permuted=True)["occupat_decay"]
np.save("occupat_dec2", np.array(occupat_dec))
except:
print("occupat_decay doesn t exist")
#mu = fit.extract("mu", permuted = True)["mu"]
#np.save("mu", np.array(mu))
try:
equi_values = fit.extract("equi_values", permuted=True)["equi_values"]
np.save("equi_values2", np.array(equi_values))
except:
print("could not open equi_values")
try:
occupat = fit.extract("occupat", permuted=True)["occupat"]
print(occupat)
np.save("occupat2",np.array(occupat))
except:
print("could not save occupat")
try:
log_lik_t = fit.extract("log_lik_t", permuted=True)["log_lik_t"]
np.save("log_lik_t", np.array(log_lik_t)[::4,:,::])
except Exception as e:
print(str(e))
print("could not save log_lik_t")
log_lik_h = fit.extract("logLikeHold", permuted=True)["logLikeHold"]
np.save("log_lik_h" , np.array(log_lik_h)[::4,:,::])
#except Exception as e:
# print(str(e))
# print("cold not save log_lik_h")
column_names = list()
for id in range(1,np.int(N_free_param/2+1)):
column_names.append("theta["+str(id)+"]")
try:
i_single =fit.extract("i_single_channel", permuted = True)["i_single_channel"]
np.save("i_single", np.array(i_single))
except:
print("i_single problems")
theta = fit.extract("rates", permuted=True)
theta = pd.DataFrame(data = theta["rates"], columns =column_names)
theta.to_csv("test")
for id in range(1,np.int(N_free_param/2+1)):
column_names.append("rates["+str(id)+"]")
try:
ratio = fit.extract("ratio", permuted=True)
ratio = pd.DataFrame(data=ratio["ratio"])
except:
print("ratio to data frame ratio did not work")
try:
ratio.to_csv("ratio")
except:
print("could not save ratio")
try:
lamb = fit.extract("lambda_fluoresc", permuted=True)
lamb = pd.DataFrame(data=lamb["lambda_fluoresc"])
except:
print("ratio to data frame ratio did not work")
try:
lamb.to_csv("lambda_fluoresc")
except:
print("could not save ratio")
def main():
save_data(bla)
if __name__ == "__main__":
main()
| 34.44625
| 124
| 0.575788
| 3,363
| 27,557
| 4.461195
| 0.063039
| 0.055322
| 0.043991
| 0.03166
| 0.828434
| 0.790375
| 0.773912
| 0.752383
| 0.747317
| 0.731854
| 0
| 0.015536
| 0.282941
| 27,557
| 800
| 125
| 34.44625
| 0.743725
| 0.0528
| 0
| 0.790941
| 0
| 0
| 0.243056
| 0.038597
| 0
| 0
| 0
| 0
| 0
| 1
| 0.008711
| false
| 0.015679
| 0.008711
| 0
| 0.017422
| 0.156794
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
c23a280f15132077836412b9f91dd368cce6451a
| 30
|
py
|
Python
|
example.py
|
dnrobin/pylayout
|
01b77c02c896a63c755b57d67d9614891f16a7bc
|
[
"MIT"
] | null | null | null |
example.py
|
dnrobin/pylayout
|
01b77c02c896a63c755b57d67d9614891f16a7bc
|
[
"MIT"
] | null | null | null |
example.py
|
dnrobin/pylayout
|
01b77c02c896a63c755b57d67d9614891f16a7bc
|
[
"MIT"
] | null | null | null |
from pylayout import *
# TODO
| 10
| 22
| 0.733333
| 4
| 30
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 30
| 3
| 23
| 10
| 0.916667
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5f1eddd1c8904392f862a5a779157b176da70984
| 8,142
|
py
|
Python
|
tap_amazon_advertising/streams/sponsored_products_report.py
|
goes-funky/tap-amazon-advertising
|
2b19cf673b54063834b20f72298e6fb030a8f3dd
|
[
"Apache-2.0"
] | 2
|
2019-09-10T15:25:39.000Z
|
2019-12-12T14:50:05.000Z
|
tap_amazon_advertising/streams/sponsored_products_report.py
|
goes-funky/tap-amazon-advertising
|
2b19cf673b54063834b20f72298e6fb030a8f3dd
|
[
"Apache-2.0"
] | 1
|
2021-02-17T13:32:02.000Z
|
2021-02-24T17:52:02.000Z
|
tap_amazon_advertising/streams/sponsored_products_report.py
|
goes-funky/tap-amazon-advertising
|
2b19cf673b54063834b20f72298e6fb030a8f3dd
|
[
"Apache-2.0"
] | 5
|
2019-09-10T15:25:47.000Z
|
2020-11-03T11:55:10.000Z
|
from tap_amazon_advertising.streams.base import ReportStream
import singer
import json
LOGGER = singer.get_logger() # noqa
class BaseSponsoredProductsReportStream(ReportStream):
API_METHOD = 'GET'
@property
def recordType(self):
raise RuntimeError("not implemented")
@property
def api_path(self):
return '/v2/sp/{}/report'.format(self.recordType)
def get_body(self, day):
return {
"reportDate": day.strftime('%Y%m%d'),
"metrics": ",".join([
"campaignName",
"campaignId",
"adGroupName",
"adGroupId",
"impressions",
"clicks",
"cost",
"currency",
"asin",
"sku",
"attributedConversions1d",
"attributedConversions7d",
"attributedConversions14d",
"attributedConversions30d",
"attributedConversions1dSameSKU",
"attributedConversions7dSameSKU",
"attributedConversions14dSameSKU",
"attributedConversions30dSameSKU",
"attributedUnitsOrdered1d",
"attributedUnitsOrdered7d",
"attributedUnitsOrdered14d",
"attributedUnitsOrdered30d",
"attributedSales1d",
"attributedSales7d",
"attributedSales14d",
"attributedSales30d",
"attributedSales1dSameSKU",
"attributedSales7dSameSKU",
"attributedSales14dSameSKU",
"attributedSales30dSameSKU",
])
}
def get_stream_data(self, result, day):
for record in result:
record['day'] = day.isoformat()
return [
self.transform_record(record)
for record in result
]
class SponsoredProductsReportProductAdsStream(BaseSponsoredProductsReportStream):
TABLE = 'sponsored_products_report_product_ads'
KEY_PROPERTIES = ['adId', 'day', 'profileId']
@property
def recordType(self):
return "productAds"
def get_body(self, day):
return {
"reportDate": day.strftime('%Y%m%d'),
"metrics": ",".join([
"campaignName",
"campaignId",
"adGroupName",
"adGroupId",
"impressions",
"clicks",
"cost",
"currency",
"asin",
#"sku", # Not supported for vendors?
"attributedConversions1d",
"attributedConversions7d",
"attributedConversions14d",
"attributedConversions30d",
"attributedConversions1dSameSKU",
"attributedConversions7dSameSKU",
"attributedConversions14dSameSKU",
"attributedConversions30dSameSKU",
"attributedUnitsOrdered1d",
"attributedUnitsOrdered7d",
"attributedUnitsOrdered14d",
"attributedUnitsOrdered30d",
"attributedSales1d",
"attributedSales7d",
"attributedSales14d",
"attributedSales30d",
"attributedSales1dSameSKU",
"attributedSales7dSameSKU",
"attributedSales14dSameSKU",
"attributedSales30dSameSKU",
])
}
class SponsoredProductsReportCampaignsStream(BaseSponsoredProductsReportStream):
TABLE = 'sponsored_products_report_campaigns'
KEY_PROPERTIES = ['campaignId', 'day', 'profileId']
@property
def recordType(self):
return "campaigns"
def get_body(self, day):
return {
"reportDate": day.strftime('%Y%m%d'),
"metrics": ",".join([
"bidPlus",
"campaignName",
"campaignId",
"campaignStatus",
"campaignBudget",
"impressions",
"clicks",
"cost",
"portfolioId",
"portfolioName",
"attributedConversions1d",
"attributedConversions7d",
"attributedConversions14d",
"attributedConversions30d",
"attributedConversions1dSameSKU",
"attributedConversions7dSameSKU",
"attributedConversions14dSameSKU",
"attributedConversions30dSameSKU",
"attributedUnitsOrdered1d",
"attributedUnitsOrdered7d",
"attributedUnitsOrdered14d",
"attributedUnitsOrdered30d",
"attributedSales1d",
"attributedSales7d",
"attributedSales14d",
"attributedSales30d",
"attributedSales1dSameSKU",
"attributedSales7dSameSKU",
"attributedSales14dSameSKU",
"attributedSales30dSameSKU",
])
}
class SponsoredProductsReportAdGroupsStream(BaseSponsoredProductsReportStream):
TABLE = 'sponsored_products_report_ad_groups'
KEY_PROPERTIES = ['adGroupId', 'day', 'profileId']
@property
def recordType(self):
return "adGroups"
def get_body(self, day):
return {
"reportDate": day.strftime('%Y%m%d'),
"metrics": ",".join([
"campaignName",
"campaignId",
"adGroupName",
"adGroupId",
"impressions",
"clicks",
"cost",
"attributedConversions1d",
"attributedConversions7d",
"attributedConversions14d",
"attributedConversions30d",
"attributedConversions1dSameSKU",
"attributedConversions7dSameSKU",
"attributedConversions14dSameSKU",
"attributedConversions30dSameSKU",
"attributedUnitsOrdered1d",
"attributedUnitsOrdered7d",
"attributedUnitsOrdered14d",
"attributedUnitsOrdered30d",
"attributedSales1d",
"attributedSales7d",
"attributedSales14d",
"attributedSales30d",
"attributedSales1dSameSKU",
"attributedSales7dSameSKU",
"attributedSales14dSameSKU",
"attributedSales30dSameSKU",
])
}
class SponsoredProductsReportKeywordsStream(BaseSponsoredProductsReportStream):
TABLE = 'sponsored_products_report_keywords'
KEY_PROPERTIES = ['keywordId', 'day', 'profileId']
@property
def recordType(self):
return "keywords"
def get_body(self, day):
return {
"reportDate": day.strftime('%Y%m%d'),
"metrics": ",".join([
"campaignName",
"campaignId",
"keywordId",
"keywordText",
"matchType",
"impressions",
"clicks",
"cost",
"attributedConversions1d",
"attributedConversions7d",
"attributedConversions14d",
"attributedConversions30d",
"attributedConversions1dSameSKU",
"attributedConversions7dSameSKU",
"attributedConversions14dSameSKU",
"attributedConversions30dSameSKU",
"attributedUnitsOrdered1d",
"attributedUnitsOrdered7d",
"attributedUnitsOrdered14d",
"attributedUnitsOrdered30d",
"attributedSales1d",
"attributedSales7d",
"attributedSales14d",
"attributedSales30d",
"attributedSales1dSameSKU",
"attributedSales7dSameSKU",
"attributedSales14dSameSKU",
"attributedSales30dSameSKU",
])
}
| 33.644628
| 81
| 0.525424
| 364
| 8,142
| 11.667582
| 0.293956
| 0.01554
| 0.024723
| 0.029433
| 0.798917
| 0.741465
| 0.741465
| 0.700965
| 0.700965
| 0.700965
| 0
| 0.030146
| 0.384795
| 8,142
| 241
| 82
| 33.784232
| 0.817728
| 0.004667
| 0
| 0.788018
| 0
| 0
| 0.396667
| 0.271728
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0553
| false
| 0
| 0.013825
| 0.046083
| 0.184332
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 7
|
a053dfd000f87fe785bbe423b855fe66cf2d739d
| 174
|
py
|
Python
|
acceptance_tests/features/pages/enrolment_code.py
|
ONSdigital/rasrm-acceptance-tests
|
ac31b8c2e79fec70e1475731edabc5acd54e8874
|
[
"MIT"
] | 2
|
2018-03-06T12:33:55.000Z
|
2018-05-04T15:28:55.000Z
|
acceptance_tests/features/pages/enrolment_code.py
|
ONSdigital/rasrm-acceptance-tests
|
ac31b8c2e79fec70e1475731edabc5acd54e8874
|
[
"MIT"
] | 99
|
2018-02-23T10:52:22.000Z
|
2021-02-03T11:35:54.000Z
|
acceptance_tests/features/pages/enrolment_code.py
|
ONSdigital/ras-integration-tests
|
ac31b8c2e79fec70e1475731edabc5acd54e8874
|
[
"MIT"
] | 1
|
2021-04-11T07:55:47.000Z
|
2021-04-11T07:55:47.000Z
|
from acceptance_tests import browser
def get_new_iac():
return browser.find_by_id('IAC')
def get_unused_iac():
return browser.find_by_id('unused-enrolment-code')
| 17.4
| 54
| 0.758621
| 27
| 174
| 4.555556
| 0.592593
| 0.097561
| 0.260163
| 0.325203
| 0.390244
| 0.390244
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 174
| 9
| 55
| 19.333333
| 0.82
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 0.12069
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 1
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
265f5f1fdc55d55195d0a5227a7a82387f2cf83b
| 226
|
py
|
Python
|
stage_0_siddhant.py
|
jravimicro/team-rosalind-project
|
4700ef6722c909ce9f5c48d4008ddaaf29d47d46
|
[
"MIT"
] | 22
|
2020-08-01T22:30:15.000Z
|
2021-11-16T10:22:22.000Z
|
stage_0_siddhant.py
|
jravimicro/team-rosalind-project
|
4700ef6722c909ce9f5c48d4008ddaaf29d47d46
|
[
"MIT"
] | 1
|
2020-08-05T10:34:20.000Z
|
2020-08-05T18:38:56.000Z
|
stage_0_siddhant.py
|
jravimicro/team-rosalind-project
|
4700ef6722c909ce9f5c48d4008ddaaf29d47d46
|
[
"MIT"
] | 21
|
2020-08-02T03:23:02.000Z
|
2021-08-06T19:39:36.000Z
|
#Siddhant-Task : More Detailed Method available in siddhant-python-docs
print("NAME: Siddhant sharma \nE-MAIL: siddhaantsharma.ss@gmail.com \nUSED LANGUAGE: PYTHON \nBIOSTACK: Vaccine development \nSLACK USERNAME: @siddhant")
| 75.333333
| 153
| 0.800885
| 29
| 226
| 6.241379
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097345
| 226
| 2
| 154
| 113
| 0.887255
| 0.309735
| 0
| 0
| 0
| 1
| 0.929032
| 0.180645
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
cd6a63ece66430b1241839400290eca9dfc6a7d4
| 5,930
|
py
|
Python
|
tests/test_station.py
|
pavius/py-opensprinkler
|
4e79fe5a649c711e7f88d9a1066ceec1a9a30d42
|
[
"MIT"
] | 4
|
2020-11-02T19:39:05.000Z
|
2021-08-17T07:58:18.000Z
|
tests/test_station.py
|
pavius/py-opensprinkler
|
4e79fe5a649c711e7f88d9a1066ceec1a9a30d42
|
[
"MIT"
] | 45
|
2020-04-12T10:19:44.000Z
|
2022-03-02T22:37:26.000Z
|
tests/test_station.py
|
pavius/py-opensprinkler
|
4e79fe5a649c711e7f88d9a1066ceec1a9a30d42
|
[
"MIT"
] | 7
|
2020-04-26T19:16:27.000Z
|
2021-08-24T07:16:01.000Z
|
import pytest
from const import FIRMWARE_VERSION
from pyopensprinkler.const import (
STATION_STATUS_IDLE,
STATION_STATUS_MANUAL,
STATION_TYPE_STANDARD,
)
class TestStation:
@pytest.mark.asyncio
async def test_index(self, controller):
await controller.refresh()
assert controller.stations[0].index == 0
@pytest.mark.asyncio
async def test_is_master(self, controller):
await controller.refresh()
assert not controller.stations[0].is_master
@pytest.mark.skipif(FIRMWARE_VERSION > 215, reason="only for version 215 and below")
@pytest.mark.asyncio
async def test_max_name_length_16(self, controller):
await controller.refresh()
assert controller.stations[0].max_name_length == 16
@pytest.mark.skipif(
FIRMWARE_VERSION < 216 or FIRMWARE_VERSION > 218,
reason="only for version 216 to 218",
)
@pytest.mark.asyncio
async def test_max_name_length_24(self, controller):
await controller.refresh()
assert controller.stations[0].max_name_length == 24
@pytest.mark.skipif(FIRMWARE_VERSION < 219, reason="only for version 219 and above")
@pytest.mark.asyncio
async def test_max_name_length(self, controller):
await controller.refresh()
assert controller.stations[0].max_name_length == 32
@pytest.mark.skipif(FIRMWARE_VERSION < 216, reason="only for version 216 and above")
@pytest.mark.asyncio
async def test_special(self, controller):
await controller.refresh()
assert not controller.stations[0].special
@pytest.mark.skipif(FIRMWARE_VERSION < 216, reason="only for version 216 and above")
@pytest.mark.asyncio
async def test_station_type(self, controller):
await controller.refresh()
assert controller.stations[0].station_type == STATION_TYPE_STANDARD
@pytest.mark.asyncio
async def test_toggle(self, controller):
await controller.refresh()
await controller.stations[0].stop()
assert not controller.stations[0].is_running
assert controller.stations[0].start_time == 0
assert controller.stations[0].end_time == 0
await controller.stations[0].toggle()
assert controller.stations[0].is_running
assert controller.stations[0].status == STATION_STATUS_MANUAL
assert controller.stations[0].start_time > 0
assert controller.stations[0].end_time > 0
assert controller.stations[0].seconds_remaining > 0
assert controller.stations[0].end_time > controller.stations[0].start_time
await controller.stations[0].toggle()
assert not controller.stations[0].is_running
assert controller.stations[0].status == STATION_STATUS_IDLE
assert controller.stations[0].start_time == 0
assert controller.stations[0].end_time == 0
@pytest.mark.asyncio
async def test_enable_disable(self, controller):
await controller.refresh()
assert controller.stations[0].enabled
await controller.stations[0].disable()
assert not controller.stations[0].enabled
await controller.stations[0].enable()
assert controller.stations[0].enabled
@pytest.mark.asyncio
async def test_set_name(self, controller):
await controller.refresh()
await controller.stations[0].set_name("new name")
assert controller.stations[0].name == "new name"
@pytest.mark.asyncio
async def test_set_master_1_operation_enabled(self, controller):
await controller.refresh()
await controller.stations[0].set_master_1_operation_enabled(True)
assert controller.stations[0].master_1_operation_enabled
await controller.stations[0].set_master_1_operation_enabled(False)
assert not controller.stations[0].master_1_operation_enabled
@pytest.mark.asyncio
async def test_set_master_2_operation_enabled(self, controller):
await controller.refresh()
await controller.stations[0].set_master_2_operation_enabled(True)
assert controller.stations[0].master_2_operation_enabled
await controller.stations[0].set_master_2_operation_enabled(False)
assert not controller.stations[0].master_2_operation_enabled
@pytest.mark.skipif(FIRMWARE_VERSION < 219, reason="only for version 219 and above")
@pytest.mark.asyncio
async def test_set_sensor_1_ignored(self, controller):
await controller.refresh()
await controller.stations[0].set_sensor_1_ignored(True)
assert controller.stations[0].sensor_1_ignored
await controller.stations[0].set_sensor_1_ignored(False)
assert not controller.stations[0].sensor_1_ignored
@pytest.mark.skipif(FIRMWARE_VERSION < 219, reason="only for version 219 and above")
@pytest.mark.asyncio
async def test_set_sensor_2_ignored(self, controller):
await controller.refresh()
await controller.stations[0].set_sensor_2_ignored(True)
assert controller.stations[0].sensor_2_ignored
await controller.stations[0].set_sensor_2_ignored(False)
assert not controller.stations[0].sensor_2_ignored
@pytest.mark.asyncio
async def test_set_rain_delay_ignored(self, controller):
await controller.refresh()
await controller.stations[0].set_rain_delay_ignored(True)
assert controller.stations[0].rain_delay_ignored
await controller.stations[0].set_rain_delay_ignored(False)
assert not controller.stations[0].rain_delay_ignored
@pytest.mark.asyncio
async def test_set_sequential_operation(self, controller):
await controller.refresh()
await controller.stations[0].set_sequential_operation(True)
assert controller.stations[0].sequential_operation
await controller.stations[0].set_sequential_operation(False)
assert not controller.stations[0].sequential_operation
| 40.067568
| 88
| 0.721417
| 746
| 5,930
| 5.529491
| 0.099196
| 0.24
| 0.253333
| 0.151515
| 0.894788
| 0.849939
| 0.781333
| 0.707879
| 0.558061
| 0.424242
| 0
| 0.029344
| 0.189713
| 5,930
| 147
| 89
| 40.340136
| 0.829136
| 0
| 0
| 0.391667
| 0
| 0
| 0.037605
| 0
| 0
| 0
| 0
| 0
| 0.3
| 1
| 0
| true
| 0
| 0.025
| 0
| 0.033333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
26bded795a520d5cfaeb37097eeb4bead80e2080
| 110
|
py
|
Python
|
project_euler/solutions/problem_6.py
|
cryvate/project-euler
|
6ed13880d7916c34554559f5f71662a863735eda
|
[
"MIT"
] | null | null | null |
project_euler/solutions/problem_6.py
|
cryvate/project-euler
|
6ed13880d7916c34554559f5f71662a863735eda
|
[
"MIT"
] | 9
|
2017-02-20T23:41:40.000Z
|
2017-04-16T15:36:54.000Z
|
project_euler/solutions/problem_6.py
|
cryvate/project-euler
|
6ed13880d7916c34554559f5f71662a863735eda
|
[
"MIT"
] | null | null | null |
def solve(number: int=100) -> int:
return ((((6 * number + 4) * number - 6) * number - 4) * number) // 24
| 36.666667
| 74
| 0.536364
| 16
| 110
| 3.6875
| 0.5625
| 0.237288
| 0.271186
| 0.474576
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108434
| 0.245455
| 110
| 2
| 75
| 55
| 0.60241
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
26e6993f80e8d6ec4bc0436a1cba233352933234
| 21,135
|
py
|
Python
|
sdk/python/pulumi_alicloud/cen/instance.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 42
|
2019-03-18T06:34:37.000Z
|
2022-03-24T07:08:57.000Z
|
sdk/python/pulumi_alicloud/cen/instance.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 152
|
2019-04-15T21:03:44.000Z
|
2022-03-29T18:00:57.000Z
|
sdk/python/pulumi_alicloud/cen/instance.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2020-08-26T17:30:07.000Z
|
2021-07-05T01:37:45.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['InstanceArgs', 'Instance']
@pulumi.input_type
class InstanceArgs:
def __init__(__self__, *,
cen_instance_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
protection_level: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
"""
The set of arguments for constructing a Instance resource.
:param pulumi.Input[str] cen_instance_name: The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
:param pulumi.Input[str] description: The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
:param pulumi.Input[str] name: Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
:param pulumi.Input[str] protection_level: Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
:param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
"""
if cen_instance_name is not None:
pulumi.set(__self__, "cen_instance_name", cen_instance_name)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
warnings.warn("""Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""")
if name is not None:
pulumi.set(__self__, "name", name)
if protection_level is not None:
pulumi.set(__self__, "protection_level", protection_level)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter(name="cenInstanceName")
def cen_instance_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
"""
return pulumi.get(self, "cen_instance_name")
@cen_instance_name.setter
def cen_instance_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cen_instance_name", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="protectionLevel")
def protection_level(self) -> Optional[pulumi.Input[str]]:
"""
Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
"""
return pulumi.get(self, "protection_level")
@protection_level.setter
def protection_level(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "protection_level", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "tags", value)
@pulumi.input_type
class _InstanceState:
def __init__(__self__, *,
cen_instance_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
protection_level: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
"""
Input properties used for looking up and filtering Instance resources.
:param pulumi.Input[str] cen_instance_name: The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
:param pulumi.Input[str] description: The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
:param pulumi.Input[str] name: Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
:param pulumi.Input[str] protection_level: Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
:param pulumi.Input[str] status: The Cen Instance current status.
:param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
"""
if cen_instance_name is not None:
pulumi.set(__self__, "cen_instance_name", cen_instance_name)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
warnings.warn("""Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""")
if name is not None:
pulumi.set(__self__, "name", name)
if protection_level is not None:
pulumi.set(__self__, "protection_level", protection_level)
if status is not None:
pulumi.set(__self__, "status", status)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter(name="cenInstanceName")
def cen_instance_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
"""
return pulumi.get(self, "cen_instance_name")
@cen_instance_name.setter
def cen_instance_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cen_instance_name", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="protectionLevel")
def protection_level(self) -> Optional[pulumi.Input[str]]:
"""
Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
"""
return pulumi.get(self, "protection_level")
@protection_level.setter
def protection_level(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "protection_level", value)
@property
@pulumi.getter
def status(self) -> Optional[pulumi.Input[str]]:
"""
The Cen Instance current status.
"""
return pulumi.get(self, "status")
@status.setter
def status(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "status", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "tags", value)
class Instance(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
cen_instance_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
protection_level: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
"""
Provides a CEN instance resource. Cloud Enterprise Network (CEN) is a service that allows you to create a global network for rapidly building a distributed business system with a hybrid cloud computing solution. CEN enables you to build a secure, private, and enterprise-class interconnected network between VPCs in different regions and your local data centers. CEN provides enterprise-class scalability that automatically responds to your dynamic computing requirements.
For information about CEN and how to use it, see [What is Cloud Enterprise Network](https://www.alibabacloud.com/help/doc-detail/59870.htm).
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.Instance("example",
cen_instance_name="tf_test_foo",
description="an example for cen")
```
## Import
CEN instance can be imported using the id, e.g.
```sh
$ pulumi import alicloud:cen/instance:Instance example cen-abc123456
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] cen_instance_name: The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
:param pulumi.Input[str] description: The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
:param pulumi.Input[str] name: Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
:param pulumi.Input[str] protection_level: Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
:param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: Optional[InstanceArgs] = None,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a CEN instance resource. Cloud Enterprise Network (CEN) is a service that allows you to create a global network for rapidly building a distributed business system with a hybrid cloud computing solution. CEN enables you to build a secure, private, and enterprise-class interconnected network between VPCs in different regions and your local data centers. CEN provides enterprise-class scalability that automatically responds to your dynamic computing requirements.
For information about CEN and how to use it, see [What is Cloud Enterprise Network](https://www.alibabacloud.com/help/doc-detail/59870.htm).
## Example Usage
Basic Usage
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.Instance("example",
cen_instance_name="tf_test_foo",
description="an example for cen")
```
## Import
CEN instance can be imported using the id, e.g.
```sh
$ pulumi import alicloud:cen/instance:Instance example cen-abc123456
```
:param str resource_name: The name of the resource.
:param InstanceArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(InstanceArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
cen_instance_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
protection_level: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = InstanceArgs.__new__(InstanceArgs)
__props__.__dict__["cen_instance_name"] = cen_instance_name
__props__.__dict__["description"] = description
if name is not None and not opts.urn:
warnings.warn("""Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""", DeprecationWarning)
pulumi.log.warn("""name is deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.""")
__props__.__dict__["name"] = name
__props__.__dict__["protection_level"] = protection_level
__props__.__dict__["tags"] = tags
__props__.__dict__["status"] = None
super(Instance, __self__).__init__(
'alicloud:cen/instance:Instance',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
cen_instance_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
protection_level: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, Any]]] = None) -> 'Instance':
"""
Get an existing Instance resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] cen_instance_name: The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
:param pulumi.Input[str] description: The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
:param pulumi.Input[str] name: Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
:param pulumi.Input[str] protection_level: Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
:param pulumi.Input[str] status: The Cen Instance current status.
:param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _InstanceState.__new__(_InstanceState)
__props__.__dict__["cen_instance_name"] = cen_instance_name
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
__props__.__dict__["protection_level"] = protection_level
__props__.__dict__["status"] = status
__props__.__dict__["tags"] = tags
return Instance(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="cenInstanceName")
def cen_instance_name(self) -> pulumi.Output[str]:
"""
The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
"""
return pulumi.get(self, "cen_instance_name")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Field `name` has been deprecated from version 1.98.0. Use `cen_instance_name` instead.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="protectionLevel")
def protection_level(self) -> pulumi.Output[str]:
"""
Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
"""
return pulumi.get(self, "protection_level")
@property
@pulumi.getter
def status(self) -> pulumi.Output[str]:
"""
The Cen Instance current status.
"""
return pulumi.get(self, "status")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
"""
A mapping of tags to assign to the resource.
"""
return pulumi.get(self, "tags")
| 50.441527
| 480
| 0.660326
| 2,669
| 21,135
| 5.071188
| 0.088048
| 0.060953
| 0.062061
| 0.065017
| 0.877577
| 0.864647
| 0.851053
| 0.844108
| 0.84034
| 0.832582
| 0
| 0.008163
| 0.240643
| 21,135
| 418
| 481
| 50.562201
| 0.835192
| 0.430755
| 0
| 0.758772
| 1
| 0.026316
| 0.125532
| 0.002719
| 0
| 0
| 0
| 0
| 0
| 1
| 0.153509
| false
| 0.004386
| 0.02193
| 0
| 0.267544
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
26f5a21128595e770df203a5b22f9f65b04399fe
| 380
|
py
|
Python
|
mod/dontest.py
|
free-soellingeraj/prod-mod-face-profile
|
182e7ea0f962b746c65b37a14d7195ef925678f0
|
[
"Apache-2.0"
] | 1
|
2021-03-10T16:15:48.000Z
|
2021-03-10T16:15:48.000Z
|
mod/dontest.py
|
free-soellingeraj/prod-mod-face-profile
|
182e7ea0f962b746c65b37a14d7195ef925678f0
|
[
"Apache-2.0"
] | 2
|
2021-09-28T05:48:07.000Z
|
2022-02-26T10:41:44.000Z
|
mod/dontest.py
|
free-soellingeraj/prod-mod-face-profile
|
182e7ea0f962b746c65b37a14d7195ef925678f0
|
[
"Apache-2.0"
] | null | null | null |
# Comes from 00_core.ipynb, cell
from prcvd.img.core import (
TrainedSegmentationModel, MaskedImg
)
from prcvd.img.face import (
FacialProfile
)
from prcvd.core import json_to_dict
# Comes from 00_core.ipynb, cell
from prcvd.img.core import (
TrainedSegmentationModel, MaskedImg
)
from prcvd.img.face import (
FacialProfile
)
from prcvd.core import json_to_dict
| 20
| 39
| 0.768421
| 52
| 380
| 5.5
| 0.307692
| 0.188811
| 0.167832
| 0.104895
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0.012579
| 0.163158
| 380
| 19
| 40
| 20
| 0.886792
| 0.160526
| 0
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 9
|
f837ff8edd6d68c3adffee1eda2bc18b5b6db29e
| 29,149
|
py
|
Python
|
u8g2/luRS10_te.py
|
tve/mpy-lib
|
9f102459c61a5be424291a277e421bd1fc16843a
|
[
"MIT"
] | 6
|
2020-02-27T11:17:54.000Z
|
2020-12-04T10:14:26.000Z
|
u8g2/luRS10_te.py
|
tve/mpy-lib
|
9f102459c61a5be424291a277e421bd1fc16843a
|
[
"MIT"
] | 4
|
2020-07-29T14:07:04.000Z
|
2021-05-19T05:10:33.000Z
|
u8g2/luRS10_te.py
|
tve/mpy-lib
|
9f102459c61a5be424291a277e421bd1fc16843a
|
[
"MIT"
] | 3
|
2020-05-16T08:15:16.000Z
|
2021-09-30T10:39:37.000Z
|
data=b'\xbe\x00\x03\x02\x04\x05\x04\x05\x06\x16\x15\xf8\xfa\x0a\xfd\x0a\xfd\x01\xbc\x03\xb4\x0a\xe9\x20\x06\x00\x30\x92\x00\x21\x08\xa1\x14\x92\x38\x44\x01\x22\x08\x23\x12\x97\x48\x94\x00\x23\x17\xa9\x10\xa6\x8c\x42\x25\x8d\xb2\x61\xd0\xa2\x30\xca\x86\x41\x8b\xd2\x44\x8c\x42\x00\x24\x14\xd5\xd4\xa5\xca\x06\x25\x4a\xa2\x24\x13\xb5\x24\x4a\x94\x64\x98\xb4\x08\x25\x19\xab\x10\xa6\x59\xb7\x4c\xc9\x22\x29\x4b\xc4\x45\x47\x94\x51\xc9\x22\x29\x4b\xb4\x6c\x5d\x00\x26\x14\xa9\x10\xaa\x5b\xb3\x30\x0b\x87\x70\x08\x33\x49\x8c\xd4\x41\xd4\x86\x44\x27\x06\x31\xf2\x8e\x18\x28\x0c\xd3\xb2\x95\x4a\xa2\x24\xea\x5b\x94\x05\x29\x0c\xd3\xb2\x95\x88\xb2\x52\x5f\x4a\x11\x00\x2a\x0b\x45\xd2\x9e\x8a\x06\xa5\x94\x24\x00\x2b\x11\x89\x10\xa6\xcc\x91\x1c\xc9\x91\x70\x38\xe6\x48\x8e\x84\x00\x2c\x09\x52\xb2\x91\x18\x92\x44\x01\x2d\x06\x13\x92\x96\x18\x2e\x06\x12\x12\x92\x10\x2f\x10\xd7\xb0\x9d\x4e\xe3\x34\x4e\xd5\x54\x8d\xd3\x38\x8d\x01\x30\x0d\xa7\x12\xa6\xda\x2a\xa9\xaf\x49\x96\x4d\x00\x31\x08\xa3\x14\xa6\x98\xfa\x07\x32\x0f\xa6\x12\xa6\x19\x92\x4c\x2d\x6a\x5a\x18\x8a\xc3\x00\x33\x0f\xa5\x14\xa6\x18\x92\x2c\xac\xac\x61\x28\x0d\x0b\x00\x34\x11\xa7\x12\xa6\x54\xc5\x24\x8b\x6a\x89\x96\x0c\x43\x1a\x57\x00\x35\x0d\xa5\x14\xa6\x38\x16\x87\x50\xac\x0d\x0b\x00\x36\x12\xa7\x12\xa6\x1a\xa2\x2c\x51\xe3\x64\x48\xb4\x55\x4d\xb2\x6c\x02\x37\x0e\xa6\x14\xa6\x38\x8a\xa1\x18\x8a\x69\x98\x86\x00\x38\x11\xa7\x12\xa6\x19\x94\x54\xdd\xa4\x2d\x52\x52\x75\x53\x06\x05\x39\x12\xa7\x12\xa6\x19\x22\x2d\x49\xd5\x4d\x19\x92\xb8\x1a\x0d\x11\x00\x3a\x07\x71\x14\x92\x48\x03\x3b\x08\xa1\xb4\x91\x48\x87\x00\x3c\x0e\x88\x10\xa6\x07\x52\x51\x9b\x75\x44\x47\x74\x24\x3d\x0a\x48\x50\xa6\x38\xe8\xa4\x61\x10\x3e\x0e\x88\x10\xa6\xc8\x11\x1d\xd1\x11\x79\x13\xd5\x1c\x3f\x0e\xa5\x10\x9a\x18\x92\x2c\xcc\x24\x5b\x4e\xc8\x00\x40\x18\xab\x14\xb2\x1c\x44\x93\x34\x25\x51\x49\xaa\x49\x35\x29\x91\x92\x48\xd9\x74\x6c\x10\x01\x41\x16\xa9\x10\xaa\xcc\x81\x24\x4e\xe2\x24\xcd\xc2\x2c\x1b\x86\x28\x8d\xd2\x24\x07\x02\x42\x10\xa6\x12\xa2\x18\x94\xd0\x36\x0c\x49\x96\x84\xc6\x61\x01\x43\x14\xa8\x12\xaa\x1b\x14\x31\x89\x73\x20\x07\x72\x20\x47\x72\x40\xcc\x86\x04\x44\x0e\xa8\x14\xaa\x38\x85\x4a\x3a\xfb\x9a\x0c\x13\x00\x45\x0d\xa6\x12\xa2\x38\xa4\xd5\x41\x49\x5b\x87\x01\x46\x0b\xa5\x14\xa2\x38\x16\x87\x24\xec\x08\x47\x12\xa8\x12\xaa\x1b\x14\x31\x89\x73\x20\x07\x62\x79\x4d\xc4\x68\x18\x48\x0b\xa8\x12\xaa\x88\x9d\x87\x43\xec\x39\x49\x07\xa1\x14\x92\x78\x08\x4a\x0a\xd4\xb0\x91\xeb\x7f\x1b\x12\x00\x4b\x13\xa8\x12\xa6\x08\x95\x4c\x8a\xb4\x44\x4c\xd2\x35\x0a\xb3\x62\x94\x0a\x4c\x09\xa6\x12\x9e\x48\xfb\xeb\x30\x4d\x19\xa9\x14\xb2\x50\x87\x74\xd0\x86\x24\x4b\x94\x2c\x91\x92\x48\x4a\x22\x29\x89\xb4\x4c\x07\x02\x4e\x12\xa8\x12\xaa\x88\x57\x25\x54\x34\x29\xd3\x22\x4d\x11\x13\x75\x0e\x4f\x15\xa9\x12\xae\x1a\x34\x53\x9a\xe4\x80\x0e\xe8\x80\x0e\x24\x69\xa4\x69\x83\x04\x50\x0d\xa6\x12\xa2\x18\x94\xd0\x2d\x19\xa2\xb4\x15\x51\x1d\xda\xb2\xad\x1a\x44\x4d\x4b\xa3\x1c\x48\x72\x20\xc9\x81\x24\x07\xa2\x54\xd2\xc4\x41\x87\x76\x64\x47\x12\x00\x52\x10\xa6\x14\xa6\x18\x94\xd0\x2d\x19\xa2\x48\xc9\x92\x50\x0c\x53\x0f\xa6\x12\xa2\x19\x92\x2c\x49\xcd\x72\xaa\x0d\x43\x02\x54\x14\xa9\x10\xa6\x78\xcc\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\x09\x01\x55\x0b\xa7\x12\xaa\x48\xfd\x75\x53\x06\x05\x56\x15\xa9\x10\xa6\xc8\x81\x24\x8d\xd2\x2c\xcc\x8a\x59\x9a\xc4\x49\xbc\x03\x21\x00\x57\x1c\xac\x10\xb2\x08\xc5\x24\xb3\x64\x5a\x94\x69\x51\xb7\x24\x4a\xc2\x24\x4a\xc2\x24\x4a\x42\x31\x0e\x33\x00\x58\x12\xa8\x10\xa6\x10\x15\xad\x94\xae\xb2\x3a\x84\x51\x16\x26\xa2\x00\x59\x14\xa8\x10\xa6\x10\x95\x30\x8b\xc2\x28\x95\x73\x20\x07\x72\x20\x07\x42\x00\x5a\x0e\xa7\x12\xa2\x38\xa4\x71\x5a\x4e\xcb\xe9\x30\x04\x5b\x0a\xd3\xb2\x95\x18\xa2\xfe\xd3\x00\x5c\x12\xd7\xb0\x9d\xc8\x81\x38\x07\xe2\x58\x8e\xe5\x3a\x10\xe7\x40\x00\x5d\x0a\xd3\xb0\x95\x98\xfa\x4f\x43\x00\x5e\x0f\x88\x50\xa6\x8c\xad\x51\x18\x65\x61\x14\x26\x71\x00\x5f\x06\x16\xd2\x9d\x38\x60\x06\x13\x34\xa7\x18\x61\x0f\x77\x12\xa2\x19\xa4\x2c\x8e\x06\x25\x4c\xc2\x68\x18\x62\x0f\xa7\x12\xa6\x88\x5b\x86\x44\x5b\xad\x5b\x92\x4c\x00\x63\x0b\x75\x12\x9e\x19\xb6\xb0\x28\x0e\x01\x64\x0d\xa7\x12\xa6\x6e\x5a\x6a\xab\x75\x53\x86\x24\x65\x0d\x76\x12\xa2\x19\xa2\x4c\x1c\x06\x39\x1e\x02\x66\x0c\xb5\x12\x96\x5a\xc2\xda\x10\x85\xbd\x01\x67\x11\xa7\xb2\xa5\x5a\x6a\xab\x75\x53\x86\x24\x4e\xc2\x64\x50\x00\x68\x0b\xa6\x12\xa6\x48\x5b\x16\x4d\xf4\x18\x69\x08\xa1\x14\x92\x88\x86\x21\x6a\x0b\xd4\xb0\x91\xcb\xc1\xac\xdf\x86\x04\x6b\x0f\xa6\x14\xa2\x48\xdb\x92\xa8\x92\x89\x49\x16\xd5\x04\x6c\x07\xa1\x14\x92\x78\x08\x6d\x10\x7b\x12\xb6\x48\xa6\x45\x33\x86\x62\x28\x86\x62\x28\x16\x6e\x0a\x76\x12\xa6\x48\x16\x4d\xf4\x18\x6f\x0c\x77\x12\xa6\xda\x2a\xa9\x35\xc9\xb2\x09\x70\x0f\xa7\xb2\xa5\x48\x86\x44\x5b\xad\x5b\x92\x4c\x71\x19\x71\x0d\xa7\xb2\xa5\x5a\x6a\xab\x75\x53\x86\x24\x6e\x72\x0a\x74\x12\x9a\x48\x86\x28\xeb\x06\x73\x0b\x75\x12\x9e\x59\x42\x71\xd5\x06\x05\x74\x0b\x94\x12\x96\xc9\xa2\x21\xc9\x3a\x0a\x75\x0a\x76\x12\xa6\x08\x7d\x53\x96\x00\x76\x10\x77\x10\x9e\x48\x93\x2c\xca\x22\x25\x4c\xc2\x24\xcd\x00\x77\x14\x7b\x10\xae\x08\x2b\x51\x12\xb5\x44\x2d\x51\x26\x25\xa1\x26\x6a\x12\x00\x78\x0e\x77\x12\xa6\xd0\x14\x5b\x92\x56\xb2\x48\xd1\x04\x79\x12\xa7\xb0\x9d\x48\x93\x2c\xca\x2a\x5a\x12\x26\x69\x9c\xaa\x21\x00\x7a\x0b\x76\x12\xa2\x38\x16\x35\x31\x1c\x06\x7b\x0b\xd3\xb0\x95\x4a\xa2\x2e\x59\xd4\x2d\x7c\x07\xd1\xb2\x91\xf8\x10\x7d\x0c\xd3\xb2\x95\xc8\xa2\x6e\x49\xd4\x25\x02\x7e\x09\x38\x50\xa6\x11\x25\xa3\x02\xa0\x06\x00\x30\x92\x00\xa1\x08\xa1\xb4\x91\x88\x86\x21\xa2\x0f\xa6\x12\xa6\x0b\x87\xa4\x22\xf5\x5b\x12\x0e\x59\x04\xa3\x0c\xa5\x14\xa6\x5a\xc2\xda\x16\xd6\xc2\x41\xa4\x10\x88\x30\xa6\x88\x93\x61\x32\x85\x51\x18\x99\x86\x25\x0e\xa5\x10\xa7\x12\xa6\xd0\x94\xac\x92\x86\x83\x18\x0e\x62\x5c\x03\xa6\x08\xd1\xb2\x91\x18\xb4\x41\xa7\x10\xd6\xb4\xa5\x19\xd6\x54\x9d\xb2\x71\x8b\x56\xe3\xb0\x00\xa8\x07\x14\x34\xa7\x88\x02\xa9\x17\xab\x10\xb2\x1b\xd4\x5a\x34\x25\x91\x2a\xc5\x52\x2c\xa9\x49\x34\x65\x69\x3a\x68\x00\xaa\x0c\x55\xb2\x9a\x18\x92\x28\x5a\xa2\x64\x10\xab\x0f\x76\x12\x9e\x6a\x89\x12\x25\xca\x12\x2d\xc9\xa2\x00\xac\x0c\x48\x50\xa6\x38\xe8\x40\x0e\xe4\x40\x00\xad\x06\x13\x92\x96\x18\xae\x0f\x67\x92\xa6\x19\x94\x61\x50\x2a\xa6\x21\x39\x28\x00\xaf\x07\x14\x34\xa7\x18\x02\xb0\x07\x23\x14\x93\x58\x04\xb1\x0f\x89\x10\xa6\xcc\x91\x1c\x09\x87\x63\x8e\xe4\xf0\x70\xb2\x0a\x64\x80\x96\x18\xb3\xc4\x34\x04\xb3\x0b\x64\x80\x96\x18\x13\x4d\x1b\x12\x00\xb4\x06\x13\x36\xa7\x18\xb5\x0b\xa6\xb2\xa5\x08\x7d\x1b\x16\xb5\x0a\xb6\x18\xd6\xb2\xa5\x19\x2e\x83\x32\x28\xc9\x92\x25\x59\x92\x25\x59\x92\x25\x59\x92\x25\x59\x12\xb7\x06\x12\x96\xa6\x10\xb8\x07\x32\xb8\xa5\x50\x06\xb9\x07\x62\x80\x96\x50\x7a\xba\x0a\x55\xb0\x9a\x59\x32\x5b\xb2\x00\xbb\x10\x76\x12\x9e\x88\xb2\x24\x53\xb2\x28\x51\xa2\x24\x2a\x01\xbc\x18\xaa\x16\xae\x50\xa5\x34\x0b\x6b\x69\xa4\x48\x89\x32\x26\x4a\x16\x0d\x4a\x9c\xc8\x09\x00\xbd\x15\xa9\x16\xae\x50\x95\x34\x0a\xb3\x62\x34\x44\x89\x56\x8c\x32\x29\x93\xb4\x21\xbe\x18\xaa\x16\xae\x18\xc5\x2c\xd3\x52\x25\x07\x16\x65\x50\xc6\x44\xc9\xa2\x41\x89\x13\x39\x01\xbf\x0d\xa5\xb0\x99\xcb\x09\x99\x64\x0b\xb3\x64\x08\xc0\x18\xc9\x10\xaa\xdb\x49\x39\x90\xc4\x49\x9c\xa4\x59\x98\x65\xc3\x10\xa5\x51\x9a\xe4\x40\x00\xc1\x18\xc9\x10\xaa\xdb\x49\x39\x90\xc4\x49\x9c\xa4\x59\x98\x65\xc3\x10\xa5\x51\x9a\xe4\x40\x00\xc2\x18\xc9\x10\xaa\x1a\x74\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\xc3\x18\xc9\x10\xaa\x1a\x74\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\xc4\x18\xc9\x10\xaa\x8b\x72\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\xc5\x1a\xd9\x10\xaa\x94\xa3\x58\x07\x72\x20\x89\x93\x38\x49\xb3\x30\xcb\x86\x21\x4a\xa3\x34\xc9\x81\x00\xc6\x19\xac\x10\xb6\x1d\x86\x54\x87\x92\x1c\x4a\x72\x24\x1a\xc4\x28\x07\x06\x59\x8b\xc3\x54\x1c\x06\xc7\x17\xd8\xb2\xa9\x1b\x14\x31\x89\x73\x20\x07\x72\x20\x47\x72\x40\xcc\x86\x34\x07\x62\x0d\xc8\x0f\xc6\x12\xa2\xd9\x91\x61\x48\xab\x83\x92\xb6\x0e\x03\xc9\x0f\xc6\x12\xa2\xd9\x91\x61\x48\xab\x83\x92\xb6\x0e\x03\xca\x0f\xc6\x12\xa2\x18\x74\xe0\x90\x56\x07\x25\x6d\x1d\x06\xcb\x0f\xc6\x12\xa2\x89\x72\xe0\x90\x56\x07\x25\x6d\x1d\x06\xcc\x09\xc3\x16\x92\x18\xa3\xfe\x05\xcd\x09\xc3\x16\x92\x18\xa3\xfe\x05\xce\x0b\xc5\x18\x92\x18\x74\x20\xec\x9f\x00\xcf\x0a\xc4\x18\x92\x88\xe2\xac\x7f\x01\xd0\x15\xaa\x10\xaa\x1a\xc6\x50\x4b\xa5\x78\x18\xa3\x38\x8a\xa3\x38\x4a\xb3\x61\x02\xd1\x14\xc8\x12\xaa\x1a\x74\x28\x5e\x95\x50\xd1\xa4\x4c\x8b\x34\x45\x4c\xd4\x39\xd2\x17\xc9\x12\xae\xdb\x09\x83\x66\x4a\x93\x1c\xd0\x01\x1d\xd0\x81\x24\x8d\x34\x6d\x90\x00\xd3\x17\xc9\x12\xae\xdb\x09\x83\x66\x4a\x93\x1c\xd0\x01\x1d\xd0\x81\x24\x8d\x34\x6d\x90\x00\xd4\x18\xc9\x12\xae\x1a\x74\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\xd5\x18\xc9\x12\xae\x1a\x74\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\xd6\x18\xc9\x12\xae\x8b\x72\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\xd7\x10\x88\x10\xa6\x88\x93\x30\x8b\x52\x59\x8d\xb2\x30\x89\x03\xd8\x17\xa9\x12\xae\x1a\x86\x44\x93\x42\x25\x8c\x34\xc9\x26\x85\x89\x18\x69\xca\x30\x44\x00\xd9\x0d\xc7\x12\xaa\xda\xa1\xd4\x5f\x37\x65\x50\x00\xda\x0d\xc7\x12\xaa\xda\xa1\xd4\x5f\x37\x65\x50\x00\xdb\x0e\xc7\x12\xaa\x19\x74\x24\xf5\xd7\x4d\x19\x14\x00\xdc\x0e\xc7\x12\xaa\x89\x72\x28\xf5\xd7\x4d\x19\x14\x00\xdd\x15\xc8\x10\xa6\xdb\x31\x51\x09\xb3\x28\x8c\x52\x39\x07\x72\x20\x07\x72\x20\x04\xde\x0f\xa6\x12\xa2\x48\xd3\x41\x09\xdd\x92\x21\x4a\x53\x00\xdf\x13\xb6\x14\xa2\x99\xb2\x24\x4b\xa2\x4a\x96\x64\x51\x6d\x54\x22\x65\x01\xe0\x11\x97\x12\xa2\xd9\xc1\x41\xca\xe2\x68\x50\xc2\x24\x8c\x86\x01\xe1\x11\x97\x12\xa2\xda\xb1\x41\xca\xe2\x68\x50\xc2\x24\x8c\x86\x01\xe2\x11\x97\x12\xa2\x19\x74\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\xe3\x11\x97\x12\xa2\x19\x74\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\xe4\x11\x97\x12\xa2\x89\x72\x6c\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\xe5\x12\xa7\x12\xa2\x12\xa3\x1c\x1b\xa4\x2c\x8e\x06\x25\x4c\xc2\x68\x18\xe6\x10\x79\x12\xb2\x39\x45\x52\x98\x25\xc3\x2d\xcc\xc4\x65\x08\xe7\x0e\xa5\xb2\x9d\x19\xb6\xb0\x28\x0e\x59\x98\x29\x00\xe8\x0e\x96\x12\xa2\xd9\xa1\x21\xca\xc4\x61\x90\xe3\x21\xe9\x0e\x96\x12\xa2\xda\x91\x21\xca\xc4\x61\x90\xe3\x21\xea\x0f\x96\x12\xa2\x19\x74\x60\x88\x32\x71\x18\xe4\x78\x08\xeb\x0f\x96\x12\xa2\x89\x72\x64\x88\x32\x71\x18\xe4\x78\x08\xec\x09\x93\x16\x92\x18\xa3\xbe\x00\xed\x09\x93\x16\x92\x18\xa3\xbe\x00\xee\x0b\x95\x18\x92\x18\x74\x20\xec\x13\x00\xef\x0a\x94\x18\x92\x88\xe2\xac\x2f\x00\xf0\x12\xa7\x12\xa2\x18\xb4\x21\xca\xb4\x21\xca\x56\x6b\x92\x65\x13\x00\xf1\x0d\x96\x12\xa6\x18\x74\x20\x59\x34\xd1\x63\x00\xf2\x0e\x97\x12\xa6\xda\xc1\xad\x92\x5a\x93\x2c\x9b\x00\xf3\x0e\x97\x12\xa6\xda\xc1\xad\x92\x5a\x93\x2c\x9b\x00\xf4\x0f\x97\x12\xa6\x19\x74\x6c\xab\xa4\xd6\x24\xcb\x26\x00\xf5\x0f\x97\x12\xa6\x19\x74\x6c\xab\xa4\xd6\x24\xcb\x26\x00\xf6\x0f\x97\x12\xa6\x89\x72\x70\xab\xa4\xd6\x24\xcb\x26\x00\xf7\x0c\x77\x12\xa6\xcb\x69\xc3\x90\xd3\x32\x00\xf8\x11\x77\x12\xa6\x1a\x94\x2c\xc9\x12\x29\x52\xb2\x24\x4b\x06\x09\xf9\x0b\x96\x12\xa6\xd9\x91\xd0\x37\x65\x09\xfa\x0b\x96\x12\xa6\xda\x81\xd0\x37\x65\x09\xfb\x0b\x96\x12\xa6\x19\xe4\xd0\x37\x65\x09\xfc\x0c\x96\x12\xa6\x89\x72\x20\xf4\x4d\x59\x02\xfd\x13\xc7\xb0\x9d\xda\xa1\x34\xc9\xa2\xac\xa2\x25\x61\x92\xc6\xa9\x1a\x02\xfe\x10\xd7\xb2\xa5\x88\x5b\x86\x44\x5b\xad\x5b\x92\x4c\x71\x19\xff\x14\xc7\xb0\x9d\x89\x72\x28\x4d\xb2\x28\xab\x68\x49\x98\xa4\x71\xaa\x86\x00\x00\x00\x00\x08\x01\x64\x06\xd5\xff\xff\x01\x00\x19\xc9\x10\xaa\x1b\x72\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x01\x01\x12\x97\x12\xa2\x1a\x72\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\x01\x02\x19\xc9\x10\xaa\x1a\x74\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x01\x03\x12\x97\x12\xa2\x19\x74\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\x01\x04\x19\xd9\xb0\xa9\xcc\x81\x24\x4e\xe2\x24\xcd\xc2\x2c\x1b\x86\x28\x8d\xd2\x24\x07\x72\x16\x0d\x01\x05\x13\xa7\xb2\xa1\x19\xa4\x2c\x8e\x06\x25\x4c\xc2\x68\xd8\x69\x12\x00\x01\x06\x17\xc8\x12\xaa\xdb\xe1\x41\x11\x93\x38\x07\x72\x20\x07\x72\x24\x07\xc4\x6c\x48\x00\x01\x07\x0d\x95\x12\x9e\xd9\x81\x5b\x58\x14\x87\x00\x01\x08\x18\xc8\x12\xaa\x1a\x74\x74\x50\xc4\x24\xce\x81\x1c\xc8\x81\x1c\xc9\x01\x31\x1b\x12\x00\x01\x09\x0d\x95\x12\x9e\x18\xe4\x61\x0b\x8b\xe2\x10\x01\x0a\x17\xc8\x12\xaa\xcc\x09\x83\x22\x26\x71\x0e\xe4\x40\x0e\xe4\x48\x0e\x88\xd9\x90\x00\x01\x0b\x0d\x95\x12\x9e\xca\x91\x61\x0b\x8b\xe2\x10\x01\x0c\x18\xc8\x12\xaa\x1a\x74\x74\x50\xc4\x24\xce\x81\x1c\xc8\x81\x1c\xc9\x01\x31\x1b\x12\x00\x01\x0d\x0d\x95\x12\x9e\x18\xe4\x61\x0b\x8b\xe2\x10\x01\x0e\x11\xc8\x14\xaa\x19\x74\x6c\x98\x42\x25\x9d\x7d\x4d\x86\x09\x01\x0f\x17\xab\x12\xb2\x8e\xe4\x2c\x8e\xa4\x25\xcd\xc4\x34\x4c\xc3\x34\xd4\xd4\x21\x09\x01\x01\x10\x16\xaa\x10\xaa\x1a\xc6\x50\x4b\xa5\x78\x18\xa3\x38\x8a\xa3\x38\x4a\xb3\x61\x02\x01\x11\x10\xa7\x12\xa6\xce\x86\x38\x5a\x6a\xab\x75\x53\x86\x24\x01\x12\x10\xc6\x12\xa2\x19\x72\xe0\x90\x56\x07\x25\x6d\x1d\x06\x01\x13\x10\x96\x12\xa2\x19\x72\x64\x88\x32\x71\x18\xe4\x78\x08\x01\x14\x10\xc6\x12\xa2\x18\x74\xe0\x90\x56\x07\x25\x6d\x1d\x06\x01\x15\x10\x96\x12\xa2\x19\x74\x60\x88\x32\x71\x18\xe4\x78\x08\x01\x16\x10\xc6\x12\xa2\xca\xa1\x61\x48\xab\x83\x92\xb6\x0e\x03\x01\x17\x0f\x96\x12\xa2\xcb\xa1\x21\xca\xc4\x61\x90\xe3\x21\x01\x18\x10\xd6\xb2\xa1\x38\xa4\xd5\x41\x49\x5b\x87\x9d\x20\x01\x01\x19\x10\xa6\xb2\xa1\x19\xa2\x4c\x1c\x06\x39\x1e\x72\x82\x04\x01\x1a\x10\xc6\x12\xa2\x18\x74\xe0\x90\x56\x07\x25\x6d\x1d\x06\x01\x1b\x10\x96\x12\xa2\x19\x74\x60\x88\x32\x71\x18\xe4\x78\x08\x01\x1c\x15\xc8\x12\xaa\x1a\x74\x74\x50\xc4\x24\xce\x81\x1c\x88\xe5\x35\x11\xa3\x61\x01\x1d\x14\xc7\xb2\xa5\x19\x74\x6c\xa9\xad\xd6\x4d\x19\x92\x38\x09\x93\x41\x01\x01\x1e\x15\xc8\x12\xaa\x1a\x74\x74\x50\xc4\x24\xce\x81\x1c\x88\xe5\x35\x11\xa3\x61\x01\x1f\x14\xc7\xb2\xa5\x19\x74\x6c\xa9\xad\xd6\x4d\x19\x92\x38\x09\x93\x41\x01\x01\x20\x15\xc8\x12\xaa\xcc\x09\x83\x22\x26\x71\x0e\xe4\x40\x2c\xaf\x89\x18\x0d\x03\x01\x21\x13\xc7\xb2\xa5\xcb\xd1\xa5\xb6\x5a\x37\x65\x48\xe2\x24\x4c\x06\x05\x01\x22\x1a\x08\x53\xa9\x1b\x14\x31\x89\x73\x20\x07\x62\x79\x4d\xc4\x68\xd8\x41\x59\x07\x72\x20\x0e\x01\x01\x23\x15\xe7\xb2\xa5\x53\x63\x1d\x5c\x6a\xab\x75\x53\x86\x24\x4e\xc2\x64\x50\x00\x01\x24\x0f\xc8\x12\xaa\x1a\x74\x28\x76\x1e\x0e\xb1\xe7\x00\x01\x25\x14\xc7\x10\xa6\x18\x74\x2c\x6e\x99\xb4\x24\x4c\xc2\x24\x4c\xc2\x24\x0c\x01\x26\x0f\xa8\x12\xaa\x88\xe5\xe1\x10\x0f\x87\xd8\x73\x00\x01\x27\x0e\xa6\x12\xa6\x48\x87\x28\x4d\x16\x4d\xf4\x18\x01\x28\x0c\xc5\x10\x92\x18\x74\x20\xec\x9f\x00\x01\x29\x0c\x95\x10\x92\x18\x74\x20\xec\x13\x00\x01\x2a\x0b\xc4\x12\x92\x18\xd2\xac\x7f\x02\x01\x2b\x0b\x94\x12\x92\x18\xd2\xac\x4f\x00\x01\x2c\x0c\xc5\x10\x92\x18\x74\x20\xec\x9f\x00\x01\x2d\x0c\x95\x10\x92\x18\x74\x20\xec\x13\x00\x01\x2e\x0a\xd2\xb4\x91\x48\xfa\x57\x01\x01\x2f\x0a\xd2\xb4\x91\x48\x93\xbe\x0a\x01\x30\x0a\xc1\x14\x92\x48\x86\x43\x00\x01\x31\x08\x71\x14\x92\x38\x04\x01\x32\x0c\xd6\xb4\xa1\x08\xfd\xc7\xb4\xb4\x00\x01\x33\x0e\xd6\xb4\xa1\x08\x73\x34\xf4\x63\x5a\x5a\x00\x01\x34\x0d\xf6\xb0\x91\x19\x74\x28\xed\x7f\xda\x00\x01\x35\x0d\xc6\xb0\x91\x19\x74\x28\xed\x4f\x1b\x00\x01\x36\x1b\x08\x53\xa5\x08\x95\x4c\x8a\xb4\x44\x4c\xd2\x35\x0a\xb3\x62\x94\xea\xa0\xac\x03\x39\x10\x87\x00\x01\x37\x15\x06\x55\xa1\x48\xdb\x92\xa8\x92\x89\x49\x16\xd5\x74\x44\x54\x8b\x19\x00\x01\x38\x0f\x76\x14\xa2\xc8\x92\xa8\x92\x89\x49\x16\xd5\x04\x01\x39\x0c\xc6\x12\x9e\xd8\xa1\xb4\xbf\x0e\x03\x01\x3a\x0a\xc3\x12\x92\x18\xa3\xfe\x05\x01\x3b\x0f\x06\x53\x9d\x48\xfb\xeb\xb0\x23\xa2\x5a\xcc\x00\x01\x3c\x0d\x02\x55\x91\x48\xfa\xb7\x21\x49\x14\x00\x01\x3d\x15\xa9\x12\xaa\x88\x77\x40\xde\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\x19\x36\x00\x01\x3e\x0c\xa5\x14\x9e\x88\x36\x69\xec\x23\x00\x01\x3f\x16\xab\x12\xc2\xc8\xb1\x1c\xcb\xb1\x1c\xcb\xb1\x1c\xd9\xb1\x1c\xcb\xb1\x61\x05\x01\x40\x0b\xa7\x14\xb6\x88\x7b\x9c\x9b\x01\x01\x41\x14\xa8\x10\x9e\xca\x81\x1c\xc8\x81\x24\x15\xd7\x24\x07\x72\x20\x07\x0e\x01\x42\x0c\xa5\x10\x92\x0a\x5b\x22\x65\xec\x04\x01\x43\x15\xc8\x12\xaa\xda\xc1\x78\x55\x42\x45\x93\x32\x2d\xd2\x14\x31\x51\xe7\x00\x01\x44\x0d\x96\x12\xa6\xd9\x91\x64\xd1\x44\x8f\x01\x01\x45\x1a\x08\x53\xa9\x88\x57\x25\x54\x34\x29\xd3\x22\x4d\x11\x13\x75\xce\x41\x59\x07\x72\x20\x0e\x01\x01\x46\x10\xd6\x52\xa5\x48\x16\x4d\xf4\x98\x23\xa2\x5a\xcc\x00\x01\x47\x15\xc8\x12\xaa\x19\x74\x2c\x5e\x95\x50\xd1\xa4\x4c\x8b\x34\x45\x4c\xd4\x39\x01\x48\x0e\x96\x12\xa6\x18\x74\x20\x59\x34\xd1\x63\x00\x01\x49\x15\xa9\x12\xb2\xd0\x91\x1c\xd0\xb1\x64\xd4\x8a\x59\x98\x85\x59\x98\x85\x01\x01\x4a\x18\xd8\xb2\xa9\x88\x57\x25\x54\x34\x29\xd3\x22\x4d\x11\x13\x75\xce\x81\x1c\x08\x17\x00\x01\x4b\x0e\xa6\xb2\xa5\x48\x16\x4d\xf4\x98\x96\x16\x00\x01\x4c\x19\xc9\x12\xae\x1b\x72\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x01\x4d\x10\x97\x12\xa6\x1a\x72\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x01\x4e\x19\xc9\x12\xae\x1a\x74\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x01\x4f\x10\x97\x12\xa6\x19\x74\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x01\x50\x19\xc9\x12\xae\x1b\x72\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x01\x51\x10\x97\x12\xa6\x1a\x72\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x01\x52\x17\xad\x12\xba\x1a\x0e\x8a\x26\xa7\xe5\x34\x1e\x94\x38\x8d\xab\xb1\xa6\x03\x0f\x02\x01\x53\x15\x7c\x10\xb6\x1a\x92\x21\xca\x36\x35\x54\x87\x21\x8d\xb3\x79\x48\x06\x01\x01\x54\x13\xc6\x14\xa6\xd9\x91\x41\x09\xdd\x92\x21\x8a\x94\x2c\x09\xc5\x00\x01\x55\x0c\x94\x12\x9a\x58\x93\x21\xca\xba\x01\x01\x56\x16\x06\x55\xa5\x18\x94\xd0\x2d\x19\xa2\x48\xc9\x92\x50\xcc\x11\x51\x2d\x66\x00\x01\x57\x0f\xd4\x52\x99\x48\x86\x28\xeb\x0e\x48\x5a\x29\x03\x01\x58\x13\xc6\x14\xa6\x18\x74\x60\x50\x42\xb7\x64\x88\x22\x25\x4b\x42\x31\x01\x59\x0c\x95\x10\x9a\x18\xe4\xc4\x16\x76\x03\x01\x5a\x12\xc6\x12\xa2\xd9\xa1\x21\xc9\x92\xd4\x2c\xa7\xda\x30\x24\x00\x01\x5b\x0e\x95\x12\x9e\xd9\x81\x25\x14\x57\x6d\x50\x00\x01\x5c\x13\xc6\x12\xa2\x18\x74\x64\x48\xb2\x24\x35\xcb\xa9\x36\x0c\x09\x00\x01\x5d\x0e\x95\x12\x9e\x18\xe4\x25\x14\x57\x6d\x50\x00\x01\x5e\x13\xd6\xb2\xa1\x19\x92\x2c\x49\xcd\x72\xaa\x0d\x43\xa6\x86\x12\x00\x01\x5f\x0f\xa5\xb2\x9d\x59\x42\x71\xd5\x06\x49\xcc\x24\x00\x01\x60\x13\xc6\x12\xa2\x19\x74\x60\x48\xb2\x24\x35\xcb\xa9\x36\x0c\x09\x00\x01\x61\x0e\x95\x12\x9e\x18\xe4\x25\x14\x57\x6d\x50\x00\x01\x62\x19\xd9\xb0\xa5\x78\xcc\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x11\x1d\xc9\x01\x0d\x01\x63\x0f\xc4\xb2\x95\xc9\xa2\x21\xc9\x3a\x2a\x5a\xa4\x00\x01\x64\x18\xc9\x10\xa6\x1a\x74\x70\x38\xe6\x48\x8e\xe4\x48\x8e\xe4\x48\x8e\xe4\x48\x8e\x84\x00\x01\x65\x0f\xa7\x12\xa2\x55\xc2\x24\x1b\xc6\xb8\x3b\xa0\x01\x01\x66\x15\xa9\x10\xa6\x78\xcc\x91\x1c\xc9\x81\x21\xce\x91\x1c\xc9\x91\x1c\x09\x01\x01\x67\x0f\x94\x12\x96\xc9\xa2\x21\xc9\xa2\x21\xc9\x42\x01\x01\x68\x0f\xc7\x12\xaa\x19\x74\x24\xf5\xd7\x4d\x19\x14\x00\x01\x69\x0c\x96\x12\xa6\x19\xe4\xd0\x37\x65\x09\x01\x6a\x0f\xc7\x12\xaa\x1a\x72\x24\xf5\xd7\x4d\x19\x14\x00\x01\x6b\x0d\x96\x12\xa6\x19\x72\x20\xf4\x4d\x59\x02\x01\x6c\x0f\xc7\x12\xaa\x19\x74\x24\xf5\xd7\x4d\x19\x14\x00\x01\x6d\x0c\x96\x12\xa6\x19\xe4\xd0\x37\x65\x09\x01\x6e\x10\xe7\x12\xaa\x13\xa3\x50\x87\x52\x7f\xdd\x94\x41\x01\x01\x6f\x0e\xb6\x12\xa6\xd2\xa2\x4c\x47\x42\xdf\x94\x25\x01\x70\x0f\xc7\x12\xaa\x1a\x72\x24\xf5\xd7\x4d\x19\x14\x00\x01\x71\x0d\x96\x12\xa6\x19\x72\x20\xf4\x4d\x59\x02\x01\x72\x0e\xd7\xb2\xa9\x48\xfd\x75\x53\x06\x9d\x28\x01\x01\x73\x0d\xa6\xb2\xa5\x08\x7d\x53\x96\x9c\x20\x01\x01\x74\x1f\xcc\x10\xb2\x1c\x74\x4a\x28\x26\x99\x25\xd3\xa2\x4c\x8b\xba\x25\x51\x12\x26\x51\x12\x26\x51\x12\x8a\x71\x98\x01\x01\x75\x17\x9b\x10\xae\x1b\x74\x42\x58\x89\x92\xa8\x25\x6a\x89\x32\x29\x09\x35\x51\x93\x00\x01\x76\x17\xc8\x10\xa6\x1a\x74\x48\x54\xc2\x2c\x0a\xa3\x54\xce\x81\x1c\xc8\x81\x1c\x08\x01\x01\x77\x15\xc7\xb0\x9d\x19\x74\x24\x4d\xb2\x28\xab\x68\x49\x98\xa4\x71\xaa\x86\x00\x01\x78\x16\xc8\x10\xa6\xaa\x63\xa2\x12\x66\x51\x18\xa5\x72\x0e\xe4\x40\x0e\xe4\x40\x08\x01\x79\x11\xc7\x12\xa2\xda\xa1\x61\x48\xe3\xb4\x9c\x96\xd3\x61\x08\x01\x7a\x0d\x96\x12\xa2\xda\x81\x63\x51\x13\xc3\x61\x01\x7b\x11\xc7\x12\xa2\xcb\xb1\x61\x48\xe3\xb4\x9c\x96\xd3\x61\x08\x01\x7c\x0e\x96\x12\xa2\xcb\x91\x61\x2c\x6a\x62\x38\x0c\x01\x7d\x12\xc7\x12\xa2\x19\x74\x64\x18\xd2\x38\x2d\xa7\xe5\x74\x18\x02\x01\x7e\x0e\x96\x12\xa2\x19\xe4\x61\x2c\x6a\x62\x38\x0c\x01\x86\x15\xa8\x12\xaa\x19\xb2\x50\x07\x72\x24\x07\x72\x20\x07\xe2\x24\x54\x06\x0d\x01\x89\x16\xaa\x10\xaa\x1a\xc6\x50\x4b\xa5\x78\x18\xa3\x38\x8a\xa3\x38\x4a\xb3\x61\x02\x01\x8e\x0d\xa6\x12\xa2\xb8\x76\x19\xd4\xea\x30\x04\x01\x92\x10\xd7\xb2\xa5\xdc\xe2\x34\x0e\x87\x30\xae\xaa\x71\x19\x01\x97\x0c\xa4\x12\x92\xc9\x9a\x86\x24\xeb\x04\x01\x9a\x0c\xa4\x12\x92\xc9\x9a\x86\x24\xeb\x04\x01\x9d\x1d\xdb\xac\xa9\x8b\x33\x35\x4b\xc2\x2c\xd1\x4a\x59\x53\x96\x29\x59\x98\x64\xa9\x16\x67\x39\x96\x03\x3b\x02\x01\x9f\x16\xa9\x12\xae\x1a\x34\x53\x9a\xe4\xc0\x83\x0e\xe8\x40\x92\x46\x9a\x36\x48\x00\x01\xa0\x19\xaa\x12\xae\x1a\x14\x9b\x52\x1d\x72\x20\xc9\x81\x24\x07\x92\x1c\x88\xd2\xcc\x38\x68\x00\x01\xa1\x10\x79\x12\xa6\x9a\x94\x2c\x52\x87\x34\x4a\xb3\xea\x08\x01\xa7\x11\xa6\x12\xa2\x19\xa2\x2c\x0d\x35\x49\x4b\x53\x2d\x19\x04\x01\xa8\x0d\x75\x12\x9e\x59\x33\x65\x09\xb3\x64\x08\x01\xae\x19\xd9\xb0\xa5\x78\xcc\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\xa1\x05\x01\xaf\x16\xa9\x12\xaa\x48\x87\x34\x51\x87\x34\x4a\xa3\x34\x4a\xa3\x34\xd2\xb4\x41\x03\x01\xb0\x12\x78\x12\xa6\x08\x87\x30\x11\x87\x30\x0a\xa3\x4c\x5b\x22\x00\x01\xb5\x10\xa7\x12\xa2\x38\xa4\x71\x1a\x0e\x61\x5a\x4e\x87\x21\x01\xb6\x0d\x76\x12\xa2\x38\xd6\x86\x48\x0c\x87\x01\x01\xbb\x11\xa6\x12\xa6\x19\x92\x4c\x4d\x87\x21\xd3\xc2\x50\x1c\x06\x01\xbc\x0e\xa5\x14\xa6\x38\x16\x87\x50\xac\x0d\x0b\x00\x01\xc0\x08\xd1\xb2\x91\xf8\x10\x01\xc2\x1a\xd8\xd0\xa5\xcc\x81\x1c\xc8\x81\x1c\xc8\x86\x41\xcc\x81\x6c\x18\xc4\x1c\xc8\x81\x1c\xc8\x00\x01\xc3\x09\xa1\x14\x92\x38\x44\x01\x01\xcd\x19\xc9\x10\xaa\x1a\x74\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x01\xce\x12\x97\x12\xa2\x19\x74\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\x01\xcf\x0c\xc5\x10\x92\x18\x74\x20\xec\x9f\x00\x01\xd0\x0c\x95\x10\x92\x18\x74\x20\xec\x13\x00\x01\xd1\x19\xc9\x12\xae\x1a\x74\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x01\xd2\x10\x97\x12\xa6\x19\x74\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x01\xd3\x0f\xc7\x12\xaa\x19\x74\x24\xf5\xd7\x4d\x19\x14\x00\x01\xd4\x0c\x96\x12\xa6\x19\xe4\xd0\x37\x65\x09\x01\xd5\x11\xe7\x12\xaa\x19\x72\x2c\xca\xa1\xd4\x5f\x37\x65\x50\x00\x01\xd6\x0f\xb6\x12\xa6\x19\x72\x24\xca\x81\xd0\x37\x65\x09\x01\xd7\x10\xe7\x12\xaa\xda\xb1\x28\x87\x52\x7f\xdd\x94\x41\x01\x01\xd8\x0e\xb6\x12\xa6\xda\x91\x28\x07\x42\xdf\x94\x25\x01\xd9\x10\xe7\x12\xaa\x19\x74\xa8\x0e\xa5\xfe\xba\x29\x83\x02\x01\xda\x0f\xb6\x12\xa6\x19\x74\x20\xca\x81\xd0\x37\x65\x09\x01\xdb\x10\xe7\x12\xaa\xda\xb1\x28\x87\x52\x7f\xdd\x94\x41\x01\x01\xdc\x0e\xb6\x12\xa6\xda\x91\x28\x07\x42\xdf\x94\x25\x01\xdd\x0f\x76\x12\xa2\x18\xe2\x78\x18\x44\x2d\x1a\x12\x00\x01\xde\x1c\xe9\x10\xaa\x1b\x72\x42\x94\x53\x72\x20\x89\x93\x38\x49\xb3\x30\xcb\x86\x21\x4a\xa3\x34\xc9\x81\x00\x01\xdf\x15\xb7\x12\xa2\x19\x72\x2c\xca\xb1\x41\xca\xe2\x68\x50\xc2\x24\x8c\x86\x01\x01\xe0\x1b\xe9\x10\xaa\x1b\x72\x4a\x4e\xcb\x81\x24\x4e\xe2\x24\xcd\xc2\x2c\x1b\x86\x28\x8d\xd2\x24\x07\x02\x01\xe1\x14\xb7\x12\xa2\x1a\x72\x30\x07\x07\x29\x8b\xa3\x41\x09\x93\x30\x1a\x06\x01\xe2\x1c\xcc\x10\xb6\x1d\x72\xf2\x30\xa4\x3a\x94\xe4\x50\x92\x23\xd1\x20\x46\x39\x30\xc8\x5a\x1c\xa6\xe2\x30\x01\xe3\x14\x99\x12\xb2\x1b\x72\x74\x99\x22\x29\xcc\x92\xe1\x16\x66\xe2\x32\x04\x01\xe4\x14\xa8\x12\xaa\x1b\x14\x31\x89\x73\x20\x07\x62\x79\x1a\x12\x31\x1a\x06\x01\xe5\x13\xa7\xb2\xa5\x5a\x6a\xab\x75\x53\x86\x64\x18\x94\x30\x19\x14\x00\x01\xe6\x15\xc8\x12\xaa\x1a\x74\x74\x50\xc4\x24\xce\x81\x1c\x88\xe5\x35\x11\xa3\x61\x01\xe7\x14\xc7\xb2\xa5\x19\x74\x6c\xa9\xad\xd6\x4d\x19\x92\x38\x09\x93\x41\x01\x01\xe8\x16\xc8\x12\xa6\x19\x74\x2c\x54\x32\x29\xd2\x12\x31\x49\xd7\x28\xcc\x8a\x51\x2a\x01\xe9\x13\xc7\x12\xa2\x18\x74\x2c\x6e\x8b\x6a\x49\xa8\x26\x61\x94\x65\x02\x01\xea\x18\xd9\xb2\xad\x1a\x34\x53\x9a\xe4\x80\x0e\xe8\x80\x0e\x24\x69\xa4\x69\x83\xce\xa6\x01\x01\xeb\x0f\xa7\xb2\xa5\xda\x2a\xa9\x35\xc9\xb2\x9d\x2a\x01\x01\xec\x1a\xf9\xb2\xad\x1b\x72\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x3a\x9b\x06\x01\xed\x11\xc7\xb2\xa5\x1a\x72\x6c\xab\xa4\xd6\x24\xcb\x76\xaa\x04\x01\xf0\x0d\xc6\xb0\x91\x19\x74\x28\xed\x4f\x1b\x00\x01\xf4\x15\xc8\x12\xaa\xdb\xe1\x41\x11\x93\x38\x07\x72\x20\x96\xd7\x44\x8c\x86\x01\x01\xf5\x13\xc7\xb2\xa5\xda\xc1\xa5\xb6\x5a\x37\x65\x48\xe2\x24\x4c\x06\x05\x01\xf8\x15\xc8\x12\xaa\xda\xc1\x78\x55\x42\x45\x93\x32\x2d\xd2\x14\x31\x51\xe7\x00\x01\xf9\x0d\x96\x12\xa6\xd9\x91\x64\xd1\x44\x8f\x01\x01\xfa\x1c\xf9\x10\xaa\xdb\x49\x72\x14\xeb\x40\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x01\xfb\x15\xc7\x12\xa2\xda\x41\x31\xca\xb1\x41\xca\xe2\x68\x50\xc2\x24\x8c\x86\x01\x01\xfc\x1c\xcc\x10\xb6\xde\xc9\xc3\x90\xea\x50\x92\x43\x49\x8e\x44\x83\x18\xe5\xc0\x20\x6b\x71\x98\x8a\xc3\x00\x01\xfd\x13\x99\x12\xb2\xdb\xe1\x65\x8a\xa4\x30\x4b\x86\x5b\x98\x89\xcb\x10\x01\xfe\x19\xc9\x12\xae\xdb\x09\x87\x44\x93\x42\x25\x8c\x34\xc9\x26\x85\x89\x18\x69\xca\x30\x44\x00\x01\xff\x14\x97\x12\xa6\xda\xc1\x41\xc9\x92\x2c\x91\x22\x25\x4b\xb2\x64\x90\x00\x02\x00\x19\xc9\x10\xaa\x1b\x72\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x02\x01\x12\x97\x12\xa2\x1a\x72\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\x02\x02\x19\xc9\x10\xaa\x1a\x74\x4a\x0e\x24\x71\x12\x27\x69\x16\x66\xd9\x30\x44\x69\x94\x26\x39\x10\x02\x03\x12\x97\x12\xa2\x19\x74\x68\x90\xb2\x38\x1a\x94\x30\x09\xa3\x61\x02\x04\x10\xc6\x12\xa2\x19\x72\xe0\x90\x56\x07\x25\x6d\x1d\x06\x02\x05\x10\x96\x12\xa2\x19\x72\x64\x88\x32\x71\x18\xe4\x78\x08\x02\x06\x10\xc6\x12\xa2\x18\x74\xe0\x90\x56\x07\x25\x6d\x1d\x06\x02\x07\x10\x96\x12\xa2\x19\x74\x60\x88\x32\x71\x18\xe4\x78\x08\x02\x08\x0b\xc4\x12\x92\x18\xd2\xac\x7f\x02\x02\x09\x0b\x94\x12\x92\x18\xd2\xac\x4f\x00\x02\x0a\x0c\xc5\x10\x92\x18\x74\x20\xec\x9f\x00\x02\x0b\x0c\x95\x10\x92\x18\x74\x20\xec\x13\x00\x02\x0c\x19\xc9\x12\xae\x1b\x72\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x02\x0d\x10\x97\x12\xa6\x1a\x72\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x02\x0e\x19\xc9\x12\xae\x1a\x74\x78\xd0\x4c\x69\x92\x03\x3a\xa0\x03\x3a\x90\xa4\x91\xa6\x0d\x12\x00\x02\x0f\x10\x97\x12\xa6\x19\x74\x6c\xab\xa4\xd6\x24\xcb\x26\x00\x02\x10\x13\xc6\x14\xa6\x19\x72\x60\x50\x42\xb7\x64\x88\x22\x25\x4b\x42\x31\x02\x11\x0d\x94\x12\x9a\x18\xc2\x64\x88\xb2\x6e\x00\x02\x12\x13\xc6\x14\xa6\x18\x74\x60\x50\x42\xb7\x64\x88\x22\x25\x4b\x42\x31\x02\x13\x0c\x95\x10\x9a\x18\xe4\xc4\x16\x76\x03\x02\x14\x0f\xc7\x12\xaa\x1a\x72\x24\xf5\xd7\x4d\x19\x14\x00\x02\x15\x0d\x96\x12\xa6\x19\x72\x20\xf4\x4d\x59\x02\x02\x16\x0f\xc7\x12\xaa\x19\x74\x24\xf5\xd7\x4d\x19\x14\x00\x02\x17\x0c\x96\x12\xa6\x19\xe4\xd0\x37\x65\x09\x02\x18\x14\x06\x53\xa1\x19\x92\x2c\x49\xcd\x72\xaa\x0d\x43\x0e\x89\x6a\x31\x03\x02\x19\x10\xd5\x52\x9d\x59\x42\x71\xd5\x06\x1d\xd0\xc4\x5a\x06\x02\x1a\x1d\x09\x51\xa5\x78\xcc\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x91\x1c\xc9\x69\x3a\xa0\x23\x39\x92\x03\x21\x00\x02\x1b\x10\xf4\x52\x95\xc9\xa2\x21\xc9\x3a\xaa\x92\x56\x8a\x00\x02\x1e\x0f\xc8\x12\xaa\x1a\x74\x28\x76\x1e\x0e\xb1\xe7\x00\x02\x1f\x14\xc7\x10\xa6\x18\x74\x2c\x6e\x99\xb4\x24\x4c\xc2\x24\x4c\xc2\x24\x0c\x02\x26\x19\xc9\x10\xaa\xcc\x69\x39\x90\xc4\x49\x9c\xa4\x59\x98\x65\xc3\x10\xa5\x51\x9a\xe4\x40\x00\x02\x27\x12\x97\x12\xa2\xcb\xc1\x41\xca\xe2\x68\x50\xc2\x24\x8c\x86\x01\x02\x28\x11\xd6\xb2\xa1\x38\xa4\xd5\x41\x49\x5b\x87\x49\x0d\x25\x00\x02\x29\x11\xa6\xb2\xa1\x19\xa2\x4c\x1c\x06\x39\x1e\x22\x35\x94\x00\x02\x2a\x1b\xe9\x12\xae\x1b\x72\x42\x94\xc3\x83\x66\x4a\x93\x1c\xd0\x01\x1d\xd0\x81\x24\x8d\x34\x6d\x90\x00\x02\x2b\x12\xb7\x12\xa6\x19\x72\x2c\xca\xc1\xad\x92\x5a\x93\x2c\x9b\x00\x02\x2c\x1b\xe9\x12\xae\x1b\x72\x78\xd0\xe1\x41\x33\xa5\x49\x0e\xe8\x80\x0e\xe8\x40\x92\x46\x9a\x36\x48\x00\x02\x2d\x12\xb7\x12\xa6\x1a\x72\x68\xd0\xb1\xad\x92\x5a\x93\x2c\x9b\x00\x02\x2e\x18\xc9\x12\xae\xcc\x29\x83\x66\x4a\x93\x1c\xd0\x01\x1d\xd0\x81\x24\x8d\x34\x6d\x90\x00\x02\x2f\x0f\x97\x12\xa6\xcb\xd1\xad\x92\x5a\x93\x2c\x9b\x00\x02\x30\x1a\xe9\x12\xae\x1b\x72\x4a\x4e\x19\x34\x53\x9a\xe4\x80\x0e\xe8\x80\x0e\x24\x69\xa4\x69\x83\x04\x02\x31\x11\xb7\x12\xa6\x1a\x72\x30\x47\xb7\x4a\x6a\x4d\xb2\x6c\x02\x02\x32\x17\xc8\x10\xa6\x1a\x72\x4c\x54\xc2\x2c\x0a\xa3\x54\xce\x81\x1c\xc8\x81\x1c\x08\x01\x02\x33\x15\xc7\xb0\x9d\x1a\x72\x24\x4d\xb2\x28\xab\x68\x49\x98\xa4\x71\xaa\x86\x00\x02\x50\x10\x77\x12\xa2\x38\x85\x49\x98\x0c\x52\x9c\x45\x83\x02\x02\x54\x0c\x75\x12\x9e\x18\x42\xb1\x6d\x58\x00\x02\x58\x10\x76\x12\xa2\x19\x92\x2c\x09\x87\x21\x0d\x93\x21\x02\x02\x59\x0f\x76\x12\xa2\x18\xe2\x78\x18\x44\x2d\x1a\x12\x00\x02\x5f\x0d\xb5\x92\x95\x0b\x7b\x1a\xb2\xb0\x32\x01\x02\x65\x0c\xa6\xb2\xa5\x08\x7d\x53\x96\xb4\x01\x02\x75\x0e\x77\x12\xa6\xda\x2a\xe9\x70\x4d\xb2\x6c\x02\x02\x79\x0a\x74\x12\x9a\xeb\x69\x48\x02\x02\x87\x0d\x94\x12\x96\x10\xb3\x2e\x43\x94\x25\x00\x02\x88\x0c\xc5\xb2\x95\x09\xb3\x21\x0a\xfb\x75\x02\x89\x0d\x76\x12\xa6\x08\x8d\xc3\x20\x6a\xca\x12\x02\x8c\x10\x77\x10\x9e\x4b\x93\x30\x09\x13\x29\x8b\xb2\x24\x0d\x02\x8d\x14\x7b\x10\xae\xd2\x44\x4d\x4c\x22\x2d\x4a\xa2\x96\xa8\x25\x4a\xc2\x02\x02\x8e\x12\xa7\x10\x9e\x4c\xd5\x38\x4d\xc2\x24\x53\xb2\x52\x96\xa4\x01\x02\x9e\x10\xa6\xb4\xa1\xd0\xa2\x5a\x12\x6a\x49\x54\xc9\xd2\x06\x02\xbb\x08\x32\xf2\x8e\x58\x04\x02\xbc\x08\x32\xf2\x8e\x50\x06\x02\xbd\x08\x32\xf2\x8e\x58\x04\x00\x00'
| 14,574.5
| 29,148
| 0.74994
| 7,287
| 29,149
| 2.999863
| 0.035406
| 0.019762
| 0.009058
| 0.009332
| 0.512031
| 0.469625
| 0.441491
| 0.422964
| 0.399634
| 0.372187
| 0
| 0.37711
| 0.000034
| 29,149
| 1
| 29,149
| 29,149
| 0.372856
| 0
| 0
| 0
| 0
| 1
| 0.999691
| 0.999691
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
f85f5ef743069185686cb10b75ff8c5cb3b128fb
| 1,443
|
py
|
Python
|
app/api/cat/tests/test_cat.py
|
alfredosilvestre-natixis/flask-restplus-pymongo-jumpstart
|
582c8c5323bb6e37744afee2ecc607f2dc2148c8
|
[
"MIT"
] | null | null | null |
app/api/cat/tests/test_cat.py
|
alfredosilvestre-natixis/flask-restplus-pymongo-jumpstart
|
582c8c5323bb6e37744afee2ecc607f2dc2148c8
|
[
"MIT"
] | null | null | null |
app/api/cat/tests/test_cat.py
|
alfredosilvestre-natixis/flask-restplus-pymongo-jumpstart
|
582c8c5323bb6e37744afee2ecc607f2dc2148c8
|
[
"MIT"
] | 1
|
2020-12-30T09:34:01.000Z
|
2020-12-30T09:34:01.000Z
|
def test_get_all_cats(client):
rv = client.get('/api/cats/')
if b'[]' not in rv.data:
raise AssertionError(rv.data)
if rv.status_code != 200:
raise AssertionError(rv.status_code)
def test_create_cat(client):
rv = client.post('/api/cats/', json={'id': 1, 'name': 'Felix'})
if b'Felix' not in rv.data:
raise AssertionError(rv.data)
if rv.status_code != 201:
raise AssertionError(rv.status_code)
def test_get_cat(client):
rv = client.get('/api/cats/1')
if b'Felix' not in rv.data:
raise AssertionError(rv.data)
if rv.status_code != 200:
raise AssertionError(rv.status_code)
def test_update_cat(client):
rv = client.put('/api/cats/1', json={'name': 'Sylvester'})
if rv.status_code != 204:
raise AssertionError(rv.status_code)
def test_delete_cat(client):
rv = client.delete('/api/cats/1')
if rv.status_code != 204:
raise AssertionError(rv.status_code)
def test_get_cat_404(client):
rv = client.get('/api/cats/1')
if rv.status_code != 404:
raise AssertionError(rv.status_code)
def test_update_cat_404(client):
rv = client.put('/api/cats/1', json={'name': 'Sylvester'})
if rv.status_code != 404:
raise AssertionError(rv.status_code)
def test_delete_cat_404(client):
rv = client.delete('/api/cats/1')
if rv.status_code != 404:
raise AssertionError(rv.status_code)
| 23.655738
| 67
| 0.647263
| 213
| 1,443
| 4.215962
| 0.15493
| 0.142539
| 0.213808
| 0.124722
| 0.918708
| 0.908686
| 0.88196
| 0.88196
| 0.835189
| 0.739421
| 0
| 0.035088
| 0.209979
| 1,443
| 60
| 68
| 24.05
| 0.752632
| 0
| 0
| 0.684211
| 0
| 0
| 0.093555
| 0
| 0
| 0
| 0
| 0
| 0.289474
| 1
| 0.210526
| false
| 0
| 0
| 0
| 0.210526
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f87a77c676cfe86a31e0cf27e25b81c9f6b8da40
| 1,073
|
py
|
Python
|
Final/p4/eulers.py
|
alpha-leo/ComputationalPhysics-Fall2020
|
737769d4a046b4ecea885cafeaf26e26075f7320
|
[
"MIT"
] | 1
|
2021-08-10T14:33:35.000Z
|
2021-08-10T14:33:35.000Z
|
Final/p4/eulers.py
|
alpha-leo/ComputationalPhysics-Fall2020
|
737769d4a046b4ecea885cafeaf26e26075f7320
|
[
"MIT"
] | null | null | null |
Final/p4/eulers.py
|
alpha-leo/ComputationalPhysics-Fall2020
|
737769d4a046b4ecea885cafeaf26e26075f7320
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
""" implementations of the euler and reverse euler methods """
import numpy as np
def euler(x_init, x_dot_func, step, time):
""" euer method """
# finding count
count = int(time / step) + 1
# initialization
x = np.zeros(count)
x_dot = np.zeros(count)
time = np.zeros(count)
x[0] = x_init
x_dot[0] = x_dot_func(x[0], time[0])
for i in range(count - 1):
x[i + 1] = x[i] + x_dot[i] * step
x_dot[i + 1] = x_dot_func(x[i], time[i])
time[i + 1] = time[i] + step
return x, x_dot, time, count
def backward_euler(x_init, x_dot_func, step, time):
""" euer method """
# finding count
count = int(time / step) + 1
# initialization
x = np.zeros(count)
x_dot = np.zeros(count)
time = np.zeros(count)
x[0] = x_init
x_dot[0] = x_dot_func(x[0], time[0])
for i in range(count - 1):
x_dot[i + 1] = x_dot_func(x[i], time[i])
x[i + 1] = x[i] + x_dot[i + 1] * step
time[i + 1] = time[i] + step
return x, x_dot, time, count
| 22.354167
| 62
| 0.55452
| 186
| 1,073
| 3.053763
| 0.198925
| 0.112676
| 0.084507
| 0.06338
| 0.823944
| 0.823944
| 0.823944
| 0.823944
| 0.790493
| 0.790493
| 0
| 0.024837
| 0.287046
| 1,073
| 47
| 63
| 22.829787
| 0.717647
| 0.149115
| 0
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.08
| false
| 0
| 0.04
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
3e02e0b802ef2ee2a23594242badc1aebc85394c
| 3,806
|
py
|
Python
|
sports_manager/tests/category/tests_category_list_view.py
|
hbuyse/dj-sports-manager
|
7e32cc41347b968b4ede9ea6846de14d9504c3f9
|
[
"MIT"
] | null | null | null |
sports_manager/tests/category/tests_category_list_view.py
|
hbuyse/dj-sports-manager
|
7e32cc41347b968b4ede9ea6846de14d9504c3f9
|
[
"MIT"
] | null | null | null |
sports_manager/tests/category/tests_category_list_view.py
|
hbuyse/dj-sports-manager
|
7e32cc41347b968b4ede9ea6846de14d9504c3f9
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env python
# coding=utf-8
"""Tests the views."""
# Django
from django.test import TestCase
from django.urls import reverse
from ..helper import create_category, create_user
class TestCategoryListViewAsAnonymous(TestCase):
"""Tests ListView for Category."""
def tests_empty(self):
"""Tests."""
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 0)
def tests_one_category(self):
"""Tests."""
c = create_category()[1]
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 1)
self.assertIn(c, r.context['category_list'])
class TestCategoryListViewAsLogged(TestCase):
"""Tests ListView for Category."""
def setUp(self):
"""Create a user that will be able to log in."""
self.user_info = create_user()[0]
def tests_empty(self):
"""Tests."""
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 0)
def tests_one_category(self):
"""Tests."""
c = create_category()[1]
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 1)
self.assertIn(c, r.context['category_list'])
class TestCategoryListViewAsStaff(TestCase):
"""Tests ListView for Category."""
def setUp(self):
"""Create a user that will be able to log in."""
self.user_info = create_user(staff=True)[0]
def tests_empty(self):
"""Tests."""
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 0)
def tests_one_category(self):
"""Tests."""
c = create_category()[1]
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 1)
self.assertIn(c, r.context['category_list'])
class TestCategoryListViewAsSuperuser(TestCase):
"""Tests ListView for Category."""
def setUp(self):
"""Create a user that will be able to log in."""
self.user_info = create_user(superuser=True)[0]
def tests_empty(self):
"""Tests."""
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 0)
def tests_one_category(self):
"""Tests."""
c = create_category()[1]
self.assertTrue(self.client.login(username=self.user_info['username'], password=self.user_info['password']))
r = self.client.get(reverse('sports-manager:category-list'))
self.assertEqual(r.status_code, 200)
self.assertEqual(len(r.context['category_list']), 1)
self.assertIn(c, r.context['category_list'])
| 33.681416
| 116
| 0.65712
| 479
| 3,806
| 5.104384
| 0.135699
| 0.09816
| 0.07362
| 0.09816
| 0.887526
| 0.879755
| 0.86544
| 0.86544
| 0.86544
| 0.86544
| 0
| 0.012937
| 0.187599
| 3,806
| 112
| 117
| 33.982143
| 0.777814
| 0.094325
| 0
| 0.830508
| 0
| 0
| 0.141498
| 0.066587
| 0
| 0
| 0
| 0
| 0.440678
| 1
| 0.186441
| false
| 0.101695
| 0.050847
| 0
| 0.305085
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
3e0d90fe8efc4abb02e621d6c1840e67b404a1eb
| 28,070
|
py
|
Python
|
tests/siteinfo.py
|
matthewgehring/wptools
|
788cdc2078696dacb14652d5f2ad098a585e4763
|
[
"MIT"
] | 482
|
2015-04-13T23:43:42.000Z
|
2022-03-31T14:44:50.000Z
|
tests/siteinfo.py
|
matthewgehring/wptools
|
788cdc2078696dacb14652d5f2ad098a585e4763
|
[
"MIT"
] | 168
|
2016-01-06T14:30:05.000Z
|
2022-02-17T22:14:36.000Z
|
tests/siteinfo.py
|
matthewgehring/wptools
|
788cdc2078696dacb14652d5f2ad098a585e4763
|
[
"MIT"
] | 80
|
2015-05-03T18:10:58.000Z
|
2022-02-17T22:54:25.000Z
|
# -*- coding:utf-8 -*-
query = 'https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general|statistics&format=json&formatversion=2'
response = r"""{"batchcomplete":true,"continue":{"pvimoffset":500,"continue":"-||siteinfo|siteviews"},"limits":{"mostviewed":500},"query":{"mostviewed":[{"ns":0,"title":"Main Page","count":13932277},{"ns":-1,"title":"Special:Search","count":1992975},{"ns":0,"title":"XHamster","count":327570},{"ns":0,"title":"Mother!","count":310884},{"ns":0,"title":"It (2017 film)","count":297646},{"ns":4,"title":"Wikipedia:New user landing page","count":275268},{"ns":0,"title":"Misery (novel)","count":244189},{"ns":0,"title":"Doctrine of lapse","count":239667},{"ns":-1,"title":"Special:Book","count":147750},{"ns":0,"title":"It (novel)","count":127667},{"ns":6,"title":"File:ITVBe logo 2014-.svg","count":117483},{"ns":0,"title":"Chelsea Manning","count":115320},{"ns":0,"title":"Bill Skarsgård","count":112802},{"ns":0,"title":"Gennady Golovkin","count":111642},{"ns":0,"title":"Cassini–Huygens","count":109902},{"ns":0,"title":"Michael C. Hall","count":105360},{"ns":0,"title":"Ben Shapiro","count":104156},{"ns":0,"title":"Deaths in 2017","count":98718},{"ns":0,"title":"J. Paul Getty","count":97540},{"ns":0,"title":"List of Major League Baseball longest winning streaks","count":97380},{"ns":0,"title":"Blue Whale (game)","count":91487},{"ns":0,"title":"Darth Vader","count":90454},{"ns":0,"title":"Canelo Álvarez","count":83297},{"ns":0,"title":"John Paul Getty III","count":82606},{"ns":0,"title":"Engineer's Day","count":80985},{"ns":-1,"title":"Special:CreateAccount","count":79450},{"ns":0,"title":"Harry Dean Stanton","count":78738},{"ns":0,"title":"Scott Peterson","count":77503},{"ns":0,"title":"Francia Raisa","count":74428},{"ns":0,"title":"M. Visvesvaraya","count":72691},{"ns":0,"title":"It (character)","count":70313},{"ns":0,"title":"Selena Gomez","count":67498},{"ns":0,"title":"Hurricane Irma","count":65815},{"ns":-1,"title":"Special:Watchlist","count":65632},{"ns":0,"title":"Deshaun Watson","count":62331},{"ns":0,"title":"Fangtooth snake-eel","count":62239},{"ns":0,"title":"Darren Aronofsky","count":60783},{"ns":0,"title":"Rohingya people","count":59792},{"ns":0,"title":"Murder of Laci Peterson","count":58705},{"ns":0,"title":"It (miniseries)","count":58648},{"ns":0,"title":"Cali Cartel","count":57352},{"ns":0,"title":"Eighth Schedule to the Constitution of India","count":56659},{"ns":0,"title":"Jennifer Lawrence","count":51843},{"ns":0,"title":"List of colors: N–Z","count":50881},{"ns":0,"title":"List of Bollywood films of 2017","count":50776},{"ns":0,"title":"Earth","count":50154},{"ns":0,"title":"Big Brother 19 (U.S.)","count":50012},{"ns":0,"title":"Pablo Escobar","count":49339},{"ns":-1,"title":"Special:ElectronPdf","count":48963},{"ns":-1,"title":"Special:MobileMenu","count":48829},{"ns":100,"title":"Portal:Current events","count":48071},{"ns":0,"title":"2007 Glasgow Airport attack","count":47559},{"ns":0,"title":"Kim Jong-un","count":46986},{"ns":0,"title":"Frank Vincent","count":46125},{"ns":0,"title":"Alexander Skarsgård","count":45981},{"ns":0,"title":"Bitcoin","count":45844},{"ns":0,"title":"Cardi B","count":45698},{"ns":0,"title":"Stephen King","count":44326},{"ns":0,"title":"North Korea","count":43858},{"ns":0,"title":"American Assassin","count":43060},{"ns":0,"title":"United States","count":42910},{"ns":0,"title":"American Horror Story: Cult","count":42563},{"ns":0,"title":"September 15","count":41609},{"ns":0,"title":"Halimah Yacob","count":41587},{"ns":0,"title":"Clarke Carlisle","count":40585},{"ns":0,"title":"Stellan Skarsgård","count":40349},{"ns":0,"title":"Tim Curry","count":39804},{"ns":0,"title":"Antifa (United States)","count":39220},{"ns":0,"title":"AMGTV","count":39162},{"ns":0,"title":"Parsons Green tube station","count":39115},{"ns":0,"title":"Barbuda","count":38940},{"ns":0,"title":"Game of Thrones","count":38669},{"ns":0,"title":"Concrete and Gold","count":38081},{"ns":0,"title":"Josh Duhamel","count":37602},{"ns":0,"title":"Lali Espósito","count":37402},{"ns":0,"title":"Grant Hart","count":37244},{"ns":0,"title":"Hélmer Herrera","count":36937},{"ns":0,"title":"Donald Trump","count":36734},{"ns":0,"title":"2017 Atlantic hurricane season","count":36673},{"ns":0,"title":"Narcos (season 3)","count":36501},{"ns":0,"title":"Myanmar","count":36488},{"ns":0,"title":"Cordylobia anthropophaga","count":35939},{"ns":0,"title":"Baby Driver","count":35830},{"ns":0,"title":"Queen Victoria","count":35761},{"ns":0,"title":"Gilberto Rodríguez Orejuela","count":35679},{"ns":0,"title":"Fergie (singer)","count":35271},{"ns":0,"title":"XVideos","count":35098},{"ns":0,"title":"J. J. Watt","count":35093},{"ns":0,"title":"All the Money in the World","count":34931},{"ns":0,"title":"September 11 attacks","count":34553},{"ns":0,"title":"Systemic lupus erythematosus","count":34188},{"ns":0,"title":"Ulrika Jonsson","count":34186},{"ns":0,"title":"2017 in film","count":33872},{"ns":4,"title":"Wikipedia:Contact us","count":32378},{"ns":0,"title":"Game of Thrones (season 7)","count":32083},{"ns":0,"title":"Rick and Morty","count":31677},{"ns":0,"title":"India","count":30903},{"ns":0,"title":"Millennials","count":30864},{"ns":0,"title":"Transformers: The Last Knight","count":30626},{"ns":0,"title":"Eve (2003 TV series)","count":30345},{"ns":0,"title":"Facebook","count":30245},{"ns":0,"title":"Parsons Green","count":30228},{"ns":0,"title":"Google","count":29911},{"ns":0,"title":"List of Rick and Morty episodes","count":29909},{"ns":0,"title":"Sophia Lillis","count":29763},{"ns":-1,"title":"Special:MobileOptions","count":29747},{"ns":0,"title":"Muscat and Oman","count":29646},{"ns":0,"title":"Jebel Akhdar War","count":29569},{"ns":0,"title":"Gustaf Skarsgård","count":29532},{"ns":0,"title":"Balthazar Getty","count":29418},{"ns":0,"title":"Deferred Action for Childhood Arrivals","count":29190},{"ns":0,"title":"Rick and Morty (season 3)","count":29186},{"ns":0,"title":"Amy Winehouse","count":29064},{"ns":0,"title":"Simran (film)","count":29046},{"ns":0,"title":"Narcos","count":28973},{"ns":0,"title":"Jaeden Lieberher","count":28895},{"ns":0,"title":"Miguel Rodríguez Orejuela","count":28766},{"ns":0,"title":"Mia Khalifa","count":28763},{"ns":0,"title":"Cris Collinsworth","count":28457},{"ns":0,"title":"Ted Kaczynski","count":28211},{"ns":0,"title":"America's Got Talent (season 12)","count":28122},{"ns":0,"title":"Saturn","count":27894},{"ns":0,"title":"Kingsman: The Golden Circle","count":27859},{"ns":0,"title":"Annabelle: Creation","count":27676},{"ns":0,"title":"Tommy Morrison","count":27650},{"ns":0,"title":"Timber","count":27591},{"ns":0,"title":"Adam Jones (American football)","count":27445},{"ns":0,"title":"Tupac Shakur","count":26966},{"ns":0,"title":"Eve (rapper)","count":26808},{"ns":0,"title":"Valter Skarsgård","count":26591},{"ns":0,"title":"Elon Musk","count":26588},{"ns":0,"title":"José Santacruz Londoño","count":26157},{"ns":0,"title":"Elizabeth II","count":26121},{"ns":0,"title":"Marc Bolan","count":25877},{"ns":0,"title":"YouTube","count":25865},{"ns":0,"title":"Martin Shkreli","count":25778},{"ns":12,"title":"Help:IPA/English","count":25621},{"ns":0,"title":"Al-Batin","count":25560},{"ns":0,"title":"Steve Jobs","count":25549},{"ns":0,"title":"Suits (season 7)","count":25308},{"ns":0,"title":"Aaron Carter","count":24586},{"ns":0,"title":"NBA 2K18","count":24573},{"ns":0,"title":"The Taming of the Shrew","count":24436},{"ns":0,"title":"Singapore","count":24299},{"ns":0,"title":"Edward Albert","count":24214},{"ns":0,"title":"2017 AFF U-18 Youth Championship","count":24149},{"ns":0,"title":"Canelo Álvarez vs. Gennady Golovkin","count":24075},{"ns":0,"title":"Pirates of the Caribbean: Dead Men Tell No Tales","count":23957},{"ns":0,"title":"Dwayne Johnson","count":23937},{"ns":0,"title":"Robert E. Lee","count":23890},{"ns":0,"title":"MasterChef (U.S. season 8)","count":23854},{"ns":0,"title":"Thupparivaalan","count":23819},{"ns":0,"title":"World War II","count":23746},{"ns":0,"title":"Judi Dench","count":23534},{"ns":0,"title":"Tom Hardy","count":23490},{"ns":0,"title":"EuroBasket 2017","count":23470},{"ns":0,"title":"Wiki","count":23439},{"ns":-1,"title":"Special:CiteThisPage","count":23384},{"ns":0,"title":"Titan (moon)","count":23206},{"ns":0,"title":"American Horror Story","count":23179},{"ns":0,"title":"Chesley Sullenberger","count":23075},{"ns":0,"title":"XXX","count":22980},{"ns":0,"title":"Periodic table","count":22928},{"ns":0,"title":"Steven Mnuchin","count":22801},{"ns":0,"title":"Nikki Haley","count":22762},{"ns":0,"title":"Japan","count":22739},{"ns":0,"title":"The Sinner (TV series)","count":22693},{"ns":0,"title":"Measles vaccine","count":22664},{"ns":0,"title":"Blade Runner","count":22663},{"ns":4,"title":"Wikipedia:Featured articles","count":22595},{"ns":0,"title":"Angellica Bell","count":22509},{"ns":0,"title":"Dua Lipa","count":22479},{"ns":0,"title":"Foo Fighters","count":22467},{"ns":0,"title":"Jemele Hill","count":22307},{"ns":0,"title":"Cristiano Ronaldo","count":22198},{"ns":0,"title":"Lyle and Erik Menendez","count":22164},{"ns":0,"title":"Tommy Wiseau","count":22145},{"ns":0,"title":"Korean War","count":21614},{"ns":0,"title":"Kingsman: The Secret Service","count":21574},{"ns":0,"title":"7, Lok Kalyan Marg","count":21512},{"ns":0,"title":"United Kingdom","count":21467},{"ns":0,"title":"Hüsker Dü","count":21396},{"ns":-1,"title":"Special:RecentChangesLinked","count":21366},{"ns":0,"title":"Dylan O'Brien","count":21246},{"ns":0,"title":"Hurricane Harvey","count":21220},{"ns":0,"title":"The Shape of Water (film)","count":21196},{"ns":0,"title":"Wonder Woman (2017 film)","count":21184},{"ns":0,"title":"Floyd Mayweather Jr.","count":21114},{"ns":0,"title":"Singaporean presidential election, 2017","count":20882},{"ns":0,"title":"The Room (film)","count":20818},{"ns":0,"title":"Fibromyalgia","count":20794},{"ns":0,"title":"List of most viewed YouTube videos","count":20785},{"ns":0,"title":"Kit Harington","count":20741},{"ns":0,"title":"Tom Cruise","count":20713},{"ns":0,"title":"Google Classroom","count":20695},{"ns":0,"title":"Adolf Hitler","count":20667},{"ns":0,"title":"Logic (musician)","count":20625},{"ns":0,"title":"Louise Linton","count":20577},{"ns":0,"title":"Wyatt Earp","count":20571},{"ns":0,"title":"Mary, Queen of Scots","count":20567},{"ns":0,"title":"Mumbai–Ahmedabad high-speed rail corridor","count":20523},{"ns":0,"title":"Red Sparrow","count":20404},{"ns":0,"title":"XXXTentacion","count":20375},{"ns":0,"title":"World War I","count":20267},{"ns":0,"title":"Lyndsey Scott","count":20161},{"ns":0,"title":"Jennifer Carpenter","count":20081},{"ns":0,"title":"Pirates of the Caribbean (film series)","count":20003},{"ns":0,"title":"Jim Carrey","count":19948},{"ns":0,"title":"Surströmming","count":19901},{"ns":0,"title":"Lionel Messi","count":19680},{"ns":0,"title":"Rihanna","count":19671},{"ns":0,"title":"Baadshaho","count":19648},{"ns":0,"title":"Thursday Night Football","count":19530},{"ns":0,"title":"Doc Holliday","count":19484},{"ns":-1,"title":"Special:LinkSearch","count":19424},{"ns":0,"title":"The Disaster Artist (film)","count":19378},{"ns":0,"title":"Rosie O'Donnell","count":19350},{"ns":0,"title":"Blade Runner 2049","count":19320},{"ns":-1,"title":"Special:RecentChanges","count":19311},{"ns":0,"title":"Freddie Mercury","count":19287},{"ns":0,"title":"Bogdan Bogdanović (basketball)","count":19249},{"ns":0,"title":"Stranger Things","count":19227},{"ns":0,"title":"Spyder (film)","count":19218},{"ns":0,"title":"Sarah Huckabee Sanders","count":19152},{"ns":0,"title":"Barry Seal","count":19080},{"ns":0,"title":"Hurricane Jose (2017)","count":18896},{"ns":0,"title":"Sumitra Mahajan","count":18890},{"ns":0,"title":"Billy Joe Saunders","count":18867},{"ns":0,"title":"Mahatma Gandhi","count":18847},{"ns":0,"title":"Taylor Swift","count":18834},{"ns":0,"title":"Joe Mixon","count":18825},{"ns":6,"title":"File:Eve 2011 cropped.jpg","count":18698},{"ns":0,"title":"No Mercy (2017)","count":18657},{"ns":0,"title":"Michael Jackson","count":18589},{"ns":0,"title":"Lena Headey","count":18572},{"ns":0,"title":"Emilia Clarke","count":18503},{"ns":0,"title":"Eyes Wide Shut","count":18448},{"ns":0,"title":"American Made (film)","count":18187},{"ns":0,"title":"Javier Bardem","count":18124},{"ns":0,"title":"Luka Dončić","count":17978},{"ns":0,"title":"Jeff Dunham","count":17969},{"ns":0,"title":"China","count":17928},{"ns":0,"title":"HTTP 404","count":17825},{"ns":0,"title":"Wikipedia","count":17761},{"ns":0,"title":"Angelina Jolie","count":17759},{"ns":0,"title":"Downsizing (2017 film)","count":17732},{"ns":0,"title":"Prophets of Rage","count":17719},{"ns":0,"title":"Muhammad Ali","count":17691},{"ns":0,"title":"Finn Wolfhard","count":17663},{"ns":0,"title":"Vietnam War","count":17638},{"ns":0,"title":"Sully (film)","count":17611},{"ns":0,"title":"Fascism","count":17539},{"ns":0,"title":"Destiny 2","count":17534},{"ns":0,"title":"Boban Marjanović","count":17446},{"ns":0,"title":"UFC Fight Night: Rockhold vs. Branch","count":17422},{"ns":0,"title":"Seth MacFarlane","count":17399},{"ns":0,"title":"List of Game of Thrones episodes","count":17345},{"ns":0,"title":"Bruce Lee","count":17235},{"ns":0,"title":"Nas","count":17170},{"ns":0,"title":"Outlander (TV series)","count":17155},{"ns":0,"title":"Android version history","count":17138},{"ns":0,"title":"Nicki Minaj","count":17094},{"ns":0,"title":"Hidden Figures","count":17082},{"ns":0,"title":"American Vandal","count":17053},{"ns":0,"title":"Albert Einstein","count":17016},{"ns":0,"title":"Barack Obama","count":17012},{"ns":0,"title":"James Franco","count":16962},{"ns":0,"title":"IPhone X","count":16954},{"ns":0,"title":"Shawn Mendes","count":16947},{"ns":0,"title":"Apple Inc.","count":16910},{"ns":0,"title":"Pornhub","count":16905},{"ns":0,"title":"Eminem","count":16902},{"ns":0,"title":"Jake Gyllenhaal","count":16845},{"ns":0,"title":"Canada","count":16830},{"ns":0,"title":"Suits (TV series)","count":16821},{"ns":0,"title":"Lady Gaga","count":16757},{"ns":0,"title":"Mike Tyson","count":16707},{"ns":0,"title":"Jennifer Aniston","count":16700},{"ns":0,"title":"Meghan Markle","count":16622},{"ns":0,"title":"The Deuce (TV series)","count":16621},{"ns":0,"title":"Julia Stiles","count":16583},{"ns":0,"title":"The Weeknd","count":16551},{"ns":0,"title":"Rachel Weisz","count":16451},{"ns":0,"title":"Gary Numan","count":16447},{"ns":0,"title":"US Airways Flight 1549","count":16443},{"ns":0,"title":"Dunkirk (2017 film)","count":16416},{"ns":0,"title":"Will Poulter","count":16377},{"ns":0,"title":"John Cena","count":16367},{"ns":0,"title":"Katherine Johnson","count":16367},{"ns":0,"title":"Jamie Lee Curtis","count":16331},{"ns":0,"title":"BoJack Horseman","count":16304},{"ns":0,"title":"John Carpenter (game show contestant)","count":16295},{"ns":0,"title":"2017–18 UEFA Europa League","count":16218},{"ns":0,"title":"Australia","count":16216},{"ns":0,"title":"Cry of Dolores","count":16180},{"ns":0,"title":"Gal Gadot","count":16178},{"ns":0,"title":"IPhone","count":16164},{"ns":0,"title":"London","count":16127},{"ns":0,"title":"XXX (franchise)","count":16109},{"ns":0,"title":"Alexey Shved","count":16099},{"ns":0,"title":"Pedro Pascal","count":16090},{"ns":0,"title":"Mark Strong","count":16073},{"ns":0,"title":"Annabelle (film)","count":16020},{"ns":0,"title":"Despacito","count":16007},{"ns":0,"title":"Null","count":15997},{"ns":0,"title":"Riverdale (2017 TV series)","count":15983},{"ns":0,"title":"The Star-Spangled Banner","count":15955},{"ns":0,"title":"Andy Dalton","count":15924},{"ns":0,"title":"Russia","count":15893},{"ns":0,"title":"List of Presidents of the United States","count":15863},{"ns":0,"title":"Aung San Suu Kyi","count":15810},{"ns":0,"title":"The Orville","count":15706},{"ns":0,"title":"The Mummy (2017 film)","count":15674},{"ns":0,"title":"Guam","count":15635},{"ns":0,"title":"Bill Gates","count":15542},{"ns":0,"title":"Aztec society","count":15528},{"ns":0,"title":"Alien: Covenant","count":15512},{"ns":0,"title":"Jessica Biel","count":15344},{"ns":0,"title":"Spider-Man: Homecoming","count":15299},{"ns":0,"title":"Murder of Holly Bobo","count":15285},{"ns":0,"title":"President of Singapore","count":15256},{"ns":0,"title":"Reese Witherspoon","count":15239},{"ns":0,"title":"Billie Jean King","count":15194},{"ns":0,"title":"Montgomery Gentry","count":15064},{"ns":0,"title":"The Handmaid's Tale (TV series)","count":14967},{"ns":0,"title":"Justin Bieber","count":14916},{"ns":0,"title":"Michael Underwood","count":14908},{"ns":0,"title":"Ozark (TV series)","count":14903},{"ns":0,"title":"Hyperloop","count":14889},{"ns":0,"title":"Germany","count":14805},{"ns":0,"title":"BTS (band)","count":14679},{"ns":0,"title":"Dr. Luke","count":14621},{"ns":0,"title":"Marvin Lewis","count":14609},{"ns":0,"title":"New York City","count":14607},{"ns":0,"title":"Kangana Ranaut","count":14586},{"ns":0,"title":"Lupus","count":14577},{"ns":0,"title":"Marilyn Monroe","count":14504},{"ns":0,"title":"Harrison Ford","count":14465},{"ns":0,"title":"The Walking Dead (TV series)","count":14402},{"ns":0,"title":"Willie Monroe Jr.","count":14397},{"ns":0,"title":"Leonardo DiCaprio","count":14387},{"ns":0,"title":"Goldie Hawn","count":14288},{"ns":0,"title":"Heidi Klum","count":14286},{"ns":0,"title":"Amazon.com","count":14238},{"ns":0,"title":"7 July 2005 London bombings","count":14203},{"ns":0,"title":"Kazakhstan","count":14132},{"ns":0,"title":"Conor McGregor","count":14027},{"ns":0,"title":"Mark Wahlberg","count":14001},{"ns":0,"title":"16th Street Baptist Church bombing","count":13999},{"ns":0,"title":"Marilyn Manson","count":13979},{"ns":0,"title":"Trypophobia","count":13946},{"ns":0,"title":"Bette Davis","count":13913},{"ns":0,"title":"Keanu Reeves","count":13853},{"ns":0,"title":"Blockchain","count":13853},{"ns":0,"title":"Al-Buwaydah","count":13834},{"ns":0,"title":"Buwaydah","count":13832},{"ns":0,"title":"John Wayne Gacy","count":13822},{"ns":0,"title":"Mila Kunis","count":13822},{"ns":0,"title":"Johnny Depp","count":13820},{"ns":4,"title":"Wikipedia:Articles for Deletion","count":13768},{"ns":4,"title":"Wikipedia:Citation needed","count":13709},{"ns":0,"title":"List of South Park episodes","count":13671},{"ns":0,"title":"Elizabeth I of England","count":13647},{"ns":0,"title":"Ku Klux Klan","count":13608},{"ns":0,"title":"Al-Bassah","count":13574},{"ns":0,"title":"Al-Bassa","count":13573},{"ns":0,"title":"Salmon (protocol)","count":13556},{"ns":0,"title":"Cassini–Huygens retirement","count":13553},{"ns":0,"title":"Winston Churchill","count":13497},{"ns":0,"title":"Post Malone","count":13492},{"ns":0,"title":"Elton John","count":13471},{"ns":0,"title":"A Song of Ice and Fire","count":13466},{"ns":0,"title":"Jeepers Creepers 3","count":13457},{"ns":0,"title":"NATO phonetic alphabet","count":13451},{"ns":0,"title":"Melania Trump","count":13442},{"ns":0,"title":"Forum spam","count":13401},{"ns":0,"title":"Ansel Elgort","count":13396},{"ns":0,"title":"Nazanin Boniadi","count":13392},{"ns":0,"title":"Amy Spanger","count":13380},{"ns":0,"title":"'Ain Ghazal","count":13363},{"ns":0,"title":"American Civil War","count":13336},{"ns":0,"title":"Diana, Princess of Wales","count":13321},{"ns":0,"title":"Henry VIII of England","count":13320},{"ns":0,"title":"Ayn Ghazal","count":13314},{"ns":0,"title":"George VI","count":13313},{"ns":0,"title":"Demi Lovato","count":13296},{"ns":0,"title":"Huygens (spacecraft)","count":13291},{"ns":0,"title":"List of states with nuclear weapons","count":13280},{"ns":0,"title":"Michelle Pfeiffer","count":13267},{"ns":0,"title":"Westworld (TV series)","count":13252},{"ns":0,"title":"Goran Dragić","count":13244},{"ns":0,"title":"Jonathan Brandis","count":13225},{"ns":0,"title":"Scarlett Johansson","count":13222},{"ns":0,"title":"Ten Commandments","count":13221},{"ns":0,"title":"Jermain Defoe","count":13203},{"ns":0,"title":"Shakira","count":13193},{"ns":0,"title":"Ed Sheeran","count":13177},{"ns":0,"title":"Jesus","count":13162},{"ns":0,"title":"The Big Bang Theory","count":13136},{"ns":0,"title":"South Korea","count":13112},{"ns":0,"title":"Project Runway (season 16)","count":13088},{"ns":0,"title":"Abraham Lincoln","count":13061},{"ns":0,"title":"Beyoncé","count":13023},{"ns":0,"title":"Rosh Hashanah","count":13021},{"ns":0,"title":"John F. Kennedy","count":13018},{"ns":0,"title":"Star Wars","count":13007},{"ns":0,"title":"Rebecca Adlington","count":12999},{"ns":0,"title":"List of highest-grossing films","count":12985},{"ns":0,"title":"Star Trek: Discovery","count":12976},{"ns":0,"title":"Anthony Randolph","count":12957},{"ns":0,"title":"Revelation 12 Sign","count":12949},{"ns":0,"title":"Serena Williams","count":12939},{"ns":0,"title":"Mahesh Babu","count":12931},{"ns":0,"title":"Abdul Karim (the Munshi)","count":12895},{"ns":0,"title":"Islamic State of Iraq and the Levant","count":12871},{"ns":0,"title":"LeBron James","count":12865},{"ns":0,"title":"Sunny Leone","count":12855},{"ns":0,"title":"Zoey Tur","count":12844},{"ns":0,"title":"Arnold Schwarzenegger","count":12817},{"ns":0,"title":"John Paul Getty Jr.","count":12811},{"ns":0,"title":"1. FC Köln","count":12780},{"ns":0,"title":"Battle of the Sexes (tennis)","count":12760},{"ns":0,"title":"Billie Lourd","count":12749},{"ns":0,"title":"Kray twins","count":12722},{"ns":0,"title":"Top of the Lake","count":12720},{"ns":0,"title":"The Story of My Experiments with Truth","count":12704},{"ns":0,"title":"Hurricane Katrina","count":12701},{"ns":0,"title":"Ariel Winter","count":12676},{"ns":0,"title":"The Walking Dead (season 8)","count":12673},{"ns":0,"title":"Ken Zampese","count":12647},{"ns":0,"title":"Lupus erythematosus","count":12635},{"ns":0,"title":"Victoria & Abdul","count":12630},{"ns":0,"title":"Twin Peaks (2017 TV series)","count":12626},{"ns":0,"title":"Jackie Chan","count":12594},{"ns":0,"title":"Pakistan","count":12593},{"ns":10,"title":"Template:Syrian Civil War detailed map","count":12587},{"ns":0,"title":"District line","count":12580},{"ns":0,"title":"Heath Ledger","count":12555},{"ns":0,"title":"South Park","count":12548},{"ns":0,"title":"Mark Zuckerberg","count":12521},{"ns":0,"title":"Interstellar (film)","count":12506},{"ns":0,"title":"List of Marvel Cinematic Universe films","count":12505},{"ns":0,"title":"Gurmeet Ram Rahim Singh","count":12496},{"ns":0,"title":"Generation X","count":12479},{"ns":0,"title":"Brian Gleeson (actor)","count":12475},{"ns":0,"title":"Elvis Presley","count":12470},{"ns":0,"title":"IPhone 8","count":12440},{"ns":0,"title":"Jason Momoa","count":12432},{"ns":0,"title":"Google Chrome","count":12429},{"ns":0,"title":"Death Note (2017 film)","count":12383},{"ns":0,"title":"William Shakespeare","count":12376},{"ns":0,"title":"Rose Leslie","count":12342},{"ns":0,"title":"Standard deviation","count":12327},{"ns":0,"title":"Kim Kardashian","count":12306},{"ns":0,"title":"Guardians of the Galaxy Vol. 2","count":12288},{"ns":0,"title":"Rapunzel syndrome","count":12256},{"ns":0,"title":"Zayn Malik","count":12248},{"ns":0,"title":"Baahubali 2: The Conclusion","count":12241},{"ns":0,"title":"2017 Parsons Green bombing","count":12233},{"ns":0,"title":"Clint Eastwood","count":12232},{"ns":0,"title":"Domhnall Gleeson","count":12214},{"ns":0,"title":"Indian Rebellion of 1857","count":12196},{"ns":0,"title":"Shubh Mangal Savdhan (2017 film)","count":12176},{"ns":0,"title":"Alexander Hamilton","count":12158},{"ns":0,"title":"Stephen Hawking","count":12145},{"ns":0,"title":"Pete Domenici","count":12138},{"ns":0,"title":"Jaleel White","count":12135},{"ns":0,"title":"Nicole Kidman","count":12107},{"ns":0,"title":"Mexico","count":12099},{"ns":0,"title":"It Comes at Night","count":12083},{"ns":0,"title":"First Amendment to the United States Constitution","count":12076},{"ns":0,"title":"Nina Dobrev","count":12059},{"ns":0,"title":"Lucknow Central","count":12055},{"ns":0,"title":"Joseph Stalin","count":12053},{"ns":0,"title":"Lily James","count":12038},{"ns":0,"title":"HTTPS","count":12019},{"ns":0,"title":"Inhumans (TV series)","count":12017},{"ns":0,"title":"Maurice Gibb","count":11984},{"ns":0,"title":"Transformers (film series)","count":11974},{"ns":0,"title":"Alexis Ohanian","count":11941},{"ns":0,"title":"2018 FIFA World Cup","count":11925},{"ns":0,"title":"Michael Jordan","count":11919},{"ns":0,"title":"Generation Z","count":11915},{"ns":0,"title":"Idris Elba","count":11895},{"ns":0,"title":"Harry Potter","count":11866},{"ns":0,"title":"Star Wars: The Last Jedi","count":11860},{"ns":0,"title":"Neymar","count":11839},{"ns":0,"title":"Equifax","count":11825},{"ns":0,"title":"Bids for the 2024 and 2028 Summer Olympics","count":11824},{"ns":0,"title":"Iceland","count":11796},{"ns":0,"title":"France","count":11792},{"ns":0,"title":"Channel S","count":11780},{"ns":0,"title":"Illuminati","count":11772},{"ns":0,"title":"Enceladus","count":11768},{"ns":0,"title":"Alexandra Daddario","count":11759},{"ns":0,"title":"2017–18 UEFA Champions League","count":11753},{"ns":0,"title":"List of Suits episodes","count":11753},{"ns":0,"title":"Christopher Columbus","count":11739},{"ns":0,"title":"Bangladesh","count":11679},{"ns":0,"title":"Charles, Prince of Wales","count":11665}],"general":{"mainpage":"Main Page","base":"https://en.wikipedia.org/wiki/Main_Page","sitename":"Wikipedia","logo":"//en.wikipedia.org/static/images/project-logos/enwiki.png","generator":"MediaWiki 1.30.0-wmf.18","phpversion":"5.6.99-hhvm","phpsapi":"srv","hhvmversion":"3.18.2","dbtype":"mysql","dbversion":"10.0.31-MariaDB","imagewhitelistenabled":true,"langconversion":true,"titleconversion":true,"linkprefixcharset":"","linkprefix":"","linktrail":"/^([a-z]+)(.*)$/sD","legaltitlechars":" %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+","invalidusernamechars":"@:","allunicodefixes":false,"fixarabicunicode":true,"fixmalayalamunicode":true,"git-hash":"a77f850253b716baf7f5e9a6859f5ab546256fd0","git-branch":"wmf/1.30.0-wmf.18","case":"first-letter","lang":"en","fallback":[],"rtl":false,"fallback8bitEncoding":"windows-1252","readonly":false,"writeapi":true,"maxarticlesize":2097152,"timezone":"UTC","timeoffset":0,"articlepath":"/wiki/$1","scriptpath":"/w","script":"/w/index.php","variantarticlepath":false,"server":"//en.wikipedia.org","servername":"en.wikipedia.org","wikiid":"enwiki","time":"2017-09-17T20:22:12Z","misermode":true,"uploadsenabled":true,"maxuploadsize":4294967296,"minuploadchunksize":1024,"galleryoptions":{"imagesPerRow":0,"imageWidth":120,"imageHeight":120,"captionLength":true,"showBytes":true,"mode":"traditional","showDimensions":true},"thumblimits":{"0":120,"1":150,"2":180,"3":200,"4":220,"5":250,"6":300,"7":400},"imagelimits":{"0":{"width":320,"height":240},"1":{"width":640,"height":480},"2":{"width":800,"height":600},"3":{"width":1024,"height":768},"4":{"width":1280,"height":1024}},"favicon":"//en.wikipedia.org/static/favicon/wikipedia.ico","centralidlookupprovider":"CentralAuth","allcentralidlookupproviders":["CentralAuth","local"],"interwikimagic":true,"magiclinks":{"ISBN":true,"PMID":true,"RFC":true},"wmf-config":{"wmfMasterDatacenter":"eqiad"},"citeresponsivereferences":true,"linter":{"high":["deletable-table-tag","pwrap-bug-workaround","self-closed-tag","tidy-whitespace-bug"],"medium":["bogus-image-options","fostered","misnested-tag"],"low":["missing-end-tag","obsolete-tag","stripped-tag"]},"pageviewservice-supported-metrics":{"pageviews":{"pageviews":true,"uniques":false},"siteviews":{"pageviews":true,"uniques":true},"mostviewed":{"pageviews":true,"uniques":false}}},"statistics":{"pages":43112467,"articles":5478623,"edits":910438071,"images":854622,"users":31786628,"activeusers":126428,"admins":1248,"jobs":211411,"queued-massmessages":0},"siteviews":{"2017-09-09":217548429,"2017-09-10":238384007,"2017-09-11":243613490,"2017-09-12":237288464,"2017-09-13":236317353,"2017-09-14":236182125,"2017-09-15":228605674}}}"""
cache = {'info': {'status': 200}, 'query': query, 'response': response}
| 3,508.75
| 27,845
| 0.649234
| 4,161
| 28,070
| 4.380678
| 0.385004
| 0.078835
| 0.210226
| 0.009052
| 0.051569
| 0.019969
| 0.005267
| 0
| 0
| 0
| 0
| 0.13003
| 0.027111
| 28,070
| 7
| 27,846
| 4,010
| 0.537222
| 0.000713
| 0
| 0
| 0
| 0.666667
| 0.997041
| 0.907266
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3e60096ddcb4155079ad0ec97d7a8d34d9d38817
| 9,183
|
py
|
Python
|
phasor/mechanical/sources.py
|
mccullerlp/OpenLoop
|
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
|
[
"Apache-2.0"
] | 5
|
2018-02-28T00:43:37.000Z
|
2020-01-21T11:39:15.000Z
|
phasor/mechanical/sources.py
|
mccullerlp/OpenLoop
|
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
|
[
"Apache-2.0"
] | 1
|
2019-09-07T23:15:43.000Z
|
2019-09-07T23:15:43.000Z
|
phasor/mechanical/sources.py
|
mccullerlp/OpenLoop
|
fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d
|
[
"Apache-2.0"
] | 1
|
2020-08-21T04:42:09.000Z
|
2020-08-21T04:42:09.000Z
|
# -*- coding: utf-8 -*-
"""
"""
from __future__ import division, print_function, unicode_literals
import declarative
from ..utilities.future_from_2 import str, super
from . import ports
from . import smatrix
from . import elements
class DisplacementSource(smatrix.SMatrix1PortBase):
def S11_by_freq(self, F):
return -1
@declarative.mproperty
def d_DC(self, val = 0):
return val
@declarative.dproperty
def d(self):
return ports.SignalInPort()
@declarative.mproperty
def fkey(self):
return ports.DictKey({
ports.ClassicalFreqKey: ports.FrequencyKey({}),
})
def system_setup_ports_initial(self, ports_algorithm):
if self.d_DC != 0:
ports_algorithm.coherent_sources_needed(self.pm_A.o, self.fkey)
return
def system_setup_ports(self, ports_algorithm):
super().system_setup_ports(ports_algorithm)
for kfrom in ports_algorithm.port_update_get(self.d.i):
ports_algorithm.port_coupling_needed(self.pm_A.o, kfrom)
for kto in ports_algorithm.port_update_get(self.pm_A.o):
ports_algorithm.port_coupling_needed(self.d.i, kto)
return
def system_setup_coupling(self, matrix_algorithm):
#TODO setup DC
super().system_setup_coupling(matrix_algorithm)
if self.d_DC != 0:
matrix_algorithm.coherent_sources_insert(
self.pm_A.o,
self.fkey,
self.d_DC
)
for kfrom in matrix_algorithm.port_set_get(self.d.i):
matrix_algorithm.port_coupling_insert(
self.d.i,
kfrom,
self.pm_A.o,
kfrom,
1,
)
return
class ForceSource(smatrix.SMatrix1PortBase):
def S11_by_freq(self, F):
return 1
@declarative.mproperty
def F_DC(self, val = 0):
#TODO set F_DC
return val
@declarative.dproperty
def F(self):
return ports.SignalInPort(sname = 'F')
@declarative.mproperty
def fkey(self):
return ports.DictKey({
ports.ClassicalFreqKey: ports.FrequencyKey({}),
})
def system_setup_ports_initial(self, ports_algorithm):
if self.F_DC != 0:
ports_algorithm.coherent_sources_needed(self.pm_A.o, self.fkey)
return
def system_setup_ports(self, ports_algorithm):
super().system_setup_ports(ports_algorithm)
for kfrom in ports_algorithm.port_update_get(self.F.i):
ports_algorithm.port_coupling_needed(self.pm_A.o, kfrom)
for kto in ports_algorithm.port_update_get(self.pm_A.o):
ports_algorithm.port_coupling_needed(self.F.i, kto)
return
def system_setup_coupling(self, matrix_algorithm):
#TODO setup DC
super().system_setup_coupling(matrix_algorithm)
if self.F_DC != 0:
matrix_algorithm.coherent_sources_insert(
self.pm_A.o,
self.fkey,
self.F_DC * self.Zm_termination
)
for kfrom in matrix_algorithm.port_set_get(self.F.i):
matrix_algorithm.port_coupling_insert(
self.F.i,
kfrom,
self.pm_A.o,
kfrom,
self.Zm_termination,
)
return
class DisplacementSourceBalanced(smatrix.SMatrix2PortBase):
"""
TODO consider making this the ForceSource but with the "pm_B" port autoterminate with a short
"""
def S11_by_freq(self, F):
return 0
def S12_by_freq(self, F):
return 1
def S21_by_freq(self, F):
return 1
def S22_by_freq(self, F):
return 0
@declarative.mproperty
def F_DC(self, val = 0):
return val
@declarative.dproperty
def F(self):
return ports.SignalInPort()
@declarative.mproperty
def d_DC(self, val = 0):
return val
@declarative.dproperty
def d(self):
return ports.SignalInPort()
@declarative.mproperty
def fkey(self):
return ports.DictKey({
ports.ClassicalFreqKey: ports.FrequencyKey({}),
})
def system_setup_ports_initial(self, ports_algorithm):
if self.d_DC != 0 or self.F_DC != 0:
ports_algorithm.coherent_sources_needed(self.pm_A.o, self.fkey)
ports_algorithm.coherent_sources_needed(self.pm_B.o, self.fkey)
return
def system_setup_ports(self, ports_algorithm):
super().system_setup_ports(ports_algorithm)
for port2 in [self.pm_A, self.pm_B]:
for kfrom in ports_algorithm.port_update_get(self.F.i):
ports_algorithm.port_coupling_needed(port2.o, kfrom)
for kto in ports_algorithm.port_update_get(port2.o):
ports_algorithm.port_coupling_needed(self.F.i, kto)
for kfrom in ports_algorithm.port_update_get(self.d.i):
ports_algorithm.port_coupling_needed(port2.o, kfrom)
for kto in ports_algorithm.port_update_get(port2.o):
ports_algorithm.port_coupling_needed(self.d.i, kto)
return
def system_setup_coupling(self, matrix_algorithm):
#TODO setup DC
super().system_setup_coupling(matrix_algorithm)
#TODO, not sure about the 1/2 everywhere
_2 = self.symbols.number(2)
if self.d_DC != 0:
matrix_algorithm.coherent_sources_insert(
self.pm_A.o,
self.fkey,
self.d_DC / _2,
)
matrix_algorithm.coherent_sources_insert(
self.pm_B.o,
self.fkey,
-self.d_DC / _2,
)
if self.F_DC != 0:
matrix_algorithm.coherent_sources_insert(
self.pm_A.o,
self.fkey,
self.Zm_termination * self.F_DC / _2,
)
matrix_algorithm.coherent_sources_insert(
self.pm_B.o,
self.fkey,
self.Zm_termination * self.F_DC / _2,
)
for kfrom in matrix_algorithm.port_set_get(self.d.i):
matrix_algorithm.port_coupling_insert(
self.d.i,
kfrom,
self.pm_A.o,
kfrom,
1 / _2,
)
matrix_algorithm.port_coupling_insert(
self.d.i,
kfrom,
self.pm_B.o,
kfrom,
-1 / _2,
)
for kfrom in matrix_algorithm.port_set_get(self.F.i):
matrix_algorithm.port_coupling_insert(
self.F.i,
kfrom,
self.pm_A.o,
kfrom,
self.Zm_termination / _2,
)
matrix_algorithm.port_coupling_insert(
self.F.i,
kfrom,
self.pm_B.o,
kfrom,
self.Zm_termination / _2,
)
class ForceSourceBalanced(smatrix.SMatrix2PortBase):
def S11_by_freq(self, F):
return 1
def S12_by_freq(self, F):
return 0
def S21_by_freq(self, F):
return 0
def S22_by_freq(self, F):
return 1
@declarative.mproperty
def F_DC(self, val = 0):
return val
@declarative.dproperty
def F(self):
return ports.SignalInPort()
@declarative.mproperty
def fkey(self):
return ports.DictKey({
ports.ClassicalFreqKey: ports.FrequencyKey({}),
})
def system_setup_ports_initial(self, ports_algorithm):
ports_algorithm.coherent_sources_needed(self.pm_A.o, self.fkey)
ports_algorithm.coherent_sources_needed(self.pm_B.o, self.fkey)
return
def system_setup_ports(self, ports_algorithm):
super().system_setup_ports(ports_algorithm)
for port2 in [self.pm_A, self.pm_B]:
for kfrom in ports_algorithm.port_update_get(self.F.i):
ports_algorithm.port_coupling_needed(port2.o, kfrom)
for kto in ports_algorithm.port_update_get(port2.o):
ports_algorithm.port_coupling_needed(self.F.i, kto)
return
def system_setup_coupling(self, matrix_algorithm):
#TODO setup DC
super().system_setup_coupling(matrix_algorithm)
matrix_algorithm.coherent_sources_insert(
self.pm_A.o,
self.fkey,
self.Zm_termination * self.F_DC,
)
matrix_algorithm.coherent_sources_insert(
self.pm_B.o,
self.fkey,
self.Zm_termination * self.F_DC,
)
for kfrom in matrix_algorithm.port_set_get(self.F.i):
matrix_algorithm.port_coupling_insert(
self.F.i,
kfrom,
self.pm_A.o,
kfrom,
self.Zm_termination,
)
matrix_algorithm.port_coupling_insert(
self.F.i,
kfrom,
self.pm_B.o,
kfrom,
self.Zm_termination,
)
| 29.060127
| 97
| 0.581727
| 1,099
| 9,183
| 4.583258
| 0.083712
| 0.105618
| 0.027794
| 0.028588
| 0.903911
| 0.903911
| 0.903514
| 0.871352
| 0.866587
| 0.866587
| 0
| 0.011784
| 0.33464
| 9,183
| 315
| 98
| 29.152381
| 0.812602
| 0.023957
| 0
| 0.850202
| 0
| 0
| 0.000112
| 0
| 0
| 0
| 0
| 0.009524
| 0
| 1
| 0.145749
| false
| 0
| 0.024292
| 0.097166
| 0.323887
| 0.004049
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
e48e8a3fa1650893ecfc8b5f061a60160ec2a04e
| 472
|
py
|
Python
|
Python/find-smallest-letter-greater-than-target.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | 1
|
2020-04-29T06:19:44.000Z
|
2020-04-29T06:19:44.000Z
|
Python/find-smallest-letter-greater-than-target.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | null | null | null |
Python/find-smallest-letter-greater-than-target.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | null | null | null |
class Solution:
def nextGreatestLetter(self, letters, target):
return chr(min([ord(x) - ord(target) if ord(x) - ord(target) > 0 else ord(x) - ord(target) + 26 for x in letters]) + ord(target)) if chr(min([ord(x) - ord(target) if ord(x) - ord(target) > 0 else ord(x) - ord(target) + 26 for x in letters]) + ord(target)).isalpha() else chr(min([ord(x) - ord(target) if ord(x) - ord(target) > 0 else ord(x) - ord(target) + 26 for x in letters]) + ord(target)-26)
| 118
| 404
| 0.635593
| 84
| 472
| 3.571429
| 0.22619
| 0.36
| 0.21
| 0.39
| 0.76
| 0.76
| 0.76
| 0.76
| 0.76
| 0.76
| 0
| 0.028351
| 0.177966
| 472
| 3
| 405
| 157.333333
| 0.744845
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 13
|
e4c3883aa3227ea850fc2680637b634fc8119cff
| 706
|
py
|
Python
|
build.py
|
hythl0day/HetuScript
|
4d1d201834ff2ad95bc21db9efc80ee0f9e4e723
|
[
"MIT"
] | 3
|
2020-08-31T11:53:00.000Z
|
2020-10-13T03:27:25.000Z
|
build.py
|
hythl0day/HetuScript
|
4d1d201834ff2ad95bc21db9efc80ee0f9e4e723
|
[
"MIT"
] | null | null | null |
build.py
|
hythl0day/HetuScript
|
4d1d201834ff2ad95bc21db9efc80ee0f9e4e723
|
[
"MIT"
] | null | null | null |
import os
os.system('dart packages/hetu_script_dev_tools/bin/cli_tool.dart compile lib/core/main.ht -o packages/hetu_script/lib/preincludes/preinclude_module.dart -a "hetuCoreModule"')
os.system('dart packages/hetu_script_dev_tools/bin/cli_tool.dart compile lib/console/console.ht -o packages/hetu_script_dev_tools/lib/preincludes/preinclude_module.dart -a "consoleModule"')
# os.system('dart packages/hetu_script_dev_tools/bin/cli_tool.dart compile packages/hetu_script_nlp_plugin/lib/wenyan/lib/core/main.ht -o packages/hetu_script_nlp_plugin/lib/wenyan/lib/preincludes/preinclude_module.dart -a "wenyanCoreModule"')
os.system('dart pub global activate --source path packages/hetu_script_dev_tools')
| 70.6
| 243
| 0.835694
| 112
| 706
| 5.017857
| 0.303571
| 0.170819
| 0.256228
| 0.186833
| 0.814947
| 0.717082
| 0.535587
| 0.535587
| 0.325623
| 0.325623
| 0
| 0
| 0.053824
| 706
| 9
| 244
| 78.444444
| 0.841317
| 0.34136
| 0
| 0
| 0
| 0.5
| 0.87689
| 0.596112
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
e4fcea1b38b39f04fb0ec3cebf84202888d66feb
| 42
|
py
|
Python
|
app/blueprints/user/__init__.py
|
eduardmelnychenko/make_your_own_url
|
bfe140198f05faddf6bf908f2c5fcce25105c15a
|
[
"MIT"
] | null | null | null |
app/blueprints/user/__init__.py
|
eduardmelnychenko/make_your_own_url
|
bfe140198f05faddf6bf908f2c5fcce25105c15a
|
[
"MIT"
] | null | null | null |
app/blueprints/user/__init__.py
|
eduardmelnychenko/make_your_own_url
|
bfe140198f05faddf6bf908f2c5fcce25105c15a
|
[
"MIT"
] | null | null | null |
from app.blueprints.user.views import user
| 42
| 42
| 0.857143
| 7
| 42
| 5.142857
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 42
| 1
| 42
| 42
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 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
| 1
|
0
| 7
|
9039c948fd9a805dfd4c8cdccad45ff7d1dca63e
| 52
|
py
|
Python
|
initdb.py
|
babyline838/RegSys
|
212cb6e68d15e9f46845bc6cdc3a08218184dde7
|
[
"MIT"
] | null | null | null |
initdb.py
|
babyline838/RegSys
|
212cb6e68d15e9f46845bc6cdc3a08218184dde7
|
[
"MIT"
] | null | null | null |
initdb.py
|
babyline838/RegSys
|
212cb6e68d15e9f46845bc6cdc3a08218184dde7
|
[
"MIT"
] | null | null | null |
from index import db
from index import Computer,GPU
| 17.333333
| 30
| 0.826923
| 9
| 52
| 4.777778
| 0.666667
| 0.418605
| 0.697674
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153846
| 52
| 2
| 31
| 26
| 0.977273
| 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
| 1
| 0
|
0
| 7
|
5f3e7801ff61d7026ed445517c4ca42de1155193
| 2,529
|
py
|
Python
|
access/tests/test_decorators.py
|
antonagestam/django-access-tools
|
ffb65be0a0fc73537eef467f676f330b7507b287
|
[
"MIT"
] | 1
|
2018-12-09T20:54:20.000Z
|
2018-12-09T20:54:20.000Z
|
access/tests/test_decorators.py
|
antonagestam/django-access-tools
|
ffb65be0a0fc73537eef467f676f330b7507b287
|
[
"MIT"
] | 4
|
2018-12-12T00:10:26.000Z
|
2020-02-02T12:52:01.000Z
|
access/tests/test_decorators.py
|
antonagestam/django-access-tools
|
ffb65be0a0fc73537eef467f676f330b7507b287
|
[
"MIT"
] | null | null | null |
from django.test import TestCase
from access.decorators import access_requirements
from .utils import (
SuccessfulRequirement,
UnSuccessfulRequirement,
successful_response,
unsuccessful_response,
)
def test_view(request, *args, **kwargs):
test_view.dispatch_called = True
return successful_response
class TestAccessRequirementsDecorator(TestCase):
def setUp(self):
self.request = {}
test_view.dispatch_called = False
def test_successfull(self):
first = SuccessfulRequirement()
second = SuccessfulRequirement()
view = access_requirements(first, second)(test_view)
result = view(self.request)
self.assertTrue(test_view.dispatch_called)
self.assertEqual(result, successful_response)
def test_first_unfulfilled(self):
first = UnSuccessfulRequirement()
second = SuccessfulRequirement()
view = access_requirements(first, second)(test_view)
result = view(self.request)
self.assertFalse(test_view.dispatch_called)
self.assertEqual(result, unsuccessful_response)
def test_second_unfulfilled(self):
first = SuccessfulRequirement()
second = UnSuccessfulRequirement()
view = access_requirements(first, second)(test_view)
result = view(self.request)
self.assertFalse(test_view.dispatch_called)
self.assertEqual(result, unsuccessful_response)
class TestAsDecorator(TestCase):
def setUp(self):
self.request = {}
test_view.dispatch_called = False
def test_successful(self):
first = SuccessfulRequirement()
second = SuccessfulRequirement()
view = second.decorator(first.decorator(test_view))
result = view(self.request)
self.assertTrue(test_view.dispatch_called)
self.assertEqual(result, successful_response)
def test_first_unfulfilled(self):
first = UnSuccessfulRequirement()
second = SuccessfulRequirement()
view = second.decorator(first.decorator(test_view))
result = view(self.request)
self.assertFalse(test_view.dispatch_called)
self.assertEqual(result, unsuccessful_response)
def test_second_unfulfilled(self):
first = SuccessfulRequirement()
second = UnSuccessfulRequirement()
view = second.decorator(first.decorator(test_view))
result = view(self.request)
self.assertFalse(test_view.dispatch_called)
self.assertEqual(result, unsuccessful_response)
| 33.276316
| 60
| 0.703836
| 244
| 2,529
| 7.098361
| 0.155738
| 0.073903
| 0.083141
| 0.114319
| 0.812933
| 0.812933
| 0.778291
| 0.778291
| 0.778291
| 0.778291
| 0
| 0
| 0.213919
| 2,529
| 75
| 61
| 33.72
| 0.871227
| 0
| 0
| 0.754098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196721
| 1
| 0.147541
| false
| 0
| 0.04918
| 0
| 0.245902
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.