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
c0c25bf174c792a5020e871e033fa75eb62e7d96
194
py
Python
questions/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
7
2020-08-26T12:32:50.000Z
2020-09-20T09:17:12.000Z
questions/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
null
null
null
questions/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
3
2020-08-27T06:06:43.000Z
2020-10-10T15:53:26.000Z
from django.contrib import admin from .models import Question, Tags, Answer, Liker admin.site.register(Question) admin.site.register(Tags) admin.site.register(Answer) admin.site.register(Liker)
27.714286
49
0.814433
28
194
5.642857
0.428571
0.227848
0.43038
0
0
0
0
0
0
0
0
0
0.07732
194
7
50
27.714286
0.882682
0
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
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
c0c4625a595becfd84396d44a58b81b3795278c2
107
py
Python
training/batch/collate/__init__.py
MoritzWillig/flowbias
d08e1d8cd250ed147060d374f648e39a23ef16f5
[ "Apache-2.0" ]
null
null
null
training/batch/collate/__init__.py
MoritzWillig/flowbias
d08e1d8cd250ed147060d374f648e39a23ef16f5
[ "Apache-2.0" ]
null
null
null
training/batch/collate/__init__.py
MoritzWillig/flowbias
d08e1d8cd250ed147060d374f648e39a23ef16f5
[ "Apache-2.0" ]
null
null
null
from . import vbatch_collate CombinedDatasetVBatchCollator = vbatch_collate.CombinedDatasetVBatchCollator
26.75
76
0.897196
8
107
11.75
0.625
0.276596
0.893617
0
0
0
0
0
0
0
0
0
0.074766
107
3
77
35.666667
0.949495
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
6
c0c6d75fadc00a3cc07fa42fb8344736ace809a1
39
py
Python
website_sale_add_to_cart/controllers/__init__.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
1
2020-03-01T03:04:21.000Z
2020-03-01T03:04:21.000Z
website_sale_add_to_cart/controllers/__init__.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
null
null
null
website_sale_add_to_cart/controllers/__init__.py
factorlibre/website-addons
9a0c7a238e2b6030d57f7a08d48816b4f2431524
[ "MIT" ]
3
2019-07-29T20:23:16.000Z
2021-01-07T20:51:24.000Z
from . import website_sale_add_to_cart
19.5
38
0.871795
7
39
4.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.102564
39
1
39
39
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
8d0481849953dab3f61b34727927fa5652a36f4b
12,008
py
Python
config/manifold_mixup/manifold_model.py
lx10077/optimpy
8d3a4faa1e7291297497446fc77df5409acd73b9
[ "MIT" ]
null
null
null
config/manifold_mixup/manifold_model.py
lx10077/optimpy
8d3a4faa1e7291297497446fc77df5409acd73b9
[ "MIT" ]
null
null
null
config/manifold_mixup/manifold_model.py
lx10077/optimpy
8d3a4faa1e7291297497446fc77df5409acd73b9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __all__ = ["ResNet18", "ResNet34", "ResNet50", "ResNet101", "ResNet152", "PreActResNet18", "PreActResNet34", "PreActResNet50", "PreActResNet101", "PreActResNet152"] use_cuda = torch.cuda.is_available() # ====================================================================================== # # Model helper # ====================================================================================== # def to_one_hot(inp, num_classes): y_onehot = torch.zeros(inp.size(0), num_classes) y_onehot.scatter_(1, inp.unsqueeze(1).cpu(), 1) y_onehot.requires_grad = False return y_onehot.cuda() if use_cuda else y_onehot def mixup_process(out, target_reweighted, lam): indices = np.random.permutation(out.size(0)) out = out * lam + out[indices] * (1 - lam) target_shuffled_onehot = target_reweighted[indices] return out, target_reweighted, target_shuffled_onehot # ====================================================================================== # # ResNet for manifold mixup # ====================================================================================== # class BasicBlock(nn.Module): expansion = 1 def __init__(self, in_planes, planes, stride=1): super(BasicBlock, self).__init__() self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) self.bn1 = nn.BatchNorm2d(planes) self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False) self.bn2 = nn.BatchNorm2d(planes) self.shortcut = nn.Sequential() if stride != 1 or in_planes != self.expansion*planes: self.shortcut = nn.Sequential( nn.Conv2d(in_planes, self.expansion*planes, kernel_size=1, stride=stride, bias=False), nn.BatchNorm2d(self.expansion*planes) ) def forward(self, x): out = F.relu(self.bn1(self.conv1(x))) out = self.bn2(self.conv2(out)) out += self.shortcut(x) out = F.relu(out) return out class Bottleneck(nn.Module): expansion = 4 def __init__(self, in_planes, planes, stride=1): super(Bottleneck, self).__init__() self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=1, bias=False) self.bn1 = nn.BatchNorm2d(planes) self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) self.bn2 = nn.BatchNorm2d(planes) self.conv3 = nn.Conv2d(planes, self.expansion*planes, kernel_size=1, bias=False) self.bn3 = nn.BatchNorm2d(self.expansion*planes) self.shortcut = nn.Sequential() if stride != 1 or in_planes != self.expansion*planes: self.shortcut = nn.Sequential( nn.Conv2d(in_planes, self.expansion*planes, kernel_size=1, stride=stride, bias=False), nn.BatchNorm2d(self.expansion*planes) ) def forward(self, x): out = F.relu(self.bn1(self.conv1(x))) out = F.relu(self.bn2(self.conv2(out))) out = self.bn3(self.conv3(out)) out += self.shortcut(x) out = F.relu(out) return out class ResNet(nn.Module): def __init__(self, block, num_blocks, mixup_hidden, num_classes=10): super(ResNet, self).__init__() self.in_planes = 64 self.mixup_hidden = mixup_hidden self.num_classes = num_classes self.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1, bias=False) self.bn1 = nn.BatchNorm2d(64) self.layer1 = self._make_layer(block, 64, num_blocks[0], stride=1) self.layer2 = self._make_layer(block, 128, num_blocks[1], stride=2) self.layer3 = self._make_layer(block, 256, num_blocks[2], stride=2) self.layer4 = self._make_layer(block, 512, num_blocks[3], stride=2) self.linear = nn.Linear(512*block.expansion, num_classes) def _make_layer(self, block, planes, num_blocks, stride): strides = [stride] + [1]*(num_blocks-1) layers = [] for stride in strides: layers.append(block(self.in_planes, planes, stride)) self.in_planes = planes * block.expansion return nn.Sequential(*layers) def forward(self, x, lam=None, target=None, target_reweighted=None): if self.mixup_hidden: layer_mix = np.random.randint(0, 3) else: layer_mix = 0 out = x if lam is not None: if target_reweighted is None: target_reweighted = to_one_hot(target, self.num_classes) else: assert target is None if layer_mix == 0: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam) out = self.conv1(out) out = F.relu(self.bn1(out)) out = self.layer1(out) if lam is not None and self.mixup_hidden and layer_mix == 1: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam=lam) out = self.layer2(out) if lam is not None and self.mixup_hidden and layer_mix == 2: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam=lam) out = self.layer3(out) out = self.layer4(out) out = F.avg_pool2d(out, 4) out = out.view(out.size(0), -1) out = self.linear(out) if lam is None: return out else: return out, target_reweighted, target_shuffled_onehot def ResNet18(mixup_hidden, num_classes): return ResNet(BasicBlock, [2, 2, 2, 2], mixup_hidden, num_classes) def ResNet34(mixup_hidden, num_classes): return ResNet(BasicBlock, [3, 4, 6, 3], mixup_hidden, num_classes) def ResNet50(mixup_hidden, num_classes): return ResNet(Bottleneck, [3, 4, 6, 3], mixup_hidden, num_classes) def ResNet101(mixup_hidden, num_classes): return ResNet(Bottleneck, [3, 4, 23, 3], mixup_hidden,num_classes) def ResNet152(mixup_hidden, num_classes): return ResNet(Bottleneck, [3, 8, 36, 3], mixup_hidden, num_classes) # ====================================================================================== # # PreActResNet for manifold mixup # ====================================================================================== # class PreActBlock(nn.Module): expansion = 1 def __init__(self, in_planes, planes, stride=1): super(PreActBlock, self).__init__() self.bn1 = nn.BatchNorm2d(in_planes) self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) self.bn2 = nn.BatchNorm2d(planes) self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False) if stride != 1 or in_planes != self.expansion*planes: self.shortcut = nn.Sequential( nn.Conv2d(in_planes, self.expansion*planes, kernel_size=1, stride=stride, bias=False) ) def forward(self, x): out = F.relu(self.bn1(x)) shortcut = self.shortcut(out) if hasattr(self, 'shortcut') else x out = self.conv1(out) out = self.conv2(F.relu(self.bn2(out))) out += shortcut return out class PreActBottleneck(nn.Module): expansion = 4 def __init__(self, in_planes, planes, stride=1): super(PreActBottleneck, self).__init__() self.bn1 = nn.BatchNorm2d(in_planes) self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=1, bias=False) self.bn2 = nn.BatchNorm2d(planes) self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) self.bn3 = nn.BatchNorm2d(planes) self.conv3 = nn.Conv2d(planes, self.expansion*planes, kernel_size=1, bias=False) if stride != 1 or in_planes != self.expansion*planes: self.shortcut = nn.Sequential( nn.Conv2d(in_planes, self.expansion*planes, kernel_size=1, stride=stride, bias=False) ) def forward(self, x): out = F.relu(self.bn1(x)) shortcut = self.shortcut(out) if hasattr(self, 'shortcut') else x out = self.conv1(out) out = self.conv2(F.relu(self.bn2(out))) out = self.conv3(F.relu(self.bn3(out))) out += shortcut return out class PreActResNet(nn.Module): def __init__(self, block, num_blocks, mixup_hidden, initial_channels, num_classes): super(PreActResNet, self).__init__() self.in_planes = initial_channels self.mixup_hidden = mixup_hidden self.num_classes = num_classes self.conv1 = nn.Conv2d(3, initial_channels, kernel_size=3, stride=1, padding=1, bias=False) self.layer1 = self._make_layer(block, initial_channels, num_blocks[0], stride=1) self.layer2 = self._make_layer(block, initial_channels*2, num_blocks[1], stride=2) self.layer3 = self._make_layer(block, initial_channels*4, num_blocks[2], stride=2) self.layer4 = self._make_layer(block, initial_channels*8, num_blocks[3], stride=2) self.linear = nn.Linear(initial_channels*8*block.expansion, num_classes) def _make_layer(self, block, planes, num_blocks, stride): strides = [stride] + [1]*(num_blocks-1) layers = [] for stride in strides: layers.append(block(self.in_planes, planes, stride)) self.in_planes = planes * block.expansion return nn.Sequential(*layers) def compute_h1(self, x): out = x out = self.conv1(out) out = self.layer1(out) return out def compute_h2(self, x): out = x out = self.conv1(out) out = self.layer1(out) out = self.layer2(out) return out def forward(self, x, lam=None, target=None, target_reweighted=None, layer_mix='rand'): if layer_mix == 'rand': if self.mixup_hidden: layer_mix = np.random.randint(0, 2) else: layer_mix = 0 out = x if lam is not None: if target_reweighted is None: target_reweighted = to_one_hot(target, self.num_classes) else: assert target is None if layer_mix == 0: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam) out = self.conv1(out) out = self.layer1(out) if lam is not None and layer_mix == 1: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam=lam) out = self.layer2(out) if lam is not None and layer_mix == 2: out, target_reweighted, target_shuffled_onehot = mixup_process(out, target_reweighted, lam=lam) out = self.layer3(out) out = self.layer4(out) out = F.avg_pool2d(out, 4) out = out.view(out.size(0), -1) out = self.linear(out) if lam is None: return out else: return out, target_reweighted, target_shuffled_onehot def PreActResNet18(mixup_hidden, initial_channels, num_classes): return PreActResNet(PreActBlock, [2, 2, 2, 2], mixup_hidden, initial_channels, num_classes) def PreActResNet34(mixup_hidden, initial_channels, num_classes): return PreActResNet(PreActBlock, [3, 4, 6, 3], mixup_hidden, initial_channels,num_classes) def PreActResNet50(mixup_hidden, initial_channels, num_classes): return PreActResNet(PreActBottleneck, [3, 4, 6, 3], mixup_hidden, initial_channels, num_classes) def PreActResNet101(mixup_hidden, initial_channels, num_classes): return PreActResNet(PreActBottleneck, [3, 4, 23, 3], mixup_hidden, initial_channels, num_classes) def PreActResNet152(mixup_hidden, initial_channels, num_classes): return PreActResNet(PreActBottleneck, [3, 8, 36, 3], mixup_hidden, initial_channels, num_classes)
37.525
107
0.614674
1,534
12,008
4.623859
0.08605
0.045115
0.042859
0.032567
0.860426
0.849147
0.808685
0.768504
0.754406
0.705907
0
0.033058
0.234177
12,008
319
108
37.642633
0.738256
0.049717
0
0.623377
0
0
0.012112
0
0
0
0
0
0.008658
1
0.121212
false
0
0.017316
0.04329
0.285714
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
23bf4cdc564b8677762fc0920ba51bac1ca584e9
277
py
Python
repairing_genomic_gaps/utils/axis_softmax.py
LucaCappelletti94/repairing_genomic_gaps
38d43c732cbd092b52c1eaf0b33a9bd47a14ebd4
[ "MIT" ]
null
null
null
repairing_genomic_gaps/utils/axis_softmax.py
LucaCappelletti94/repairing_genomic_gaps
38d43c732cbd092b52c1eaf0b33a9bd47a14ebd4
[ "MIT" ]
null
null
null
repairing_genomic_gaps/utils/axis_softmax.py
LucaCappelletti94/repairing_genomic_gaps
38d43c732cbd092b52c1eaf0b33a9bd47a14ebd4
[ "MIT" ]
null
null
null
import tensorflow as tf def axis_softmax(x: tf.Tensor) -> tf.Tensor: """Define a softmax that works on the one-hot encoded axis.""" # This import is required for storing this lambda # with the model import tensorflow as tf return tf.nn.softmax(x, axis=2)
27.7
66
0.693141
45
277
4.244444
0.644444
0.167539
0.188482
0.209424
0
0
0
0
0
0
0
0.00463
0.220217
277
9
67
30.777778
0.87963
0.433213
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
6
23d0d6fd5de88ac31bcb7e7a07f16915cbc44a3e
6,997
py
Python
tests/functional/sources/test_source_configs.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
799
2021-10-13T21:40:33.000Z
2022-03-31T16:19:31.000Z
tests/functional/sources/test_source_configs.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
939
2021-10-13T17:45:24.000Z
2022-03-31T22:09:58.000Z
tests/functional/sources/test_source_configs.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
175
2021-10-14T18:59:06.000Z
2022-03-31T16:17:32.000Z
import pytest from dbt.contracts.graph.model_config import SourceConfig from dbt.tests.util import run_dbt, update_config_file, get_manifest class SourceConfigTests: @pytest.fixture(scope="class", autouse=True) def setUp(self): pytest.expected_config = SourceConfig( enabled=True, ) models__schema_yml = """version: 2 sources: - name: test_source tables: - name: test_table - name: other_source tables: - name: test_table """ # Test enabled config in dbt_project.yml # expect pass, already implemented class TestSourceEnabledConfigProjectLevel(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return { "schema.yml": models__schema_yml, } @pytest.fixture(scope="class") def project_config_update(self): return { "sources": { "test": { "test_source": { "enabled": True, }, } } } def test_enabled_source_config_dbt_project(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" in manifest.sources new_enabled_config = { "sources": { "test": { "test_source": { "enabled": False, }, } } } update_config_file(new_enabled_config, project.project_root, "dbt_project.yml") run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert ( "source.test.test_source.test_table" not in manifest.sources ) # or should it be there with enabled: false?? assert "source.test.other_source.test_table" in manifest.sources disabled_source_level__schema_yml = """version: 2 sources: - name: test_source config: enabled: False tables: - name: test_table - name: disabled_test_table """ # Test enabled config at sources level in yml file class TestConfigYamlSourceLevel(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return { "schema.yml": disabled_source_level__schema_yml, } def test_source_config_yaml_source_level(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" not in manifest.sources assert "source.test.test_source.disabled_test_table" not in manifest.sources disabled_source_table__schema_yml = """version: 2 sources: - name: test_source tables: - name: test_table - name: disabled_test_table config: enabled: False """ # Test enabled config at source table level in yaml file class TestConfigYamlSourceTable(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return { "schema.yml": disabled_source_table__schema_yml, } def test_source_config_yaml_source_table(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" in manifest.sources assert "source.test.test_source.disabled_test_table" not in manifest.sources all_configs_everywhere__schema_yml = """version: 2 sources: - name: test_source config: enabled: False tables: - name: test_table config: enabled: True - name: other_test_table """ # Test inheritence - set configs at project, source, and source-table level - expect source-table level to win class TestSourceConfigsInheritence1(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return {"schema.yml": all_configs_everywhere__schema_yml} @pytest.fixture(scope="class") def project_config_update(self): return {"sources": {"enabled": True}} def test_source_all_configs_source_table(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" in manifest.sources assert "source.test.test_source.other_test_table" not in manifest.sources config_test_table = manifest.sources.get("source.test.test_source.test_table").config assert isinstance(config_test_table, SourceConfig) assert config_test_table == pytest.expected_config all_configs_not_table_schema_yml = """version: 2 sources: - name: test_source config: enabled: True tables: - name: test_table - name: other_test_table """ # Test inheritence - set configs at project and source level - expect source level to win class TestSourceConfigsInheritence2(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return {"schema.yml": all_configs_not_table_schema_yml} @pytest.fixture(scope="class") def project_config_update(self): return {"sources": {"enabled": False}} def test_source_two_configs_source_level(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" in manifest.sources assert "source.test.test_source.other_test_table" in manifest.sources config_test_table = manifest.sources.get("source.test.test_source.test_table").config config_other_test_table = manifest.sources.get( "source.test.test_source.other_test_table" ).config assert isinstance(config_test_table, SourceConfig) assert isinstance(config_other_test_table, SourceConfig) assert config_test_table == config_other_test_table assert config_test_table == pytest.expected_config all_configs_project_source__schema_yml = """version: 2 sources: - name: test_source tables: - name: test_table config: enabled: True - name: other_test_table """ # Test inheritence - set configs at project and source-table level - expect source-table level to win class TestSourceConfigsInheritence3(SourceConfigTests): @pytest.fixture(scope="class") def models(self): return {"schema.yml": all_configs_project_source__schema_yml} @pytest.fixture(scope="class") def project_config_update(self): return {"sources": {"enabled": False}} def test_source_two_configs_source_table(self, project): run_dbt(["parse"]) manifest = get_manifest(project.project_root) assert "source.test.test_source.test_table" in manifest.sources assert "source.test.test_source.other_test_table" not in manifest.sources config_test_table = manifest.sources.get("source.test.test_source.test_table").config assert isinstance(config_test_table, SourceConfig) assert config_test_table == pytest.expected_config
30.290043
110
0.671716
809
6,997
5.52534
0.096415
0.084564
0.056376
0.071588
0.819239
0.769799
0.748993
0.738479
0.71566
0.689262
0
0.001684
0.236387
6,997
230
111
30.421739
0.834924
0.073746
0
0.649425
0
0
0.280593
0.095952
0
0
0
0
0.12069
1
0.097701
false
0
0.017241
0.057471
0.212644
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
23d4fb5a28155ca087f950ee9bd1dff6d6962246
12,557
py
Python
laserfiche_api/api/field_definitions_api.py
Layer8Err/laserfiche_api
8c9030c8f5cc245b61858bd096a1ad3c58cdbfd2
[ "BSD-2-Clause" ]
1
2021-06-17T23:51:25.000Z
2021-06-17T23:51:25.000Z
laserfiche_api/api/field_definitions_api.py
Layer8Err/laserfiche_api
8c9030c8f5cc245b61858bd096a1ad3c58cdbfd2
[ "BSD-2-Clause" ]
null
null
null
laserfiche_api/api/field_definitions_api.py
Layer8Err/laserfiche_api
8c9030c8f5cc245b61858bd096a1ad3c58cdbfd2
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ Laserfiche API Welcome to the Laserfiche API Swagger Playground. You can try out any of our API calls against your live Laserfiche Cloud account. Visit the developer center for more details: <a href=\"https://developer.laserfiche.com\">https://developer.laserfiche.com</a><p><strong>Build# : </strong>650780</p> # noqa: E501 OpenAPI spec version: 1-alpha 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 laserfiche_api.api_client import ApiClient class FieldDefinitionsApi(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 get_field_definition_by_id(self, repo_id, field_definition_id, **kwargs): # noqa: E501 """get_field_definition_by_id # noqa: E501 - Returns a single field definition associated with the specified ID. - Useful when a route provides a minimal amount of details and more information about the specific field definition is needed. - Allowed OData query options: Select # 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_field_definition_by_id(repo_id, field_definition_id, async_req=True) >>> result = thread.get() :param async_req bool :param str repo_id: The requested repository ID. (required) :param int field_definition_id: The requested field definition ID. (required) :param str select: Limits the properties returned in the result. :return: WFieldInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_field_definition_by_id_with_http_info(repo_id, field_definition_id, **kwargs) # noqa: E501 else: (data) = self.get_field_definition_by_id_with_http_info(repo_id, field_definition_id, **kwargs) # noqa: E501 return data def get_field_definition_by_id_with_http_info(self, repo_id, field_definition_id, **kwargs): # noqa: E501 """get_field_definition_by_id # noqa: E501 - Returns a single field definition associated with the specified ID. - Useful when a route provides a minimal amount of details and more information about the specific field definition is needed. - Allowed OData query options: Select # 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_field_definition_by_id_with_http_info(repo_id, field_definition_id, async_req=True) >>> result = thread.get() :param async_req bool :param str repo_id: The requested repository ID. (required) :param int field_definition_id: The requested field definition ID. (required) :param str select: Limits the properties returned in the result. :return: WFieldInfo If the method is called asynchronously, returns the request thread. """ all_params = ['repo_id', 'field_definition_id', 'select'] # 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_field_definition_by_id" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'repo_id' is set if ('repo_id' not in params or params['repo_id'] is None): raise ValueError("Missing the required parameter `repo_id` when calling `get_field_definition_by_id`") # noqa: E501 # verify the required parameter 'field_definition_id' is set if ('field_definition_id' not in params or params['field_definition_id'] is None): raise ValueError("Missing the required parameter `field_definition_id` when calling `get_field_definition_by_id`") # noqa: E501 collection_formats = {} path_params = {} if 'repo_id' in params: path_params['repoId'] = params['repo_id'] # noqa: E501 if 'field_definition_id' in params: path_params['fieldDefinitionId'] = params['field_definition_id'] # noqa: E501 query_params = [] if 'select' in params: query_params.append(('$select', params['select'])) # noqa: E501 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 = ['Authorization'] # noqa: E501 return self.api_client.call_api( '/v1-alpha/Repositories/{repoId}/FieldDefinitions/{fieldDefinitionId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='WFieldInfo', # 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_field_definitions(self, repo_id, **kwargs): # noqa: E501 """get_field_definitions # noqa: E501 - Returns a paged listing of field definitions available in the specified repository. - Useful when trying to find a list of all field definitions available, rather than only those assigned to a specific entry/template. - Default page size: 100. Allowed OData query options: Select | Count | OrderBy | Skip | Top | SkipToken | Prefer. # 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_field_definitions(repo_id, async_req=True) >>> result = thread.get() :param async_req bool :param str repo_id: The requested repository ID. (required) :param str prefer: An optional OData header. Can be used to set the maximum page size using odata.maxpagesize. :param str select: Limits the properties returned in the result. :param str orderby: Specifies the order in which items are returned. The maximum number of expressions is 5. :param int top: Limits the number of items returned from a collection. :param int skip: Excludes the specified number of items of the queried collection from the result. :param bool count: Indicates whether the total count of items within a collection are returned in the result. :return: ODataValueOfIListOfWFieldInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_field_definitions_with_http_info(repo_id, **kwargs) # noqa: E501 else: (data) = self.get_field_definitions_with_http_info(repo_id, **kwargs) # noqa: E501 return data def get_field_definitions_with_http_info(self, repo_id, **kwargs): # noqa: E501 """get_field_definitions # noqa: E501 - Returns a paged listing of field definitions available in the specified repository. - Useful when trying to find a list of all field definitions available, rather than only those assigned to a specific entry/template. - Default page size: 100. Allowed OData query options: Select | Count | OrderBy | Skip | Top | SkipToken | Prefer. # 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_field_definitions_with_http_info(repo_id, async_req=True) >>> result = thread.get() :param async_req bool :param str repo_id: The requested repository ID. (required) :param str prefer: An optional OData header. Can be used to set the maximum page size using odata.maxpagesize. :param str select: Limits the properties returned in the result. :param str orderby: Specifies the order in which items are returned. The maximum number of expressions is 5. :param int top: Limits the number of items returned from a collection. :param int skip: Excludes the specified number of items of the queried collection from the result. :param bool count: Indicates whether the total count of items within a collection are returned in the result. :return: ODataValueOfIListOfWFieldInfo If the method is called asynchronously, returns the request thread. """ all_params = ['repo_id', 'prefer', 'select', 'orderby', 'top', 'skip', 'count'] # 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_field_definitions" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'repo_id' is set if ('repo_id' not in params or params['repo_id'] is None): raise ValueError("Missing the required parameter `repo_id` when calling `get_field_definitions`") # noqa: E501 collection_formats = {} path_params = {} if 'repo_id' in params: path_params['repoId'] = params['repo_id'] # noqa: E501 query_params = [] if 'select' in params: query_params.append(('$select', params['select'])) # noqa: E501 if 'orderby' in params: query_params.append(('$orderby', params['orderby'])) # noqa: E501 if 'top' in params: query_params.append(('$top', params['top'])) # noqa: E501 if 'skip' in params: query_params.append(('$skip', params['skip'])) # noqa: E501 if 'count' in params: query_params.append(('$count', params['count'])) # noqa: E501 header_params = {} if 'prefer' in params: header_params['Prefer'] = params['prefer'] # noqa: E501 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 = ['Authorization'] # noqa: E501 return self.api_client.call_api( '/v1-alpha/Repositories/{repoId}/FieldDefinitions', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ODataValueOfIListOfWFieldInfo', # 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)
48.296154
356
0.653261
1,561
12,557
5.051249
0.153107
0.038554
0.036652
0.027901
0.866455
0.84591
0.830564
0.820926
0.816107
0.80241
0
0.014808
0.2632
12,557
259
357
48.482625
0.837441
0.454408
0
0.666667
0
0
0.21035
0.067721
0
0
0
0
0
1
0.037879
false
0
0.030303
0
0.121212
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
9b22cdc461579a0c11a3004554bfc17ba7d53431
100
py
Python
pyloadlimiter/__init__.py
fabiofenoglio/py-load-limiter
7032c5dd967f4f69df2e7bf15c7ad685f2c6ba9e
[ "MIT" ]
null
null
null
pyloadlimiter/__init__.py
fabiofenoglio/py-load-limiter
7032c5dd967f4f69df2e7bf15c7ad685f2c6ba9e
[ "MIT" ]
null
null
null
pyloadlimiter/__init__.py
fabiofenoglio/py-load-limiter
7032c5dd967f4f69df2e7bf15c7ad685f2c6ba9e
[ "MIT" ]
null
null
null
from .types import * from .persistence import * from .load_limiter import * from .composite import *
25
27
0.77
13
100
5.846154
0.538462
0.394737
0
0
0
0
0
0
0
0
0
0
0.15
100
4
28
25
0.894118
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f1d89609794720a0bbb916c9e3302988a05bcdae
88
py
Python
src/python/zensols/db/__init__.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
src/python/zensols/db/__init__.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
src/python/zensols/db/__init__.py
plandes/dbutil
5ed1c99dcf9ced105d502d3c58d52e8d2726834d
[ "MIT" ]
null
null
null
from .parse import * from .bean import * from .sqlite import * from .dataclass import *
17.6
24
0.727273
12
88
5.333333
0.5
0.46875
0
0
0
0
0
0
0
0
0
0
0.181818
88
4
25
22
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
7b1137ccf7e5c40928be6442ee4558e1cb3072c4
177
py
Python
backend/confnetti/tasks/models.py
pfroelke/Confne
bd7771fdd3c6e59ec0f327ba2b9d72d31cb8e582
[ "MIT" ]
null
null
null
backend/confnetti/tasks/models.py
pfroelke/Confne
bd7771fdd3c6e59ec0f327ba2b9d72d31cb8e582
[ "MIT" ]
14
2021-03-30T14:26:53.000Z
2022-03-02T10:40:40.000Z
backend/confnetti/tasks/models.py
pfroelke/Confnetti
bd7771fdd3c6e59ec0f327ba2b9d72d31cb8e582
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Task(models.Model): name = models.CharField(max_length=32) description = models.CharField(max_length=256)
25.285714
50
0.757062
25
177
5.28
0.72
0.227273
0.272727
0.363636
0
0
0
0
0
0
0
0.033113
0.146893
177
6
51
29.5
0.84106
0.135593
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
6
9e4d9d012b0faa06fb4a84305102c213c4a49ae9
147
py
Python
server/model/tasks/__init__.py
74th/vscode-book-python
a3a90ee57851bca9898c60e8fa74c92e53e9469b
[ "MIT" ]
3
2020-04-26T15:35:01.000Z
2020-08-15T07:02:58.000Z
server/model/tasks/__init__.py
74th/vscode-book-python
a3a90ee57851bca9898c60e8fa74c92e53e9469b
[ "MIT" ]
null
null
null
server/model/tasks/__init__.py
74th/vscode-book-python
a3a90ee57851bca9898c60e8fa74c92e53e9469b
[ "MIT" ]
2
2021-08-20T06:39:40.000Z
2022-03-07T12:24:42.000Z
from .tasks import Task from .tasks import serialize_task, deserialize_task, serialize_tasks, deserialize_tasks from .repository import Repository
36.75
87
0.857143
19
147
6.421053
0.368421
0.147541
0.245902
0
0
0
0
0
0
0
0
0
0.102041
147
3
88
49
0.924242
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9e997f12ec118b757f6d3f16e26898c9802e135f
105
py
Python
oaff/app/oaff/app/requests/landing_page.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
19
2021-07-06T16:35:27.000Z
2022-02-08T04:59:21.000Z
oaff/app/oaff/app/requests/landing_page.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
30
2021-07-14T04:13:11.000Z
2021-11-22T20:45:15.000Z
oaff/app/oaff/app/requests/landing_page.py
JBurkinshaw/ogc-api-fast-features
4fc6ba3cc4df1600450fe4c9f35320b00c69f158
[ "MIT" ]
6
2021-07-06T16:35:28.000Z
2021-09-17T19:24:49.000Z
from oaff.app.requests.common.request_type import RequestType class LandingPage(RequestType): pass
17.5
61
0.809524
13
105
6.461538
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.12381
105
5
62
21
0.913043
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
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
9ea3b0e33aef285b39bd7ae3f3d633e466bd5d1f
231
py
Python
eip712_structs/__init__.py
curv85/py-eip712-structs
4bca7b31d12e6b82b3449557a5a49ccdc98110e2
[ "MIT" ]
null
null
null
eip712_structs/__init__.py
curv85/py-eip712-structs
4bca7b31d12e6b82b3449557a5a49ccdc98110e2
[ "MIT" ]
null
null
null
eip712_structs/__init__.py
curv85/py-eip712-structs
4bca7b31d12e6b82b3449557a5a49ccdc98110e2
[ "MIT" ]
null
null
null
from eip712_structs.domain_separator import make_domain # noqa: W0611 from eip712_structs.struct import EIP712Struct # noqa: W0611 from eip712_structs.types import Address, Array, Boolean, Bytes, Int, String, Uint # noqa: W0611
57.75
97
0.805195
32
231
5.65625
0.59375
0.165746
0.281768
0.209945
0.287293
0
0
0
0
0
0
0.119403
0.12987
231
3
98
77
0.781095
0.151515
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9ea8b90cc5c6f31756713e03478dc1afa3d71b14
84
py
Python
crackrar/launchers/__init__.py
GDelevoye/sisters-rarcrack
27580171615dd504f691462d67a1baa6fcff0c63
[ "MIT" ]
1
2021-02-28T23:27:19.000Z
2021-02-28T23:27:19.000Z
crackrar/launchers/__init__.py
GDelevoye/codingsisters-crackrar
27580171615dd504f691462d67a1baa6fcff0c63
[ "MIT" ]
null
null
null
crackrar/launchers/__init__.py
GDelevoye/codingsisters-crackrar
27580171615dd504f691462d67a1baa6fcff0c63
[ "MIT" ]
null
null
null
from crackrar.launchers.crackrar import * from crackrar.launchers.brutegen import *
28
41
0.833333
10
84
7
0.5
0.342857
0.6
0
0
0
0
0
0
0
0
0
0.095238
84
2
42
42
0.921053
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
7b4061953d6dc4a64356baffcd6a0d9f2c3ac5cb
196
py
Python
learning_logs/admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
1
2019-06-03T03:41:26.000Z
2019-06-03T03:41:26.000Z
learning_logs/admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
null
null
null
learning_logs/admin.py
lincoco/learning_log
980c4ae41cd4e34d3208057a77e7d232c389dec3
[ "MIT" ]
null
null
null
from django.contrib import admin from learning_logs.models import Topic from learning_logs.models import Entry admin.site.register(Topic) admin.site.register(Entry) # Register your models here.
21.777778
38
0.826531
29
196
5.517241
0.482759
0.15
0.2
0.275
0.35
0
0
0
0
0
0
0
0.107143
196
8
39
24.5
0.914286
0.132653
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
c8dadaa8406bbd248d6f78e7e412c02fe690e17f
45,410
py
Python
timeboard/tests/test_intervals.py
yurj/timeboard
e11162687a114254116adb5663accfcc227350e3
[ "BSD-3-Clause" ]
120
2018-03-07T00:28:59.000Z
2022-02-04T23:31:34.000Z
timeboard/tests/test_intervals.py
yurj/timeboard
e11162687a114254116adb5663accfcc227350e3
[ "BSD-3-Clause" ]
14
2018-02-12T08:15:04.000Z
2021-03-06T22:03:28.000Z
timeboard/tests/test_intervals.py
yurj/timeboard
e11162687a114254116adb5663accfcc227350e3
[ "BSD-3-Clause" ]
23
2018-03-28T13:31:11.000Z
2022-03-23T02:57:48.000Z
import timeboard as tb from timeboard.interval import Interval, _VoidInterval from timeboard.workshift import Workshift from timeboard.exceptions import (OutOfBoundsError, PartialOutOfBoundsError, VoidIntervalError) from timeboard.timeboard import _Location, OOB_LEFT, OOB_RIGHT, LOC_WITHIN import datetime import pandas as pd import numpy as np import pytest def tb_12_days(): return tb.Timeboard(base_unit_freq='D', start='31 Dec 2016', end='12 Jan 2017', layout=[0, 1, 0]) # 31 01 02 03 04 05 06 07 08 09 10 11 12 # 0 1 0 0 1 0 0 1 0 0 1 0 0 class TestIntervalLocatorFromReference(object): def test_interval_locator_default(self): clnd = tb_12_days() assert clnd._get_interval_locs_from_reference( None, False, False) == [_Location(0, LOC_WITHIN), _Location(12, LOC_WITHIN)] def test_interval_locator_with_two_ts(self): clnd = tb_12_days() assert clnd._get_interval_locs_from_reference( ('02 Jan 2017 15:00', '08 Jan 2017 15:00'), False, False) == [ _Location(2, LOC_WITHIN), _Location(8, LOC_WITHIN)] # reverse is ok; it is taken care later in 'get_interval' assert clnd._get_interval_locs_from_reference( ('08 Jan 2017 15:00', '02 Jan 2017 15:00'), False, False) == [ _Location(8, LOC_WITHIN), _Location(2, LOC_WITHIN)] def test_interval_locator_with_with_excessive_item(self): clnd = tb_12_days() assert clnd._get_interval_locs_from_reference( ('02 Jan 2017 15:00','08 Jan 2017 15:00','something'), False, False) == [_Location(2, LOC_WITHIN), _Location(8, LOC_WITHIN)] def test_interval_locator_with_two_pd_ts(self): clnd = tb_12_days() assert clnd._get_interval_locs_from_reference( (pd.Timestamp('02 Jan 2017 15:00'), pd.Timestamp('08 Jan 2017 15:00')), False, False) == [ _Location(2, LOC_WITHIN), _Location(8, LOC_WITHIN)] def test_interval_locator_with_two_datettime_ts(self): clnd = tb_12_days() assert clnd._get_interval_locs_from_reference( (datetime.datetime(2017, 1, 2, 15, 0, 0), datetime.datetime(2017, 1, 8, 15, 0, 0)), False, False) == [ _Location(2, LOC_WITHIN), _Location(8, LOC_WITHIN)] def test_interval_locator_with_OOB_ts(self): clnd = tb_12_days() # only one end of the interval is OOB assert clnd._get_interval_locs_from_reference( ('02 Jan 2017 15:00', '13 Jan 2017 15:00'), False, False) == [ _Location(2, LOC_WITHIN), _Location(None, OOB_RIGHT)] assert clnd._get_interval_locs_from_reference( ('30 Dec 2016 15:00', '08 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(8, LOC_WITHIN)] # the interval spans over the timeboard assert clnd._get_interval_locs_from_reference( ('30 Dec 2016 15:00', '13 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(None, OOB_RIGHT)] assert clnd._get_interval_locs_from_reference( ('13 Jan 2017 15:00', '30 Dec 2016 15:00'), False, False) == [ _Location(None, OOB_RIGHT), _Location(None, OOB_LEFT)] # the interval is completely outside the timeboard assert clnd._get_interval_locs_from_reference( ('25 Dec 2016 15:00', '30 Dec 2016 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(None, OOB_LEFT)] assert clnd._get_interval_locs_from_reference( ('30 Dec 2016 15:00', '25 Dec 2016 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(None, OOB_LEFT)] assert clnd._get_interval_locs_from_reference( ('13 Jan 2017 15:00', '15 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_RIGHT), _Location(None, OOB_RIGHT)] assert clnd._get_interval_locs_from_reference( ('15 Jan 2017 15:00', '13 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_RIGHT), _Location(None, OOB_RIGHT)] def test_interval_locator_from_pd_periods(self): clnd = tb_12_days() # if we could not directly Timestamp() a reference, we try to call its # `to_timestamp` method which would return reference's start time # First day of Jan is inside clnd assert clnd._get_interval_locs_from_reference( (pd.Period('02 Jan 2017', freq='M'), '11 Jan 2017 15:00'), False, False) == [ _Location(1, LOC_WITHIN), _Location(11, LOC_WITHIN)] # While 31 Dec is within clnd, the first day of Dec is outside assert clnd._get_interval_locs_from_reference( (pd.Period('31 Dec 2016', freq='M'), '11 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(11, LOC_WITHIN)] # freq=W begins weeks on Mon which is 02 Jan 2017 assert clnd._get_interval_locs_from_reference( (pd.Period('05 Jan 2017', freq='W'), '11 Jan 2017 15:00'), False, False) == [ _Location(2, LOC_WITHIN), _Location(11, LOC_WITHIN)] # freq=W-MON ends weeks on Mondays, and 02 Jan is Monday, # but this week begins on Tue 27 Dec 2016 which is outside the timeboard assert clnd._get_interval_locs_from_reference( (pd.Period('02 Jan 2017', freq='W-MON'), '11 Jan 2017 15:00'), False, False) == [ _Location(None, OOB_LEFT), _Location(11, LOC_WITHIN)] def test_interval_locator_with_bad_ts(self): clnd = tb_12_days() with pytest.raises(ValueError): clnd._get_interval_locs_from_reference( ('bad_timestamp', '08 Jan 2017 15:00'), False, False) with pytest.raises(ValueError): clnd._get_interval_locs_from_reference( ('02 Jan 2017 15:00', 'bad_timestamp'), False, False) def test_interval_locator_with_singletons(self): clnd = tb_12_days() with pytest.raises(TypeError): clnd._get_interval_locs_from_reference(('08 Jan 2017 15:00',), False, False) with pytest.raises(TypeError): clnd._get_interval_locs_from_reference('08 Jan 2017 15:00', False, False) with pytest.raises(TypeError): clnd._get_interval_locs_from_reference( pd.Timestamp('08 Jan 2017 15:00'), False, False) class TestIntervalStripLocs(object): def test_interval_strip_locs(self): clnd = tb_12_days() assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(8, 'whatever')], False, False) \ == [_Location(2,'anything'),_Location(8, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(8, 'whatever')], True, False) \ == [_Location(3,'anything'),_Location(8, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(8, 'whatever')], False, True) \ == [_Location(2,'anything'),_Location(7, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(8, 'whatever')], True, True) \ == [_Location(3,'anything'),_Location(7, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(4, 'whatever')], True, True) \ == [_Location(3,'anything'),_Location(3, 'whatever')] def test_interval_strip_locs_single_unit(self): clnd = tb_12_days() assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(2, 'whatever')], False, False) \ == [_Location(2,'anything'),_Location(2, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(2, 'whatever')], True, False) \ == [_Location(3,'anything'),_Location(2, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(2, 'whatever')], False, True) \ == [_Location(2,'anything'),_Location(1, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(2, 'whatever')], True, True) \ == [_Location(3,'anything'),_Location(1, 'whatever')] def test_interval_strip_locs_corner_cases(self): clnd = tb_12_days() assert clnd._strip_interval_locs( [_Location(0, 'anything'), _Location(0, 'whatever')], True, True) \ == [_Location(1, 'anything'), _Location(-1, 'whatever')] assert clnd._strip_interval_locs( [_Location(-4, 'anything'), _Location(-2, 'whatever')], True, True) \ == [_Location(-3, 'anything'), _Location(-3, 'whatever')] assert clnd._strip_interval_locs( [_Location(None,'anything'),_Location(2, 'whatever')], False, False) \ == [_Location(None,'anything'),_Location(2, 'whatever')] assert clnd._strip_interval_locs( [_Location(None,'anything'),_Location(2, 'whatever')], True, False) \ == [_Location(None,'anything'),_Location(2, 'whatever')] assert clnd._strip_interval_locs( [_Location(None,'anything'),_Location(2, 'whatever')], False, True) \ == [_Location(None,'anything'),_Location(1, 'whatever')] assert clnd._strip_interval_locs( [_Location(2,'anything'),_Location(None, 'whatever')], True, True) \ == [_Location(3,'anything'),_Location(None, 'whatever')] assert clnd._strip_interval_locs( [_Location(None,'anything'),_Location(None, 'whatever')], True, True) \ == [_Location(None,'anything'),_Location(None, 'whatever')] def test_interval_strip_locs_bad_locs(self): # in '_strip_interval_locs' we do not care about validity of 'locs' # type and value; other parts of 'get_interval' should care about this assert True def test_get_interval_with_bad_closed(self): clnd = tb_12_days() with pytest.raises(ValueError): clnd.get_interval(closed='010') with pytest.raises(ValueError): clnd.get_interval(closed=True) class TestIntervalConstructorWithTS(object): def test_interval_constructor_with_two_ts(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00')) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 ivlx = clnd(('02 Jan 2017 15:00', '08 Jan 2017 15:00')) assert ivlx._loc == ivl._loc def test_interval_constructor_with_none_ts(self): clnd = tb_12_days() ivl = clnd.get_interval((None, '08 Jan 2017 15:00')) assert ivl._loc == (0,8) ivl = clnd.get_interval((np.nan, '08 Jan 2017 15:00')) assert ivl._loc == (0,8) ivlx = clnd((None, '08 Jan 2017 15:00')) assert ivlx._loc == ivl._loc ivl = clnd.get_interval(('02 Jan 2017 15:00', None)) assert ivl._loc == (2,12) ivl = clnd.get_interval(('02 Jan 2017 15:00', pd.NaT)) assert ivl._loc == (2,12) ivl = clnd(('02 Jan 2017 15:00', pd.NaT)) assert ivl._loc == (2,12) ivl = clnd.get_interval((None, None)) assert ivl._loc == (0,12) ivl = clnd.get_interval((np.nan, None)) assert ivl._loc == (0,12) ivl = clnd((pd.NaT, np.nan)) assert ivl._loc == (0,12) def test_interval_iterator(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00')) wslist1 = [] for ws in ivl: wslist1.append(ws) wslist2 = list(ivl) assert len(wslist1) == 7 assert len(wslist2) == 7 for i in range(7): assert isinstance(wslist1[i], Workshift) assert isinstance(wslist2[i], Workshift) assert wslist1[i]._loc == i+2 assert wslist1[i]._loc == i+2 def test_interval_constructor_with_two_ts_open_ended(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00'), closed='11') assert ivl._loc == (2,8) assert len(ivl) == 7 ivlx = clnd(('02 Jan 2017 15:00', '08 Jan 2017 15:00'), closed='11') assert ivlx._loc == ivl._loc ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00'), closed='01') assert ivl._loc == (3,8) assert len(ivl) == 6 ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00'), closed='10') assert ivl._loc == (2,7) assert len(ivl) == 6 ivl = clnd.get_interval(('02 Jan 2017 15:00', '08 Jan 2017 15:00'), closed='00') assert ivl._loc == (3,7) assert len(ivl) == 5 ivl = clnd.get_interval(('02 Jan 2017 15:00', '03 Jan 2017 15:00'), closed='01') assert ivl._loc == (3,3) assert len(ivl) == 1 ivl = clnd.get_interval(('02 Jan 2017 15:00', '03 Jan 2017 15:00'), closed='10') assert ivl._loc == (2,2) assert len(ivl) == 1 def test_interval_constructor_with_closed_leads_to_void(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 15:00')) assert ivl._loc == (2,2) assert len(ivl) == 1 with pytest.raises(VoidIntervalError): clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 15:00'), closed='01') with pytest.raises(VoidIntervalError): clnd(('02 Jan 2017 15:00', '02 Jan 2017 15:00'), closed='01') with pytest.raises(VoidIntervalError): clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 15:00'), closed='10') with pytest.raises(VoidIntervalError): clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 15:00'), closed='00') with pytest.raises(VoidIntervalError): clnd.get_interval(('02 Jan 2017 15:00', '03 Jan 2017 15:00'), closed='00') def test_interval_constructor_with_OOB_ts(self): clnd = tb_12_days() # only one end of the interval is OOB with pytest.raises(PartialOutOfBoundsError): ivl = clnd.get_interval(('02 Jan 2017 15:00', '13 Jan 2017 15:00')) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(('02 Jan 2017 15:00', '13 Jan 2017 15:00'), clip_period=False) with pytest.raises(PartialOutOfBoundsError): clnd(('02 Jan 2017 15:00', '13 Jan 2017 15:00'), clip_period=False) with pytest.raises(PartialOutOfBoundsError): ivl = clnd.get_interval(('30 Dec 2016 15:00', '08 Jan 2017 15:00')) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(('30 Dec 2016 15:00', '08 Jan 2017 15:00'), clip_period=False) # the interval spans over the timeboard with pytest.raises(PartialOutOfBoundsError): ivl = clnd.get_interval(('30 Dec 2016 15:00', '13 Jan 2017 15:00')) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(('30 Dec 2016 15:00', '13 Jan 2017 15:00'), clip_period=False) with pytest.raises(VoidIntervalError): clnd.get_interval(('13 Jan 2017 15:00', '30 Dec 2016 15:00')) # the interval is completely outside the timeboard with pytest.raises(OutOfBoundsError): clnd.get_interval(('25 Dec 2016 15:00', '30 Dec 2016 15:00')) # OOBError is ok, since we cannot clip a complete outsider anyway with pytest.raises(OutOfBoundsError): clnd.get_interval(('30 Dec 2016 15:00', '25 Dec 2016 15:00')) with pytest.raises(OutOfBoundsError): clnd.get_interval(('13 Jan 2017 15:00', '15 Jan 2017 15:00')) # OOBError is ok, since we cannot clip a complete outsider anyway with pytest.raises(OutOfBoundsError): clnd.get_interval(('15 Jan 2017 15:00', '13 Jan 2017 15:00')) def test_interval_constructor_with_same_ts(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 15:00')) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 2, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 3, 0, 0, 0) assert ivl._loc == (2,2) assert len(ivl) == 1 def test_interval_constructor_reverse_ts_to_same_BU(self): clnd = tb_12_days() ivl = clnd.get_interval(('02 Jan 2017 15:00', '02 Jan 2017 10:00')) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 2, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 3, 0, 0, 0) assert ivl._loc == (2,2) assert len(ivl) == 1 def test_interval_constructor_reverse_ts(self): clnd = tb_12_days() with pytest.raises(VoidIntervalError): clnd.get_interval(('08 Jan 2017 15:00', '02 Jan 2017 15:00')) with pytest.raises(VoidIntervalError): clnd(('08 Jan 2017 15:00', '02 Jan 2017 15:00')) def test_interval_constructor_two_pd_periods_as_ts(self): clnd = tb.Timeboard(base_unit_freq='D', start='31 Dec 2016', end='31 Mar 2017', layout=[0, 1, 0]) ivl = clnd.get_interval((pd.Period('05 Jan 2017 15:00', freq='M'), pd.Period('19 Feb 2017 15:00', freq='M'))) assert ivl.start_time == datetime.datetime(2017, 1, 1, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 2, 1, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 2, 2, 0, 0, 0) assert ivl._loc == (1,32) assert len(ivl) == 32 ivlx = clnd((pd.Period('05 Jan 2017 15:00', freq='M'), pd.Period('19 Feb 2017 15:00', freq='M'))) assert ivlx._loc == ivl._loc class TestIntervalConstructorDefault(object): def test_interval_constructor_default(self): clnd = tb_12_days() ivl = clnd.get_interval() assert ivl.start_time == datetime.datetime(2016, 12, 31, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 12, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 13, 0, 0, 0) assert ivl._loc == (0,12) assert len(ivl) == 13 def test_interval_constructor_default_open_ended(self): clnd = tb_12_days() ivl = clnd.get_interval(closed='00') assert ivl.start_time == datetime.datetime(2017, 1, 1, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 11, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 12, 0, 0, 0) assert ivl._loc == (1,11) assert len(ivl) == 11 def test_interval_constructor_default_closed_leads_to_void(self): clnd = tb.Timeboard(base_unit_freq='D', start='01 Jan 2017', end='01 Jan 2017', layout=[1]) with pytest.raises(VoidIntervalError): ivl = clnd.get_interval(closed='01') with pytest.raises(VoidIntervalError): ivl = clnd.get_interval(closed='10') with pytest.raises(VoidIntervalError): ivl = clnd.get_interval(closed='00') class TestIntervalConstructorFromPeriod(object): def test_interval_constructor_with_period(self): clnd = tb_12_days() ivl = clnd.get_interval('02 Jan 2017 15:00', period='W') assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 ivlx = clnd('02 Jan 2017 15:00', period='W') assert ivlx._loc == ivl._loc def test_interval_constructor_with_OOB_period(self): clnd = tb_12_days() #period is defined by good ts but extends beyond the left bound of clnd ivl = clnd.get_interval('01 Jan 2017 15:00', period='W') assert ivl._loc == (0, 1) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval('01 Jan 2017 15:00', period='W', clip_period=False) with pytest.raises(PartialOutOfBoundsError): clnd('01 Jan 2017 15:00', period='W', clip_period=False) #same period defined by outside ts ivl = clnd.get_interval('26 Dec 2016 15:00', period='W') assert ivl._loc == (0, 1) #period is defined by good ts but extends beyond the right bound of clnd ivl = clnd.get_interval('10 Jan 2017 15:00', period='W') assert ivl._loc == (9, 12) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval('10 Jan 2017 15:00', period='W', clip_period=False) #same period defined by outside ts ivl = clnd.get_interval('14 Jan 2017 15:00', period='W') assert ivl._loc == (9, 12) #period spans over clnd (a year ending on 31 March) ivl = clnd.get_interval('10 Mar 2017 15:00', period='A-MAR') assert ivl._loc == (0, 12) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval('10 Mar 2017 15:00', period='A-MAR', clip_period=False) #period is completely outside clnd with pytest.raises(OutOfBoundsError): clnd.get_interval('18 Jan 2017 15:00', period='W') def test_interval_constructor_with_bad_period(self): clnd = tb_12_days() with pytest.raises(ValueError): clnd.get_interval('02 Jan 2017 15:00', period='bad_period') with pytest.raises(ValueError): clnd('02 Jan 2017 15:00', period='bad_period') with pytest.raises(ValueError): clnd.get_interval('bad_timestamp', period='W') def test_interval_constructor_from_pd_period(self): clnd = tb_12_days() ivl = clnd.get_interval(pd.Period('05 Jan 2017 15:00', freq='W')) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2, 8) assert len(ivl) == 7 # if we call timeboard instance directly, it cannot figure that we # want a period, as only one argument is given and it can be converted # to a timestamp ws = clnd(pd.Period('05 Jan 2017 15:00', freq='W')) assert ws._loc == 2 def test_interval_constructor_from_pd_period_OOB(self): clnd = tb_12_days() # period defined by good ts but extends beyond the reight bound of clnd ivl = clnd.get_interval(pd.Period('10 Jan 2017 15:00', freq='W')) assert ivl._loc == (9, 12) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(pd.Period('10 Jan 2017 15:00', freq='W'), clip_period=False) # period defined by good ts but extends beyond the left bound of clnd ivl = clnd.get_interval(pd.Period('01 Jan 2017 15:00', freq='W')) assert ivl._loc == (0, 1) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(pd.Period('01 Jan 2017 15:00', freq='W'), clip_period=False) # period overlapping clnd ivl = clnd.get_interval(pd.Period('08 Mar 2017 15:00', freq='A-MAR')) assert ivl._loc == (0, 12) with pytest.raises(PartialOutOfBoundsError): clnd.get_interval(pd.Period('08 Mar 2017 15:00', freq='A-MAR'), clip_period=False) # period completely outside clnd with pytest.raises(OutOfBoundsError): clnd.get_interval(pd.Period('25 Jan 2017 15:00', freq='W')) def test_interval_constructor_period_smaller_than_bu(self): clnd = tb.Timeboard(base_unit_freq='H', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=[0, 1], ) clnd2 = tb.Timeboard(base_unit_freq='H', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=[0, 1], workshift_ref='end' ) # no ws reference time falls within this period: with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 01:15', period='T') with pytest.raises(VoidIntervalError): clnd2.get_interval('04 Oct 2017 01:15', period='T') # reference time of clnd.ws 1 (01:00) falls within this period: ivl = clnd.get_interval('04 Oct 2017 01:00', period='T') assert ivl._loc == (1, 1) # but not within this with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 01:59', period='T') # vice versa for clnd 2 with pytest.raises(VoidIntervalError): clnd2.get_interval('04 Oct 2017 01:00', period='T') ivl = clnd2.get_interval('04 Oct 2017 01:59', period='T') assert ivl._loc == (1, 1) def test_interval_constructor_period_straddles_2_ws(self): shifts = tb.Organizer(marker='90T', structure=[0, 1, 0, 2]) clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, ) # period straddles ws 0 and 1 # but only ref time of ws 1 falls into the period ivl = clnd.get_interval('04 Oct 2017 01:00', period='H') assert ivl._loc == (1, 1) def test_interval_constructor_period_start_aligned_end_inside_ws(self): shifts = tb.Organizer(marker='90T', structure=[0, 1, 0, 2]) clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, ) # period (00:00 - 00:59) is inside ws 0 (00:00 - 01:29) # ref time of ws 0 falls into the period ivl = clnd.get_interval('04 Oct 2017 00:00', period='H') assert ivl._loc == (0, 0) # now ref time is end time and ws 0 ref time is outside the period clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, workshift_ref='end' ) with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 00:00', period='H') def test_interval_constructor_period_begin_inside_ws_end_aligned(self): shifts = tb.Organizer(marker='90T', structure=[0, 1, 0, 2]) clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, ) # period (02:00 - 02:59) is inside ws 1 (01:30 - 02:59) # ref time of ws 1 is outside the period with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 02:00', period='H') # now ref time is end time and ws 1 ref time is within the period clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, workshift_ref='end' ) ivl = clnd.get_interval('04 Oct 2017 02:00', period='H') assert ivl._loc == (1, 1) def test_interval_constructor_period_entirely_inside_ws(self): shifts = tb.Organizer(marker='3H', structure=[0, 1, 0, 2]) clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, ) # period (04:00 - 04:59) is inside workshift (03:00 - 05:59) # and does not includes workshift's start or end times. # No matter if the ref time is 'start' or 'end', # it is outside the period with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 04:00', period='H') clnd = tb.Timeboard(base_unit_freq='T', start='04 Oct 2017', end='04 Oct 2017 23:59', layout=shifts, workshift_ref='end' ) with pytest.raises(VoidIntervalError): clnd.get_interval('04 Oct 2017 04:00', period='H') # if we supported workshift_ref being somewhere in the middle of # workshift, an interval could be constructed class TestIntervalConstructorWithLength(object): def test_interval_constructor_with_length(self): clnd = tb_12_days() ivl = clnd.get_interval('02 Jan 2017 15:00', length=7) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 ivlx = clnd('02 Jan 2017 15:00', length=7) assert ivlx._loc == ivl._loc def test_interval_constructor_with_negative_length(self): clnd = tb_12_days() ivl = clnd.get_interval('08 Jan 2017 15:00', length=-7) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 def test_interval_constructor_with_length_one(self): clnd = tb_12_days() ivl = clnd.get_interval('02 Jan 2017 15:00', length=1) assert ivl._loc == (2,2) assert len(ivl) == 1 ivl = clnd.get_interval('02 Jan 2017 15:00', length=-1) assert ivl._loc == (2,2) assert len(ivl) == 1 def test_interval_constructor_with_zero_length(self): # same treatment as interval with reverse timestamps clnd = tb_12_days() with pytest.raises(VoidIntervalError): clnd.get_interval('08 Jan 2017 15:00', length=0) with pytest.raises(VoidIntervalError): clnd('08 Jan 2017 15:00', length=0) def test_interval_constructor_with_length_OOB(self): clnd = tb_12_days() # May be build interval from the portion falling inside clnd? # NO. You either get an expected result or an exception, not # some other interval you did not ask for # # starts inside clnd, ends OOB # this is PartialOutOfBoundsError because we can clip the interval # at timeboard's bound and may not care about the outside with pytest.raises(PartialOutOfBoundsError): clnd.get_interval('02 Jan 2017 15:00', length=20) with pytest.raises(PartialOutOfBoundsError): clnd('02 Jan 2017 15:00', length=20) # we cannot start an interval OOB because we cannot the outside # is not structured into workshifts, hence we cannot count them. # So this is NOT PartialOutOfBoundsError with pytest.raises(OutOfBoundsError): clnd.get_interval('30 Dec 2016 15:00', length=10) # starts and ends OOB, spans over clnd with pytest.raises(OutOfBoundsError): clnd.get_interval('30 Dec 2016 15:00', length=20) # completely outside clnd with pytest.raises(OutOfBoundsError): clnd.get_interval('20 Jan 2017 15:00', length=10) def test_interval_constructor_with_bad_length(self): clnd = tb_12_days() with pytest.raises(TypeError): clnd.get_interval('02 Jan 2017 15:00', length=5.5) with pytest.raises(TypeError): clnd('02 Jan 2017 15:00', length=5.5) with pytest.raises(TypeError): clnd.get_interval('02 Jan 2017 15:00', length='x') with pytest.raises(ValueError): clnd.get_interval('bad_timestamp', length=5) class TestIntervalConstructorBadArgs(object): def test_interval_constructor_bad_arg_combinations(self): clnd = tb_12_days() with pytest.raises(TypeError): clnd.get_interval('01 Jan 2017') with pytest.raises(TypeError): clnd.get_interval(('01 Jan 2017',)) with pytest.raises(TypeError): clnd.get_interval('01 Jan 2017', '05 Jan 2017') with pytest.raises(TypeError): clnd.get_interval(('01 Jan 2017',), length=1) with pytest.raises(TypeError): clnd.get_interval(('anyhting', 'anything'), length=1) with pytest.raises(TypeError): clnd.get_interval(('02 Jan 2017',), period='W') with pytest.raises(TypeError): clnd.get_interval(('anyhting', 'anything'), period='W') with pytest.raises(TypeError): clnd.get_interval('anyhting', length=1, period='W') with pytest.raises(TypeError): clnd.get_interval(('anyhting', 'anything'), length=1, period='W') with pytest.raises(TypeError): clnd.get_interval(length=1, period='W') def test_interval_constructor_bad_arg_combinations_2(self): clnd = tb_12_days() with pytest.raises(TypeError): clnd(('01 Jan 2017',)) with pytest.raises(TypeError): clnd('01 Jan 2017', '05 Jan 2017') with pytest.raises(TypeError): clnd(('01 Jan 2017',), length=1) with pytest.raises(TypeError): clnd(('anyhting', 'anything'), length=1) with pytest.raises(TypeError): clnd(('02 Jan 2017',), period='W') with pytest.raises(TypeError): clnd(('anyhting', 'anything'), period='W') with pytest.raises(TypeError): clnd('anyhting', length=1, period='W') with pytest.raises(TypeError): clnd(('anyhting', 'anything'), length=1, period='W') with pytest.raises(TypeError): clnd(length=1, period='W') class TestIntervalConstructorDirect(object): def test_interval_direct_with_locs(self): clnd = tb_12_days() ivl = Interval(clnd, (2, 8), clnd.default_schedule) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 def test_interval_direct_with_ws(self): clnd = tb_12_days() ivl = Interval(clnd, (Workshift(clnd, 2), Workshift(clnd, 8)), clnd.default_schedule) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 def test_interval_direct_schedules(self): clnd = tb_12_days() my_schedule = clnd.add_schedule('my_schedule', lambda x: True) ivl = Interval(clnd, (2, 8)) assert ivl.schedule.name == clnd.default_schedule.name ivl = Interval(clnd, (2, 8), my_schedule) assert ivl.schedule.name == 'my_schedule' def test_interval_direct_mixed_args(self): clnd = tb_12_days() ivl = Interval(clnd, (2, clnd('08 Jan 2017')), clnd.default_schedule) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 8, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 9, 0, 0, 0) assert ivl._loc == (2,8) assert len(ivl) == 7 def test_interval_direct_same_locs(self): clnd = tb_12_days() ivl = Interval(clnd, (2, 2), clnd.default_schedule) assert ivl.start_time == datetime.datetime(2017, 1, 2, 0, 0, 0) assert ivl.end_time > datetime.datetime(2017, 1, 2, 23, 59, 59) assert ivl.end_time < datetime.datetime(2017, 1, 3, 0, 0, 0) assert ivl._loc == (2,2) assert len(ivl) == 1 def test_interval_direct_reverse_locs(self): clnd = tb_12_days() with pytest.raises(VoidIntervalError): Interval(clnd, (8, 2), clnd.default_schedule) def test_interval_direct_OOB_locs(self): clnd = tb_12_days() with pytest.raises(OutOfBoundsError): Interval(clnd, (-1, 2), clnd.default_schedule) with pytest.raises(OutOfBoundsError): Interval(clnd, (8, 13), clnd.default_schedule) with pytest.raises(OutOfBoundsError): Interval(clnd, (-1, 13), clnd.default_schedule) with pytest.raises(OutOfBoundsError): Interval(clnd, (13, 25), clnd.default_schedule) def test_interval_direct_bad_args(self): clnd = tb_12_days() with pytest.raises(AttributeError): Interval('not a clnd', (2, 8), clnd.default_schedule) with pytest.raises(TypeError): Interval(clnd, (2, 8.5), clnd.default_schedule) with pytest.raises(TypeError): Interval(clnd, (2, '08 Jan 2017'), clnd.default_schedule) with pytest.raises(IndexError): Interval(clnd, (2,), clnd.default_schedule) with pytest.raises(TypeError): Interval(clnd, 'not a tuple', clnd.default_schedule) # 'on_duty' is _Schedule.name but _Schedule is expected with pytest.raises(TypeError): _VoidInterval(clnd, (8, 2), 'on_duty') class TestIntervalIteration(object): def test_ivl_as_generator(self): clnd = tb_12_days() ivl = Interval(clnd, (1, 4)) ws_locs=[] ws_sdl_is_ok=[] for ws in ivl: ws_locs.append(ws._loc) ws_sdl_is_ok.append(ws.schedule.name == clnd.default_schedule.name) assert ws_locs == [1, 2, 3, 4] assert all(ws_sdl_is_ok) def test_ivl_as_generator_change_schedule(self): clnd = tb_12_days() my_schedule = clnd.add_schedule('my_schedule', selector=lambda x:x>1) ivl = Interval(clnd, (1, 4), schedule=my_schedule) ws_locs=[] ws_sdl_is_ok=[] for ws in ivl: ws_locs.append(ws._loc) ws_sdl_is_ok.append(ws.schedule.name == my_schedule.name) assert ws_locs == [1, 2, 3, 4] assert all(ws_sdl_is_ok) def test_ivl_workshift_generator(self): clnd = tb_12_days() ivl = Interval(clnd, (1, 4)) ws_locs=[] for ws in ivl.workshifts(): ws_locs.append(ws._loc) assert ws_locs == [1, 4] ws_locs=[] for ws in ivl.workshifts(duty='off'): ws_locs.append(ws._loc) assert ws_locs == [2, 3] ws_locs=[] for ws in ivl.workshifts(duty='any'): ws_locs.append(ws._loc) assert ws_locs == [1, 2, 3, 4] def test_ivl_workshift_generator_no_such_duty(self): clnd = tb_12_days() ivl = Interval(clnd, (2, 3)) assert list(ivl.workshifts()) == [] all_on = clnd.add_schedule('all_on', lambda x: True) ivl = Interval(clnd, (2, 3), schedule=all_on) assert list(ivl.workshifts(duty='off')) == [] def test_workshift_generator_change_schedule(self): clnd = tb_12_days() all_on = clnd.add_schedule('all_on', lambda x: True) ivl = Interval(clnd, (1, 4)) ws_locs=[] ws_sdl_is_ok=[] for ws in ivl.workshifts(): ws_locs.append(ws._loc) ws_sdl_is_ok.append(ws.schedule.name == clnd.default_schedule.name) assert ws_locs == [1, 4] assert all(ws_sdl_is_ok) ws_locs=[] ws_sdl_is_ok=[] for ws in ivl.workshifts(schedule=all_on): ws_locs.append(ws._loc) ws_sdl_is_ok.append(ws.schedule.name == all_on.name) assert ws_locs == [1, 2, 3, 4] assert all(ws_sdl_is_ok) class TestIntervalToDataFrame(object): def test_ivl_to_dataframe(self): clnd = tb_12_days() clnd.add_schedule('my_schedule', lambda x: True) ivl = Interval(clnd, (2, 8)) clnd_df = clnd.to_dataframe(2, 8) ivl_df = ivl.to_dataframe() assert len(ivl_df) == len(ivl) == len(clnd_df) assert list(ivl_df.columns) == list(clnd_df.columns) assert 'my_schedule' in list(ivl_df.columns) class TestVoidInterval(object): def test_void_interval_with_locs(self): clnd = tb_12_days() ivl = _VoidInterval(clnd, (8, 2), clnd.default_schedule) assert pd.isnull(ivl.start_time) assert pd.isnull(ivl.end_time) assert ivl._loc == (8,2) assert len(ivl) == 0 def test_void_interval_with_ws(self): clnd = tb_12_days() ivl = _VoidInterval(clnd, (Workshift(clnd, 8), Workshift(clnd, 2)), clnd.default_schedule) assert pd.isnull(ivl.start_time) assert pd.isnull(ivl.end_time) assert ivl._loc == (8,2) assert len(ivl) == 0 def test_void_interval_mixed_args(self): clnd = tb_12_days() ivl = _VoidInterval(clnd, (Workshift(clnd, 8), 2), clnd.default_schedule) assert pd.isnull(ivl.start_time) assert pd.isnull(ivl.end_time) assert ivl._loc == (8,2) assert len(ivl) == 0 def test_void_interval_schedules(self): clnd = tb_12_days() my_schedule = clnd.add_schedule('my_schedule', lambda x: True) ivl = _VoidInterval(clnd, (8, 2)) assert ivl.schedule.name == clnd.default_schedule.name ivl = _VoidInterval(clnd, (8, 2), my_schedule) assert ivl.schedule.name == 'my_schedule' def test_void_interval_fails_with_normal_locs(self): clnd = tb_12_days() with pytest.raises(VoidIntervalError): _VoidInterval(clnd, (2, 8), clnd.default_schedule) def test_voic_interval_OB_locs(self): clnd = tb_12_days() with pytest.raises(OutOfBoundsError): _VoidInterval(clnd, (2, -1), clnd.default_schedule) with pytest.raises(OutOfBoundsError): _VoidInterval(clnd, (13, 8), clnd.default_schedule) with pytest.raises(OutOfBoundsError): _VoidInterval(clnd, (13, -1), clnd.default_schedule) with pytest.raises(OutOfBoundsError): _VoidInterval(clnd, (25, 13), clnd.default_schedule) def test_void_ivl_iteration(self): clnd = tb_12_days() void_ivl = _VoidInterval(clnd, (8,2)) assert list(void_ivl) == [] assert list(void_ivl.workshifts()) == [] assert list(void_ivl.workshifts('no matter', what_args = 'are given')) == [] def test_void_ivl_to_dataframe(self): clnd = tb_12_days() clnd.add_schedule('my_schedule', lambda x: True) ivl = Interval(clnd, (2, 8)) void_ivl = _VoidInterval(clnd, (8, 2)) ivl_df_columns = list(ivl.to_dataframe().columns) void_ivl_df = void_ivl.to_dataframe() assert void_ivl_df.empty assert list(void_ivl_df.columns) == ivl_df_columns assert 'my_schedule' in list(void_ivl_df.columns) def test_void_interval__bad_args(self): clnd = tb_12_days() with pytest.raises(AttributeError): _VoidInterval('not a clnd', (8, 2), clnd.default_schedule) with pytest.raises(TypeError): _VoidInterval(clnd, (8.5, 2), clnd.default_schedule) with pytest.raises(TypeError): _VoidInterval(clnd, ('08 Jan 2017', 2), clnd.default_schedule) with pytest.raises(IndexError): _VoidInterval(clnd, (8,), clnd.default_schedule) with pytest.raises(TypeError): _VoidInterval(clnd, 'not a tuple', clnd.default_schedule) # 'on_duty' is _Schedule.name but _Schedule is expected with pytest.raises(TypeError): _VoidInterval(clnd, (8, 2), 'on_duty')
44.827246
83
0.593239
6,032
45,410
4.26807
0.054542
0.022373
0.038842
0.050845
0.853408
0.825675
0.788697
0.745154
0.720373
0.670616
0
0.092839
0.287448
45,410
1,012
84
44.871542
0.702815
0.071086
0
0.56
0
0
0.100795
0
0
0
0
0
0.236364
1
0.083636
false
0
0.010909
0.001212
0.109091
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c8ddc0be023c5f82b0986be56e600aee985cd21e
8,056
py
Python
rnn_network.py
Wangsj18/ctcx_recognition
726a4a91309f66a1e7abeac5b2a2bacb34da1a28
[ "MIT" ]
null
null
null
rnn_network.py
Wangsj18/ctcx_recognition
726a4a91309f66a1e7abeac5b2a2bacb34da1a28
[ "MIT" ]
null
null
null
rnn_network.py
Wangsj18/ctcx_recognition
726a4a91309f66a1e7abeac5b2a2bacb34da1a28
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.contrib import rnn import parameters as pa import numpy as np import video_utils def build_lstm_network(batch_time_input, n_unit, layer_num): """ build rnn network :param batch_time_input: [batch, time_step, n_input] :return:prediction_list """ keep_prob = 1.0 print("Lstm dp:", keep_prob) lstm_cell = rnn.MultiRNNCell([rnn.DropoutWrapper(cell=rnn.BasicLSTMCell(num_units=n_unit), input_keep_prob=1.0, output_keep_prob=keep_prob) for _ in range(layer_num)]) outputs, _ = tf.nn.dynamic_rnn(lstm_cell, batch_time_input, dtype=tf.float32) return outputs def build_convlstm_dp_network(batch_time_input, n_unit, layer_num=1): """ build rnn network :param batch_time_input: [batch, time_step, n_input] :return:prediction_list """ convlstm_cell = rnn.ConvLSTMCell(conv_ndims=2, input_shape=[17, 17, 1], output_channels=n_unit, kernel_shape=[3, 3]) keep_prob = 1.0 print("Convlstm dp:", keep_prob) lstm_cell = rnn.MultiRNNCell( [rnn.DropoutWrapper(cell=convlstm_cell, input_keep_prob=1.0, output_keep_prob=keep_prob) for _ in range(layer_num)]) outputs, final_state = tf.nn.dynamic_rnn(lstm_cell, batch_time_input, dtype=tf.float32, time_major=False) return outputs def build_network_one_feat(batch_time_inputs, n_unit, n_classes, name): batch_time_input = batch_time_inputs[0] with tf.variable_scope(name): if name == 'jc_net': lstm_outputs_dp = build_lstm_network(batch_time_input, n_unit, layer_num=1) out_weights = tf.Variable(tf.random_normal([n_unit, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) lstm_prediction_list = [] for i in range(lstm_outputs_dp.shape[1]): output = lstm_outputs_dp[:, i, :] lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_network_coocmap(batch_time_inputs, n_classes, name): batch_time_input = batch_time_inputs[0] with tf.variable_scope(name): lstm_outputs_dp = build_convlstm_dp_network(batch_time_input, pa.convlstm_units, layer_num=1) out_weights = tf.Variable(tf.random_normal([pa.convlstm_units, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) lstm_prediction_list = [] for i in range(lstm_outputs_dp.shape[1]): outputs = lstm_outputs_dp[:, i, :] ave_pool2d = tf.layers.AveragePooling2D(pool_size=[17, 17], strides=[17, 17], padding='SAME') output = tf.squeeze(ave_pool2d(outputs), [1, 2]) lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_network_coocmap_cls(batch_time_inputs, n_classes, name='coocmap_net'): batch_time_input = batch_time_inputs[0] batch_time_cls = batch_time_inputs[1] with tf.variable_scope(name): lstm_outputs_dp = build_convlstm_dp_network(batch_time_input, pa.convlstm_units, layer_num=1) out_weights = tf.Variable(tf.random_normal([pa.convlstm_units + 5, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) # Each output multiply by same fc layer: list [time_step][batch, n_outputs] lstm_prediction_list = [] for i in range(lstm_outputs_dp.shape[1]): outputs_1 = lstm_outputs_dp[:, i, :] ave_pool2d = tf.layers.AveragePooling2D(pool_size=[17, 17], strides=[17, 17], padding='SAME') output_1 = tf.squeeze(ave_pool2d(outputs_1), [1, 2]) output_3 = batch_time_cls[:, i, :] output = tf.concat([output_1, output_3], 1) lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_fusion_network_map(batch_time_inputs, n_classes, name='fusion_net'): batch_time_input_1 = batch_time_inputs[0] batch_time_input_2 = batch_time_inputs[1] batch_time_cls = batch_time_inputs[2] with tf.variable_scope(name): with tf.variable_scope('cooc_convlstm'): lstm_outputs_dp_1 = build_convlstm_dp_network(batch_time_input_1, pa.convlstm_units, layer_num=1) with tf.variable_scope('jc_lstm'): lstm_outputs_dp_2 = build_lstm_network(batch_time_input_2, pa.lstm_units, layer_num=1) out_weights = tf.Variable(tf.random_normal([pa.convlstm_units + pa.lstm_units + 5, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) # Each output multiply by same fc layer: list [time_step][batch, n_outputs] lstm_prediction_list = [] for i in range(lstm_outputs_dp_1.shape[1]): outputs_1 = lstm_outputs_dp_1[:, i, :, :, :] ave_pool2d = tf.layers.AveragePooling2D(pool_size=[17, 17], strides=[17, 17], padding='SAME') output_1 = tf.squeeze(ave_pool2d(outputs_1),[1, 2]) output_2 = lstm_outputs_dp_2[:, i, :] output_3 = batch_time_cls[:, i, :] output = tf.concat([output_1, output_2, output_3], 1) lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_fusion_network_map_jc(batch_time_inputs, n_classes, name='fusion_net'): batch_time_input_1 = batch_time_inputs[0] batch_time_input_2 = batch_time_inputs[1] with tf.variable_scope(name): with tf.variable_scope('cooc_convlstm'): lstm_outputs_dp_1 = build_convlstm_dp_network(batch_time_input_1, pa.convlstm_units, layer_num=1) with tf.variable_scope('jc_lstm'): lstm_outputs_dp_2 = build_lstm_network(batch_time_input_2, pa.lstm_units, layer_num=1) out_weights = tf.Variable(tf.random_normal([pa.convlstm_units + pa.lstm_units, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) lstm_prediction_list = [] for i in range(lstm_outputs_dp_1.shape[1]): outputs_1 = lstm_outputs_dp_1[:, i, :, :, :] ave_pool2d = tf.layers.AveragePooling2D(pool_size=[17, 17], strides=[17, 17], padding='SAME') output_1 = tf.squeeze(ave_pool2d(outputs_1), [1, 2]) output_2 = lstm_outputs_dp_2[:, i, :] output = tf.concat([output_1, output_2], 1) lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_network_one_feat_cls(batch_time_inputs, n_unit, n_classes, name): batch_time_input = batch_time_inputs[0] batch_time_cls = batch_time_inputs[1] with tf.variable_scope(name): if name == 'jc_net': lstm_outputs_dp = build_lstm_network(batch_time_input, n_unit, layer_num=1) out_weights = tf.Variable(tf.random_normal([n_unit + 5, n_classes])) out_bias = tf.Variable(tf.random_normal([n_classes])) # Each output multiply by same fc layer: list [time_step][batch, n_outputs] lstm_prediction_list = [] for i in range(lstm_outputs_dp.shape[1]): output_1 = lstm_outputs_dp[:, i, :] output_3 = batch_time_cls[:, i, :] output = tf.concat([output_1, output_3], 1) lstm_prediction_list.append((tf.matmul(output, out_weights) + out_bias)) return lstm_prediction_list def build_rnn_loss(lstm_prediction_list, batch_time_class_label): """ Build rnn loss tensor :param lstm_prediction_list: list [time_step][batch, n_outputs] :param batch_time_class_label: [batch, time_step, n_classes] :return: total loss """ t_bc_label_list = tf.unstack(batch_time_class_label, axis=1) time_batch_loss_list = [] for i in range(len(lstm_prediction_list)): time_batch_loss = tf.nn.softmax_cross_entropy_with_logits( logits=lstm_prediction_list[i], labels=t_bc_label_list[i]) time_batch_loss_list.append(time_batch_loss) loss = tf.reduce_mean(time_batch_loss_list[pa.label_delay_frames:]) return loss
49.121951
124
0.693024
1,186
8,056
4.311973
0.102867
0.089754
0.060227
0.042237
0.856668
0.838287
0.814822
0.811693
0.807196
0.800352
0
0.022928
0.198734
8,056
163
125
49.423313
0.769326
0.072244
0
0.64
0
0
0.016088
0
0
0
0
0
0
1
0.072
false
0
0.04
0
0.184
0.016
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c8deeb4b5fc5f1cba7f00089172dfab0eb79e91e
88
py
Python
utils/plotter.py
cds-snc/gc_forms_load_testing
adb1217b36e10047e0470b4de2e47033517f91f8
[ "MIT" ]
null
null
null
utils/plotter.py
cds-snc/gc_forms_load_testing
adb1217b36e10047e0470b4de2e47033517f91f8
[ "MIT" ]
null
null
null
utils/plotter.py
cds-snc/gc_forms_load_testing
adb1217b36e10047e0470b4de2e47033517f91f8
[ "MIT" ]
null
null
null
from bokeh.models import DatetimeTickFormatter from bokeh.plotting import figure, show
22
46
0.852273
11
88
6.818182
0.727273
0.24
0
0
0
0
0
0
0
0
0
0
0.113636
88
3
47
29.333333
0.961538
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
74032cb8f728c9878d5e089c5fe1bb9a93316ca7
1,127
py
Python
tests/test_randcrack.py
levijskal/Python-random-module-cracker
260241efaaed0132b05a46c25deccc4306ba965f
[ "MIT" ]
201
2018-04-21T01:32:45.000Z
2022-03-27T21:02:31.000Z
tests/test_randcrack.py
levijskal/Python-random-module-cracker
260241efaaed0132b05a46c25deccc4306ba965f
[ "MIT" ]
8
2019-04-09T22:39:58.000Z
2022-02-28T17:13:17.000Z
tests/test_randcrack.py
levijskal/Python-random-module-cracker
260241efaaed0132b05a46c25deccc4306ba965f
[ "MIT" ]
21
2018-04-18T03:26:33.000Z
2022-03-02T16:33:45.000Z
import random import time import pytest from randcrack import RandCrack def test_submit_not_enough(): random.seed(time.time()) cracker = RandCrack() for i in range(623): cracker.submit(random.randint(0, 4294967294)) with pytest.raises(ValueError): cracker.predict_randint(0, 1) def test_submit_too_much(): random.seed(time.time()) cracker = RandCrack() for i in range(624): cracker.submit(random.randint(0, 4294967294)) with pytest.raises(ValueError): cracker.submit(random.randint(0, 4294967294)) def test_predict_first_624(): random.seed(time.time()) cracker = RandCrack() for i in range(624): cracker.submit(random.randint(0, 4294967294)) assert sum([random.getrandbits(32) == cracker.predict_getrandbits(32) for _ in range(1000)]) >= 620 def test_predict_first_1000_close(): random.seed(time.time()) cracker = RandCrack() for i in range(624): cracker.submit(random.randint(0, 4294967294)) assert sum([random.getrandbits(32) == cracker.predict_getrandbits(32) for _ in range(1000)]) >= 980
21.264151
103
0.681455
146
1,127
5.136986
0.260274
0.056
0.126667
0.173333
0.761333
0.761333
0.721333
0.721333
0.721333
0.721333
0
0.108049
0.195209
1,127
52
104
21.673077
0.718853
0
0
0.6
0
0
0
0
0
0
0
0
0.066667
1
0.133333
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
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
6
cd9cac62255432fc8d554f7346e2353c7622bf29
7,720
py
Python
tkoptiondialog.py
gd-codes/minecraft-pixel-art
f324e9d2381778a5ef3beb1b6807a3c8429b7c02
[ "MIT" ]
3
2020-10-16T11:35:02.000Z
2021-08-11T18:16:59.000Z
tkoptiondialog.py
gd-codes/minecraft-pixel-art
f324e9d2381778a5ef3beb1b6807a3c8429b7c02
[ "MIT" ]
null
null
null
tkoptiondialog.py
gd-codes/minecraft-pixel-art
f324e9d2381778a5ef3beb1b6807a3c8429b7c02
[ "MIT" ]
null
null
null
""" tkoptiondialog.py Module to use tkinter to create a window that shows multiple user-specified RadioButtons or CheckButtons to select and returns values, like simpledialog returns strings, integers or floats To create a dialog with radiobuttons, use >>> askradio(choicelist, title='', prompt="", parent=None, **options) Gautam D April 2020""" from tkinter import * from tkinter import messagebox class RadioOptions: """Create a window to display radiobuttons and allow user to select a choice""" def __init__(self, title='', text="", opts=[], parent=None, mustselect=False, **kwargs): """Create the tkinter GUI and variables""" self.parent = parent self.title = title self.text = text self.opts = opts self.value = None self.mustselect = mustselect """If parent is not given, creates a 1x1 Tk window in the monitor to act as the parent, so that the transient() function can be used""" if self.parent is not None : self.dialog = Toplevel(self.parent) self.dialog.transient(self.parent) else : self._root = Tk() self._root.overrideredirect(1) self._root.geometry('1x1+1+1') self.dialog = Toplevel(self._root) self.dialog.transient(self._root) self.dialog.protocol('WM_DELETE_WINDOW', self.close) self._var = IntVar() self._var.set(-1) if self.title : self.dialog.title(self.title) self.label = Label(self.dialog, text=self.text) self.label.pack(padx=20, pady=10, expand=YES, fill=X) self._oframe = Frame(self.dialog) self._oframe.pack(pady=5, padx=10, expand=YES, fill=BOTH) self._widgets = [] #try : for i in range(len(self.opts)) : self._widgets.append( Radiobutton(self._oframe, text=str(self.opts[i]), var=self._var, value=i, **kwargs)) self._widgets[i].pack(padx=3,pady=3,expand=YES) #except TypeError : # raise ValueError("'opts' must be a list or tuple containing \ #text for the radiobutton messages") self._bframe = Frame(self.dialog) self._bframe.pack(padx=10, pady=10, expand=YES, fill=X, anchor='c') self._bframei = Frame(self._bframe) self._bframei.pack(anchor='c') self.okbtn = Button(self._bframei, text='OK', width=10, command=self.ok) self.okbtn.grid(column=0, row=0, padx=3, pady=3, sticky='e') self.canbtn = Button(self._bframei, text='Cancel', width=10, command=self.cancel) self.canbtn.grid(column=1, row=0, padx=3, pady=3, sticky='w') self.okbtn.focus_set() def close(self): """Protocol to close the window""" if self._var.get() == -1: self.value = None if self.mustselect : messagebox.showwarning('Empty', "You must select one of the \ options.", parent=self.dialog) return self.dialog.destroy() if self.parent is None : self._root.destroy() return None def ok(self): self.value = self._var.get() self.close() def cancel(self): self.value = None self.close() class CheckOptions: """Create a window to display checkbuttons and allow user to select choices""" def __init__(self, title='', text="", opts=[], parent=None, mustselect=False, **kwargs): """Create the tkinter GUI and variables""" self.parent = parent self.title = title self.text = text self.opts = opts self.value = None self.mustselect = mustselect """If parent is not given, creates a 1x1 Tk window in the monitor to act as the parent, so that the transient() function can be used""" if self.parent is not None : self.dialog = Toplevel(self.parent) self.dialog.transient(self.parent) else : self._root = Tk() self._root.overrideredirect(1) self._root.geometry('1x1+1+1') self.dialog = Toplevel(self._root) self.dialog.transient(self._root) self.dialog.protocol('WM_DELETE_WINDOW', self.close) self._varlist = [] if self.title : self.dialog.title(self.title) self.label = Label(self.dialog, text=self.text) self.label.pack(padx=20, pady=10, expand=YES, fill=X) self._oframe = Frame(self.dialog) self._oframe.pack(pady=5, padx=10, expand=YES, fill=BOTH) self._widgets = [] #try : for i in range(len(self.opts)) : v = BooleanVar() self._varlist.append(v) self._widgets.append( Checkbutton(self._oframe, text=str(self.opts[i]), onvalue=True, offvalue=False, var=self._varlist[i], **kwargs)) self._widgets[i].pack(padx=3,pady=3,expand=YES) #except TypeError : # raise ValueError("'opts' must be a list or tuple containing \ #text for the radiobutton messages") self._bframe = Frame(self.dialog) self._bframe.pack(padx=10, pady=10, expand=YES, fill=X, anchor='c') self._bframei = Frame(self._bframe) self._bframei.pack(anchor='c') self.okbtn = Button(self._bframei, text='OK', width=10, command=self.ok) self.okbtn.grid(column=0, row=0, padx=3, pady=3, sticky='e') self.canbtn = Button(self._bframei, text='Cancel', width=10, command=self.cancel) self.canbtn.grid(column=1, row=0, padx=3, pady=3, sticky='w') self.okbtn.focus_set() def close(self): """Protocol to close the window""" if type(self.value)==list and not any(self.value) : if self.mustselect : messagebox.showwarning('Empty', "You must select one of the \ options.", parent=self.dialog) return self.dialog.destroy() if self.parent is None : self._root.destroy() return None def ok(self): self.value = [v.get() for v in self._varlist] self.close() def cancel(self): self.value = None self.close() """Functions to implement the prompt and return a value after waiting""" def askradio(choicelist, title='', prompt="", parent=None, mustselect=False, **options): """Create an instance of RadioOptions and wait for the user to choose one. Specify radiobuttons by giving the text for each in the choices list, If a button is selected, returns the integer corresponding to its index. Return None if not selected or cancelled""" x = RadioOptions(title, prompt, choicelist, parent, mustselect, **options) x.dialog.wait_window(x.dialog) v = x.value return v def askcheckbox(choicelist, title='', prompt="", parent=None, mustselect=False, **options): """Create an instance of CheckOptions and wait for the user to choose one or more. Specify checkbuttons by giving the text for each in the choices list, Return a list of boolean values corresponding to each checkbutton's state, or return None if cancelled""" x = CheckOptions(title, prompt, choicelist, parent, mustselect, **options) x.dialog.wait_window(x.dialog) v = x.value return v
39.387755
84
0.585492
969
7,720
4.599587
0.188854
0.049361
0.014808
0.020193
0.787301
0.768454
0.757909
0.746242
0.733677
0.733677
0
0.012985
0.301684
7,720
195
85
39.589744
0.813764
0.178497
0
0.845588
0
0
0.013971
0
0
0
0
0
0
1
0.073529
false
0
0.014706
0
0.147059
0
0
0
0
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
6
cdd0b1f07ea6ec3122b22b379d9d93436a8df5b9
9,374
py
Python
Template/ProcessMFT_voc.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
Template/ProcessMFT_voc.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
Template/ProcessMFT_voc.py
szegedai/hun_ner_checklist
d4aefc29b3d6966e71f1c47d469c2cbbf6dcf561
[ "MIT" ]
null
null
null
import itertools from TemplateReader import readLines from TemplateWriter import * def cartesianProduct(start, finish): tagsDf = templateDf[start-1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] persons1 = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start] + ' ' + templateDf['Unnamed: 2'][start:finish] persons2 = templateDf['Unnamed: 3'][start:finish] + ' ' + templateDf['Unnamed: 4'][start] generatedSentences = [] for sentence in itertools.product(persons1, persons2): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProduct2(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] orgs = templateDf['Basic cases'][start:finish] persons1 = templateDf['Unnamed: 3'][start:finish-1] persons2 = templateDf['Unnamed: 4'][start:finish - 1] words1 = templateDf['Unnamed: 1'][start:start+4] + ' ' + templateDf['Unnamed: 2'][start] words2 = templateDf['Unnamed: 5'][start] + ' ' + templateDf['Unnamed: 6'][start] + ' ' + templateDf['Unnamed: 7'][start] + ' ' + templateDf['Unnamed: 8'][start] + ' ' + templateDf['Unnamed: 9'][start] generatedSentences = [] for sentence in itertools.product(orgs, words1, persons1, persons2, [words2]): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProduct3(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] words = templateDf['Basic cases'][start:start+2] miscs = templateDf['Unnamed: 1'][start] + ' ' + templateDf['Unnamed: 2'][start:finish] generatedSentences = [] for sentence in itertools.product(words, miscs): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductWo(start, finish): tagsDf = templateDf[start-1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] persons1 = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start]\ + ' ' + templateDf['Unnamed: 2'][start]\ + ' ' + templateDf['Unnamed: 3'][start:finish] persons2 = templateDf['Unnamed: 4'][start:finish] generatedSentences = [] for sentence in itertools.product(persons1, persons2): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) print(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductWo2(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] orgs = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start] + ' ' + templateDf['Unnamed: 2'][start:finish] persons1 = templateDf['Unnamed: 5'][start:finish - 1] persons2 = templateDf['Unnamed: 6'][start:finish - 1] words1 = templateDf['Unnamed: 3'][start] + ' ' + templateDf['Unnamed: 4'][start] words2 = templateDf['Unnamed: 7'][start] + ' ' + templateDf['Unnamed: 8'][start] + ' ' + templateDf['Unnamed: 9'][start] generatedSentences = [] for sentence in itertools.product(orgs, [words1], persons1, persons2, [words2]): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductWo3(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] words = templateDf['Unnamed: 2'][start:start+2] miscs = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start:finish] generatedSentences = [] for sentence in itertools.product(miscs, words): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductNeg(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] persons1 = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start] + ' ' + templateDf['Unnamed: 2'][start] + ' ' + templateDf['Unnamed: 3'][start:finish] persons2 = templateDf['Unnamed: 4'][start:finish] + ' ' + templateDf['Unnamed: 5'][start] generatedSentences = [] for sentence in itertools.product(persons1, persons2): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductNeg2(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] orgs = templateDf['Basic cases'][start:finish] persons1 = templateDf['Unnamed: 3'][start:finish-1] persons2 = templateDf['Unnamed: 4'][start:finish - 1] words1 = templateDf['Unnamed: 1'][start:start+4] + ' ' + templateDf['Unnamed: 2'][start] words2 = templateDf['Unnamed: 5'][start] + ' ' + templateDf['Unnamed: 6'][start] + ' ' + templateDf['Unnamed: 7'][start] + ' ' + templateDf['Unnamed: 8'][start] + ' ' + templateDf['Unnamed: 9'][start] + ' ' + templateDf['Unnamed: 10'][start] generatedSentences = [] for sentence in itertools.product(orgs, words1, persons1, persons2, [words2]): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def cartesianProductNeg3(start, finish): tagsDf = templateDf[start - 1:start].dropna(axis=1, how='all').values.tolist() tags = tagsDf[0] words = templateDf['Basic cases'][start] + ' ' + templateDf['Unnamed: 1'][start:start+2] miscs = templateDf['Unnamed: 2'][start] + ' ' + templateDf['Unnamed: 3'][start] + ' ' + templateDf['Unnamed: 4'][start:finish] generatedSentences = [] for sentence in itertools.product(words, miscs): generatedSentences.append(' '.join(sentence) + ' .') for sentence in generatedSentences: actualSentences.append(sentence) for word in sentence.split(): actualWords.append(word) for tag in tags: actualTags.append(tag) appendLine(actualTags, actualWords) def processBasic(): cartesianProduct(2, 9) cartesianProduct2(13, 23) readLines(27, 37, templateDf, actualWords, actualTags, actualSentences) readLines(40, 50, templateDf, actualWords, actualTags, actualSentences) cartesianProduct3(53, 68) saveSentences(actualSentences, 'MFT_voc', 'MFT_vocBasicIn') saveWordsAndTags(actualWords, actualTags, 'MFT_voc', 'MFT_vocBasicTrue') def processWo(): cartesianProductWo(73, 80) cartesianProductWo2(84, 94) readLines(98, 108, templateDf, actualWords, actualTags, actualSentences) readLines(111, 121, templateDf, actualWords, actualTags, actualSentences) cartesianProductWo3(124, 139) saveSentences(actualSentences, 'MFT_voc', 'MFT_vocWordOrderVariationsIn') saveWordsAndTags(actualWords, actualTags, 'MFT_voc', 'MFT_vocWordOrderVariationsTrue') def processNeg(): cartesianProductNeg(144, 151) cartesianProductNeg2(155, 165) readLines(169, 179, templateDf, actualWords, actualTags, actualSentences) readLines(182, 192, templateDf, actualWords, actualTags, actualSentences) cartesianProductNeg3(195, 210) saveSentences(actualSentences, 'MFT_voc', 'MFT_vocNegIn') saveWordsAndTags(actualWords, actualTags, 'MFT_voc', 'MFT_vocNegTrue') if __name__ == '__main__': templateDf = pd.read_csv('MFT_voc/Checklist - mft_voc.csv', sep=';', encoding='utf-8') actualWords = [] actualTags = [] actualSentences = [] processBasic() processWo() processNeg()
37.951417
245
0.657243
954
9,374
6.433962
0.119497
0.135712
0.096774
0.039589
0.838547
0.780873
0.745846
0.745846
0.710655
0.703975
0
0.028034
0.200875
9,374
246
246
38.105691
0.79135
0
0
0.626374
0
0
0.09345
0.006187
0
0
0
0
0
1
0.065934
false
0
0.016484
0
0.082418
0.005495
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
cdd4e3ffebc501932473d07ec9cf9656a1fa2671
33
py
Python
rikerbot/proto/__init__.py
nickelpro/RikerBot
fdf8c96a3c13a4327afcefb650d1ad352ee6552b
[ "Zlib" ]
45
2020-08-07T18:09:29.000Z
2022-03-07T12:36:35.000Z
rikerbot/proto/__init__.py
nickelpro/RikerBot
fdf8c96a3c13a4327afcefb650d1ad352ee6552b
[ "Zlib" ]
22
2020-08-11T07:34:59.000Z
2022-02-16T16:51:25.000Z
rikerbot/proto/__init__.py
nickelpro/RikerBot
fdf8c96a3c13a4327afcefb650d1ad352ee6552b
[ "Zlib" ]
10
2020-08-14T22:54:35.000Z
2022-03-18T18:03:45.000Z
from .MinecraftProtocol import *
16.5
32
0.818182
3
33
9
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
a81975f0a2a96cdd0b8417759af2d1e8fc0e7ee3
1,412
py
Python
mindsdb/libs/data_types/transaction_output_row.py
claswh/mindsdb
3222cd34eb45c6d8c3a8fa3e0d9ee1eb5e78068c
[ "MIT" ]
1
2019-07-09T20:21:27.000Z
2019-07-09T20:21:27.000Z
mindsdb/libs/data_types/transaction_output_row.py
claswh/mindsdb
3222cd34eb45c6d8c3a8fa3e0d9ee1eb5e78068c
[ "MIT" ]
null
null
null
mindsdb/libs/data_types/transaction_output_row.py
claswh/mindsdb
3222cd34eb45c6d8c3a8fa3e0d9ee1eb5e78068c
[ "MIT" ]
null
null
null
from mindsdb.libs.helpers.explain_prediction import explain_prediction class TransactionOutputRow: def __init__(self, transaction_output, row_index): self.transaction_output = transaction_output self.row_index = row_index def __getitem__(self, item): return self.transaction_output.data[item][self.row_index] def __contains__(self, item): return item in self.transaction_output.data.keys() def explain(self): prediction_row = {col: self.transaction_output.data[col][self.row_index] for col in list(self.transaction_output.data.keys())} #self.transaction_output.data.iloc[self.row_index] return explain_prediction(self.transaction_output.transaction.lmd, prediction_row) def why(self): return self.explain() def __str__(self): return str(self.as_dict()) def as_dict(self): return {key: self.transaction_output.data[key][self.row_index] for key in list(self.transaction_output.data.keys())} def as_list(self): #Note that here we will not output the confidence columns return [self.transaction_output.data[col][self.row_index] for col in list(self.transaction_output.data.keys())] @property def _predicted_values(self): return {pred_col:self.transaction_output.evaluations[pred_col][self.row_index].predicted_value for pred_col in self.transaction_output.evaluations}
39.222222
155
0.737252
190
1,412
5.194737
0.252632
0.258359
0.297872
0.227964
0.272543
0.235056
0.199595
0.164134
0.164134
0.164134
0
0
0.165014
1,412
35
156
40.342857
0.83715
0.074363
0
0
0
0
0
0
0
0
0
0
0
1
0.409091
false
0
0.045455
0.318182
0.818182
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
a82e69fd315e2a76718218517a467436507cbb74
14,241
py
Python
gems/gemsPlay.py
bastion-gaming/Get-Gems---Client-discord
ad84e3d00a0234e20c03c93caf0685ba3a944d4a
[ "MIT" ]
null
null
null
gems/gemsPlay.py
bastion-gaming/Get-Gems---Client-discord
ad84e3d00a0234e20c03c93caf0685ba3a944d4a
[ "MIT" ]
null
null
null
gems/gemsPlay.py
bastion-gaming/Get-Gems---Client-discord
ad84e3d00a0234e20c03c93caf0685ba3a944d4a
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.ext.commands import bot from gems import gemsFonctions as GF from core import gestion as ge import gg_lib as gg from languages import lang as lang_P import datetime as dt class GemsPlay(commands.Cog): def __init__(self, ctx): return(None) @commands.command(pass_context=True) async def daily(self, ctx): """Get your daily reward!""" # ======================================================================= # Initialisation des variables générales de la fonction # ======================================================================= ID = ctx.author.id param = dict() param["ID"] = ID ge.socket.send_string(gg.std_send_command("daily", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 0), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def bank(self, ctx, ARG = None, ARG2 = None): """**[bal/add/saving] [name/number]** | Savings account""" # ======================================================================= # Initialistation des variables générales de la fonction # ======================================================================= ID = ctx.author.id param = dict() param["ID"] = ID param["ARG"] = ARG param["ARG2"] = ARG2 ge.socket.send_string(gg.std_send_command("bank", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if ARG == "bal" and ARG2 is not None: N = ctx.guild.get_member(ge.nom_ID(ARG2)).name else: N = ctx.author.name if desc[0] == "bal": if ARG2 != None: ID = ge.nom_ID(ARG2) nom = ctx.guild.get_member(ID) ARG2 = nom.name title = lang_P.forge_msg(lang, "bank", [N], False) # title = "Compte épargne de {}".format(ARG2) else: title = lang_P.forge_msg(lang, "bank", [N], False) # title = "Compte épargne de {}".format(ctx.author.name) msg = discord.Embed(title = title, color= 13752280, description = "", timestamp=dt.datetime.now()) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) msg.add_field(name="Balance", value=desc[2], inline=False) msg.add_field(name="Commandes", value=desc[3], inline=False) await ctx.channel.send(embed = msg) elif desc[0] == "add": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 4), color= 13752280, description = desc[2], timestamp=dt.datetime.now()) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) elif desc[0] == "saving": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 5), color= 13752280, description = desc[2], timestamp=dt.datetime.now()) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def stealing(self, ctx, name=None): """**{name}** | Steal :gem:`gems` from other players!""" ID = ctx.author.id param = dict() param["ID"] = ID param["name"] = name ge.socket.send_string(gg.std_send_command("stealing", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 1), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def crime(self, ctx): """Commit a crime and earn :gem:`gems` Beware of DiscordCop!""" ID = ctx.author.id param = dict() param["ID"] = ID ge.socket.send_string(gg.std_send_command("crime", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 2), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def gamble(self, ctx, valeur): """**[bet]** | Are you a gambler's man?""" ID = ctx.author.id param = dict() param["ID"] = ID param["valeur"] = valeur ge.socket.send_string(gg.std_send_command("gamble", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "titres", None, False, 3), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def mine(self, ctx): """Let's mine, mates!""" ID = ctx.author.id param = dict() param["ID"] = ID ge.socket.send_string(gg.std_send_command("mine", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "stats", None, False, 6), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def dig(self, ctx): """Let's dig, mates!""" ID = ctx.author.id param = dict() param["ID"] = ID ge.socket.send_string(gg.std_send_command("dig", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "stats", None, False, 8), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def fish(self, ctx): """Let us sin mates!""" ID = ctx.author.id param = dict() param["ID"] = ID ge.socket.send_string(gg.std_send_command("fish", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "stats", None, False, 7), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def slots(self, ctx, imise = None): """**{bet}** | Slot machine, minimum bet is 10 :gem:`gems`""" ID = ctx.author.id param = dict() param["ID"] = ID param["imise"] = imise ge.socket.send_string(gg.std_send_command("slots", ID, ge.name_pl, param)) desc = GF.msg_recv() lang = desc[1] if desc[0] == "OK": msg = discord.Embed(title = lang_P.forge_msg(lang, "stats", None, False, 9), color= 13752280, description = desc[2]) msg.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = msg) else: await ctx.channel.send(desc[2]) @commands.command(pass_context=True) async def open(self, ctx, name = None): """**[name]** | Loot Box Opening""" ID = ctx.author.id param = dict() param["ID"] = ID param["name"] = name ge.socket.send_string(gg.std_send_command("open", ID, ge.name_pl, param)) msg = GF.msg_recv() if msg[0] == "OK": titre = msg[2] desc = msg[1] MsgEmbed = discord.Embed(title = "Loot Box | {}".format(titre), color= 13752280, description = desc) MsgEmbed.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url) await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(msg[1]) @commands.command(pass_context=True) async def hothouse(self, ctx, item = None): """**{seed/pumpkin}** | Let's plant mates!""" ID = ctx.author.id param = dict() param["ID"] = ID param["item"] = item ge.socket.send_string(gg.std_send_command("hothouse", ID, ge.name_pl, param)) msg = GF.msg_recv() if msg[0] == "OK": lang = msg[1] nbplanting = msg[2] desc = lang_P.forge_msg(lang, "hothouse", [GF.get_idmoji("seed")], False, 0) titre = lang_P.forge_msg(lang, "hothouse", None, False, 1) MsgEmbed = discord.Embed(title = titre, color= 6466585, description = desc) k = len(msg) i = 3 while i < k: j = (i-3)/2 if j % 10 == 0 and j != nbplanting and j != 0: if j // 10 == 1: await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(embed = MsgEmbed, delete_after = 90) MsgEmbed = discord.Embed(title = lang_P.forge_msg(lang, "hothouse", [int((j//10)+1)], False, 2), color= 6466585, description = "Voici tes plantation.") MsgEmbed.add_field(name=lang_P.forge_msg(lang, "hothouse", [msg[i]], False, 3), value=msg[i+1], inline=False) else: MsgEmbed.add_field(name=lang_P.forge_msg(lang, "hothouse", [msg[i]], False, 3), value=msg[i+1], inline=False) i += 2 await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(msg[1]) @commands.command(pass_context=True) async def ferment(self, ctx, item = None): """**{grapes/wheat}** | Fermentation winery. Unlimited alcohol!""" ID = ctx.author.id param = dict() param["ID"] = ID param["item"] = item ge.socket.send_string(gg.std_send_command("ferment", ID, ge.name_pl, param)) msg = GF.msg_recv() if msg[0] == "OK": lang = msg[1] nbplanting = msg[2] desc = lang_P.forge_msg(lang, "ferment", None, False, 0) titre = lang_P.forge_msg(lang, "ferment", None, False, 1) MsgEmbed = discord.Embed(title = titre, color= 9633863, description = desc) k = len(msg) i = 3 while i < k: j = (i-3)/2 if j % 10 == 0 and j != nbplanting and j != 0: if j // 10 == 1: await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(embed = MsgEmbed, delete_after = 90) MsgEmbed = discord.Embed(title = lang_P.forge_msg(lang, "ferment", [int((j//10)+1)], False, 2), color= 9633863, description = "Voici vos barrils.") MsgEmbed.add_field(name=lang_P.forge_msg(lang, "ferment", [msg[i]], False, 3), value=msg[i+1], inline=False) else: MsgEmbed.add_field(name=lang_P.forge_msg(lang, "ferment", [msg[i]], False, 3), value=msg[i+1], inline=False) i += 2 await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(msg[1]) @commands.command(pass_context=True) async def cooking(self, ctx, item = None): """**{potato/pumpkin/chocolate}** | Let's cook together!""" ID = ctx.author.id param = dict() param["ID"] = ID param["item"] = item ge.socket.send_string(gg.std_send_command("cooking", ID, ge.name_pl, param)) msg = GF.msg_recv() if msg[0] == "OK": lang = msg[1] nbplanting = msg[2] desc = lang_P.forge_msg(lang, "cooking", [GF.get_idmoji("fries")], False, 0) titre = lang_P.forge_msg(lang, "cooking", None, False, 1) MsgEmbed = discord.Embed(title = titre, color= 14902529, description = desc) k = len(msg) i = 3 while i < k: j = (i-3)/2 if j % 10 == 0 and j != nbplanting and j != 0: if j // 10 == 1: await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(embed = MsgEmbed, delete_after = 90) MsgEmbed = discord.Embed(title = lang_P.forge_msg(lang, "cooking", [int((j//10)+1)], False, 2), color= 14902529, description = "Voici vos fours.") MsgEmbed.add_field(name=lang_P.forge_msg(lang, "cooking", [msg[i]], False, 3), value=msg[i+1], inline=False) else: MsgEmbed.add_field(name=lang_P.forge_msg(lang, "cooking", [msg[i]], False, 3), value=msg[i+1], inline=False) i += 2 await ctx.channel.send(embed = MsgEmbed) else: await ctx.channel.send(msg[1]) def setup(bot): bot.add_cog(GemsPlay(bot)) open("help/cogs.txt", "a").write("GemsPlay\n")
43.953704
171
0.544625
1,852
14,241
4.084233
0.105832
0.046404
0.067425
0.085405
0.801296
0.792834
0.78596
0.773797
0.746827
0.72303
0
0.028583
0.294923
14,241
323
172
44.089783
0.724729
0.034759
0
0.698182
0
0
0.035274
0
0
0
0
0
0
1
0.007273
false
0.047273
0.029091
0.003636
0.04
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b56f45ae6a67176f0f9c9775d6432a6801d350f4
197
py
Python
post/admin.py
abdukhashimov/django-rest-blog
96c58fb49caa1222c77d1d58b0e13fd5710a82d1
[ "MIT" ]
null
null
null
post/admin.py
abdukhashimov/django-rest-blog
96c58fb49caa1222c77d1d58b0e13fd5710a82d1
[ "MIT" ]
null
null
null
post/admin.py
abdukhashimov/django-rest-blog
96c58fb49caa1222c77d1d58b0e13fd5710a82d1
[ "MIT" ]
null
null
null
from django.contrib import admin from post.models import Category, Tag, Post, Author admin.site.register(Category) admin.site.register(Tag) admin.site.register(Post) admin.site.register(Author)
19.7
51
0.80203
29
197
5.448276
0.413793
0.227848
0.43038
0
0
0
0
0
0
0
0
0
0.091371
197
9
52
21.888889
0.882682
0
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
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
b5862d945cc532617676eb30b257f501c4fd314a
177
py
Python
npbench/benchmarks/polybench/mvt/mvt_pythran.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
27
2021-05-10T11:49:13.000Z
2022-03-22T18:07:19.000Z
npbench/benchmarks/polybench/mvt/mvt_pythran.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
3
2021-12-01T13:03:17.000Z
2022-03-17T10:53:00.000Z
npbench/benchmarks/polybench/mvt/mvt_pythran.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
7
2021-06-24T03:40:25.000Z
2022-01-26T09:04:33.000Z
import numpy as np # pythran export kernel(float64[:], float64[:], float64[:], float64[:], float64[:,:]) def kernel(x1, x2, y_1, y_2, A): x1 += A @ y_1 x2 += y_2 @ A
19.666667
85
0.570621
29
177
3.344828
0.517241
0.57732
0.649485
0.57732
0
0
0
0
0
0
0
0.130435
0.220339
177
8
86
22.125
0.572464
0.468927
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
1
0
0
null
1
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
0
0
0
0
6
a90e385a6ddd6c0ff2916c66db7a530f71bc6278
487
py
Python
tests/analysis/test_analysis__generate_tex_table.py
kamilazdybal/PCAfold
251ca0dc8c8f98976266b94147504247ddd09bd2
[ "MIT" ]
1
2022-02-01T08:57:18.000Z
2022-02-01T08:57:18.000Z
tests/analysis/test_analysis__generate_tex_table.py
kamilazdybal/PCAfold
251ca0dc8c8f98976266b94147504247ddd09bd2
[ "MIT" ]
null
null
null
tests/analysis/test_analysis__generate_tex_table.py
kamilazdybal/PCAfold
251ca0dc8c8f98976266b94147504247ddd09bd2
[ "MIT" ]
1
2022-03-13T13:19:56.000Z
2022-03-13T13:19:56.000Z
import unittest import numpy as np from PCAfold import preprocess from PCAfold import reduction from PCAfold import analysis class Analysis(unittest.TestCase): def test_analysis__generate_tex_table__allowed_calls(self): pass # ------------------------------------------------------------------------------ def test_analysis__generate_tex_table__not_allowed_calls(self): pass # ------------------------------------------------------------------------------
24.35
80
0.529774
43
487
5.604651
0.511628
0.136929
0.211618
0.190871
0.257261
0.257261
0
0
0
0
0
0
0.125257
487
19
81
25.631579
0.565728
0.322382
0
0.2
1
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.5
0
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
6
a94daf6073294a866c75c81e052f6507a9614c68
23
py
Python
Lixur Protocol/source/shard.py
Nanra/Lixur-Protocol
f445cba0f1b647d3060514bb8b1e82c50ff8afbd
[ "Apache-2.0" ]
null
null
null
Lixur Protocol/source/shard.py
Nanra/Lixur-Protocol
f445cba0f1b647d3060514bb8b1e82c50ff8afbd
[ "Apache-2.0" ]
null
null
null
Lixur Protocol/source/shard.py
Nanra/Lixur-Protocol
f445cba0f1b647d3060514bb8b1e82c50ff8afbd
[ "Apache-2.0" ]
1
2022-02-27T23:25:51.000Z
2022-02-27T23:25:51.000Z
"I just test code here"
23
23
0.73913
5
23
3.4
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.894737
0.913043
0
0
0
0
0.875
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
8d55024f22ebb981e1a774062bc65fd68e04f7b3
36
py
Python
app/routes/__init__.py
fossabot/cssi-api
6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d
[ "MIT" ]
2
2019-07-04T16:57:07.000Z
2019-07-09T16:21:12.000Z
app/routes/__init__.py
fossabot/cssi-api
6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d
[ "MIT" ]
null
null
null
app/routes/__init__.py
fossabot/cssi-api
6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d
[ "MIT" ]
3
2019-05-31T06:05:15.000Z
2019-06-27T19:02:54.000Z
from app.routes.v1 import * # noqa
18
35
0.694444
6
36
4.166667
1
0
0
0
0
0
0
0
0
0
0
0.034483
0.194444
36
1
36
36
0.827586
0.111111
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
8d6571b5673e8176ca2b0854633852aeda555816
122
py
Python
trmf/__init__.py
ivannz/trmf
b486d5f00e525dc51c826685a1ae352cdd400f2e
[ "MIT" ]
13
2018-08-30T15:03:45.000Z
2021-12-04T14:05:28.000Z
trmf/__init__.py
ivannz/trmf
b486d5f00e525dc51c826685a1ae352cdd400f2e
[ "MIT" ]
null
null
null
trmf/__init__.py
ivannz/trmf
b486d5f00e525dc51c826685a1ae352cdd400f2e
[ "MIT" ]
2
2019-07-03T17:41:28.000Z
2021-04-11T10:04:47.000Z
from .base import trmf, trmf_forecast_factors from .base import trmf_forecast_targets from .classes import TRMFRegressor
24.4
45
0.852459
17
122
5.882353
0.529412
0.16
0.28
0.36
0
0
0
0
0
0
0
0
0.114754
122
4
46
30.5
0.925926
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
0
0
0
6
5708c1b5882257ee75eefa9f88beabfd3dd98ea6
18,958
py
Python
tests/test_pylic.py
rhtenhove/pylic
b2b57f5cc65aac8a09d242a8489ade8c59f6e4e0
[ "MIT" ]
null
null
null
tests/test_pylic.py
rhtenhove/pylic
b2b57f5cc65aac8a09d242a8489ade8c59f6e4e0
[ "MIT" ]
null
null
null
tests/test_pylic.py
rhtenhove/pylic
b2b57f5cc65aac8a09d242a8489ade8c59f6e4e0
[ "MIT" ]
null
null
null
import random import string import pytest from pytest_mock import MockerFixture from toml import TomlDecodeError from pylic.pylic import ( check_for_unnecessary_safe_licenses, check_for_unnecessary_unsafe_packages, check_licenses, check_unsafe_packages, main, read_all_installed_licenses_metadata, read_license_from_classifier, read_license_from_metadata, read_pyproject_file, ) def random_string() -> str: return "".join(random.choice(string.ascii_lowercase) for i in range(10)) @pytest.fixture def license() -> str: return random_string() @pytest.fixture def package() -> str: return random_string() @pytest.fixture def version() -> str: def random_integer() -> int: return random.randint(0, 100) return f"{random_integer()}.{random_integer()}.{random_integer()}" def test_correct_exception_raised_if_toml_file_not_found() -> None: with pytest.raises(FileNotFoundError) as exception: read_pyproject_file("does_not_exist.toml") assert exception.value.strerror == "No such file or directory" def test_correct_exception_raised_if_toml_file_contains_invalid_content() -> None: with pytest.raises(TomlDecodeError): read_pyproject_file("tests/test_tomls/invalid.toml") def test_no_licenses_safe_if_no_pylic_tool_section_in_toml_file_found() -> None: safe_licenses, _ = read_pyproject_file("tests/test_tomls/empty.toml") assert len(safe_licenses) == 0 def test_no_packages_unsafe_if_no_pylic_tool_section_in_toml_file_found() -> None: _, unsafe_packages = read_pyproject_file("tests/test_tomls/empty.toml") assert len(unsafe_packages) == 0 def test_unknown_license_can_not_be_safe() -> None: with pytest.raises(ValueError) as exception: read_pyproject_file("tests/test_tomls/unknown_license_allowed.toml") assert ( exception.value.args[0] == "'unknown' can't be an safe license. Whitelist the corresponding packages instead." ) def test_reading_from_classifier_yields_correct_license(mocker: MockerFixture, license: str) -> None: distribution = mocker.MagicMock() distribution.metadata = {"Classifier": f"License :: {license}"} read_license = read_license_from_classifier(distribution) assert read_license == license def test_reading_from_classifier_with_no_classifier_yields_unknown_license(mocker: MockerFixture) -> None: distribution = mocker.MagicMock() distribution.metadata = {"Classifier": "Development Status :: 4 - Beta"} license = read_license_from_classifier(distribution) assert license == "unknown" def test_reading_license_from_metadata_yields_correct_license(mocker: MockerFixture, license: str) -> None: distribution = mocker.MagicMock() distribution.metadata = {"License": license} read_license = read_license_from_metadata(distribution) assert read_license == license def test_reading_license_from_metadata_without_license_entry_yields_unknown_license(mocker: MockerFixture) -> None: distribution = mocker.MagicMock() distribution.metadata = {"Classifier": "Development Status :: 3 - Alpha"} read_license = read_license_from_metadata(distribution) assert read_license == "unknown" def test_reading_license_from_metadata_yields_provided_fallback_license_when_no_license_found( mocker: MockerFixture, license: str ) -> None: distribution = mocker.MagicMock() distribution.metadata = {"Classifier": "Development Status :: 3 - Alpha"} read_license = read_license_from_metadata(distribution, fallback=license) assert read_license == license def test_reading_all_installed_license_metadata_return_correct_result( mocker: MockerFixture, license: str, package: str, version: str ) -> None: distribution1 = mocker.MagicMock() distribution1.metadata = { "Classifier": f"License :: {license}1", "Name": f"{package}1", "License": "do_not_use_this1", "Version": f"{version}1", } distribution2 = mocker.MagicMock() distribution2.metadata = { "Classifier": f"License :: {license}2", "Name": f"{package}2", "License": "do_not_use_this2", "Version": f"{version}2", } mock = mocker.patch("pylic.pylic.distributions") mock.return_value = [distribution1, distribution2] installed_licenses = read_all_installed_licenses_metadata() assert len(installed_licenses) == 2 assert installed_licenses[0] == {"license": f"{license}1", "package": f"{package}1", "version": f"{version}1"} assert installed_licenses[1] == {"license": f"{license}2", "package": f"{package}2", "version": f"{version}2"} def test_correct_license_metadata_is_returned_if_no_classifiers_are_present( mocker: MockerFixture, license: str, package: str, version: str ) -> None: distribution1 = mocker.MagicMock() distribution1.metadata = {"Name": f"{package}1", "License": f"{license}", "Version": f"{version}1"} distribution2 = mocker.MagicMock() distribution2.metadata = {"Name": f"{package}2", "Version": f"{version}2"} mock = mocker.patch("pylic.pylic.distributions") mock.return_value = [distribution1, distribution2] installed_licenses = read_all_installed_licenses_metadata() assert len(installed_licenses) == 2 assert installed_licenses[0] == {"license": f"{license}", "package": f"{package}1", "version": f"{version}1"} assert installed_licenses[1] == {"license": "unknown", "package": f"{package}2", "version": f"{version}2"} def test_osi_approved_license_is_returned_if_osi_approved_classifier_and_no_specific_license_is_set( mocker: MockerFixture, license: str, package: str, version: str ) -> None: distribution = mocker.MagicMock() distribution.metadata = { "Classifier": "License :: OSI Approved", "Name": package, "Version": version, } mock = mocker.patch("pylic.pylic.distributions") mock.return_value = [distribution] installed_licenses = read_all_installed_licenses_metadata() assert len(installed_licenses) == 1 assert installed_licenses[0] == {"license": "OSI Approved", "package": package, "version": version} def test_specific_license_is_returned_if_only_general_osi_approved_classifier_is_set( mocker: MockerFixture, license: str, package: str, version: str ) -> None: distribution = mocker.MagicMock() distribution.metadata = { "Classifier": "License :: OSI Approved", "Name": package, "License": license, "Version": version, } mock = mocker.patch("pylic.pylic.distributions") mock.return_value = [distribution] installed_licenses = read_all_installed_licenses_metadata() assert len(installed_licenses) == 1 assert installed_licenses[0] == {"license": license, "package": package, "version": version} def test_the_specific_osi_approved_classifier_license_is_returned_even_when_and_a_specific_license_is_provided( mocker: MockerFixture, license: str, package: str, version: str ) -> None: distribution = mocker.MagicMock() distribution.metadata = { "Classifier": f"License :: OSI Approved :: {license}", "Name": package, "License": "do not use this", "Version": version, } mock = mocker.patch("pylic.pylic.distributions") mock.return_value = [distribution] installed_licenses = read_all_installed_licenses_metadata() assert len(installed_licenses) == 1 assert installed_licenses[0] == {"license": license, "package": package, "version": version} def test_no_unncessary_licenses_found_if_no_safe_nor_installed_licenses_present(mocker: MockerFixture) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_licenses = check_for_unnecessary_safe_licenses(safe_licenses=[], installed_licenses=[]) assert no_unncessary_licenses print_mock.assert_not_called() def test_no_unncessary_licenses_found_if_no_safe_licenses_provided(mocker: MockerFixture, license: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_licenses = check_for_unnecessary_safe_licenses( safe_licenses=[], installed_licenses=[{"license": f"{license}1"}, {"license": f"{license}2"}] ) assert no_unncessary_licenses print_mock.assert_not_called() def test_all_licenses_unnecessary_if_no_installed_licenses_found(mocker: MockerFixture, license: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_licenses = check_for_unnecessary_safe_licenses( safe_licenses=[f"{license}1", f"{license}2", f"{license}3"], installed_licenses=[] ) assert not no_unncessary_licenses assert print_mock.call_count == 4 def test_correct_unnecessary_safe_licenses_found(mocker: MockerFixture, license: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_licenses = check_for_unnecessary_safe_licenses( safe_licenses=[f"{license}2", f"{license}3"], installed_licenses=[{"license": f"{license}1"}, {"license": f"{license}2"}], ) assert not no_unncessary_licenses assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[1] assert args[0] == f" {license}3" def test_no_unncessary_packages_found_if_no_unsafe_nor_installed_packages_present(mocker: MockerFixture) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_packages = check_for_unnecessary_unsafe_packages(unsafe_packages=[], installed_licenses=[]) assert no_unncessary_packages print_mock.assert_not_called() def test_no_unncessary_packages_found_if_no_unsafe_packages_provided(mocker: MockerFixture, package: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_packages = check_for_unnecessary_unsafe_packages( unsafe_packages=[], installed_licenses=[{"package": f"{package}1"}, {"package": f"{package}2"}] ) assert no_unncessary_packages print_mock.assert_not_called() def test_all_packages_unnecessary_if_no_installed_packages_found(mocker: MockerFixture, package: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_packages = check_for_unnecessary_unsafe_packages( unsafe_packages=[f"{package}1", f"{package}2", f"{package}3"], installed_licenses=[] ) assert not no_unncessary_packages assert print_mock.call_count == 4 def test_correct_unnecessary_unsafe_packages_found(mocker: MockerFixture, package: str) -> None: print_mock = mocker.patch("builtins.print") no_unncessary_packages = check_for_unnecessary_unsafe_packages( unsafe_packages=[f"{package}2", f"{package}3"], installed_licenses=[{"package": f"{package}1"}, {"package": f"{package}2"}], ) assert not no_unncessary_packages assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[1] assert args[0] == f" {package}3" def test_all_whitlisted_packages_valid_if_no_unsafe_packages_nor_any_packages_installed(mocker: MockerFixture) -> None: print_mock = mocker.patch("builtins.print") packages_valid = check_unsafe_packages([], []) assert packages_valid assert print_mock.call_count == 0 def test_unsafe_packages_invalid_if_corresponding_license_not_unknown( mocker: MockerFixture, package: str, version: str ) -> None: print_mock = mocker.patch("builtins.print") packages_valied = check_unsafe_packages( [package], [{"license": "not_unknown", "package": package, "version": version}] ) assert not packages_valied assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Found unsafe packages with a known license. Instead allow these licenses explicitly:" def test_unsafe_packages_valid_if_corresponding_licenses_are_unknown(mocker: MockerFixture, package: str) -> None: print_mock = mocker.patch("builtins.print") packages_valid = check_unsafe_packages([package], [{"license": "unknown", "package": package}]) assert packages_valid assert print_mock.call_count == 0 def test_unsafe_packages_invalid_if_license_unknown_but_package_not_listed_as_unsafe( mocker: MockerFixture, package: str, version: str ) -> None: print_mock = mocker.patch("builtins.print") packages_valid = check_unsafe_packages([], [{"license": "unknown", "package": package, "version": version}]) assert not packages_valid assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Found unsafe packages:" def test_all_licenses_ok_if_no_packages_installed_or_unsafe_and_no_liceses_safe() -> None: all_licenses_ok = check_licenses(safe_licenses=[], installed_licenses=[]) assert all_licenses_ok def test_all_licenses_ok_if_unknown_license_is_unsafe(package: str) -> None: all_licenses_ok = check_licenses( safe_licenses=[], installed_licenses=[{"license": "unknown", "package": package}], ) assert all_licenses_ok def test_all_licenses_ok_if_licenses_are_all_safe(package: str, license: str) -> None: all_licenses_ok = check_licenses( safe_licenses=[f"{license}1", f"{license}2"], installed_licenses=[ {"license": f"{license}1", "package": package}, {"license": f"{license}2", "package": package}, ], ) assert all_licenses_ok def test_all_invalid_licenses_are_found(mocker: MockerFixture, package: str, license: str, version: str) -> None: print_mock = mocker.patch("builtins.print") all_licenses_ok = check_licenses( safe_licenses=[f"{license}2"], installed_licenses=[ {"license": f"{license}1", "package": package, "version": f"{version}1"}, {"license": f"{license}2", "package": package, "version": f"{version}2"}, {"license": f"{license}3", "package": package, "version": f"{version}3"}, {"license": f"{license}4", "package": package, "version": f"{version}4"}, ], ) assert not all_licenses_ok assert print_mock.call_count == 4 args, _ = print_mock.call_args_list[1] assert args[0] == f" {package} ({version}1): {license}1" args, _ = print_mock.call_args_list[2] assert args[0] == f" {package} ({version}3): {license}3" args, _ = print_mock.call_args_list[3] assert args[0] == f" {package} ({version}4): {license}4" def test_main_prints_success_and_exits_with_return_value_0_in_good_case( mocker: MockerFixture, package: str, license: str ) -> None: mock_read_pyproject_file = mocker.patch("pylic.pylic.read_pyproject_file") mock_read_pyproject_file.return_value = ([license], [package]) mock_read_installed_licenses = mocker.patch("pylic.pylic.read_all_installed_licenses_metadata") mock_read_installed_licenses.return_value = [ {"license": license, "package": f"{package}1"}, {"license": "unknown", "package": package}, ] print_mock = mocker.patch("builtins.print") main() assert print_mock.call_count == 1 args, _ = print_mock.call_args_list[0] assert args[0] == "All licenses ok" def test_main_prints_errors_and_exits_with_return_value_1_with_bad_unsafe_packages( mocker: MockerFixture, package: str, license: str, version: str ) -> None: mock_read_pyproject_file = mocker.patch("pylic.pylic.read_pyproject_file") mock_read_pyproject_file.return_value = ([license, f"{license}_not_unknown"], [package]) mock_read_installed_licenses = mocker.patch("pylic.pylic.read_all_installed_licenses_metadata") mock_read_installed_licenses.return_value = [ {"license": license, "package": f"{package}1", "version": f"{version}1"}, {"license": f"{license}_not_unknown", "package": package, "version": f"{version}2"}, ] print_mock = mocker.patch("builtins.print") sys_exit_mock = mocker.patch("sys.exit") main() assert sys_exit_mock.called assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Found unsafe packages with a known license. Instead allow these licenses explicitly:" args, _ = print_mock.call_args_list[1] assert args[0] == f" {package} ({version}2): {license}_not_unknown" def test_main_prints_errors_and_exits_with_return_value_1_with_unsafe_licenses_are_installed( mocker: MockerFixture, package: str, license: str, version: str ) -> None: mock_read_pyproject_file = mocker.patch("pylic.pylic.read_pyproject_file") mock_read_pyproject_file.return_value = ([license], [package]) mock_read_installed_licenses = mocker.patch("pylic.pylic.read_all_installed_licenses_metadata") mock_read_installed_licenses.return_value = [ {"license": license, "package": f"{package}1", "version": f"{version}1"}, {"license": "unknown", "package": package, "version": f"{version}2"}, {"license": f"{license}2", "package": f"{package}2", "version": f"{version}3"}, ] print_mock = mocker.patch("builtins.print") sys_exit_mock = mocker.patch("sys.exit") main() sys_exit_mock.assert_called_once() assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Found unsafe licenses:" args, _ = print_mock.call_args_list[1] assert args[0] == f" {package}2 ({version}3): {license}2" def test_main_prints_errors_and_exits_with_return_value_1_with_unnecessary_unsafe_packages_listed( mocker: MockerFixture, package: str ) -> None: mock_read_pyproject_file = mocker.patch("pylic.pylic.read_pyproject_file") mock_read_pyproject_file.return_value = ([], [package]) mock_read_installed_licenses = mocker.patch("pylic.pylic.read_all_installed_licenses_metadata") mock_read_installed_licenses.return_value = [] print_mock = mocker.patch("builtins.print") sys_exit_mock = mocker.patch("sys.exit") main() sys_exit_mock.assert_called_once() assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Unsafe packages listed which are not installed:" args, _ = print_mock.call_args_list[1] assert args[0] == f" {package}" def test_main_prints_errors_and_exits_with_return_value_1_with_unnecessary_safe_licenses_listed( mocker: MockerFixture, license: str ) -> None: mock_read_pyproject_file = mocker.patch("pylic.pylic.read_pyproject_file") mock_read_pyproject_file.return_value = ([license], []) mock_read_installed_licenses = mocker.patch("pylic.pylic.read_all_installed_licenses_metadata") mock_read_installed_licenses.return_value = [] print_mock = mocker.patch("builtins.print") sys_exit_mock = mocker.patch("sys.exit") main() sys_exit_mock.assert_called_once() assert print_mock.call_count == 2 args, _ = print_mock.call_args_list[0] assert args[0] == "Unncessary safe licenses listed which are not used any installed package:" args, _ = print_mock.call_args_list[1] assert args[0] == f" {license}"
41.034632
119
0.727134
2,382
18,958
5.425693
0.06843
0.0684
0.030176
0.027855
0.827762
0.78242
0.75441
0.727871
0.701563
0.65065
0
0.010099
0.153866
18,958
461
120
41.123644
0.795586
0
0
0.516393
0
0
0.181296
0.040458
0
0
0
0
0.204918
1
0.112022
false
0
0.016393
0.010929
0.142077
0.155738
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
571bf205684b0ab6f5fef6035903aba9b35c4bec
1,302
py
Python
python/module/cqasm/v1/__init__.py
koffie/libqasm
6e6c1f0ddb854b9a5c5238396cdbbb602530d9b1
[ "Apache-2.0" ]
9
2020-05-06T03:33:26.000Z
2022-02-25T10:29:41.000Z
python/module/cqasm/v1/__init__.py
koffie/libqasm
6e6c1f0ddb854b9a5c5238396cdbbb602530d9b1
[ "Apache-2.0" ]
29
2019-04-02T12:21:53.000Z
2022-02-18T09:49:59.000Z
python/module/cqasm/v1/__init__.py
koffie/libqasm
6e6c1f0ddb854b9a5c5238396cdbbb602530d9b1
[ "Apache-2.0" ]
14
2019-04-29T08:36:14.000Z
2022-02-08T12:34:22.000Z
import libQasm; class Analyzer(libQasm.V1Analyzer): @staticmethod def parse_file(*args): retval = libQasm.V1Analyzer.parse_file(*args) if len(retval) == 1: import cqasm.v1.ast as ast return ast.Root.deserialize(retval[0].encode("utf-8", errors="surrogateescape")) return list(retval[1:]) @staticmethod def parse_string(*args): retval = libQasm.V1Analyzer.parse_string(*args) if len(retval) == 1: import cqasm.v1.ast as ast return ast.Root.deserialize(retval[0].encode("utf-8", errors="surrogateescape")) return list(retval[1:]) def analyze_file(self, *args): retval = super().analyze_file(*args) if len(retval) == 1: import cqasm.v1.semantic as semantic print(retval[0].encode("utf-8", errors="surrogateescape")) return semantic.Program.deserialize(retval[0].encode("utf-8", errors="surrogateescape")) return list(retval[1:]) def analyze_string(self, *args): retval = super().analyze_string(*args) if len(retval) == 1: import cqasm.v1.semantic as semantic return semantic.Program.deserialize(retval[0].encode("utf-8", errors="surrogateescape")) return list(retval[1:])
37.2
100
0.62212
156
1,302
5.141026
0.224359
0.069825
0.081047
0.099751
0.865337
0.720698
0.720698
0.720698
0.673317
0.648379
0
0.025329
0.241935
1,302
34
101
38.294118
0.787234
0
0
0.62069
0
0
0.076805
0
0
0
0
0
0
1
0.137931
false
0
0.172414
0
0.62069
0.034483
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
0
1
0
0
6
93b2a4a99fa0cb376fb6e4384960e5a52ec24656
8,863
py
Python
tests/functional/test_concepts.py
ourresearch/openalex-elastic-api
36bf5f8906aa4d009571ec2b7e9ab745fd13933c
[ "MIT" ]
2
2022-03-15T10:50:35.000Z
2022-03-24T11:03:20.000Z
tests/functional/test_concepts.py
ourresearch/openalex-elastic-api
36bf5f8906aa4d009571ec2b7e9ab745fd13933c
[ "MIT" ]
null
null
null
tests/functional/test_concepts.py
ourresearch/openalex-elastic-api
36bf5f8906aa4d009571ec2b7e9ab745fd13933c
[ "MIT" ]
null
null
null
class TestConceptsSearch: def test_concepts_search(self, client): res = client.get("/concepts?search=science") json_data = res.get_json() assert json_data["meta"]["count"] == 125 assert "science" in json_data["results"][0]["display_name"].lower() for result in json_data["results"][:25]: assert ( "science" in result["display_name"].lower() or "science" in result["description"] ) def test_concepts_search_display_name(self, client): res = client.get("/concepts?filter=display_name.search:science") json_data = res.get_json() assert json_data["meta"]["count"] == 37 assert "science" in json_data["results"][0]["display_name"].lower() for result in json_data["results"][:25]: assert "science" in result["display_name"].lower() def test_concepts_search_exact(self, client): res = client.get("/concepts?filter=display_name:Biology") json_data = res.get_json() assert json_data["results"][0]["display_name"] == "Biology" class TestConceptsWorksCountFilter: def test_concepts_works_count_equal(self, client): res = client.get("/concepts?filter=works_count:850") json_data = res.get_json() assert json_data["meta"]["count"] == 5 for result in json_data["results"][:25]: assert result["works_count"] == 850 def test_concepts_works_count_greater_than(self, client): res = client.get("/concepts?filter=works_count:>200") json_data = res.get_json() assert json_data["meta"]["count"] == 9982 for result in json_data["results"][:25]: assert result["works_count"] > 200 def test_concepts_works_count_less_than(self, client): res = client.get("/concepts?filter=works_count:<200") json_data = res.get_json() assert json_data["meta"]["count"] == 14 for result in json_data["results"][:25]: assert result["works_count"] < 200 def test_concepts_works_count_error(self, client): res = client.get("/concepts?filter=works_count:>ff") json_data = res.get_json() assert res.status_code == 403 assert json_data["error"] == "Invalid query parameters error." assert json_data["message"] == "Value for param works_count must be a number." class TestConceptsCitedByCountFilter: def test_concepts_cited_by_count_equal(self, client): res = client.get("/concepts?filter=cited_by_count:0") json_data = res.get_json() assert json_data["meta"]["count"] == 1 for result in json_data["results"][:25]: assert result["cited_by_count"] == 0 def test_concepts_cited_by_count_greater_than(self, client): res = client.get("/concepts?filter=cited_by_count:>20") json_data = res.get_json() assert json_data["meta"]["count"] == 9995 for result in json_data["results"][:25]: assert result["cited_by_count"] > 20 def test_concepts_cited_by_count_less_than(self, client): res = client.get("/concepts?filter=cited_by_count:<20") json_data = res.get_json() assert json_data["meta"]["count"] == 1 for result in json_data["results"][:25]: assert result["cited_by_count"] < 20 def test_concepts_cited_by_count_error(self, client): res = client.get("/concepts?filter=cited_by_count:>ff") json_data = res.get_json() assert res.status_code == 403 assert json_data["error"] == "Invalid query parameters error." assert ( json_data["message"] == "Value for param cited_by_count must be a number." ) class TestConceptsLevelFilter: def test_concepts_level_equal(self, client): res = client.get("/concepts?filter=level:2") json_data = res.get_json() assert json_data["meta"]["count"] == 3042 for result in json_data["results"][:25]: assert result["level"] == 2 def test_concepts_level_or_query(self, client): res = client.get("/concepts?filter=level:1|2") json_data = res.get_json() assert json_data["meta"]["count"] == 3142 for result in json_data["results"][:25]: assert result["level"] == 1 or result["level"] == 2 def test_concepts_level_greater_than(self, client): res = client.get("/concepts?filter=level:>2") json_data = res.get_json() assert json_data["meta"]["count"] == 6848 for result in json_data["results"][:25]: assert result["level"] > 2 def test_concepts_level_less_than(self, client): res = client.get("/concepts?filter=level:<4") json_data = res.get_json() assert json_data["meta"]["count"] == 6717 for result in json_data["results"][:25]: assert result["level"] < 4 def test_concepts_level_error(self, client): res = client.get("/concepts?filter=level:>ff") json_data = res.get_json() assert res.status_code == 403 assert json_data["error"] == "Invalid query parameters error." assert json_data["message"] == "Value for param level must be a number." class TestConceptsAncestorsIDFilter: def test_concepts_ancestors_id_short(self, client): res = client.get("/concepts?filter=ancestors.id:C142362112") json_data = res.get_json() ancestor_id_found = False for ancestor in json_data["results"][0]["ancestors"]: if ancestor["id"] == "https://openalex.org/C142362112": ancestor_id_found = True assert ancestor_id_found == True def test_concepts_ancestors_id_long(self, client): res = client.get( "/concepts?filter=ancestors.id:https://openalex.org/c142362112" ) json_data = res.get_json() ancestor_id_found = False for ancestor in json_data["results"][0]["ancestors"]: if ancestor["id"] == "https://openalex.org/C142362112": ancestor_id_found = True assert ancestor_id_found == True class TestConceptsExternalIDs: def test_concepts_has_wikidata_true(self, client): res = client.get("/concepts?filter=has_wikidata:true") json_data = res.get_json() assert json_data["meta"]["count"] == 9996 for result in json_data["results"][:25]: assert result["ids"]["wikidata"] is not None def test_concepts_has_wikidata_false(self, client): res = client.get("/concepts?filter=has_wikidata:false") json_data = res.get_json() assert json_data["meta"]["count"] == 4 for result in json_data["results"][:25]: assert "ids" not in result or result["ids"]["wikidata"] is None def test_concepts_haes_wikidata_error(self, client): res = client.get("/concepts?filter=has_wikidata:stt") json_data = res.get_json() assert json_data["error"] == "Invalid query parameters error." assert ( json_data["message"] == "Value for has_wikidata must be true or false, not stt." ) class TestConceptsMultipleIDs: def test_authors_openalex_multiple_long(self, client): res = client.get( "/concepts?filter=openalex_id:https://openalex.org/C86803240|https://openalex.org/C41008148" ) json_data = res.get_json() assert json_data["meta"]["count"] == 2 assert json_data["results"][0]["id"] == "https://openalex.org/C86803240" assert json_data["results"][1]["id"] == "https://openalex.org/C41008148" def test_concepts_wikidata_single_long(self, client): res = client.get( "/concepts?filter=wikidata_id:https://www.wikidata.org/wiki/Q420" ) json_data = res.get_json() assert json_data["meta"]["count"] == 1 assert ( json_data["results"][0]["wikidata"] == "https://www.wikidata.org/wiki/Q420" ) def test_concepts_wikidata_single_short(self, client): res = client.get("/concepts?filter=wikidata_id:Q420") json_data = res.get_json() assert json_data["meta"]["count"] == 1 assert ( json_data["results"][0]["wikidata"] == "https://www.wikidata.org/wiki/Q420" ) def test_concepts_wikidata_multiple(self, client): res = client.get( "/concepts?filter=wikidata_id:https://www.wikidata.org/wiki/Q420|https://www.wikidata.org/wiki/Q21198" ) json_data = res.get_json() assert json_data["meta"]["count"] == 2 assert ( json_data["results"][0]["wikidata"] == "https://www.wikidata.org/wiki/Q420" ) assert ( json_data["results"][1]["wikidata"] == "https://www.wikidata.org/wiki/Q21198" )
41.415888
114
0.624958
1,115
8,863
4.73722
0.095067
0.115108
0.087467
0.089928
0.873343
0.814464
0.775653
0.769595
0.724347
0.612268
0
0.033284
0.237279
8,863
213
115
41.610329
0.748077
0
0
0.42623
0
0.010929
0.252623
0.076046
0
0
0
0
0.295082
1
0.136612
false
0
0
0
0.174863
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
93f8683863f04760d896442762153d03d93d18a0
2,334
py
Python
light/tokens.py
abhaikollara/light
ec1f7adddccc4f9fd89e02cf0692c3fcf3ec9cc6
[ "MIT" ]
7
2020-03-13T16:27:10.000Z
2020-11-01T16:03:52.000Z
light/tokens.py
abhaikollara/light
ec1f7adddccc4f9fd89e02cf0692c3fcf3ec9cc6
[ "MIT" ]
null
null
null
light/tokens.py
abhaikollara/light
ec1f7adddccc4f9fd89e02cf0692c3fcf3ec9cc6
[ "MIT" ]
null
null
null
class Token: def __init__(self, literal): self.literal = literal def __repr__(self): return f"{self.__class__.__qualname__}({self.literal})" class ILLEGAL(Token): def __init__(self, literal): self.literal = literal class EOF(Token): def __init__(self): self.literal = '\0' class IDENT(Token): def __init__(self, literal): self.literal = literal class ASSIGN(Token): def __init__(self): self.literal = '=' class COMMA(Token): def __init__(self): self.literal = ',' class SEMICOLON(Token): def __init__(self): self.literal = ';' class INT(Token): def __init__(self, literal): self.literal = literal # # Keywords # class IF(Token): def __init__(self): self.literal = 'if' class ELSE(Token): def __init__(self): self.literal = 'else' class LET(Token): def __init__(self): self.literal = 'let' class FUNC(Token): def __init__(self): self.literal = 'func' class RETURN(Token): def __init__(self): self.literal = 'return' # # Brackets # class LPARAN(Token): def __init__(self): self.literal = '(' class RPARAN(Token): def __init__(self): self.literal = ')' class LBRACE(Token): def __init__(self): self.literal = '{' class RBRACE(Token): def __init__(self): self.literal = '}' # # Boolean Literals # class TRUE(Token): def __init__(self): self.literal = 'true' class FALSE(Token): def __init__(self): self.literal = 'false' # # Arithmetic Ops # class PLUS(Token): def __init__(self): self.literal = '+' class MINUS(Token): def __init__(self): self.literal = '-' class ASTERISK(Token): def __init__(self): self.literal = '*' class SLASH(Token): def __init__(self): self.literal = '/' # # Relational Ops # class EQ(Token): def __init__(self): self.literal = '==' class NEQ(Token): def __init__(self): self.literal = '!=' class GT(Token): def __init__(self): self.literal = '>' class LT(Token): def __init__(self): self.literal = '<' class GTE(Token): def __init__(self): self.literal = '>=' class LTE(Token): def __init__(self): self.literal = '<='
16.791367
63
0.587404
265
2,334
4.690566
0.169811
0.300885
0.279968
0.37329
0.73934
0.73934
0.500402
0.139984
0.074014
0
0
0.000586
0.269066
2,334
139
64
16.791367
0.728019
0.027421
0
0.370787
0
0
0.042572
0.019956
0
0
0
0
0
1
0.337079
false
0
0
0.011236
0.674157
0
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
6
f5586cfd59130b9c0a586d111f2f3317fe2ae0c8
76
py
Python
server/tree/tests/__init__.py
alekseystryukov/treenet
ee55df4f2151219cd07fbc2035f7c9f87d288e08
[ "Apache-2.0" ]
null
null
null
server/tree/tests/__init__.py
alekseystryukov/treenet
ee55df4f2151219cd07fbc2035f7c9f87d288e08
[ "Apache-2.0" ]
3
2020-06-05T20:00:51.000Z
2022-03-02T02:22:12.000Z
server/tree/tests/__init__.py
alekseystryukov/treenet
ee55df4f2151219cd07fbc2035f7c9f87d288e08
[ "Apache-2.0" ]
null
null
null
from .branch_list import * from .branch import * from .branch_post import *
19
26
0.763158
11
76
5.090909
0.454545
0.535714
0.571429
0
0
0
0
0
0
0
0
0
0.157895
76
3
27
25.333333
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
f58c115847f3d0e2109da87a3245c07b6f82922b
26
py
Python
terrascript/kubernetes/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/kubernetes/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/kubernetes/__init__.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
1
2018-11-15T16:23:05.000Z
2018-11-15T16:23:05.000Z
"""2019-05-28 10:49:51"""
13
25
0.538462
6
26
2.333333
1
0
0
0
0
0
0
0
0
0
0
0.583333
0.076923
26
1
26
26
0
0.730769
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
1935adb33c7028aee8a669b035c9c7a70ff6fa98
327
py
Python
strongr/restdomain/handler/oauth2/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/restdomain/handler/oauth2/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/restdomain/handler/oauth2/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
from .appendgranthandler import AppendGrantHandler from .retrieveclienthandler import RetrieveClientHandler from .retrievetokenbyaccesstokenhandler import RetrieveTokenByAccessTokenHandler from .retrievetokenbyrefreshtokenhandler import RetrieveTokenByRefreshTokenHandler from .retrievegranthandler import RetrieveGrantHandler
54.5
82
0.923547
20
327
15.1
0.35
0
0
0
0
0
0
0
0
0
0
0
0.061162
327
5
83
65.4
0.983713
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
1949352372c0a7414cd758661686d91ac07ee21a
25
py
Python
deeppavlov/deprecated/skill/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
27
2021-12-15T12:10:06.000Z
2022-03-31T13:59:47.000Z
deeppavlov/deprecated/skill/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
11
2020-09-25T22:32:27.000Z
2022-02-10T00:39:45.000Z
deeppavlov/deprecated/skill/__init__.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
4
2021-12-23T16:05:49.000Z
2022-03-22T01:54:30.000Z
from .skill import Skill
12.5
24
0.8
4
25
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5ff52cd47682aed96008b45d06c406948f1acea9
518
py
Python
app/auth/__init__.py
cromulus/check-list
5e6d7f657ac14688dae181839d1bf38cedf6a232
[ "MIT" ]
null
null
null
app/auth/__init__.py
cromulus/check-list
5e6d7f657ac14688dae181839d1bf38cedf6a232
[ "MIT" ]
null
null
null
app/auth/__init__.py
cromulus/check-list
5e6d7f657ac14688dae181839d1bf38cedf6a232
[ "MIT" ]
null
null
null
#******************************************************************************** #-------------------------------------------------------------------------------- # # Significance Labs # Brooklyn, NYC # # Author: Alexandra Berke (aberke) # Written: Summer 2014 # # # /auth/__init__.py # #-------------------------------------------------------------------------------- #********************************************************************************* from .auth_utility import * from .auth_endpoints import bp
25.9
82
0.254826
23
518
5.478261
0.826087
0.126984
0
0
0
0
0
0
0
0
0
0.008368
0.07722
518
19
83
27.263158
0.25523
0.826255
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
2764f15538c498e059ce4375c29b55a36e593688
1,774
py
Python
python/graphscope/nx/algorithms/tests/forward/test_shortest_paths.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
1
2021-12-30T02:55:16.000Z
2021-12-30T02:55:16.000Z
python/graphscope/nx/algorithms/tests/forward/test_shortest_paths.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
python/graphscope/nx/algorithms/tests/forward/test_shortest_paths.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
import networkx.algorithms.shortest_paths.tests.test_dense import networkx.algorithms.shortest_paths.tests.test_dense_numpy import networkx.algorithms.shortest_paths.tests.test_generic import networkx.algorithms.shortest_paths.tests.test_unweighted import networkx.algorithms.shortest_paths.tests.test_weighted import pytest from networkx.algorithms.shortest_paths.tests.test_astar import TestAStar as _TestAStar from graphscope.nx.utils.compat import import_as_graphscope_nx from graphscope.nx.utils.compat import with_graphscope_nx_context @pytest.mark.usefixtures("graphscope_session") @with_graphscope_nx_context(_TestAStar) class TestAStar(): @pytest.mark.skip(reason="not support class object as node") def test_unorderable_nodes(): pass import_as_graphscope_nx( networkx.algorithms.shortest_paths.tests.test_dense, decorators=pytest.mark.usefixtures("graphscope_session")) import_as_graphscope_nx( networkx.algorithms.shortest_paths.tests.test_dense_numpy, decorators=pytest.mark.usefixtures("graphscope_session")) import_as_graphscope_nx( networkx.algorithms.shortest_paths.tests.test_generic, decorators=pytest.mark.usefixtures("graphscope_session")) import_as_graphscope_nx( networkx.algorithms.shortest_paths.tests.test_unweighted, decorators=pytest.mark.usefixtures("graphscope_session")) import_as_graphscope_nx( networkx.algorithms.shortest_paths.tests.test_weighted, decorators=pytest.mark.usefixtures("graphscope_session")) @pytest.mark.usefixtures("graphscope_session") @with_graphscope_nx_context(TestAverageShortestPathLength) class TestAverageShortestPathLength(): @pytest.mark.skip(reason="builtin app would not raise Error during compute") def test_disconnected(): pass
37.744681
87
0.831454
216
1,774
6.537037
0.217593
0.140227
0.20255
0.241501
0.763456
0.763456
0.654391
0.521246
0.441926
0.355524
0
0
0.085118
1,774
46
88
38.565217
0.869994
0
0
0.388889
0
0
0.116122
0
0
0
0
0
0
1
0.055556
true
0.055556
0.388889
0
0.5
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
6
277cae19fa159a5b5afe9b17949d3882d19aca46
260,283
py
Python
instances/passenger_demand/pas-20210422-1717-int18e/58.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int18e/58.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int18e/58.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 34614 passenger_arriving = ( (6, 10, 10, 7, 12, 4, 2, 4, 7, 2, 1, 0, 0, 12, 12, 6, 6, 9, 3, 4, 1, 2, 1, 0, 0, 0), # 0 (8, 15, 5, 5, 10, 2, 8, 2, 3, 0, 3, 0, 0, 11, 8, 8, 6, 7, 3, 3, 0, 2, 4, 2, 0, 0), # 1 (8, 11, 5, 12, 12, 5, 5, 4, 4, 1, 4, 1, 0, 10, 8, 7, 5, 9, 11, 6, 0, 4, 1, 0, 3, 0), # 2 (11, 1, 13, 16, 9, 5, 5, 1, 3, 1, 1, 0, 0, 10, 7, 8, 4, 13, 8, 3, 2, 4, 5, 2, 2, 0), # 3 (9, 16, 14, 12, 7, 6, 4, 6, 4, 4, 4, 0, 0, 13, 17, 8, 6, 11, 3, 3, 3, 3, 2, 2, 0, 0), # 4 (6, 10, 9, 11, 10, 2, 6, 6, 2, 4, 2, 1, 0, 11, 8, 9, 10, 9, 4, 3, 2, 4, 3, 4, 1, 0), # 5 (13, 10, 14, 10, 5, 2, 4, 6, 5, 1, 4, 1, 0, 11, 14, 9, 6, 9, 7, 5, 2, 2, 4, 1, 0, 0), # 6 (15, 14, 12, 9, 5, 5, 5, 1, 2, 2, 3, 1, 0, 16, 13, 12, 8, 11, 5, 4, 4, 8, 4, 2, 0, 0), # 7 (19, 16, 8, 19, 9, 4, 6, 4, 4, 2, 1, 0, 0, 10, 17, 13, 5, 15, 5, 4, 6, 6, 4, 2, 2, 0), # 8 (11, 12, 13, 13, 5, 3, 4, 10, 10, 0, 2, 0, 0, 16, 9, 11, 10, 10, 12, 2, 5, 7, 1, 4, 3, 0), # 9 (14, 18, 12, 13, 9, 8, 5, 7, 3, 2, 2, 1, 0, 17, 11, 11, 8, 6, 6, 4, 5, 6, 3, 5, 1, 0), # 10 (16, 12, 16, 15, 11, 3, 10, 5, 8, 5, 3, 2, 0, 12, 11, 13, 7, 7, 9, 9, 7, 3, 5, 1, 1, 0), # 11 (19, 13, 7, 9, 13, 3, 2, 8, 5, 1, 1, 4, 0, 14, 16, 13, 5, 12, 4, 12, 1, 12, 6, 2, 2, 0), # 12 (15, 22, 13, 16, 11, 2, 5, 5, 8, 2, 1, 1, 0, 17, 15, 12, 11, 16, 11, 6, 4, 6, 5, 1, 0, 0), # 13 (23, 20, 9, 15, 9, 5, 8, 3, 9, 5, 1, 0, 0, 16, 12, 9, 11, 11, 10, 7, 4, 8, 3, 1, 1, 0), # 14 (16, 22, 11, 17, 11, 10, 10, 11, 9, 1, 1, 2, 0, 14, 10, 15, 9, 9, 9, 9, 5, 9, 3, 4, 2, 0), # 15 (19, 17, 11, 13, 24, 4, 7, 7, 7, 3, 1, 0, 0, 24, 18, 14, 8, 14, 10, 7, 6, 8, 3, 4, 0, 0), # 16 (15, 10, 14, 12, 21, 3, 6, 6, 2, 3, 4, 4, 0, 14, 15, 20, 11, 11, 2, 8, 2, 7, 4, 2, 2, 0), # 17 (18, 19, 13, 13, 13, 10, 9, 4, 8, 6, 1, 1, 0, 23, 19, 14, 8, 16, 10, 6, 8, 5, 6, 3, 4, 0), # 18 (26, 19, 13, 15, 12, 10, 7, 5, 8, 5, 0, 0, 0, 14, 17, 21, 9, 19, 10, 11, 9, 5, 5, 6, 4, 0), # 19 (12, 20, 10, 17, 9, 4, 7, 6, 6, 4, 5, 0, 0, 11, 16, 13, 9, 16, 9, 6, 3, 9, 7, 0, 4, 0), # 20 (14, 17, 16, 15, 12, 6, 8, 7, 3, 0, 2, 2, 0, 20, 14, 13, 13, 15, 9, 5, 3, 2, 4, 2, 1, 0), # 21 (26, 28, 8, 19, 10, 12, 5, 5, 10, 3, 1, 1, 0, 11, 15, 15, 13, 13, 8, 5, 8, 7, 9, 5, 4, 0), # 22 (7, 21, 15, 24, 17, 5, 7, 9, 3, 7, 4, 1, 0, 24, 19, 14, 14, 17, 8, 7, 4, 2, 5, 3, 1, 0), # 23 (16, 13, 21, 11, 9, 8, 5, 5, 8, 6, 4, 0, 0, 15, 14, 16, 11, 18, 8, 5, 3, 9, 7, 5, 0, 0), # 24 (16, 23, 15, 14, 14, 10, 6, 8, 7, 7, 0, 2, 0, 21, 14, 14, 17, 17, 9, 11, 3, 10, 4, 5, 3, 0), # 25 (21, 21, 13, 14, 10, 7, 3, 2, 8, 5, 3, 3, 0, 23, 18, 20, 11, 13, 4, 11, 4, 9, 7, 5, 1, 0), # 26 (12, 15, 9, 18, 15, 4, 5, 6, 7, 1, 3, 2, 0, 20, 15, 13, 6, 15, 10, 6, 5, 5, 4, 1, 3, 0), # 27 (22, 20, 9, 10, 6, 5, 9, 9, 5, 2, 1, 1, 0, 19, 21, 6, 11, 12, 9, 10, 7, 3, 4, 1, 1, 0), # 28 (13, 25, 15, 15, 16, 8, 3, 9, 10, 2, 1, 3, 0, 17, 22, 9, 7, 11, 4, 8, 7, 6, 3, 1, 1, 0), # 29 (22, 22, 13, 14, 16, 5, 10, 5, 2, 3, 6, 1, 0, 24, 13, 12, 11, 14, 14, 4, 7, 3, 8, 2, 0, 0), # 30 (22, 18, 15, 17, 15, 11, 8, 6, 6, 2, 1, 0, 0, 15, 11, 10, 11, 15, 11, 6, 2, 6, 6, 4, 1, 0), # 31 (16, 14, 13, 18, 14, 6, 5, 5, 4, 2, 2, 2, 0, 17, 16, 14, 7, 12, 8, 5, 1, 8, 10, 3, 2, 0), # 32 (19, 16, 13, 9, 12, 7, 10, 6, 7, 4, 2, 1, 0, 19, 11, 19, 7, 13, 11, 7, 8, 5, 3, 7, 1, 0), # 33 (26, 29, 18, 15, 15, 6, 5, 14, 12, 4, 2, 4, 0, 27, 21, 11, 11, 12, 15, 5, 3, 4, 2, 3, 0, 0), # 34 (21, 15, 16, 13, 16, 5, 8, 8, 7, 3, 0, 2, 0, 18, 14, 18, 7, 15, 7, 4, 4, 4, 2, 4, 4, 0), # 35 (19, 20, 15, 17, 13, 6, 9, 4, 6, 4, 2, 2, 0, 16, 21, 16, 14, 18, 13, 3, 5, 6, 3, 3, 1, 0), # 36 (18, 23, 14, 16, 15, 8, 10, 5, 7, 5, 1, 1, 0, 12, 26, 11, 9, 16, 11, 8, 5, 13, 8, 1, 0, 0), # 37 (16, 16, 16, 17, 13, 7, 9, 5, 12, 3, 1, 2, 0, 15, 18, 17, 10, 18, 6, 1, 6, 10, 3, 2, 2, 0), # 38 (14, 24, 14, 15, 15, 6, 9, 7, 6, 1, 2, 1, 0, 21, 11, 14, 13, 11, 5, 4, 2, 10, 5, 4, 2, 0), # 39 (15, 13, 14, 20, 11, 5, 8, 8, 4, 6, 5, 4, 0, 18, 20, 11, 12, 15, 6, 6, 9, 5, 5, 4, 2, 0), # 40 (14, 21, 14, 18, 18, 8, 6, 6, 9, 0, 3, 3, 0, 22, 19, 7, 15, 13, 8, 5, 8, 4, 4, 5, 4, 0), # 41 (16, 15, 15, 17, 10, 9, 10, 3, 7, 3, 4, 0, 0, 19, 9, 8, 7, 13, 9, 4, 1, 7, 8, 3, 1, 0), # 42 (16, 19, 25, 21, 11, 7, 11, 5, 6, 4, 5, 0, 0, 15, 18, 11, 14, 19, 19, 7, 4, 9, 7, 2, 0, 0), # 43 (24, 24, 25, 11, 15, 4, 5, 5, 4, 5, 3, 1, 0, 27, 15, 14, 8, 16, 8, 8, 4, 5, 8, 1, 2, 0), # 44 (23, 27, 14, 14, 12, 9, 7, 4, 14, 7, 3, 0, 0, 14, 14, 18, 10, 16, 8, 6, 7, 5, 8, 5, 0, 0), # 45 (19, 14, 22, 17, 15, 9, 5, 5, 6, 2, 4, 2, 0, 15, 16, 13, 14, 13, 4, 5, 2, 6, 8, 3, 2, 0), # 46 (22, 19, 15, 14, 14, 10, 8, 4, 7, 3, 2, 0, 0, 21, 17, 13, 3, 14, 4, 4, 3, 2, 6, 5, 1, 0), # 47 (16, 21, 18, 17, 20, 6, 4, 6, 6, 2, 2, 2, 0, 20, 16, 12, 11, 7, 11, 4, 3, 7, 4, 5, 2, 0), # 48 (26, 21, 17, 15, 21, 4, 5, 9, 4, 7, 3, 0, 0, 17, 20, 9, 9, 15, 12, 6, 6, 10, 4, 3, 2, 0), # 49 (9, 17, 16, 17, 12, 11, 2, 9, 7, 4, 2, 1, 0, 19, 14, 11, 12, 14, 10, 3, 4, 5, 6, 3, 0, 0), # 50 (12, 21, 17, 24, 14, 8, 6, 6, 5, 2, 0, 2, 0, 24, 12, 7, 7, 14, 14, 4, 5, 5, 10, 2, 3, 0), # 51 (19, 17, 16, 18, 10, 5, 6, 10, 6, 2, 2, 0, 0, 21, 16, 14, 6, 18, 11, 6, 7, 5, 9, 1, 1, 0), # 52 (17, 18, 11, 19, 19, 6, 4, 3, 13, 2, 3, 0, 0, 16, 12, 11, 8, 20, 5, 8, 4, 11, 6, 0, 1, 0), # 53 (19, 19, 20, 13, 8, 2, 10, 5, 5, 1, 3, 1, 0, 17, 19, 9, 16, 18, 6, 6, 4, 8, 5, 3, 1, 0), # 54 (16, 21, 13, 17, 15, 7, 6, 3, 5, 4, 0, 2, 0, 14, 16, 10, 13, 19, 8, 7, 4, 9, 7, 3, 2, 0), # 55 (25, 12, 17, 17, 12, 9, 3, 7, 7, 4, 6, 2, 0, 11, 12, 7, 11, 19, 8, 5, 3, 6, 4, 1, 0, 0), # 56 (15, 14, 22, 14, 8, 11, 3, 8, 10, 4, 2, 1, 0, 21, 15, 15, 9, 14, 5, 6, 5, 3, 6, 6, 1, 0), # 57 (22, 25, 13, 12, 16, 9, 2, 8, 8, 1, 4, 0, 0, 19, 19, 12, 14, 21, 6, 4, 6, 7, 4, 9, 0, 0), # 58 (22, 16, 17, 14, 18, 6, 9, 3, 4, 2, 2, 2, 0, 12, 15, 15, 5, 10, 6, 7, 5, 5, 5, 3, 2, 0), # 59 (20, 16, 19, 19, 10, 6, 9, 7, 8, 5, 5, 2, 0, 19, 18, 14, 8, 13, 9, 7, 3, 8, 7, 5, 2, 0), # 60 (28, 19, 26, 21, 14, 6, 6, 5, 6, 5, 0, 0, 0, 16, 18, 9, 10, 17, 7, 5, 8, 6, 6, 4, 2, 0), # 61 (21, 13, 11, 18, 14, 9, 6, 7, 5, 2, 2, 1, 0, 19, 15, 7, 7, 19, 9, 8, 4, 7, 7, 3, 0, 0), # 62 (24, 12, 18, 19, 14, 7, 9, 5, 8, 2, 3, 1, 0, 13, 10, 13, 8, 11, 6, 6, 4, 1, 3, 4, 2, 0), # 63 (15, 20, 12, 18, 11, 10, 8, 1, 7, 0, 5, 3, 0, 25, 11, 17, 9, 11, 11, 7, 6, 6, 4, 4, 0, 0), # 64 (23, 18, 13, 22, 9, 5, 6, 4, 6, 3, 1, 1, 0, 10, 13, 12, 12, 13, 5, 6, 3, 7, 9, 2, 2, 0), # 65 (20, 9, 15, 24, 12, 5, 11, 7, 11, 5, 2, 1, 0, 20, 9, 13, 8, 20, 13, 4, 2, 10, 6, 4, 1, 0), # 66 (21, 12, 13, 10, 25, 13, 4, 4, 5, 2, 4, 0, 0, 17, 21, 14, 13, 12, 5, 11, 5, 7, 8, 2, 1, 0), # 67 (16, 20, 13, 18, 11, 9, 5, 4, 5, 3, 1, 1, 0, 14, 12, 15, 9, 14, 2, 3, 11, 6, 3, 1, 1, 0), # 68 (22, 19, 18, 11, 16, 4, 13, 8, 7, 2, 1, 1, 0, 24, 23, 19, 14, 17, 5, 5, 3, 2, 5, 4, 1, 0), # 69 (17, 16, 18, 13, 11, 10, 11, 10, 4, 6, 1, 2, 0, 20, 21, 13, 8, 17, 7, 2, 6, 7, 7, 3, 0, 0), # 70 (16, 19, 9, 20, 13, 5, 6, 4, 6, 0, 0, 1, 0, 13, 9, 6, 11, 16, 10, 7, 3, 7, 7, 5, 0, 0), # 71 (14, 17, 12, 18, 10, 9, 8, 5, 7, 4, 1, 1, 0, 13, 13, 12, 8, 14, 10, 9, 9, 8, 5, 4, 0, 0), # 72 (22, 13, 13, 15, 11, 5, 9, 5, 3, 3, 4, 1, 0, 19, 19, 16, 7, 13, 8, 10, 5, 4, 4, 2, 0, 0), # 73 (11, 8, 14, 19, 11, 6, 11, 4, 11, 2, 1, 0, 0, 13, 14, 13, 8, 14, 6, 4, 5, 13, 8, 4, 2, 0), # 74 (18, 22, 16, 15, 15, 4, 6, 2, 6, 6, 4, 0, 0, 17, 15, 9, 4, 13, 5, 6, 6, 6, 4, 2, 0, 0), # 75 (13, 11, 9, 12, 20, 9, 6, 15, 5, 1, 2, 1, 0, 26, 14, 16, 9, 17, 7, 8, 1, 11, 8, 3, 3, 0), # 76 (26, 20, 14, 13, 13, 7, 2, 2, 10, 3, 2, 3, 0, 24, 12, 4, 6, 21, 8, 11, 9, 7, 4, 5, 1, 0), # 77 (27, 12, 13, 16, 11, 7, 5, 3, 5, 2, 2, 2, 0, 23, 18, 14, 7, 17, 8, 7, 5, 10, 10, 1, 1, 0), # 78 (13, 14, 11, 9, 20, 7, 4, 6, 8, 5, 3, 0, 0, 21, 18, 8, 5, 11, 4, 6, 7, 9, 8, 1, 1, 0), # 79 (14, 11, 17, 18, 24, 12, 2, 8, 8, 1, 1, 1, 0, 19, 13, 12, 14, 13, 5, 4, 4, 7, 6, 1, 1, 0), # 80 (23, 13, 16, 13, 20, 4, 6, 7, 8, 4, 1, 3, 0, 22, 9, 10, 14, 13, 10, 9, 3, 5, 4, 1, 1, 0), # 81 (16, 17, 14, 13, 10, 6, 9, 7, 4, 6, 1, 1, 0, 28, 14, 11, 10, 10, 5, 5, 6, 8, 5, 2, 0, 0), # 82 (22, 22, 10, 19, 17, 3, 8, 6, 5, 3, 3, 3, 0, 9, 24, 14, 9, 12, 5, 5, 0, 8, 3, 1, 1, 0), # 83 (24, 16, 12, 13, 14, 9, 6, 4, 9, 4, 0, 2, 0, 12, 8, 9, 7, 9, 13, 7, 3, 9, 3, 3, 0, 0), # 84 (18, 20, 14, 19, 16, 12, 5, 5, 6, 2, 3, 1, 0, 15, 13, 19, 10, 13, 10, 6, 5, 7, 7, 4, 1, 0), # 85 (18, 8, 17, 20, 15, 7, 5, 3, 9, 3, 1, 2, 0, 13, 14, 7, 12, 14, 8, 8, 1, 7, 4, 7, 0, 0), # 86 (14, 14, 17, 16, 7, 9, 5, 5, 8, 4, 2, 1, 0, 14, 12, 15, 13, 12, 10, 5, 5, 6, 5, 6, 2, 0), # 87 (22, 15, 17, 12, 18, 3, 7, 5, 12, 1, 3, 2, 0, 14, 14, 12, 12, 12, 9, 6, 3, 4, 13, 4, 1, 0), # 88 (6, 20, 18, 26, 19, 6, 3, 3, 8, 1, 4, 3, 0, 15, 20, 12, 14, 11, 8, 5, 2, 8, 5, 7, 3, 0), # 89 (18, 11, 15, 24, 11, 5, 9, 7, 4, 3, 7, 0, 0, 15, 11, 6, 10, 18, 6, 7, 1, 5, 5, 1, 3, 0), # 90 (20, 19, 15, 13, 20, 7, 4, 4, 12, 2, 3, 2, 0, 16, 9, 8, 8, 18, 7, 8, 3, 5, 8, 1, 1, 0), # 91 (16, 14, 13, 16, 7, 8, 7, 8, 8, 3, 3, 1, 0, 21, 13, 10, 7, 16, 2, 7, 4, 7, 5, 6, 1, 0), # 92 (15, 14, 14, 18, 16, 5, 11, 4, 6, 0, 0, 1, 0, 17, 18, 9, 7, 17, 8, 7, 9, 9, 5, 3, 0, 0), # 93 (13, 15, 15, 21, 14, 8, 12, 5, 8, 4, 4, 0, 0, 26, 18, 12, 6, 13, 8, 12, 2, 8, 7, 2, 3, 0), # 94 (16, 25, 16, 19, 21, 5, 6, 7, 9, 5, 3, 1, 0, 13, 17, 11, 9, 10, 9, 9, 2, 6, 4, 1, 1, 0), # 95 (20, 10, 14, 14, 14, 5, 11, 6, 5, 3, 3, 2, 0, 16, 11, 10, 10, 10, 6, 3, 2, 10, 8, 2, 0, 0), # 96 (23, 13, 19, 14, 15, 8, 10, 8, 6, 2, 2, 0, 0, 20, 17, 7, 8, 14, 9, 4, 3, 5, 3, 4, 2, 0), # 97 (13, 16, 19, 20, 19, 6, 8, 2, 5, 3, 3, 0, 0, 12, 20, 16, 10, 16, 5, 11, 5, 7, 7, 2, 2, 0), # 98 (14, 14, 8, 11, 6, 10, 6, 3, 6, 4, 3, 1, 0, 19, 11, 8, 6, 6, 9, 8, 5, 13, 2, 2, 0, 0), # 99 (18, 15, 13, 17, 10, 5, 11, 4, 9, 1, 2, 0, 0, 21, 13, 10, 8, 18, 7, 6, 8, 3, 4, 7, 0, 0), # 100 (17, 9, 11, 14, 10, 10, 7, 2, 5, 2, 1, 0, 0, 15, 18, 12, 11, 16, 9, 6, 5, 5, 1, 3, 1, 0), # 101 (22, 17, 13, 11, 8, 5, 6, 6, 4, 3, 3, 0, 0, 17, 13, 16, 12, 15, 5, 5, 5, 4, 9, 4, 0, 0), # 102 (20, 12, 5, 14, 12, 4, 7, 5, 5, 3, 0, 1, 0, 19, 15, 9, 11, 14, 4, 8, 5, 5, 5, 4, 1, 0), # 103 (19, 10, 14, 17, 17, 5, 5, 7, 11, 2, 2, 1, 0, 18, 21, 7, 11, 16, 6, 6, 6, 9, 6, 5, 0, 0), # 104 (17, 15, 12, 11, 10, 10, 6, 6, 6, 2, 3, 2, 0, 20, 15, 10, 11, 10, 3, 5, 7, 5, 7, 4, 1, 0), # 105 (26, 11, 11, 10, 10, 6, 7, 1, 8, 2, 0, 1, 0, 24, 22, 8, 8, 10, 8, 2, 7, 10, 4, 5, 0, 0), # 106 (18, 12, 18, 17, 13, 10, 6, 7, 6, 3, 1, 3, 0, 19, 15, 9, 8, 23, 9, 7, 1, 6, 4, 1, 0, 0), # 107 (23, 10, 13, 12, 12, 8, 3, 7, 3, 3, 3, 2, 0, 14, 14, 12, 6, 11, 5, 1, 1, 7, 10, 3, 0, 0), # 108 (14, 9, 16, 12, 13, 4, 8, 8, 7, 2, 3, 1, 0, 17, 12, 10, 9, 9, 7, 4, 6, 7, 4, 2, 0, 0), # 109 (22, 13, 13, 12, 17, 5, 8, 6, 6, 2, 3, 0, 0, 20, 14, 14, 6, 14, 4, 11, 6, 8, 2, 2, 2, 0), # 110 (17, 20, 13, 13, 13, 7, 8, 6, 11, 5, 1, 1, 0, 16, 17, 14, 6, 14, 7, 7, 3, 10, 5, 2, 0, 0), # 111 (21, 8, 18, 14, 14, 6, 3, 3, 7, 1, 3, 1, 0, 13, 11, 10, 5, 18, 4, 9, 7, 5, 3, 3, 0, 0), # 112 (21, 9, 6, 20, 18, 5, 7, 4, 6, 4, 1, 1, 0, 15, 4, 11, 6, 7, 3, 6, 3, 5, 1, 3, 0, 0), # 113 (19, 16, 13, 15, 16, 5, 8, 3, 9, 2, 2, 2, 0, 15, 16, 9, 10, 15, 9, 2, 5, 8, 3, 2, 0, 0), # 114 (12, 11, 18, 7, 8, 4, 5, 7, 8, 3, 4, 2, 0, 17, 17, 8, 10, 6, 5, 5, 1, 11, 12, 2, 0, 0), # 115 (20, 9, 11, 13, 16, 1, 6, 4, 7, 1, 3, 0, 0, 19, 20, 15, 9, 14, 7, 6, 1, 8, 4, 3, 2, 0), # 116 (24, 17, 11, 13, 9, 7, 8, 2, 12, 2, 3, 1, 0, 22, 10, 18, 7, 12, 10, 8, 7, 5, 5, 3, 0, 0), # 117 (12, 9, 11, 22, 12, 3, 5, 3, 2, 5, 4, 2, 0, 20, 17, 13, 6, 13, 5, 3, 7, 5, 5, 3, 1, 0), # 118 (14, 6, 12, 12, 16, 5, 7, 4, 5, 2, 1, 0, 0, 14, 18, 11, 5, 12, 5, 8, 2, 7, 6, 3, 1, 0), # 119 (14, 13, 19, 15, 14, 4, 8, 6, 7, 3, 4, 2, 0, 19, 9, 12, 4, 9, 4, 4, 5, 8, 4, 3, 1, 0), # 120 (18, 15, 14, 8, 8, 3, 5, 5, 7, 4, 1, 2, 0, 12, 17, 7, 8, 15, 6, 11, 7, 6, 6, 2, 1, 0), # 121 (10, 14, 10, 13, 11, 5, 5, 4, 4, 2, 1, 1, 0, 24, 10, 12, 6, 12, 6, 8, 2, 9, 4, 5, 1, 0), # 122 (10, 15, 8, 18, 14, 12, 10, 3, 4, 1, 2, 2, 0, 18, 14, 10, 7, 8, 11, 10, 4, 6, 5, 3, 1, 0), # 123 (12, 8, 15, 14, 11, 8, 5, 4, 3, 1, 2, 1, 0, 17, 14, 4, 10, 19, 3, 7, 6, 3, 3, 2, 0, 0), # 124 (20, 5, 12, 15, 10, 2, 4, 4, 3, 2, 3, 2, 0, 18, 14, 11, 8, 6, 9, 6, 6, 5, 5, 1, 1, 0), # 125 (15, 12, 14, 13, 11, 5, 3, 3, 6, 4, 1, 0, 0, 22, 16, 13, 5, 15, 2, 3, 3, 4, 2, 0, 0, 0), # 126 (15, 12, 11, 20, 11, 3, 2, 4, 4, 0, 3, 2, 0, 17, 6, 13, 7, 12, 8, 9, 4, 8, 6, 3, 0, 0), # 127 (12, 14, 15, 19, 15, 7, 4, 3, 5, 4, 3, 1, 0, 23, 9, 7, 11, 12, 9, 6, 7, 9, 3, 4, 1, 0), # 128 (11, 13, 18, 12, 11, 7, 5, 5, 3, 3, 1, 1, 0, 26, 13, 11, 7, 12, 3, 4, 2, 6, 3, 3, 1, 0), # 129 (13, 14, 7, 6, 13, 8, 6, 6, 6, 2, 5, 3, 0, 18, 12, 13, 6, 13, 4, 2, 8, 8, 10, 2, 2, 0), # 130 (24, 10, 14, 13, 16, 4, 3, 6, 3, 2, 1, 3, 0, 22, 12, 7, 8, 9, 5, 7, 3, 6, 6, 3, 0, 0), # 131 (16, 12, 17, 21, 16, 9, 9, 6, 3, 2, 1, 2, 0, 20, 14, 13, 9, 12, 5, 6, 5, 6, 8, 5, 2, 0), # 132 (13, 11, 20, 18, 11, 6, 4, 4, 8, 3, 2, 4, 0, 16, 6, 11, 9, 13, 5, 6, 3, 6, 5, 1, 2, 0), # 133 (12, 13, 8, 15, 20, 3, 5, 1, 5, 2, 1, 1, 0, 9, 14, 11, 5, 14, 6, 6, 5, 8, 3, 2, 0, 0), # 134 (18, 12, 17, 12, 19, 4, 6, 2, 8, 2, 3, 2, 0, 17, 4, 10, 13, 7, 5, 4, 0, 6, 6, 3, 1, 0), # 135 (12, 15, 19, 15, 12, 10, 3, 4, 2, 4, 1, 0, 0, 16, 16, 13, 11, 11, 6, 6, 6, 8, 1, 3, 2, 0), # 136 (16, 6, 19, 14, 11, 5, 5, 0, 5, 4, 3, 2, 0, 15, 10, 11, 8, 7, 5, 3, 5, 7, 10, 6, 4, 0), # 137 (18, 13, 13, 13, 11, 9, 11, 4, 8, 1, 1, 5, 0, 17, 14, 3, 9, 14, 5, 5, 2, 1, 4, 1, 1, 0), # 138 (19, 13, 15, 12, 8, 7, 3, 2, 11, 3, 5, 0, 0, 9, 8, 11, 6, 10, 3, 7, 1, 7, 3, 3, 0, 0), # 139 (19, 16, 9, 12, 13, 4, 8, 6, 7, 0, 3, 2, 0, 17, 14, 10, 6, 10, 8, 5, 4, 6, 5, 5, 1, 0), # 140 (17, 7, 9, 13, 13, 5, 5, 6, 4, 2, 3, 4, 0, 15, 10, 10, 8, 11, 5, 5, 6, 7, 5, 0, 0, 0), # 141 (13, 13, 13, 11, 13, 2, 2, 4, 5, 3, 7, 2, 0, 15, 21, 11, 5, 6, 4, 3, 1, 7, 3, 1, 2, 0), # 142 (19, 11, 20, 11, 17, 8, 4, 2, 6, 0, 3, 1, 0, 18, 18, 5, 6, 6, 5, 4, 4, 5, 6, 3, 2, 0), # 143 (18, 10, 11, 6, 15, 2, 6, 6, 6, 2, 0, 1, 0, 15, 9, 15, 4, 12, 6, 9, 5, 8, 5, 1, 2, 0), # 144 (15, 11, 17, 13, 9, 7, 7, 3, 10, 4, 1, 2, 0, 19, 8, 5, 12, 19, 4, 5, 2, 6, 8, 1, 1, 0), # 145 (19, 10, 13, 13, 10, 2, 6, 4, 6, 3, 1, 1, 0, 4, 16, 8, 7, 14, 3, 5, 3, 6, 7, 4, 1, 0), # 146 (22, 12, 13, 14, 12, 5, 2, 1, 6, 4, 2, 1, 0, 21, 10, 13, 4, 12, 3, 8, 4, 10, 3, 4, 0, 0), # 147 (12, 10, 16, 10, 14, 7, 8, 1, 11, 1, 1, 1, 0, 25, 10, 14, 4, 12, 10, 7, 4, 5, 4, 3, 1, 0), # 148 (15, 11, 9, 17, 11, 8, 6, 5, 7, 2, 1, 1, 0, 22, 11, 13, 9, 11, 6, 2, 3, 7, 3, 1, 2, 0), # 149 (12, 10, 14, 17, 6, 5, 2, 3, 11, 1, 0, 2, 0, 6, 11, 10, 4, 11, 7, 5, 4, 6, 3, 2, 0, 0), # 150 (19, 9, 12, 16, 15, 8, 3, 9, 5, 1, 2, 0, 0, 16, 14, 7, 10, 12, 6, 2, 4, 6, 6, 2, 3, 0), # 151 (15, 9, 13, 10, 4, 6, 3, 4, 5, 1, 0, 1, 0, 13, 6, 5, 11, 8, 5, 6, 5, 5, 3, 3, 0, 0), # 152 (11, 7, 14, 13, 11, 6, 1, 6, 8, 3, 4, 0, 0, 11, 9, 9, 8, 11, 8, 8, 5, 3, 5, 1, 2, 0), # 153 (13, 16, 14, 18, 8, 4, 6, 5, 8, 1, 5, 2, 0, 12, 23, 9, 5, 11, 7, 3, 4, 3, 2, 1, 1, 0), # 154 (11, 8, 13, 12, 12, 6, 5, 4, 5, 1, 4, 2, 0, 14, 11, 10, 10, 13, 7, 3, 5, 6, 1, 2, 0, 0), # 155 (15, 12, 16, 16, 11, 2, 5, 5, 5, 6, 0, 1, 0, 15, 13, 5, 5, 14, 5, 5, 4, 1, 3, 2, 1, 0), # 156 (7, 11, 12, 9, 10, 5, 2, 5, 6, 4, 1, 0, 0, 13, 11, 7, 8, 13, 12, 3, 1, 7, 6, 5, 3, 0), # 157 (21, 12, 12, 9, 6, 4, 3, 5, 4, 5, 1, 0, 0, 12, 15, 8, 5, 3, 10, 6, 3, 3, 4, 0, 2, 0), # 158 (12, 13, 9, 11, 4, 8, 2, 3, 8, 1, 3, 1, 0, 15, 16, 10, 10, 12, 8, 7, 5, 6, 5, 3, 0, 0), # 159 (9, 9, 17, 8, 13, 5, 1, 4, 5, 0, 0, 0, 0, 11, 14, 8, 7, 12, 6, 5, 7, 5, 4, 1, 1, 0), # 160 (7, 11, 10, 13, 20, 4, 2, 5, 5, 3, 3, 0, 0, 17, 12, 10, 5, 10, 6, 10, 4, 3, 3, 4, 0, 0), # 161 (11, 9, 8, 8, 10, 6, 4, 2, 8, 0, 2, 1, 0, 18, 14, 14, 7, 5, 6, 4, 4, 4, 5, 1, 0, 0), # 162 (14, 4, 9, 11, 9, 3, 4, 6, 0, 6, 3, 0, 0, 14, 15, 5, 9, 15, 7, 6, 5, 7, 6, 3, 1, 0), # 163 (9, 9, 5, 11, 9, 6, 4, 3, 4, 3, 0, 0, 0, 13, 14, 7, 3, 14, 5, 4, 1, 5, 2, 0, 1, 0), # 164 (16, 11, 15, 12, 14, 4, 1, 3, 4, 2, 2, 1, 0, 16, 10, 10, 4, 12, 5, 5, 0, 8, 1, 3, 0, 0), # 165 (14, 10, 11, 7, 11, 3, 4, 4, 5, 1, 6, 1, 0, 12, 6, 6, 7, 14, 4, 4, 6, 2, 4, 2, 0, 0), # 166 (18, 6, 10, 16, 12, 5, 4, 4, 10, 2, 2, 2, 0, 14, 5, 2, 10, 13, 3, 4, 3, 4, 2, 0, 2, 0), # 167 (4, 4, 7, 10, 5, 7, 6, 3, 6, 1, 2, 1, 0, 11, 7, 6, 3, 9, 9, 5, 3, 7, 0, 3, 0, 0), # 168 (11, 9, 12, 11, 5, 3, 3, 3, 7, 0, 0, 1, 0, 7, 8, 7, 6, 11, 5, 2, 7, 5, 2, 2, 1, 0), # 169 (10, 7, 8, 11, 10, 3, 4, 3, 6, 1, 3, 1, 0, 12, 2, 4, 3, 6, 4, 5, 3, 3, 5, 3, 0, 0), # 170 (17, 10, 8, 10, 10, 6, 5, 2, 4, 2, 0, 0, 0, 11, 10, 8, 2, 9, 3, 3, 3, 2, 5, 1, 0, 0), # 171 (18, 6, 5, 8, 16, 3, 3, 2, 6, 2, 2, 0, 0, 11, 7, 5, 5, 6, 3, 7, 6, 8, 3, 2, 1, 0), # 172 (6, 8, 11, 4, 9, 3, 5, 1, 2, 4, 1, 2, 0, 8, 8, 6, 4, 11, 3, 7, 2, 4, 1, 2, 1, 0), # 173 (7, 5, 6, 7, 6, 6, 2, 2, 2, 2, 1, 0, 0, 12, 7, 1, 3, 8, 3, 2, 2, 6, 2, 0, 0, 0), # 174 (10, 8, 8, 10, 6, 2, 2, 2, 3, 1, 2, 0, 0, 6, 12, 6, 3, 7, 1, 2, 3, 2, 1, 1, 0, 0), # 175 (8, 1, 8, 5, 4, 3, 3, 5, 4, 2, 1, 0, 0, 10, 10, 6, 5, 4, 4, 1, 2, 0, 3, 2, 0, 0), # 176 (9, 5, 6, 7, 7, 4, 1, 5, 6, 4, 0, 2, 0, 12, 4, 7, 5, 11, 1, 3, 0, 1, 0, 1, 0, 0), # 177 (11, 2, 7, 9, 9, 3, 1, 1, 2, 0, 0, 2, 0, 7, 4, 6, 2, 6, 3, 0, 4, 1, 4, 1, 0, 0), # 178 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 179 ) station_arriving_intensity = ( (9.037558041069182, 9.9455194074477, 9.380309813302512, 11.18640199295418, 9.998434093697302, 5.64957887766721, 7.462864107673047, 8.375717111362961, 10.962178311902413, 7.124427027940266, 7.569477294994085, 8.816247140951113, 9.150984382641052), # 0 (9.637788873635953, 10.602109249460566, 9.999623864394273, 11.925259655897909, 10.660482607453627, 6.0227704512766005, 7.955044094274649, 8.927124701230275, 11.686041587399236, 7.59416524609887, 8.069573044721038, 9.398189989465838, 9.755624965391739), # 1 (10.236101416163518, 11.256093307603763, 10.616476113985344, 12.66117786839663, 11.320133352749538, 6.3944732061224006, 8.445273314329269, 9.476325446227955, 12.407016252379588, 8.062044795036982, 8.567681667797364, 9.9778187736955, 10.357856690777442), # 2 (10.830164027663812, 11.904876903485604, 11.228419564775738, 13.391237533557733, 11.974791016803424, 6.763213120653203, 8.93160655496632, 10.021142083490112, 13.122243289657968, 8.526208857167125, 9.061827141289289, 10.55283423287483, 10.955291051257605), # 3 (11.417645067148767, 12.545865358714394, 11.833007219465467, 14.112519554488625, 12.621860286833686, 7.127516173317602, 9.412098603315226, 10.559397350150848, 13.828863682048873, 8.984800614901822, 9.550033442263036, 11.120937106238575, 11.54553953929167), # 4 (11.996212893630318, 13.176463994898459, 12.427792080754532, 14.822104834296708, 13.258745850058704, 7.485908342564186, 9.884804246505404, 11.088913983344266, 14.524018412366805, 9.435963250653593, 10.030324547784838, 11.679828133021466, 12.126213647339089), # 5 (12.5635358661204, 13.794078133646101, 13.010327151342958, 15.517074276089375, 13.882852393696878, 7.836915606841555, 10.347778271666273, 11.60751472020448, 15.204848463426268, 9.877839946834966, 10.500724434920908, 12.227208052458254, 12.694924867859292), # 6 (13.117282343630944, 14.396113096565637, 13.578165433930742, 16.194508782974033, 14.491584604966597, 8.179063944598298, 10.799075465927253, 12.113022297865593, 15.868494818041759, 10.308573885858456, 10.959257080737483, 12.760777603783673, 13.249284693311735), # 7 (13.655120685173882, 14.979974205265378, 14.128859931217914, 16.85148925805807, 15.082347171086255, 8.510879334283002, 11.236750616417757, 12.603259453461705, 16.512098459027772, 10.726308250136594, 11.403946462300778, 13.278237526232465, 13.786904616155851), # 8 (14.174719249761154, 15.543066781353641, 14.659963645904467, 17.485096604448906, 15.652544779274237, 8.830887754344271, 11.658858510267216, 13.076048924126933, 17.132800369198815, 11.129186222081895, 11.83281655667702, 13.777288559039365, 14.305396128851092), # 9 (14.673746396404677, 16.082796146438728, 15.169029580690424, 18.092411725253918, 16.199582116748942, 9.137615183230693, 12.063453934605038, 13.52921344699538, 17.727741531369386, 11.515350984106886, 12.243891340932432, 14.255631441439114, 14.802370723856898), # 10 (15.149870484116411, 16.596567622128973, 15.653610738275788, 18.670515523580516, 16.72086387072876, 9.429587599390864, 12.44859167656065, 13.960575759201147, 18.294062928353988, 11.882945718624095, 12.635194792133248, 14.710966912666459, 15.2754398936327), # 11 (15.600759871908263, 17.081786530032655, 16.111260121360573, 19.216488902536103, 17.21379472843208, 9.705330981273365, 12.812326523263462, 14.367958597878339, 18.82890554296712, 12.23011360804603, 13.004750887345683, 15.140995711956123, 15.722215130637963), # 12 (16.02408291879218, 17.535858191758116, 16.539530732644792, 19.727412765228078, 17.675779377077284, 9.963371307326803, 13.152713261842901, 14.749184700161067, 19.329410358023278, 12.554997834785228, 13.350583603635965, 15.543418578542857, 16.140307927332124), # 13 (16.41750798378009, 17.95618792891366, 16.935975574828465, 20.20036801476383, 18.10422250388278, 10.202234555999762, 13.46780667942839, 15.102076803183444, 19.79271835633696, 12.855741581254202, 13.670716918070312, 15.915936251661408, 16.527329776174614), # 14 (16.77870342588394, 18.34018106310759, 17.298147650611575, 20.632435554250776, 18.496528796066954, 10.420446705740842, 13.755661563149326, 15.424457644079562, 20.215970520722674, 13.130488029865482, 13.963174807714955, 16.256249470546507, 16.880892169624886), # 15 (17.10533760411564, 18.685242915948237, 17.623599962694165, 21.02069628679629, 18.8501029408482, 10.616533734998628, 14.014332700135158, 15.71414995998353, 20.596307833994917, 13.377380363031593, 14.225981249636122, 16.56205897443289, 17.198606600142384), # 16 (17.395078877487137, 18.988778809043904, 17.909885513776235, 21.362231115507804, 19.162349625444907, 10.789021622221714, 14.24187487751528, 15.968976488029472, 20.930871278968173, 13.594561763165041, 14.457160220900038, 16.8310655025553, 17.47808456018655), # 17 (17.645595605010367, 19.248194064002895, 18.154557306557784, 21.654120943492703, 19.43067353707546, 10.936436345858706, 14.436342882419133, 16.18675996535147, 21.216801838456973, 13.780175412678366, 14.654735698572916, 17.060969794148487, 17.716937542216822), # 18 (17.85455614569726, 19.46089400243354, 18.355168343738843, 21.893446673858367, 19.65247936295826, 11.057303884358175, 14.59579150197611, 16.36532312908364, 21.4512404952758, 13.93236449398409, 14.81673165972098, 17.249472588447173, 17.912777038692653), # 19 (18.01962885855975, 19.624283945944132, 18.509271628019405, 22.077289209712237, 19.8251717903117, 11.150150216168733, 14.718275523315652, 16.50248871636009, 21.631328232239156, 14.049272189494726, 14.94117208141047, 17.394274624686105, 18.063214542073485), # 20 (18.13848210260976, 19.735769216143005, 18.614420162099496, 22.202729454161673, 19.94615550635416, 11.213501319738963, 14.801849733567167, 16.596079464314922, 21.754206032161537, 14.1290416816228, 15.026080940707608, 17.49307664210003, 18.165861544818743), # 21 (18.20878423685924, 19.792755134638462, 18.668166948679115, 22.266848310314106, 20.012835198304035, 11.245883173517461, 14.844568919860079, 16.643918110082247, 21.81701487785745, 14.169816152780836, 15.069482214678613, 17.54357937992368, 18.218329539387888), # 22 (18.23470805401675, 19.799502469135803, 18.674861728395065, 22.274875462962967, 20.029917700858675, 11.25, 14.84964720406681, 16.64908888888889, 21.824867222222224, 14.17462609053498, 15.074924466891131, 17.549815637860082, 18.225), # 23 (18.253822343461476, 19.79556666666667, 18.673766666666666, 22.273887500000004, 20.039593704506736, 11.25, 14.8468568627451, 16.6419, 21.823815, 14.17167111111111, 15.074324242424245, 17.548355555555556, 18.225), # 24 (18.272533014380844, 19.78780864197531, 18.671604938271606, 22.27193287037037, 20.049056902070106, 11.25, 14.841358024691358, 16.62777777777778, 21.82173611111111, 14.16585390946502, 15.073134118967452, 17.545473251028806, 18.225), # 25 (18.290838634286462, 19.776346913580248, 18.668406172839507, 22.269033796296295, 20.05830696315799, 11.25, 14.833236092955698, 16.60698888888889, 21.81865722222222, 14.157271275720165, 15.07136487093154, 17.54120823045268, 18.225), # 26 (18.308737770689945, 19.7613, 18.6642, 22.265212499999997, 20.067343557379587, 11.25, 14.822576470588237, 16.579800000000002, 21.814605, 14.146019999999998, 15.069027272727272, 17.535600000000002, 18.225), # 27 (18.3262289911029, 19.742786419753084, 18.659016049382718, 22.260491203703705, 20.076166354344124, 11.25, 14.809464560639071, 16.54647777777778, 21.809606111111112, 14.132196872427985, 15.066132098765433, 17.528688065843625, 18.225), # 28 (18.34331086303695, 19.720924691358025, 18.652883950617287, 22.25489212962963, 20.084775023660796, 11.25, 14.793985766158318, 16.507288888888887, 21.803687222222223, 14.115898683127574, 15.06269012345679, 17.520511934156378, 18.225), # 29 (18.359981954003697, 19.695833333333333, 18.645833333333332, 22.2484375, 20.093169234938827, 11.25, 14.776225490196078, 16.4625, 21.796875, 14.097222222222223, 15.058712121212121, 17.51111111111111, 18.225), # 30 (18.376240831514746, 19.667630864197534, 18.637893827160497, 22.241149537037035, 20.101348657787415, 11.25, 14.756269135802471, 16.412377777777778, 21.78919611111111, 14.07626427983539, 15.054208866442199, 17.500525102880662, 18.225), # 31 (18.392086063081717, 19.636435802469137, 18.629095061728393, 22.233050462962964, 20.10931296181577, 11.25, 14.734202106027599, 16.357188888888892, 21.780677222222224, 14.053121646090535, 15.0491911335578, 17.48879341563786, 18.225), # 32 (18.407516216216216, 19.602366666666665, 18.619466666666668, 22.2241625, 20.117061816633115, 11.25, 14.710109803921569, 16.2972, 21.771345, 14.027891111111112, 15.043669696969696, 17.475955555555554, 18.225), # 33 (18.422529858429858, 19.56554197530864, 18.609038271604938, 22.21450787037037, 20.12459489184864, 11.25, 14.684077632534496, 16.232677777777777, 21.761226111111114, 14.000669465020577, 15.037655331088663, 17.462051028806584, 18.225), # 34 (18.437125557234253, 19.52608024691358, 18.597839506172843, 22.204108796296293, 20.131911857071568, 11.25, 14.656190994916486, 16.163888888888888, 21.750347222222224, 13.971553497942386, 15.031158810325476, 17.447119341563788, 18.225), # 35 (18.45130188014101, 19.484099999999998, 18.5859, 22.192987499999997, 20.139012381911105, 11.25, 14.626535294117646, 16.0911, 21.738735, 13.94064, 15.024190909090908, 17.431200000000004, 18.225), # 36 (18.46505739466174, 19.43971975308642, 18.57324938271605, 22.181166203703704, 20.145896135976457, 11.25, 14.595195933188089, 16.014577777777777, 21.72641611111111, 13.908025761316873, 15.016762401795738, 17.414332510288066, 18.225), # 37 (18.47839066830806, 19.39305802469136, 18.559917283950615, 22.168667129629632, 20.152562788876843, 11.25, 14.562258315177923, 15.934588888888891, 21.713417222222223, 13.873807572016462, 15.00888406285073, 17.396556378600824, 18.225), # 38 (18.491300268591576, 19.34423333333333, 18.545933333333334, 22.1555125, 20.159012010221467, 11.25, 14.527807843137257, 15.8514, 21.699765000000003, 13.838082222222223, 15.000566666666668, 17.37791111111111, 18.225), # 39 (18.503784763023894, 19.293364197530863, 18.531327160493827, 22.14172453703704, 20.165243469619533, 11.25, 14.491929920116196, 15.765277777777781, 21.685486111111114, 13.800946502057615, 14.99182098765432, 17.358436213991773, 18.225), # 40 (18.51584271911663, 19.24056913580247, 18.51612839506173, 22.127325462962965, 20.171256836680264, 11.25, 14.454709949164851, 15.67648888888889, 21.67060722222222, 13.76249720164609, 14.982657800224468, 17.338171193415636, 18.225), # 41 (18.527472704381402, 19.18596666666667, 18.500366666666668, 22.112337500000002, 20.177051781012857, 11.25, 14.416233333333333, 15.5853, 21.655155000000004, 13.72283111111111, 14.97308787878788, 17.317155555555555, 18.225), # 42 (18.538673286329807, 19.12967530864198, 18.484071604938272, 22.096782870370372, 20.182627972226527, 11.25, 14.37658547567175, 15.491977777777779, 21.63915611111111, 13.682045020576133, 14.96312199775533, 17.295428806584365, 18.225), # 43 (18.54944303247347, 19.071813580246914, 18.467272839506176, 22.0806837962963, 20.18798507993048, 11.25, 14.335851779230211, 15.396788888888892, 21.62263722222222, 13.64023572016461, 14.952770931537597, 17.2730304526749, 18.225), # 44 (18.55978051032399, 19.0125, 18.45, 22.064062500000002, 20.193122773733933, 11.25, 14.294117647058824, 15.3, 21.605625, 13.597500000000002, 14.942045454545454, 17.25, 18.225), # 45 (18.569684287392985, 18.951853086419753, 18.432282716049382, 22.046941203703703, 20.198040723246088, 11.25, 14.251468482207699, 15.20187777777778, 21.588146111111108, 13.553934650205761, 14.930956341189674, 17.226376954732512, 18.225), # 46 (18.579152931192063, 18.88999135802469, 18.41415061728395, 22.02934212962963, 20.202738598076163, 11.25, 14.207989687726945, 15.102688888888888, 21.570227222222226, 13.50963646090535, 14.919514365881032, 17.20220082304527, 18.225), # 47 (18.588185009232834, 18.827033333333333, 18.395633333333333, 22.0112875, 20.20721606783336, 11.25, 14.163766666666668, 15.0027, 21.551895000000002, 13.464702222222222, 14.907730303030302, 17.177511111111112, 18.225), # 48 (18.596779089026917, 18.763097530864197, 18.376760493827163, 21.99279953703704, 20.211472802126895, 11.25, 14.118884822076978, 14.902177777777778, 21.53317611111111, 13.419228724279836, 14.895614927048262, 17.152347325102884, 18.225), # 49 (18.604933738085908, 18.698302469135808, 18.357561728395066, 21.973900462962963, 20.21550847056597, 11.25, 14.073429557007989, 14.801388888888889, 21.514097222222222, 13.373312757201646, 14.883179012345678, 17.126748971193418, 18.225), # 50 (18.61264752392144, 18.63276666666667, 18.338066666666666, 21.9546125, 20.219322742759797, 11.25, 14.027486274509805, 14.7006, 21.494685000000004, 13.32705111111111, 14.870433333333335, 17.10075555555556, 18.225), # 51 (18.619919014045102, 18.56660864197531, 18.318304938271606, 21.934957870370372, 20.222915288317584, 11.25, 13.981140377632535, 14.600077777777777, 21.47496611111111, 13.280540576131688, 14.857388664421999, 17.074406584362144, 18.225), # 52 (18.626746775968517, 18.49994691358025, 18.29830617283951, 21.914958796296297, 20.226285776848552, 11.25, 13.93447726942629, 14.50008888888889, 21.454967222222226, 13.233877942386831, 14.844055780022448, 17.04774156378601, 18.225), # 53 (18.63312937720329, 18.432900000000004, 18.2781, 21.8946375, 20.229433877961906, 11.25, 13.887582352941177, 14.400899999999998, 21.434715, 13.18716, 14.830445454545453, 17.0208, 18.225), # 54 (18.63906538526104, 18.365586419753086, 18.25771604938272, 21.874016203703704, 20.232359261266843, 11.25, 13.840541031227307, 14.302777777777777, 21.414236111111112, 13.140483539094651, 14.816568462401795, 16.993621399176956, 18.225), # 55 (18.64455336765337, 18.298124691358026, 18.237183950617286, 21.85311712962963, 20.235061596372585, 11.25, 13.793438707334786, 14.20598888888889, 21.393557222222224, 13.09394534979424, 14.802435578002246, 16.96624526748971, 18.225), # 56 (18.649591891891887, 18.230633333333333, 18.216533333333334, 21.8319625, 20.23754055288834, 11.25, 13.746360784313726, 14.110800000000001, 21.372705, 13.047642222222223, 14.788057575757577, 16.93871111111111, 18.225), # 57 (18.654179525488225, 18.163230864197534, 18.195793827160493, 21.810574537037034, 20.239795800423316, 11.25, 13.699392665214235, 14.017477777777778, 21.35170611111111, 13.001670946502058, 14.773445230078567, 16.91105843621399, 18.225), # 58 (18.658314835953966, 18.096035802469135, 18.174995061728396, 21.788975462962963, 20.24182700858672, 11.25, 13.65261975308642, 13.92628888888889, 21.330587222222224, 12.956128312757203, 14.758609315375981, 16.883326748971193, 18.225), # 59 (18.661996390800738, 18.02916666666667, 18.154166666666665, 21.767187500000002, 20.243633846987766, 11.25, 13.606127450980392, 13.8375, 21.309375000000003, 12.911111111111111, 14.743560606060607, 16.855555555555558, 18.225), # 60 (18.665222757540146, 17.962741975308646, 18.13333827160494, 21.74523287037037, 20.24521598523566, 11.25, 13.560001161946259, 13.751377777777778, 21.288096111111113, 12.866716131687244, 14.728309876543209, 16.82778436213992, 18.225), # 61 (18.66799250368381, 17.89688024691358, 18.112539506172844, 21.7231337962963, 20.246573092939624, 11.25, 13.514326289034132, 13.66818888888889, 21.266777222222224, 12.823040164609054, 14.712867901234567, 16.80005267489712, 18.225), # 62 (18.670304196743327, 17.831699999999998, 18.0918, 21.7009125, 20.24770483970884, 11.25, 13.469188235294117, 13.5882, 21.245445, 12.78018, 14.697245454545456, 16.7724, 18.225), # 63 (18.672156404230314, 17.767319753086422, 18.071149382716047, 21.678591203703704, 20.24861089515255, 11.25, 13.424672403776325, 13.511677777777779, 21.22412611111111, 12.738232427983538, 14.681453310886642, 16.7448658436214, 18.225), # 64 (18.67354769365639, 17.703858024691357, 18.05061728395062, 21.65619212962963, 20.24929092887994, 11.25, 13.380864197530865, 13.438888888888888, 21.202847222222225, 12.697294238683126, 14.665502244668913, 16.717489711934153, 18.225), # 65 (18.674476632533153, 17.641433333333335, 18.030233333333335, 21.6337375, 20.249744610500233, 11.25, 13.337849019607843, 13.3701, 21.181635000000004, 12.657462222222222, 14.649403030303029, 16.690311111111114, 18.225), # 66 (18.674941788372227, 17.580164197530863, 18.010027160493827, 21.611249537037036, 20.249971609622634, 11.25, 13.29571227305737, 13.30557777777778, 21.16051611111111, 12.618833168724281, 14.633166442199778, 16.6633695473251, 18.225), # 67 (18.674624906065485, 17.519847550776582, 17.989930709876543, 21.588555132850242, 20.249780319535223, 11.24979122085048, 13.254327350693364, 13.245018930041153, 21.13935812757202, 12.5813167949649, 14.616514779372677, 16.636554039419536, 18.22477527006173), # 68 (18.671655072463768, 17.458641935483872, 17.969379166666666, 21.564510326086953, 20.248039215686273, 11.248140740740741, 13.212482726423904, 13.185177777777778, 21.11723611111111, 12.543851503267971, 14.597753110047847, 16.608994152046783, 18.222994791666668), # 69 (18.665794417606012, 17.39626642771804, 17.948283179012343, 21.538956823671498, 20.244598765432098, 11.244890260631001, 13.169988242210465, 13.125514403292183, 21.09402520576132, 12.506255144032922, 14.576667995746943, 16.580560970327056, 18.219478202160495), # 70 (18.657125389157272, 17.332758303464754, 17.92665015432099, 21.51193230676329, 20.239502541757446, 11.240092455418381, 13.12686298717018, 13.066048559670783, 21.06975997942387, 12.46852864681675, 14.553337267410951, 16.551275286982886, 18.21427179783951), # 71 (18.64573043478261, 17.268154838709677, 17.9044875, 21.48347445652174, 20.23279411764706, 11.2338, 13.083126050420168, 13.0068, 21.044475000000002, 12.43067294117647, 14.527838755980863, 16.52115789473684, 18.207421875), # 72 (18.631692002147076, 17.20249330943847, 17.88180262345679, 21.45362095410628, 20.224517066085692, 11.226065569272976, 13.038796521077565, 12.947788477366256, 21.01820483539095, 12.392688956669087, 14.50025029239766, 16.490229586311454, 18.198974729938275), # 73 (18.61509253891573, 17.1358109916368, 17.858602932098762, 21.42240948067633, 20.214714960058096, 11.216941838134431, 12.9938934882595, 12.889033744855967, 20.990984053497943, 12.354577622851611, 14.470649707602341, 16.45851115442928, 18.18897665895062), # 74 (18.59601449275362, 17.06814516129032, 17.83489583333333, 21.389877717391304, 20.203431372549023, 11.206481481481482, 12.9484360410831, 12.830555555555556, 20.96284722222222, 12.316339869281046, 14.439114832535884, 16.426023391812866, 18.177473958333334), # 75 (18.57454031132582, 16.99953309438471, 17.8106887345679, 21.35606334541063, 20.19070987654321, 11.19473717421125, 12.902443268665492, 12.772373662551441, 20.93382890946502, 12.277976625514404, 14.405723498139285, 16.392787091184747, 18.164512924382716), # 76 (18.55075244229737, 16.93001206690562, 17.785989043209874, 21.32100404589372, 20.176594045025414, 11.18176159122085, 12.855934260123803, 12.714507818930043, 20.90396368312757, 12.239488821108692, 14.370553535353537, 16.358823045267492, 18.150139853395064), # 77 (18.524733333333334, 16.859619354838713, 17.760804166666667, 21.2847375, 20.16112745098039, 11.167607407407406, 12.808928104575164, 12.65697777777778, 20.87328611111111, 12.200877385620915, 14.333682775119618, 16.324152046783627, 18.134401041666667), # 78 (18.496565432098766, 16.788392234169656, 17.735141512345677, 21.24730138888889, 20.144353667392885, 11.152327297668037, 12.761443891136702, 12.59980329218107, 20.84183076131687, 12.162143248608086, 14.29518904837852, 16.28879488845571, 18.117342785493825), # 79 (18.466331186258724, 16.71636798088411, 17.70900848765432, 21.208733393719807, 20.126316267247642, 11.135973936899862, 12.713500708925546, 12.543004115226339, 20.809632201646092, 12.123287339627208, 14.255150186071239, 16.252772363006283, 18.09901138117284), # 80 (18.434113043478263, 16.643583870967742, 17.682412499999998, 21.169071195652176, 20.10705882352941, 11.118599999999999, 12.665117647058823, 12.486600000000001, 20.776725, 12.084310588235295, 14.213644019138757, 16.216105263157896, 18.079453124999997), # 81 (18.399993451422436, 16.570077180406216, 17.655360956790126, 21.12835247584541, 20.086624909222948, 11.10025816186557, 12.616313794653665, 12.430610699588478, 20.743143724279836, 12.045213923989348, 14.170748378522063, 16.178814381633096, 18.058714313271608), # 82 (18.364054857756308, 16.495885185185184, 17.6278612654321, 21.086614915458934, 20.065058097313, 11.08100109739369, 12.567108240827196, 12.37505596707819, 20.70892294238683, 12.00599827644638, 14.12654109516215, 16.14092051115443, 18.036841242283952), # 83 (18.326379710144927, 16.421045161290323, 17.599920833333332, 21.043896195652174, 20.042401960784314, 11.060881481481482, 12.517520074696545, 12.319955555555556, 20.674097222222223, 11.9666645751634, 14.0811, 16.102444444444444, 18.013880208333333), # 84 (18.287050456253354, 16.345594384707287, 17.571547067901232, 21.000233997584544, 20.01870007262164, 11.039951989026063, 12.467568385378843, 12.265329218106997, 20.63870113168724, 11.92721374969741, 14.034502923976609, 16.06340697422569, 17.989877507716052), # 85 (18.246149543746643, 16.269570131421744, 17.54274737654321, 20.955666002415462, 19.99399600580973, 11.018265294924555, 12.417272261991217, 12.21119670781893, 20.60276923868313, 11.887646729605423, 13.986827698032961, 16.02382889322071, 17.964879436728395), # 86 (18.203759420289852, 16.193009677419354, 17.513529166666665, 20.910229891304347, 19.968333333333337, 10.995874074074074, 12.366650793650793, 12.157577777777778, 20.566336111111116, 11.847964444444443, 13.938152153110048, 15.983730994152046, 17.938932291666667), # 87 (18.159962533548043, 16.11595029868578, 17.483899845679012, 20.86396334541063, 19.941755628177198, 10.972831001371743, 12.315723069474704, 12.104492181069958, 20.52943631687243, 11.808167823771482, 13.888554120148857, 15.943134069742257, 17.912082368827164), # 88 (18.11484133118626, 16.03842927120669, 17.453866820987656, 20.81690404589372, 19.91430646332607, 10.94918875171468, 12.264508178580074, 12.051959670781894, 20.492104423868312, 11.76825779714355, 13.838111430090379, 15.902058912713883, 17.884375964506173), # 89 (18.068478260869565, 15.960483870967742, 17.423437500000002, 20.769089673913047, 19.886029411764707, 10.925, 12.213025210084034, 12.0, 20.454375000000002, 11.728235294117647, 13.786901913875598, 15.860526315789475, 17.855859375), # 90 (18.020955770263015, 15.8821513739546, 17.392619290123456, 20.720557910628024, 19.85696804647785, 10.900317421124829, 12.161293253103711, 11.9486329218107, 20.41628261316873, 11.688101244250786, 13.735003402445509, 15.818557071691574, 17.826578896604936), # 91 (17.97235630703167, 15.80346905615293, 17.361419598765433, 20.671346437198068, 19.827165940450254, 10.875193689986283, 12.109331396756236, 11.897878189300412, 20.377861831275723, 11.647856577099976, 13.682493726741095, 15.776171973142736, 17.796580825617283), # 92 (17.92276231884058, 15.724474193548389, 17.329845833333334, 20.621492934782612, 19.796666666666667, 10.84968148148148, 12.057158730158731, 11.847755555555556, 20.339147222222223, 11.607502222222221, 13.62945071770335, 15.733391812865497, 17.76591145833333), # 93 (17.872256253354806, 15.645204062126643, 17.29790540123457, 20.571035084541062, 19.765513798111837, 10.823833470507545, 12.00479434242833, 11.798284773662553, 20.300173353909464, 11.567039109174534, 13.575952206273259, 15.690237383582414, 17.734617091049383), # 94 (17.820920558239397, 15.56569593787336, 17.265605709876546, 20.52001056763285, 19.733750907770517, 10.797702331961592, 11.95225732268216, 11.749485596707821, 20.260974794238685, 11.526468167513919, 13.522076023391813, 15.646729478016026, 17.70274402006173), # 95 (17.76883768115942, 15.485987096774197, 17.23295416666667, 20.468457065217393, 19.701421568627453, 10.77134074074074, 11.899566760037347, 11.701377777777779, 20.221586111111108, 11.485790326797385, 13.4679, 15.602888888888891, 17.67033854166667), # 96 (17.716090069779927, 15.406114814814819, 17.199958179012345, 20.416412258454105, 19.668569353667394, 10.744801371742112, 11.846741743611025, 11.65398106995885, 20.182041872427984, 11.445006516581941, 13.413501967038808, 15.558736408923545, 17.637446952160495), # 97 (17.66276017176597, 15.326116367980884, 17.166625154320986, 20.363913828502415, 19.635237835875095, 10.718136899862827, 11.793801362520316, 11.607315226337448, 20.142376646090533, 11.404117666424595, 13.35895975544923, 15.514292830842535, 17.604115547839505), # 98 (17.608930434782607, 15.246029032258065, 17.1329625, 20.31099945652174, 19.601470588235298, 10.6914, 11.740764705882354, 11.5614, 20.102625, 11.363124705882353, 13.304351196172249, 15.469578947368422, 17.570390625), # 99 (17.5546833064949, 15.165890083632016, 17.09897762345679, 20.257706823671498, 19.567311183732752, 10.664643347050754, 11.687650862814262, 11.516255144032922, 20.062821502057616, 11.322028564512225, 13.249754120148857, 15.42461555122374, 17.536318479938274), # 100 (17.500101234567904, 15.085736798088412, 17.064677932098768, 20.204073611111113, 19.532803195352216, 10.637919615912208, 11.634478922433171, 11.471900411522633, 20.02300072016461, 11.280830171871218, 13.195246358320043, 15.379423435131034, 17.501945408950615), # 101 (17.44526666666667, 15.005606451612904, 17.030070833333333, 20.1501375, 19.497990196078433, 10.611281481481482, 11.58126797385621, 11.428355555555555, 19.98319722222222, 11.239530457516341, 13.140905741626794, 15.334023391812867, 17.467317708333336), # 102 (17.390262050456254, 14.92553632019116, 16.9951637345679, 20.095936171497584, 19.462915758896152, 10.584781618655693, 11.528037106200506, 11.385640329218107, 19.943445576131687, 11.1981303510046, 13.086810101010101, 15.28843621399177, 17.432481674382714), # 103 (17.335169833601718, 14.845563679808842, 16.959964043209876, 20.041507306763286, 19.427623456790123, 10.558472702331962, 11.474805408583187, 11.343774485596708, 19.90378034979424, 11.156630781893005, 13.03303726741095, 15.242682694390297, 17.397483603395063), # 104 (17.280072463768114, 14.765725806451613, 16.924479166666668, 19.98688858695652, 19.392156862745097, 10.532407407407408, 11.421591970121383, 11.302777777777779, 19.86423611111111, 11.115032679738563, 12.979665071770334, 15.196783625730996, 17.362369791666666), # 105 (17.225052388620504, 14.686059976105138, 16.888716512345678, 19.932117693236716, 19.356559549745825, 10.50663840877915, 11.36841587993222, 11.262669958847736, 19.82484742798354, 11.07333697409828, 12.92677134502924, 15.15075980073641, 17.327186535493826), # 106 (17.17019205582394, 14.606603464755079, 16.852683487654325, 19.877232306763286, 19.32087509077705, 10.48121838134431, 11.31529622713283, 11.223470781893006, 19.78564886831276, 11.03154459452917, 12.874433918128654, 15.104632012129088, 17.29198013117284), # 107 (17.11557391304348, 14.5273935483871, 16.8163875, 19.822270108695655, 19.28514705882353, 10.4562, 11.262252100840335, 11.185200000000002, 19.746675000000003, 10.989656470588237, 12.82273062200957, 15.05842105263158, 17.256796875000003), # 108 (17.061280407944178, 14.448467502986858, 16.779835956790127, 19.767268780193234, 19.249419026870008, 10.431635939643346, 11.209302590171871, 11.147877366255145, 19.707960390946504, 10.947673531832486, 12.771739287612972, 15.012147714966428, 17.221683063271605), # 109 (17.007393988191087, 14.369862604540026, 16.743036265432103, 19.71226600241546, 19.213734567901238, 10.407578875171467, 11.15646678424456, 11.111522633744855, 19.669539609053498, 10.90559670781893, 12.72153774587985, 14.965832791856185, 17.18668499228395), # 110 (16.953997101449275, 14.29161612903226, 16.705995833333336, 19.65729945652174, 19.178137254901962, 10.384081481481482, 11.103763772175537, 11.076155555555555, 19.631447222222224, 10.863426928104575, 12.672203827751195, 14.919497076023394, 17.151848958333336), # 111 (16.90117219538379, 14.213765352449222, 16.66872206790124, 19.602406823671497, 19.142670660856936, 10.361196433470509, 11.051212643081925, 11.041795884773663, 19.593717798353907, 10.821165122246429, 12.623815364167996, 14.873161360190599, 17.11722125771605), # 112 (16.84890760266548, 14.136477513814715, 16.631312090853726, 19.547700988485673, 19.10731622431267, 10.338965584586125, 10.998946734582185, 11.00853462380509, 19.556483060265517, 10.778948525902914, 12.57646303107516, 14.826947285707972, 17.0827990215178), # 113 (16.796665616220118, 14.060514930345965, 16.594282215038913, 19.493620958299207, 19.071708038219388, 10.317338295353823, 10.947632775139043, 10.976780267109216, 19.52031426428351, 10.73756730224301, 12.530239806803754, 14.781441909803354, 17.048295745488062), # 114 (16.744292825407193, 13.985904957629483, 16.55765447887317, 19.440152109327204, 19.035733820199482, 10.296258322497776, 10.89730737034481, 10.946524777701677, 19.485224961603823, 10.697085590378538, 12.485078120568769, 14.736667648605932, 17.013611936988678), # 115 (16.691723771827743, 13.912538906325063, 16.521357941970972, 19.38719907047953, 18.999339347490803, 10.275675979116777, 10.847888671550209, 10.917684563218188, 19.451126410610094, 10.657428045209185, 12.440890676288666, 14.692541755477222, 16.978693067560602), # 116 (16.63889299708279, 13.840308087092497, 16.485321663946774, 19.33466647066604, 18.9624703973312, 10.255541578309604, 10.799294830105955, 10.890176031294454, 19.417929869685967, 10.618519321634633, 12.39759017788191, 14.64898148377875, 16.943484608744804), # 117 (16.58573504277338, 13.769103810591583, 16.44947470441506, 19.2824589387966, 18.925072746958516, 10.235805433175049, 10.751443997362767, 10.863915589566174, 19.385546597215082, 10.580284074554568, 12.355089329266963, 14.60590408687203, 16.907932032082243), # 118 (16.532184450500534, 13.698817387482112, 16.413746122990304, 19.23048110378107, 18.887092173610597, 10.2164178568119, 10.70425432467136, 10.838819645669062, 19.353887851581078, 10.54264695886867, 12.31330083436229, 14.563226818118581, 16.87198080911388), # 119 (16.47817576186529, 13.629340128423884, 16.37806497928697, 19.17863759452931, 18.848474454525295, 10.197329162318939, 10.657643963382455, 10.814804607238818, 19.322864891167605, 10.50553262947663, 12.272137397086349, 14.520866930879935, 16.835576411380675), # 120 (16.423643518468683, 13.560563344076693, 16.342360332919537, 19.12683303995118, 18.809165366940455, 10.178489662794956, 10.611531064846766, 10.791786881911152, 19.2923889743583, 10.468865741278133, 12.23151172135761, 14.4787416785176, 16.79866431042359), # 121 (16.36852226191174, 13.49237834510033, 16.30656124350248, 19.07497206895654, 18.76911068809392, 10.159849671338735, 10.565833780415012, 10.769682877321769, 19.2623713595368, 10.43257094917286, 12.191336511094532, 14.436768314393102, 16.761189977783587), # 122 (16.312746533795494, 13.424676442154594, 16.270596770650265, 19.02295931045525, 18.728256195223544, 10.141359501049065, 10.52047026143791, 10.74840900110637, 19.232723305086758, 10.396572908060497, 12.151524470215579, 14.394864091867959, 16.72309888500163), # 123 (16.256250875720976, 13.357348945899277, 16.234395973977367, 18.970699393357176, 18.68654766556717, 10.12296946502473, 10.475358659266176, 10.727881660900668, 19.20335606939181, 10.36079627284073, 12.111988302639215, 14.352946264303695, 16.68433650361868), # 124 (16.198969829289226, 13.290287166994178, 16.197887913098263, 18.91809694657217, 18.643930876362642, 10.104629876364521, 10.43041712525053, 10.708017264340365, 19.174180910835588, 10.32516569841324, 12.072640712283903, 14.310932085061827, 16.644848305175692), # 125 (16.14083793610127, 13.22338241609909, 16.16100164762742, 18.8650565990101, 18.60035160484781, 10.086291048167222, 10.385563810741687, 10.688732219061166, 19.145109087801753, 10.289605839677717, 12.033394403068103, 14.268738807503881, 16.604579761213643), # 126 (16.08178973775815, 13.156526003873804, 16.123666237179307, 18.81148297958082, 18.555755628260517, 10.067903293531618, 10.34071686709037, 10.669942932698781, 19.116051858673934, 10.254041351533843, 11.994162078910282, 14.226283684991369, 16.56347634327348), # 127 (16.021759775860883, 13.089609240978122, 16.08581074136841, 18.7572807171942, 18.51008872383862, 10.0494169255565, 10.295794445647289, 10.651565812888913, 19.086920481835772, 10.218396888881303, 11.954856443728904, 14.183483970885819, 16.521483522896165), # 128 (15.960682592010507, 13.022523438071834, 16.047364219809193, 18.702354440760086, 18.46329666881996, 10.03078225734065, 10.250714697763163, 10.633517267267269, 19.057626215670915, 10.182597106619781, 11.915390201442428, 14.140256918548745, 16.478546771622668), # 129 (15.89849272780806, 12.955159905814739, 16.008255732116123, 18.646608779188355, 18.415325240442385, 10.011949601982854, 10.205395774788713, 10.61571370346955, 19.028080318563003, 10.146566659648963, 11.87567605596932, 14.096519781341675, 16.434611560993947), # 130 (15.83512472485457, 12.887409954866628, 15.968414337903685, 18.589948361388856, 18.36612021594374, 9.992869272581904, 10.159755828074656, 10.59807152913147, 18.998194048895677, 10.110230202868534, 11.835626711228041, 14.052189812626125, 16.38962336255096), # 131 (15.770513124751067, 12.8191648958873, 15.927769096786342, 18.532277816271456, 18.315627372561877, 9.973491582236585, 10.113713008971706, 10.580507151888732, 18.967878665052577, 10.073512391178177, 11.795154871137056, 14.007184265763614, 16.343527647834676), # 132 (15.704592469098595, 12.750316039536544, 15.88624906837857, 18.473501772746012, 18.263792487534637, 9.95376684404568, 10.06718546883058, 10.562936979377039, 18.93704542541735, 10.036337879477578, 11.754173239614829, 13.961420394115667, 16.296269888386057), # 133 (15.63729729949817, 12.68075469647416, 15.843783312294848, 18.413524859722386, 18.210561338099865, 9.933645371107978, 10.020091359002002, 10.545277419232098, 18.905605588373632, 9.998631322666423, 11.712594520579822, 13.914815451043799, 16.24779555574605), # 134 (15.568562157550836, 12.610372177359944, 15.800300888149636, 18.352251706110444, 18.15587970149542, 9.913077476522266, 9.972348830836681, 10.527444879089616, 18.873470412305064, 9.960317375644397, 11.670331417950496, 13.867286689909534, 16.198050121455637), # 135 (15.498321584857623, 12.539059792853687, 15.755730855557415, 18.28958694082003, 18.09969335495913, 9.892013473387332, 9.923876035685343, 10.509355766585298, 18.840551155595293, 9.92132069331118, 11.627296635645319, 13.818751364074394, 16.146979057055766), # 136 (15.426510123019561, 12.466708853615184, 15.710002274132659, 18.225435192761026, 18.04194807572886, 9.870403674801956, 9.8745911248987, 10.490926489354854, 18.80675907662796, 9.881565930566463, 11.583402877582751, 13.769126726899895, 16.094527834087398), # 137 (15.353062313637686, 12.393210670304235, 15.66304420348983, 18.159701090843274, 17.982589641042455, 9.848198393864935, 9.824412249827468, 10.472073455033982, 18.772005433786706, 9.840977742309924, 11.538562847681254, 13.718330031747561, 16.040641924091503), # 138 (15.277912698313022, 12.31845655358063, 15.614785703243411, 18.092289263976646, 17.921563828137746, 9.825347943675048, 9.773257561822367, 10.452713071258394, 18.73620148545517, 9.799480783441254, 11.492689249859293, 13.66627853197891, 15.985266798609034), # 139 (15.200995818646616, 12.242337814104165, 15.565155833007877, 18.023104341071, 17.858816414252605, 9.801802637331082, 9.721045212234115, 10.432761745663793, 18.699258490016998, 9.756999708860134, 11.445694788035329, 13.612889480955465, 15.928347929180966), # 140 (15.122246216239494, 12.164745762534638, 15.514083652397689, 17.952050951036195, 17.794293176624855, 9.777512787931828, 9.667693352413432, 10.412135885885887, 18.661087705855824, 9.713459173466253, 11.39749216612783, 13.558080132038745, 15.869830787348244), # 141 (15.041598432692682, 12.08557170953184, 15.461498221027327, 17.879033722782097, 17.727939892492355, 9.752428708576069, 9.613120133711027, 10.39075189956038, 18.621600391355297, 9.66878383215929, 11.347994088055255, 13.50176773859027, 15.80966084465184), # 142 (14.958987009607215, 12.004706965755565, 15.407328598511267, 17.803957285218555, 17.659702339092952, 9.726500712362592, 9.557243707477623, 10.368526194322978, 18.580707804899063, 9.622898339838935, 11.297113257736068, 13.443869553971561, 15.747783572632711), # 143 (14.874346488584132, 11.922042841865615, 15.35150384446397, 17.72672626725544, 17.58952629366449, 9.699679112390184, 9.499982225063938, 10.34537517780939, 18.53832120487076, 9.575727351404868, 11.244762379088732, 13.384302831544138, 15.684144442831826), # 144 (14.787611411224459, 11.837470648521778, 15.29395301849992, 17.64724529780261, 17.51735753344482, 9.671914221757634, 9.441253837820689, 10.321215257655316, 18.494351849654016, 9.527195521756779, 11.190854156031712, 13.322984824669524, 15.618688926790139), # 145 (14.69871631912923, 11.750881696383855, 15.23460518023359, 17.565419005769925, 17.443141835671785, 9.643156353563725, 9.380976697098594, 10.295962841496468, 18.448710997632492, 9.477227505794348, 11.135301292483467, 13.259832786709236, 15.551362496048613), # 146 (14.607595753899481, 11.662167296111635, 15.173389389279437, 17.481152020067245, 17.36682497758323, 9.613355820907245, 9.319068954248365, 10.269534336968547, 18.401309907189823, 9.425747958417263, 11.078016492362465, 13.194763971024798, 15.482110622148213), # 147 (14.51418425713624, 11.571218758364918, 15.11023470525195, 17.394348969604433, 17.28835273641701, 9.582462936886982, 9.255448760620729, 10.241846151707264, 18.352059836709653, 9.372681534525205, 11.018912459587169, 13.127695630977726, 15.410878776629895), # 148 (14.418416370440541, 11.477927393803494, 15.045070187765598, 17.304914483291345, 17.207670889410966, 9.550428014601719, 9.190034267566393, 10.21281469334832, 18.30087204457561, 9.317952889017864, 10.957901898076038, 13.058545019929545, 15.337612431034628), # 149 (14.320226635413416, 11.382184513087163, 14.97782489643485, 17.212753190037848, 17.124725213802947, 9.517201367150248, 9.122743626436081, 10.182356369527422, 18.247657789171353, 9.261486676794918, 10.894897511747537, 12.987229391241772, 15.262257056903364), # 150 (14.219549593655895, 11.283881426875716, 14.908427890874176, 17.117769718753795, 17.0394614868308, 9.48273330763135, 9.05349498858051, 10.150387587880278, 18.19232832888052, 9.20320755275606, 10.829812004520129, 12.91366599827593, 15.184758125777073), # 151 (14.116319786769019, 11.182909445828951, 14.836808230698063, 17.019868698349054, 16.951825485732364, 9.446974149143815, 8.982206505350396, 10.116824756042595, 18.134794922086748, 9.143040171800969, 10.762558080312278, 12.837772094393538, 15.105061109196717), # 152 (14.010471756353809, 11.079159880606662, 14.762894975520963, 16.91895475773348, 16.8617629877455, 9.409874204786428, 8.908796328096455, 10.081584281650072, 18.07496882717368, 9.080909188829333, 10.693048443042448, 12.759464932956115, 15.02311147870325), # 153 (13.901940044011312, 10.972524041868644, 14.686617184957365, 16.81493252581694, 16.769219770108045, 9.371383787657978, 8.83318260816941, 10.044582572338422, 18.01276130252496, 9.016739258740834, 10.6211957966291, 12.678661767325185, 14.938854705837642), # 154 (13.790659191342543, 10.86289324027469, 14.607903918621735, 16.707706631509282, 16.674141610057855, 9.331453210857248, 8.75528349691997, 10.005736035743345, 17.948083606524232, 8.950455036435159, 10.5469128449907, 12.595279850862267, 14.852236262140847), # 155 (13.676563739948545, 10.750158786484597, 14.526684236128547, 16.597181703720377, 16.576474284832766, 9.29003278748303, 8.67501714569886, 9.964961079500554, 17.88084699755513, 8.88198117681199, 10.470112292045709, 12.50923643692888, 14.763201619153833), # 156 (13.559588231430352, 10.634211991158162, 14.442887197092272, 16.483262371360087, 16.476163571670632, 9.247072830634105, 8.592301705856794, 9.922174111245749, 17.8109627340013, 8.811242334771014, 10.39070684171259, 12.420448778886547, 14.671696248417557), # 157 (13.43642570352943, 10.512815617390064, 14.352465517024239, 16.36158524697224, 16.368625990567796, 9.199844057370798, 8.505192097670143, 9.87443451422887, 17.732991764878374, 8.73605864932406, 10.306072354570096, 12.32567921554981, 14.573674546947622), # 158 (13.288116180561124, 10.37351757527906, 14.232128073125379, 16.207158885819215, 16.22734435760693, 9.132641366412786, 8.40278297409429, 9.804984358975888, 17.61556907019986, 8.644105789377742, 10.20135048411419, 12.206452542629595, 14.445769764456351), # 159 (13.112769770827757, 10.215174111373285, 14.0794577243206, 16.017439518735948, 16.04955623642423, 9.043814332885832, 8.284038747090811, 9.712078541149223, 17.455365409011574, 8.534170173353209, 10.075067115497172, 12.060903507998123, 14.285557096008445), # 160 (12.911799698254727, 10.038817562544844, 13.896084549438555, 15.79423050676211, 15.837107623707803, 8.934439034826566, 8.149826602812377, 9.596880959597605, 17.254493580598233, 8.407184747707687, 9.928334978279473, 11.890381444033627, 14.094673280674375), # 161 (12.686619186767443, 9.84548026566583, 13.683638627307893, 15.539335210937388, 15.591844516145768, 8.80559155027162, 8.001013727411657, 9.460555513169764, 17.015066384244545, 8.264082458898416, 9.762266802021516, 11.696235683114327, 13.874755057524599), # 162 (12.438641460291295, 9.636194557608343, 13.443750036757264, 15.254556992301481, 15.315612910426239, 8.65834795725763, 7.838467307041322, 9.304266100714425, 16.73919661923523, 8.105796253382625, 9.577975316283736, 11.479815557618458, 13.627439165629584), # 163 (12.16927974275169, 9.411992775244478, 13.178048856615318, 14.941699211894072, 15.01025880323734, 8.493784333821234, 7.663054527854039, 9.129176621080324, 16.428997084855002, 7.933259077617543, 9.376573250626553, 11.242470399924246, 13.35436234405979), # 164 (11.879947258074031, 9.173907255446338, 12.888165165710705, 14.602565230754854, 14.677628191267182, 8.312976757999055, 7.475642576002479, 8.936450973116184, 16.086580580388564, 7.747403878060404, 9.1591733346104, 10.985549542409915, 13.057161331885686), # 165 (11.572057230183715, 8.922970335086019, 12.57572904287207, 14.238958409923503, 14.319567071203886, 8.117001307827735, 7.277098637639315, 8.727253055670738, 15.714059905120632, 7.549163601168441, 8.926888297795703, 10.710402317453703, 12.737472868177733), # 166 (11.24702288300614, 8.660214351035616, 12.242370566928068, 13.852682110439718, 13.937921439735565, 7.906934061343905, 7.0682898989172145, 8.502746767592717, 15.31354785833592, 7.339471193398886, 8.680830869742888, 10.418378057433825, 12.396933692006392), # 167 (10.906257440466712, 8.386671640167231, 11.889719816707347, 13.445539693343184, 13.534537293550335, 7.683851096584198, 6.850083545988848, 8.264096007730847, 14.887157239319139, 7.11925960120897, 8.422113780012385, 10.11082609472852, 12.037180542442131), # 168 (10.551174126490828, 8.103374539352963, 11.519406871038555, 13.019334519673588, 13.111260629336316, 7.4488284915852505, 6.623346765006885, 8.012464674933861, 14.437000847355009, 6.889461771055926, 8.151849758164623, 9.78909576171601, 11.659850158555415), # 169 (10.18318616500389, 7.811355385464907, 11.133061808750343, 12.575869950470615, 12.66993744378162, 7.2029423243836925, 6.388946742123995, 7.749016668050485, 13.96519148172823, 6.6510106493969845, 7.871151533760029, 9.454536390774527, 11.2665792794167), # 170 (9.8037067799313, 7.511646515375161, 10.73231470867136, 12.116949346773964, 12.21241373357437, 6.947268673016157, 6.147750663492849, 7.47491588592945, 13.47384194172352, 6.404839182689379, 7.581131836359027, 9.108497314282296, 10.859004644096458), # 171 (9.414149195198457, 7.205280265955825, 10.318795649630257, 11.644376069623315, 11.740535495402677, 6.682883615519281, 5.900625715266118, 7.191326227419487, 12.965065026625595, 6.151880317390344, 7.282903395522049, 8.752327864617548, 10.438762991665145), # 172 (9.015926634730764, 6.893288974078996, 9.894134710455681, 11.159953480058356, 11.256148725954663, 6.410863229929695, 5.64843908359647, 6.899411591369322, 12.440973535719161, 5.893066999957107, 6.97757894080952, 8.387377374158506, 10.007491061193234), # 173 (8.610452322453618, 6.576704976616772, 9.459961969976282, 10.665484939118773, 10.76109942191844, 6.132283594284034, 5.3920579546365754, 6.600335876627689, 11.903680268288936, 5.629332176846904, 6.66627120178187, 8.014995175283403, 9.566825591751181), # 174 (8.19913948229242, 6.256560610441251, 9.017907507020714, 10.162773807844262, 10.257233579982124, 5.848220786618931, 5.132349514539104, 6.295262982043313, 11.35529802361963, 5.361608794516964, 6.3500929079995245, 7.636530600370466, 9.118403322409455), # 175 (7.783401338172574, 5.933888212424531, 8.569601400417621, 9.653623447274505, 9.746397196833835, 5.55975088497102, 4.870180949456727, 5.985356806464928, 10.797939600995955, 5.090829799424521, 6.0301567890229135, 7.253332981797922, 8.663860992238513), # 176 (7.364651114019479, 5.6097201194387125, 8.116673728995655, 9.13983721844919, 9.230436269161691, 5.267949967376934, 4.606419445542112, 5.671781248741259, 10.233717799702626, 4.817928138026804, 5.7075755744124645, 6.866751651944002, 8.204835340308824), # 177 (6.944302033758534, 5.285088668355891, 7.660754571583465, 8.623218482408008, 8.711196793653805, 4.973894111873309, 4.341932188947932, 5.355700207721038, 9.664745419024355, 4.54383675678105, 5.383461993728603, 6.478135943186929, 7.742963105690853), # 178 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179 ) passenger_arriving_acc = ( (6, 10, 10, 7, 12, 4, 2, 4, 7, 2, 1, 0, 0, 12, 12, 6, 6, 9, 3, 4, 1, 2, 1, 0, 0, 0), # 0 (14, 25, 15, 12, 22, 6, 10, 6, 10, 2, 4, 0, 0, 23, 20, 14, 12, 16, 6, 7, 1, 4, 5, 2, 0, 0), # 1 (22, 36, 20, 24, 34, 11, 15, 10, 14, 3, 8, 1, 0, 33, 28, 21, 17, 25, 17, 13, 1, 8, 6, 2, 3, 0), # 2 (33, 37, 33, 40, 43, 16, 20, 11, 17, 4, 9, 1, 0, 43, 35, 29, 21, 38, 25, 16, 3, 12, 11, 4, 5, 0), # 3 (42, 53, 47, 52, 50, 22, 24, 17, 21, 8, 13, 1, 0, 56, 52, 37, 27, 49, 28, 19, 6, 15, 13, 6, 5, 0), # 4 (48, 63, 56, 63, 60, 24, 30, 23, 23, 12, 15, 2, 0, 67, 60, 46, 37, 58, 32, 22, 8, 19, 16, 10, 6, 0), # 5 (61, 73, 70, 73, 65, 26, 34, 29, 28, 13, 19, 3, 0, 78, 74, 55, 43, 67, 39, 27, 10, 21, 20, 11, 6, 0), # 6 (76, 87, 82, 82, 70, 31, 39, 30, 30, 15, 22, 4, 0, 94, 87, 67, 51, 78, 44, 31, 14, 29, 24, 13, 6, 0), # 7 (95, 103, 90, 101, 79, 35, 45, 34, 34, 17, 23, 4, 0, 104, 104, 80, 56, 93, 49, 35, 20, 35, 28, 15, 8, 0), # 8 (106, 115, 103, 114, 84, 38, 49, 44, 44, 17, 25, 4, 0, 120, 113, 91, 66, 103, 61, 37, 25, 42, 29, 19, 11, 0), # 9 (120, 133, 115, 127, 93, 46, 54, 51, 47, 19, 27, 5, 0, 137, 124, 102, 74, 109, 67, 41, 30, 48, 32, 24, 12, 0), # 10 (136, 145, 131, 142, 104, 49, 64, 56, 55, 24, 30, 7, 0, 149, 135, 115, 81, 116, 76, 50, 37, 51, 37, 25, 13, 0), # 11 (155, 158, 138, 151, 117, 52, 66, 64, 60, 25, 31, 11, 0, 163, 151, 128, 86, 128, 80, 62, 38, 63, 43, 27, 15, 0), # 12 (170, 180, 151, 167, 128, 54, 71, 69, 68, 27, 32, 12, 0, 180, 166, 140, 97, 144, 91, 68, 42, 69, 48, 28, 15, 0), # 13 (193, 200, 160, 182, 137, 59, 79, 72, 77, 32, 33, 12, 0, 196, 178, 149, 108, 155, 101, 75, 46, 77, 51, 29, 16, 0), # 14 (209, 222, 171, 199, 148, 69, 89, 83, 86, 33, 34, 14, 0, 210, 188, 164, 117, 164, 110, 84, 51, 86, 54, 33, 18, 0), # 15 (228, 239, 182, 212, 172, 73, 96, 90, 93, 36, 35, 14, 0, 234, 206, 178, 125, 178, 120, 91, 57, 94, 57, 37, 18, 0), # 16 (243, 249, 196, 224, 193, 76, 102, 96, 95, 39, 39, 18, 0, 248, 221, 198, 136, 189, 122, 99, 59, 101, 61, 39, 20, 0), # 17 (261, 268, 209, 237, 206, 86, 111, 100, 103, 45, 40, 19, 0, 271, 240, 212, 144, 205, 132, 105, 67, 106, 67, 42, 24, 0), # 18 (287, 287, 222, 252, 218, 96, 118, 105, 111, 50, 40, 19, 0, 285, 257, 233, 153, 224, 142, 116, 76, 111, 72, 48, 28, 0), # 19 (299, 307, 232, 269, 227, 100, 125, 111, 117, 54, 45, 19, 0, 296, 273, 246, 162, 240, 151, 122, 79, 120, 79, 48, 32, 0), # 20 (313, 324, 248, 284, 239, 106, 133, 118, 120, 54, 47, 21, 0, 316, 287, 259, 175, 255, 160, 127, 82, 122, 83, 50, 33, 0), # 21 (339, 352, 256, 303, 249, 118, 138, 123, 130, 57, 48, 22, 0, 327, 302, 274, 188, 268, 168, 132, 90, 129, 92, 55, 37, 0), # 22 (346, 373, 271, 327, 266, 123, 145, 132, 133, 64, 52, 23, 0, 351, 321, 288, 202, 285, 176, 139, 94, 131, 97, 58, 38, 0), # 23 (362, 386, 292, 338, 275, 131, 150, 137, 141, 70, 56, 23, 0, 366, 335, 304, 213, 303, 184, 144, 97, 140, 104, 63, 38, 0), # 24 (378, 409, 307, 352, 289, 141, 156, 145, 148, 77, 56, 25, 0, 387, 349, 318, 230, 320, 193, 155, 100, 150, 108, 68, 41, 0), # 25 (399, 430, 320, 366, 299, 148, 159, 147, 156, 82, 59, 28, 0, 410, 367, 338, 241, 333, 197, 166, 104, 159, 115, 73, 42, 0), # 26 (411, 445, 329, 384, 314, 152, 164, 153, 163, 83, 62, 30, 0, 430, 382, 351, 247, 348, 207, 172, 109, 164, 119, 74, 45, 0), # 27 (433, 465, 338, 394, 320, 157, 173, 162, 168, 85, 63, 31, 0, 449, 403, 357, 258, 360, 216, 182, 116, 167, 123, 75, 46, 0), # 28 (446, 490, 353, 409, 336, 165, 176, 171, 178, 87, 64, 34, 0, 466, 425, 366, 265, 371, 220, 190, 123, 173, 126, 76, 47, 0), # 29 (468, 512, 366, 423, 352, 170, 186, 176, 180, 90, 70, 35, 0, 490, 438, 378, 276, 385, 234, 194, 130, 176, 134, 78, 47, 0), # 30 (490, 530, 381, 440, 367, 181, 194, 182, 186, 92, 71, 35, 0, 505, 449, 388, 287, 400, 245, 200, 132, 182, 140, 82, 48, 0), # 31 (506, 544, 394, 458, 381, 187, 199, 187, 190, 94, 73, 37, 0, 522, 465, 402, 294, 412, 253, 205, 133, 190, 150, 85, 50, 0), # 32 (525, 560, 407, 467, 393, 194, 209, 193, 197, 98, 75, 38, 0, 541, 476, 421, 301, 425, 264, 212, 141, 195, 153, 92, 51, 0), # 33 (551, 589, 425, 482, 408, 200, 214, 207, 209, 102, 77, 42, 0, 568, 497, 432, 312, 437, 279, 217, 144, 199, 155, 95, 51, 0), # 34 (572, 604, 441, 495, 424, 205, 222, 215, 216, 105, 77, 44, 0, 586, 511, 450, 319, 452, 286, 221, 148, 203, 157, 99, 55, 0), # 35 (591, 624, 456, 512, 437, 211, 231, 219, 222, 109, 79, 46, 0, 602, 532, 466, 333, 470, 299, 224, 153, 209, 160, 102, 56, 0), # 36 (609, 647, 470, 528, 452, 219, 241, 224, 229, 114, 80, 47, 0, 614, 558, 477, 342, 486, 310, 232, 158, 222, 168, 103, 56, 0), # 37 (625, 663, 486, 545, 465, 226, 250, 229, 241, 117, 81, 49, 0, 629, 576, 494, 352, 504, 316, 233, 164, 232, 171, 105, 58, 0), # 38 (639, 687, 500, 560, 480, 232, 259, 236, 247, 118, 83, 50, 0, 650, 587, 508, 365, 515, 321, 237, 166, 242, 176, 109, 60, 0), # 39 (654, 700, 514, 580, 491, 237, 267, 244, 251, 124, 88, 54, 0, 668, 607, 519, 377, 530, 327, 243, 175, 247, 181, 113, 62, 0), # 40 (668, 721, 528, 598, 509, 245, 273, 250, 260, 124, 91, 57, 0, 690, 626, 526, 392, 543, 335, 248, 183, 251, 185, 118, 66, 0), # 41 (684, 736, 543, 615, 519, 254, 283, 253, 267, 127, 95, 57, 0, 709, 635, 534, 399, 556, 344, 252, 184, 258, 193, 121, 67, 0), # 42 (700, 755, 568, 636, 530, 261, 294, 258, 273, 131, 100, 57, 0, 724, 653, 545, 413, 575, 363, 259, 188, 267, 200, 123, 67, 0), # 43 (724, 779, 593, 647, 545, 265, 299, 263, 277, 136, 103, 58, 0, 751, 668, 559, 421, 591, 371, 267, 192, 272, 208, 124, 69, 0), # 44 (747, 806, 607, 661, 557, 274, 306, 267, 291, 143, 106, 58, 0, 765, 682, 577, 431, 607, 379, 273, 199, 277, 216, 129, 69, 0), # 45 (766, 820, 629, 678, 572, 283, 311, 272, 297, 145, 110, 60, 0, 780, 698, 590, 445, 620, 383, 278, 201, 283, 224, 132, 71, 0), # 46 (788, 839, 644, 692, 586, 293, 319, 276, 304, 148, 112, 60, 0, 801, 715, 603, 448, 634, 387, 282, 204, 285, 230, 137, 72, 0), # 47 (804, 860, 662, 709, 606, 299, 323, 282, 310, 150, 114, 62, 0, 821, 731, 615, 459, 641, 398, 286, 207, 292, 234, 142, 74, 0), # 48 (830, 881, 679, 724, 627, 303, 328, 291, 314, 157, 117, 62, 0, 838, 751, 624, 468, 656, 410, 292, 213, 302, 238, 145, 76, 0), # 49 (839, 898, 695, 741, 639, 314, 330, 300, 321, 161, 119, 63, 0, 857, 765, 635, 480, 670, 420, 295, 217, 307, 244, 148, 76, 0), # 50 (851, 919, 712, 765, 653, 322, 336, 306, 326, 163, 119, 65, 0, 881, 777, 642, 487, 684, 434, 299, 222, 312, 254, 150, 79, 0), # 51 (870, 936, 728, 783, 663, 327, 342, 316, 332, 165, 121, 65, 0, 902, 793, 656, 493, 702, 445, 305, 229, 317, 263, 151, 80, 0), # 52 (887, 954, 739, 802, 682, 333, 346, 319, 345, 167, 124, 65, 0, 918, 805, 667, 501, 722, 450, 313, 233, 328, 269, 151, 81, 0), # 53 (906, 973, 759, 815, 690, 335, 356, 324, 350, 168, 127, 66, 0, 935, 824, 676, 517, 740, 456, 319, 237, 336, 274, 154, 82, 0), # 54 (922, 994, 772, 832, 705, 342, 362, 327, 355, 172, 127, 68, 0, 949, 840, 686, 530, 759, 464, 326, 241, 345, 281, 157, 84, 0), # 55 (947, 1006, 789, 849, 717, 351, 365, 334, 362, 176, 133, 70, 0, 960, 852, 693, 541, 778, 472, 331, 244, 351, 285, 158, 84, 0), # 56 (962, 1020, 811, 863, 725, 362, 368, 342, 372, 180, 135, 71, 0, 981, 867, 708, 550, 792, 477, 337, 249, 354, 291, 164, 85, 0), # 57 (984, 1045, 824, 875, 741, 371, 370, 350, 380, 181, 139, 71, 0, 1000, 886, 720, 564, 813, 483, 341, 255, 361, 295, 173, 85, 0), # 58 (1006, 1061, 841, 889, 759, 377, 379, 353, 384, 183, 141, 73, 0, 1012, 901, 735, 569, 823, 489, 348, 260, 366, 300, 176, 87, 0), # 59 (1026, 1077, 860, 908, 769, 383, 388, 360, 392, 188, 146, 75, 0, 1031, 919, 749, 577, 836, 498, 355, 263, 374, 307, 181, 89, 0), # 60 (1054, 1096, 886, 929, 783, 389, 394, 365, 398, 193, 146, 75, 0, 1047, 937, 758, 587, 853, 505, 360, 271, 380, 313, 185, 91, 0), # 61 (1075, 1109, 897, 947, 797, 398, 400, 372, 403, 195, 148, 76, 0, 1066, 952, 765, 594, 872, 514, 368, 275, 387, 320, 188, 91, 0), # 62 (1099, 1121, 915, 966, 811, 405, 409, 377, 411, 197, 151, 77, 0, 1079, 962, 778, 602, 883, 520, 374, 279, 388, 323, 192, 93, 0), # 63 (1114, 1141, 927, 984, 822, 415, 417, 378, 418, 197, 156, 80, 0, 1104, 973, 795, 611, 894, 531, 381, 285, 394, 327, 196, 93, 0), # 64 (1137, 1159, 940, 1006, 831, 420, 423, 382, 424, 200, 157, 81, 0, 1114, 986, 807, 623, 907, 536, 387, 288, 401, 336, 198, 95, 0), # 65 (1157, 1168, 955, 1030, 843, 425, 434, 389, 435, 205, 159, 82, 0, 1134, 995, 820, 631, 927, 549, 391, 290, 411, 342, 202, 96, 0), # 66 (1178, 1180, 968, 1040, 868, 438, 438, 393, 440, 207, 163, 82, 0, 1151, 1016, 834, 644, 939, 554, 402, 295, 418, 350, 204, 97, 0), # 67 (1194, 1200, 981, 1058, 879, 447, 443, 397, 445, 210, 164, 83, 0, 1165, 1028, 849, 653, 953, 556, 405, 306, 424, 353, 205, 98, 0), # 68 (1216, 1219, 999, 1069, 895, 451, 456, 405, 452, 212, 165, 84, 0, 1189, 1051, 868, 667, 970, 561, 410, 309, 426, 358, 209, 99, 0), # 69 (1233, 1235, 1017, 1082, 906, 461, 467, 415, 456, 218, 166, 86, 0, 1209, 1072, 881, 675, 987, 568, 412, 315, 433, 365, 212, 99, 0), # 70 (1249, 1254, 1026, 1102, 919, 466, 473, 419, 462, 218, 166, 87, 0, 1222, 1081, 887, 686, 1003, 578, 419, 318, 440, 372, 217, 99, 0), # 71 (1263, 1271, 1038, 1120, 929, 475, 481, 424, 469, 222, 167, 88, 0, 1235, 1094, 899, 694, 1017, 588, 428, 327, 448, 377, 221, 99, 0), # 72 (1285, 1284, 1051, 1135, 940, 480, 490, 429, 472, 225, 171, 89, 0, 1254, 1113, 915, 701, 1030, 596, 438, 332, 452, 381, 223, 99, 0), # 73 (1296, 1292, 1065, 1154, 951, 486, 501, 433, 483, 227, 172, 89, 0, 1267, 1127, 928, 709, 1044, 602, 442, 337, 465, 389, 227, 101, 0), # 74 (1314, 1314, 1081, 1169, 966, 490, 507, 435, 489, 233, 176, 89, 0, 1284, 1142, 937, 713, 1057, 607, 448, 343, 471, 393, 229, 101, 0), # 75 (1327, 1325, 1090, 1181, 986, 499, 513, 450, 494, 234, 178, 90, 0, 1310, 1156, 953, 722, 1074, 614, 456, 344, 482, 401, 232, 104, 0), # 76 (1353, 1345, 1104, 1194, 999, 506, 515, 452, 504, 237, 180, 93, 0, 1334, 1168, 957, 728, 1095, 622, 467, 353, 489, 405, 237, 105, 0), # 77 (1380, 1357, 1117, 1210, 1010, 513, 520, 455, 509, 239, 182, 95, 0, 1357, 1186, 971, 735, 1112, 630, 474, 358, 499, 415, 238, 106, 0), # 78 (1393, 1371, 1128, 1219, 1030, 520, 524, 461, 517, 244, 185, 95, 0, 1378, 1204, 979, 740, 1123, 634, 480, 365, 508, 423, 239, 107, 0), # 79 (1407, 1382, 1145, 1237, 1054, 532, 526, 469, 525, 245, 186, 96, 0, 1397, 1217, 991, 754, 1136, 639, 484, 369, 515, 429, 240, 108, 0), # 80 (1430, 1395, 1161, 1250, 1074, 536, 532, 476, 533, 249, 187, 99, 0, 1419, 1226, 1001, 768, 1149, 649, 493, 372, 520, 433, 241, 109, 0), # 81 (1446, 1412, 1175, 1263, 1084, 542, 541, 483, 537, 255, 188, 100, 0, 1447, 1240, 1012, 778, 1159, 654, 498, 378, 528, 438, 243, 109, 0), # 82 (1468, 1434, 1185, 1282, 1101, 545, 549, 489, 542, 258, 191, 103, 0, 1456, 1264, 1026, 787, 1171, 659, 503, 378, 536, 441, 244, 110, 0), # 83 (1492, 1450, 1197, 1295, 1115, 554, 555, 493, 551, 262, 191, 105, 0, 1468, 1272, 1035, 794, 1180, 672, 510, 381, 545, 444, 247, 110, 0), # 84 (1510, 1470, 1211, 1314, 1131, 566, 560, 498, 557, 264, 194, 106, 0, 1483, 1285, 1054, 804, 1193, 682, 516, 386, 552, 451, 251, 111, 0), # 85 (1528, 1478, 1228, 1334, 1146, 573, 565, 501, 566, 267, 195, 108, 0, 1496, 1299, 1061, 816, 1207, 690, 524, 387, 559, 455, 258, 111, 0), # 86 (1542, 1492, 1245, 1350, 1153, 582, 570, 506, 574, 271, 197, 109, 0, 1510, 1311, 1076, 829, 1219, 700, 529, 392, 565, 460, 264, 113, 0), # 87 (1564, 1507, 1262, 1362, 1171, 585, 577, 511, 586, 272, 200, 111, 0, 1524, 1325, 1088, 841, 1231, 709, 535, 395, 569, 473, 268, 114, 0), # 88 (1570, 1527, 1280, 1388, 1190, 591, 580, 514, 594, 273, 204, 114, 0, 1539, 1345, 1100, 855, 1242, 717, 540, 397, 577, 478, 275, 117, 0), # 89 (1588, 1538, 1295, 1412, 1201, 596, 589, 521, 598, 276, 211, 114, 0, 1554, 1356, 1106, 865, 1260, 723, 547, 398, 582, 483, 276, 120, 0), # 90 (1608, 1557, 1310, 1425, 1221, 603, 593, 525, 610, 278, 214, 116, 0, 1570, 1365, 1114, 873, 1278, 730, 555, 401, 587, 491, 277, 121, 0), # 91 (1624, 1571, 1323, 1441, 1228, 611, 600, 533, 618, 281, 217, 117, 0, 1591, 1378, 1124, 880, 1294, 732, 562, 405, 594, 496, 283, 122, 0), # 92 (1639, 1585, 1337, 1459, 1244, 616, 611, 537, 624, 281, 217, 118, 0, 1608, 1396, 1133, 887, 1311, 740, 569, 414, 603, 501, 286, 122, 0), # 93 (1652, 1600, 1352, 1480, 1258, 624, 623, 542, 632, 285, 221, 118, 0, 1634, 1414, 1145, 893, 1324, 748, 581, 416, 611, 508, 288, 125, 0), # 94 (1668, 1625, 1368, 1499, 1279, 629, 629, 549, 641, 290, 224, 119, 0, 1647, 1431, 1156, 902, 1334, 757, 590, 418, 617, 512, 289, 126, 0), # 95 (1688, 1635, 1382, 1513, 1293, 634, 640, 555, 646, 293, 227, 121, 0, 1663, 1442, 1166, 912, 1344, 763, 593, 420, 627, 520, 291, 126, 0), # 96 (1711, 1648, 1401, 1527, 1308, 642, 650, 563, 652, 295, 229, 121, 0, 1683, 1459, 1173, 920, 1358, 772, 597, 423, 632, 523, 295, 128, 0), # 97 (1724, 1664, 1420, 1547, 1327, 648, 658, 565, 657, 298, 232, 121, 0, 1695, 1479, 1189, 930, 1374, 777, 608, 428, 639, 530, 297, 130, 0), # 98 (1738, 1678, 1428, 1558, 1333, 658, 664, 568, 663, 302, 235, 122, 0, 1714, 1490, 1197, 936, 1380, 786, 616, 433, 652, 532, 299, 130, 0), # 99 (1756, 1693, 1441, 1575, 1343, 663, 675, 572, 672, 303, 237, 122, 0, 1735, 1503, 1207, 944, 1398, 793, 622, 441, 655, 536, 306, 130, 0), # 100 (1773, 1702, 1452, 1589, 1353, 673, 682, 574, 677, 305, 238, 122, 0, 1750, 1521, 1219, 955, 1414, 802, 628, 446, 660, 537, 309, 131, 0), # 101 (1795, 1719, 1465, 1600, 1361, 678, 688, 580, 681, 308, 241, 122, 0, 1767, 1534, 1235, 967, 1429, 807, 633, 451, 664, 546, 313, 131, 0), # 102 (1815, 1731, 1470, 1614, 1373, 682, 695, 585, 686, 311, 241, 123, 0, 1786, 1549, 1244, 978, 1443, 811, 641, 456, 669, 551, 317, 132, 0), # 103 (1834, 1741, 1484, 1631, 1390, 687, 700, 592, 697, 313, 243, 124, 0, 1804, 1570, 1251, 989, 1459, 817, 647, 462, 678, 557, 322, 132, 0), # 104 (1851, 1756, 1496, 1642, 1400, 697, 706, 598, 703, 315, 246, 126, 0, 1824, 1585, 1261, 1000, 1469, 820, 652, 469, 683, 564, 326, 133, 0), # 105 (1877, 1767, 1507, 1652, 1410, 703, 713, 599, 711, 317, 246, 127, 0, 1848, 1607, 1269, 1008, 1479, 828, 654, 476, 693, 568, 331, 133, 0), # 106 (1895, 1779, 1525, 1669, 1423, 713, 719, 606, 717, 320, 247, 130, 0, 1867, 1622, 1278, 1016, 1502, 837, 661, 477, 699, 572, 332, 133, 0), # 107 (1918, 1789, 1538, 1681, 1435, 721, 722, 613, 720, 323, 250, 132, 0, 1881, 1636, 1290, 1022, 1513, 842, 662, 478, 706, 582, 335, 133, 0), # 108 (1932, 1798, 1554, 1693, 1448, 725, 730, 621, 727, 325, 253, 133, 0, 1898, 1648, 1300, 1031, 1522, 849, 666, 484, 713, 586, 337, 133, 0), # 109 (1954, 1811, 1567, 1705, 1465, 730, 738, 627, 733, 327, 256, 133, 0, 1918, 1662, 1314, 1037, 1536, 853, 677, 490, 721, 588, 339, 135, 0), # 110 (1971, 1831, 1580, 1718, 1478, 737, 746, 633, 744, 332, 257, 134, 0, 1934, 1679, 1328, 1043, 1550, 860, 684, 493, 731, 593, 341, 135, 0), # 111 (1992, 1839, 1598, 1732, 1492, 743, 749, 636, 751, 333, 260, 135, 0, 1947, 1690, 1338, 1048, 1568, 864, 693, 500, 736, 596, 344, 135, 0), # 112 (2013, 1848, 1604, 1752, 1510, 748, 756, 640, 757, 337, 261, 136, 0, 1962, 1694, 1349, 1054, 1575, 867, 699, 503, 741, 597, 347, 135, 0), # 113 (2032, 1864, 1617, 1767, 1526, 753, 764, 643, 766, 339, 263, 138, 0, 1977, 1710, 1358, 1064, 1590, 876, 701, 508, 749, 600, 349, 135, 0), # 114 (2044, 1875, 1635, 1774, 1534, 757, 769, 650, 774, 342, 267, 140, 0, 1994, 1727, 1366, 1074, 1596, 881, 706, 509, 760, 612, 351, 135, 0), # 115 (2064, 1884, 1646, 1787, 1550, 758, 775, 654, 781, 343, 270, 140, 0, 2013, 1747, 1381, 1083, 1610, 888, 712, 510, 768, 616, 354, 137, 0), # 116 (2088, 1901, 1657, 1800, 1559, 765, 783, 656, 793, 345, 273, 141, 0, 2035, 1757, 1399, 1090, 1622, 898, 720, 517, 773, 621, 357, 137, 0), # 117 (2100, 1910, 1668, 1822, 1571, 768, 788, 659, 795, 350, 277, 143, 0, 2055, 1774, 1412, 1096, 1635, 903, 723, 524, 778, 626, 360, 138, 0), # 118 (2114, 1916, 1680, 1834, 1587, 773, 795, 663, 800, 352, 278, 143, 0, 2069, 1792, 1423, 1101, 1647, 908, 731, 526, 785, 632, 363, 139, 0), # 119 (2128, 1929, 1699, 1849, 1601, 777, 803, 669, 807, 355, 282, 145, 0, 2088, 1801, 1435, 1105, 1656, 912, 735, 531, 793, 636, 366, 140, 0), # 120 (2146, 1944, 1713, 1857, 1609, 780, 808, 674, 814, 359, 283, 147, 0, 2100, 1818, 1442, 1113, 1671, 918, 746, 538, 799, 642, 368, 141, 0), # 121 (2156, 1958, 1723, 1870, 1620, 785, 813, 678, 818, 361, 284, 148, 0, 2124, 1828, 1454, 1119, 1683, 924, 754, 540, 808, 646, 373, 142, 0), # 122 (2166, 1973, 1731, 1888, 1634, 797, 823, 681, 822, 362, 286, 150, 0, 2142, 1842, 1464, 1126, 1691, 935, 764, 544, 814, 651, 376, 143, 0), # 123 (2178, 1981, 1746, 1902, 1645, 805, 828, 685, 825, 363, 288, 151, 0, 2159, 1856, 1468, 1136, 1710, 938, 771, 550, 817, 654, 378, 143, 0), # 124 (2198, 1986, 1758, 1917, 1655, 807, 832, 689, 828, 365, 291, 153, 0, 2177, 1870, 1479, 1144, 1716, 947, 777, 556, 822, 659, 379, 144, 0), # 125 (2213, 1998, 1772, 1930, 1666, 812, 835, 692, 834, 369, 292, 153, 0, 2199, 1886, 1492, 1149, 1731, 949, 780, 559, 826, 661, 379, 144, 0), # 126 (2228, 2010, 1783, 1950, 1677, 815, 837, 696, 838, 369, 295, 155, 0, 2216, 1892, 1505, 1156, 1743, 957, 789, 563, 834, 667, 382, 144, 0), # 127 (2240, 2024, 1798, 1969, 1692, 822, 841, 699, 843, 373, 298, 156, 0, 2239, 1901, 1512, 1167, 1755, 966, 795, 570, 843, 670, 386, 145, 0), # 128 (2251, 2037, 1816, 1981, 1703, 829, 846, 704, 846, 376, 299, 157, 0, 2265, 1914, 1523, 1174, 1767, 969, 799, 572, 849, 673, 389, 146, 0), # 129 (2264, 2051, 1823, 1987, 1716, 837, 852, 710, 852, 378, 304, 160, 0, 2283, 1926, 1536, 1180, 1780, 973, 801, 580, 857, 683, 391, 148, 0), # 130 (2288, 2061, 1837, 2000, 1732, 841, 855, 716, 855, 380, 305, 163, 0, 2305, 1938, 1543, 1188, 1789, 978, 808, 583, 863, 689, 394, 148, 0), # 131 (2304, 2073, 1854, 2021, 1748, 850, 864, 722, 858, 382, 306, 165, 0, 2325, 1952, 1556, 1197, 1801, 983, 814, 588, 869, 697, 399, 150, 0), # 132 (2317, 2084, 1874, 2039, 1759, 856, 868, 726, 866, 385, 308, 169, 0, 2341, 1958, 1567, 1206, 1814, 988, 820, 591, 875, 702, 400, 152, 0), # 133 (2329, 2097, 1882, 2054, 1779, 859, 873, 727, 871, 387, 309, 170, 0, 2350, 1972, 1578, 1211, 1828, 994, 826, 596, 883, 705, 402, 152, 0), # 134 (2347, 2109, 1899, 2066, 1798, 863, 879, 729, 879, 389, 312, 172, 0, 2367, 1976, 1588, 1224, 1835, 999, 830, 596, 889, 711, 405, 153, 0), # 135 (2359, 2124, 1918, 2081, 1810, 873, 882, 733, 881, 393, 313, 172, 0, 2383, 1992, 1601, 1235, 1846, 1005, 836, 602, 897, 712, 408, 155, 0), # 136 (2375, 2130, 1937, 2095, 1821, 878, 887, 733, 886, 397, 316, 174, 0, 2398, 2002, 1612, 1243, 1853, 1010, 839, 607, 904, 722, 414, 159, 0), # 137 (2393, 2143, 1950, 2108, 1832, 887, 898, 737, 894, 398, 317, 179, 0, 2415, 2016, 1615, 1252, 1867, 1015, 844, 609, 905, 726, 415, 160, 0), # 138 (2412, 2156, 1965, 2120, 1840, 894, 901, 739, 905, 401, 322, 179, 0, 2424, 2024, 1626, 1258, 1877, 1018, 851, 610, 912, 729, 418, 160, 0), # 139 (2431, 2172, 1974, 2132, 1853, 898, 909, 745, 912, 401, 325, 181, 0, 2441, 2038, 1636, 1264, 1887, 1026, 856, 614, 918, 734, 423, 161, 0), # 140 (2448, 2179, 1983, 2145, 1866, 903, 914, 751, 916, 403, 328, 185, 0, 2456, 2048, 1646, 1272, 1898, 1031, 861, 620, 925, 739, 423, 161, 0), # 141 (2461, 2192, 1996, 2156, 1879, 905, 916, 755, 921, 406, 335, 187, 0, 2471, 2069, 1657, 1277, 1904, 1035, 864, 621, 932, 742, 424, 163, 0), # 142 (2480, 2203, 2016, 2167, 1896, 913, 920, 757, 927, 406, 338, 188, 0, 2489, 2087, 1662, 1283, 1910, 1040, 868, 625, 937, 748, 427, 165, 0), # 143 (2498, 2213, 2027, 2173, 1911, 915, 926, 763, 933, 408, 338, 189, 0, 2504, 2096, 1677, 1287, 1922, 1046, 877, 630, 945, 753, 428, 167, 0), # 144 (2513, 2224, 2044, 2186, 1920, 922, 933, 766, 943, 412, 339, 191, 0, 2523, 2104, 1682, 1299, 1941, 1050, 882, 632, 951, 761, 429, 168, 0), # 145 (2532, 2234, 2057, 2199, 1930, 924, 939, 770, 949, 415, 340, 192, 0, 2527, 2120, 1690, 1306, 1955, 1053, 887, 635, 957, 768, 433, 169, 0), # 146 (2554, 2246, 2070, 2213, 1942, 929, 941, 771, 955, 419, 342, 193, 0, 2548, 2130, 1703, 1310, 1967, 1056, 895, 639, 967, 771, 437, 169, 0), # 147 (2566, 2256, 2086, 2223, 1956, 936, 949, 772, 966, 420, 343, 194, 0, 2573, 2140, 1717, 1314, 1979, 1066, 902, 643, 972, 775, 440, 170, 0), # 148 (2581, 2267, 2095, 2240, 1967, 944, 955, 777, 973, 422, 344, 195, 0, 2595, 2151, 1730, 1323, 1990, 1072, 904, 646, 979, 778, 441, 172, 0), # 149 (2593, 2277, 2109, 2257, 1973, 949, 957, 780, 984, 423, 344, 197, 0, 2601, 2162, 1740, 1327, 2001, 1079, 909, 650, 985, 781, 443, 172, 0), # 150 (2612, 2286, 2121, 2273, 1988, 957, 960, 789, 989, 424, 346, 197, 0, 2617, 2176, 1747, 1337, 2013, 1085, 911, 654, 991, 787, 445, 175, 0), # 151 (2627, 2295, 2134, 2283, 1992, 963, 963, 793, 994, 425, 346, 198, 0, 2630, 2182, 1752, 1348, 2021, 1090, 917, 659, 996, 790, 448, 175, 0), # 152 (2638, 2302, 2148, 2296, 2003, 969, 964, 799, 1002, 428, 350, 198, 0, 2641, 2191, 1761, 1356, 2032, 1098, 925, 664, 999, 795, 449, 177, 0), # 153 (2651, 2318, 2162, 2314, 2011, 973, 970, 804, 1010, 429, 355, 200, 0, 2653, 2214, 1770, 1361, 2043, 1105, 928, 668, 1002, 797, 450, 178, 0), # 154 (2662, 2326, 2175, 2326, 2023, 979, 975, 808, 1015, 430, 359, 202, 0, 2667, 2225, 1780, 1371, 2056, 1112, 931, 673, 1008, 798, 452, 178, 0), # 155 (2677, 2338, 2191, 2342, 2034, 981, 980, 813, 1020, 436, 359, 203, 0, 2682, 2238, 1785, 1376, 2070, 1117, 936, 677, 1009, 801, 454, 179, 0), # 156 (2684, 2349, 2203, 2351, 2044, 986, 982, 818, 1026, 440, 360, 203, 0, 2695, 2249, 1792, 1384, 2083, 1129, 939, 678, 1016, 807, 459, 182, 0), # 157 (2705, 2361, 2215, 2360, 2050, 990, 985, 823, 1030, 445, 361, 203, 0, 2707, 2264, 1800, 1389, 2086, 1139, 945, 681, 1019, 811, 459, 184, 0), # 158 (2717, 2374, 2224, 2371, 2054, 998, 987, 826, 1038, 446, 364, 204, 0, 2722, 2280, 1810, 1399, 2098, 1147, 952, 686, 1025, 816, 462, 184, 0), # 159 (2726, 2383, 2241, 2379, 2067, 1003, 988, 830, 1043, 446, 364, 204, 0, 2733, 2294, 1818, 1406, 2110, 1153, 957, 693, 1030, 820, 463, 185, 0), # 160 (2733, 2394, 2251, 2392, 2087, 1007, 990, 835, 1048, 449, 367, 204, 0, 2750, 2306, 1828, 1411, 2120, 1159, 967, 697, 1033, 823, 467, 185, 0), # 161 (2744, 2403, 2259, 2400, 2097, 1013, 994, 837, 1056, 449, 369, 205, 0, 2768, 2320, 1842, 1418, 2125, 1165, 971, 701, 1037, 828, 468, 185, 0), # 162 (2758, 2407, 2268, 2411, 2106, 1016, 998, 843, 1056, 455, 372, 205, 0, 2782, 2335, 1847, 1427, 2140, 1172, 977, 706, 1044, 834, 471, 186, 0), # 163 (2767, 2416, 2273, 2422, 2115, 1022, 1002, 846, 1060, 458, 372, 205, 0, 2795, 2349, 1854, 1430, 2154, 1177, 981, 707, 1049, 836, 471, 187, 0), # 164 (2783, 2427, 2288, 2434, 2129, 1026, 1003, 849, 1064, 460, 374, 206, 0, 2811, 2359, 1864, 1434, 2166, 1182, 986, 707, 1057, 837, 474, 187, 0), # 165 (2797, 2437, 2299, 2441, 2140, 1029, 1007, 853, 1069, 461, 380, 207, 0, 2823, 2365, 1870, 1441, 2180, 1186, 990, 713, 1059, 841, 476, 187, 0), # 166 (2815, 2443, 2309, 2457, 2152, 1034, 1011, 857, 1079, 463, 382, 209, 0, 2837, 2370, 1872, 1451, 2193, 1189, 994, 716, 1063, 843, 476, 189, 0), # 167 (2819, 2447, 2316, 2467, 2157, 1041, 1017, 860, 1085, 464, 384, 210, 0, 2848, 2377, 1878, 1454, 2202, 1198, 999, 719, 1070, 843, 479, 189, 0), # 168 (2830, 2456, 2328, 2478, 2162, 1044, 1020, 863, 1092, 464, 384, 211, 0, 2855, 2385, 1885, 1460, 2213, 1203, 1001, 726, 1075, 845, 481, 190, 0), # 169 (2840, 2463, 2336, 2489, 2172, 1047, 1024, 866, 1098, 465, 387, 212, 0, 2867, 2387, 1889, 1463, 2219, 1207, 1006, 729, 1078, 850, 484, 190, 0), # 170 (2857, 2473, 2344, 2499, 2182, 1053, 1029, 868, 1102, 467, 387, 212, 0, 2878, 2397, 1897, 1465, 2228, 1210, 1009, 732, 1080, 855, 485, 190, 0), # 171 (2875, 2479, 2349, 2507, 2198, 1056, 1032, 870, 1108, 469, 389, 212, 0, 2889, 2404, 1902, 1470, 2234, 1213, 1016, 738, 1088, 858, 487, 191, 0), # 172 (2881, 2487, 2360, 2511, 2207, 1059, 1037, 871, 1110, 473, 390, 214, 0, 2897, 2412, 1908, 1474, 2245, 1216, 1023, 740, 1092, 859, 489, 192, 0), # 173 (2888, 2492, 2366, 2518, 2213, 1065, 1039, 873, 1112, 475, 391, 214, 0, 2909, 2419, 1909, 1477, 2253, 1219, 1025, 742, 1098, 861, 489, 192, 0), # 174 (2898, 2500, 2374, 2528, 2219, 1067, 1041, 875, 1115, 476, 393, 214, 0, 2915, 2431, 1915, 1480, 2260, 1220, 1027, 745, 1100, 862, 490, 192, 0), # 175 (2906, 2501, 2382, 2533, 2223, 1070, 1044, 880, 1119, 478, 394, 214, 0, 2925, 2441, 1921, 1485, 2264, 1224, 1028, 747, 1100, 865, 492, 192, 0), # 176 (2915, 2506, 2388, 2540, 2230, 1074, 1045, 885, 1125, 482, 394, 216, 0, 2937, 2445, 1928, 1490, 2275, 1225, 1031, 747, 1101, 865, 493, 192, 0), # 177 (2926, 2508, 2395, 2549, 2239, 1077, 1046, 886, 1127, 482, 394, 218, 0, 2944, 2449, 1934, 1492, 2281, 1228, 1031, 751, 1102, 869, 494, 192, 0), # 178 (2926, 2508, 2395, 2549, 2239, 1077, 1046, 886, 1127, 482, 394, 218, 0, 2944, 2449, 1934, 1492, 2281, 1228, 1031, 751, 1102, 869, 494, 192, 0), # 179 ) passenger_arriving_rate = ( (9.037558041069182, 9.116726123493724, 7.81692484441876, 8.389801494715634, 6.665622729131535, 3.295587678639206, 3.7314320538365235, 3.4898821297345672, 3.654059437300804, 1.781106756985067, 1.261579549165681, 0.7346872617459261, 0.0, 9.150984382641052, 8.081559879205185, 6.307897745828405, 5.3433202709552, 7.308118874601608, 4.885834981628395, 3.7314320538365235, 2.3539911990280045, 3.3328113645657673, 2.7966004982385453, 1.5633849688837522, 0.828793283953975, 0.0), # 0 (9.637788873635953, 9.718600145338852, 8.333019886995228, 8.943944741923431, 7.106988404969084, 3.5132827632446837, 3.9775220471373247, 3.7196352921792815, 3.8953471957997454, 1.8985413115247178, 1.3449288407868398, 0.7831824991221532, 0.0, 9.755624965391739, 8.615007490343684, 6.724644203934198, 5.695623934574153, 7.790694391599491, 5.207489409050994, 3.9775220471373247, 2.509487688031917, 3.553494202484542, 2.9813149139744777, 1.6666039773990458, 0.883509104121714, 0.0), # 1 (10.236101416163518, 10.318085531970116, 8.847063428321121, 9.495883401297473, 7.546755568499692, 3.7301093702380674, 4.222636657164634, 3.948468935928315, 4.135672084126529, 2.015511198759246, 1.4279469446328943, 0.8314848978079584, 0.0, 10.357856690777442, 9.14633387588754, 7.13973472316447, 6.046533596277737, 8.271344168253059, 5.527856510299641, 4.222636657164634, 2.6643638358843336, 3.773377784249846, 3.1652944670991583, 1.7694126856642243, 0.938007775633647, 0.0), # 2 (10.830164027663812, 10.912803828195138, 9.357016303979782, 10.0434281501683, 7.983194011202283, 3.9452076537143688, 4.46580327748316, 4.175475868120881, 4.374081096552656, 2.1315522142917818, 1.5103045235482149, 0.8794028527395692, 0.0, 10.955291051257605, 9.67343138013526, 7.551522617741075, 6.3946566428753435, 8.748162193105312, 5.845666215369232, 4.46580327748316, 2.818005466938835, 3.9915970056011414, 3.3478093833894342, 1.8714032607959565, 0.9920730752904672, 0.0), # 3 (11.417645067148767, 11.500376578821527, 9.860839349554556, 10.584389665866468, 8.41457352455579, 4.1577177677686015, 4.706049301657613, 4.399748895896186, 4.609621227349624, 2.246200153725456, 1.5916722403771728, 0.9267447588532147, 0.0, 11.54553953929167, 10.19419234738536, 7.958361201885864, 6.738600461176366, 9.219242454699248, 6.159648454254661, 4.706049301657613, 2.969798405549001, 4.207286762277895, 3.528129888622157, 1.9721678699109113, 1.0454887798928663, 0.0), # 4 (11.996212893630318, 12.07842532865692, 10.356493400628777, 11.11657862572253, 8.839163900039136, 4.366779866495776, 4.942402123252702, 4.620380826393444, 4.841339470788935, 2.3589908126633987, 1.67172075796414, 0.9733190110851223, 0.0, 12.126213647339089, 10.706509121936344, 8.358603789820698, 7.076972437990195, 9.68267894157787, 6.468533156950822, 4.942402123252702, 3.119128476068411, 4.419581950019568, 3.705526208574178, 2.071298680125756, 1.0980386662415385, 0.0), # 5 (12.5635358661204, 12.644571622508925, 10.8419392927858, 11.63780570706703, 9.255234929131252, 4.571534103990907, 5.173889135833137, 4.836464466751867, 5.068282821142089, 2.469459986708742, 1.750120739153485, 1.0189340043715214, 0.0, 12.694924867859292, 11.208274048086732, 8.750603695767424, 7.408379960126224, 10.136565642284179, 6.771050253452613, 5.173889135833137, 3.265381502850648, 4.627617464565626, 3.8792685690223445, 2.16838785855716, 1.1495065111371752, 0.0), # 6 (13.117282343630944, 13.196437005185167, 11.315137861608953, 12.145881587230525, 9.661056403311065, 4.771120634349007, 5.399537732963626, 5.047092624110664, 5.289498272680586, 2.5771434714646144, 1.8265428467895808, 1.0633981336486396, 0.0, 13.249284693311735, 11.697379470135033, 9.132714233947903, 7.7314304143938415, 10.578996545361171, 7.06592967375493, 5.399537732963626, 3.4079433102492906, 4.830528201655532, 4.048627195743509, 2.2630275723217905, 1.1996760913804698, 0.0), # 7 (13.655120685173882, 13.731643021493262, 11.774049942681595, 12.638616943543553, 10.054898114057503, 4.964679611665085, 5.618375308208878, 5.251358105609044, 5.504032819675924, 2.681577062534149, 1.9006577437167966, 1.1065197938527056, 0.0, 13.786904616155851, 12.171717732379758, 9.503288718583983, 8.044731187602444, 11.008065639351848, 7.351901347852662, 5.618375308208878, 3.5461997226179176, 5.027449057028751, 4.212872314514518, 2.3548099885363194, 1.248331183772115, 0.0), # 8 (14.174719249761154, 14.247811216240837, 12.216636371587056, 13.11382245333668, 10.43502985284949, 5.151351190034158, 5.829429255133608, 5.4483537183862225, 5.710933456399605, 2.782296555520474, 1.9721360927795035, 1.1481073799199473, 0.0, 14.305396128851092, 12.629181179119417, 9.860680463897518, 8.34688966656142, 11.42186691279921, 7.627695205740712, 5.829429255133608, 3.679536564310113, 5.217514926424745, 4.371274151112227, 2.4433272743174115, 1.2952555651128035, 0.0), # 9 (14.673746396404677, 14.7425631342355, 12.640857983908687, 13.569308793940438, 10.799721411165962, 5.330275523551238, 6.031726967302519, 5.637172269581408, 5.909247177123128, 2.878837746026722, 2.0406485568220725, 1.187969286786593, 0.0, 14.802370723856898, 13.06766215465252, 10.20324278411036, 8.636513238080164, 11.818494354246257, 7.892041177413972, 6.031726967302519, 3.8073396596794558, 5.399860705582981, 4.52310293131348, 2.5281715967817378, 1.3402330122032275, 0.0), # 10 (15.149870484116411, 15.213520320284891, 13.044675615229824, 14.002886642685386, 11.14724258048584, 5.500592766311337, 6.224295838280325, 5.816906566333811, 6.098020976117995, 2.970736429656024, 2.105865798688875, 1.2259139093888718, 0.0, 15.2754398936327, 13.485053003277587, 10.529328993444373, 8.912209288968072, 12.19604195223599, 8.143669192867335, 6.224295838280325, 3.9289948330795266, 5.57362129024292, 4.66762888089513, 2.6089351230459648, 1.3830473018440812, 0.0), # 11 (15.600759871908263, 15.6583043191966, 13.42605010113381, 14.412366676902078, 11.475863152288053, 5.6614430724094635, 6.406163261631731, 5.986649415782641, 6.276301847655707, 3.0575284020115086, 2.1674584812242808, 1.2617496426630104, 0.0, 15.722215130637963, 13.879246069293112, 10.837292406121403, 9.172585206034523, 12.552603695311413, 8.381309182095698, 6.406163261631731, 4.043887908863902, 5.737931576144026, 4.804122225634027, 2.6852100202267626, 1.4234822108360548, 0.0), # 12 (16.02408291879218, 16.074536675778273, 13.782942277203993, 14.795559573921057, 11.783852918051522, 5.8119665959406355, 6.576356630921451, 6.145493625067111, 6.443136786007759, 3.138749458696308, 2.225097267272661, 1.2952848815452382, 0.0, 16.140307927332124, 14.248133696997618, 11.125486336363304, 9.416248376088921, 12.886273572015519, 8.603691075093955, 6.576356630921451, 4.151404711386168, 5.891926459025761, 4.93185319130702, 2.756588455440799, 1.4613215159798432, 0.0), # 13 (16.41750798378009, 16.45983893483752, 14.113312979023721, 15.150276011072872, 12.069481669255186, 5.9513034909998614, 6.733903339714195, 6.292532001326435, 6.597572785445653, 3.2139353953135514, 2.2784528196783858, 1.3263280209717843, 0.0, 16.527329776174614, 14.589608230689624, 11.392264098391927, 9.641806185940652, 13.195145570891306, 8.80954480185701, 6.733903339714195, 4.250931064999901, 6.034740834627593, 5.050092003690958, 2.8226625958047444, 1.4963489940761385, 0.0), # 14 (16.77870342588394, 16.811832641181958, 14.415123042176313, 15.474326665688082, 12.33101919737797, 6.078593911682158, 6.877830781574663, 6.426857351699818, 6.738656840240891, 3.2826220074663714, 2.3271958012858263, 1.3546874558788757, 0.0, 16.880892169624886, 14.90156201466763, 11.63597900642913, 9.847866022399112, 13.477313680481782, 8.997600292379746, 6.877830781574663, 4.341852794058684, 6.165509598688985, 5.158108888562695, 2.883024608435263, 1.5283484219256327, 0.0), # 15 (17.10533760411564, 17.128139339619217, 14.686333302245139, 15.765522215097217, 12.566735293898798, 6.192978012082533, 7.007166350067579, 6.547562483326471, 6.865435944664972, 3.344345090757899, 2.370996874939354, 1.380171581202741, 0.0, 17.198606600142384, 15.181887393230149, 11.85498437469677, 10.033035272273695, 13.730871889329944, 9.16658747665706, 7.007166350067579, 4.423555722916095, 6.283367646949399, 5.255174071699074, 2.9372666604490276, 1.55710357632902, 0.0), # 16 (17.395078877487137, 17.406380574956913, 14.92490459481353, 16.021673336630855, 12.774899750296605, 6.2935959462960005, 7.12093743875764, 6.653740203345614, 6.976957092989391, 3.398640440791261, 2.40952670348334, 1.4025887918796085, 0.0, 17.47808456018655, 15.428476710675692, 12.047633517416699, 10.195921322373781, 13.953914185978782, 9.31523628468386, 7.12093743875764, 4.4954256759257145, 6.387449875148302, 5.340557778876952, 2.984980918962706, 1.5823982340869922, 0.0), # 17 (17.645595605010367, 17.644177892002652, 15.12879775546482, 16.24059070761953, 12.953782358050306, 6.379587868417579, 7.2181714412095666, 6.744483318896446, 7.072267279485658, 3.4450438531695924, 2.4424559497621527, 1.4217474828457075, 0.0, 17.716937542216822, 15.63922231130278, 12.212279748810763, 10.335131559508774, 14.144534558971316, 9.442276646455024, 7.2181714412095666, 4.556848477441128, 6.476891179025153, 5.413530235873177, 3.0257595510929645, 1.6040161720002415, 0.0), # 18 (17.85455614569726, 17.83915283556408, 15.29597361978237, 16.420085005393776, 13.10165290863884, 6.450093932542269, 7.297895750988055, 6.818884637118185, 7.150413498425267, 3.4830911234960236, 2.4694552766201636, 1.4374560490372645, 0.0, 17.912777038692653, 15.812016539409907, 12.347276383100818, 10.449273370488068, 14.300826996850533, 9.546438491965459, 7.297895750988055, 4.607209951815906, 6.55082645431942, 5.473361668464593, 3.059194723956474, 1.621741166869462, 0.0), # 19 (18.01962885855975, 17.988926950448786, 15.424393023349506, 16.55796690728418, 13.216781193541133, 6.504254292765094, 7.359137761657826, 6.876036965150038, 7.210442744079718, 3.5123180473736824, 2.490195346901745, 1.4495228853905089, 0.0, 18.063214542073485, 15.944751739295596, 12.450976734508725, 10.536954142121044, 14.420885488159437, 9.626451751210054, 7.359137761657826, 4.645895923403639, 6.608390596770566, 5.51932230242806, 3.084878604669901, 1.6353569954953444, 0.0), # 20 (18.13848210260976, 18.09112178146442, 15.51201680174958, 16.652047090621256, 13.297437004236105, 6.541209103181062, 7.400924866783583, 6.915033110131218, 7.251402010720512, 3.532260420405701, 2.5043468234512685, 1.4577563868416692, 0.0, 18.165861544818743, 16.03532025525836, 12.52173411725634, 10.5967812612171, 14.502804021441024, 9.681046354183705, 7.400924866783583, 4.672292216557902, 6.648718502118053, 5.550682363540419, 3.1024033603499164, 1.644647434678584, 0.0), # 21 (18.20878423685924, 18.143358873418588, 15.55680579056593, 16.70013623273558, 13.341890132202689, 6.560098517885186, 7.422284459930039, 6.934965879200936, 7.27233829261915, 3.54245403819521, 2.5115803691131027, 1.4619649483269737, 0.0, 18.218329539387888, 16.08161443159671, 12.557901845565512, 10.627362114585626, 14.5446765852383, 9.70895223088131, 7.422284459930039, 4.6857846556322755, 6.6709450661013445, 5.5667120775785275, 3.111361158113186, 1.649396261219872, 0.0), # 22 (18.23470805401675, 18.14954393004115, 15.562384773662554, 16.706156597222225, 13.353278467239116, 6.5625, 7.424823602033405, 6.937120370370371, 7.274955740740741, 3.543656522633746, 2.512487411148522, 1.4624846364883404, 0.0, 18.225, 16.08733100137174, 12.56243705574261, 10.630969567901236, 14.549911481481482, 9.71196851851852, 7.424823602033405, 4.6875, 6.676639233619558, 5.568718865740743, 3.1124769547325113, 1.6499585390946503, 0.0), # 23 (18.253822343461476, 18.145936111111112, 15.561472222222221, 16.705415625000004, 13.359729136337823, 6.5625, 7.42342843137255, 6.934125, 7.274604999999999, 3.5429177777777783, 2.5123873737373743, 1.462362962962963, 0.0, 18.225, 16.085992592592593, 12.561936868686871, 10.628753333333332, 14.549209999999999, 9.707775, 7.42342843137255, 4.6875, 6.679864568168911, 5.568471875000002, 3.1122944444444447, 1.649630555555556, 0.0), # 24 (18.272533014380844, 18.138824588477366, 15.559670781893006, 16.70394965277778, 13.366037934713404, 6.5625, 7.420679012345679, 6.928240740740742, 7.273912037037037, 3.541463477366256, 2.512189019827909, 1.4621227709190674, 0.0, 18.225, 16.08335048010974, 12.560945099139545, 10.624390432098766, 14.547824074074073, 9.69953703703704, 7.420679012345679, 4.6875, 6.683018967356702, 5.567983217592594, 3.1119341563786014, 1.6489840534979427, 0.0), # 25 (18.290838634286462, 18.128318004115226, 15.557005144032923, 16.70177534722222, 13.372204642105325, 6.5625, 7.416618046477849, 6.919578703703704, 7.27288574074074, 3.539317818930042, 2.511894145155257, 1.4617673525377233, 0.0, 18.225, 16.079440877914955, 12.559470725776283, 10.617953456790124, 14.54577148148148, 9.687410185185186, 7.416618046477849, 4.6875, 6.686102321052663, 5.567258449074075, 3.111401028806585, 1.648028909465021, 0.0), # 26 (18.308737770689945, 18.114524999999997, 15.553500000000001, 16.698909375, 13.378229038253057, 6.5625, 7.411288235294118, 6.908250000000002, 7.271535, 3.5365050000000005, 2.5115045454545455, 1.4613000000000003, 0.0, 18.225, 16.0743, 12.557522727272728, 10.609514999999998, 14.54307, 9.671550000000002, 7.411288235294118, 4.6875, 6.689114519126528, 5.566303125, 3.1107000000000005, 1.646775, 0.0), # 27 (18.3262289911029, 18.097554218106993, 15.549180041152265, 16.695368402777778, 13.384110902896083, 6.5625, 7.404732280319536, 6.894365740740742, 7.269868703703704, 3.533049218106997, 2.5110220164609056, 1.4607240054869688, 0.0, 18.225, 16.067964060356655, 12.555110082304529, 10.599147654320989, 14.539737407407408, 9.652112037037039, 7.404732280319536, 4.6875, 6.6920554514480415, 5.565122800925927, 3.1098360082304533, 1.6452322016460905, 0.0), # 28 (18.34331086303695, 18.077514300411522, 15.54406995884774, 16.69116909722222, 13.389850015773863, 6.5625, 7.396992883079159, 6.8780370370370365, 7.267895740740741, 3.5289746707818943, 2.510448353909465, 1.4600426611796984, 0.0, 18.225, 16.06046927297668, 12.552241769547326, 10.58692401234568, 14.535791481481482, 9.629251851851851, 7.396992883079159, 4.6875, 6.694925007886932, 5.563723032407409, 3.1088139917695483, 1.6434103909465023, 0.0), # 29 (18.359981954003697, 18.054513888888888, 15.538194444444445, 16.686328125000003, 13.395446156625884, 6.5625, 7.388112745098039, 6.859375, 7.265625, 3.5243055555555567, 2.509785353535354, 1.4592592592592593, 0.0, 18.225, 16.05185185185185, 12.548926767676768, 10.572916666666668, 14.53125, 9.603125, 7.388112745098039, 4.6875, 6.697723078312942, 5.562109375000001, 3.107638888888889, 1.6413194444444446, 0.0), # 30 (18.376240831514746, 18.028661625514406, 15.531578189300415, 16.680862152777777, 13.400899105191609, 6.5625, 7.378134567901236, 6.838490740740741, 7.26306537037037, 3.5190660699588485, 2.5090348110737, 1.458377091906722, 0.0, 18.225, 16.04214801097394, 12.5451740553685, 10.557198209876542, 14.52613074074074, 9.573887037037037, 7.378134567901236, 4.6875, 6.7004495525958045, 5.56028738425926, 3.106315637860083, 1.638969238683128, 0.0), # 31 (18.392086063081717, 18.000066152263376, 15.524245884773661, 16.674787847222223, 13.406208641210513, 6.5625, 7.3671010530137995, 6.815495370370372, 7.260225740740741, 3.5132804115226346, 2.5081985222596335, 1.4573994513031552, 0.0, 18.225, 16.031393964334704, 12.540992611298167, 10.539841234567902, 14.520451481481482, 9.541693518518521, 7.3671010530137995, 4.6875, 6.703104320605257, 5.558262615740742, 3.1048491769547324, 1.6363696502057616, 0.0), # 32 (18.407516216216216, 17.96883611111111, 15.516222222222224, 16.668121874999997, 13.411374544422076, 6.5625, 7.355054901960784, 6.790500000000001, 7.257115, 3.506972777777779, 2.507278282828283, 1.4563296296296298, 0.0, 18.225, 16.019625925925926, 12.536391414141413, 10.520918333333334, 14.51423, 9.5067, 7.355054901960784, 4.6875, 6.705687272211038, 5.5560406250000005, 3.103244444444445, 1.6335305555555555, 0.0), # 33 (18.422529858429858, 17.93508014403292, 15.507531893004115, 16.660880902777777, 13.41639659456576, 6.5625, 7.342038816267248, 6.7636157407407405, 7.253742037037037, 3.500167366255145, 2.5062758885147773, 1.4551709190672155, 0.0, 18.225, 16.006880109739367, 12.531379442573886, 10.500502098765432, 14.507484074074075, 9.469062037037038, 7.342038816267248, 4.6875, 6.70819829728288, 5.553626967592593, 3.1015063786008232, 1.6304618312757202, 0.0), # 34 (18.437125557234253, 17.898906893004114, 15.49819958847737, 16.65308159722222, 13.421274571381044, 6.5625, 7.328095497458243, 6.734953703703703, 7.250115740740741, 3.4928883744855974, 2.5051931350542462, 1.4539266117969825, 0.0, 18.225, 15.993192729766804, 12.52596567527123, 10.47866512345679, 14.500231481481482, 9.428935185185185, 7.328095497458243, 4.6875, 6.710637285690522, 5.551027199074074, 3.099639917695474, 1.627173353909465, 0.0), # 35 (18.45130188014101, 17.860424999999996, 15.488249999999999, 16.644740624999997, 13.426008254607403, 6.5625, 7.313267647058823, 6.704625000000001, 7.246244999999999, 3.485160000000001, 2.504031818181818, 1.4526000000000006, 0.0, 18.225, 15.978600000000004, 12.520159090909091, 10.45548, 14.492489999999998, 9.386475, 7.313267647058823, 4.6875, 6.7130041273037016, 5.548246875, 3.0976500000000002, 1.623675, 0.0), # 36 (18.46505739466174, 17.819743106995883, 15.477707818930043, 16.63587465277778, 13.430597423984304, 6.5625, 7.2975979665940445, 6.672740740740741, 7.242138703703703, 3.477006440329219, 2.502793733632623, 1.451194375857339, 0.0, 18.225, 15.963138134430727, 12.513968668163116, 10.431019320987655, 14.484277407407406, 9.341837037037038, 7.2975979665940445, 4.6875, 6.715298711992152, 5.545291550925927, 3.0955415637860084, 1.619976646090535, 0.0), # 37 (18.47839066830806, 17.776969855967078, 15.466597736625513, 16.626500347222226, 13.435041859251228, 6.5625, 7.281129157588961, 6.639412037037038, 7.237805740740741, 3.4684518930041164, 2.5014806771417883, 1.4497130315500688, 0.0, 18.225, 15.946843347050754, 12.507403385708942, 10.405355679012347, 14.475611481481481, 9.295176851851854, 7.281129157588961, 4.6875, 6.717520929625614, 5.542166782407409, 3.0933195473251027, 1.61608816872428, 0.0), # 38 (18.491300268591576, 17.732213888888886, 15.454944444444445, 16.616634375, 13.439341340147644, 6.5625, 7.2639039215686285, 6.60475, 7.233255000000001, 3.4595205555555566, 2.500094444444445, 1.4481592592592594, 0.0, 18.225, 15.92975185185185, 12.500472222222223, 10.378561666666666, 14.466510000000001, 9.24665, 7.2639039215686285, 4.6875, 6.719670670073822, 5.538878125000001, 3.0909888888888895, 1.6120194444444444, 0.0), # 39 (18.503784763023894, 17.685583847736623, 15.442772633744857, 16.60629340277778, 13.443495646413021, 6.5625, 7.245964960058098, 6.568865740740742, 7.228495370370371, 3.4502366255144046, 2.49863683127572, 1.4465363511659812, 0.0, 18.225, 15.911899862825791, 12.4931841563786, 10.350709876543212, 14.456990740740743, 9.196412037037039, 7.245964960058098, 4.6875, 6.721747823206511, 5.535431134259261, 3.0885545267489714, 1.6077803497942387, 0.0), # 40 (18.51584271911663, 17.637188374485596, 15.430106995884776, 16.595494097222222, 13.447504557786843, 6.5625, 7.2273549745824255, 6.531870370370371, 7.22353574074074, 3.4406243004115233, 2.4971096333707448, 1.4448475994513033, 0.0, 18.225, 15.893323593964332, 12.485548166853723, 10.321872901234567, 14.44707148148148, 9.14461851851852, 7.2273549745824255, 4.6875, 6.723752278893421, 5.531831365740742, 3.0860213991769556, 1.6033807613168727, 0.0), # 41 (18.527472704381402, 17.587136111111114, 15.416972222222224, 16.584253125000004, 13.45136785400857, 6.5625, 7.208116666666666, 6.493875, 7.218385000000001, 3.4307077777777786, 2.4955146464646467, 1.4430962962962963, 0.0, 18.225, 15.874059259259258, 12.477573232323234, 10.292123333333333, 14.436770000000003, 9.091425000000001, 7.208116666666666, 4.6875, 6.725683927004285, 5.5280843750000015, 3.083394444444445, 1.598830555555556, 0.0), # 42 (18.538673286329807, 17.53553569958848, 15.403393004115227, 16.57258715277778, 13.455085314817683, 6.5625, 7.188292737835875, 6.454990740740741, 7.213052037037036, 3.420511255144034, 2.4938536662925554, 1.4412857338820306, 0.0, 18.225, 15.854143072702334, 12.469268331462775, 10.2615337654321, 14.426104074074072, 9.036987037037038, 7.188292737835875, 4.6875, 6.727542657408842, 5.524195717592594, 3.080678600823046, 1.5941396090534983, 0.0), # 43 (18.54944303247347, 17.482495781893004, 15.389394032921814, 16.560512847222224, 13.458656719953654, 6.5625, 7.1679258896151055, 6.415328703703706, 7.2075457407407395, 3.4100589300411532, 2.4921284885895996, 1.439419204389575, 0.0, 18.225, 15.833611248285322, 12.460642442947998, 10.230176790123457, 14.415091481481479, 8.981460185185188, 7.1679258896151055, 4.6875, 6.729328359976827, 5.520170949074076, 3.077878806584363, 1.5893177983539097, 0.0), # 44 (18.55978051032399, 17.428124999999998, 15.375, 16.548046875, 13.462081849155954, 6.5625, 7.147058823529412, 6.375000000000001, 7.201874999999999, 3.3993750000000014, 2.4903409090909094, 1.4375000000000002, 0.0, 18.225, 15.8125, 12.451704545454545, 10.198125000000001, 14.403749999999999, 8.925, 7.147058823529412, 4.6875, 6.731040924577977, 5.516015625000001, 3.075, 1.584375, 0.0), # 45 (18.569684287392985, 17.372531995884774, 15.360235596707819, 16.535205902777776, 13.465360482164058, 6.5625, 7.125734241103849, 6.334115740740741, 7.196048703703703, 3.388483662551441, 2.4884927235316128, 1.4355314128943761, 0.0, 18.225, 15.790845541838134, 12.442463617658062, 10.16545098765432, 14.392097407407405, 8.86776203703704, 7.125734241103849, 4.6875, 6.732680241082029, 5.511735300925927, 3.072047119341564, 1.5793210905349795, 0.0), # 46 (18.579152931192063, 17.31582541152263, 15.345125514403293, 16.522006597222223, 13.46849239871744, 6.5625, 7.103994843863473, 6.292787037037037, 7.190075740740742, 3.3774091152263384, 2.486585727646839, 1.4335167352537728, 0.0, 18.225, 15.768684087791497, 12.432928638234193, 10.132227345679013, 14.380151481481484, 8.809901851851851, 7.103994843863473, 4.6875, 6.73424619935872, 5.507335532407408, 3.069025102880659, 1.5741659465020577, 0.0), # 47 (18.588185009232834, 17.258113888888886, 15.329694444444444, 16.508465625, 13.471477378555573, 6.5625, 7.081883333333334, 6.251125000000001, 7.183965000000001, 3.3661755555555564, 2.4846217171717173, 1.4314592592592594, 0.0, 18.225, 15.746051851851853, 12.423108585858586, 10.098526666666666, 14.367930000000001, 8.751575, 7.081883333333334, 4.6875, 6.735738689277786, 5.502821875000001, 3.065938888888889, 1.5689194444444445, 0.0), # 48 (18.596779089026917, 17.199506069958847, 15.313967078189304, 16.49459965277778, 13.47431520141793, 6.5625, 7.059442411038489, 6.209240740740741, 7.17772537037037, 3.35480718106996, 2.4826024878413775, 1.4293622770919072, 0.0, 18.225, 15.722985048010976, 12.413012439206886, 10.064421543209878, 14.35545074074074, 8.692937037037037, 7.059442411038489, 4.6875, 6.737157600708965, 5.498199884259261, 3.0627934156378607, 1.5635914609053498, 0.0), # 49 (18.604933738085908, 17.140110596707824, 15.297968106995889, 16.480425347222223, 13.477005647043978, 6.5625, 7.0367147785039945, 6.16724537037037, 7.1713657407407405, 3.3433281893004123, 2.480529835390947, 1.427229080932785, 0.0, 18.225, 15.699519890260632, 12.402649176954732, 10.029984567901234, 14.342731481481481, 8.634143518518519, 7.0367147785039945, 4.6875, 6.738502823521989, 5.4934751157407415, 3.059593621399178, 1.5581918724279842, 0.0), # 50 (18.61264752392144, 17.080036111111113, 15.281722222222223, 16.465959375, 13.479548495173198, 6.5625, 7.013743137254902, 6.12525, 7.164895000000001, 3.3317627777777785, 2.478405555555556, 1.4250629629629634, 0.0, 18.225, 15.675692592592595, 12.392027777777779, 9.995288333333333, 14.329790000000003, 8.57535, 7.013743137254902, 4.6875, 6.739774247586599, 5.488653125000001, 3.0563444444444445, 1.552730555555556, 0.0), # 51 (18.619919014045102, 17.019391255144033, 15.26525411522634, 16.45121840277778, 13.481943525545056, 6.5625, 6.9905701888162675, 6.08336574074074, 7.158322037037037, 3.320135144032923, 2.4762314440703332, 1.4228672153635122, 0.0, 18.225, 15.651539368998632, 12.381157220351666, 9.960405432098767, 14.316644074074073, 8.516712037037037, 6.9905701888162675, 4.6875, 6.740971762772528, 5.483739467592594, 3.0530508230452678, 1.547217386831276, 0.0), # 52 (18.626746775968517, 16.958284670781893, 15.248588477366258, 16.43621909722222, 13.484190517899034, 6.5625, 6.967238634713145, 6.041703703703704, 7.1516557407407415, 3.3084694855967087, 2.4740092966704084, 1.4206451303155008, 0.0, 18.225, 15.627096433470507, 12.37004648335204, 9.925408456790123, 14.303311481481483, 8.458385185185186, 6.967238634713145, 4.6875, 6.742095258949517, 5.478739699074075, 3.049717695473252, 1.5416622427983542, 0.0), # 53 (18.63312937720329, 16.896825000000003, 15.23175, 16.420978125, 13.486289251974604, 6.5625, 6.943791176470588, 6.000374999999999, 7.144905, 3.296790000000001, 2.4717409090909093, 1.4184000000000003, 0.0, 18.225, 15.602400000000001, 12.358704545454545, 9.89037, 14.28981, 8.400525, 6.943791176470588, 4.6875, 6.743144625987302, 5.473659375000001, 3.04635, 1.5360750000000005, 0.0), # 54 (18.63906538526104, 16.835120884773662, 15.2147633744856, 16.405512152777778, 13.488239507511228, 6.5625, 6.9202705156136535, 5.9594907407407405, 7.1380787037037035, 3.2851208847736637, 2.4694280770669663, 1.4161351165980798, 0.0, 18.225, 15.577486282578874, 12.34714038533483, 9.855362654320988, 14.276157407407407, 8.343287037037037, 6.9202705156136535, 4.6875, 6.744119753755614, 5.468504050925927, 3.04295267489712, 1.530465534979424, 0.0), # 55 (18.64455336765337, 16.77328096707819, 15.197653292181073, 16.389837847222225, 13.49004106424839, 6.5625, 6.896719353667393, 5.9191620370370375, 7.131185740740741, 3.2734863374485608, 2.467072596333708, 1.4138537722908093, 0.0, 18.225, 15.5523914951989, 12.335362981668538, 9.82045901234568, 14.262371481481482, 8.286826851851853, 6.896719353667393, 4.6875, 6.745020532124195, 5.463279282407409, 3.0395306584362145, 1.5248437242798356, 0.0), # 56 (18.649591891891887, 16.711413888888888, 15.180444444444445, 16.373971875, 13.49169370192556, 6.5625, 6.873180392156863, 5.879500000000001, 7.124235, 3.2619105555555565, 2.4646762626262633, 1.4115592592592594, 0.0, 18.225, 15.527151851851851, 12.323381313131314, 9.785731666666667, 14.24847, 8.231300000000001, 6.873180392156863, 4.6875, 6.74584685096278, 5.457990625000001, 3.0360888888888895, 1.5192194444444447, 0.0), # 57 (18.654179525488225, 16.64962829218107, 15.163161522633745, 16.357930902777774, 13.49319720028221, 6.5625, 6.849696332607118, 5.840615740740741, 7.11723537037037, 3.2504177366255154, 2.4622408716797612, 1.4092548696844995, 0.0, 18.225, 15.501803566529492, 12.311204358398806, 9.751253209876543, 14.23447074074074, 8.176862037037038, 6.849696332607118, 4.6875, 6.746598600141105, 5.4526436342592595, 3.032632304526749, 1.5136025720164612, 0.0), # 58 (18.658314835953966, 16.58803281893004, 15.145829218106996, 16.34173159722222, 13.494551339057814, 6.5625, 6.82630987654321, 5.802620370370371, 7.110195740740741, 3.2390320781893016, 2.4597682192293306, 1.4069438957475995, 0.0, 18.225, 15.476382853223592, 12.298841096146651, 9.717096234567903, 14.220391481481482, 8.12366851851852, 6.82630987654321, 4.6875, 6.747275669528907, 5.447243865740742, 3.0291658436213997, 1.5080029835390947, 0.0), # 59 (18.661996390800738, 16.526736111111113, 15.128472222222221, 16.325390625, 13.495755897991843, 6.5625, 6.803063725490196, 5.765625, 7.103125, 3.2277777777777787, 2.4572601010101014, 1.40462962962963, 0.0, 18.225, 15.450925925925928, 12.286300505050505, 9.683333333333334, 14.20625, 8.071875, 6.803063725490196, 4.6875, 6.747877948995922, 5.441796875000001, 3.0256944444444445, 1.502430555555556, 0.0), # 60 (18.665222757540146, 16.465846810699592, 15.111115226337452, 16.308924652777776, 13.496810656823772, 6.5625, 6.780000580973129, 5.729740740740741, 7.0960320370370376, 3.216679032921812, 2.4547183127572016, 1.40231536351166, 0.0, 18.225, 15.425468998628258, 12.273591563786008, 9.650037098765434, 14.192064074074075, 8.021637037037038, 6.780000580973129, 4.6875, 6.748405328411886, 5.436308217592593, 3.0222230452674905, 1.496895164609054, 0.0), # 61 (18.66799250368381, 16.40547355967078, 15.093782921810703, 16.292350347222225, 13.497715395293081, 6.5625, 6.757163144517066, 5.695078703703705, 7.088925740740741, 3.2057600411522644, 2.4521446502057613, 1.4000043895747603, 0.0, 18.225, 15.40004828532236, 12.260723251028807, 9.61728012345679, 14.177851481481483, 7.973110185185186, 6.757163144517066, 4.6875, 6.748857697646541, 5.430783449074076, 3.018756584362141, 1.4914066872427985, 0.0), # 62 (18.670304196743327, 16.345724999999998, 15.0765, 16.275684375, 13.498469893139227, 6.5625, 6.734594117647059, 5.6617500000000005, 7.081815, 3.195045000000001, 2.4495409090909095, 1.3977000000000002, 0.0, 18.225, 15.3747, 12.247704545454548, 9.585135, 14.16363, 7.926450000000001, 6.734594117647059, 4.6875, 6.749234946569613, 5.425228125000001, 3.0153000000000003, 1.485975, 0.0), # 63 (18.672156404230314, 16.286709773662555, 15.059291152263373, 16.258943402777778, 13.499073930101698, 6.5625, 6.712336201888163, 5.629865740740741, 7.0747087037037035, 3.1845581069958855, 2.446908885147774, 1.3954054869684502, 0.0, 18.225, 15.34946035665295, 12.23454442573887, 9.553674320987653, 14.149417407407407, 7.881812037037038, 6.712336201888163, 4.6875, 6.749536965050849, 5.419647800925927, 3.011858230452675, 1.4806099794238687, 0.0), # 64 (18.67354769365639, 16.228536522633743, 15.042181069958849, 16.242144097222223, 13.49952728591996, 6.5625, 6.690432098765433, 5.599537037037037, 7.067615740740742, 3.1743235596707824, 2.4442503741114856, 1.3931241426611796, 0.0, 18.225, 15.324365569272972, 12.221251870557428, 9.522970679012344, 14.135231481481483, 7.839351851851852, 6.690432098765433, 4.6875, 6.74976364295998, 5.4140480324074085, 3.00843621399177, 1.4753215020576131, 0.0), # 65 (18.674476632533153, 16.17131388888889, 15.025194444444447, 16.225303125, 13.499829740333489, 6.5625, 6.668924509803921, 5.570875000000001, 7.060545000000001, 3.1643655555555563, 2.4415671717171716, 1.3908592592592597, 0.0, 18.225, 15.299451851851854, 12.207835858585858, 9.493096666666666, 14.121090000000002, 7.799225000000001, 6.668924509803921, 4.6875, 6.749914870166744, 5.408434375000001, 3.0050388888888895, 1.4701194444444448, 0.0), # 66 (18.674941788372227, 16.11515051440329, 15.00835596707819, 16.208437152777776, 13.499981073081756, 6.5625, 6.647856136528685, 5.543990740740742, 7.05350537037037, 3.154708292181071, 2.438861073699963, 1.3886141289437586, 0.0, 18.225, 15.274755418381341, 12.194305368499816, 9.464124876543211, 14.10701074074074, 7.761587037037039, 6.647856136528685, 4.6875, 6.749990536540878, 5.40281238425926, 3.001671193415638, 1.465013683127572, 0.0), # 67 (18.674624906065485, 16.059860254878533, 14.99160892489712, 16.19141634963768, 13.499853546356814, 6.56237821216278, 6.627163675346682, 5.518757887517148, 7.046452709190673, 3.145329198741226, 2.436085796562113, 1.3863795032849615, 0.0, 18.22477527006173, 15.250174536134574, 12.180428982810565, 9.435987596223676, 14.092905418381346, 7.726261042524007, 6.627163675346682, 4.6874130086877, 6.749926773178407, 5.3971387832125615, 2.998321784979424, 1.4599872958980487, 0.0), # 68 (18.671655072463768, 16.00375510752688, 14.974482638888889, 16.173382744565217, 13.498692810457515, 6.561415432098766, 6.606241363211952, 5.493824074074074, 7.039078703703703, 3.1359628758169937, 2.4329588516746417, 1.3840828460038987, 0.0, 18.222994791666668, 15.224911306042884, 12.164794258373206, 9.407888627450978, 14.078157407407407, 7.6913537037037045, 6.606241363211952, 4.686725308641976, 6.749346405228757, 5.391127581521739, 2.994896527777778, 1.4548868279569895, 0.0), # 69 (18.665794417606012, 15.946577558741536, 14.956902649176953, 16.154217617753623, 13.496399176954732, 6.559519318701418, 6.5849941211052325, 5.468964334705077, 7.031341735253773, 3.1265637860082314, 2.429444665957824, 1.3817134141939216, 0.0, 18.219478202160495, 15.198847556133135, 12.147223329789119, 9.379691358024692, 14.062683470507546, 7.656550068587107, 6.5849941211052325, 4.685370941929584, 6.748199588477366, 5.384739205917875, 2.9913805298353906, 1.4496888689765035, 0.0), # 70 (18.657125389157272, 15.888361778176023, 14.938875128600824, 16.133949230072467, 13.493001694504963, 6.556720598994056, 6.56343149358509, 5.444186899862826, 7.023253326474624, 3.1171321617041885, 2.425556211235159, 1.3792729405819073, 0.0, 18.21427179783951, 15.172002346400978, 12.127781056175793, 9.351396485112563, 14.046506652949247, 7.621861659807958, 6.56343149358509, 4.683371856424325, 6.746500847252482, 5.377983076690823, 2.987775025720165, 1.4443965252887296, 0.0), # 71 (18.64573043478261, 15.82914193548387, 14.92040625, 16.112605842391304, 13.488529411764706, 6.553050000000001, 6.541563025210084, 5.4195, 7.014825, 3.1076682352941183, 2.421306459330144, 1.376763157894737, 0.0, 18.207421875, 15.144394736842104, 12.10653229665072, 9.323004705882353, 14.02965, 7.587300000000001, 6.541563025210084, 4.680750000000001, 6.744264705882353, 5.370868614130436, 2.98408125, 1.4390129032258066, 0.0), # 72 (18.631692002147076, 15.768952200318596, 14.90150218621399, 16.09021571557971, 13.483011377390461, 6.548538248742569, 6.519398260538782, 5.394911865569274, 7.006068278463649, 3.0981722391672726, 2.4167083820662767, 1.374185798859288, 0.0, 18.198974729938275, 15.116043787452165, 12.083541910331384, 9.294516717501814, 14.012136556927299, 7.552876611796983, 6.519398260538782, 4.677527320530407, 6.741505688695231, 5.363405238526571, 2.9803004372427986, 1.4335411091198726, 0.0), # 73 (18.61509253891573, 15.707826742333731, 14.882169110082302, 16.06680711050725, 13.47647664003873, 6.543216072245086, 6.49694674412975, 5.37043072702332, 6.996994684499314, 3.0886444057129037, 2.411774951267057, 1.3715425962024403, 0.0, 18.18897665895062, 15.086968558226841, 12.058874756335285, 9.26593321713871, 13.993989368998628, 7.518603017832648, 6.49694674412975, 4.673725765889347, 6.738238320019365, 5.355602370169083, 2.976433822016461, 1.4279842493030668, 0.0), # 74 (18.59601449275362, 15.645799731182793, 14.862413194444443, 16.04240828804348, 13.468954248366014, 6.537114197530865, 6.47421802054155, 5.346064814814815, 6.98761574074074, 3.0790849673202625, 2.406519138755981, 1.3688352826510723, 0.0, 18.177473958333334, 15.057188109161793, 12.032595693779903, 9.237254901960785, 13.97523148148148, 7.484490740740742, 6.47421802054155, 4.669367283950618, 6.734477124183007, 5.347469429347827, 2.9724826388888888, 1.422345430107527, 0.0), # 75 (18.57454031132582, 15.582905336519316, 14.842240612139918, 16.01704750905797, 13.460473251028805, 6.53026335162323, 6.451221634332746, 5.321822359396434, 6.977942969821673, 3.069494156378602, 2.400953916356548, 1.3660655909320625, 0.0, 18.164512924382716, 15.026721500252684, 12.004769581782737, 9.208482469135802, 13.955885939643347, 7.450551303155008, 6.451221634332746, 4.664473822588021, 6.730236625514403, 5.339015836352658, 2.9684481224279837, 1.4166277578653925, 0.0), # 76 (18.55075244229737, 15.519177727996816, 14.821657536008228, 15.99075303442029, 13.451062696683609, 6.522694261545496, 6.4279671300619015, 5.2977115912208514, 6.967987894375857, 3.059872205277174, 2.3950922558922563, 1.3632352537722912, 0.0, 18.150139853395064, 14.9955877914952, 11.975461279461282, 9.179616615831518, 13.935975788751714, 7.416796227709193, 6.4279671300619015, 4.659067329675354, 6.725531348341804, 5.330251011473431, 2.964331507201646, 1.4108343389088016, 0.0), # 77 (18.524733333333334, 15.45465107526882, 14.80067013888889, 15.963553124999999, 13.440751633986928, 6.514437654320987, 6.404464052287582, 5.273740740740742, 6.957762037037036, 3.0502193464052296, 2.388947129186603, 1.3603460038986357, 0.0, 18.134401041666667, 14.963806042884991, 11.944735645933015, 9.150658039215687, 13.915524074074073, 7.383237037037039, 6.404464052287582, 4.653169753086419, 6.720375816993464, 5.3211843750000005, 2.960134027777778, 1.404968279569893, 0.0), # 78 (18.496565432098766, 15.389359547988851, 14.779284593621398, 15.935476041666668, 13.429569111595256, 6.505524256973022, 6.380721945568351, 5.249918038408779, 6.947276920438957, 3.0405358121520223, 2.382531508063087, 1.3573995740379758, 0.0, 18.117342785493825, 14.931395314417731, 11.912657540315433, 9.121607436456063, 13.894553840877913, 7.349885253772292, 6.380721945568351, 4.646803040695016, 6.714784555797628, 5.311825347222223, 2.95585691872428, 1.399032686180805, 0.0), # 79 (18.466331186258724, 15.323337315810434, 14.757507073045266, 15.906550045289855, 13.417544178165095, 6.49598479652492, 6.356750354462773, 5.226251714677641, 6.9365440672153635, 3.030821834906803, 2.375858364345207, 1.3543976969171905, 0.0, 18.09901138117284, 14.898374666089092, 11.879291821726033, 9.092465504720405, 13.873088134430727, 7.316752400548698, 6.356750354462773, 4.639989140374943, 6.708772089082547, 5.302183348429953, 2.9515014146090537, 1.3930306650736761, 0.0), # 80 (18.434113043478263, 15.256618548387095, 14.735343749999998, 15.876803396739131, 13.404705882352939, 6.48585, 6.3325588235294115, 5.202750000000001, 6.925574999999999, 3.0210776470588248, 2.36894066985646, 1.3513421052631582, 0.0, 18.079453124999997, 14.864763157894737, 11.844703349282298, 9.063232941176471, 13.851149999999999, 7.283850000000001, 6.3325588235294115, 4.63275, 6.7023529411764695, 5.292267798913045, 2.94706875, 1.3869653225806453, 0.0), # 81 (18.399993451422436, 15.189237415372364, 14.712800797325105, 15.846264356884058, 13.391083272815298, 6.475150594421583, 6.308156897326833, 5.179421124828533, 6.914381241426612, 3.011303480997338, 2.3617913964203443, 1.3482345318027582, 0.0, 18.058714313271608, 14.830579849830338, 11.80895698210172, 9.03391044299201, 13.828762482853223, 7.2511895747599455, 6.308156897326833, 4.625107567443988, 6.695541636407649, 5.2820881189613536, 2.9425601594650215, 1.3808397650338515, 0.0), # 82 (18.364054857756308, 15.121228086419752, 14.689884387860083, 15.8149611865942, 13.376705398208665, 6.463917306812986, 6.283554120413598, 5.156273319615913, 6.902974314128944, 3.001499569111596, 2.3544235158603586, 1.3450767092628693, 0.0, 18.036841242283952, 14.79584380189156, 11.772117579301792, 9.004498707334786, 13.805948628257887, 7.218782647462278, 6.283554120413598, 4.617083790580704, 6.688352699104333, 5.2716537288647345, 2.9379768775720168, 1.374657098765432, 0.0), # 83 (18.326379710144927, 15.052624731182796, 14.666600694444444, 15.78292214673913, 13.361601307189542, 6.452180864197532, 6.258760037348273, 5.133314814814815, 6.89136574074074, 2.9916661437908503, 2.3468500000000003, 1.3418703703703705, 0.0, 18.013880208333333, 14.760574074074073, 11.73425, 8.97499843137255, 13.78273148148148, 7.186640740740741, 6.258760037348273, 4.608700617283951, 6.680800653594771, 5.260974048913044, 2.933320138888889, 1.3684204301075271, 0.0), # 84 (18.287050456253354, 14.983461519315012, 14.642955889917694, 15.750175498188408, 13.345800048414427, 6.439971993598538, 6.233784192689422, 5.110553840877915, 6.879567043895747, 2.981803437424353, 2.3390838206627684, 1.338617247852141, 0.0, 17.989877507716052, 14.724789726373547, 11.69541910331384, 8.945410312273058, 13.759134087791494, 7.154775377229082, 6.233784192689422, 4.5999799954275264, 6.672900024207213, 5.250058499396137, 2.928591177983539, 1.362132865392274, 0.0), # 85 (18.246149543746643, 14.913772620469931, 14.618956147119343, 15.716749501811597, 13.32933067053982, 6.427321422039324, 6.208636130995608, 5.087998628257887, 6.86758974622771, 2.9719116824013563, 2.3311379496721605, 1.3353190744350594, 0.0, 17.964879436728395, 14.68850981878565, 11.655689748360802, 8.915735047204068, 13.73517949245542, 7.123198079561043, 6.208636130995608, 4.590943872885232, 6.66466533526991, 5.2389165006038665, 2.923791229423869, 1.3557975109518121, 0.0), # 86 (18.203759420289852, 14.843592204301075, 14.594607638888888, 15.68267241847826, 13.312222222222225, 6.41425987654321, 6.1833253968253965, 5.065657407407408, 6.855445370370372, 2.9619911111111112, 2.323025358851675, 1.3319775828460039, 0.0, 17.938932291666667, 14.651753411306041, 11.615126794258373, 8.885973333333332, 13.710890740740744, 7.091920370370371, 6.1833253968253965, 4.581614197530865, 6.656111111111112, 5.227557472826088, 2.9189215277777776, 1.3494174731182798, 0.0), # 87 (18.159962533548043, 14.772954440461966, 14.569916538065844, 15.647972509057974, 13.294503752118132, 6.400818084133517, 6.157861534737352, 5.043538408779149, 6.843145438957476, 2.952041955942871, 2.31475902002481, 1.328594505811855, 0.0, 17.912082368827164, 14.614539563930402, 11.573795100124048, 8.856125867828611, 13.686290877914953, 7.06095377229081, 6.157861534737352, 4.572012917238227, 6.647251876059066, 5.215990836352659, 2.913983307613169, 1.3429958582238153, 0.0), # 88 (18.11484133118626, 14.701893498606132, 14.544889017489714, 15.612678034420288, 13.276204308884047, 6.387026771833563, 6.132254089290037, 5.0216498628257895, 6.830701474622771, 2.942064449285888, 2.3063519050150636, 1.3251715760594904, 0.0, 17.884375964506173, 14.576887336654393, 11.531759525075316, 8.826193347857663, 13.661402949245542, 7.0303098079561055, 6.132254089290037, 4.562161979881116, 6.638102154442024, 5.2042260114734304, 2.908977803497943, 1.3365357726005578, 0.0), # 89 (18.068478260869565, 14.630443548387097, 14.519531250000002, 15.576817255434786, 13.257352941176471, 6.372916666666668, 6.106512605042017, 5.0, 6.818125, 2.9320588235294123, 2.2978169856459334, 1.3217105263157898, 0.0, 17.855859375, 14.538815789473684, 11.489084928229666, 8.796176470588236, 13.63625, 7.0, 6.106512605042017, 4.552083333333334, 6.6286764705882355, 5.192272418478263, 2.903906250000001, 1.3300403225806454, 0.0), # 90 (18.020955770263015, 14.558638759458383, 14.493849408436214, 15.540418432971018, 13.237978697651899, 6.35851849565615, 6.0806466265518555, 4.978597050754459, 6.80542753772291, 2.922025311062697, 2.2891672337409186, 1.3182130893076314, 0.0, 17.826578896604936, 14.500343982383942, 11.445836168704592, 8.76607593318809, 13.61085507544582, 6.9700358710562424, 6.0806466265518555, 4.541798925468679, 6.6189893488259495, 5.180139477657007, 2.898769881687243, 1.3235126144962168, 0.0), # 91 (17.97235630703167, 14.486513301473519, 14.467849665637862, 15.50350982789855, 13.218110626966835, 6.343862985825332, 6.054665698378118, 4.957449245541839, 6.7926206104252405, 2.9119641442749944, 2.2804156211235163, 1.3146809977618947, 0.0, 17.796580825617283, 14.46149097538084, 11.40207810561758, 8.735892432824983, 13.585241220850481, 6.940428943758574, 6.054665698378118, 4.531330704160951, 6.609055313483418, 5.167836609299518, 2.8935699331275724, 1.3169557546794108, 0.0), # 92 (17.92276231884058, 14.414101344086022, 14.441538194444446, 15.46611970108696, 13.197777777777777, 6.328980864197531, 6.0285793650793655, 4.936564814814815, 6.779715740740741, 2.9018755555555558, 2.2715751196172254, 1.3111159844054583, 0.0, 17.76591145833333, 14.422275828460037, 11.357875598086125, 8.705626666666666, 13.559431481481482, 6.911190740740742, 6.0285793650793655, 4.520700617283951, 6.598888888888888, 5.155373233695654, 2.888307638888889, 1.3103728494623659, 0.0), # 93 (17.872256253354806, 14.341437056949422, 14.414921167695475, 15.428276313405796, 13.177009198741224, 6.313902857796068, 6.002397171214165, 4.915951989026064, 6.766724451303155, 2.891759777293634, 2.2626587010455435, 1.3075197819652014, 0.0, 17.734617091049383, 14.382717601617212, 11.313293505227715, 8.675279331880901, 13.53344890260631, 6.88233278463649, 6.002397171214165, 4.509930612711477, 6.588504599370612, 5.1427587711352665, 2.882984233539095, 1.3037670051772203, 0.0), # 94 (17.820920558239397, 14.268554609717246, 14.388004758230455, 15.390007925724635, 13.155833938513677, 6.298659693644262, 5.97612866134108, 4.895618998628259, 6.753658264746228, 2.88161704187848, 2.253679337231969, 1.3038941231680024, 0.0, 17.70274402006173, 14.342835354848022, 11.268396686159845, 8.644851125635439, 13.507316529492456, 6.853866598079563, 5.97612866134108, 4.49904263831733, 6.577916969256838, 5.130002641908213, 2.8776009516460914, 1.2971413281561135, 0.0), # 95 (17.76883768115942, 14.195488172043014, 14.360795138888891, 15.351342798913045, 13.134281045751635, 6.283282098765432, 5.9497833800186735, 4.875574074074075, 6.740528703703703, 2.8714475816993468, 2.2446500000000005, 1.300240740740741, 0.0, 17.67033854166667, 14.30264814814815, 11.22325, 8.614342745098039, 13.481057407407405, 6.825803703703705, 5.9497833800186735, 4.488058641975309, 6.5671405228758175, 5.117114266304349, 2.8721590277777787, 1.2904989247311833, 0.0), # 96 (17.716090069779927, 14.12227191358025, 14.333298482510289, 15.31230919384058, 13.112379569111596, 6.267800800182899, 5.9233708718055125, 4.855825445816188, 6.727347290809328, 2.8612516291454857, 2.235583661173135, 1.2965613674102956, 0.0, 17.637446952160495, 14.262175041513249, 11.177918305865674, 8.583754887436456, 13.454694581618655, 6.798155624142662, 5.9233708718055125, 4.477000571559214, 6.556189784555798, 5.104103064613527, 2.8666596965020577, 1.2838429012345685, 0.0), # 97 (17.66276017176597, 14.048940003982477, 14.305520961934155, 15.27293537137681, 13.090158557250064, 6.252246524919983, 5.896900681260158, 4.83638134430727, 6.714125548696844, 2.851029416606149, 2.226493292574872, 1.2928577359035447, 0.0, 17.604115547839505, 14.22143509493899, 11.13246646287436, 8.553088249818446, 13.428251097393687, 6.770933882030178, 5.896900681260158, 4.465890374942845, 6.545079278625032, 5.090978457125605, 2.8611041923868314, 1.277176363998407, 0.0), # 98 (17.608930434782607, 13.975526612903225, 14.277468750000002, 15.233249592391303, 13.067647058823532, 6.23665, 5.870382352941177, 4.8172500000000005, 6.700875, 2.8407811764705886, 2.2173918660287084, 1.2891315789473687, 0.0, 17.570390625, 14.180447368421053, 11.086959330143541, 8.522343529411764, 13.40175, 6.744150000000001, 5.870382352941177, 4.45475, 6.533823529411766, 5.0777498641304355, 2.8554937500000004, 1.2705024193548389, 0.0), # 99 (17.5546833064949, 13.902065909996015, 14.249148019547325, 15.193280117753623, 13.044874122488501, 6.2210419524462734, 5.843825431407131, 4.798439643347051, 6.687607167352539, 2.8305071411280567, 2.2082923533581433, 1.285384629268645, 0.0, 17.536318479938274, 14.139230921955095, 11.041461766790714, 8.49152142338417, 13.375214334705078, 6.717815500685871, 5.843825431407131, 4.443601394604481, 6.522437061244251, 5.064426705917875, 2.8498296039094653, 1.2638241736360014, 0.0), # 100 (17.500101234567904, 13.828592064914377, 14.22056494341564, 15.153055208333335, 13.021868796901476, 6.205453109282122, 5.817239461216586, 4.7799585048010975, 6.674333573388203, 2.820207542967805, 2.1992077263866743, 1.281618619594253, 0.0, 17.501945408950615, 14.097804815536781, 10.99603863193337, 8.460622628903414, 13.348667146776407, 6.691941906721536, 5.817239461216586, 4.432466506630087, 6.510934398450738, 5.051018402777779, 2.8441129886831282, 1.2571447331740344, 0.0), # 101 (17.44526666666667, 13.755139247311828, 14.191725694444445, 15.112603125, 12.998660130718955, 6.189914197530865, 5.790633986928105, 4.761814814814815, 6.66106574074074, 2.809882614379086, 2.1901509569377993, 1.2778352826510724, 0.0, 17.467317708333336, 14.056188109161795, 10.950754784688995, 8.429647843137257, 13.32213148148148, 6.666540740740741, 5.790633986928105, 4.421367283950618, 6.499330065359477, 5.037534375000001, 2.838345138888889, 1.2504672043010754, 0.0), # 102 (17.390262050456254, 13.681741626841896, 14.16263644547325, 15.071952128623188, 12.975277172597433, 6.174455944215821, 5.764018553100253, 4.7440168038408785, 6.647815192043895, 2.7995325877511505, 2.181135016835017, 1.2740363511659811, 0.0, 17.432481674382714, 14.014399862825789, 10.905675084175085, 8.39859776325345, 13.29563038408779, 6.64162352537723, 5.764018553100253, 4.410325674439872, 6.487638586298717, 5.023984042874397, 2.8325272890946502, 1.2437946933492634, 0.0), # 103 (17.335169833601718, 13.608433373158105, 14.133303369341563, 15.031130480072465, 12.951748971193414, 6.159109076360311, 5.737402704291593, 4.7265727023319615, 6.634593449931413, 2.7891576954732518, 2.1721728779018252, 1.2702235578658583, 0.0, 17.397483603395063, 13.972459136524439, 10.860864389509127, 8.367473086419754, 13.269186899862826, 6.617201783264746, 5.737402704291593, 4.399363625971651, 6.475874485596707, 5.010376826690822, 2.826660673868313, 1.237130306650737, 0.0), # 104 (17.280072463768114, 13.535248655913978, 14.103732638888891, 14.99016644021739, 12.928104575163397, 6.143904320987655, 5.710795985060692, 4.709490740740741, 6.621412037037037, 2.7787581699346413, 2.1632775119617227, 1.2663986354775831, 0.0, 17.362369791666666, 13.930384990253412, 10.816387559808613, 8.336274509803923, 13.242824074074074, 6.5932870370370384, 5.710795985060692, 4.388503086419754, 6.464052287581699, 4.996722146739131, 2.820746527777778, 1.2304771505376346, 0.0), # 105 (17.225052388620504, 13.462221644763043, 14.073930426954732, 14.949088269927536, 12.904373033163882, 6.128872405121171, 5.68420793996611, 4.6927791495198905, 6.608282475994512, 2.7683342435245706, 2.1544618908382067, 1.2625633167280343, 0.0, 17.327186535493826, 13.888196484008375, 10.772309454191033, 8.30500273057371, 13.216564951989024, 6.5698908093278465, 5.68420793996611, 4.377766003657979, 6.452186516581941, 4.98302942330918, 2.8147860853909465, 1.223838331342095, 0.0), # 106 (17.17019205582394, 13.389386509358822, 14.043902906378605, 14.907924230072464, 12.880583393851367, 6.114044055784181, 5.657648113566415, 4.6764461591220865, 6.595216289437586, 2.7578861486322928, 2.145738986354776, 1.2587193343440908, 0.0, 17.29198013117284, 13.845912677784996, 10.728694931773878, 8.273658445896878, 13.190432578875171, 6.547024622770921, 5.657648113566415, 4.367174325560129, 6.440291696925684, 4.969308076690822, 2.808780581275721, 1.2172169553962566, 0.0), # 107 (17.11557391304348, 13.31677741935484, 14.013656250000002, 14.866702581521741, 12.856764705882352, 6.099450000000001, 5.631126050420168, 4.660500000000001, 6.582225000000001, 2.7474141176470597, 2.1371217703349283, 1.2548684210526317, 0.0, 17.256796875000003, 13.803552631578947, 10.685608851674642, 8.242242352941178, 13.164450000000002, 6.524700000000001, 5.631126050420168, 4.356750000000001, 6.428382352941176, 4.955567527173915, 2.8027312500000003, 1.2106161290322583, 0.0), # 108 (17.061280407944178, 13.24442854440462, 13.983196630658439, 14.825451585144926, 12.832946017913338, 6.085120964791952, 5.604651295085936, 4.644948902606311, 6.569320130315501, 2.736918382958122, 2.1286232146021624, 1.2510123095805359, 0.0, 17.221683063271605, 13.761135405385891, 10.64311607301081, 8.210755148874364, 13.138640260631002, 6.502928463648835, 5.604651295085936, 4.346514974851394, 6.416473008956669, 4.941817195048309, 2.796639326131688, 1.2040389585822384, 0.0), # 109 (17.007393988191087, 13.17237405416169, 13.95253022119342, 14.784199501811596, 12.809156378600825, 6.071087677183356, 5.57823339212228, 4.62980109739369, 6.556513203017833, 2.726399176954733, 2.120256290979975, 1.2471527326546823, 0.0, 17.18668499228395, 13.718680059201501, 10.601281454899876, 8.179197530864197, 13.113026406035665, 6.4817215363511655, 5.57823339212228, 4.336491197988112, 6.404578189300413, 4.928066500603866, 2.790506044238684, 1.1974885503783357, 0.0), # 110 (16.953997101449275, 13.10064811827957, 13.921663194444447, 14.742974592391306, 12.785424836601308, 6.0573808641975315, 5.551881886087768, 4.615064814814815, 6.543815740740741, 2.715856732026144, 2.1120339712918663, 1.2432914230019496, 0.0, 17.151848958333336, 13.676205653021444, 10.56016985645933, 8.147570196078432, 13.087631481481482, 6.461090740740741, 5.551881886087768, 4.326700617283951, 6.392712418300654, 4.914324864130436, 2.78433263888889, 1.1909680107526885, 0.0), # 111 (16.90117219538379, 13.029284906411787, 13.890601723251033, 14.701805117753622, 12.76178044057129, 6.044031252857797, 5.5256063215409625, 4.60074828532236, 6.531239266117969, 2.7052912805616076, 2.103969227361333, 1.2394301133492167, 0.0, 17.11722125771605, 13.633731246841382, 10.519846136806663, 8.115873841684822, 13.062478532235938, 6.441047599451304, 5.5256063215409625, 4.3171651806127125, 6.380890220285645, 4.900601705917875, 2.778120344650207, 1.1844804460374354, 0.0), # 112 (16.84890760266548, 12.958437720996821, 13.859426742378105, 14.660775741364255, 12.738210816208445, 6.03106325767524, 5.499473367291093, 4.586889426585454, 6.518827686755172, 2.694737131475729, 2.0960771718458604, 1.2355789404756645, 0.0, 17.0827990215178, 13.591368345232306, 10.480385859229301, 8.084211394427186, 13.037655373510344, 6.421645197219636, 5.499473367291093, 4.307902326910885, 6.369105408104223, 4.886925247121419, 2.7718853484756214, 1.178039792817893, 0.0), # 113 (16.796665616220118, 12.888805352817133, 13.828568512532428, 14.620215718724406, 12.71447202547959, 6.018447338956397, 5.473816387569522, 4.57365844462884, 6.506771421427836, 2.684391825560753, 2.0883733011339594, 1.2317868258169462, 0.0, 17.048295745488062, 13.549655083986407, 10.441866505669795, 8.053175476682258, 13.013542842855673, 6.403121822480377, 5.473816387569522, 4.298890956397426, 6.357236012739795, 4.873405239574803, 2.7657137025064857, 1.1717095775288306, 0.0), # 114 (16.744292825407193, 12.820412877827026, 13.798045399060976, 14.580114081995404, 12.690489213466321, 6.006150688123703, 5.448653685172405, 4.561051990709032, 6.495074987201274, 2.674271397594635, 2.0808463534281283, 1.2280556373838278, 0.0, 17.013611936988678, 13.508612011222104, 10.404231767140642, 8.022814192783905, 12.990149974402549, 6.385472786992645, 5.448653685172405, 4.290107634374073, 6.345244606733161, 4.860038027331802, 2.7596090798121957, 1.165492079802457, 0.0), # 115 (16.691723771827743, 12.753160664131308, 13.767798284975811, 14.540399302859647, 12.666226231660534, 5.994144321151453, 5.423944335775104, 4.549035234674245, 6.483708803536698, 2.6643570113022967, 2.0734817793814444, 1.224378479623102, 0.0, 16.978693067560602, 13.46816327585412, 10.367408896907222, 7.9930710339068884, 12.967417607073395, 6.368649328543944, 5.423944335775104, 4.281531657965324, 6.333113115830267, 4.846799767619883, 2.7535596569951624, 1.1593782421937553, 0.0), # 116 (16.63889299708279, 12.686949079834788, 13.73776805328898, 14.50099985299953, 12.641646931554131, 5.982399254013936, 5.399647415052978, 4.537573346372689, 6.472643289895322, 2.6546298304086586, 2.0662650296469853, 1.2207484569815625, 0.0, 16.943484608744804, 13.428233026797187, 10.331325148234924, 7.963889491225975, 12.945286579790643, 6.352602684921765, 5.399647415052978, 4.2731423242956685, 6.320823465777066, 4.833666617666511, 2.747553610657796, 1.1533590072577082, 0.0), # 117 (16.58573504277338, 12.621678493042284, 13.707895587012551, 14.461844204097451, 12.616715164639011, 5.970886502685445, 5.375721998681383, 4.526631495652572, 6.461848865738361, 2.6450710186386424, 2.0591815548778274, 1.2171586739060027, 0.0, 16.907932032082243, 13.388745412966028, 10.295907774389137, 7.935213055915925, 12.923697731476722, 6.337284093913602, 5.375721998681383, 4.264918930489604, 6.3083575823195055, 4.820614734699151, 2.74157911740251, 1.1474253175492988, 0.0), # 118 (16.532184450500534, 12.557249271858602, 13.678121769158587, 14.422860827835802, 12.591394782407065, 5.9595770831402755, 5.35212716233568, 4.516174852362109, 6.451295950527026, 2.6356617397171678, 2.0522168057270487, 1.2136022348432152, 0.0, 16.87198080911388, 13.349624583275366, 10.261084028635242, 7.906985219151502, 12.902591901054052, 6.322644793306953, 5.35212716233568, 4.256840773671625, 6.295697391203532, 4.807620275945268, 2.7356243538317178, 1.1415681156235096, 0.0), # 119 (16.47817576186529, 12.49356178438856, 13.648387482739144, 14.383978195896983, 12.565649636350196, 5.948442011352714, 5.3288219816912274, 4.506168586349507, 6.440954963722534, 2.626383157369158, 2.045356232847725, 1.2100722442399947, 0.0, 16.835576411380675, 13.31079468663994, 10.226781164238623, 7.879149472107472, 12.881909927445069, 6.308636020889311, 5.3288219816912274, 4.248887150966224, 6.282824818175098, 4.794659398632328, 2.7296774965478288, 1.1357783440353237, 0.0), # 120 (16.423643518468683, 12.430516398736968, 13.618633610766281, 14.345124779963385, 12.539443577960302, 5.937452303297058, 5.305765532423383, 4.49657786746298, 6.430796324786099, 2.6172164353195337, 2.038585286892935, 1.2065618065431336, 0.0, 16.79866431042359, 13.272179871974467, 10.192926434464676, 7.8516493059586, 12.861592649572199, 6.295209014448172, 5.305765532423383, 4.2410373594978985, 6.269721788980151, 4.781708259987796, 2.7237267221532564, 1.1300469453397246, 0.0), # 121 (16.36852226191174, 12.368013483008635, 13.588801036252066, 14.306229051717406, 12.51274045872928, 5.926578974947596, 5.282916890207506, 4.487367865550737, 6.420790453178933, 2.6081427372932153, 2.0318894185157554, 1.2030640261994254, 0.0, 16.761189977783587, 13.233704288193676, 10.159447092578777, 7.824428211879645, 12.841580906357866, 6.282315011771032, 5.282916890207506, 4.2332706963911395, 6.25637022936464, 4.768743017239136, 2.7177602072504135, 1.1243648620916942, 0.0), # 122 (16.312746533795494, 12.305953405308378, 13.558830642208555, 14.267219482841437, 12.485504130149028, 5.915793042278621, 5.260235130718955, 4.478503750460988, 6.410907768362252, 2.5991432270151247, 2.0252540783692634, 1.1995720076556633, 0.0, 16.72309888500163, 13.195292084212294, 10.126270391846315, 7.797429681045372, 12.821815536724504, 6.269905250645383, 5.260235130718955, 4.225566458770444, 6.242752065074514, 4.755739827613813, 2.711766128441711, 1.1187230368462162, 0.0), # 123 (16.256250875720976, 12.244236533741004, 13.528663311647806, 14.228024545017881, 12.457698443711445, 5.905065521264426, 5.237679329633088, 4.469950692041945, 6.401118689797269, 2.590199068210183, 2.018664717106536, 1.1960788553586414, 0.0, 16.68433650361868, 13.156867408945052, 10.09332358553268, 7.770597204630548, 12.802237379594539, 6.257930968858723, 5.237679329633088, 4.217903943760304, 6.2288492218557225, 4.742674848339295, 2.7057326623295617, 1.1131124121582732, 0.0), # 124 (16.198969829289226, 12.18276323641133, 13.498239927581887, 14.188572709929128, 12.429287250908427, 5.894367427879304, 5.215208562625265, 4.461673860141818, 6.391393636945196, 2.5812914246033105, 2.012106785380651, 1.1925776737551523, 0.0, 16.644848305175692, 13.118354411306674, 10.060533926903252, 7.74387427380993, 12.782787273890392, 6.246343404198546, 5.215208562625265, 4.210262448485217, 6.2146436254542134, 4.7295242366430434, 2.6996479855163775, 1.1075239305828484, 0.0), # 125 (16.14083793610127, 12.121433881424165, 13.46750137302285, 14.148792449257574, 12.400234403231872, 5.883669778097547, 5.192781905370843, 4.453638424608819, 6.381703029267251, 2.57240145991943, 2.005565733844684, 1.1890615672919902, 0.0, 16.604579761213643, 13.079677240211891, 10.02782866922342, 7.717204379758288, 12.763406058534501, 6.235093794452347, 5.192781905370843, 4.202621270069677, 6.200117201615936, 4.716264149752526, 2.69350027460457, 1.1019485346749243, 0.0), # 126 (16.08178973775815, 12.06014883688432, 13.436388530982757, 14.108612234685616, 12.370503752173677, 5.872943587893444, 5.170358433545185, 4.445809555291159, 6.3720172862246445, 2.563510337883461, 1.9990270131517138, 1.1855236404159475, 0.0, 16.56347634327348, 13.040760044575421, 9.99513506575857, 7.690531013650382, 12.744034572449289, 6.224133377407623, 5.170358433545185, 4.194959705638174, 6.185251876086839, 4.702870744895206, 2.6872777061965514, 1.0963771669894837, 0.0), # 127 (16.021759775860883, 11.998808470896611, 13.404842284473675, 14.06796053789565, 12.340059149225747, 5.862159873241292, 5.147897222823644, 4.438152422037048, 6.362306827278591, 2.554599222220326, 1.9924760739548175, 1.1819569975738184, 0.0, 16.521483522896165, 13.001526973312, 9.962380369774086, 7.663797666660978, 12.724613654557182, 6.2134133908518665, 5.147897222823644, 4.187257052315209, 6.170029574612873, 4.689320179298551, 2.680968456894735, 1.0908007700815103, 0.0), # 128 (15.960682592010507, 11.937313151565847, 13.37280351650766, 14.026765830570064, 12.308864445879973, 5.85128965011538, 5.125357348881582, 4.430632194694696, 6.352542071890305, 2.5456492766549457, 1.9858983669070716, 1.1783547432123955, 0.0, 16.478546771622668, 12.96190217533635, 9.929491834535357, 7.636947829964836, 12.70508414378061, 6.202885072572574, 5.125357348881582, 4.179492607225272, 6.154432222939986, 4.675588610190022, 2.6745607033015326, 1.0852102865059863, 0.0), # 129 (15.89849272780806, 11.875563246996844, 13.34021311009677, 13.984956584391266, 12.276883493628256, 5.840303934489999, 5.102697887394356, 4.423214043112313, 6.342693439521001, 2.536641664912241, 1.9792793426615536, 1.174709981778473, 0.0, 16.434611560993947, 12.921809799563201, 9.896396713307768, 7.609924994736723, 12.685386879042001, 6.192499660357238, 5.102697887394356, 4.171645667492856, 6.138441746814128, 4.66165219479709, 2.668042622019354, 1.0795966588178951, 0.0), # 130 (15.83512472485457, 11.81345912529441, 13.307011948253072, 13.942461271041642, 12.244080143962494, 5.829173742339445, 5.079877914037328, 4.415863137138113, 6.332731349631892, 2.527557550717134, 1.9726044518713404, 1.1710158177188439, 0.0, 16.38962336255096, 12.88117399490728, 9.863022259356702, 7.5826726521514, 12.665462699263784, 6.182208391993358, 5.079877914037328, 4.16369553024246, 6.122040071981247, 4.647487090347215, 2.6614023896506143, 1.073950829572219, 0.0), # 131 (15.770513124751067, 11.750901154563357, 13.27314091398862, 13.899208362203591, 12.210418248374584, 5.817870089638008, 5.056856504485853, 4.408544646620305, 6.322626221684192, 2.5183780977945447, 1.9658591451895095, 1.1672653554803014, 0.0, 16.343527647834676, 12.839918910283313, 9.829295725947548, 7.555134293383633, 12.645252443368385, 6.171962505268427, 5.056856504485853, 4.155621492598577, 6.105209124187292, 4.633069454067865, 2.654628182797724, 1.0682637413239418, 0.0), # 132 (15.704592469098595, 11.687789702908498, 13.238540890315475, 13.855126329559509, 12.175861658356425, 5.80636399235998, 5.03359273441529, 4.4012237414071, 6.312348475139116, 2.509084469869395, 1.9590288732691383, 1.1634516995096391, 0.0, 16.296269888386057, 12.797968694606027, 9.795144366345692, 7.527253409608184, 12.624696950278231, 6.1617132379699395, 5.03359273441529, 4.1474028516857, 6.087930829178212, 4.618375443186504, 2.647708178063095, 1.0625263366280455, 0.0), # 133 (15.63729729949817, 11.624025138434646, 13.203152760245707, 13.81014364479179, 12.14037422539991, 5.794626466479654, 5.010045679501001, 4.3938655913467075, 6.301868529457877, 2.499657830666606, 1.952099086763304, 1.1595679542536501, 0.0, 16.24779555574605, 12.755247496790147, 9.76049543381652, 7.498973491999817, 12.603737058915755, 6.151411827885391, 5.010045679501001, 4.139018904628324, 6.070187112699955, 4.6033812149305975, 2.6406305520491418, 1.0567295580395135, 0.0), # 134 (15.568562157550836, 11.559507829246614, 13.166917406791363, 13.764188779582833, 12.103919800996945, 5.7826285279713225, 4.986174415418341, 4.3864353662873405, 6.291156804101687, 2.4900793439110998, 1.945055236325083, 1.155607224159128, 0.0, 16.198050121455637, 12.711679465750406, 9.725276181625414, 7.470238031733298, 12.582313608203375, 6.141009512802277, 4.986174415418341, 4.130448948550945, 6.051959900498472, 4.588062926527612, 2.633383481358273, 1.0508643481133288, 0.0), # 135 (15.498321584857623, 11.494138143449213, 13.129775712964513, 13.717190205615022, 12.066462236639419, 5.770341192809277, 4.961938017842671, 4.378898236077208, 6.280183718531764, 2.4803301733277956, 1.9378827726075534, 1.1515626136728663, 0.0, 16.146979057055766, 12.667188750401527, 9.689413863037766, 7.4409905199833855, 12.560367437063528, 6.130457530508091, 4.961938017842671, 4.121672280578055, 6.033231118319709, 4.572396735205008, 2.6259551425929026, 1.044921649404474, 0.0), # 136 (15.426510123019561, 11.427816449147253, 13.091668561777217, 13.66907639457077, 12.02796538381924, 5.757735476967808, 4.93729556244935, 4.371219370564522, 6.2689196922093195, 2.4703914826416162, 1.930567146263792, 1.1474272272416581, 0.0, 16.094527834087398, 12.621699499658236, 9.652835731318959, 7.411174447924847, 12.537839384418639, 6.119707118790331, 4.93729556244935, 4.112668197834148, 6.01398269190962, 4.556358798190257, 2.6183337123554433, 1.0388924044679322, 0.0), # 137 (15.353062313637686, 11.360443114445548, 13.052536836241526, 13.619775818132457, 11.988393094028304, 5.744782396421213, 4.912206124913734, 4.363363939597493, 6.257335144595569, 2.4602444355774815, 1.9230938079468758, 1.143194169312297, 0.0, 16.040641924091503, 12.575135862435264, 9.615469039734378, 7.380733306732443, 12.514670289191137, 6.10870951543649, 4.912206124913734, 4.103415997443723, 5.994196547014152, 4.5399252727108195, 2.6105073672483052, 1.0327675558586864, 0.0), # 138 (15.277912698313022, 11.29191850744891, 13.01232141936951, 13.569216947982484, 11.947709218758497, 5.731452967143778, 4.886628780911184, 4.355297113024331, 6.245400495151722, 2.449870195860314, 1.9154482083098823, 1.1388565443315761, 0.0, 15.985266798609034, 12.527421987647335, 9.577241041549412, 7.3496105875809405, 12.490800990303445, 6.0974159582340635, 4.886628780911184, 4.093894976531271, 5.973854609379249, 4.523072315994162, 2.602464283873902, 1.0265380461317193, 0.0), # 139 (15.200995818646616, 11.22214299626215, 12.970963194173232, 13.51732825580325, 11.905877609501736, 5.717718205109798, 4.860522606117057, 4.346984060693248, 6.233086163338999, 2.439249927215034, 1.9076157980058883, 1.134407456746289, 0.0, 15.928347929180966, 12.478482024209175, 9.538078990029442, 7.3177497816451, 12.466172326677999, 6.085777684970546, 4.860522606117057, 4.084084432221284, 5.952938804750868, 4.505776085267751, 2.5941926388346466, 1.020194817842014, 0.0), # 140 (15.122246216239494, 11.151016948990085, 12.92840304366474, 13.464038213277146, 11.862862117749902, 5.7035491262935665, 4.833846676206716, 4.338389952452453, 6.220362568618608, 2.4283647933665637, 1.8995820276879718, 1.129840011003229, 0.0, 15.869830787348244, 12.428240121035515, 9.497910138439858, 7.2850943800996895, 12.440725137237216, 6.073745933433434, 4.833846676206716, 4.0739636616382615, 5.931431058874951, 4.48801273775905, 2.5856806087329485, 1.0137288135445532, 0.0), # 141 (15.041598432692682, 11.07844073373752, 12.884581850856106, 13.409275292086573, 11.818626594994903, 5.688916746669374, 4.806560066855513, 4.329479958150158, 6.207200130451765, 2.417195958039823, 1.8913323480092095, 1.1251473115491895, 0.0, 15.80966084465184, 12.37662042704108, 9.456661740046046, 7.251587874119467, 12.41440026090353, 6.061271941410222, 4.806560066855513, 4.063511961906696, 5.909313297497452, 4.469758430695525, 2.5769163701712214, 1.00713097579432, 0.0), # 142 (14.958987009607215, 11.004314718609267, 12.839440498759389, 13.352967963913915, 11.773134892728635, 5.673792082211512, 4.778621853738811, 4.320219247634575, 6.1935692682996875, 2.405724584959734, 1.8828522096226783, 1.1203224628309636, 0.0, 15.747783572632711, 12.323547091140597, 9.41426104811339, 7.217173754879202, 12.387138536599375, 6.048306946688404, 4.778621853738811, 4.05270863015108, 5.886567446364317, 4.45098932130464, 2.5678880997518783, 1.0003922471462972, 0.0), # 143 (14.874346488584132, 10.928539271710147, 12.792919870386642, 13.29504470044158, 11.726350862442994, 5.658146148894274, 4.749991112531969, 4.310572990753912, 6.1794404016235855, 2.3939318378512175, 1.8741270631814555, 1.115358569295345, 0.0, 15.684144442831826, 12.268944262248793, 9.370635315907277, 7.181795513553651, 12.358880803247171, 6.034802187055478, 4.749991112531969, 4.04153296349591, 5.863175431221497, 4.431681566813861, 2.5585839740773286, 0.993503570155468, 0.0), # 144 (14.787611411224459, 10.851014761144963, 12.744960848749933, 13.235433973351956, 11.67823835562988, 5.641949962691953, 4.7206269189103445, 4.300506357356382, 6.164783949884672, 2.381798880439195, 1.865142359338619, 1.110248735389127, 0.0, 15.618688926790139, 12.212736089280396, 9.325711796693094, 7.145396641317584, 12.329567899769344, 6.020708900298935, 4.7206269189103445, 4.029964259065681, 5.83911917781494, 4.411811324450653, 2.548992169749987, 0.986455887376815, 0.0), # 145 (14.69871631912923, 10.771641555018533, 12.695504316861326, 13.174064254327444, 11.62876122378119, 5.62517453957884, 4.690488348549297, 4.289984517290195, 6.1495703325441635, 2.3693068764485874, 1.8558835487472447, 1.104986065559103, 0.0, 15.551362496048613, 12.154846721150133, 9.279417743736223, 7.107920629345761, 12.299140665088327, 6.005978324206273, 4.690488348549297, 4.0179818139848855, 5.814380611890595, 4.391354751442482, 2.539100863372265, 0.9792401413653213, 0.0), # 146 (14.607595753899481, 10.690320021435666, 12.644491157732865, 13.110864015050435, 11.577883318388821, 5.607790895529226, 4.659534477124183, 4.278972640403562, 6.133769969063274, 2.3564369896043162, 1.846336082060411, 1.0995636642520668, 0.0, 15.482110622148213, 12.095200306772732, 9.231680410302054, 7.069310968812948, 12.267539938126548, 5.990561696564987, 4.659534477124183, 4.005564925378019, 5.7889416591944105, 4.370288005016812, 2.5288982315465733, 0.9718472746759697, 0.0), # 147 (14.51418425713624, 10.606950528501175, 12.591862254376625, 13.045761727203324, 11.525568490944673, 5.5897700465174065, 4.627724380310364, 4.2674358965446935, 6.1173532789032175, 2.3431703836313016, 1.836485409931195, 1.0939746359148106, 0.0, 15.410878776629895, 12.033720995062914, 9.182427049655974, 7.029511150893903, 12.234706557806435, 5.974410255162571, 4.627724380310364, 3.9926928903695758, 5.762784245472337, 4.348587242401109, 2.5183724508753254, 0.9642682298637433, 0.0), # 148 (14.418416370440541, 10.52143344431987, 12.537558489804665, 12.97868586246851, 11.471780592940643, 5.57108300851767, 4.595017133783196, 4.255339455561801, 6.100290681525203, 2.3294882222544664, 1.8263169830126733, 1.0882120849941288, 0.0, 15.337612431034628, 11.970332934935415, 9.131584915063366, 6.988464666763398, 12.200581363050405, 5.957475237786521, 4.595017133783196, 3.9793450060840496, 5.735890296470322, 4.326228620822837, 2.507511697960933, 0.9564939494836247, 0.0), # 149 (14.320226635413416, 10.433669136996565, 12.481520747029043, 12.909564892528387, 11.416483475868631, 5.551700797504312, 4.561371813218041, 4.242648487303093, 6.0825525963904505, 2.31537166919873, 1.815816251957923, 1.0822691159368145, 0.0, 15.262257056903364, 11.904960275304958, 9.079081259789614, 6.946115007596189, 12.165105192780901, 5.93970788222433, 4.561371813218041, 3.9655005696459367, 5.7082417379343156, 4.303188297509463, 2.4963041494058085, 0.948515376090597, 0.0), # 150 (14.219549593655895, 10.343557974636072, 12.423689909061814, 12.838327289065347, 11.359640991220532, 5.531594429451621, 4.526747494290255, 4.229328161616783, 6.064109442960174, 2.3008018881890155, 1.8049686674200216, 1.0761388331896609, 0.0, 15.184758125777073, 11.837527165086268, 9.024843337100108, 6.902405664567045, 12.128218885920347, 5.921059426263496, 4.526747494290255, 3.951138878179729, 5.679820495610266, 4.27944242968845, 2.484737981812363, 0.9403234522396431, 0.0), # 151 (14.116319786769019, 10.251000325343204, 12.364006858915053, 12.76490152376179, 11.301216990488243, 5.510734920333892, 4.491103252675198, 4.215343648351081, 6.044931640695582, 2.2857600429502427, 1.7937596800520466, 1.0698143411994616, 0.0, 15.105061109196717, 11.767957753194075, 8.968798400260232, 6.857280128850727, 12.089863281391164, 5.901481107691514, 4.491103252675198, 3.936239228809923, 5.650608495244121, 4.254967174587264, 2.4728013717830106, 0.931909120485746, 0.0), # 152 (14.010471756353809, 10.155896557222773, 12.302412479600802, 12.68921606830011, 11.241175325163667, 5.489093286125417, 4.454398164048228, 4.200660117354197, 6.024989609057894, 2.2702272972073336, 1.782174740507075, 1.0632887444130097, 0.0, 15.02311147870325, 11.696176188543106, 8.910873702535374, 6.810681891622, 12.049979218115787, 5.880924164295876, 4.454398164048228, 3.920780918661012, 5.620587662581833, 4.229738689433371, 2.4604824959201608, 0.9232633233838886, 0.0), # 153 (13.901940044011312, 10.05814703837959, 12.238847654131138, 12.611199394362703, 11.179479846738696, 5.466640542800487, 4.416591304084705, 4.185242738474343, 6.00425376750832, 2.254184814685209, 1.7701992994381837, 1.0565551472770989, 0.0, 14.938854705837642, 11.622106620048086, 8.850996497190918, 6.762554444055626, 12.00850753501664, 5.85933983386408, 4.416591304084705, 3.904743244857491, 5.589739923369348, 4.203733131454236, 2.447769530826228, 0.9143770034890537, 0.0), # 154 (13.790659191342543, 9.957652136918465, 12.173253265518113, 12.530779973631962, 11.116094406705237, 5.443347706333395, 4.377641748459985, 4.169056681559727, 5.982694535508077, 2.23761375910879, 1.7578188074984502, 1.0496066542385225, 0.0, 14.852236262140847, 11.545673196623744, 8.789094037492251, 6.712841277326369, 11.965389071016155, 5.836679354183619, 4.377641748459985, 3.8881055045238533, 5.5580472033526185, 4.176926657877321, 2.4346506531036227, 0.9052411033562243, 0.0), # 155 (13.676563739948545, 9.854312220944214, 12.10557019677379, 12.447886277790282, 11.050982856555176, 5.419185792698435, 4.33750857284943, 4.152067116458564, 5.960282332518376, 2.220495294202998, 1.7450187153409518, 1.0424363697440735, 0.0, 14.763201619153833, 11.466800067184806, 8.725093576704758, 6.661485882608993, 11.920564665036752, 5.81289396304199, 4.33750857284943, 3.870846994784596, 5.525491428277588, 4.149295425930095, 2.4211140393547583, 0.8958465655403832, 0.0), # 156 (13.559588231430352, 9.748027658561648, 12.035739330910227, 12.362446778520066, 10.984109047780422, 5.394125817869895, 4.296150852928397, 4.134239213019062, 5.9369875780004335, 2.202810583692754, 1.731784473618765, 1.0350373982405456, 0.0, 14.671696248417557, 11.385411380646001, 8.658922368093824, 6.60843175107826, 11.873975156000867, 5.787934898226687, 4.296150852928397, 3.8529470127642105, 5.492054523890211, 4.120815592840023, 2.407147866182046, 0.8861843325965136, 0.0), # 157 (13.43642570352943, 9.636747649274225, 11.960387930853534, 12.27118893522918, 10.912417327045198, 5.366575700132966, 4.252596048835072, 4.1143477142620295, 5.910997254959458, 2.1840146623310153, 1.717678725761683, 1.027139934629151, 0.0, 14.573674546947622, 11.298539280920659, 8.588393628808413, 6.552043986993045, 11.821994509918916, 5.7600867999668415, 4.252596048835072, 3.833268357237833, 5.456208663522599, 4.090396311743061, 2.3920775861707066, 0.8760679681158388, 0.0), # 158 (13.288116180561124, 9.509057777339137, 11.860106727604483, 12.155369164364412, 10.818229571737954, 5.327374130407459, 4.201391487047145, 4.085410149573287, 5.871856356733287, 2.161026447344436, 1.7002250806856987, 1.0172043785524665, 0.0, 14.445769764456351, 11.189248164077128, 8.501125403428492, 6.483079342033307, 11.743712713466573, 5.719574209402602, 4.201391487047145, 3.8052672360053275, 5.409114785868977, 4.051789721454805, 2.372021345520897, 0.8644597979399218, 0.0), # 159 (13.112769770827757, 9.363909602092178, 11.732881436933834, 12.013079639051961, 10.699704157616154, 5.275558360850069, 4.142019373545406, 4.04669939214551, 5.818455136337191, 2.1335425433383026, 1.6791778525828622, 1.0050752923331772, 0.0, 14.285557096008445, 11.055828215664945, 8.39588926291431, 6.400627630014906, 11.636910272674381, 5.665379149003714, 4.142019373545406, 3.7682559720357633, 5.349852078808077, 4.004359879683988, 2.346576287386767, 0.8512645092811072, 0.0), # 160 (12.911799698254727, 9.202249432332774, 11.580070457865464, 11.845672880071582, 10.558071749138534, 5.21175610364883, 4.0749133014061885, 3.9987003998323356, 5.751497860199411, 2.101796186926922, 1.6547224963799123, 0.9908651203361357, 0.0, 14.094673280674375, 10.899516323697492, 8.273612481899562, 6.305388560780765, 11.502995720398822, 5.59818055976527, 4.0749133014061885, 3.722682931177736, 5.279035874569267, 3.9485576266905285, 2.3160140915730927, 0.8365681302120704, 0.0), # 161 (12.686619186767443, 9.025023576860344, 11.403032189423245, 11.654501408203041, 10.394563010763845, 5.1365950709917785, 4.000506863705828, 3.941898130487402, 5.6716887947481816, 2.0660206147246045, 1.6270444670035862, 0.9746863069261941, 0.0, 13.874755057524599, 10.721549376188133, 8.13522233501793, 6.198061844173813, 11.343377589496363, 5.518657382682362, 4.000506863705828, 3.668996479279842, 5.197281505381922, 3.884833802734348, 2.280606437884649, 0.8204566888054858, 0.0), # 162 (12.438641460291295, 8.833178344474314, 11.203125030631053, 11.44091774422611, 10.210408606950825, 5.050702975066952, 3.919233653520661, 3.876777541964344, 5.579732206411743, 2.0264490633456567, 1.5963292193806227, 0.956651296468205, 0.0, 13.627439165629584, 10.523164261150253, 7.9816460969031136, 6.079347190036969, 11.159464412823485, 5.427488558750082, 3.919233653520661, 3.6076449821906795, 5.105204303475412, 3.813639248075371, 2.2406250061262107, 0.8030162131340287, 0.0), # 163 (12.16927974275169, 8.627660043974105, 10.981707380512765, 11.206274408920553, 10.006839202158226, 4.954707528062387, 3.8315272639270197, 3.8038235921168018, 5.476332361618334, 1.9833147694043862, 1.562762208437759, 0.9368725333270206, 0.0, 13.35436234405979, 10.305597866597225, 7.813811042188794, 5.949944308213158, 10.952664723236667, 5.325353028963523, 3.8315272639270197, 3.5390768057588473, 5.003419601079113, 3.735424802973519, 2.1963414761025533, 0.7843327312703733, 0.0), # 164 (11.879947258074031, 8.409414984159142, 10.740137638092254, 10.95192392306614, 9.785085460844787, 4.849236442166116, 3.7378212880012396, 3.7235212387984102, 5.3621935267961875, 1.9368509695151015, 1.5265288891017337, 0.915462461867493, 0.0, 13.057161331885686, 10.070087080542422, 7.632644445508667, 5.810552908545303, 10.724387053592375, 5.2129297343177745, 3.7378212880012396, 3.4637403158329394, 4.892542730422393, 3.6506413076887143, 2.148027527618451, 0.7644922712871949, 0.0), # 165 (11.572057230183715, 8.17938947382885, 10.479774202393392, 10.679218807442627, 9.546378047469258, 4.734917429566179, 3.6385493188196576, 3.636355439862808, 5.2380199683735436, 1.8872909002921108, 1.4878147162992839, 0.8925335264544754, 0.0, 12.737472868177733, 9.817868790999228, 7.4390735814964195, 5.661872700876331, 10.476039936747087, 5.090897615807931, 3.6385493188196576, 3.3820838782615565, 4.773189023734629, 3.5597396024808767, 2.0959548404786785, 0.7435808612571683, 0.0), # 166 (11.24702288300614, 7.938529821782648, 10.201975472440058, 10.389511582829789, 9.291947626490376, 4.6123782024506115, 3.5341449494586072, 3.542811153163632, 5.104515952778639, 1.834867798349722, 1.4468051449571482, 0.8681981714528189, 0.0, 12.396933692006392, 9.550179885981006, 7.23402572478574, 5.504603395049164, 10.209031905557278, 4.959935614429085, 3.5341449494586072, 3.2945558588932937, 4.645973813245188, 3.4631705276099303, 2.040395094488012, 0.7216845292529681, 0.0), # 167 (10.906257440466712, 7.687782336819962, 9.908099847256123, 10.084154770007387, 9.023024862366888, 4.482246473007449, 3.425041772994424, 3.44337333655452, 4.962385746439713, 1.779814900302243, 1.4036856300020644, 0.8425688412273767, 0.0, 12.037180542442131, 9.268257253501142, 7.018428150010321, 5.339444700906728, 9.924771492879426, 4.820722671176328, 3.425041772994424, 3.2016046235767495, 4.511512431183444, 3.361384923335797, 1.9816199694512246, 0.6988893033472693, 0.0), # 168 (10.551174126490828, 7.428093327740216, 9.599505725865463, 9.76450088975519, 8.740840419557543, 4.3451499534247295, 3.3116733825034426, 3.338526947889109, 4.812333615785002, 1.7223654427639818, 1.3586416263607706, 0.8157579801430009, 0.0, 11.659850158555415, 8.97333778157301, 6.793208131803853, 5.167096328291944, 9.624667231570005, 4.673937727044753, 3.3116733825034426, 3.103678538160521, 4.370420209778771, 3.254833629918398, 1.9199011451730927, 0.675281211612747, 0.0), # 169 (10.18318616500389, 7.160409103342831, 9.277551507291953, 9.43190246285296, 8.44662496252108, 4.201716355890488, 3.1944733710619975, 3.228756945021036, 4.655063827242743, 1.6627526623492466, 1.311858588960005, 0.7878780325645439, 0.0, 11.2665792794167, 8.666658358209983, 6.559292944800025, 4.988257987047739, 9.310127654485486, 4.52025972302945, 3.1944733710619975, 3.0012259684932054, 4.22331248126054, 3.1439674876176547, 1.8555103014583907, 0.6509462821220756, 0.0), # 170 (9.8037067799313, 6.88567597242723, 8.943595590559468, 9.087712010080473, 8.141609155716246, 4.052573392592758, 3.0738753317464247, 3.1145482858039375, 4.491280647241173, 1.6012097956723452, 1.2635219727265048, 0.759041442856858, 0.0, 10.859004644096458, 8.349455871425437, 6.317609863632523, 4.803629387017034, 8.982561294482347, 4.360367600125513, 3.0738753317464247, 2.8946952804233987, 4.070804577858123, 3.029237336693492, 1.7887191181118935, 0.6259705429479302, 0.0), # 171 (9.414149195198457, 6.604840243792839, 8.59899637469188, 8.733282052217486, 7.827023663601784, 3.898348775719581, 2.950312857633059, 2.996385928091453, 4.321688342208532, 1.5379700793475863, 1.2138172325870082, 0.7293606553847958, 0.0, 10.438762991665145, 8.022967209232752, 6.069086162935041, 4.613910238042758, 8.643376684417063, 4.194940299328034, 2.950312857633059, 2.7845348397997007, 3.913511831800892, 2.911094017405829, 1.7197992749383764, 0.6004400221629854, 0.0), # 172 (9.015926634730764, 6.31884822623908, 8.245112258713068, 8.369965110043767, 7.504099150636442, 3.739670217458989, 2.824219541798235, 2.874754829737218, 4.146991178573053, 1.4732667499892769, 1.1629298234682535, 0.6989481145132089, 0.0, 10.007491061193234, 7.6884292596452966, 5.8146491173412675, 4.41980024996783, 8.293982357146106, 4.024656761632105, 2.824219541798235, 2.6711930124707064, 3.752049575318221, 2.7899883700145893, 1.6490224517426137, 0.5744407478399164, 0.0), # 173 (8.610452322453618, 6.028646228565374, 7.883301641646902, 7.99911370433908, 7.174066281278959, 3.57716542999902, 2.6960289773182877, 2.7501399485948705, 3.9678934227629785, 1.4073330442117262, 1.1110452002969786, 0.6679162646069503, 0.0, 9.566825591751181, 7.347078910676452, 5.555226001484892, 4.221999132635178, 7.935786845525957, 3.850195928032819, 2.6960289773182877, 2.5551181642850143, 3.5870331406394795, 2.6663712347796937, 1.5766603283293805, 0.5480587480513978, 0.0), # 174 (8.19913948229242, 5.7351805595711465, 7.514922922517262, 7.622080355883197, 6.838155719988082, 3.41146212552771, 2.566174757269552, 2.623026242518047, 3.7850993412065432, 1.3404021986292411, 1.058348817999921, 0.6363775500308723, 0.0, 9.118403322409455, 7.000153050339593, 5.291744089999604, 4.021206595887723, 7.5701986824130865, 3.6722367395252657, 2.566174757269552, 2.4367586610912215, 3.419077859994041, 2.540693451961066, 1.5029845845034526, 0.5213800508701043, 0.0), # 175 (7.783401338172574, 5.43939752805582, 7.141334500348018, 7.240217585455879, 6.497598131222556, 3.2431880162330953, 2.4350904747283635, 2.493898669360387, 3.5993132003319848, 1.2727074498561304, 1.0050261315038191, 0.6044444151498269, 0.0, 8.663860992238513, 6.648888566648095, 5.025130657519095, 3.8181223495683905, 7.1986264006639695, 3.4914581371045417, 2.4350904747283635, 2.3165628687379254, 3.248799065611278, 2.4134058618186267, 1.4282669000696038, 0.49449068436871096, 0.0), # 176 (7.364651114019479, 5.1422434428188195, 6.763894774163046, 6.8548779138368925, 6.1536241794411275, 3.0729708143032117, 2.303209722771056, 2.3632421869755245, 3.411239266567542, 1.2044820345067013, 0.9512625957354108, 0.5722293043286669, 0.0, 8.204835340308824, 6.2945223476153345, 4.756312978677054, 3.6134461035201033, 6.822478533135084, 3.3085390617657344, 2.303209722771056, 2.1949791530737226, 3.0768120897205637, 2.284959304612298, 1.3527789548326095, 0.4674766766198928, 0.0), # 177 (6.944302033758534, 4.8446646126595665, 6.383962142986221, 6.467413861806007, 5.807464529102536, 2.901438231926097, 2.170966094473966, 2.2315417532170994, 3.2215818063414514, 1.1359591891952627, 0.897243665621434, 0.5398446619322442, 0.0, 7.742963105690853, 5.938291281254685, 4.486218328107169, 3.4078775675857873, 6.443163612682903, 3.1241584545039394, 2.170966094473966, 2.072455879947212, 2.903732264551268, 2.1558046206020025, 1.2767924285972443, 0.44042405569632426, 0.0), # 178 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179 ) passenger_allighting_rate = ( (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 0 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 1 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 2 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 3 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 4 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 5 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 6 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 7 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 8 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 9 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 10 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 11 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 12 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 13 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 14 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 15 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 16 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 17 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 18 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 19 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 20 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 21 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 22 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 23 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 24 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 25 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 26 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 27 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 28 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 29 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 30 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 31 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 32 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 33 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 34 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 35 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 36 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 37 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 38 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 39 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 40 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 41 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 42 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 43 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 44 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 45 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 46 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 47 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 48 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 49 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 50 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 51 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 52 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 53 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 54 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 55 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 56 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 57 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 58 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 59 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 60 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 61 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 62 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 63 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 64 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 65 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 66 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 67 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 68 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 69 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 70 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 71 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 72 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 73 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 74 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 75 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 76 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 77 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 78 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 79 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 80 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 81 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 82 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 83 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 84 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 85 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 86 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 87 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 88 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 89 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 90 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 91 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 92 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 93 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 94 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 95 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 96 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 97 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 98 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 99 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 100 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 101 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 102 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 103 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 104 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 105 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 106 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 107 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 108 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 109 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 110 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 111 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 112 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 113 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 114 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 115 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 116 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 117 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 118 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 119 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 120 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 121 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 122 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 123 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 124 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 125 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 126 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 127 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 128 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 129 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 130 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 131 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 132 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 133 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 134 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 135 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 136 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 137 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 138 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 139 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 140 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 141 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 142 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 143 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 144 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 145 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 146 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 147 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 148 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 149 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 150 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 151 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 152 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 153 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 154 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 155 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 156 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 157 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 158 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 159 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 160 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 161 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 162 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 163 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 164 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 165 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 166 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 167 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 168 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 169 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 170 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 171 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 172 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 173 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 174 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 175 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 176 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 177 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 178 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 179 ) """ parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html """ #initial entropy entropy = 8991598675325360468762009371570610170 #index for seed sequence child child_seed_index = ( 1, # 0 57, # 1 )
278.37754
490
0.77131
32,987
260,283
6.08567
0.234032
0.355072
0.340726
0.645586
0.366415
0.361438
0.360671
0.360601
0.360601
0.360601
0
0.851071
0.095027
260,283
934
491
278.675589
0.001184
0.01541
0
0.200873
0
0
0
0
0
0
0
0
0
1
0
false
0.005459
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
27acb9387d8910bee647ac96efff5f5021e9741e
227
py
Python
tests/dataset/simple/simple_formatted_name_match.py
hugovk/reiz.io
26b93fc1e58097bcb97989e916f549a04eb14cae
[ "Apache-2.0" ]
43
2020-09-20T09:37:06.000Z
2021-11-12T11:56:27.000Z
tests/dataset/simple/simple_formatted_name_match.py
hugovk/reiz.io
26b93fc1e58097bcb97989e916f549a04eb14cae
[ "Apache-2.0" ]
37
2020-09-20T09:37:49.000Z
2021-06-25T11:08:38.000Z
tests/dataset/simple/simple_formatted_name_match.py
hugovk/reiz.io
26b93fc1e58097bcb97989e916f549a04eb14cae
[ "Apache-2.0" ]
4
2020-10-04T13:47:06.000Z
2022-01-02T19:35:13.000Z
def a1_foo(): # reiz: tp ... def ___foo(): # reiz: tp ... def a2_foo_bar(): # reiz: tp ... def a__foo____(): # reiz: tp ... def aa1_foo(): ... def aa1foo(): ... def __afoo_bar(): ...
8.407407
29
0.440529
28
227
3
0.392857
0.285714
0.428571
0.428571
0
0
0
0
0
0
0
0.026667
0.339207
227
26
30
8.730769
0.533333
0.154185
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
6
27c2c31cdd3b127bd42fe09f25cd84ae163b1a40
3,061
py
Python
features/steps/secret_steps.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
2
2018-05-23T06:04:13.000Z
2020-11-04T23:16:09.000Z
features/steps/secret_steps.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
null
null
null
features/steps/secret_steps.py
intirix/serverless-secrets-manager
2c89b2c497f7078c38885125dfa79db944a214db
[ "Apache-2.0" ]
null
null
null
from behave import given import json @given(u"I will create a secret") def step_impl(context): context.secret = {} @given(u'the secret field "{name}" is set to "{value}"') def step_impl(context, name, value): context.secret[name] = value @given(u'user "{username}" encrypts the secret into the POST data') def step_impl(context, username): pubKey = context.system.getUserPublicKey(username) aesKey = context.crypto.generateRandomKey() hmacKey = context.crypto.generateRandomKey() bothKeys = aesKey + hmacKey # I don't want to just encrypt {}, I want some randomness in there rnd = context.crypto.encode(context.crypto.generateRandomKey()) context.secret["random"] = rnd # Encrypt an empty secret for now encryptedSecret = context.crypto.encrypt(aesKey, json.dumps(context.secret)) encryptedKey = context.crypto.encryptRSA(pubKey, bothKeys) hmac = context.crypto.createHmac(hmacKey, encryptedSecret) eek = context.crypto.encode(encryptedKey) body = {} if context.event["body"] is not None: body = json.loads(context.event["body"]) body["hmac"] = hmac body["encryptedKey"] = eek body["encryptedSecret"] = encryptedSecret context.event["body"] = json.dumps(body, indent=2) context.event["headers"]["Content-Type"] = "application/json" @given(u'user "{username}" re-encrypts the secret into the POST data') def step_impl(context, username): aesKey = context.aesKey hmacKey = context.hmacKey bothKeys = aesKey + hmacKey # Encrypt an empty secret for now encryptedSecret = context.crypto.encrypt(aesKey, json.dumps(context.secret)) hmac = context.crypto.createHmac(hmacKey, encryptedSecret) body = {} if context.event["body"] is not None: body = json.loads(context.event["body"]) body["hmac"] = hmac body["encryptedSecret"] = encryptedSecret context.event["body"] = json.dumps(body, indent=2) context.event["headers"]["Content-Type"] = "application/json" @given(u'user "{username}" has created a secret') def step_impl(context, username): pubKey = context.system.getUserPublicKey(username) aesKey = context.crypto.generateRandomKey() hmacKey = context.crypto.generateRandomKey() bothKeys = aesKey + hmacKey # I don't want to just encrypt {}, I want some randomness in there rnd = context.crypto.encode(context.crypto.generateRandomKey()) context.secret = {} context.secret["random"] = rnd # Encrypt an empty secret for now encryptedSecret = context.crypto.encrypt(aesKey, json.dumps(context.secret)) encryptedKey = context.crypto.encryptRSA(pubKey, bothKeys) hmac = context.crypto.createHmac(hmacKey, encryptedSecret) eek = context.crypto.encode(encryptedKey) context.sid = context.system.addSecret(username, "1", eek, encryptedSecret, hmac) context.aesKey = aesKey context.hmacKey = hmacKey @given(u'path parameter "{name}" is the secret id') def step_impl(context, name): context.event["pathParameters"][name] = context.sid
33.271739
85
0.704998
370
3,061
5.816216
0.218919
0.108736
0.030669
0.050186
0.809944
0.789498
0.751859
0.751859
0.751859
0.751859
0
0.001182
0.170859
3,061
91
86
33.637363
0.84673
0.073505
0
0.688525
0
0
0.152351
0
0
0
0
0
0
1
0.098361
false
0
0.032787
0
0.131148
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
fd7b9cf16de2efab6d77b107748471c0ab76c214
3,790
py
Python
ccpay/pay/utils.py
rahul08M/python3-ccavenue
cf5c3dfd7128529810f4a879b466a71ee92e5ed4
[ "MIT" ]
2
2021-01-02T09:17:22.000Z
2021-01-18T11:36:18.000Z
ccpay/pay/utils.py
rahul08M/python3-ccavenue
cf5c3dfd7128529810f4a879b466a71ee92e5ed4
[ "MIT" ]
null
null
null
ccpay/pay/utils.py
rahul08M/python3-ccavenue
cf5c3dfd7128529810f4a879b466a71ee92e5ed4
[ "MIT" ]
null
null
null
from Crypto.Cipher import AES import hashlib from binascii import hexlify, unhexlify def pad(data): """ ccavenue method to pad data. :param data: plain text :return: padded data. """ length = 16 - (len(data) % 16) data += chr(length)*length return data def unpad(data): """ ccavenue method to unpad data. :param data: encrypted data :return: plain data """ return data[0:-ord(data[-1])] def encrypt(plain_text, working_key): """ Method to encrypt cc-avenue hash. :param plain_text: plain text :param working_key: cc-avenue working key. :return: md5 hash """ iv = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f' plain_text = pad(plain_text) byte_array_wk = bytearray() byte_array_wk.extend(map(ord, working_key)) enc_cipher = AES.new(hashlib.md5(byte_array_wk).digest(), AES.MODE_CBC, iv) hexl = hexlify(enc_cipher.encrypt(plain_text)).decode('utf-8') return hexl def decrypt(cipher_text, working_key): """ Method decrypt cc-avenue response. :param cipher_text: encrypted data :param working_key: working data :return: list """ cipher_text = '18f8dcf54eb96364648766f36929a396fbd25e0df06ceb1b5cf35a049c49cb6bcc9e836340fa66a2d15a75e7f4b78efbcd353a37c3888bacce04657f15bfd25e42ba4c0550175d113d568cd16f5a1bef0868f5fa15848de75f74d96a50251fe1014a91464bdeb1643b6ba108b8a9c6d52bf3fc6112c11a8c201e1eae294e4cfc33757a0e7dc484011c17b4322ddcf97cd6032c10d50b9045b2876bf82408af068b14682f2a82b40a7710c6a28b8f2ccccb8a26668761c6c0477c4c92beec8340d54390d6e51207d137f213454c5eb71b9ba5c21d618f0b81fa9123f55f3a88f4689bf7c1d69c81c5e1308621bf9a32c01afa05d252835d13d3debdc32b63929c01830f2be39beee49f8acc82618ca0ef633f6dd2f42491d494881f58d129fcab6eb6d6b4a21c0a659d1134df7fa8a1108c63f6b15205aa6ed54f6be13c0de272ab51d81d602a685204928ababe796b7c02846656e7ad23a0b4c5cc0d4fe3ad9cd99659afca0d2c0de2d33e7ec5861b8a7dd0094dcaf24b3f61188979affed9470dad3f17e8f331cec5b7a2b4e018b49ba4a8f6a059cb02539d6b0bc0de1b3e2e108fbade9b8c9a893e210cc127e41f7602b74f398a73375571d6cf6c05bcd66fe079b416359a392901fe197c33f08c08d9a76a6fcc2c104ac61f00f38b417d17236f832a6731dbf548caa1724c676d6b469cebc9b513ce640c0b8474b5eaac381f2cd61bf5b8aa28182c82a6fb71e2f03c426001f535157dd3a30d2b1be26b92e0f44b73ffc719a897deca335a8bc8fa59218ce6dcd53dcfb3122e3662d6523ecde345bdde8ee72e730159a7016dc70f3beb2c36e0031bd23fc3d33b81598f1e2d5815bb8b5752f238e3977d5ff372dc72002d6c8e1b19c31e1a0eb33829346cdee3679d5a24a94f62e7c13c28db644e6886c1abf41101f13e900713aa76be05f3d598f7d3375a31091bc5585e78f09edbb093ff6abf9fe29fe91eb114e39fd4f3075b30c284c349e55744e38ffdea97ba4cf2737ee18cf26607871b0c585903735dd07c76ca9d1210c4ec1a38bced7c26940c80c3f1ff65c06157d9cbf4edf9d8eef8805df5e4aaeb785fe567162ed41fbf49fb8dd188b87477fc68370ccd2b4dd0aa0c54bd4bc09ed0bb90bbd8beda88d038b80bee72a17d6ad59e2719eeda72b788f862b0764fda970a4342d0b372d67e3de99c313b9cf15faf31d61c0876fa2d58bb1597dd0525b61f6ae40ea7a6a1b544cdec600d6a070327194fd74469fcf3993e2f15685074b34e70c1e0a04aeab950cdf4c2ed9f287360227fe16ca84aab9f7b2916690b960b170dffb3f54e8390b170fd8fc8785b687832c0a7a48a' iv = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f' encrypted_text = unhexlify(cipher_text) bytearray_working_key = bytearray() bytearray_working_key.extend(map(ord, working_key)) dec_cipher = AES.new(hashlib.md5(bytearray_working_key).digest(), AES.MODE_CBC, iv) plain_data = unpad(dec_cipher.decrypt(encrypted_text).decode('utf-8')) plain_data_list = plain_data.split('&') final_pay_list = [] for data in plain_data_list: final_pay_dict = {} final_pay_dict[data.split('=')[0]] = data.split('=')[1] final_pay_list.append(final_pay_dict) return final_pay_list
46.219512
1,940
0.834301
269
3,790
11.557621
0.297398
0.032165
0.010614
0.012866
0.072049
0.032165
0.032165
0.032165
0.032165
0.032165
0
0.362327
0.102111
3,790
81
1,941
46.790123
0.551278
0.104222
0
0.0625
0
0.0625
0.625683
0.621736
0
1
0
0
0
1
0.125
false
0
0.09375
0
0.34375
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
6
fd963f608d620e066ecae69e63c0662d14f05ccb
108
py
Python
bostaSDK/pickup/update/__init__.py
bostaapp/bosta-python
df3f48dafac49b2577669fd4d74a5e5e9d28f2c1
[ "MIT" ]
null
null
null
bostaSDK/pickup/update/__init__.py
bostaapp/bosta-python
df3f48dafac49b2577669fd4d74a5e5e9d28f2c1
[ "MIT" ]
1
2020-11-18T11:01:32.000Z
2020-11-18T11:10:52.000Z
bostaSDK/pickup/update/__init__.py
bostaapp/bosta-python
df3f48dafac49b2577669fd4d74a5e5e9d28f2c1
[ "MIT" ]
null
null
null
from .UpdatePickupRequest import UpdatePickupRequest from .UpdatePickupResponse import UpdatePickupResponse
36
54
0.907407
8
108
12.25
0.5
0
0
0
0
0
0
0
0
0
0
0
0.074074
108
2
55
54
0.98
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
fda3f2e2a718fb1e910425152db6e766f493c583
4,731
py
Python
api/users/tests/tests_exporter_super_user_permissions.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/users/tests/tests_exporter_super_user_permissions.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/users/tests/tests_exporter_super_user_permissions.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
from django.urls import reverse from rest_framework import status from api.core.constants import GovPermissions, Roles from test_helpers.clients import DataTestClient from api.users.models import Permission class SuperUserTests(DataTestClient): def test_super_user_role_cannot_be_edited(self): url = reverse( "organisations:role", kwargs={"pk": Roles.EXPORTER_SUPER_USER_ROLE_ID, "org_pk": self.organisation.id} ) data = {"permissions": [GovPermissions.MANAGE_LICENCE_FINAL_ADVICE.name]} response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(self.exporter_super_user_role.permissions.count(), Permission.exporter.all().count()) def test_exporter_default_user_role_cannot_be_edited(self): url = reverse( "organisations:role", kwargs={"pk": Roles.EXPORTER_SUPER_USER_ROLE_ID, "org_pk": self.organisation.id} ) data = {"permissions": [GovPermissions.MANAGE_LICENCE_FINAL_ADVICE.name]} response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(self.exporter_default_role.permissions.count(), 0) def test_super_user_roles_have_all_permissions(self): self.assertEqual(self.super_user_role.permissions.count(), Permission.internal.all().count()) self.assertEqual(self.exporter_super_user_role.permissions.count(), Permission.exporter.all().count()) def test_cannot_remove_super_user_role_from_yourself(self): self.exporter_user.set_role(self.organisation, self.exporter_super_user_role) data = {"role": self.default_role.id} url = reverse("organisations:user", kwargs={"user_pk": self.exporter_user.pk, "org_pk": self.organisation.id}) response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(self.exporter_user.get_role(self.organisation), self.exporter_super_user_role) def test_super_user_role_can_be_removed_by_a_super_user(self): valid_user = self.create_exporter_user(self.organisation) valid_user.save() self.exporter_user.set_role(self.organisation, self.exporter_super_user_role) self.exporter_user.save() data = {"role": self.exporter_default_role.id} url = reverse("organisations:user", kwargs={"user_pk": valid_user.pk, "org_pk": self.organisation.id}) response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(valid_user.get_role(self.organisation), self.exporter_default_role) def test_super_user_role_cannot_be_removed_by_someone_without_super_user_role(self): valid_user = self.create_exporter_user(self.organisation, role=self.exporter_super_user_role) valid_user.save() data = {"role": self.default_role.id} url = reverse("organisations:user", kwargs={"user_pk": valid_user.pk, "org_pk": self.organisation.id}) response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(valid_user.get_role(self.organisation), self.exporter_super_user_role) def test_super_user_can_assign_super_user_role(self): valid_user = self.create_exporter_user(self.organisation) valid_user.save() self.exporter_user.set_role(self.organisation, self.exporter_super_user_role) self.exporter_user.save() data = {"role": self.exporter_super_user_role.id} url = reverse("organisations:user", kwargs={"user_pk": valid_user.pk, "org_pk": self.organisation.id}) response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(valid_user.get_role(self.organisation), self.exporter_super_user_role) def test_cannot_assign_super_user_without_super_user_role(self): valid_user = self.create_exporter_user(self.organisation, role=self.exporter_default_role) valid_user.save() data = {"role": self.exporter_super_user_role.id} url = reverse("organisations:user", kwargs={"user_pk": valid_user.pk, "org_pk": self.organisation.id}) response = self.client.put(url, data, **self.exporter_headers) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(valid_user.get_role(self.organisation), self.exporter_default_role)
49.8
118
0.740435
619
4,731
5.323102
0.127625
0.109256
0.082853
0.082853
0.862215
0.860091
0.84431
0.824279
0.824279
0.824279
0
0.005473
0.150285
4,731
94
119
50.329787
0.814179
0
0
0.661765
0
0
0.052632
0
0
0
0
0
0.235294
1
0.117647
false
0
0.073529
0
0.205882
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
fdecef428bdb192cd235b48cdcf20036536b28dd
76
py
Python
main/web_apps_examples/__init__.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/web_apps_examples/__init__.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/web_apps_examples/__init__.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
from map import * from online_learning import * from it_lending_log import *
25.333333
29
0.815789
12
76
4.916667
0.666667
0.338983
0
0
0
0
0
0
0
0
0
0
0.144737
76
3
30
25.333333
0.907692
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e3023fe4eb058190246bc85712a265d7bdfaa9f9
35
py
Python
auth0/v3/__init__.py
santiagoroman/auth0-python
b88b056d0c68eb26a1171f33273010faf8fefe63
[ "MIT" ]
2
2020-10-08T21:42:56.000Z
2021-03-21T08:17:52.000Z
auth0/v3/__init__.py
santiagoroman/auth0-python
b88b056d0c68eb26a1171f33273010faf8fefe63
[ "MIT" ]
null
null
null
auth0/v3/__init__.py
santiagoroman/auth0-python
b88b056d0c68eb26a1171f33273010faf8fefe63
[ "MIT" ]
1
2018-12-02T18:47:47.000Z
2018-12-02T18:47:47.000Z
from .exceptions import Auth0Error
17.5
34
0.857143
4
35
7.5
1
0
0
0
0
0
0
0
0
0
0
0.032258
0.114286
35
1
35
35
0.935484
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e3437d3aa51e1fae9c233d8a7c9b70cbbb1d4bff
155
py
Python
wrappers/python/src/python/readdy/util/platform_utils.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
51
2015-02-24T18:19:34.000Z
2022-03-30T06:57:47.000Z
wrappers/python/src/python/readdy/util/platform_utils.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
81
2016-05-25T22:29:39.000Z
2022-03-28T14:22:18.000Z
wrappers/python/src/python/readdy/util/platform_utils.py
readdy/readdy
ef400db60a29107672a7f2bc42f6c3db4de34eb0
[ "BSD-3-Clause" ]
15
2015-03-10T03:16:49.000Z
2021-10-11T11:26:39.000Z
def get_readdy_plugin_dir(): import os from pathlib import Path return (Path(os.environ["CONDA_PREFIX"]) / 'lib' / 'readdy_plugins').resolve()
31
82
0.696774
21
155
4.904762
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.167742
155
4
83
38.75
0.79845
0
0
0
0
0
0.187097
0
0
0
0
0
0
1
0.25
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
8b518ab396a6f9cd05ac525a893ce466b44d751c
47
py
Python
test/test_plaform.py
CSD-AI/Integrated-detection-and-pedestrian-re-identification-system
3e19e692f2d182e62d9881c78d0b612da1c39ce2
[ "Apache-2.0" ]
2
2021-08-05T06:20:50.000Z
2021-09-14T02:03:08.000Z
test/test_plaform.py
lazyand/ccccAI
2d279a0ef261d10ef051b3685e041223193f81b5
[ "Apache-2.0" ]
1
2021-12-22T02:00:50.000Z
2021-12-22T02:00:50.000Z
test/test_plaform.py
lazyand/ccccAI
2d279a0ef261d10ef051b3685e041223193f81b5
[ "Apache-2.0" ]
1
2021-12-21T12:55:44.000Z
2021-12-21T12:55:44.000Z
import platform print(platform.uname().system)
15.666667
30
0.808511
6
47
6.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.06383
47
3
30
15.666667
0.863636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
8ba60d619721c9365c112c8f447f8cd7a15ff529
139
py
Python
Lab_5/Test Task_1.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
1
2022-01-12T21:48:23.000Z
2022-01-12T21:48:23.000Z
Lab_5/Test Task_1.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
Lab_5/Test Task_1.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
from Task_1 import * def test_chop(): assert chop([1,2,3,4,5]) == [1,5] assert chop([1,2]) == [1,2] test_chop() print("Pass")
17.375
37
0.553957
26
139
2.846154
0.538462
0.081081
0.297297
0.324324
0
0
0
0
0
0
0
0.109091
0.208633
139
8
38
17.375
0.563636
0
0
0
0
0
0.028571
0
0
0
0
0
0.333333
1
0.166667
true
0.166667
0.166667
0
0.333333
0.166667
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
1
0
0
0
0
0
6
47bde2cdc1475cf863e84b59d38e40392d27519b
31
py
Python
__init__.py
physicalit/pyindex_domains
4e85cd012876054577aaa23799fdcb16ef6fc28a
[ "MIT" ]
null
null
null
__init__.py
physicalit/pyindex_domains
4e85cd012876054577aaa23799fdcb16ef6fc28a
[ "MIT" ]
null
null
null
__init__.py
physicalit/pyindex_domains
4e85cd012876054577aaa23799fdcb16ef6fc28a
[ "MIT" ]
null
null
null
from .pyindex_domains import *
15.5
30
0.806452
4
31
6
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
47f4b56857319c9f4f7dbd992af5f88b90193760
29
py
Python
SAMPLE.py
Jeevananthamcse/Python-programs
b7847e25854b3ae95933edffcb141ef71185960a
[ "Unlicense" ]
2
2021-08-30T08:04:15.000Z
2022-02-27T12:47:25.000Z
SAMPLE.py
Jeevananthamcse/Python-programs
b7847e25854b3ae95933edffcb141ef71185960a
[ "Unlicense" ]
null
null
null
SAMPLE.py
Jeevananthamcse/Python-programs
b7847e25854b3ae95933edffcb141ef71185960a
[ "Unlicense" ]
null
null
null
print("ENTER THE NUMBER :")
14.5
28
0.655172
4
29
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.172414
29
1
29
29
0.791667
0
0
0
0
0
0.642857
0
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
6
9a2e1dd058cc50fc91d538a1b61db036145a9e74
70
py
Python
src/image/__init__.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
src/image/__init__.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
src/image/__init__.py
vmariiechko/python-image-processing
5613440dc04140845600b8c37a2b28786d504815
[ "MIT" ]
null
null
null
from .image import Image, ImageWindow from .image_bmp import ImageBmp
23.333333
37
0.828571
10
70
5.7
0.6
0.315789
0
0
0
0
0
0
0
0
0
0
0.128571
70
2
38
35
0.934426
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9a4740e1c45a38dae91b9e9b903c57d331949f35
74
py
Python
djpagan/czech/forms.py
carthage-college/django-djpagan
bdc6f07e6822fb982b96fd68ea6b69d897b29b09
[ "MIT" ]
null
null
null
djpagan/czech/forms.py
carthage-college/django-djpagan
bdc6f07e6822fb982b96fd68ea6b69d897b29b09
[ "MIT" ]
8
2020-06-05T19:15:10.000Z
2021-11-30T19:32:09.000Z
djpagan/czech/forms.py
carthage-college/django-djpagan
bdc6f07e6822fb982b96fd68ea6b69d897b29b09
[ "MIT" ]
null
null
null
from django import forms class ReimbursementForm(forms.Form): pass
10.571429
36
0.756757
9
74
6.222222
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.189189
74
6
37
12.333333
0.933333
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
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
9a55fafe2607f7ff219086d07082539c34f1dec8
6,973
py
Python
office365/reports/report_root.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/reports/report_root.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/reports/report_root.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.entity import Entity from office365.reports.internal.queries.create_report_query import create_report_query class ReportRoot(Entity): """The resource that represents an instance of History Reports.""" def get_email_activity_counts(self, period): """ Enables you to understand the trends of email activity (like how many were sent, read, and received) in your organization. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getEmailActivityCounts", period) self.context.add_query(qry) return qry.return_type def get_email_activity_user_counts(self, period): """ Enables you to understand trends on the number of unique users who are performing email activities like send, read, and receive. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getEmailActivityUserCounts", period) self.context.add_query(qry) return qry.return_type def get_office365_activations_user_counts(self): """ Get the count of Microsoft 365 activations on desktops and devices. """ qry = create_report_query(self, "getOffice365ActivationsUserCounts") self.context.add_query(qry) return qry.return_type def get_onedrive_activity_file_counts(self, period): """ Get the number of unique, licensed users that performed file interactions against any OneDrive account. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getOneDriveActivityFileCounts", period) self.context.add_query(qry) return qry.return_type def get_onedrive_activity_user_counts(self, period): """ Get the trend in the number of active OneDrive users. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getOneDriveActivityUserCounts", period) self.context.add_query(qry) return qry.return_type def get_onedrive_activity_user_detail(self, period): """ Get details about OneDrive activity by user. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getOneDriveActivityUserDetail", period) self.context.add_query(qry) return qry.return_type def get_onedrive_usage_file_counts(self, period): """ Get the total number of files across all sites and how many are active files. A file is considered active if it has been saved, synced, modified, or shared within the specified time period. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getOneDriveUsageFileCounts", period) self.context.add_query(qry) return qry.return_type def get_onedrive_usage_storage(self, period): """ Get the trend on the amount of storage you are using in OneDrive for Business. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getOneDriveUsageStorage", period) self.context.add_query(qry) return qry.return_type def get_sharepoint_activity_pages(self, period): """ Get the number of unique pages visited by users. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getSharePointActivityPages", period) self.context.add_query(qry) return qry.return_type def get_sharepoint_activity_user_counts(self, period): """ Get the trend in the number of active users. A user is considered active if he or she has executed a file activity (save, sync, modify, or share) or visited a page within the specified time period. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getSharePointActivityUserCounts", period) self.context.add_query(qry) return qry.return_type def get_sharepoint_activity_user_detail(self, period): """ Get details about SharePoint activity by user. :param str period: Specifies the length of time over which the report is aggregated. The supported values for {period_value} are: D7, D30, D90, and D180. These values follow the format Dn where n represents the number of days over which the report is aggregated. Required. """ qry = create_report_query(self, "getSharePointActivityUserDetail", period) self.context.add_query(qry) return qry.return_type
49.453901
113
0.691381
934
6,973
5.055675
0.159529
0.041931
0.050826
0.076239
0.758577
0.746506
0.738882
0.71008
0.69695
0.69695
0
0.018185
0.250825
6,973
140
114
49.807143
0.88572
0.568765
0
0.468085
0
0
0.123232
0.123232
0
0
0
0
0
1
0.234043
false
0
0.042553
0
0.531915
0
0
0
0
null
0
0
0
0
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
1
0
0
0
0
1
0
0
6
d00deec75eca97d0baf5e34cfc73cf72b03b1e79
1,292
py
Python
tests/test_rhf_mp2.py
bzhang25/QM_2017_SSS_Team9_new-
13af70caeadd75fc539523d04c8b7e5fa68cdc2f
[ "BSD-3-Clause" ]
null
null
null
tests/test_rhf_mp2.py
bzhang25/QM_2017_SSS_Team9_new-
13af70caeadd75fc539523d04c8b7e5fa68cdc2f
[ "BSD-3-Clause" ]
null
null
null
tests/test_rhf_mp2.py
bzhang25/QM_2017_SSS_Team9_new-
13af70caeadd75fc539523d04c8b7e5fa68cdc2f
[ "BSD-3-Clause" ]
null
null
null
""" Testing """ import rhf import pytest import psi4 import numpy as np def test_rhf_mp2(): """ This function tests the rhf module with MP2 correction """ mol = psi4.geometry(""" O H 1 1.1 H 1 1.1 2 104 symmetry c1 """ ) bas = 'cc-pvdz' options = {'energy_conv' : 1.0e-6, 'density_conv' : 1.0e-6, 'max_iter' : 25, 'diis' : 'off', 'nelec' : 10, 'damping' : 'off', 'scs-mp2' : 'off'} molecule = rhf.RHF(mol, bas, options) molecule.get_energy() e_mp2 = rhf.mp2(molecule, molecule.E, options) psi4_energy = psi4.energy('mp2/'+bas, molecule = mol) assert np.allclose(psi4_energy, e_mp2, 1e-04) def test_rhf_mp2_scs(): """ This function tests the rhf module with MP2 correction """ mol = psi4.geometry(""" O H 1 1.1 H 1 1.1 2 104 symmetry c1 """ ) bas = 'cc-pvdz' options = {'energy_conv' : 1.0e-6, 'density_conv' : 1.0e-6, 'max_iter' : 25, 'diis' : 'off', 'nelec' : 10, 'damping' : 'off', 'scs-mp2' : 'on'} molecule = rhf.RHF(mol, bas, options) molecule.get_energy() e_mp2 = rhf.mp2(molecule, molecule.E, options) psi4_energy = psi4.energy('mp2/'+bas, molecule = mol) assert np.allclose(psi4_energy, e_mp2, 1e-04)
21.533333
83
0.574303
190
1,292
3.794737
0.278947
0.022191
0.016644
0.022191
0.879334
0.879334
0.879334
0.879334
0.879334
0.879334
0
0.075212
0.26935
1,292
59
84
21.898305
0.688559
0.090557
0
0.666667
0
0
0.229754
0
0
0
0
0
0.055556
1
0.055556
false
0
0.111111
0
0.166667
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
d085c3a958591550fc45d3f1347b7295b4425b70
21
py
Python
backend/config/__init__.py
uwer/coco-annotator
03f33aee2f1bb00c3b5f93b299f7c45dd7ab36d4
[ "MIT" ]
1,584
2018-09-03T21:40:32.000Z
2022-03-24T23:43:28.000Z
backend/config/__init__.py
uwer/coco-annotator
03f33aee2f1bb00c3b5f93b299f7c45dd7ab36d4
[ "MIT" ]
458
2018-09-04T03:15:00.000Z
2022-03-31T11:53:37.000Z
backend/config/__init__.py
uwer/coco-annotator
03f33aee2f1bb00c3b5f93b299f7c45dd7ab36d4
[ "MIT" ]
415
2018-10-13T12:34:40.000Z
2022-03-28T14:57:07.000Z
from .config import *
21
21
0.761905
3
21
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
d0a4dfa0228d2b5b154eef8d740c7e3d0964e876
243
py
Python
core/api/permissions.py
martbln/django-service-boilerplate
1e6e584e751a48f460edb6b6db0bb55c53a3c200
[ "MIT" ]
18
2018-03-07T09:27:38.000Z
2022-01-06T18:44:29.000Z
core/api/permissions.py
martbln/django-service-boilerplate
1e6e584e751a48f460edb6b6db0bb55c53a3c200
[ "MIT" ]
292
2018-02-09T12:27:53.000Z
2022-03-11T23:11:58.000Z
core/api/permissions.py
martbln/django-service-boilerplate
1e6e584e751a48f460edb6b6db0bb55c53a3c200
[ "MIT" ]
11
2018-01-30T00:01:51.000Z
2020-12-28T12:07:47.000Z
from rest_framework import permissions class DjangoModelViewPermission(permissions.DjangoModelPermissions): perms_map = {**permissions.DjangoModelPermissions.perms_map, **{'GET': ['%(app_label)s.view_%(model_name)s']}}
30.375
68
0.73251
23
243
7.478261
0.73913
0.383721
0.44186
0.476744
0
0
0
0
0
0
0
0
0.144033
243
7
69
34.714286
0.826923
0
0
0
0
0
0.148148
0.135802
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
6
d0f9c2a53c8c8cd0755867d1ca8e58ad5b50dab7
14,377
py
Python
Motif_Mark.py
lnassar/motif-mark
c1570362ff19c5f7e428ab49e72e907d6bd948c4
[ "MIT" ]
null
null
null
Motif_Mark.py
lnassar/motif-mark
c1570362ff19c5f7e428ab49e72e907d6bd948c4
[ "MIT" ]
null
null
null
Motif_Mark.py
lnassar/motif-mark
c1570362ff19c5f7e428ab49e72e907d6bd948c4
[ "MIT" ]
null
null
null
#!/usr/bin/python import re import cairo import random import argparse parser = argparse.ArgumentParser(description='Given a Fasta file with uppercase exons and a text file with one motif per line, creates an svg image depicting each sequence intronic and exonic region with matching motif regions. NOTE: Uses random color generation, if two motifs share colors that are too similar, please rerun script.') parser.add_argument('-f', '--fasta', metavar='Fasta File Path', required=True,type=str, help='Absolute file path to Fasta file') parser.add_argument('-m', '--motif', metavar='Motif File Path', required=True,type=str, help='Absolute file path to motif file') parser.add_argument('-n', '--name', metavar='Output Image Name', type=str, default=False, help='Optional: Provides the name for the output svg image file') parser = parser.parse_args() if parser.name is False: #Add our conditional to check if a custom name was passed FileName = "Sequence_Motif" else: FileName = parser.name #Set our passed variables InputFile = parser.fasta InputMotifFile = parser.motif ############################ #Define our functions #Fixes any ambiguous bases in our motifs for use in your regular expression def motif_fixer (motif): motif = motif.upper() motif = motif.replace('Y','[CT]') motif = motif.replace('R','[AU]') motif = motif.replace('S','[GC]') motif = motif.replace('W','[AT]') motif = motif.replace('K','[GT]') motif = motif.replace('M','[AC]') motif = motif.replace('B','[CGT]') motif = motif.replace('D','[AGT]') motif = motif.replace('H','[ACT]') motif = motif.replace('V','[ACG]') motif = motif.replace('N','.') return motif #Draws our exons and motifs, depending on start/end sites def draw_line(x,y,start,stop): context.move_to(x+start,y) context.line_to(x+stop,y) context.stroke() #Draws our legend def draw_legend(r,g,b,n,motif): context.set_source_rgb(r,g,b) context.rectangle(n,10,10,10) context.fill() context.set_source_rgb(0,0,0) context.move_to(n + 11,17) context.show_text(motif) n = n + 10*(len(motif)) return(n) #Exonseq looks for the exons by searching for capital letters within the sequence looking for uppercase #letters that are grouped together, not a function but a compiled reg-expression search exonseq = re.compile("[A-Z]{1,}") ############################ #If our fasta file is multi-line, we now convert it into a single header + sequence line file #First we find the total number of lines in the file to account for the final line total_lines = 0 fh = open(InputFile) for lines in fh: total_lines+=1 fh.close() #We iterate through our file and join all sequence lines, also makes our file into an iterable list fh = open(InputFile) sequence = "" InputFasta = [] n=0 for lines in fh: lines = lines.rstrip() n+=1 if n == 1: #Exception for first line InputFasta.append(lines) sequence = "" elif n == total_lines: #Exception for last line sequence = sequence + lines InputFasta.append(sequence) elif lines.startswith(">"): InputFasta.append(sequence) InputFasta.append(lines) sequence = "" elif not lines.startswith(">"): sequence = sequence + lines fh.close() ############################ #Go through both of our input motif and fasta file in order to see how many genes/motifs we'll be looking at in total #so we can create our plot with sufficient room and colors. Additionally create a list of our fixed motifs(fix ambiguousness) #Open our fasta file to count the number of genes to find the longest present and account for plot Y axis entrylength = 0 nlines = 0 for lines in InputFasta: if not lines.startswith(">"): nlines+=1 if len(lines) > entrylength: entrylength = len(lines) #Open our motif file and create a list with fixed (no ambiguous bases) motifs InputMotif = open(InputMotifFile) motifs = [] for motif in InputMotif: motif = motif.rstrip() motifs.append(motif_fixer(motif)) InputMotif.close() #Create three lists pertaining to the colors that will be used to represent each individual motif red = [] green = [] blue = [] for motif in motifs: red.append(random.randint(0,100)/100) green.append(random.randint(0,100)/100) blue.append(random.randint(0,100)/100) ############################ #Create our base x and y draw values and initiate our cairo surface by the calculated values x = 25 #This can be used to tune how far fromt he margin we wish to start our images/writing y = 0 surface = cairo.SVGSurface(FileName+".svg", entrylength+(x*2), (nlines*50)+50) context = cairo.Context(surface) context.set_font_size(8) #Draw a legend of what each motif color means n = 25 #Decides how far down the y acis we wish to start our legend for motif,r,g,b in zip(motifs,red,green,blue): if n == 25: n = draw_legend(r,g,b,n,motif) else: n = draw_legend(r,g,b,n,motif) ############################ #The way we will draw the exons will be to first draw an entire line to signify the whole gene (introns) then for each position in which #an upper case character was found (exon), we will draw a vertical line. Then we will look at the motifs and draw different #colored horizontal lines through each respective site for lines in InputFasta: if lines.startswith(">"): #Begin by adding the header above each gene that will be ploted y = y + 50 context.set_source_rgb(0,0,0) context.move_to(x,y-15) context.show_text(lines) if not lines.startswith(">"): #Draws our 'intron' line which is simply a line the length of our sequence context.set_line_width(1) context.move_to(x,y) context.line_to(x+len(lines),y) context.stroke() #We set our line width to 10 since we will draw our motifs and exons much wider context.set_line_width(10) #Set and reset our exon start and end variables for each sequence exonstart = [] exonend = [] #Look through our current line and save all the exon start and stop locations for bases in exonseq.finditer(lines): #Save the location of every uppercase character in the sequence exonstart.append(bases.start()+1) #In order to account for 0 based python counts, we used start + 1 exonend.append(bases.end()) for start, stop in zip(exonstart,exonend): #Iterate through our start and stop sites to draw our exons draw_line(x,y,start,stop) #Additionall we change our sequence lines to uppercase as the regular expressions are looking for uppercase characters lines = lines.upper() #Iterate through our motif list, as well as the corresponding colors for each motif for motif,r,g,b in zip(motifs,red,green,blue): #Set and reset our motif stard and end locations for each motif motifstart = [] motifend = [] motifseq = re.compile(motif,) #Compile our reg-ex search to match for each specific motif for bases in motifseq.finditer(lines): motifstart.append(bases.start()+1) #In order to account for 0 based python counts, we used start + 1 motifend.append(bases.end()) for start, stop in zip(motifstart,motifend): #Iterate through our start and stop sites to draw our motifs context.set_source_rgb(r,g,b) draw_line(x,y,start,stop) # In[264]: # #This is the code without the argparse for debugging purposes # #!/usr/bin/python # import re # import cairo # import random # InputFile = "sequence.txt" # InputMotifFile = "motifs2.txt" # FileName = "FileName" # ############################ # #Define our functions # #Fixes any ambiguous bases in our motifs for use in your regular expression # def motif_fixer (motif): # motif = motif.upper() # motif = motif.replace('Y','[CT]') # motif = motif.replace('R','[AU]') # motif = motif.replace('S','[GC]') # motif = motif.replace('W','[AT]') # motif = motif.replace('K','[GT]') # motif = motif.replace('M','[AC]') # motif = motif.replace('B','[CGT]') # motif = motif.replace('D','[AGT]') # motif = motif.replace('H','[ACT]') # motif = motif.replace('V','[ACG]') # motif = motif.replace('N','.') # return motif # #Draws our exons and motifs, depending on start/end sites # def draw_line(x,y,start,stop): # context.move_to(x+start,y) # context.line_to(x+stop,y) # context.stroke() # #Draws our legend # def draw_legend(r,g,b,n,motif): # context.set_source_rgb(r,g,b) # context.rectangle(n,10,10,10) # context.fill() # context.set_source_rgb(0,0,0) # context.move_to(n + 11,17) # context.show_text(motif) # n = n + 10*(len(motif)) # return(n) # ############################ # #If our fasta file is multi-line, we now convert it into a single header + sequence line file # #First we find the total number of lines in the file to account for the final line # total_lines = 0 # fh = open(InputFile) # for lines in fh: # total_lines+=1 # fh.close() # #We iterate through our file and join all sequence lines, also makes our file into an iterable list # fh = open(InputFile) # sequence = "" # InputFasta = [] # n=0 # for lines in fh: # lines = lines.rstrip() # n+=1 # if n == 1: #Exception for first line # InputFasta.append(lines) # sequence = "" # elif n == total_lines: #Exception for last line # sequence = sequence + lines # InputFasta.append(sequence) # elif lines.startswith(">"): # InputFasta.append(sequence) # InputFasta.append(lines) # sequence = "" # elif not lines.startswith(">"): # sequence = sequence + lines # fh.close() # ############################ # #Go through both of our input motif and fasta file in order to see how many genes/motifs we'll be looking at in total # #so we can create our plot with sufficient room and colors. Additionally create a list of our fixed motifs # #Open our fasta file to count the number of genes to find the longest present and account for plot Y axis # entrylength = 0 # nlines = 0 # for lines in InputFasta: # if not lines.startswith(">"): # nlines+=1 # if len(lines) > entrylength: # entrylength = len(lines) # #Open our motif file and create a list with fixed (no ambiguous bases) motifs # InputMotif = open(InputMotifFile) # motifs = [] # for motif in InputMotif: # motif = motif.rstrip() # motifs.append(motif_fixer(motif)) # InputMotif.close() # #Create three lists pertaining to the colors that will be used to represent each individual motif # red = [] # green = [] # blue = [] # for motif in motifs: # red.append(random.randint(0,100)/100) # green.append(random.randint(0,100)/100) # blue.append(random.randint(0,100)/100) # ############################ # #Create our base x and y draw values and initiate our cairo surface by the calculated values # x = 25 # y = 0 # surface = cairo.SVGSurface(FileName+".svg", entrylength+(x*2), (nlines*50)+50) # context = cairo.Context(surface) # context.set_font_size(8) # #Exonseq looks for the exons by searching for capital letters within the sequence # exonseq = re.compile("[A-Z]") # #Draw a legend of what each motif color means # n = 25 # for motif,r,g,b in zip(motifs,red,green,blue): # if n == 25: # n = draw_legend(r,g,b,n,motif) # else: # n = draw_legend(r,g,b,n,motif) # ############################ # #The way we will draw the exons will be to first draw an entire line to signify the whole gene (introns) then for each position in which # #an upper case character was found (exon), we will draw a vertical line. Then we will look at the motifs and draw different # #colored horizontal lines through each respective site # for lines in InputFasta: # if lines.startswith(">"): #Begin by adding the header above each gene that will be ploted # y = y + 50 # context.set_source_rgb(0,0,0) # context.move_to(x,y-15) # context.show_text(lines) # if not lines.startswith(">"): #Start by drawing our 'intron' line which is simply a line the length of our sequence # context.set_line_width(1) # context.move_to(x,y) # context.line_to(x+len(lines),y) # context.stroke() # #We set our line width to 10 since we will draw our motifs and exons to look pronounced # context.set_line_width(10) # #Compite our regular expression search that looks for uppercase letters that are grouped together # exonseq = re.compile("[A-Z]{1,}") # exonstart = [] # exonend = [] # #Look through our current line and save all the exon start and stop locations # for bases in exonseq.finditer(lines): #Save the location of every uppercase character in the sequence # exonstart.append(bases.start()+1) #In order to account for 0 based python counts, we used start + 1 # exonend.append(bases.end()) # for start, stop in zip(exonstart,exonend): #Iterate through our start and stop sites to draw our exons # draw_line(x,y,start,stop) # #Additionall we change our sequence lines to uppercase as the regular expressions are looking for uppercase characters # lines = lines.upper() # #Iterate through our motif list, as well as the corresponding colors for each motif # for motif,r,g,b in zip(motifs,red,green,blue): # motifstart = [] #to be moved # motifend = [] #to be moved # motifseq = re.compile(motif,) # for bases in motifseq.finditer(lines): # motifstart.append(bases.start()+1) #In order to account for 0 based python counts, we used start + 1 # motifend.append(bases.end()) # for start, stop in zip(motifstart,motifend): #Iterate through our start and stop sites to draw our motifs # context.set_source_rgb(r,g,b) # draw_line(x,y,start,stop)
38.135279
335
0.646241
2,096
14,377
4.398855
0.160305
0.030369
0.040564
0.016486
0.861822
0.851844
0.847722
0.838829
0.838829
0.829501
0
0.014104
0.230646
14,377
376
336
38.236702
0.819456
0.627321
0
0.255814
0
0.007752
0.117344
0
0
0
0
0
0
1
0.023256
false
0
0.031008
0
0.062016
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ef9295900b258183dbefc9f486667af692c1c716
27,795
py
Python
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/api/database_rollover_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/api/database_rollover_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/api/database_rollover_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Prices API Gain access to comprehensive global coverage for Equities & Fixed Income. Perform quick analytics by controlling the date ranges, currencies, and rolling periods, or simply request Open, High, Low, and Close prices. Easily connect pricing data with other core company data or alternative content sets using FactSet's hub and spoke symbology. <p>Equity and Fund Security types include Common Stock, ADR, GDR, Preferred, Closed-ended Fund, Exchange Traded Fund, Unit, Open-ended Fund, Exchange Traded Fund UVI, Exchange Traded Fund NAV, Preferred Equity, Non-Voting Depositary Receipt/Certificate, Alien/Foreign, Structured Product, and Temporary Instruments. Reference over 180,000+ active and inactive securities.</p><p>Fixed Income Security Types include Corporate Bonds, Treasury and Agency bonds, Government Bonds, and Municipals.</p> # noqa: E501 The version of the OpenAPI document: 1.2.1 Contact: api@factset.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from multiprocessing.pool import ApplyResult import typing from fds.sdk.FactSetPrices.api_client import ApiClient, Endpoint as _Endpoint from fds.sdk.FactSetPrices.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from fds.sdk.FactSetPrices.exceptions import ApiException from fds.sdk.FactSetPrices.model.error_response import ErrorResponse from fds.sdk.FactSetPrices.model.rollover_response import RolloverResponse class DatabaseRolloverApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client self.get_database_rollover_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (RolloverResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 415: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/factset-prices/v1/database-rollover', 'operation_id': 'get_database_rollover', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { }, 'attribute_map': { }, 'location_map': { }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.get_database_rollover_for_list_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (RolloverResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 415: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/factset-prices/v1/database-rollover', 'operation_id': 'get_database_rollover_for_list', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ ], 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { }, 'attribute_map': { }, 'location_map': { }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) @staticmethod def apply_kwargs_defaults(kwargs, return_http_data_only, async_req): kwargs["async_req"] = async_req kwargs["_return_http_data_only"] = return_http_data_only kwargs["_preload_content"] = kwargs.get("_preload_content", True) kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") def get_database_rollover( self, **kwargs ) -> RolloverResponse: """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: RolloverResponse Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) return self.get_database_rollover_endpoint.call_with_http_info(**kwargs) def get_database_rollover_with_http_info( self, **kwargs ) -> typing.Tuple[RolloverResponse, int, typing.MutableMapping]: """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: RolloverResponse Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) return self.get_database_rollover_endpoint.call_with_http_info(**kwargs) def get_database_rollover_async( self, **kwargs ) -> "ApplyResult[RolloverResponse]": """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[RolloverResponse] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) return self.get_database_rollover_endpoint.call_with_http_info(**kwargs) def get_database_rollover_with_http_info_async( self, **kwargs ) -> "ApplyResult[typing.Tuple[RolloverResponse, int, typing.MutableMapping]]": """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(RolloverResponse, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) return self.get_database_rollover_endpoint.call_with_http_info(**kwargs) def get_database_rollover_for_list( self, **kwargs ) -> RolloverResponse: """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: RolloverResponse Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) return self.get_database_rollover_for_list_endpoint.call_with_http_info(**kwargs) def get_database_rollover_for_list_with_http_info( self, **kwargs ) -> typing.Tuple[RolloverResponse, int, typing.MutableMapping]: """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: RolloverResponse Response Object int Http Status Code dict Dictionary of the response headers """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False) return self.get_database_rollover_for_list_endpoint.call_with_http_info(**kwargs) def get_database_rollover_for_list_async( self, **kwargs ) -> "ApplyResult[RolloverResponse]": """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[RolloverResponse] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) return self.get_database_rollover_for_list_endpoint.call_with_http_info(**kwargs) def get_database_rollover_for_list_with_http_info_async( self, **kwargs ) -> "ApplyResult[typing.Tuple[RolloverResponse, int, typing.MutableMapping]]": """Gets the latest relative rollover date for the database. # noqa: E501 Gets zero relative date and last update time for FactSet databases. The dates represent the date that the rollover event happened; the date and time is in **eastern time zone**. <p>Depending on the ids requested and their respective regions, a requested startDate or endDate used in the various Prices API may reflect different previous close dates. This relative \"zero\" date, meaning - as of yesterday's close - will vary across global regions. This API is designed to help production systems account for regional rollover dates to know when to trigger their processes for different regions to reflect the latest close. The response gives context for AMERICAS, ASIA PACIFIC, and EUROPE. </p> # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Keyword Args: _preload_content (bool): if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. _request_timeout (int/float/tuple): timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None. _check_input_type (bool): specifies if type checking should be done one the data sent to the server. Default is True. _check_return_type (bool): specifies if type checking should be done one the data received from the server. Default is True. _spec_property_naming (bool): True if the variable names in the input data are serialized names, as specified in the OpenAPI document. False if the variable names in the input data are pythonic names, e.g. snake case (default) _content_type (str/None): force body content-type. Default is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[(RolloverResponse, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) return self.get_database_rollover_for_list_endpoint.call_with_http_info(**kwargs)
57.073922
856
0.639755
3,420
27,795
5.082749
0.095322
0.024852
0.017949
0.017488
0.899154
0.888052
0.888052
0.887649
0.883967
0.883967
0
0.006034
0.302393
27,795
486
857
57.191358
0.890459
0.672675
0
0.59887
0
0
0.150576
0.059292
0
0
0
0
0
1
0.056497
false
0
0.050847
0
0.158192
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
efa88fa24b2ca0d4e8b1227f03037e819e86c2d3
2,328
py
Python
loss/losses.py
FFTYYY/RoR_relation_extraction
a099e98f3708a39debeed4dc522ff57c4f6b960d
[ "MIT" ]
25
2020-06-09T01:25:14.000Z
2021-12-22T10:47:18.000Z
loss/losses.py
FFTYYY/RoR_relation_extraction
a099e98f3708a39debeed4dc522ff57c4f6b960d
[ "MIT" ]
7
2020-06-21T08:32:26.000Z
2021-08-04T08:39:10.000Z
loss/losses.py
FFTYYY/RoR_relation_extraction
a099e98f3708a39debeed4dc522ff57c4f6b960d
[ "MIT" ]
3
2020-06-18T16:47:31.000Z
2021-08-10T01:04:16.000Z
import torch as tc import torch.nn as nn import torch.nn.functional as F from transformers import BertModel , BertTokenizer import pdb import math def loss_1(pred , anss , ents , no_rel , class_weight , pad_ix = -100): ''' 直接平均,按类别加权 and unweighted avg ''' import numpy as np bs , ne , _ , d = pred.size() if no_rel < 0: no_rel = pad_ix #ignore index num = 0 rel_map2 = np.zeros((bs, ne, ne))+no_rel _ = [[rel_map2.itemset((i,u,v),t) for u,v,t in b] for i,b in enumerate(anss)] rel_map2 = tc.LongTensor(rel_map2).to(pred.device) for _b in range(bs): tmp = rel_map2[_b] * 0 + pad_ix t_tmp = rel_map2[_b][:len(ents[_b]) , :len(ents[_b])] #t_tmp = tc.tril(rel_map2[_b][:len(ents[_b]) , :len(ents[_b])] , diagonal = -1) #t_tmp = t_tmp - tc.triu( tc.ones(t_tmp.size() , device = t_tmp.device) ) * 100 tmp[:len(ents[_b]) , :len(ents[_b])] = t_tmp rel_map2[_b] = tmp num += len(ents[_b]) * len(ents[_b]) #assert num == (rel_map2!=-100).long().sum() #----- style 1 ----- loss_f = F.cross_entropy( pred.view(-1, pred.size(-1)), rel_map2.view(-1), weight=tc.FloatTensor(class_weight).to(pred), ignore_index=pad_ix , reduction = "sum") loss_f = loss_f / num assert float(loss_f) == float(loss_f) return loss_f def loss_2(pred , anss , ents , no_rel , class_weight , pad_ix = -100): ''' 直接平均,按类别加权 and weighted avg ''' import numpy as np bs , ne , _ , d = pred.size() if no_rel < 0: no_rel = pad_ix #ignore index num = 0 rel_map2 = np.zeros((bs, ne, ne))+no_rel _ = [[rel_map2.itemset((i,u,v),t) for u,v,t in b] for i,b in enumerate(anss)] rel_map2 = tc.LongTensor(rel_map2).to(pred.device) for _b in range(bs): tmp = rel_map2[_b] * 0 + pad_ix t_tmp = rel_map2[_b][:len(ents[_b]) , :len(ents[_b])] #t_tmp = tc.tril(rel_map2[_b][:len(ents[_b]) , :len(ents[_b])] , diagonal = -1) #t_tmp = t_tmp - tc.triu( tc.ones(t_tmp.size() , device = t_tmp.device) ) * 100 tmp[:len(ents[_b]) , :len(ents[_b])] = t_tmp rel_map2[_b] = tmp num += len(ents[_b]) * len(ents[_b]) loss_f = F.cross_entropy( pred.view(-1, pred.size(-1)), rel_map2.view(-1), weight=tc.FloatTensor(class_weight).to(pred), ignore_index=pad_ix) assert float(loss_f) == float(loss_f) return loss_f def get_loss_func(name): return { "loss_1" : loss_1 , "loss_2" : loss_2 , }[name]
26.758621
88
0.637887
427
2,328
3.23185
0.185012
0.096377
0.092754
0.078261
0.815942
0.815942
0.815942
0.815942
0.815942
0.815942
0
0.028751
0.178265
2,328
86
89
27.069767
0.692629
0.195876
0
0.692308
0
0
0.008152
0
0
0
0
0
0.038462
1
0.057692
false
0
0.153846
0.019231
0.269231
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ef11ee83859c2c73abbfa5c2057ad2a3c3344061
73
py
Python
solution/data/data_collator.py
Amber-Chaeeunk/Open-Domain-Question-Answering
725e369a4409c54bf11bcfb9db53865d8fc1f935
[ "MIT" ]
5
2021-11-10T09:44:42.000Z
2022-03-20T06:14:42.000Z
solution/data/data_collator.py
boostcampaitech2/mrc-level2-nlp-14
ea60d7a7b0f22c9e2e3b71d1d80cc2f00805e3fa
[ "MIT" ]
null
null
null
solution/data/data_collator.py
boostcampaitech2/mrc-level2-nlp-14
ea60d7a7b0f22c9e2e3b71d1d80cc2f00805e3fa
[ "MIT" ]
7
2021-11-10T23:54:03.000Z
2022-01-03T02:55:50.000Z
from transformers import DataCollatorWithPadding, DataCollatorForSeq2Seq
36.5
72
0.917808
5
73
13.4
1
0
0
0
0
0
0
0
0
0
0
0.014706
0.068493
73
1
73
73
0.970588
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
ef1e1b2a6a1e4e905ddb0cea819429162d25088e
8,339
py
Python
tests/test_engine.py
Bakuriu/feanor-csv
e69929ae333d118771db4f3a91067d3b5ed84bf3
[ "Apache-2.0" ]
1
2018-10-05T02:03:35.000Z
2018-10-05T02:03:35.000Z
tests/test_engine.py
Bakuriu/feanor-csv
e69929ae333d118771db4f3a91067d3b5ed84bf3
[ "Apache-2.0" ]
30
2018-07-09T20:37:53.000Z
2018-10-05T07:04:55.000Z
tests/test_engine.py
Bakuriu/feanor-csv
e69929ae333d118771db4f3a91067d3b5ed84bf3
[ "Apache-2.0" ]
null
null
null
import itertools as it import random import unittest from io import StringIO from unittest import mock from feanor.builtin import BuiltInLibrary from feanor.engine import * from feanor.schema import Schema class TestEngine(unittest.TestCase): def setUp(self): self.rand = random.Random(0) self.rand_copy = random.Random(0) self.library = BuiltInLibrary({}, self.rand) def test_can_build_a_generator_from_a_schema(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') engine = Engine(schema, self.library) self.assertEqual(3, engine.number_of_columns) values = list(engine.generate_data(1)) self.assertEqual(1, len(values)) expected_values = tuple(self.rand_copy.randint(0, 1_000_000) for _ in range(3)) self.assertEqual(expected_values, values[0]) def test_can_build_a_generator_from_a_schema_with_config(self): schema = Schema() schema.define_column('A', type='int', config={'min': 10}) engine = Engine(schema, self.library) self.assertEqual(1, engine.number_of_columns) values = set(engine.generate_data(20)) expected_values = {(self.rand_copy.randint(10, 1_000_000),) for _ in range(20)} self.assertEqual(expected_values, values) def test_can_generate_producer_data_with_number_of_rows(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') engine = Engine(schema, self.library) generated_values = list(engine.generate_data(number_of_rows=10)) self.assertEqual(10, len(generated_values)) iterable = (self.rand_copy.randint(0, 1_000_000) for _ in range(30)) self.assertEqual(list(zip(iterable, iterable, iterable)), generated_values) self.assertEqual(10, len(set(generated_values))) def test_can_generate_stream_of_data(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') engine = Engine(schema, self.library) generated_values = list(it.islice(engine.generate_data(), 1000)) self.assertEqual(1000, len(generated_values)) iterable = (self.rand_copy.randint(0, 1_000_000) for _ in range(3000)) self.assertEqual(list(zip(iterable, iterable, iterable)), generated_values) def test_can_generate_two_identical_columns_by_referencing_same_producer(self): schema = Schema() schema.add_producer('bob', type='int') schema.define_column('A', producer='bob') schema.define_column('B', producer='bob') engine = Engine(schema, self.library) generated_values = list(engine.generate_data(number_of_rows=10)) first_col, second_col = zip(*generated_values) self.assertEqual(first_col, second_col) def test_can_generate_two_identical_columns_by_referencing_name_of_auto_created_producer(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', producer='A') engine = Engine(schema, self.library) generated_values = list(engine.generate_data(number_of_rows=10)) first_col, second_col = zip(*generated_values) self.assertEqual(first_col, second_col) class TestFacade(unittest.TestCase): def setUp(self): self.rand = random.Random(0) self.rand_copy = random.Random(0) self.library = BuiltInLibrary({}, self.rand) def test_generate_data_raises_if_missing_size_parameters(self): with self.assertRaises(TypeError): generate_data(Schema(), self.library, mock.MagicMock()) def test_generate_data_raises_if_both_num_rows_and_num_bytes_are_specified(self): with self.assertRaises(TypeError): generate_data(Schema(), self.library, mock.MagicMock(), number_of_rows=10, byte_count=100) def test_can_generate_some_data(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = StringIO() generate_data(schema, self.library, saved_data, number_of_rows=1) lines = saved_data.getvalue() expected_values = tuple(self.rand_copy.randint(0, 1_000_000) for _ in range(3)) self.assertEqual(2, len(lines.splitlines())) self.assertEqual(['A,B,C', ','.join(map(str, expected_values))], lines.splitlines()) def test_can_generate_some_data_no_header(self): schema = Schema(show_header=False) schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = StringIO() generate_data(schema, self.library, saved_data, number_of_rows=1) lines = saved_data.getvalue() expected_values = tuple(self.rand_copy.randint(0, 1_000_000) for _ in range(3)) self.assertEqual(1, len(lines.splitlines())) self.assertEqual([','.join(map(str, expected_values))], lines.splitlines()) def test_can_generate_some_data_no_header_byte_count(self): schema = Schema(show_header=False) schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = StringIO() generate_data(schema, self.library, saved_data, byte_count=128) lines = saved_data.getvalue() expected_values = [','.join(map(str, (self.rand_copy.randint(0, 1_000_000) for _ in range(3)))) for _ in range(7)] self.assertEqual(7, len(lines.splitlines())) self.assertEqual(expected_values, lines.splitlines()) def test_can_generate_some_data_bytecount(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = StringIO() generate_data(schema, self.library, saved_data, byte_count=128) lines = saved_data.getvalue() expected_values = [','.join(map(str, (self.rand_copy.randint(0, 1_000_000) for _ in range(3)))) for _ in range(6)] self.assertEqual(7, len(lines.splitlines())) self.assertEqual(['A,B,C'] + expected_values, lines.splitlines()) def test_can_generate_some_data_no_header_stream(self): schema = Schema(show_header=False) schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = MaxSizeFileIO(256) with self.assertRaises(IOError): generate_data(schema, self.library, saved_data, stream_mode=True) lines = saved_data.buffer expected_values = [','.join(map(str, (self.rand_copy.randint(0, 1_000_000) for _ in range(3)))) for _ in range(13)] expected_values[-1] = expected_values[-1][:6] self.assertEqual(13, len(lines.splitlines())) self.assertEqual(expected_values, lines.splitlines()) def test_can_generate_some_data_stream(self): schema = Schema() schema.define_column('A', type='int') schema.define_column('B', type='int') schema.define_column('C', type='int') saved_data = MaxSizeFileIO(256) with self.assertRaises(IOError): generate_data(schema, self.library, saved_data, stream_mode=True) lines = saved_data.buffer expected_values = [','.join(map(str, (self.rand_copy.randint(0, 1_000_000) for _ in range(3)))) for _ in range(12)] self.assertEqual(13, len(lines.splitlines())) self.assertEqual(['A,B,C'] + expected_values, lines.splitlines()) class MaxSizeFileIO: def __init__(self, maxsize): self.maxsize = maxsize self.buffer = "" def write(self, text): if len(self.buffer) > self.maxsize: self.buffer = self.buffer[:self.maxsize] raise IOError('maximum size exceeded') self.buffer += text
43.207254
112
0.660511
1,071
8,339
4.881419
0.124183
0.073451
0.110176
0.072686
0.841622
0.788064
0.765302
0.754017
0.734507
0.671576
0
0.024844
0.213215
8,339
192
113
43.432292
0.771986
0
0
0.613497
0
0
0.021226
0
0
0
0
0
0.171779
1
0.110429
false
0
0.04908
0
0.177914
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ef5ae80d1be653ef3559db48e471435962525e9e
7,556
py
Python
sagemaker-pipelines/tabular/custom_callback_pipelines_step/setup_iam_roles.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
sagemaker-pipelines/tabular/custom_callback_pipelines_step/setup_iam_roles.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
sagemaker-pipelines/tabular/custom_callback_pipelines_step/setup_iam_roles.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import json import boto3 iam = boto3.client('iam') def create_ecs_task_role(role_name): try: response = iam.create_role( RoleName = role_name, AssumeRolePolicyDocument = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "ecs-tasks.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }), Description='Role for ECS task execution' ) role_arn = response['Role']['Arn'] response = iam.attach_role_policy( RoleName=role_name, PolicyArn='arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy' ) response = iam.put_role_policy( RoleName=role_name, PolicyName='create_log_group', PolicyDocument='{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"logs:CreateLogGroup","Resource":"*"}}' ) return role_arn except iam.exceptions.EntityAlreadyExistsException: print(f'Using ARN from existing role: {role_name}') response = iam.get_role(RoleName=role_name) return response['Role']['Arn'] def create_task_runner_role(role_name): try: response = iam.create_role( RoleName = role_name, AssumeRolePolicyDocument = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "ecs-tasks.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }), Description='Role for ECS tasks' ) role_arn = response['Role']['Arn'] role_policy_document = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "sagemaker:*", "Resource": "*" }, { "Effect": "Allow", "Action": [ "glue:StartJobRun", "glue:GetJobRun" ], "Resource": "*" }, { "Effect": "Allow", "Action": "logs:CreateLogGroup", "Resource": "*" } ] }) response = iam.put_role_policy( RoleName=role_name, PolicyName='glue_logs_sagemaker', PolicyDocument=role_policy_document ) response = iam.put_role_policy( RoleName=role_name, PolicyName='create_log_group', PolicyDocument='{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"logs:CreateLogGroup","Resource":"*"}}' ) return role_arn except iam.exceptions.EntityAlreadyExistsException: print(f'Using ARN from existing role: {role_name}') response = iam.get_role(RoleName=role_name) return response['Role']['Arn'] def create_glue_pipeline_role(role_name, bucket): try: response = iam.create_role( RoleName = role_name, AssumeRolePolicyDocument = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "glue.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }), Description='Role for Glue ETL job' ) role_arn = response['Role']['Arn'] response = iam.attach_role_policy( RoleName=role_name, PolicyArn='arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole' ) role_policy_document = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:*", "Resource": f"arn:aws:s3:::{bucket}" } ] }) response = iam.put_role_policy( RoleName=role_name, PolicyName='glue_s3_bucket', PolicyDocument=role_policy_document ) role_policy_document = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:*", "Resource": f"arn:aws:s3:::{bucket}/*" } ] }) response = iam.put_role_policy( RoleName=role_name, PolicyName='glue_s3_objects', PolicyDocument=role_policy_document ) return role_arn except iam.exceptions.EntityAlreadyExistsException: print(f'Using ARN from existing role: {role_name}') response = iam.get_role(RoleName=role_name) return response['Role']['Arn'] def create_lambda_sm_pipeline_role(role_name, ecs_role_arn, task_role_arn): try: response = iam.create_role( RoleName = role_name, AssumeRolePolicyDocument = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }), Description='Role for Lambda to call ECS Fargate task' ) role_arn = response['Role']['Arn'] response = iam.attach_role_policy( RoleName=role_name, PolicyArn='arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole' ) role_policy_document = json.dumps({ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ecs:RunTask", "Resource": ["*"] }, { "Effect": "Allow", "Action": "sqs:*", "Resource": ["*"] }, { "Effect": "Allow", "Action": "sagemaker:*", "Resource": ["*"] }, { "Effect": "Allow", "Action": "iam:PassRole", "Resource": [ecs_role_arn, task_role_arn] }, ] }) response = iam.put_role_policy( RoleName=role_name, PolicyName='ecs_sqs_sagemaker', PolicyDocument=role_policy_document ) return role_arn except iam.exceptions.EntityAlreadyExistsException: print(f'Using ARN from existing role: {role_name}') response = iam.get_role(RoleName=role_name) return response['Role']['Arn']
31.352697
130
0.442959
574
7,556
5.642857
0.139373
0.061747
0.083977
0.046311
0.870639
0.84841
0.822167
0.822167
0.765668
0.750232
0
0.020868
0.4419
7,556
241
131
31.352697
0.747214
0
0
0.607656
0
0.009569
0.222046
0.063517
0
0
0
0
0
1
0.019139
false
0.004785
0.009569
0
0.066986
0.019139
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
322dc08fba9da1472bf3d9bd2741f42cac0f20b4
242
py
Python
tests/input/unused-import/same_name_decorator.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
37
2020-06-04T16:34:39.000Z
2022-02-27T13:00:22.000Z
tests/input/unused-import/same_name_decorator.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
26
2020-07-10T15:53:19.000Z
2022-03-28T23:56:03.000Z
tests/input/unused-import/same_name_decorator.py
DKorytkin/pylint-pytest
097b7767e5f33ad512d421bea9ebb74a251f47bd
[ "MIT" ]
6
2020-06-29T17:45:38.000Z
2022-02-19T01:09:57.000Z
import pytest # an actual unused import, just happened to have the same name as fixture from _same_name_module import conftest_fixture_attr @pytest.mark.usefixtures('conftest_fixture_attr') def test_conftest_fixture_attr(): assert True
26.888889
73
0.822314
36
242
5.25
0.666667
0.238095
0.301587
0
0
0
0
0
0
0
0
0
0.128099
242
8
74
30.25
0.895735
0.293388
0
0
0
0
0.12426
0.12426
0
0
0
0
0.2
1
0.2
true
0
0.4
0
0.6
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
329f42d57855cea4fef82bdd99313c46094b7cdc
92
py
Python
jalapeno/data/matrix.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
1
2019-11-09T15:13:38.000Z
2019-11-09T15:13:38.000Z
jalapeno/data/matrix.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
3
2016-10-05T22:57:46.000Z
2016-10-06T06:26:22.000Z
jalapeno/data/matrix.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
null
null
null
import scipy.io as scio def read_matrix_market(filename): return scio.mmread(filename)
18.4
33
0.782609
14
92
5
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.141304
92
5
34
18.4
0.886076
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
6
32a73f94166684d055e4d5040f882c19cd8e7b4b
36
py
Python
detex/explainers/shap/maskers/__init__.py
dentou/detex
09c083c47fe41e607941dfa53219395d2ad89e1c
[ "BSD-3-Clause" ]
1
2022-03-02T16:26:25.000Z
2022-03-02T16:26:25.000Z
detex/explainers/shap/maskers/__init__.py
dentou/detex
09c083c47fe41e607941dfa53219395d2ad89e1c
[ "BSD-3-Clause" ]
null
null
null
detex/explainers/shap/maskers/__init__.py
dentou/detex
09c083c47fe41e607941dfa53219395d2ad89e1c
[ "BSD-3-Clause" ]
2
2022-03-16T02:02:57.000Z
2022-03-20T16:51:45.000Z
from .image import BetterImageMasker
36
36
0.888889
4
36
8
1
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
086229b2e32810bda3270cb058c973863bb5a659
128
py
Python
.ipynb_checkpoints/generate_benchmark-checkpoint.py
shubham0704/parallelGSO
46e8b6f194d339b4f4512b463009e0671a16de81
[ "MIT" ]
16
2018-07-28T15:06:07.000Z
2021-02-13T13:42:54.000Z
.ipynb_checkpoints/generate_benchmark-checkpoint.py
shubham0704/parallelGSO
46e8b6f194d339b4f4512b463009e0671a16de81
[ "MIT" ]
null
null
null
.ipynb_checkpoints/generate_benchmark-checkpoint.py
shubham0704/parallelGSO
46e8b6f194d339b4f4512b463009e0671a16de81
[ "MIT" ]
null
null
null
from cuda_code.final.benchmark import * from cuda_code.final.monolithic import * import psutil def get_bench_marks():
18.285714
40
0.757813
18
128
5.166667
0.666667
0.172043
0.258065
0.365591
0
0
0
0
0
0
0
0
0.171875
128
7
41
18.285714
0.877358
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.75
null
null
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
1
0
0
0
1
0
0
0
0
6
0871681ed19e71f80fb37364ed212391a477df7f
36
py
Python
atools/lib/chains/__init__.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
null
null
null
atools/lib/chains/__init__.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
null
null
null
atools/lib/chains/__init__.py
dubosese/atools
9d6f9e08310f3abb62aa6ec9e6003dcf9b87b513
[ "MIT" ]
null
null
null
from .alkylsilane import Alkylsilane
36
36
0.888889
4
36
8
0.75
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
088f72c0fab5a2c574fd8f3c51af6dc73b5c7205
87
py
Python
utils/errors.py
MadWookie/Cloud-Bot
475da41639bce41e2de58719c095e78a6a7df3db
[ "MIT" ]
null
null
null
utils/errors.py
MadWookie/Cloud-Bot
475da41639bce41e2de58719c095e78a6a7df3db
[ "MIT" ]
null
null
null
utils/errors.py
MadWookie/Cloud-Bot
475da41639bce41e2de58719c095e78a6a7df3db
[ "MIT" ]
null
null
null
from discord.ext import commands class NotConnected(commands.CheckFailure): pass
14.5
42
0.793103
10
87
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.149425
87
5
43
17.4
0.932432
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
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
08cb078f05c64abf6005074f165a07b8d71db3a0
28
py
Python
python-datetime-helper/__init__.py
concordia-labs/python-datetime-helper
a0c06037bfdf23ebc8fd12fcc4ffe16031e0d5ef
[ "MIT" ]
1
2021-03-22T22:34:23.000Z
2021-03-22T22:34:23.000Z
python-datetime-helper/__init__.py
concordia-labs/python-datetime-helper
a0c06037bfdf23ebc8fd12fcc4ffe16031e0d5ef
[ "MIT" ]
null
null
null
python-datetime-helper/__init__.py
concordia-labs/python-datetime-helper
a0c06037bfdf23ebc8fd12fcc4ffe16031e0d5ef
[ "MIT" ]
null
null
null
from .main import TimeHelper
28
28
0.857143
4
28
6
1
0
0
0
0
0
0
0
0
0
0
0
0.107143
28
1
28
28
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
3ed622fdbeb1106a0c28e94a5d4f372c84751fc5
36,175
py
Python
tests/test_mapping_file_mapper_base.py
chadmcinnis/folio_migration_tools
39ee044a713a34c323324a956e3e8b54ee05c194
[ "MIT" ]
1
2022-03-30T07:48:33.000Z
2022-03-30T07:48:33.000Z
tests/test_mapping_file_mapper_base.py
chadmcinnis/folio_migration_tools
39ee044a713a34c323324a956e3e8b54ee05c194
[ "MIT" ]
76
2022-02-04T16:36:49.000Z
2022-03-31T11:20:29.000Z
tests/test_mapping_file_mapper_base.py
chadmcinnis/folio_migration_tools
39ee044a713a34c323324a956e3e8b54ee05c194
[ "MIT" ]
1
2022-02-02T17:19:05.000Z
2022-02-02T17:19:05.000Z
import itertools from typing import List from unittest.mock import MagicMock from unittest.mock import Mock from folio_uuid.folio_namespaces import FOLIONamespaces from folioclient import FolioClient from folio_migration_tools.library_configuration import LibraryConfiguration from folio_migration_tools.mapping_file_transformation.mapping_file_mapper_base import ( MappingFileMapperBase, ) from folio_migration_tools.migration_tasks.items_transformer import ItemsTransformer # flake8: noqa class MyTestableFileMapper(MappingFileMapperBase): def __init__(self, schema: dict, record_map: dict): mock_conf = Mock(spec=LibraryConfiguration) mock_conf.multi_field_delimiter = "<delimiter>" mock_folio = Mock(spec=FolioClient) mock_folio.okapi_url = "okapi_url" mock_folio.folio_get_single_object = MagicMock( return_value={ "instances": {"prefix": "pref", "startNumber": "1"}, "holdings": {"prefix": "pref", "startNumber": "1"}, } ) super().__init__( mock_folio, schema, record_map, None, FOLIONamespaces.holdings, mock_conf, ) def get_prop(self, legacy_item, folio_prop_name, index_or_id): legacy_item_keys = self.mapped_from_legacy_data.get(folio_prop_name, []) if len(legacy_item_keys) == 1 and folio_prop_name in self.mapped_from_values: return self.mapped_from_values.get(folio_prop_name, "") legacy_values = MappingFileMapperBase.get_legacy_vals(legacy_item, legacy_item_keys) return " ".join(legacy_values).strip() def test_validate_required_properties_sub_pro_missing_uri(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": ["title"], "properties": { "formerIds": { "type": "array", "description": "Previous ID(s) assigned to the holdings record", "items": {"type": "string"}, "uniqueItems": True, }, "title": { "type": "string", "description": "", }, "subtitle": { "type": "string", "description": "", }, "electronicAccess": { "description": "List of electronic access items", "type": "array", "items": { "type": "object", "properties": { "uri": { "type": "string", "description": "uniform resource identifier (URI) is a string of characters designed for unambiguous identification of resources", }, "relationshipId": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, }, "additionalProperties": False, "required": ["uri"], }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "title", "legacy_field": "title_", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, { "folio_field": "subtitle", "legacy_field": "subtitle_", "value": "", "description": "", }, { "folio_field": "formerIds[0]", "legacy_field": "formerIds_1", "value": "", "description": "", }, { "folio_field": "formerIds[1]", "legacy_field": "formerIds_2", "value": "", "description": "", }, { "folio_field": "electronicAccess[0].relationshipId", "legacy_field": "", "value": "f5d0068e-6272-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccess[0].uri", "legacy_field": "link_", "value": "", "description": "", }, { "folio_field": "electronicAccess[1].relationshipId", "legacy_field": "", "value": "f5d0068e-000-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccess[1].uri", "legacy_field": "link_2", "value": "", "description": "", }, ] } record = { "link_": "some_link", "formerIds_1": "id1", "formerIds_2": "id2", "title_": "actual value", "subtitle_": "object", "link_2": "", "id": "11", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert len(folio_rec["electronicAccess"]) == 1 assert folio_id == "11" assert folio_rec["id"] == "f00d59ac-4cfc-56d6-9c62-dc9084c18003" def test_validate_required_properties_sub_pro_missing_uri_and_more(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": ["title"], "properties": { "formerIds": { "type": "array", "description": "Previous ID(s) assigned to the holdings record", "items": {"type": "string"}, "uniqueItems": True, }, "title": { "type": "string", "description": "", }, "subtitle": { "type": "string", "description": "", }, "electronicAccess": { "description": "List of electronic access items", "type": "array", "items": { "type": "object", "properties": { "uri": { "type": "string", "description": "uniform resource identifier (URI) is a string of characters designed for unambiguous identification of resources", }, "relationshipId": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, "third_prop": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, }, "additionalProperties": False, "required": ["uri"], }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "title", "legacy_field": "title_", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, { "folio_field": "subtitle", "legacy_field": "subtitle_", "value": "", "description": "", }, { "folio_field": "formerIds[0]", "legacy_field": "formerIds_1", "value": "", "description": "", }, { "folio_field": "formerIds[1]", "legacy_field": "formerIds_2", "value": "", "description": "", }, { "folio_field": "electronicAccess[0].relationshipId", "legacy_field": "", "value": "f5d0068e-6272-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccess[0].third_prop", "legacy_field": "third_0", "value": "", "description": "", }, { "folio_field": "electronicAccess[0].uri", "legacy_field": "link_", "value": "", "description": "", }, { "folio_field": "electronicAccess[1].relationshipId", "legacy_field": "", "value": "f5d0068e-000-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccess[1].uri", "legacy_field": "link_2", "value": "", "description": "", }, { "folio_field": "electronicAccess[1].third_prop", "legacy_field": "third_", "value": "", "description": "", }, ] } record = { "link_": "some_link", "formerIds_1": "id1", "formerIds_2": "id2", "title_": "actual value", "subtitle_": "object", "link_2": "", "id": "11", "third_0": "", "third_1": "", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert len(folio_rec["electronicAccess"]) == 1 def test_validate_required_properties_item_notes(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": [], "properties": { "notes": { "type": "array", "description": "Notes about action, copy, binding etc.", "items": { "type": "object", "properties": { "itemNoteTypeId": { "type": "string", "description": "ID of the type of note", }, "itemNoteType": { "description": "Type of item's note", "type": "object", "folio:$ref": "itemnotetype.json", "javaType": "org.folio.rest.jaxrs.model.itemNoteTypeVirtual", "readonly": True, "folio:isVirtual": True, "folio:linkBase": "item-note-types", "folio:linkFromField": "itemNoteTypeId", "folio:linkToField": "id", "folio:includedElement": "itemNoteTypes.0", }, "note": { "type": "string", "description": "Text content of the note", }, "staffOnly": { "type": "boolean", "description": "If true, determines that the note should not be visible for others than staff", "default": False, }, }, }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "notes[0].note", "legacy_field": "note_1", "value": "", "description": "", }, { "folio_field": "notes[0].staffOnly", "legacy_field": "", "value": True, "description": "", }, { "folio_field": "notes[0].itemNoteTypeId", "legacy_field": "", "value": "A UUID", "description": "", }, { "folio_field": "notes[1].note", "legacy_field": "note_2", "value": "", "description": "", }, { "folio_field": "notes[1].staffOnly", "legacy_field": "", "value": False, "description": "", }, { "folio_field": "notes[1].itemNoteTypeId", "legacy_field": "", "value": "Another UUID", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = {"note_1": "my note", "note_2": "", "id": "12"} tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) ItemsTransformer.handle_notes(folio_rec) assert len(folio_rec["notes"]) == 1 def test_validate_required_properties_item_notes_unmapped(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": [], "properties": { "notes": { "type": "array", "description": "Notes about action, copy, binding etc.", "items": { "type": "object", "properties": { "itemNoteTypeId": { "type": "string", "description": "ID of the type of note", }, "itemNoteType": { "description": "Type of item's note", "type": "object", "folio:$ref": "itemnotetype.json", "javaType": "org.folio.rest.jaxrs.model.itemNoteTypeVirtual", "readonly": True, "folio:isVirtual": True, "folio:linkBase": "item-note-types", "folio:linkFromField": "itemNoteTypeId", "folio:linkToField": "id", "folio:includedElement": "itemNoteTypes.0", }, "note": { "type": "string", "description": "Text content of the note", }, "staffOnly": { "type": "boolean", "description": "If true, determines that the note should not be visible for others than staff", "default": False, }, }, }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "notes[0].note", "legacy_field": "note_1", "value": "", "description": "", }, { "folio_field": "notes[0].staffOnly", "legacy_field": "", "value": True, "description": "", }, { "folio_field": "notes[0].itemNoteTypeId", "legacy_field": "", "value": "A UUID", "description": "", }, { "folio_field": "notes[1].note", "legacy_field": "Not mapped", "value": "", "description": "", }, { "folio_field": "notes[1].staffOnly", "legacy_field": "", "value": False, "description": "", }, { "folio_field": "notes[1].itemNoteTypeId", "legacy_field": "", "value": "UUID", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = {"note_1": "my note", "id": "12"} tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) ItemsTransformer.handle_notes(folio_rec) assert len(folio_rec["notes"]) == 1 def test_validate_required_properties_item_notes_unmapped_2(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": [], "properties": { "notes": { "type": "array", "description": "Notes about action, copy, binding etc.", "items": { "type": "object", "properties": { "itemNoteTypeId": { "type": "string", "description": "ID of the type of note", }, "itemNoteType": { "description": "Type of item's note", "type": "object", "folio:$ref": "itemnotetype.json", "javaType": "org.folio.rest.jaxrs.model.itemNoteTypeVirtual", "readonly": True, "folio:isVirtual": True, "folio:linkBase": "item-note-types", "folio:linkFromField": "itemNoteTypeId", "folio:linkToField": "id", "folio:includedElement": "itemNoteTypes.0", }, "note": { "type": "string", "description": "Text content of the note", }, "staffOnly": { "type": "boolean", "description": "If true, determines that the note should not be visible for others than staff", "default": False, }, }, }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "notes[0].note", "legacy_field": "note_1", "value": "", "description": "", }, { "folio_field": "notes[0].staffOnly", "legacy_field": "", "value": True, "description": "", }, { "folio_field": "notes[0].itemNoteTypeId", "legacy_field": "", "value": "A UUID", "description": "", }, { "folio_field": "notes[1].note", "legacy_field": "Not mapped", "value": "", "description": "", }, { "folio_field": "notes[1].staffOnly", "legacy_field": "Not mapped", "value": "", "description": "", }, { "folio_field": "notes[1].itemNoteTypeId", "legacy_field": "Not mapped", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = {"note_1": "my note", "id": "12"} tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) ItemsTransformer.handle_notes(folio_rec) assert len(folio_rec["notes"]) == 1 def test_validate_required_properties_obj(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": ["title"], "properties": { "formerIds": { "type": "array", "description": "Previous ID(s) assigned to the holdings record", "items": {"type": "string"}, "uniqueItems": True, }, "title": { "type": "string", "description": "", }, "subtitle": { "type": "string", "description": "", }, "electronicAccessObj": { "type": "object", "properties": { "uri": { "type": "string", "description": "uniform resource identifier (URI) is a string of characters designed for unambiguous identification of resources", }, "relationshipId": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, "third_prop": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, }, "additionalProperties": False, "required": ["uri"], }, }, } fake_holdings_map = { "data": [ { "folio_field": "title", "legacy_field": "title_", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, { "folio_field": "subtitle", "legacy_field": "subtitle_", "value": "", "description": "", }, { "folio_field": "formerIds[0]", "legacy_field": "formerIds_1", "value": "", "description": "", }, { "folio_field": "formerIds[1]", "legacy_field": "formerIds_2", "value": "", "description": "", }, { "folio_field": "electronicAccessObj.relationshipId", "legacy_field": "", "value": "f5d0068e-6272-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccessObj.third_prop", "legacy_field": "third_0", "value": "", "description": "", }, { "folio_field": "electronicAccessObj.uri", "legacy_field": "link_", "value": "", "description": "", }, ] } record = { "link_": "some_link", "formerIds_1": "id1", "formerIds_2": "id2", "title_": "actual value", "subtitle_": "object", "id": "11", "third_0": "", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert folio_rec["electronicAccessObj"]["uri"] == "some_link" def test_validate_required_properties_item_notes_split_on_delimiter_notes(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": [], "properties": { "notes": { "type": "array", "description": "Notes about action, copy, binding etc.", "items": { "type": "object", "properties": { "itemNoteTypeId": { "type": "string", "description": "ID of the type of note", }, "itemNoteType": { "description": "Type of item's note", "type": "object", "folio:$ref": "itemnotetype.json", "javaType": "org.folio.rest.jaxrs.model.itemNoteTypeVirtual", "readonly": True, "folio:isVirtual": True, "folio:linkBase": "item-note-types", "folio:linkFromField": "itemNoteTypeId", "folio:linkToField": "id", "folio:includedElement": "itemNoteTypes.0", }, "note": { "type": "string", "description": "Text content of the note", }, "staffOnly": { "type": "boolean", "description": "If true, determines that the note should not be visible for others than staff", "default": False, }, }, }, }, }, } fake_item_map = { "data": [ { "folio_field": "notes[0].note", "legacy_field": "note_1", "value": "", "description": "", }, { "folio_field": "notes[0].staffOnly", "legacy_field": "", "value": True, "description": "", }, { "folio_field": "notes[0].itemNoteTypeId", "legacy_field": "", "value": "A UUID", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = {"note_1": "my note<delimiter>my second note", "id": "12"} tfm = MyTestableFileMapper(schema, fake_item_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) ItemsTransformer.handle_notes(folio_rec) assert len(folio_rec["notes"]) == 2 assert folio_rec["notes"][0]["note"] == "my note" assert folio_rec["notes"][0]["staffOnly"] == True assert folio_rec["notes"][0]["itemNoteTypeId"] == "A UUID" assert folio_rec["notes"][1]["note"] == "my second note" assert folio_rec["notes"][1]["staffOnly"] == True assert folio_rec["notes"][1]["itemNoteTypeId"] == "A UUID" def test_multiple_repeated_split_on_delimiter_electronic_access(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": ["electronicAccess"], "properties": { "electronicAccess": { "description": "List of electronic access items", "type": "array", "items": { "type": "object", "properties": { "uri": { "type": "string", "description": "uniform resource identifier (URI) is a string of characters designed for unambiguous identification of resources", }, "relationshipId": { "type": "string", "description": "relationship between the electronic resource at the location identified and the item described in the record as a whole", }, "linkText": { "type": "string", "description": "the value of the MARC tag field 856 2nd indicator, where the values are: no information provided, resource, version of resource, related resource, no display constant generated", }, }, "additionalProperties": False, "required": ["uri"], }, }, }, } fake_holdings_map = { "data": [ { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, { "folio_field": "electronicAccess[0].relationshipId", "legacy_field": "", "value": "f5d0068e-6272-458e-8a81-b85e7b9a14aa", "description": "", }, { "folio_field": "electronicAccess[0].linkText", "legacy_field": "title_", "value": "", "description": "", }, { "folio_field": "electronicAccess[0].uri", "legacy_field": "link_", "value": "", "description": "", }, ] } record = { "link_": "uri1<delimiter>uri2", "title_": "title1<delimiter>title2", "subtitle_": "object", "id": "11", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert len(folio_rec["electronicAccess"]) == 2 assert folio_id == "11" assert folio_rec["id"] == "f00d59ac-4cfc-56d6-9c62-dc9084c18003" assert folio_rec["electronicAccess"][0]["uri"] == "uri1" assert folio_rec["electronicAccess"][0]["linkText"] == "title1" assert ( folio_rec["electronicAccess"][0]["relationshipId"] == "f5d0068e-6272-458e-8a81-b85e7b9a14aa" ) assert folio_rec["electronicAccess"][1]["uri"] == "uri2" assert folio_rec["electronicAccess"][1]["linkText"] == "title2" assert ( folio_rec["electronicAccess"][1]["relationshipId"] == "f5d0068e-6272-458e-8a81-b85e7b9a14aa" ) def test_validate_required_properties_item_notes_split_on_delimiter_plain_object(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": [], "properties": { "uber_prop": { "type": "object", "properties": { "prop1": { "description": "", "type": "string", }, "prop2": { "description": "", "type": "string", }, }, "additionalProperties": False, }, }, } fake_item_map = { "data": [ { "folio_field": "uber_prop.prop1", "legacy_field": "note_1", "value": "", "description": "", }, { "folio_field": "uber_prop.prop2", "legacy_field": "", "value": "Some value", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = {"note_1": "my note<delimiter>my second note", "id": "12"} tfm = MyTestableFileMapper(schema, fake_item_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) ItemsTransformer.handle_notes(folio_rec) assert folio_rec["uber_prop"]["prop1"] == "my note<delimiter>my second note" assert folio_rec["uber_prop"]["prop2"] == "Some value" def test_zip3(): o = {"p1": "a<delimiter>b", "p2": "c<delimiter>d<delimiter>e", "p3": "same for both"} d = "<delimiter>" l = ["p1", "p2"] s = MappingFileMapperBase.split_obj_by_delim(d, o, l) assert s[0] == {"p1": "a", "p2": "c", "p3": "same for both"} assert s[1] == {"p1": "b", "p2": "d", "p3": "same for both"} assert len(s) == 2 def test_do_not_split_string_prop(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "properties": { "formerId": { "type": "string", "description": "", }, }, } fake_holdings_map = { "data": [ { "folio_field": "formerId", "legacy_field": "formerIds_1", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = { "formerIds_1": "id2<delimiter>id3", "id": "11", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert folio_rec["formerId"] == "id2<delimiter>id3" def test_split_former_ids(): schema = { "$schema": "http://json-schema.org/draft-04/schema#", "description": "A holdings record", "type": "object", "required": ["formerIds"], "properties": { "formerIds": { "type": "array", "description": "Previous ID(s) assigned to the holdings record", "items": {"type": "string"}, "uniqueItems": True, }, }, } fake_holdings_map = { "data": [ { "folio_field": "formerIds[0]", "legacy_field": "formerIds_1", "value": "", "description": "", }, { "folio_field": "formerIds[1]", "legacy_field": "formerIds_2", "value": "", "description": "", }, { "folio_field": "legacyIdentifier", "legacy_field": "id", "value": "", "description": "", }, ] } record = { "formerIds_1": "id1", "formerIds_2": "id2<delimiter>id3", "id": "11", } tfm = MyTestableFileMapper(schema, fake_holdings_map) folio_rec, folio_id = tfm.do_map(record, record["id"], FOLIONamespaces.holdings) assert len(folio_rec["formerIds"]) == 3 assert "id1" in folio_rec["formerIds"] assert "id2" in folio_rec["formerIds"] assert "id3" in folio_rec["formerIds"]
35.816832
222
0.423856
2,607
36,175
5.700422
0.095512
0.043739
0.076307
0.062984
0.857277
0.828073
0.807146
0.803782
0.792881
0.786286
0
0.020347
0.438894
36,175
1,009
223
35.852329
0.711794
0.000332
0
0.637295
0
0.001025
0.33373
0.035812
0
0
0
0
0.034836
1
0.014344
false
0
0.009221
0
0.026639
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
3ef05b6b8f89efb91976aa3431bf6d0e224c314d
171
py
Python
core/util/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
core/util/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
4
2021-03-30T14:04:56.000Z
2021-06-10T19:40:52.000Z
core/util/__init__.py
hugoseabra/redmine-task-generator
b5ce1764f1c7588a7c82b25f7dd4bf07d1c105cf
[ "MIT" ]
null
null
null
from .model_field_slugify import model_field_slugify, ReservedSlugException # noqa from .date import create_years_list # noqa from .string import represents_int # noqa
42.75
83
0.830409
23
171
5.869565
0.608696
0.148148
0.251852
0
0
0
0
0
0
0
0
0
0.128655
171
3
84
57
0.90604
0.081871
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f5ad525ba4f9029768a6068ba94f5fabd17f93bd
11,244
py
Python
python/src/opendp/meas.py
souravrhythm/opendp
2c576dbf98389c349ca3a3be928f0e600cd0c10b
[ "MIT" ]
95
2021-02-17T19:50:28.000Z
2022-03-31T16:50:59.000Z
python/src/opendp/meas.py
souravrhythm/opendp
2c576dbf98389c349ca3a3be928f0e600cd0c10b
[ "MIT" ]
299
2021-02-10T00:14:41.000Z
2022-03-31T16:17:33.000Z
python/src/opendp/meas.py
souravrhythm/opendp
2c576dbf98389c349ca3a3be928f0e600cd0c10b
[ "MIT" ]
13
2021-04-01T14:40:56.000Z
2022-03-27T08:52:46.000Z
# Auto-generated. Do not edit. from opendp._convert import * from opendp._lib import * from opendp.mod import * from opendp.typing import * __all__ = [ "make_base_laplace", "make_base_gaussian", "make_base_analytic_gaussian", "make_base_geometric", "make_randomized_response_bool", "make_randomized_response", "make_base_ptr" ] def make_base_laplace( scale, D: RuntimeTypeDescriptor = "AllDomain<T>" ) -> Measurement: """Make a Measurement that adds noise from the laplace(`scale`) distribution to a scalar value. Adjust D to noise vector-valued data. :param scale: Noise scale parameter of the laplace distribution. :param D: Domain of the data type to be privatized. Valid values are VectorDomain<AllDomain<T>> or AllDomain<T> :type D: RuntimeTypeDescriptor :return: A base_laplace step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("floating-point", "contrib") # Standardize type arguments. D = RuntimeType.parse(type_name=D, generics=["T"]) T = get_domain_atom_or_infer(D, scale) D = D.substitute(T=T) # Convert arguments to c types. scale = py_to_c(scale, c_type=ctypes.c_void_p, type_name=T) D = py_to_c(D, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_base_laplace function.argtypes = [ctypes.c_void_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(scale, D), Measurement)) def make_base_gaussian( scale, D: RuntimeTypeDescriptor = "AllDomain<T>" ) -> Measurement: """Make a Measurement that adds noise from the gaussian(`scale`) distribution to the input. Adjust D to noise vector-valued data. :param scale: noise scale parameter to the gaussian distribution :param D: Domain of the data type to be privatized. Valid values are VectorDomain<AllDomain<T>> or AllDomain<T> :type D: RuntimeTypeDescriptor :return: A base_gaussian step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("floating-point", "contrib") # Standardize type arguments. D = RuntimeType.parse(type_name=D, generics=["T"]) T = get_domain_atom_or_infer(D, scale) D = D.substitute(T=T) # Convert arguments to c types. scale = py_to_c(scale, c_type=ctypes.c_void_p, type_name=T) D = py_to_c(D, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_base_gaussian function.argtypes = [ctypes.c_void_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(scale, D), Measurement)) def make_base_analytic_gaussian( scale, D: RuntimeTypeDescriptor = "AllDomain<T>" ) -> Measurement: """Make a Measurement that adds noise from the gaussian(`scale`) distribution to the input. Adjust D to noise vector-valued data. The privacy relation is based on the analytic gaussian mechanism. :param scale: noise scale parameter to the gaussian distribution :param D: Domain of the data type to be privatized. Valid values are VectorDomain<AllDomain<T>> or AllDomain<T> :type D: RuntimeTypeDescriptor :return: A base_analytic_gaussian step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("floating-point", "contrib") # Standardize type arguments. D = RuntimeType.parse(type_name=D, generics=["T"]) T = get_domain_atom_or_infer(D, scale) D = D.substitute(T=T) # Convert arguments to c types. scale = py_to_c(scale, c_type=ctypes.c_void_p, type_name=T) D = py_to_c(D, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_base_analytic_gaussian function.argtypes = [ctypes.c_void_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(scale, D), Measurement)) def make_base_geometric( scale, bounds: Any = None, D: RuntimeTypeDescriptor = "AllDomain<i32>", QO: RuntimeTypeDescriptor = None ) -> Measurement: """Make a Measurement that adds noise from the geometric(`scale`) distribution to the input. Adjust D to noise vector-valued data. :param scale: noise scale parameter to the geometric distribution :param bounds: Set bounds on the count to make the algorithm run in constant-time. :type bounds: Any :param D: Domain of the data type to be privatized. Valid values are VectorDomain<AllDomain<T>> or AllDomain<T> :type D: RuntimeTypeDescriptor :param QO: Data type of the sensitivity, scale, and budget. :type QO: RuntimeTypeDescriptor :return: A base_geometric step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("contrib") # Standardize type arguments. D = RuntimeType.parse(type_name=D) QO = RuntimeType.parse_or_infer(type_name=QO, public_example=scale) T = get_domain_atom(D) OptionT = RuntimeType(origin='Option', args=[RuntimeType(origin='Tuple', args=[T, T])]) # Convert arguments to c types. scale = py_to_c(scale, c_type=ctypes.c_void_p, type_name=QO) bounds = py_to_c(bounds, c_type=AnyObjectPtr, type_name=OptionT) D = py_to_c(D, c_type=ctypes.c_char_p) QO = py_to_c(QO, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_base_geometric function.argtypes = [ctypes.c_void_p, AnyObjectPtr, ctypes.c_char_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(scale, bounds, D, QO), Measurement)) def make_randomized_response_bool( prob, constant_time: bool = False, Q: RuntimeTypeDescriptor = None ) -> Measurement: """Make a Measurement that implements randomized response on a boolean value. :param prob: Probability of returning the correct answer. Must be in [0.5, 1) :param constant_time: Set to true to enable constant time :type constant_time: bool :param Q: Data type of probability and budget. :type Q: RuntimeTypeDescriptor :return: A randomized_response_bool step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("contrib") # Standardize type arguments. Q = RuntimeType.parse_or_infer(type_name=Q, public_example=prob) # Convert arguments to c types. prob = py_to_c(prob, c_type=ctypes.c_void_p, type_name=Q) constant_time = py_to_c(constant_time, c_type=ctypes.c_bool) Q = py_to_c(Q, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_randomized_response_bool function.argtypes = [ctypes.c_void_p, ctypes.c_bool, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(prob, constant_time, Q), Measurement)) def make_randomized_response( categories: Any, prob, constant_time: bool = False, T: RuntimeTypeDescriptor = None, Q: RuntimeTypeDescriptor = None ) -> Measurement: """Make a Measurement that implements randomized response on a categorical value. :param categories: Set of valid outcomes :type categories: Any :param prob: Probability of returning the correct answer. Must be in [1/num_categories, 1) :param constant_time: Set to true to enable constant time :type constant_time: bool :param T: Data type of a category. :type T: RuntimeTypeDescriptor :param Q: Data type of probability and budget. :type Q: RuntimeTypeDescriptor :return: A randomized_response step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("contrib") # Standardize type arguments. T = RuntimeType.parse_or_infer(type_name=T, public_example=get_first(categories)) Q = RuntimeType.parse_or_infer(type_name=Q, public_example=prob) # Convert arguments to c types. categories = py_to_c(categories, c_type=AnyObjectPtr, type_name=RuntimeType(origin='Vec', args=[T])) prob = py_to_c(prob, c_type=ctypes.c_void_p, type_name=Q) constant_time = py_to_c(constant_time, c_type=ctypes.c_bool) T = py_to_c(T, c_type=ctypes.c_char_p) Q = py_to_c(Q, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_randomized_response function.argtypes = [AnyObjectPtr, ctypes.c_void_p, ctypes.c_bool, ctypes.c_char_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(categories, prob, constant_time, T, Q), Measurement)) def make_base_ptr( scale, threshold, TK: RuntimeTypeDescriptor, TV: RuntimeTypeDescriptor = None ) -> Measurement: """Make a Measurement that uses propose-test-release to privatize a hashmap of counts. :param scale: Noise scale parameter. :param threshold: Exclude counts that are less than this minimum value. :param TK: Type of Key. Must be hashable/categorical. :type TK: RuntimeTypeDescriptor :param TV: Type of Value. Must be float. :type TV: RuntimeTypeDescriptor :return: A base_ptr step. :rtype: Measurement :raises AssertionError: if an argument's type differs from the expected type :raises UnknownTypeError: if a type-argument fails to parse :raises OpenDPException: packaged error from the core OpenDP library """ assert_features("floating-point", "contrib") # Standardize type arguments. TK = RuntimeType.parse(type_name=TK) TV = RuntimeType.parse_or_infer(type_name=TV, public_example=scale) # Convert arguments to c types. scale = py_to_c(scale, c_type=ctypes.c_void_p, type_name=TV) threshold = py_to_c(threshold, c_type=ctypes.c_void_p, type_name=TV) TK = py_to_c(TK, c_type=ctypes.c_char_p) TV = py_to_c(TV, c_type=ctypes.c_char_p) # Call library function. function = lib.opendp_meas__make_base_ptr function.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p] function.restype = FfiResult return c_to_py(unwrap(function(scale, threshold, TK, TV), Measurement))
39.1777
115
0.719495
1,585
11,244
4.908517
0.108517
0.03599
0.014139
0.030848
0.793573
0.767738
0.747815
0.737404
0.730206
0.720437
0
0.000774
0.196016
11,244
286
116
39.314685
0.859845
0.458556
0
0.524194
1
0
0.056321
0.014124
0
0
0
0
0.056452
1
0.056452
false
0
0.032258
0
0.145161
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f5befc9990e8ce3af7ca500aecf635f360c84bea
45
py
Python
cupy_alias/manipulation/kind.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
cupy_alias/manipulation/kind.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
cupy_alias/manipulation/kind.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
from clpy.manipulation.kind import * # NOQA
22.5
44
0.755556
6
45
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.155556
45
1
45
45
0.894737
0.088889
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f5e92664f76df86f97cea58bcb94be68ba7c7b2c
11,572
py
Python
otcextensions/osclient/cts/v1/tracker.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/osclient/cts/v1/tracker.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/osclient/cts/v1/tracker.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# 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. # '''CTS Tracker v1 action implementations''' import logging from osc_lib import utils from osc_lib.command import command from otcextensions.common import sdk_utils from otcextensions.i18n import _ LOG = logging.getLogger(__name__) OPERATION_VALUES = ['create', 'delete', 'login'] def _get_columns(item): column_map = { } return sdk_utils.get_osc_show_columns_for_sdk_resource(item, column_map) class ShowTracker(command.ShowOne): _description = _('Show details of a CTS tracker') def get_parser(self, prog_name): parser = super(ShowTracker, self).get_parser(prog_name) parser.add_argument( 'tracker', metavar='<tracker>', default='system', help=_('Tracker name (currently only `system`)') ) return parser def take_action(self, parsed_args): client = self.app.client_manager.cts data = client.get_tracker( tracker=parsed_args.tracker, ) display_columns, columns = _get_columns(data) data = utils.get_item_properties(data, columns) return (display_columns, data) class DeleteTracker(command.Command): _description = _('Delete CTS Tracker') def get_parser(self, prog_name): parser = super(DeleteTracker, self).get_parser(prog_name) parser.add_argument( 'tracker', metavar='<tracker>', nargs='+', help=_('Name or ID of the tracker to delete.') ) return parser def take_action(self, parsed_args): if parsed_args.tracker: client = self.app.client_manager.cts for tracker in parsed_args.tracker: client.delete_tracker(tracker=tracker, ignore_missing=False) class CreateTracker(command.ShowOne): _description = _('Create a single CTS tracker') def get_parser(self, prog_name): parser = super(CreateTracker, self).get_parser(prog_name) parser.add_argument( '--bucket_name', metavar='<bucket>', required=True, help=_('Specifies the OBS bucket name. The value is a string of ' '0 to 64 characters and can contain uppercase and ' 'lowercase letters (a to z and A to Z), digits (0 to ' '9), hyphens (-), underscores (_), and periods (.). ' 'In addition, it must start and end with a letter.') ) parser.add_argument( '--file_prefix_name', metavar='<file_prefix_name>', help=_('Specifies the prefix of a log that needs to be stored ' 'in an OBS bucket. The value is a string of 0 to 64 ' 'characters and can contain uppercase and lowercase ' 'letters (a to z and A to Z), digits (0 to 9), ' 'hyphens (-), underscores (_), and periods (.)') ) parser.add_argument( '--enable_smn', action='store_true', help=_('Specifies whether SMN is supported. When the value is ' '`false`, `topic_id` and `operations` can be left empty.') ) parser.add_argument( '--topic_id', metavar='<topic>', help=_('topic_id is obtained from SMN and in the format of ' 'urn:smn: ([A-Za-z0-9-]){1,32}:' '([A-Za-z0-9]){32}:' '([A-Za-z0-9]|[_\\-]){1,256}.') ) parser.add_argument( '--operation', metavar='{' + ','.join(OPERATION_VALUES) + '}', type=lambda s: s.lower(), choices=OPERATION_VALUES, action='append', help=_('Specifies trigger conditions for sending a notification ' 'when Typical is selected. You can select `Delete`, ' '`Create`, or `Login` or all of them via repetition. ' 'Specifies trigger conditions for sending a notification ' 'when `--send_all_key` is selected. All conditions ' 'including `Delete`, `Create`, `Change`, and `OpenStack ' 'API Event` are selected by default. ' 'Modification is not allowed.') ) parser.add_argument( '--send_all_key', action='store_true', help=_('You can select Typical or All for Trigger Condition.\n' 'When the value is `false`, `operations` cannot be left ' 'empty. When the value is `true`, operations is not ' 'supported.') ) parser.add_argument( '--notify_user', metavar='<user>', action='append', help=_('In Typical scenario, you can specify the users using the ' 'login function. When these users log in, notifications ' 'will be sent.') ) return parser def take_action(self, parsed_args): client = self.app.client_manager.cts attrs = {} if parsed_args.bucket_name: attrs['bucket_name'] = parsed_args.bucket_name if parsed_args.file_prefix_name: attrs['file_prefix_name'] = parsed_args.file_prefix_name smn = {'enable': False} if parsed_args.enable_smn: smn['enable'] = True if parsed_args.topic_id: smn['topic_id'] = parsed_args.topic_id if parsed_args.send_all_key: smn['topic_id'] = parsed_args.topic_id if parsed_args.operation: smn['operations'] = parsed_args.operation if parsed_args.notify_user: smn['notify_users'] = parsed_args.notify_user attrs['smn'] = smn obj = client.create_tracker(**attrs) display_columns, columns = _get_columns(obj) data = utils.get_item_properties(obj, columns) return (display_columns, data) class SetTracker(command.ShowOne): _description = _('Update single CTS tracker properties') def get_parser(self, prog_name): parser = super(SetTracker, self).get_parser(prog_name) parser.add_argument( 'tracker', metavar='<tracker>', help=_('Specifies the name of the tracker. Currently only ' '`system` is supported.') ) parser.add_argument( '--bucket_name', metavar='<bucket>', required=True, help=_('Specifies the OBS bucket name. The value is a string of ' '0 to 64 characters and can contain uppercase and ' 'lowercase letters (a to z and A to Z), digits (0 to ' '9), hyphens (-), underscores (_), and periods (.). ' 'In addition, it must start and end with a letter.') ) parser.add_argument( '--file_prefix_name', metavar='<file_prefix_name>', help=_('Specifies the prefix of a log that needs to be stored ' 'in an OBS bucket. The value is a string of 0 to 64 ' 'characters and can contain uppercase and lowercase ' 'letters (a to z and A to Z), digits (0 to 9), ' 'hyphens (-), underscores (_), and periods (.)') ) parser.add_argument( '--enable_smn', action='store_true', help=_('Specifies whether SMN is supported. When the value is ' '`false`, `topic_id` and `operations` can be left empty.') ) parser.add_argument( '--topic_id', metavar='<topic>', help=_('topic_id is obtained from SMN and in the format of ' 'urn:smn: ([A-Za-z0-9-]){1,32}:' '([A-Za-z0-9]){32}:' '([A-Za-z0-9]|[_\\-]){1,256}.') ) parser.add_argument( '--operation', metavar='{' + ','.join(OPERATION_VALUES) + '}', type=lambda s: s.lower(), choices=OPERATION_VALUES, action='append', help=_('Specifies trigger conditions for sending a notification ' 'when Typical is selected. You can select `Delete`, ' '`Create`, or `Login` or all of them via repetition. ' 'Specifies trigger conditions for sending a notification ' 'when `--send_all_key` is selected. All conditions ' 'including `Delete`, `Create`, `Change`, and `OpenStack ' 'API Event` are selected by default. ' 'Modification is not allowed.') ) parser.add_argument( '--send_all_key', action='store_true', help=_('You can select Typical or All for Trigger Condition.\n' 'When the value is `false`, `operations` cannot be left ' 'empty. When the value is `true`, operations is not ' 'supported.') ) parser.add_argument( '--notify_user', metavar='<user>', action='append', help=_('In Typical scenario, you can specify the users using the ' 'login function. When these users log in, notifications ' 'will be sent.') ) group = parser.add_mutually_exclusive_group() group.add_argument( '--enable', action='store_true', help=_('Enable tracing into the bucket') ) group.add_argument( '--disable', action='store_true', help=_('Disable tracing into the bucket') ) return parser def take_action(self, parsed_args): client = self.app.client_manager.cts attrs = {} if parsed_args.bucket_name: attrs['bucket_name'] = parsed_args.bucket_name if parsed_args.file_prefix_name: attrs['file_prefix_name'] = parsed_args.file_prefix_name if parsed_args.enable: attrs['status'] = 'enabled' elif parsed_args.disable: attrs['status'] = 'disabled' smn = {'enable': False} if parsed_args.enable_smn: smn['enable'] = True if parsed_args.topic_id: smn['topic_id'] = parsed_args.topic_id if parsed_args.send_all_key: smn['topic_id'] = parsed_args.topic_id if parsed_args.operation: smn['operations'] = parsed_args.operation if parsed_args.notify_user: smn['notify_users'] = parsed_args.notify_user attrs['smn'] = smn obj = client.update_tracker(tracker=parsed_args.tracker, **attrs) display_columns, columns = _get_columns(obj) data = utils.get_item_properties(obj, columns) return (display_columns, data)
38.065789
78
0.560145
1,302
11,572
4.797235
0.176651
0.057637
0.04627
0.018252
0.758085
0.740154
0.728947
0.728947
0.713737
0.713737
0
0.007433
0.33728
11,572
303
79
38.191419
0.807015
0.050035
0
0.733068
0
0
0.344661
0.008929
0.007968
0
0
0
0
1
0.035857
false
0
0.01992
0
0.119522
0
0
0
0
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
6
f5f8382e01578e5c6a0b86e0cf5fddba035a15c0
38
py
Python
electrumsv_sdk/builtin_components/electrumsv_server/__init__.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
4
2020-07-06T12:13:14.000Z
2021-07-29T12:45:27.000Z
electrumsv_sdk/builtin_components/electrumsv_server/__init__.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
62
2020-07-04T04:50:27.000Z
2021-08-19T21:06:10.000Z
electrumsv_sdk/builtin_components/electrumsv_server/__init__.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
3
2021-01-21T09:22:45.000Z
2021-06-12T10:16:03.000Z
from .electrumsv_server import Plugin
19
37
0.868421
5
38
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
de58825a5ca6a45789c6c24c2d84813bcd1c1fc2
13,268
py
Python
tests/_console/test_assertion.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_console/test_assertion.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_console/test_assertion.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._console import assertion from apysc._expression import expression_data_util @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_equal() -> None: expression_data_util.empty_expression() int_1: ap.Int = ap.Int(10) int_2: ap.Int = ap.Int(20) assertion.assert_equal( left=int_1, right=int_2, msg='Invalid int values.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert({int_1.variable_name} === {int_2.variable_name}, ' '"Invalid int values.");' ) assert expected in expression expression_data_util.empty_expression() assertion.assert_equal(left=[1, 2, 3], right=ap.Array([1, 2, 3])) expression = expression_data_util.get_current_expression() assert 'assert_arrays_equal' in expression assert 'assert_equal' not in expression expression_data_util.empty_expression() assertion.assert_equal(left=ap.Array([1, 2, 3]), right=[1, 2, 3]) expression = expression_data_util.get_current_expression() assert 'assert_arrays_equal' in expression assert 'assert_equal' not in expression expression_data_util.empty_expression() assertion.assert_equal( left={'a': 10}, right=ap.Dictionary({'a': 10})) expression = expression_data_util.get_current_expression() assert 'assert_dicts_equal' in expression assert 'assert_equal' not in expression expression_data_util.empty_expression() assertion.assert_equal( left=ap.Dictionary({'a': 10}), right={'a': 10}) expression = expression_data_util.get_current_expression() assert 'assert_dicts_equal' in expression assert 'assert_equal' not in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__trace_info() -> None: expression_data_util.empty_expression() int_1: ap.Int = ap.Int(10) int_2: ap.Int = ap.Int(20) assertion.assert_equal( left=int_1, right=int_2, msg='Invalid int values.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'Left-side variable name: {int_1.variable_name}' ) assert expected in expression expected = ( f'Right-side variable name: {int_2.variable_name}' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_not_equal() -> None: expression_data_util.empty_expression() int_1: ap.Int = ap.Int(10) assertion.assert_not_equal( left=11, right=int_1, msg='Invalid condition.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert(11 !== {int_1.variable_name}, "Invalid condition.");' ) assert expected in expression expression_data_util.empty_expression() assertion.assert_not_equal(left=[1, 2], right=ap.Array([1, 2, 3])) expression = expression_data_util.get_current_expression() assert 'assert_arrays_not_equal' in expression assert 'assert_not_equal' not in expression expression_data_util.empty_expression() assertion.assert_not_equal(left=ap.Array([1, 2, 3]), right=[1, 2]) expression = expression_data_util.get_current_expression() assert 'assert_arrays_not_equal' in expression assert 'assert_not_equal' not in expression expression_data_util.empty_expression() assertion.assert_not_equal( left={'a': 10}, right=ap.Dictionary({'a': 10})) expression = expression_data_util.get_current_expression() assert 'assert_dicts_not_equal' in expression assert 'assert_not_equal' not in expression expression_data_util.empty_expression() assertion.assert_not_equal( left=ap.Dictionary({'a': 10}), right={'a': 10}) expression = expression_data_util.get_current_expression() assert 'assert_dicts_not_equal' in expression assert 'assert_not_equal' not in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__get_left_and_right_strs() -> None: int_1: ap.Int = ap.Int(10) int_2: ap.Int = ap.Int(20) left_str, right_str = assertion._get_left_and_right_strs( left=int_1, right=int_2) assert left_str == int_1.variable_name assert right_str == int_2.variable_name left_str, right_str = assertion._get_left_and_right_strs( left='Hello', right='World!') assert left_str == '"Hello"' assert right_str == '"World!"' @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_true() -> None: expression_data_util.empty_expression() boolean_1: ap.Boolean = ap.Boolean(True) assertion.assert_true( value=boolean_1, type_strict=True, msg='Value is not true.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert({boolean_1.variable_name} === true, ' '"Value is not true.");' ) assert expected in expression assertion.assert_true(value=boolean_1, type_strict=False) expression = expression_data_util.get_current_expression() expected = ( f'console.assert({boolean_1.variable_name} == true, "");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__add_equal_if_type_strict_setting_is_true() -> None: expression: str = assertion._add_equal_if_type_strict_setting_is_true( expression='a ==', type_strict=True) assert expression == 'a ===' expression = assertion._add_equal_if_type_strict_setting_is_true( expression='a ==', type_strict=False) assert expression == 'a ==' @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_false() -> None: expression_data_util.empty_expression() boolean_1: ap.Boolean = ap.Boolean(False) assertion.assert_false(boolean_1, msg='Value is not false.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert({boolean_1.variable_name} === false, ' '"Value is not false.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__value_type_is_array() -> None: result: bool = assertion._value_type_is_array(value=100) assert not result result = assertion._value_type_is_array( value=ap.Array([100, 200])) assert result @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_arrays_equal() -> None: expression_data_util.empty_expression() array_1: ap.Array = ap.Array([1, 2, 3]) assertion.assert_arrays_equal( left=[1, 2, 3], right=array_1, msg='Array values are not equal.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert(_.isEqual([1, 2, 3], {array_1.variable_name}), ' f'"Array values are not equal.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__trace_arrays_or_dicts_assertion_info() -> None: expression_data_util.empty_expression() array_1: ap.Array = ap.Array([1, 2, 3]) assertion._trace_arrays_or_dicts_assertion_info( interface_label='assert_arrays_equal', left=[1, 2, 3], right=array_1) expression: str = expression_data_util.get_current_expression() assert '[assert_arrays_equal]' in expression assert '"\\nLeft value:", "[1, 2, 3]"' in expression expected = f'"right value:", "{array_1.variable_name}' assert expected in expression expression_data_util.empty_expression() assertion._trace_arrays_or_dicts_assertion_info( interface_label='assert_arrays_not_equal', left=array_1, right=[1, 2, 3]) expression = expression_data_util.get_current_expression() expected = f'"\\nLeft value:", "{array_1.variable_name} ([1, 2, 3])"' assert expected in expression assert '"right value:", "[1, 2, 3]"' in expression expression_data_util.empty_expression() dict_1: ap.Dictionary = ap.Dictionary({'a': 10}) assertion._trace_arrays_or_dicts_assertion_info( interface_label='assert_dicts_equal', left=dict_1, right={'a': 10}) expression = expression_data_util.get_current_expression() expected = f'"\\nLeft value:", "{dict_1.variable_name} ({{a: 10}})"' assert expected in expression assert '"right value:", "{a: 10}"' in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__make_arrays_or_dicts_comparison_expression() -> None: expression_data_util.empty_expression() array_1: ap.Array = ap.Array([1, 2, 3]) expression: str = assertion._make_arrays_or_dicts_comparison_expression( left=[1, 2, 3], right=array_1, msg='Array values is not equal.', not_condition=False) expected: str = ( f'console.assert(_.isEqual([1, 2, 3], {array_1.variable_name}), ' '"Array values is not equal.");' ) assert expression == expected expression = assertion._make_arrays_or_dicts_comparison_expression( left=[1, 2, 3], right=[1], msg='', not_condition=True) expected = ( 'console.assert(!_.isEqual([1, 2, 3], [1]), "");') assert expression == expected dict_1: ap.Dictionary = ap.Dictionary({'a': 10}) expression = assertion._make_arrays_or_dicts_comparison_expression( left=dict_1, right={'a': 10}, msg='', not_condition=False) expected = ( f'console.assert(_.isEqual({dict_1.variable_name}, ' '{"a": 10}), "");' ) assert expression == expected @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_arrays_not_equal() -> None: expression_data_util.empty_expression() array_1: ap.Array = ap.Array([1, 2, 3]) assertion.assert_arrays_not_equal( left=[1, 2], right=array_1, msg='Array values are equal.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert(!_.isEqual([1, 2], {array_1.variable_name}), ' f'"Array values are equal.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_defined() -> None: expression_data_util.empty_expression() int_1: ap.Int = ap.Int(3) assertion.assert_defined(value=int_1, msg='value is undefined.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert(!_.isUndefined({int_1.variable_name}), ' '"value is undefined.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_undefined() -> None: expression_data_util.empty_expression() int_1: ap.Int = ap.Int(3) assertion.assert_undefined(value=int_1, msg='value is not undefined.') expression: str = expression_data_util.get_current_expression() expected: str = ( f'console.assert(_.isUndefined({int_1.variable_name}), ' '"value is not undefined.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_dicts_equal() -> None: expression_data_util.empty_expression() dict_1: ap.Dictionary = ap.Dictionary({"a": 10}) assertion.assert_dicts_equal( left={'a': 10}, right=dict_1, msg='Dictionary values are not equal.') expression: str = expression_data_util.get_current_expression() expected: str = ( 'console.assert(_.isEqual({"a": 10}, ' f'{dict_1.variable_name}), ' '"Dictionary values are not equal.");' ) assert expected in expression @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test__value_type_is_dict() -> None: dict_1: ap.Dictionary = ap.Dictionary({"a": 10}) result: bool = assertion._value_type_is_dict(value=dict_1) assert result result = assertion._value_type_is_dict(value=10) assert not result point: ap.Point2D = ap.Point2D(x=10, y=20) result = assertion._value_type_is_dict(value=point) assert result @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_assert_dicts_not_equal() -> None: expression_data_util.empty_expression() dict_1: ap.Dictionary = ap.Dictionary({"a": 10}) assertion.assert_dicts_not_equal( left={'a': 10}, right=dict_1, msg='Dictionary values are equal.') expression: str = expression_data_util.get_current_expression() expected: str = ( 'console.assert(!_.isEqual({"a": 10}, ' f'{dict_1.variable_name}), ' '"Dictionary values are equal.");' ) assert expected in expression
37.80057
79
0.680509
1,748
13,268
4.840961
0.052632
0.077759
0.099976
0.062515
0.900615
0.874852
0.828409
0.790357
0.756913
0.741905
0
0.033324
0.201613
13,268
350
80
37.908571
0.765506
0
0
0.566102
0
0
0.162486
0.069515
0
0
0
0
0.386441
1
0.057627
false
0
0.016949
0
0.074576
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
de7a5eb224c58788dfc0e32fd726d66aa9a545d9
95
py
Python
src/lib/Calculator.py
shayansm2/metaalgolib
354e0d215d61b893b7069f5379222cb2df7561fe
[ "MIT" ]
null
null
null
src/lib/Calculator.py
shayansm2/metaalgolib
354e0d215d61b893b7069f5379222cb2df7561fe
[ "MIT" ]
null
null
null
src/lib/Calculator.py
shayansm2/metaalgolib
354e0d215d61b893b7069f5379222cb2df7561fe
[ "MIT" ]
null
null
null
from src.lib.FunctionObject import FunctionObject class Calculator(FunctionObject): pass
15.833333
49
0.810526
10
95
7.7
0.8
0
0
0
0
0
0
0
0
0
0
0
0.136842
95
5
50
19
0.939024
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
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
deabe147f29f801e60355802355c88af31bd863f
262
py
Python
aqueduct/services/__init__.py
smk51/aqueduct-analysis-microservice
5bf0ac21c18957affcd8364fc8fbaab0345f1049
[ "MIT" ]
1
2017-05-31T14:55:14.000Z
2017-05-31T14:55:14.000Z
aqueduct/services/__init__.py
smk51/aqueduct-analysis-microservice
5bf0ac21c18957affcd8364fc8fbaab0345f1049
[ "MIT" ]
2
2021-12-03T20:37:13.000Z
2021-12-13T19:48:38.000Z
aqueduct/services/__init__.py
smk51/aqueduct-analysis-microservice
5bf0ac21c18957affcd8364fc8fbaab0345f1049
[ "MIT" ]
2
2021-04-06T19:25:25.000Z
2022-01-31T22:23:52.000Z
"""aqueduct SERVICES MODULE""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from aqueduct.services.carto_service import CartoService from aqueduct.services.geostore_service import GeostoreService
29.111111
62
0.866412
31
262
6.806452
0.483871
0.227488
0.227488
0
0
0
0
0
0
0
0
0
0.09542
262
8
63
32.75
0.890295
0.091603
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.2
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
deee61d5eb06adfe0d8e6e0c8c64d302d6fabae8
3,106
py
Python
tests/functional/test_edit_profile.py
taranjeet/wye
ac4cc23d38cf2e72f87a0c1d26fff0316645c1ea
[ "MIT" ]
null
null
null
tests/functional/test_edit_profile.py
taranjeet/wye
ac4cc23d38cf2e72f87a0c1d26fff0316645c1ea
[ "MIT" ]
2
2018-08-06T18:58:05.000Z
2018-08-06T18:58:34.000Z
tests/functional/test_edit_profile.py
taranjeet/wye
ac4cc23d38cf2e72f87a0c1d26fff0316645c1ea
[ "MIT" ]
null
null
null
import re import pytest from .. import factories as f pytestmark = pytest.mark.django_db def test_signup_flow(base_url, browser, outbox): user = f.create_user() user.set_password('123123') user.save() url = base_url + '/workshop/' browser.visit(url) browser.fill('login', user.email) browser.fill('password', '123123') browser.find_by_css('[type=submit]')[0].click() assert len(outbox) == 1 mail = outbox[0] confirm_link = re.findall(r'http.*/accounts/.*/', mail.body) assert confirm_link browser.visit(confirm_link[0]) assert browser.title, "Confirm E-mail Address" browser.find_by_css('[type=submit]')[0].click() assert "Login" in browser.title browser.fill('login', user.email) browser.fill('password', '123123') browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present("Edit Profile") poc_type = f.create_usertype(slug='dummy', display_name='College POC') section1 = f.create_workshop_section(name='section1') location1 = f.create_locaiton(name='location1') # mobile number chechk url = base_url + '/profile/'+user.username+'/edit' browser.visit(url) browser.fill('mobile', '') browser.select('usertype', poc_type.id) browser.select('interested_sections', section1.id) browser.select('interested_locations', location1.id) browser.select('location', location1.id) browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present('This field is required.') # usertype check browser.visit(url) browser.fill('mobile', '1234567890') browser.select('interested_sections', section1.id) browser.select('interested_locations', location1.id) browser.select('location', location1.id) browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present('This field is required.') # intrested_location check url = base_url + '/profile/'+user.username+'/edit' browser.visit(url) browser.fill('mobile', '1234567890') browser.select('usertype', poc_type.id) browser.select('interested_locations', location1.id) browser.select('location', location1.id) browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present('This field is required.') # intrested location check url = base_url + '/profile/'+user.username+'/edit' browser.visit(url) browser.fill('mobile', '') browser.select('usertype', poc_type.id) browser.select('interested_sections', section1.id) browser.select('location', location1.id) browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present('This field is required.') # location check url = base_url + '/profile/'+user.username+'/edit' browser.visit(url) browser.fill('mobile', '') browser.select('usertype', poc_type.id) browser.select('interested_sections', section1.id) browser.select('interested_locations', location1.id) browser.find_by_css('[type=submit]')[0].click() assert browser.is_text_present('This field is required.')
34.898876
74
0.691887
398
3,106
5.246231
0.211055
0.099617
0.079023
0.061303
0.760057
0.752874
0.752874
0.752874
0.752874
0.69636
0
0.024724
0.153574
3,106
88
75
35.295455
0.769494
0.032196
0
0.705882
0
0
0.23
0
0
0
0
0
0.147059
1
0.014706
false
0.044118
0.044118
0
0.058824
0
0
0
0
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
6
def717305debdb332e57f0716f8d270307068e94
269
py
Python
convlab/modules/policy/__init__.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
405
2019-06-17T05:38:47.000Z
2022-03-29T15:16:51.000Z
convlab/modules/policy/__init__.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
69
2019-06-20T22:57:41.000Z
2022-03-04T12:12:07.000Z
convlab/modules/policy/__init__.py
ngduyanhece/ConvLab
a04582a77537c1a706fbf64715baa9ad0be1301a
[ "MIT" ]
124
2019-06-17T05:11:23.000Z
2021-12-31T05:58:18.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from convlab.modules.policy.system.multiwoz import RuleBasedMultiwozBot, RuleInformBot, VanillaMLEPolicy from convlab.modules.policy.user.multiwoz import UserPolicyAgendaMultiWoz, UserPolicyVHUS
44.833333
104
0.851301
28
269
8.178571
0.785714
0.09607
0.157205
0.209607
0
0
0
0
0
0
0
0
0.085502
269
5
105
53.8
0.930894
0.252788
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
defbd89918cf8fe18a04afddda2a4d6e2b1ed77a
89
py
Python
app/taotu/__init__.py
lcgameszero/lcgames_blog
43df3685f1c826f2a8f236a33e1f183bef5e4b70
[ "MIT" ]
1
2017-05-27T02:10:28.000Z
2017-05-27T02:10:28.000Z
app/taotu/__init__.py
lcgameszero/lcgames_blog
43df3685f1c826f2a8f236a33e1f183bef5e4b70
[ "MIT" ]
null
null
null
app/taotu/__init__.py
lcgameszero/lcgames_blog
43df3685f1c826f2a8f236a33e1f183bef5e4b70
[ "MIT" ]
null
null
null
from flask import Blueprint taotu = Blueprint('taotu', __name__) from . import views
11.125
36
0.741573
11
89
5.636364
0.636364
0.451613
0
0
0
0
0
0
0
0
0
0
0.179775
89
7
37
12.714286
0.849315
0
0
0
0
0
0.057471
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
6
a0c8c7a363ad22b0f5865d9998087a4cbec36368
168
py
Python
IMC/venv/lib/python3.8/site-packages/cx_Freeze/__main__.py
AdrianaViabL/cursosAlura
356237fd1b77d32c9ffef128012b07edeebd14ef
[ "Apache-2.0" ]
null
null
null
IMC/venv/lib/python3.8/site-packages/cx_Freeze/__main__.py
AdrianaViabL/cursosAlura
356237fd1b77d32c9ffef128012b07edeebd14ef
[ "Apache-2.0" ]
null
null
null
IMC/venv/lib/python3.8/site-packages/cx_Freeze/__main__.py
AdrianaViabL/cursosAlura
356237fd1b77d32c9ffef128012b07edeebd14ef
[ "Apache-2.0" ]
null
null
null
""" cx_Freeze command line tool (enable python -m cx_Freeze syntax) """ import sys import cx_Freeze.cli if __name__ == "__main__": sys.exit(cx_Freeze.cli.main())
16.8
63
0.714286
26
168
4.153846
0.615385
0.296296
0.203704
0
0
0
0
0
0
0
0
0
0.154762
168
9
64
18.666667
0.760563
0.375
0
0
0
0
0.082474
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
a0ca79fd4c043e5234cff863f5eb616fb0876dfd
19,433
py
Python
pymapillary/pymapillary.py
khmurakami/pymapillary
01412fc4470b0fd0fd9c4eb7540ed6d44fbd0877
[ "MIT" ]
3
2019-05-02T21:16:55.000Z
2020-10-30T05:07:27.000Z
pymapillary/pymapillary.py
khmurakami/pymapillary
01412fc4470b0fd0fd9c4eb7540ed6d44fbd0877
[ "MIT" ]
null
null
null
pymapillary/pymapillary.py
khmurakami/pymapillary
01412fc4470b0fd0fd9c4eb7540ed6d44fbd0877
[ "MIT" ]
1
2020-01-15T08:43:30.000Z
2020-01-15T08:43:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .error_handling import * import requests import wget class Mapillary(): def __init__(self, client_id): if client_id is None: raise Exception("No Client id inserted") self.root_url = "https://a.mapillary.com/v3" self.client_id = client_id # https://www.mapillary.com/developer/api-documentation/#pagination def get_pagnation_resources(self, page_num=1, per_page=200): """Get pagnation Resources Args: page_num (int): Number of pages to display. Default is 1. per_page (int): Number of responses per page. Default is 200. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/sequences" data = { 'page' : '{}'.format(page_num), 'per_page' : '{}'.format(per_page), 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json #https://www.mapillary.com/developer/api-documentation/#search-images def search_images(self, bbox=None, closeto=None, end_time=None, image_keys=None, lookat=None, pano="false", per_page=200, project_keys=None, radius=100, sequence_keys=None, start_time=None, userkeys=None, usernames=None): """Search images by parameter Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. closeto (string): Filter by a location that images are close to, given as longitude,latitude. One string comma seperated. end_time (string): Filter images that are captured before end_time. Must be a valid ISO 8601 date. image_keys (string): Filter images by a list of image keys. One string comma seperated. lookat (string): Filter images that images are taken in the direction of the specified location using latitude and longitude. One string comma seperated. pano (string): Filter true for panoramic images or false for flat images. true and false must be in a string lower case. per_page (int): Number of responses per page. Default is 200. project_keys (string): Filter images by projects, given as project keys. One string comma seperated. radius (int): Filter images within the radius parameter around the closeto parameter location. Default 100 meters. sequence_keys: Filter images by sequences keys. One string comma seperated. start_time: Filter images that are captured since start_time. Must be a valid ISO 8601 date. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/images" data = { 'bbox': bbox, 'closeto': closeto, 'end_time': end_time, 'image_keys': image_keys, 'pano': pano, 'per_page': per_page, 'radius': radius, 'sequence_keys': sequence_keys, 'start_time': start_time, 'userkeys': userkeys, 'usernames': usernames, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r) raw_json = r.json() return raw_json def get_image_feature_by_key(self, key): """Get a image feature by the image key Args: key (string): Takes in a image key. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/images/" + key data = { 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def search_image_detections(self, bbox=None, closeto=None, image_keys=None, layers=None, max_score=None, min_score=None, per_page=200, radius=50, userkeys=None, usernames=None, values=None): """Search image detections by parameters Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. closeto (string): Filter by a location that images are close to, given as longitude,latitude. One string comma seperated. image_keys (string): Filter images by a list of image keys. One string comma seperated. layers (string): Filter image detections by layers. max_score (int): Filter image detections with the maximum score. min_score (int): Filter Image detections with the minimal score. per_page (int): Number of responses per page. Default is 200. project_keys (string): Filter images by projects, given as project keys. One string comma seperated. radius (int): Filter images within the radius parameter around the closeto parameter location. Default 50 meters. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. values: Filter image detections by values. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/image_detections" data = { 'bbox': bbox, 'closeto': closeto, 'image_keys': image_keys, 'layers': layers, 'max_score': max_score, 'min_score': min_score, 'per_page': per_page, 'radius': radius, 'userkeys': userkeys, 'usernames': usernames, 'values': values, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def search_sequences(self, bbox=None, end_time=None, per_page=200, starred="false", start_time=None, userkeys=None, usernames=None): """Search sequences Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. end_time (string): Filter images that are captured before end_time. Must be a valid ISO 8601 date. per_page (int): Number of responses per page. Default is 200. starred (string): Filter sequences that are starred (true) or non-starred (false). Must be a string lowercase. start_time: Filter images that are captured since start_time. Must be a valid ISO 8601 date. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. Return: raw_json (dict): dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/sequences" data = { 'bbox': bbox, 'end_time': end_time, 'per_page': per_page, 'starred': starred, 'start_time': start_time, 'userkeys': userkeys, 'usernames': usernames, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def get_sequence_by_key(self, key): """Get a sequence by key Args: key (string): Takes in a sequence key. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/sequences/" + key data = { 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def search_changesets(self, bbox=None, per_page=200, states=None, types=None, userkeys=None): """Search changesets Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. per_page (int): Number of responses per page. Default is 200. states (string): Filter by changeset states. types (string): Filter by changeset types. userkeys: Filter images captured by users, given as user keys. One string comma seperated. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/changesets" data = { 'bbox': bbox, 'per_page': per_page, 'states': states, 'types': types, 'userkeys': userkeys, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def get_changeset_by_key(self, key): """Get a changeset by key Args: key (string): Takes in a changeset key. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/changesets/" + key data = { 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def search_map_features(self, bbox=None, closeto=None, layers=None, max_nbr_image_detections=None, min_nbr_image_detections=None, per_page=200, radius=100, userkeys=None, usernames=None, values=None): """Search map features Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. closeto (string): Filter by a location that images are close to, given as longitude,latitude. One string comma seperated. layers (string): Filter image detections by layers. max_nbr_image_detections (int): The maximum number of image detections that detect the map feature. min_nbr_image_detections (int): The minimum number of image detections that detect the map feature. per_page (int): Number of responses per page. Default is 200. radius (int): Filter images within the radius parameter around the closeto parameter location. Default 50 meters. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. values: Filter image detections by values. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/map_features" data = { 'bbox': bbox, 'closeto': closeto, 'layers': layers, 'max_nbr_image_detections': max_nbr_image_detections, 'min_nbr_image_detections': min_nbr_image_detections, 'per_page': per_page, 'radius': radius, 'userkeys': userkeys, 'usernames': usernames, 'values': values, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def search_users(self, bbox=None, per_page=200, userkeys=None, usernames=None): """Search users Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. per_page (int): Number of responses per page. Default is 200. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. Return: raw_json (dict): dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/users" data = { 'bbox': bbox, 'per_page': per_page, 'userkeys': userkeys, 'usernames': usernames, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def get_user_by_key(self, key): """Get a user by a userkey Args: key (string): Takes in a user key. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/users/" + key data = { 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def get_user_stats_by_key(self, key): """Get a users stats by a userkey Args: key (string): Takes in a user key. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/users/" + key + "/stats" data = { 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json def filter_image_upload_lboards(self, bbox=None, end_time=None, iso_countries=None, per_page=200, start_time=None, userkeys=None, usernames=None): """Filter leaderboards on image upload Args: bbox (string): Filter by the bounding box, given as minx,miny,maxx,maxy. One string comma seperated. end_time (string): Filter images that are captured before end_time. Must be a valid ISO 8601 date. iso_countries (string): Count images in the specified countires, given as ISO 3166 country codes. per_page (int): Number of responses per page. Default is 200. start_time: Filter images that are captured since start_time. Must be a valid ISO 8601 date. userkeys: Filter images captured by users, given as user keys. One string comma seperated. usernames: Filter images captured by users, given as usernames. One string comma seperated. Return: raw_json (dict): Dictionary of the result json requested Raises: Exception error: Uses HTTP error handler to check status code """ url = self.root_url + "/leaderboard/images" data = { 'bbox': bbox, 'end_time': end_time, 'iso_countries': iso_countries, 'per_page': '{}'.format(per_page), 'start_time': start_time, 'userkeys': userkeys, 'usernames': usernames, 'client_id': '{}'.format(self.client_id) } r = requests.get(url, params=data) http_error_handler(r.status_code) raw_json = r.json() return raw_json
36.391386
81
0.524314
2,083
19,433
4.759962
0.087374
0.02824
0.040948
0.067272
0.822693
0.786384
0.766616
0.719617
0.705497
0.693091
0
0.008186
0.40282
19,433
533
82
36.459662
0.846187
0.49596
0
0.64
0
0
0.098619
0.005866
0
0
0
0
0
1
0.07
false
0
0.015
0
0.155
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
a0f729db45561294cdf44422c5f560f802cb4f26
151
py
Python
answers/admin.py
gradut/cardboard
b3bb585f287506934a7016408dbce0d3fbe84e62
[ "MIT" ]
21
2019-11-19T21:50:50.000Z
2021-01-24T05:51:23.000Z
answers/admin.py
gradut/cardboard
b3bb585f287506934a7016408dbce0d3fbe84e62
[ "MIT" ]
404
2019-11-25T01:15:44.000Z
2021-11-22T15:06:53.000Z
answers/admin.py
gradut/cardboard
b3bb585f287506934a7016408dbce0d3fbe84e62
[ "MIT" ]
8
2019-12-02T03:00:11.000Z
2021-05-28T16:41:33.000Z
from django.contrib import admin from .models import Answer class AnswerAdmin(admin.ModelAdmin): pass admin.site.register(Answer, AnswerAdmin)
15.1
40
0.788079
19
151
6.263158
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.139073
151
9
41
16.777778
0.915385
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
9d04e098ac3654fc0062fe5d964bfd25d9d26647
1,788
py
Python
examples/method_examples/plot_best_validation_curve.py
c60evaporator/param-tuning-utility
80625f875428badac37d8439195a9327a565b040
[ "BSD-3-Clause" ]
null
null
null
examples/method_examples/plot_best_validation_curve.py
c60evaporator/param-tuning-utility
80625f875428badac37d8439195a9327a565b040
[ "BSD-3-Clause" ]
null
null
null
examples/method_examples/plot_best_validation_curve.py
c60evaporator/param-tuning-utility
80625f875428badac37d8439195a9327a565b040
[ "BSD-3-Clause" ]
1
2022-01-06T05:13:07.000Z
2022-01-06T05:13:07.000Z
# %% plot_best_validation_curve(), no argument import parent_import from tune_easy import LGBMRegressorTuning import pandas as pd # Load dataset df_reg = pd.read_csv(f'../sample_data/osaka_metropolis_english.csv') TARGET_VARIABLE = 'approval_rate' # Target variable USE_EXPLANATORY = ['2_between_30to60', '3_male_ratio', '5_household_member', 'latitude'] # Explanatory variables y = df_reg[TARGET_VARIABLE].values X = df_reg[USE_EXPLANATORY].values tuning = LGBMRegressorTuning(X, y, USE_EXPLANATORY) best_params, best_score = tuning.optuna_tuning() ###### Run plot_best_validation_curve() ###### tuning.plot_best_validation_curve() # %% plot_best_validation_curve(), Set parameter range by 'validation_curve_params' argument import parent_import from tune_easy import LGBMRegressorTuning import pandas as pd # Load dataset df_reg = pd.read_csv(f'../sample_data/osaka_metropolis_english.csv') TARGET_VARIABLE = 'approval_rate' # Target variable USE_EXPLANATORY = ['2_between_30to60', '3_male_ratio', '5_household_member', 'latitude'] # Explanatory variables y = df_reg[TARGET_VARIABLE].values X = df_reg[USE_EXPLANATORY].values tuning = LGBMRegressorTuning(X, y, USE_EXPLANATORY) best_params, best_score = tuning.optuna_tuning() # Set 'validation_curve_params' argument VALIDATION_CURVE_PARAMS = {'reg_lambda': [0.0001, 0.001, 0.01, 0.1, 1, 10], 'num_leaves': [2, 4, 8, 16, 32, 64], 'colsample_bytree': [0.2, 0.4, 0.6, 0.8, 1.0], 'subsample': [0.2, 0.4, 0.6, 0.8, 1.0], 'min_child_samples': [0, 5, 10, 20, 30, 50] } ###### plot_best_validation_curve() ###### tuning.plot_best_validation_curve(validation_curve_params=VALIDATION_CURVE_PARAMS) # %%
45.846154
113
0.709172
245
1,788
4.844898
0.326531
0.139006
0.090986
0.116259
0.764954
0.764954
0.764954
0.764954
0.764954
0.677338
0
0.04698
0.166667
1,788
38
114
47.052632
0.749664
0.191834
0
0.714286
0
0
0.2
0.060993
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
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
6
9d1700eac651f0eeae050784dd78a586ea1e7ad9
2,159
py
Python
cbf/cbf.py
asokraju/RL-buildings
116e6d93caffca40df5ca0bee83a5e11ae28a237
[ "MIT" ]
null
null
null
cbf/cbf.py
asokraju/RL-buildings
116e6d93caffca40df5ca0bee83a5e11ae28a237
[ "MIT" ]
1
2020-09-01T05:41:39.000Z
2020-09-01T05:41:39.000Z
cbf/cbf.py
asokraju/RL-buildings
116e6d93caffca40df5ca0bee83a5e11ae28a237
[ "MIT" ]
null
null
null
import numpy as np from cvxopt import matrix from cvxopt import solvers #Build barrier function model def CBF(env, T_min, T_max, eta_1 = 0.5, eta_2 = 0.5): P = matrix(np.diag([0.0, 1e24,1e24]), tc='d') q = matrix(np.zeros(3)) T = env.state[0] Q = env.state[1] a = np.delete(env.A[0], [1,2]) a_1 = env.A[0][2] var = np.append(T, env.d[env.count_steps,1:]).T #print("var: {}, a: {}".format(var,a)) temp = np.matmul(a, var) Delta_1 = -T_min + (eta_1 - 1)*(T - T_min) + temp Delta_2 = T_max + (eta_2 - 1)*(T_max - T) - temp G = np.array([[-a_1, -1., 0.], [a_1, 0., -1.], [-1., 0., 0.], [1., 0., 0.]]).astype(np.double) G = matrix(G,tc='d') h = np.array([Delta_1, Delta_2, -T_min, T_max]) #print(h) h = np.squeeze(h).astype(np.double) h = matrix(h,tc='d') solvers.options['show_progress'] = False sol = solvers.qp(P, q, G, h) u_bar = sol['x'] # if np.abs(u_bar[1]) > 0.001: # print("Violation of Safety: ") # print(u_bar[1]) return u_bar[0] #=================================== # CBF for RL #=================================== def CBF_rl(env, T_rl, T_min, T_max, eta_1 = 0.5, eta_2 = 0.5): #print('running - CBF_rl') P = matrix(np.diag([1.0, 1e24,1e24]), tc='d') q = matrix(np.zeros(3)) T = env.state[0] Q = env.state[1] a = np.delete(env.A[0], [1]) a_1 = env.A[0][2] var = np.append([T, T_rl], env.d[env.count_steps,1:]).T #print("var: {}, a: {}".format(var,a)) temp = np.matmul(a, var) Delta_1 = -T_min + (eta_1 - 1)*(T - T_min) + temp Delta_2 = T_max + (eta_2 - 1)*(T_max - T) - temp G = np.array([[-a_1, -1., 0.], [a_1, 0., -1.], [-1., 0., 0.], [1., 0., 0.]]).astype(np.double) G = matrix(G,tc='d') h = np.array([Delta_1, Delta_2, T_rl-T_min, T_max-T_rl]) #print(h) h = np.squeeze(h).astype(np.double) h = matrix(h, tc='d') solvers.options['show_progress'] = False sol = solvers.qp(P, q, G, h) u_bar = sol['x'] # if np.abs(u_bar[1]) > 0.001: # print("Violation of Safety: ") # print(u_bar[1]) return u_bar[0]
26.654321
98
0.508106
395
2,159
2.635443
0.172152
0.024976
0.019212
0.03074
0.834774
0.834774
0.822286
0.822286
0.822286
0.822286
0
0.061623
0.240852
2,159
80
99
26.9875
0.57352
0.183418
0
0.697674
0
0
0.019473
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.162791
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
9d479df953b018b79ecd40721e3826a418feda5d
24
py
Python
pystandlogger/__init__.py
howaboutudance/pyloggerkinesis
ef27a2d29f259ac114143c9afb50d4ff985abd96
[ "Apache-2.0" ]
null
null
null
pystandlogger/__init__.py
howaboutudance/pyloggerkinesis
ef27a2d29f259ac114143c9afb50d4ff985abd96
[ "Apache-2.0" ]
null
null
null
pystandlogger/__init__.py
howaboutudance/pyloggerkinesis
ef27a2d29f259ac114143c9afb50d4ff985abd96
[ "Apache-2.0" ]
null
null
null
from . import stand_dist
24
24
0.833333
4
24
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.904762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
c23da64261de67a230e554f532029617663fd7b6
106
py
Python
auto_blob_saver/__main__.py
Helloyunho/auto-blob-saver-
0095d9654ad7f54c01d233927137890573e2c4e5
[ "MIT" ]
4
2020-02-16T08:32:18.000Z
2021-07-17T07:58:06.000Z
auto_blob_saver/__main__.py
Helloyunho/auto-blob-saver
0095d9654ad7f54c01d233927137890573e2c4e5
[ "MIT" ]
null
null
null
auto_blob_saver/__main__.py
Helloyunho/auto-blob-saver
0095d9654ad7f54c01d233927137890573e2c4e5
[ "MIT" ]
null
null
null
import auto_blob_saver import asyncio if __name__ == "__main__": asyncio.run(auto_blob_saver.main())
17.666667
39
0.764151
15
106
4.6
0.6
0.231884
0.376812
0
0
0
0
0
0
0
0
0
0.132075
106
5
40
21.2
0.75
0
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
c2443b29594f2a6197a36e9fd75f7a6f8870e906
97
py
Python
gym_microrts/envs/__init__.py
Agents-Bar/gym-microrts
69267b05f0fff557f6318ab15182758d6d8889f4
[ "Apache-2.0" ]
null
null
null
gym_microrts/envs/__init__.py
Agents-Bar/gym-microrts
69267b05f0fff557f6318ab15182758d6d8889f4
[ "Apache-2.0" ]
null
null
null
gym_microrts/envs/__init__.py
Agents-Bar/gym-microrts
69267b05f0fff557f6318ab15182758d6d8889f4
[ "Apache-2.0" ]
null
null
null
from .grid_mode_vec_env import MicroRTSGridModeVecEnv from .bot_vec_env import MicroRTSBotVecEnv
32.333333
53
0.896907
13
97
6.307692
0.692308
0.146341
0.292683
0
0
0
0
0
0
0
0
0
0.082474
97
2
54
48.5
0.921348
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
dfb3fd80f39f383220271b2fabe4fbd203be8750
250
py
Python
snmpagent_unity/unity_impl/DiskName.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
2
2019-03-01T11:14:59.000Z
2019-10-02T17:47:59.000Z
snmpagent_unity/unity_impl/DiskName.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
2
2019-03-01T11:26:29.000Z
2019-10-11T18:56:54.000Z
snmpagent_unity/unity_impl/DiskName.py
factioninc/snmp-unity-agent
3525dc0fac60d1c784dcdd7c41693544bcbef843
[ "Apache-2.0" ]
1
2019-10-03T21:09:17.000Z
2019-10-03T21:09:17.000Z
class DiskName(object): def read_get(self, name, idx_name, unity_client): return unity_client.get_disk_name(idx_name) class DiskNameColumn(object): def get_idx(self, name, idx, unity_client): return unity_client.get_disks()
27.777778
53
0.728
36
250
4.75
0.416667
0.25731
0.128655
0.25731
0.362573
0.362573
0
0
0
0
0
0
0.176
250
8
54
31.25
0.830097
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
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
dfe8bc39963dccadf1d922be5b001ea8879e693d
120,857
py
Python
venv/lib/python3.8/site-packages/aws_cdk/aws_globalaccelerator/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_globalaccelerator/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_globalaccelerator/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
''' # AWS::GlobalAccelerator Construct Library <!--BEGIN STABILITY BANNER-->--- ![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge) ![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge) --- <!--END STABILITY BANNER--> ## Introduction AWS Global Accelerator (AGA) is a service that improves the availability and performance of your applications with local or global users. It intercepts your user's network connection at an edge location close to them, and routes it to one of potentially multiple, redundant backends across the more reliable and less congested AWS global network. AGA can be used to route traffic to Application Load Balancers, Network Load Balancers, EC2 Instances and Elastic IP Addresses. For more information, see the [AWS Global Accelerator Developer Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_GlobalAccelerator.html). ## Example Here's an example that sets up a Global Accelerator for two Application Load Balancers in two different AWS Regions: ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 import aws_cdk.aws_globalaccelerator as globalaccelerator import aws_cdk.aws_globalaccelerator_endpoints as ga_endpoints import aws_cdk.aws_elasticloadbalancingv2 as elbv2 # Create an Accelerator accelerator = globalaccelerator.Accelerator(stack, "Accelerator") # Create a Listener listener = accelerator.add_listener("Listener", port_ranges=[PortRange(from_port=80), PortRange(from_port=443) ] ) # Import the Load Balancers nlb1 = elbv2.NetworkLoadBalancer.from_network_load_balancer_attributes(stack, "NLB1", load_balancer_arn="arn:aws:elasticloadbalancing:us-west-2:111111111111:loadbalancer/app/my-load-balancer1/e16bef66805b" ) nlb2 = elbv2.NetworkLoadBalancer.from_network_load_balancer_attributes(stack, "NLB2", load_balancer_arn="arn:aws:elasticloadbalancing:ap-south-1:111111111111:loadbalancer/app/my-load-balancer2/5513dc2ea8a1" ) # Add one EndpointGroup for each Region we are targeting listener.add_endpoint_group("Group1", endpoints=[ga_endpoints.NetworkLoadBalancerEndpoint(nlb1)] ) listener.add_endpoint_group("Group2", # Imported load balancers automatically calculate their Region from the ARN. # If you are load balancing to other resources, you must also pass a `region` # parameter here. endpoints=[ga_endpoints.NetworkLoadBalancerEndpoint(nlb2)] ) ``` ## Concepts The **Accelerator** construct defines a Global Accelerator resource. An Accelerator includes one or more **Listeners** that accepts inbound connections on one or more ports. Each Listener has one or more **Endpoint Groups**, representing multiple geographically distributed copies of your application. There is one Endpoint Group per Region, and user traffic is routed to the closest Region by default. An Endpoint Group consists of one or more **Endpoints**, which is where the user traffic coming in on the Listener is ultimately sent. The Endpoint port used is the same as the traffic came in on at the Listener, unless overridden. ## Types of Endpoints There are 4 types of Endpoints, and they can be found in the `@aws-cdk/aws-globalaccelerator-endpoints` package: * Application Load Balancers * Network Load Balancers * EC2 Instances * Elastic IP Addresses ### Application Load Balancers ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 alb = elbv2.ApplicationLoadBalancer(...) listener.add_endpoint_group("Group", endpoints=[ ga_endpoints.ApplicationLoadBalancerEndpoint(alb, weight=128, preserve_client_ip=True ) ] ) ``` ### Network Load Balancers ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 nlb = elbv2.NetworkLoadBalancer(...) listener.add_endpoint_group("Group", endpoints=[ ga_endpoints.NetworkLoadBalancerEndpoint(nlb, weight=128 ) ] ) ``` ### EC2 Instances ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 instance = ec2.instance(...) listener.add_endpoint_group("Group", endpoints=[ ga_endpoints.InstanceEndpoint(instance, weight=128, preserve_client_ip=True ) ] ) ``` ### Elastic IP Addresses ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 eip = ec2.CfnEIP(...) listener.add_endpoint_group("Group", endpoints=[ ga_endpoints.CfnEipEndpoint(eip, weight=128 ) ] ) ``` ## Client IP Address Preservation and Security Groups When using the `preserveClientIp` feature, AGA creates **Elastic Network Interfaces** (ENIs) in your AWS account, that are associated with a Security Group AGA creates for you. You can use the security group created by AGA as a source group in other security groups (such as those for EC2 instances or Elastic Load Balancers), if you want to restrict incoming traffic to the AGA security group rules. AGA creates a specific security group called `GlobalAccelerator` for each VPC it has an ENI in (this behavior can not be changed). CloudFormation doesn't support referencing the security group created by AGA, but this construct library comes with a custom resource that enables you to reference the AGA security group. Call `endpointGroup.connectionsPeer()` to obtain a reference to the Security Group which you can use in connection rules. You must pass a reference to the VPC in whose context the security group will be looked up. Example: ```python # Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 # ... # Non-open ALB alb = elbv2.ApplicationLoadBalancer(stack, "ALB") endpoint_group = listener.add_endpoint_group("Group", endpoints=[ ga_endpoints.ApplicationLoadBalancerEndpoint(alb, preserve_client_ips=True ) ] ) # Remember that there is only one AGA security group per VPC. aga_sg = endpoint_group.connections_peer("GlobalAcceleratorSG", vpc) # Allow connections from the AGA to the ALB alb.connections.allow_from(aga_sg, Port.tcp(443)) ``` ''' import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk.aws_ec2 import aws_cdk.core import constructs @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.AcceleratorAttributes", jsii_struct_bases=[], name_mapping={"accelerator_arn": "acceleratorArn", "dns_name": "dnsName"}, ) class AcceleratorAttributes: def __init__( self, *, accelerator_arn: builtins.str, dns_name: builtins.str, ) -> None: '''Attributes required to import an existing accelerator to the stack. :param accelerator_arn: The ARN of the accelerator. :param dns_name: The DNS name of the accelerator. ''' self._values: typing.Dict[str, typing.Any] = { "accelerator_arn": accelerator_arn, "dns_name": dns_name, } @builtins.property def accelerator_arn(self) -> builtins.str: '''The ARN of the accelerator.''' result = self._values.get("accelerator_arn") assert result is not None, "Required property 'accelerator_arn' is missing" return typing.cast(builtins.str, result) @builtins.property def dns_name(self) -> builtins.str: '''The DNS name of the accelerator.''' result = self._values.get("dns_name") assert result is not None, "Required property 'dns_name' is missing" return typing.cast(builtins.str, result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "AcceleratorAttributes(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.AcceleratorProps", jsii_struct_bases=[], name_mapping={"accelerator_name": "acceleratorName", "enabled": "enabled"}, ) class AcceleratorProps: def __init__( self, *, accelerator_name: typing.Optional[builtins.str] = None, enabled: typing.Optional[builtins.bool] = None, ) -> None: '''Construct properties of the Accelerator. :param accelerator_name: The name of the accelerator. Default: - resource ID :param enabled: Indicates whether the accelerator is enabled. Default: true ''' self._values: typing.Dict[str, typing.Any] = {} if accelerator_name is not None: self._values["accelerator_name"] = accelerator_name if enabled is not None: self._values["enabled"] = enabled @builtins.property def accelerator_name(self) -> typing.Optional[builtins.str]: '''The name of the accelerator. :default: - resource ID ''' result = self._values.get("accelerator_name") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def enabled(self) -> typing.Optional[builtins.bool]: '''Indicates whether the accelerator is enabled. :default: true ''' result = self._values.get("enabled") return typing.cast(typing.Optional[builtins.bool], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "AcceleratorProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(aws_cdk.core.IInspectable) class CfnAccelerator( aws_cdk.core.CfnResource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.CfnAccelerator", ): '''A CloudFormation ``AWS::GlobalAccelerator::Accelerator``. :cloudformationResource: AWS::GlobalAccelerator::Accelerator :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html ''' def __init__( self, scope: aws_cdk.core.Construct, id: builtins.str, *, name: builtins.str, enabled: typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]] = None, ip_addresses: typing.Optional[typing.Sequence[builtins.str]] = None, ip_address_type: typing.Optional[builtins.str] = None, tags: typing.Optional[typing.Sequence[aws_cdk.core.CfnTag]] = None, ) -> None: '''Create a new ``AWS::GlobalAccelerator::Accelerator``. :param scope: - scope in which this resource is defined. :param id: - scoped id of the resource. :param name: ``AWS::GlobalAccelerator::Accelerator.Name``. :param enabled: ``AWS::GlobalAccelerator::Accelerator.Enabled``. :param ip_addresses: ``AWS::GlobalAccelerator::Accelerator.IpAddresses``. :param ip_address_type: ``AWS::GlobalAccelerator::Accelerator.IpAddressType``. :param tags: ``AWS::GlobalAccelerator::Accelerator.Tags``. ''' props = CfnAcceleratorProps( name=name, enabled=enabled, ip_addresses=ip_addresses, ip_address_type=ip_address_type, tags=tags, ) jsii.create(CfnAccelerator, self, [scope, id, props]) @jsii.member(jsii_name="inspect") def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None: '''Examines the CloudFormation resource and discloses attributes. :param inspector: - tree inspector to collect and process attributes. ''' return typing.cast(None, jsii.invoke(self, "inspect", [inspector])) @jsii.member(jsii_name="renderProperties") def _render_properties( self, props: typing.Mapping[builtins.str, typing.Any], ) -> typing.Mapping[builtins.str, typing.Any]: ''' :param props: - ''' return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props])) @jsii.python.classproperty # type: ignore[misc] @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME") def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str: '''The CloudFormation resource type name for this resource class.''' return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="attrAcceleratorArn") def attr_accelerator_arn(self) -> builtins.str: ''' :cloudformationAttribute: AcceleratorArn ''' return typing.cast(builtins.str, jsii.get(self, "attrAcceleratorArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="attrDnsName") def attr_dns_name(self) -> builtins.str: ''' :cloudformationAttribute: DnsName ''' return typing.cast(builtins.str, jsii.get(self, "attrDnsName")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="cfnProperties") def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]: return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="tags") def tags(self) -> aws_cdk.core.TagManager: '''``AWS::GlobalAccelerator::Accelerator.Tags``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-tags ''' return typing.cast(aws_cdk.core.TagManager, jsii.get(self, "tags")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="name") def name(self) -> builtins.str: '''``AWS::GlobalAccelerator::Accelerator.Name``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-name ''' return typing.cast(builtins.str, jsii.get(self, "name")) @name.setter def name(self, value: builtins.str) -> None: jsii.set(self, "name", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="enabled") def enabled( self, ) -> typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]]: '''``AWS::GlobalAccelerator::Accelerator.Enabled``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-enabled ''' return typing.cast(typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]], jsii.get(self, "enabled")) @enabled.setter def enabled( self, value: typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]], ) -> None: jsii.set(self, "enabled", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="ipAddresses") def ip_addresses(self) -> typing.Optional[typing.List[builtins.str]]: '''``AWS::GlobalAccelerator::Accelerator.IpAddresses``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresses ''' return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "ipAddresses")) @ip_addresses.setter def ip_addresses(self, value: typing.Optional[typing.List[builtins.str]]) -> None: jsii.set(self, "ipAddresses", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="ipAddressType") def ip_address_type(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::Accelerator.IpAddressType``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresstype ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "ipAddressType")) @ip_address_type.setter def ip_address_type(self, value: typing.Optional[builtins.str]) -> None: jsii.set(self, "ipAddressType", value) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnAcceleratorProps", jsii_struct_bases=[], name_mapping={ "name": "name", "enabled": "enabled", "ip_addresses": "ipAddresses", "ip_address_type": "ipAddressType", "tags": "tags", }, ) class CfnAcceleratorProps: def __init__( self, *, name: builtins.str, enabled: typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]] = None, ip_addresses: typing.Optional[typing.Sequence[builtins.str]] = None, ip_address_type: typing.Optional[builtins.str] = None, tags: typing.Optional[typing.Sequence[aws_cdk.core.CfnTag]] = None, ) -> None: '''Properties for defining a ``AWS::GlobalAccelerator::Accelerator``. :param name: ``AWS::GlobalAccelerator::Accelerator.Name``. :param enabled: ``AWS::GlobalAccelerator::Accelerator.Enabled``. :param ip_addresses: ``AWS::GlobalAccelerator::Accelerator.IpAddresses``. :param ip_address_type: ``AWS::GlobalAccelerator::Accelerator.IpAddressType``. :param tags: ``AWS::GlobalAccelerator::Accelerator.Tags``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html ''' self._values: typing.Dict[str, typing.Any] = { "name": name, } if enabled is not None: self._values["enabled"] = enabled if ip_addresses is not None: self._values["ip_addresses"] = ip_addresses if ip_address_type is not None: self._values["ip_address_type"] = ip_address_type if tags is not None: self._values["tags"] = tags @builtins.property def name(self) -> builtins.str: '''``AWS::GlobalAccelerator::Accelerator.Name``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-name ''' result = self._values.get("name") assert result is not None, "Required property 'name' is missing" return typing.cast(builtins.str, result) @builtins.property def enabled( self, ) -> typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]]: '''``AWS::GlobalAccelerator::Accelerator.Enabled``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-enabled ''' result = self._values.get("enabled") return typing.cast(typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]], result) @builtins.property def ip_addresses(self) -> typing.Optional[typing.List[builtins.str]]: '''``AWS::GlobalAccelerator::Accelerator.IpAddresses``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresses ''' result = self._values.get("ip_addresses") return typing.cast(typing.Optional[typing.List[builtins.str]], result) @builtins.property def ip_address_type(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::Accelerator.IpAddressType``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-ipaddresstype ''' result = self._values.get("ip_address_type") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def tags(self) -> typing.Optional[typing.List[aws_cdk.core.CfnTag]]: '''``AWS::GlobalAccelerator::Accelerator.Tags``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-accelerator.html#cfn-globalaccelerator-accelerator-tags ''' result = self._values.get("tags") return typing.cast(typing.Optional[typing.List[aws_cdk.core.CfnTag]], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "CfnAcceleratorProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(aws_cdk.core.IInspectable) class CfnEndpointGroup( aws_cdk.core.CfnResource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.CfnEndpointGroup", ): '''A CloudFormation ``AWS::GlobalAccelerator::EndpointGroup``. :cloudformationResource: AWS::GlobalAccelerator::EndpointGroup :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html ''' def __init__( self, scope: aws_cdk.core.Construct, id: builtins.str, *, endpoint_group_region: builtins.str, listener_arn: builtins.str, endpoint_configurations: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.EndpointConfigurationProperty"]]]] = None, health_check_interval_seconds: typing.Optional[jsii.Number] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional[builtins.str] = None, port_overrides: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.PortOverrideProperty"]]]] = None, threshold_count: typing.Optional[jsii.Number] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, ) -> None: '''Create a new ``AWS::GlobalAccelerator::EndpointGroup``. :param scope: - scope in which this resource is defined. :param id: - scoped id of the resource. :param endpoint_group_region: ``AWS::GlobalAccelerator::EndpointGroup.EndpointGroupRegion``. :param listener_arn: ``AWS::GlobalAccelerator::EndpointGroup.ListenerArn``. :param endpoint_configurations: ``AWS::GlobalAccelerator::EndpointGroup.EndpointConfigurations``. :param health_check_interval_seconds: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckIntervalSeconds``. :param health_check_path: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPath``. :param health_check_port: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPort``. :param health_check_protocol: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckProtocol``. :param port_overrides: ``AWS::GlobalAccelerator::EndpointGroup.PortOverrides``. :param threshold_count: ``AWS::GlobalAccelerator::EndpointGroup.ThresholdCount``. :param traffic_dial_percentage: ``AWS::GlobalAccelerator::EndpointGroup.TrafficDialPercentage``. ''' props = CfnEndpointGroupProps( endpoint_group_region=endpoint_group_region, listener_arn=listener_arn, endpoint_configurations=endpoint_configurations, health_check_interval_seconds=health_check_interval_seconds, health_check_path=health_check_path, health_check_port=health_check_port, health_check_protocol=health_check_protocol, port_overrides=port_overrides, threshold_count=threshold_count, traffic_dial_percentage=traffic_dial_percentage, ) jsii.create(CfnEndpointGroup, self, [scope, id, props]) @jsii.member(jsii_name="inspect") def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None: '''Examines the CloudFormation resource and discloses attributes. :param inspector: - tree inspector to collect and process attributes. ''' return typing.cast(None, jsii.invoke(self, "inspect", [inspector])) @jsii.member(jsii_name="renderProperties") def _render_properties( self, props: typing.Mapping[builtins.str, typing.Any], ) -> typing.Mapping[builtins.str, typing.Any]: ''' :param props: - ''' return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props])) @jsii.python.classproperty # type: ignore[misc] @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME") def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str: '''The CloudFormation resource type name for this resource class.''' return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="attrEndpointGroupArn") def attr_endpoint_group_arn(self) -> builtins.str: ''' :cloudformationAttribute: EndpointGroupArn ''' return typing.cast(builtins.str, jsii.get(self, "attrEndpointGroupArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="cfnProperties") def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]: return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointGroupRegion") def endpoint_group_region(self) -> builtins.str: '''``AWS::GlobalAccelerator::EndpointGroup.EndpointGroupRegion``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointgroupregion ''' return typing.cast(builtins.str, jsii.get(self, "endpointGroupRegion")) @endpoint_group_region.setter def endpoint_group_region(self, value: builtins.str) -> None: jsii.set(self, "endpointGroupRegion", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="listenerArn") def listener_arn(self) -> builtins.str: '''``AWS::GlobalAccelerator::EndpointGroup.ListenerArn``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-listenerarn ''' return typing.cast(builtins.str, jsii.get(self, "listenerArn")) @listener_arn.setter def listener_arn(self, value: builtins.str) -> None: jsii.set(self, "listenerArn", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointConfigurations") def endpoint_configurations( self, ) -> typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.EndpointConfigurationProperty"]]]]: '''``AWS::GlobalAccelerator::EndpointGroup.EndpointConfigurations``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointconfigurations ''' return typing.cast(typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.EndpointConfigurationProperty"]]]], jsii.get(self, "endpointConfigurations")) @endpoint_configurations.setter def endpoint_configurations( self, value: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.EndpointConfigurationProperty"]]]], ) -> None: jsii.set(self, "endpointConfigurations", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="healthCheckIntervalSeconds") def health_check_interval_seconds(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckIntervalSeconds``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckintervalseconds ''' return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "healthCheckIntervalSeconds")) @health_check_interval_seconds.setter def health_check_interval_seconds( self, value: typing.Optional[jsii.Number], ) -> None: jsii.set(self, "healthCheckIntervalSeconds", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="healthCheckPath") def health_check_path(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPath``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckpath ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "healthCheckPath")) @health_check_path.setter def health_check_path(self, value: typing.Optional[builtins.str]) -> None: jsii.set(self, "healthCheckPath", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="healthCheckPort") def health_check_port(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckport ''' return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "healthCheckPort")) @health_check_port.setter def health_check_port(self, value: typing.Optional[jsii.Number]) -> None: jsii.set(self, "healthCheckPort", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="healthCheckProtocol") def health_check_protocol(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckProtocol``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckprotocol ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "healthCheckProtocol")) @health_check_protocol.setter def health_check_protocol(self, value: typing.Optional[builtins.str]) -> None: jsii.set(self, "healthCheckProtocol", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="portOverrides") def port_overrides( self, ) -> typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.PortOverrideProperty"]]]]: '''``AWS::GlobalAccelerator::EndpointGroup.PortOverrides``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-portoverrides ''' return typing.cast(typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.PortOverrideProperty"]]]], jsii.get(self, "portOverrides")) @port_overrides.setter def port_overrides( self, value: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnEndpointGroup.PortOverrideProperty"]]]], ) -> None: jsii.set(self, "portOverrides", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="thresholdCount") def threshold_count(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.ThresholdCount``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-thresholdcount ''' return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "thresholdCount")) @threshold_count.setter def threshold_count(self, value: typing.Optional[jsii.Number]) -> None: jsii.set(self, "thresholdCount", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="trafficDialPercentage") def traffic_dial_percentage(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.TrafficDialPercentage``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-trafficdialpercentage ''' return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "trafficDialPercentage")) @traffic_dial_percentage.setter def traffic_dial_percentage(self, value: typing.Optional[jsii.Number]) -> None: jsii.set(self, "trafficDialPercentage", value) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnEndpointGroup.EndpointConfigurationProperty", jsii_struct_bases=[], name_mapping={ "endpoint_id": "endpointId", "client_ip_preservation_enabled": "clientIpPreservationEnabled", "weight": "weight", }, ) class EndpointConfigurationProperty: def __init__( self, *, endpoint_id: builtins.str, client_ip_preservation_enabled: typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]] = None, weight: typing.Optional[jsii.Number] = None, ) -> None: ''' :param endpoint_id: ``CfnEndpointGroup.EndpointConfigurationProperty.EndpointId``. :param client_ip_preservation_enabled: ``CfnEndpointGroup.EndpointConfigurationProperty.ClientIPPreservationEnabled``. :param weight: ``CfnEndpointGroup.EndpointConfigurationProperty.Weight``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html ''' self._values: typing.Dict[str, typing.Any] = { "endpoint_id": endpoint_id, } if client_ip_preservation_enabled is not None: self._values["client_ip_preservation_enabled"] = client_ip_preservation_enabled if weight is not None: self._values["weight"] = weight @builtins.property def endpoint_id(self) -> builtins.str: '''``CfnEndpointGroup.EndpointConfigurationProperty.EndpointId``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-endpointid ''' result = self._values.get("endpoint_id") assert result is not None, "Required property 'endpoint_id' is missing" return typing.cast(builtins.str, result) @builtins.property def client_ip_preservation_enabled( self, ) -> typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]]: '''``CfnEndpointGroup.EndpointConfigurationProperty.ClientIPPreservationEnabled``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-clientippreservationenabled ''' result = self._values.get("client_ip_preservation_enabled") return typing.cast(typing.Optional[typing.Union[builtins.bool, aws_cdk.core.IResolvable]], result) @builtins.property def weight(self) -> typing.Optional[jsii.Number]: '''``CfnEndpointGroup.EndpointConfigurationProperty.Weight``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-endpointconfiguration.html#cfn-globalaccelerator-endpointgroup-endpointconfiguration-weight ''' result = self._values.get("weight") return typing.cast(typing.Optional[jsii.Number], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "EndpointConfigurationProperty(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnEndpointGroup.PortOverrideProperty", jsii_struct_bases=[], name_mapping={ "endpoint_port": "endpointPort", "listener_port": "listenerPort", }, ) class PortOverrideProperty: def __init__( self, *, endpoint_port: jsii.Number, listener_port: jsii.Number, ) -> None: ''' :param endpoint_port: ``CfnEndpointGroup.PortOverrideProperty.EndpointPort``. :param listener_port: ``CfnEndpointGroup.PortOverrideProperty.ListenerPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html ''' self._values: typing.Dict[str, typing.Any] = { "endpoint_port": endpoint_port, "listener_port": listener_port, } @builtins.property def endpoint_port(self) -> jsii.Number: '''``CfnEndpointGroup.PortOverrideProperty.EndpointPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html#cfn-globalaccelerator-endpointgroup-portoverride-endpointport ''' result = self._values.get("endpoint_port") assert result is not None, "Required property 'endpoint_port' is missing" return typing.cast(jsii.Number, result) @builtins.property def listener_port(self) -> jsii.Number: '''``CfnEndpointGroup.PortOverrideProperty.ListenerPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-endpointgroup-portoverride.html#cfn-globalaccelerator-endpointgroup-portoverride-listenerport ''' result = self._values.get("listener_port") assert result is not None, "Required property 'listener_port' is missing" return typing.cast(jsii.Number, result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "PortOverrideProperty(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnEndpointGroupProps", jsii_struct_bases=[], name_mapping={ "endpoint_group_region": "endpointGroupRegion", "listener_arn": "listenerArn", "endpoint_configurations": "endpointConfigurations", "health_check_interval_seconds": "healthCheckIntervalSeconds", "health_check_path": "healthCheckPath", "health_check_port": "healthCheckPort", "health_check_protocol": "healthCheckProtocol", "port_overrides": "portOverrides", "threshold_count": "thresholdCount", "traffic_dial_percentage": "trafficDialPercentage", }, ) class CfnEndpointGroupProps: def __init__( self, *, endpoint_group_region: builtins.str, listener_arn: builtins.str, endpoint_configurations: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.EndpointConfigurationProperty]]]] = None, health_check_interval_seconds: typing.Optional[jsii.Number] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional[builtins.str] = None, port_overrides: typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.PortOverrideProperty]]]] = None, threshold_count: typing.Optional[jsii.Number] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, ) -> None: '''Properties for defining a ``AWS::GlobalAccelerator::EndpointGroup``. :param endpoint_group_region: ``AWS::GlobalAccelerator::EndpointGroup.EndpointGroupRegion``. :param listener_arn: ``AWS::GlobalAccelerator::EndpointGroup.ListenerArn``. :param endpoint_configurations: ``AWS::GlobalAccelerator::EndpointGroup.EndpointConfigurations``. :param health_check_interval_seconds: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckIntervalSeconds``. :param health_check_path: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPath``. :param health_check_port: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPort``. :param health_check_protocol: ``AWS::GlobalAccelerator::EndpointGroup.HealthCheckProtocol``. :param port_overrides: ``AWS::GlobalAccelerator::EndpointGroup.PortOverrides``. :param threshold_count: ``AWS::GlobalAccelerator::EndpointGroup.ThresholdCount``. :param traffic_dial_percentage: ``AWS::GlobalAccelerator::EndpointGroup.TrafficDialPercentage``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html ''' self._values: typing.Dict[str, typing.Any] = { "endpoint_group_region": endpoint_group_region, "listener_arn": listener_arn, } if endpoint_configurations is not None: self._values["endpoint_configurations"] = endpoint_configurations if health_check_interval_seconds is not None: self._values["health_check_interval_seconds"] = health_check_interval_seconds if health_check_path is not None: self._values["health_check_path"] = health_check_path if health_check_port is not None: self._values["health_check_port"] = health_check_port if health_check_protocol is not None: self._values["health_check_protocol"] = health_check_protocol if port_overrides is not None: self._values["port_overrides"] = port_overrides if threshold_count is not None: self._values["threshold_count"] = threshold_count if traffic_dial_percentage is not None: self._values["traffic_dial_percentage"] = traffic_dial_percentage @builtins.property def endpoint_group_region(self) -> builtins.str: '''``AWS::GlobalAccelerator::EndpointGroup.EndpointGroupRegion``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointgroupregion ''' result = self._values.get("endpoint_group_region") assert result is not None, "Required property 'endpoint_group_region' is missing" return typing.cast(builtins.str, result) @builtins.property def listener_arn(self) -> builtins.str: '''``AWS::GlobalAccelerator::EndpointGroup.ListenerArn``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-listenerarn ''' result = self._values.get("listener_arn") assert result is not None, "Required property 'listener_arn' is missing" return typing.cast(builtins.str, result) @builtins.property def endpoint_configurations( self, ) -> typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.EndpointConfigurationProperty]]]]: '''``AWS::GlobalAccelerator::EndpointGroup.EndpointConfigurations``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-endpointconfigurations ''' result = self._values.get("endpoint_configurations") return typing.cast(typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.EndpointConfigurationProperty]]]], result) @builtins.property def health_check_interval_seconds(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckIntervalSeconds``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckintervalseconds ''' result = self._values.get("health_check_interval_seconds") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def health_check_path(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPath``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckpath ''' result = self._values.get("health_check_path") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def health_check_port(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckport ''' result = self._values.get("health_check_port") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def health_check_protocol(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::EndpointGroup.HealthCheckProtocol``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-healthcheckprotocol ''' result = self._values.get("health_check_protocol") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def port_overrides( self, ) -> typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.PortOverrideProperty]]]]: '''``AWS::GlobalAccelerator::EndpointGroup.PortOverrides``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-portoverrides ''' result = self._values.get("port_overrides") return typing.cast(typing.Optional[typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnEndpointGroup.PortOverrideProperty]]]], result) @builtins.property def threshold_count(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.ThresholdCount``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-thresholdcount ''' result = self._values.get("threshold_count") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def traffic_dial_percentage(self) -> typing.Optional[jsii.Number]: '''``AWS::GlobalAccelerator::EndpointGroup.TrafficDialPercentage``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-endpointgroup.html#cfn-globalaccelerator-endpointgroup-trafficdialpercentage ''' result = self._values.get("traffic_dial_percentage") return typing.cast(typing.Optional[jsii.Number], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "CfnEndpointGroupProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(aws_cdk.core.IInspectable) class CfnListener( aws_cdk.core.CfnResource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.CfnListener", ): '''A CloudFormation ``AWS::GlobalAccelerator::Listener``. :cloudformationResource: AWS::GlobalAccelerator::Listener :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html ''' def __init__( self, scope: aws_cdk.core.Construct, id: builtins.str, *, accelerator_arn: builtins.str, port_ranges: typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, "CfnListener.PortRangeProperty"]]], protocol: builtins.str, client_affinity: typing.Optional[builtins.str] = None, ) -> None: '''Create a new ``AWS::GlobalAccelerator::Listener``. :param scope: - scope in which this resource is defined. :param id: - scoped id of the resource. :param accelerator_arn: ``AWS::GlobalAccelerator::Listener.AcceleratorArn``. :param port_ranges: ``AWS::GlobalAccelerator::Listener.PortRanges``. :param protocol: ``AWS::GlobalAccelerator::Listener.Protocol``. :param client_affinity: ``AWS::GlobalAccelerator::Listener.ClientAffinity``. ''' props = CfnListenerProps( accelerator_arn=accelerator_arn, port_ranges=port_ranges, protocol=protocol, client_affinity=client_affinity, ) jsii.create(CfnListener, self, [scope, id, props]) @jsii.member(jsii_name="inspect") def inspect(self, inspector: aws_cdk.core.TreeInspector) -> None: '''Examines the CloudFormation resource and discloses attributes. :param inspector: - tree inspector to collect and process attributes. ''' return typing.cast(None, jsii.invoke(self, "inspect", [inspector])) @jsii.member(jsii_name="renderProperties") def _render_properties( self, props: typing.Mapping[builtins.str, typing.Any], ) -> typing.Mapping[builtins.str, typing.Any]: ''' :param props: - ''' return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props])) @jsii.python.classproperty # type: ignore[misc] @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME") def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str: '''The CloudFormation resource type name for this resource class.''' return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="attrListenerArn") def attr_listener_arn(self) -> builtins.str: ''' :cloudformationAttribute: ListenerArn ''' return typing.cast(builtins.str, jsii.get(self, "attrListenerArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="cfnProperties") def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]: return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="acceleratorArn") def accelerator_arn(self) -> builtins.str: '''``AWS::GlobalAccelerator::Listener.AcceleratorArn``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-acceleratorarn ''' return typing.cast(builtins.str, jsii.get(self, "acceleratorArn")) @accelerator_arn.setter def accelerator_arn(self, value: builtins.str) -> None: jsii.set(self, "acceleratorArn", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="portRanges") def port_ranges( self, ) -> typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnListener.PortRangeProperty"]]]: '''``AWS::GlobalAccelerator::Listener.PortRanges``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-portranges ''' return typing.cast(typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnListener.PortRangeProperty"]]], jsii.get(self, "portRanges")) @port_ranges.setter def port_ranges( self, value: typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, "CfnListener.PortRangeProperty"]]], ) -> None: jsii.set(self, "portRanges", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="protocol") def protocol(self) -> builtins.str: '''``AWS::GlobalAccelerator::Listener.Protocol``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-protocol ''' return typing.cast(builtins.str, jsii.get(self, "protocol")) @protocol.setter def protocol(self, value: builtins.str) -> None: jsii.set(self, "protocol", value) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="clientAffinity") def client_affinity(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::Listener.ClientAffinity``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-clientaffinity ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "clientAffinity")) @client_affinity.setter def client_affinity(self, value: typing.Optional[builtins.str]) -> None: jsii.set(self, "clientAffinity", value) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnListener.PortRangeProperty", jsii_struct_bases=[], name_mapping={"from_port": "fromPort", "to_port": "toPort"}, ) class PortRangeProperty: def __init__(self, *, from_port: jsii.Number, to_port: jsii.Number) -> None: ''' :param from_port: ``CfnListener.PortRangeProperty.FromPort``. :param to_port: ``CfnListener.PortRangeProperty.ToPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html ''' self._values: typing.Dict[str, typing.Any] = { "from_port": from_port, "to_port": to_port, } @builtins.property def from_port(self) -> jsii.Number: '''``CfnListener.PortRangeProperty.FromPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html#cfn-globalaccelerator-listener-portrange-fromport ''' result = self._values.get("from_port") assert result is not None, "Required property 'from_port' is missing" return typing.cast(jsii.Number, result) @builtins.property def to_port(self) -> jsii.Number: '''``CfnListener.PortRangeProperty.ToPort``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-listener-portrange.html#cfn-globalaccelerator-listener-portrange-toport ''' result = self._values.get("to_port") assert result is not None, "Required property 'to_port' is missing" return typing.cast(jsii.Number, result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "PortRangeProperty(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.CfnListenerProps", jsii_struct_bases=[], name_mapping={ "accelerator_arn": "acceleratorArn", "port_ranges": "portRanges", "protocol": "protocol", "client_affinity": "clientAffinity", }, ) class CfnListenerProps: def __init__( self, *, accelerator_arn: builtins.str, port_ranges: typing.Union[aws_cdk.core.IResolvable, typing.Sequence[typing.Union[aws_cdk.core.IResolvable, CfnListener.PortRangeProperty]]], protocol: builtins.str, client_affinity: typing.Optional[builtins.str] = None, ) -> None: '''Properties for defining a ``AWS::GlobalAccelerator::Listener``. :param accelerator_arn: ``AWS::GlobalAccelerator::Listener.AcceleratorArn``. :param port_ranges: ``AWS::GlobalAccelerator::Listener.PortRanges``. :param protocol: ``AWS::GlobalAccelerator::Listener.Protocol``. :param client_affinity: ``AWS::GlobalAccelerator::Listener.ClientAffinity``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html ''' self._values: typing.Dict[str, typing.Any] = { "accelerator_arn": accelerator_arn, "port_ranges": port_ranges, "protocol": protocol, } if client_affinity is not None: self._values["client_affinity"] = client_affinity @builtins.property def accelerator_arn(self) -> builtins.str: '''``AWS::GlobalAccelerator::Listener.AcceleratorArn``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-acceleratorarn ''' result = self._values.get("accelerator_arn") assert result is not None, "Required property 'accelerator_arn' is missing" return typing.cast(builtins.str, result) @builtins.property def port_ranges( self, ) -> typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnListener.PortRangeProperty]]]: '''``AWS::GlobalAccelerator::Listener.PortRanges``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-portranges ''' result = self._values.get("port_ranges") assert result is not None, "Required property 'port_ranges' is missing" return typing.cast(typing.Union[aws_cdk.core.IResolvable, typing.List[typing.Union[aws_cdk.core.IResolvable, CfnListener.PortRangeProperty]]], result) @builtins.property def protocol(self) -> builtins.str: '''``AWS::GlobalAccelerator::Listener.Protocol``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-protocol ''' result = self._values.get("protocol") assert result is not None, "Required property 'protocol' is missing" return typing.cast(builtins.str, result) @builtins.property def client_affinity(self) -> typing.Optional[builtins.str]: '''``AWS::GlobalAccelerator::Listener.ClientAffinity``. :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-clientaffinity ''' result = self._values.get("client_affinity") return typing.cast(typing.Optional[builtins.str], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "CfnListenerProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.enum(jsii_type="@aws-cdk/aws-globalaccelerator.ClientAffinity") class ClientAffinity(enum.Enum): '''Client affinity gives you control over whether to always route each client to the same specific endpoint. :see: https://docs.aws.amazon.com/global-accelerator/latest/dg/about-listeners.html#about-listeners-client-affinity ''' NONE = "NONE" '''Route traffic based on the 5-tuple ``(source IP, source port, destination IP, destination port, protocol)``.''' SOURCE_IP = "SOURCE_IP" '''Route traffic based on the 2-tuple ``(source IP, destination IP)``. The result is that multiple connections from the same client will be routed the same. ''' @jsii.enum(jsii_type="@aws-cdk/aws-globalaccelerator.ConnectionProtocol") class ConnectionProtocol(enum.Enum): '''The protocol for the connections from clients to the accelerator.''' TCP = "TCP" '''TCP.''' UDP = "UDP" '''UDP.''' @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.EndpointGroupOptions", jsii_struct_bases=[], name_mapping={ "endpoint_group_name": "endpointGroupName", "endpoints": "endpoints", "health_check_interval": "healthCheckInterval", "health_check_path": "healthCheckPath", "health_check_port": "healthCheckPort", "health_check_protocol": "healthCheckProtocol", "health_check_threshold": "healthCheckThreshold", "port_overrides": "portOverrides", "region": "region", "traffic_dial_percentage": "trafficDialPercentage", }, ) class EndpointGroupOptions: def __init__( self, *, endpoint_group_name: typing.Optional[builtins.str] = None, endpoints: typing.Optional[typing.Sequence["IEndpoint"]] = None, health_check_interval: typing.Optional[aws_cdk.core.Duration] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional["HealthCheckProtocol"] = None, health_check_threshold: typing.Optional[jsii.Number] = None, port_overrides: typing.Optional[typing.Sequence["PortOverride"]] = None, region: typing.Optional[builtins.str] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, ) -> None: '''Basic options for creating a new EndpointGroup. :param endpoint_group_name: Name of the endpoint group. Default: - logical ID of the resource :param endpoints: Initial list of endpoints for this group. Default: - Group is initially empty :param health_check_interval: The time between health checks for each endpoint. Must be either 10 or 30 seconds. Default: Duration.seconds(30) :param health_check_path: The ping path for health checks (if the protocol is HTTP(S)). Default: '/' :param health_check_port: The port used to perform health checks. Default: - The listener's port :param health_check_protocol: The protocol used to perform health checks. Default: HealthCheckProtocol.TCP :param health_check_threshold: The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. Default: 3 :param port_overrides: Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. Default: - No overrides :param region: The AWS Region where the endpoint group is located. Default: - region of the first endpoint in this group, or the stack region if that region can't be determined :param traffic_dial_percentage: The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. Default: 100 ''' self._values: typing.Dict[str, typing.Any] = {} if endpoint_group_name is not None: self._values["endpoint_group_name"] = endpoint_group_name if endpoints is not None: self._values["endpoints"] = endpoints if health_check_interval is not None: self._values["health_check_interval"] = health_check_interval if health_check_path is not None: self._values["health_check_path"] = health_check_path if health_check_port is not None: self._values["health_check_port"] = health_check_port if health_check_protocol is not None: self._values["health_check_protocol"] = health_check_protocol if health_check_threshold is not None: self._values["health_check_threshold"] = health_check_threshold if port_overrides is not None: self._values["port_overrides"] = port_overrides if region is not None: self._values["region"] = region if traffic_dial_percentage is not None: self._values["traffic_dial_percentage"] = traffic_dial_percentage @builtins.property def endpoint_group_name(self) -> typing.Optional[builtins.str]: '''Name of the endpoint group. :default: - logical ID of the resource ''' result = self._values.get("endpoint_group_name") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def endpoints(self) -> typing.Optional[typing.List["IEndpoint"]]: '''Initial list of endpoints for this group. :default: - Group is initially empty ''' result = self._values.get("endpoints") return typing.cast(typing.Optional[typing.List["IEndpoint"]], result) @builtins.property def health_check_interval(self) -> typing.Optional[aws_cdk.core.Duration]: '''The time between health checks for each endpoint. Must be either 10 or 30 seconds. :default: Duration.seconds(30) ''' result = self._values.get("health_check_interval") return typing.cast(typing.Optional[aws_cdk.core.Duration], result) @builtins.property def health_check_path(self) -> typing.Optional[builtins.str]: '''The ping path for health checks (if the protocol is HTTP(S)). :default: '/' ''' result = self._values.get("health_check_path") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def health_check_port(self) -> typing.Optional[jsii.Number]: '''The port used to perform health checks. :default: - The listener's port ''' result = self._values.get("health_check_port") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def health_check_protocol(self) -> typing.Optional["HealthCheckProtocol"]: '''The protocol used to perform health checks. :default: HealthCheckProtocol.TCP ''' result = self._values.get("health_check_protocol") return typing.cast(typing.Optional["HealthCheckProtocol"], result) @builtins.property def health_check_threshold(self) -> typing.Optional[jsii.Number]: '''The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. :default: 3 ''' result = self._values.get("health_check_threshold") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def port_overrides(self) -> typing.Optional[typing.List["PortOverride"]]: '''Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. :default: - No overrides ''' result = self._values.get("port_overrides") return typing.cast(typing.Optional[typing.List["PortOverride"]], result) @builtins.property def region(self) -> typing.Optional[builtins.str]: '''The AWS Region where the endpoint group is located. :default: - region of the first endpoint in this group, or the stack region if that region can't be determined ''' result = self._values.get("region") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def traffic_dial_percentage(self) -> typing.Optional[jsii.Number]: '''The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. :default: 100 ''' result = self._values.get("traffic_dial_percentage") return typing.cast(typing.Optional[jsii.Number], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "EndpointGroupOptions(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.EndpointGroupProps", jsii_struct_bases=[EndpointGroupOptions], name_mapping={ "endpoint_group_name": "endpointGroupName", "endpoints": "endpoints", "health_check_interval": "healthCheckInterval", "health_check_path": "healthCheckPath", "health_check_port": "healthCheckPort", "health_check_protocol": "healthCheckProtocol", "health_check_threshold": "healthCheckThreshold", "port_overrides": "portOverrides", "region": "region", "traffic_dial_percentage": "trafficDialPercentage", "listener": "listener", }, ) class EndpointGroupProps(EndpointGroupOptions): def __init__( self, *, endpoint_group_name: typing.Optional[builtins.str] = None, endpoints: typing.Optional[typing.Sequence["IEndpoint"]] = None, health_check_interval: typing.Optional[aws_cdk.core.Duration] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional["HealthCheckProtocol"] = None, health_check_threshold: typing.Optional[jsii.Number] = None, port_overrides: typing.Optional[typing.Sequence["PortOverride"]] = None, region: typing.Optional[builtins.str] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, listener: "IListener", ) -> None: '''Property of the EndpointGroup. :param endpoint_group_name: Name of the endpoint group. Default: - logical ID of the resource :param endpoints: Initial list of endpoints for this group. Default: - Group is initially empty :param health_check_interval: The time between health checks for each endpoint. Must be either 10 or 30 seconds. Default: Duration.seconds(30) :param health_check_path: The ping path for health checks (if the protocol is HTTP(S)). Default: '/' :param health_check_port: The port used to perform health checks. Default: - The listener's port :param health_check_protocol: The protocol used to perform health checks. Default: HealthCheckProtocol.TCP :param health_check_threshold: The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. Default: 3 :param port_overrides: Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. Default: - No overrides :param region: The AWS Region where the endpoint group is located. Default: - region of the first endpoint in this group, or the stack region if that region can't be determined :param traffic_dial_percentage: The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. Default: 100 :param listener: The Amazon Resource Name (ARN) of the listener. ''' self._values: typing.Dict[str, typing.Any] = { "listener": listener, } if endpoint_group_name is not None: self._values["endpoint_group_name"] = endpoint_group_name if endpoints is not None: self._values["endpoints"] = endpoints if health_check_interval is not None: self._values["health_check_interval"] = health_check_interval if health_check_path is not None: self._values["health_check_path"] = health_check_path if health_check_port is not None: self._values["health_check_port"] = health_check_port if health_check_protocol is not None: self._values["health_check_protocol"] = health_check_protocol if health_check_threshold is not None: self._values["health_check_threshold"] = health_check_threshold if port_overrides is not None: self._values["port_overrides"] = port_overrides if region is not None: self._values["region"] = region if traffic_dial_percentage is not None: self._values["traffic_dial_percentage"] = traffic_dial_percentage @builtins.property def endpoint_group_name(self) -> typing.Optional[builtins.str]: '''Name of the endpoint group. :default: - logical ID of the resource ''' result = self._values.get("endpoint_group_name") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def endpoints(self) -> typing.Optional[typing.List["IEndpoint"]]: '''Initial list of endpoints for this group. :default: - Group is initially empty ''' result = self._values.get("endpoints") return typing.cast(typing.Optional[typing.List["IEndpoint"]], result) @builtins.property def health_check_interval(self) -> typing.Optional[aws_cdk.core.Duration]: '''The time between health checks for each endpoint. Must be either 10 or 30 seconds. :default: Duration.seconds(30) ''' result = self._values.get("health_check_interval") return typing.cast(typing.Optional[aws_cdk.core.Duration], result) @builtins.property def health_check_path(self) -> typing.Optional[builtins.str]: '''The ping path for health checks (if the protocol is HTTP(S)). :default: '/' ''' result = self._values.get("health_check_path") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def health_check_port(self) -> typing.Optional[jsii.Number]: '''The port used to perform health checks. :default: - The listener's port ''' result = self._values.get("health_check_port") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def health_check_protocol(self) -> typing.Optional["HealthCheckProtocol"]: '''The protocol used to perform health checks. :default: HealthCheckProtocol.TCP ''' result = self._values.get("health_check_protocol") return typing.cast(typing.Optional["HealthCheckProtocol"], result) @builtins.property def health_check_threshold(self) -> typing.Optional[jsii.Number]: '''The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. :default: 3 ''' result = self._values.get("health_check_threshold") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def port_overrides(self) -> typing.Optional[typing.List["PortOverride"]]: '''Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. :default: - No overrides ''' result = self._values.get("port_overrides") return typing.cast(typing.Optional[typing.List["PortOverride"]], result) @builtins.property def region(self) -> typing.Optional[builtins.str]: '''The AWS Region where the endpoint group is located. :default: - region of the first endpoint in this group, or the stack region if that region can't be determined ''' result = self._values.get("region") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def traffic_dial_percentage(self) -> typing.Optional[jsii.Number]: '''The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. :default: 100 ''' result = self._values.get("traffic_dial_percentage") return typing.cast(typing.Optional[jsii.Number], result) @builtins.property def listener(self) -> "IListener": '''The Amazon Resource Name (ARN) of the listener.''' result = self._values.get("listener") assert result is not None, "Required property 'listener' is missing" return typing.cast("IListener", result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "EndpointGroupProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.enum(jsii_type="@aws-cdk/aws-globalaccelerator.HealthCheckProtocol") class HealthCheckProtocol(enum.Enum): '''The protocol for the connections from clients to the accelerator.''' TCP = "TCP" '''TCP.''' HTTP = "HTTP" '''HTTP.''' HTTPS = "HTTPS" '''HTTPS.''' @jsii.interface(jsii_type="@aws-cdk/aws-globalaccelerator.IAccelerator") class IAccelerator(aws_cdk.core.IResource, typing_extensions.Protocol): '''The interface of the Accelerator.''' @builtins.property # type: ignore[misc] @jsii.member(jsii_name="acceleratorArn") def accelerator_arn(self) -> builtins.str: '''The ARN of the accelerator. :attribute: true ''' ... @builtins.property # type: ignore[misc] @jsii.member(jsii_name="dnsName") def dns_name(self) -> builtins.str: '''The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IP addresses. :attribute: true ''' ... class _IAcceleratorProxy( jsii.proxy_for(aws_cdk.core.IResource) # type: ignore[misc] ): '''The interface of the Accelerator.''' __jsii_type__: typing.ClassVar[str] = "@aws-cdk/aws-globalaccelerator.IAccelerator" @builtins.property # type: ignore[misc] @jsii.member(jsii_name="acceleratorArn") def accelerator_arn(self) -> builtins.str: '''The ARN of the accelerator. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "acceleratorArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="dnsName") def dns_name(self) -> builtins.str: '''The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IP addresses. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "dnsName")) # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface typing.cast(typing.Any, IAccelerator).__jsii_proxy_class__ = lambda : _IAcceleratorProxy @jsii.interface(jsii_type="@aws-cdk/aws-globalaccelerator.IEndpoint") class IEndpoint(typing_extensions.Protocol): '''An endpoint for the endpoint group. Implementations of ``IEndpoint`` can be found in the ``aws-globalaccelerator-endpoints`` package. ''' @builtins.property # type: ignore[misc] @jsii.member(jsii_name="region") def region(self) -> typing.Optional[builtins.str]: '''The region where the endpoint is located. If the region cannot be determined, ``undefined`` is returned ''' ... @jsii.member(jsii_name="renderEndpointConfiguration") def render_endpoint_configuration(self) -> typing.Any: '''Render the endpoint to an endpoint configuration.''' ... class _IEndpointProxy: '''An endpoint for the endpoint group. Implementations of ``IEndpoint`` can be found in the ``aws-globalaccelerator-endpoints`` package. ''' __jsii_type__: typing.ClassVar[str] = "@aws-cdk/aws-globalaccelerator.IEndpoint" @builtins.property # type: ignore[misc] @jsii.member(jsii_name="region") def region(self) -> typing.Optional[builtins.str]: '''The region where the endpoint is located. If the region cannot be determined, ``undefined`` is returned ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "region")) @jsii.member(jsii_name="renderEndpointConfiguration") def render_endpoint_configuration(self) -> typing.Any: '''Render the endpoint to an endpoint configuration.''' return typing.cast(typing.Any, jsii.invoke(self, "renderEndpointConfiguration", [])) # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface typing.cast(typing.Any, IEndpoint).__jsii_proxy_class__ = lambda : _IEndpointProxy @jsii.interface(jsii_type="@aws-cdk/aws-globalaccelerator.IEndpointGroup") class IEndpointGroup(aws_cdk.core.IResource, typing_extensions.Protocol): '''The interface of the EndpointGroup.''' @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointGroupArn") def endpoint_group_arn(self) -> builtins.str: '''EndpointGroup ARN. :attribute: true ''' ... class _IEndpointGroupProxy( jsii.proxy_for(aws_cdk.core.IResource) # type: ignore[misc] ): '''The interface of the EndpointGroup.''' __jsii_type__: typing.ClassVar[str] = "@aws-cdk/aws-globalaccelerator.IEndpointGroup" @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointGroupArn") def endpoint_group_arn(self) -> builtins.str: '''EndpointGroup ARN. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "endpointGroupArn")) # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface typing.cast(typing.Any, IEndpointGroup).__jsii_proxy_class__ = lambda : _IEndpointGroupProxy @jsii.interface(jsii_type="@aws-cdk/aws-globalaccelerator.IListener") class IListener(aws_cdk.core.IResource, typing_extensions.Protocol): '''Interface of the Listener.''' @builtins.property # type: ignore[misc] @jsii.member(jsii_name="listenerArn") def listener_arn(self) -> builtins.str: '''The ARN of the listener. :attribute: true ''' ... class _IListenerProxy( jsii.proxy_for(aws_cdk.core.IResource) # type: ignore[misc] ): '''Interface of the Listener.''' __jsii_type__: typing.ClassVar[str] = "@aws-cdk/aws-globalaccelerator.IListener" @builtins.property # type: ignore[misc] @jsii.member(jsii_name="listenerArn") def listener_arn(self) -> builtins.str: '''The ARN of the listener. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "listenerArn")) # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface typing.cast(typing.Any, IListener).__jsii_proxy_class__ = lambda : _IListenerProxy @jsii.implements(IListener) class Listener( aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.Listener", ): '''The construct for the Listener.''' def __init__( self, scope: constructs.Construct, id: builtins.str, *, accelerator: IAccelerator, port_ranges: typing.Sequence["PortRange"], client_affinity: typing.Optional[ClientAffinity] = None, listener_name: typing.Optional[builtins.str] = None, protocol: typing.Optional[ConnectionProtocol] = None, ) -> None: ''' :param scope: - :param id: - :param accelerator: The accelerator for this listener. :param port_ranges: The list of port ranges for the connections from clients to the accelerator. :param client_affinity: Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. Default: ClientAffinity.NONE :param listener_name: Name of the listener. Default: - logical ID of the resource :param protocol: The protocol for the connections from clients to the accelerator. Default: ConnectionProtocol.TCP ''' props = ListenerProps( accelerator=accelerator, port_ranges=port_ranges, client_affinity=client_affinity, listener_name=listener_name, protocol=protocol, ) jsii.create(Listener, self, [scope, id, props]) @jsii.member(jsii_name="fromListenerArn") # type: ignore[misc] @builtins.classmethod def from_listener_arn( cls, scope: constructs.Construct, id: builtins.str, listener_arn: builtins.str, ) -> IListener: '''import from ARN. :param scope: - :param id: - :param listener_arn: - ''' return typing.cast(IListener, jsii.sinvoke(cls, "fromListenerArn", [scope, id, listener_arn])) @jsii.member(jsii_name="addEndpointGroup") def add_endpoint_group( self, id: builtins.str, *, endpoint_group_name: typing.Optional[builtins.str] = None, endpoints: typing.Optional[typing.Sequence[IEndpoint]] = None, health_check_interval: typing.Optional[aws_cdk.core.Duration] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional[HealthCheckProtocol] = None, health_check_threshold: typing.Optional[jsii.Number] = None, port_overrides: typing.Optional[typing.Sequence["PortOverride"]] = None, region: typing.Optional[builtins.str] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, ) -> "EndpointGroup": '''Add a new endpoint group to this listener. :param id: - :param endpoint_group_name: Name of the endpoint group. Default: - logical ID of the resource :param endpoints: Initial list of endpoints for this group. Default: - Group is initially empty :param health_check_interval: The time between health checks for each endpoint. Must be either 10 or 30 seconds. Default: Duration.seconds(30) :param health_check_path: The ping path for health checks (if the protocol is HTTP(S)). Default: '/' :param health_check_port: The port used to perform health checks. Default: - The listener's port :param health_check_protocol: The protocol used to perform health checks. Default: HealthCheckProtocol.TCP :param health_check_threshold: The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. Default: 3 :param port_overrides: Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. Default: - No overrides :param region: The AWS Region where the endpoint group is located. Default: - region of the first endpoint in this group, or the stack region if that region can't be determined :param traffic_dial_percentage: The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. Default: 100 ''' options = EndpointGroupOptions( endpoint_group_name=endpoint_group_name, endpoints=endpoints, health_check_interval=health_check_interval, health_check_path=health_check_path, health_check_port=health_check_port, health_check_protocol=health_check_protocol, health_check_threshold=health_check_threshold, port_overrides=port_overrides, region=region, traffic_dial_percentage=traffic_dial_percentage, ) return typing.cast("EndpointGroup", jsii.invoke(self, "addEndpointGroup", [id, options])) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="listenerArn") def listener_arn(self) -> builtins.str: '''The ARN of the listener.''' return typing.cast(builtins.str, jsii.get(self, "listenerArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="listenerName") def listener_name(self) -> builtins.str: '''The name of the listener. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "listenerName")) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.ListenerOptions", jsii_struct_bases=[], name_mapping={ "port_ranges": "portRanges", "client_affinity": "clientAffinity", "listener_name": "listenerName", "protocol": "protocol", }, ) class ListenerOptions: def __init__( self, *, port_ranges: typing.Sequence["PortRange"], client_affinity: typing.Optional[ClientAffinity] = None, listener_name: typing.Optional[builtins.str] = None, protocol: typing.Optional[ConnectionProtocol] = None, ) -> None: '''Construct options for Listener. :param port_ranges: The list of port ranges for the connections from clients to the accelerator. :param client_affinity: Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. Default: ClientAffinity.NONE :param listener_name: Name of the listener. Default: - logical ID of the resource :param protocol: The protocol for the connections from clients to the accelerator. Default: ConnectionProtocol.TCP ''' self._values: typing.Dict[str, typing.Any] = { "port_ranges": port_ranges, } if client_affinity is not None: self._values["client_affinity"] = client_affinity if listener_name is not None: self._values["listener_name"] = listener_name if protocol is not None: self._values["protocol"] = protocol @builtins.property def port_ranges(self) -> typing.List["PortRange"]: '''The list of port ranges for the connections from clients to the accelerator.''' result = self._values.get("port_ranges") assert result is not None, "Required property 'port_ranges' is missing" return typing.cast(typing.List["PortRange"], result) @builtins.property def client_affinity(self) -> typing.Optional[ClientAffinity]: '''Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. :default: ClientAffinity.NONE ''' result = self._values.get("client_affinity") return typing.cast(typing.Optional[ClientAffinity], result) @builtins.property def listener_name(self) -> typing.Optional[builtins.str]: '''Name of the listener. :default: - logical ID of the resource ''' result = self._values.get("listener_name") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def protocol(self) -> typing.Optional[ConnectionProtocol]: '''The protocol for the connections from clients to the accelerator. :default: ConnectionProtocol.TCP ''' result = self._values.get("protocol") return typing.cast(typing.Optional[ConnectionProtocol], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "ListenerOptions(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.ListenerProps", jsii_struct_bases=[ListenerOptions], name_mapping={ "port_ranges": "portRanges", "client_affinity": "clientAffinity", "listener_name": "listenerName", "protocol": "protocol", "accelerator": "accelerator", }, ) class ListenerProps(ListenerOptions): def __init__( self, *, port_ranges: typing.Sequence["PortRange"], client_affinity: typing.Optional[ClientAffinity] = None, listener_name: typing.Optional[builtins.str] = None, protocol: typing.Optional[ConnectionProtocol] = None, accelerator: IAccelerator, ) -> None: '''Construct properties for Listener. :param port_ranges: The list of port ranges for the connections from clients to the accelerator. :param client_affinity: Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. Default: ClientAffinity.NONE :param listener_name: Name of the listener. Default: - logical ID of the resource :param protocol: The protocol for the connections from clients to the accelerator. Default: ConnectionProtocol.TCP :param accelerator: The accelerator for this listener. ''' self._values: typing.Dict[str, typing.Any] = { "port_ranges": port_ranges, "accelerator": accelerator, } if client_affinity is not None: self._values["client_affinity"] = client_affinity if listener_name is not None: self._values["listener_name"] = listener_name if protocol is not None: self._values["protocol"] = protocol @builtins.property def port_ranges(self) -> typing.List["PortRange"]: '''The list of port ranges for the connections from clients to the accelerator.''' result = self._values.get("port_ranges") assert result is not None, "Required property 'port_ranges' is missing" return typing.cast(typing.List["PortRange"], result) @builtins.property def client_affinity(self) -> typing.Optional[ClientAffinity]: '''Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. :default: ClientAffinity.NONE ''' result = self._values.get("client_affinity") return typing.cast(typing.Optional[ClientAffinity], result) @builtins.property def listener_name(self) -> typing.Optional[builtins.str]: '''Name of the listener. :default: - logical ID of the resource ''' result = self._values.get("listener_name") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def protocol(self) -> typing.Optional[ConnectionProtocol]: '''The protocol for the connections from clients to the accelerator. :default: ConnectionProtocol.TCP ''' result = self._values.get("protocol") return typing.cast(typing.Optional[ConnectionProtocol], result) @builtins.property def accelerator(self) -> IAccelerator: '''The accelerator for this listener.''' result = self._values.get("accelerator") assert result is not None, "Required property 'accelerator' is missing" return typing.cast(IAccelerator, result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "ListenerProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.PortOverride", jsii_struct_bases=[], name_mapping={"endpoint_port": "endpointPort", "listener_port": "listenerPort"}, ) class PortOverride: def __init__( self, *, endpoint_port: jsii.Number, listener_port: jsii.Number, ) -> None: '''Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. :param endpoint_port: The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. :param listener_port: The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. ''' self._values: typing.Dict[str, typing.Any] = { "endpoint_port": endpoint_port, "listener_port": listener_port, } @builtins.property def endpoint_port(self) -> jsii.Number: '''The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance. ''' result = self._values.get("endpoint_port") assert result is not None, "Required property 'endpoint_port' is missing" return typing.cast(jsii.Number, result) @builtins.property def listener_port(self) -> jsii.Number: '''The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on. ''' result = self._values.get("listener_port") assert result is not None, "Required property 'listener_port' is missing" return typing.cast(jsii.Number, result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "PortOverride(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.PortRange", jsii_struct_bases=[], name_mapping={"from_port": "fromPort", "to_port": "toPort"}, ) class PortRange: def __init__( self, *, from_port: jsii.Number, to_port: typing.Optional[jsii.Number] = None, ) -> None: '''The list of port ranges for the connections from clients to the accelerator. :param from_port: The first port in the range of ports, inclusive. :param to_port: The last port in the range of ports, inclusive. Default: - same as ``fromPort`` ''' self._values: typing.Dict[str, typing.Any] = { "from_port": from_port, } if to_port is not None: self._values["to_port"] = to_port @builtins.property def from_port(self) -> jsii.Number: '''The first port in the range of ports, inclusive.''' result = self._values.get("from_port") assert result is not None, "Required property 'from_port' is missing" return typing.cast(jsii.Number, result) @builtins.property def to_port(self) -> typing.Optional[jsii.Number]: '''The last port in the range of ports, inclusive. :default: - same as ``fromPort`` ''' result = self._values.get("to_port") return typing.cast(typing.Optional[jsii.Number], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "PortRange(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(IEndpoint) class RawEndpoint( metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.RawEndpoint", ): '''Untyped endpoint implementation. Prefer using the classes in the ``aws-globalaccelerator-endpoints`` package instead, as they accept typed constructs. You can use this class if you want to use an endpoint type that does not have an appropriate class in that package yet. ''' def __init__( self, *, endpoint_id: builtins.str, preserve_client_ip: typing.Optional[builtins.bool] = None, region: typing.Optional[builtins.str] = None, weight: typing.Optional[jsii.Number] = None, ) -> None: ''' :param endpoint_id: Identifier of the endpoint. Load balancer ARN, instance ID or EIP allocation ID. :param preserve_client_ip: Forward the client IP address. GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address. Only applies to Application Load Balancers and EC2 instances. Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list. Default: true if possible and available :param region: The region where this endpoint is located. Default: - Unknown what region this endpoint is located :param weight: Endpoint weight across all endpoints in the group. Must be a value between 0 and 255. Default: 128 ''' props = RawEndpointProps( endpoint_id=endpoint_id, preserve_client_ip=preserve_client_ip, region=region, weight=weight, ) jsii.create(RawEndpoint, self, [props]) @jsii.member(jsii_name="renderEndpointConfiguration") def render_endpoint_configuration(self) -> typing.Any: '''Render the endpoint to an endpoint configuration.''' return typing.cast(typing.Any, jsii.invoke(self, "renderEndpointConfiguration", [])) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="region") def region(self) -> typing.Optional[builtins.str]: '''The region where the endpoint is located. If the region cannot be determined, ``undefined`` is returned ''' return typing.cast(typing.Optional[builtins.str], jsii.get(self, "region")) @jsii.data_type( jsii_type="@aws-cdk/aws-globalaccelerator.RawEndpointProps", jsii_struct_bases=[], name_mapping={ "endpoint_id": "endpointId", "preserve_client_ip": "preserveClientIp", "region": "region", "weight": "weight", }, ) class RawEndpointProps: def __init__( self, *, endpoint_id: builtins.str, preserve_client_ip: typing.Optional[builtins.bool] = None, region: typing.Optional[builtins.str] = None, weight: typing.Optional[jsii.Number] = None, ) -> None: '''Properties for RawEndpoint. :param endpoint_id: Identifier of the endpoint. Load balancer ARN, instance ID or EIP allocation ID. :param preserve_client_ip: Forward the client IP address. GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address. Only applies to Application Load Balancers and EC2 instances. Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list. Default: true if possible and available :param region: The region where this endpoint is located. Default: - Unknown what region this endpoint is located :param weight: Endpoint weight across all endpoints in the group. Must be a value between 0 and 255. Default: 128 ''' self._values: typing.Dict[str, typing.Any] = { "endpoint_id": endpoint_id, } if preserve_client_ip is not None: self._values["preserve_client_ip"] = preserve_client_ip if region is not None: self._values["region"] = region if weight is not None: self._values["weight"] = weight @builtins.property def endpoint_id(self) -> builtins.str: '''Identifier of the endpoint. Load balancer ARN, instance ID or EIP allocation ID. ''' result = self._values.get("endpoint_id") assert result is not None, "Required property 'endpoint_id' is missing" return typing.cast(builtins.str, result) @builtins.property def preserve_client_ip(self) -> typing.Optional[builtins.bool]: '''Forward the client IP address. GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address. Only applies to Application Load Balancers and EC2 instances. Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list. :default: true if possible and available ''' result = self._values.get("preserve_client_ip") return typing.cast(typing.Optional[builtins.bool], result) @builtins.property def region(self) -> typing.Optional[builtins.str]: '''The region where this endpoint is located. :default: - Unknown what region this endpoint is located ''' result = self._values.get("region") return typing.cast(typing.Optional[builtins.str], result) @builtins.property def weight(self) -> typing.Optional[jsii.Number]: '''Endpoint weight across all endpoints in the group. Must be a value between 0 and 255. :default: 128 ''' result = self._values.get("weight") return typing.cast(typing.Optional[jsii.Number], result) def __eq__(self, rhs: typing.Any) -> builtins.bool: return isinstance(rhs, self.__class__) and rhs._values == self._values def __ne__(self, rhs: typing.Any) -> builtins.bool: return not (rhs == self) def __repr__(self) -> str: return "RawEndpointProps(%s)" % ", ".join( k + "=" + repr(v) for k, v in self._values.items() ) @jsii.implements(IAccelerator) class Accelerator( aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.Accelerator", ): '''The Accelerator construct.''' def __init__( self, scope: constructs.Construct, id: builtins.str, *, accelerator_name: typing.Optional[builtins.str] = None, enabled: typing.Optional[builtins.bool] = None, ) -> None: ''' :param scope: - :param id: - :param accelerator_name: The name of the accelerator. Default: - resource ID :param enabled: Indicates whether the accelerator is enabled. Default: true ''' props = AcceleratorProps(accelerator_name=accelerator_name, enabled=enabled) jsii.create(Accelerator, self, [scope, id, props]) @jsii.member(jsii_name="fromAcceleratorAttributes") # type: ignore[misc] @builtins.classmethod def from_accelerator_attributes( cls, scope: constructs.Construct, id: builtins.str, *, accelerator_arn: builtins.str, dns_name: builtins.str, ) -> IAccelerator: '''import from attributes. :param scope: - :param id: - :param accelerator_arn: The ARN of the accelerator. :param dns_name: The DNS name of the accelerator. ''' attrs = AcceleratorAttributes( accelerator_arn=accelerator_arn, dns_name=dns_name ) return typing.cast(IAccelerator, jsii.sinvoke(cls, "fromAcceleratorAttributes", [scope, id, attrs])) @jsii.member(jsii_name="addListener") def add_listener( self, id: builtins.str, *, port_ranges: typing.Sequence[PortRange], client_affinity: typing.Optional[ClientAffinity] = None, listener_name: typing.Optional[builtins.str] = None, protocol: typing.Optional[ConnectionProtocol] = None, ) -> Listener: '''Add a listener to the accelerator. :param id: - :param port_ranges: The list of port ranges for the connections from clients to the accelerator. :param client_affinity: Client affinity to direct all requests from a user to the same endpoint. If you have stateful applications, client affinity lets you direct all requests from a user to the same endpoint. By default, each connection from each client is routed to seperate endpoints. Set client affinity to SOURCE_IP to route all connections from a single client to the same endpoint. Default: ClientAffinity.NONE :param listener_name: Name of the listener. Default: - logical ID of the resource :param protocol: The protocol for the connections from clients to the accelerator. Default: ConnectionProtocol.TCP ''' options = ListenerOptions( port_ranges=port_ranges, client_affinity=client_affinity, listener_name=listener_name, protocol=protocol, ) return typing.cast(Listener, jsii.invoke(self, "addListener", [id, options])) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="acceleratorArn") def accelerator_arn(self) -> builtins.str: '''The ARN of the accelerator.''' return typing.cast(builtins.str, jsii.get(self, "acceleratorArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="dnsName") def dns_name(self) -> builtins.str: '''The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator's static IP addresses.''' return typing.cast(builtins.str, jsii.get(self, "dnsName")) @jsii.implements(IEndpointGroup) class EndpointGroup( aws_cdk.core.Resource, metaclass=jsii.JSIIMeta, jsii_type="@aws-cdk/aws-globalaccelerator.EndpointGroup", ): '''EndpointGroup construct.''' def __init__( self, scope: constructs.Construct, id: builtins.str, *, listener: IListener, endpoint_group_name: typing.Optional[builtins.str] = None, endpoints: typing.Optional[typing.Sequence[IEndpoint]] = None, health_check_interval: typing.Optional[aws_cdk.core.Duration] = None, health_check_path: typing.Optional[builtins.str] = None, health_check_port: typing.Optional[jsii.Number] = None, health_check_protocol: typing.Optional[HealthCheckProtocol] = None, health_check_threshold: typing.Optional[jsii.Number] = None, port_overrides: typing.Optional[typing.Sequence[PortOverride]] = None, region: typing.Optional[builtins.str] = None, traffic_dial_percentage: typing.Optional[jsii.Number] = None, ) -> None: ''' :param scope: - :param id: - :param listener: The Amazon Resource Name (ARN) of the listener. :param endpoint_group_name: Name of the endpoint group. Default: - logical ID of the resource :param endpoints: Initial list of endpoints for this group. Default: - Group is initially empty :param health_check_interval: The time between health checks for each endpoint. Must be either 10 or 30 seconds. Default: Duration.seconds(30) :param health_check_path: The ping path for health checks (if the protocol is HTTP(S)). Default: '/' :param health_check_port: The port used to perform health checks. Default: - The listener's port :param health_check_protocol: The protocol used to perform health checks. Default: HealthCheckProtocol.TCP :param health_check_threshold: The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. Default: 3 :param port_overrides: Override the destination ports used to route traffic to an endpoint. Unless overridden, the port used to hit the endpoint will be the same as the port that traffic arrives on at the listener. Default: - No overrides :param region: The AWS Region where the endpoint group is located. Default: - region of the first endpoint in this group, or the stack region if that region can't be determined :param traffic_dial_percentage: The percentage of traffic to send to this AWS Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing. Additional traffic is distributed to other endpoint groups for this listener. Default: 100 ''' props = EndpointGroupProps( listener=listener, endpoint_group_name=endpoint_group_name, endpoints=endpoints, health_check_interval=health_check_interval, health_check_path=health_check_path, health_check_port=health_check_port, health_check_protocol=health_check_protocol, health_check_threshold=health_check_threshold, port_overrides=port_overrides, region=region, traffic_dial_percentage=traffic_dial_percentage, ) jsii.create(EndpointGroup, self, [scope, id, props]) @jsii.member(jsii_name="fromEndpointGroupArn") # type: ignore[misc] @builtins.classmethod def from_endpoint_group_arn( cls, scope: constructs.Construct, id: builtins.str, endpoint_group_arn: builtins.str, ) -> IEndpointGroup: '''import from ARN. :param scope: - :param id: - :param endpoint_group_arn: - ''' return typing.cast(IEndpointGroup, jsii.sinvoke(cls, "fromEndpointGroupArn", [scope, id, endpoint_group_arn])) @jsii.member(jsii_name="addEndpoint") def add_endpoint(self, endpoint: IEndpoint) -> None: '''Add an endpoint. :param endpoint: - ''' return typing.cast(None, jsii.invoke(self, "addEndpoint", [endpoint])) @jsii.member(jsii_name="connectionsPeer") def connections_peer( self, id: builtins.str, vpc: aws_cdk.aws_ec2.IVpc, ) -> aws_cdk.aws_ec2.IPeer: '''Return an object that represents the Accelerator's Security Group. Uses a Custom Resource to look up the Security Group that Accelerator creates at deploy time. Requires your VPC ID to perform the lookup. The Security Group will only be created if you enable **Client IP Preservation** on any of the endpoints. You cannot manipulate the rules inside this security group, but you can use this security group as a Peer in Connections rules on other constructs. :param id: - :param vpc: - ''' return typing.cast(aws_cdk.aws_ec2.IPeer, jsii.invoke(self, "connectionsPeer", [id, vpc])) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointGroupArn") def endpoint_group_arn(self) -> builtins.str: '''EndpointGroup ARN.''' return typing.cast(builtins.str, jsii.get(self, "endpointGroupArn")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpointGroupName") def endpoint_group_name(self) -> builtins.str: '''The name of the endpoint group. :attribute: true ''' return typing.cast(builtins.str, jsii.get(self, "endpointGroupName")) @builtins.property # type: ignore[misc] @jsii.member(jsii_name="endpoints") def _endpoints(self) -> typing.List[IEndpoint]: '''The array of the endpoints in this endpoint group.''' return typing.cast(typing.List[IEndpoint], jsii.get(self, "endpoints")) __all__ = [ "Accelerator", "AcceleratorAttributes", "AcceleratorProps", "CfnAccelerator", "CfnAcceleratorProps", "CfnEndpointGroup", "CfnEndpointGroupProps", "CfnListener", "CfnListenerProps", "ClientAffinity", "ConnectionProtocol", "EndpointGroup", "EndpointGroupOptions", "EndpointGroupProps", "HealthCheckProtocol", "IAccelerator", "IEndpoint", "IEndpointGroup", "IListener", "Listener", "ListenerOptions", "ListenerProps", "PortOverride", "PortRange", "RawEndpoint", "RawEndpointProps", ] publication.publish()
43.788768
426
0.687987
13,729
120,857
5.914706
0.041299
0.038964
0.02463
0.020049
0.850474
0.832457
0.817728
0.807741
0.773851
0.755822
0
0.002013
0.202769
120,857
2,759
427
43.804639
0.84077
0.374922
0
0.679359
0
0
0.137727
0.055116
0
0
0
0
0.014028
1
0.144289
false
0
0.008016
0.032064
0.295257
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
dffb666cc060d5da4efa5e1686d4cff404c86ee4
211
py
Python
note5/test2_v2.py
icexmoon/python-learning-notes
838c91d896404290b89992b6517be1b6a79df41f
[ "MIT" ]
null
null
null
note5/test2_v2.py
icexmoon/python-learning-notes
838c91d896404290b89992b6517be1b6a79df41f
[ "MIT" ]
null
null
null
note5/test2_v2.py
icexmoon/python-learning-notes
838c91d896404290b89992b6517be1b6a79df41f
[ "MIT" ]
null
null
null
#test2.py if __name__=="__main__": print("this is module test2") def test2Function(): print("this is a function in module test2") if __name__=="__main__": print("this is test2 module name:"+__name__)
30.142857
48
0.701422
30
211
4.266667
0.466667
0.210938
0.257813
0.234375
0.328125
0.328125
0
0
0
0
0
0.028249
0.161137
211
7
48
30.142857
0.694915
0.037915
0
0.333333
0
0
0.472906
0
0
0
0
0
0
1
0.166667
true
0
0
0
0.166667
0.5
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
0
0
0
1
0
6
5f01354a8c8a542e86a052ada9ee6fc5d9aab01c
2,154
py
Python
epytope/Data/pssms/smm/mat/C_12_03_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/smm/mat/C_12_03_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/smm/mat/C_12_03_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
C_12_03_9 = {0: {'A': 0.001, 'C': 0.0, 'E': 0.004, 'D': -0.002, 'G': 0.0, 'F': -0.012, 'I': 0.001, 'H': -0.0, 'K': -0.006, 'M': 0.004, 'L': 0.003, 'N': -0.003, 'Q': 0.0, 'P': 0.0, 'S': 0.009, 'R': 0.008, 'T': -0.001, 'W': 0.001, 'V': 0.009, 'Y': -0.015}, 1: {'A': -0.405, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.0, 'F': 0.061, 'I': -0.067, 'H': 0.0, 'K': 0.0, 'M': 0.217, 'L': 0.176, 'N': -0.024, 'Q': -0.013, 'P': 0.0, 'S': -0.022, 'R': 0.031, 'T': 0.03, 'W': 0.0, 'V': 0.043, 'Y': -0.028}, 2: {'A': 0.294, 'C': 0.081, 'E': 0.0, 'D': -0.563, 'G': 0.0, 'F': -0.292, 'I': 0.037, 'H': 0.249, 'K': -0.599, 'M': -0.069, 'L': 0.318, 'N': 0.101, 'Q': -0.077, 'P': -0.151, 'S': 0.108, 'R': 0.053, 'T': 0.208, 'W': 0.317, 'V': 0.035, 'Y': -0.049}, 3: {'A': 0.0, 'C': -0.0, 'E': -0.0, 'D': -0.0, 'G': -0.0, 'F': 0.0, 'I': 0.0, 'H': 0.0, 'K': 0.0, 'M': 0.0, 'L': 0.0, 'N': -0.0, 'Q': -0.0, 'P': -0.0, 'S': -0.0, 'R': 0.0, 'T': 0.0, 'W': -0.0, 'V': -0.0, 'Y': 0.0}, 4: {'A': 0.016, 'C': 0.012, 'E': -0.016, 'D': 0.035, 'G': -0.003, 'F': -0.1, 'I': -0.026, 'H': 0.035, 'K': 0.05, 'M': 0.0, 'L': 0.041, 'N': -0.007, 'Q': -0.012, 'P': -0.014, 'S': 0.024, 'R': 0.004, 'T': -0.022, 'W': -0.059, 'V': 0.01, 'Y': 0.033}, 5: {'A': 0.0, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': -0.0, 'F': 0.0, 'I': -0.0, 'H': 0.0, 'K': 0.0, 'M': -0.0, 'L': -0.0, 'N': 0.0, 'Q': 0.0, 'P': 0.0, 'S': -0.0, 'R': -0.0, 'T': 0.0, 'W': -0.0, 'V': 0.0, 'Y': -0.0}, 6: {'A': -0.01, 'C': 0.002, 'E': -0.003, 'D': 0.001, 'G': -0.001, 'F': -0.001, 'I': 0.003, 'H': 0.0, 'K': -0.001, 'M': 0.002, 'L': -0.0, 'N': -0.001, 'Q': -0.004, 'P': 0.004, 'S': -0.009, 'R': 0.007, 'T': 0.006, 'W': 0.003, 'V': -0.0, 'Y': 0.003}, 7: {'A': 0.047, 'C': 0.0, 'E': -0.042, 'D': -0.003, 'G': -0.017, 'F': -0.025, 'I': 0.06, 'H': -0.012, 'K': -0.021, 'M': -0.0, 'L': 0.039, 'N': 0.0, 'Q': 0.028, 'P': -0.019, 'S': -0.074, 'R': 0.099, 'T': -0.077, 'W': 0.0, 'V': -0.049, 'Y': 0.066}, 8: {'A': -0.244, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.0, 'F': 0.342, 'I': 0.021, 'H': 0.11, 'K': 0.0, 'M': 0.03, 'L': 0.312, 'N': 0.0, 'Q': 0.0, 'P': 0.0, 'S': 0.0, 'R': 0.0, 'T': 0.0, 'W': -0.141, 'V': -0.266, 'Y': -0.164}, -1: {'con': 1.48921}}
2,154
2,154
0.357939
557
2,154
1.378815
0.177738
0.192708
0.023438
0.03125
0.359375
0.239583
0.239583
0.239583
0.21875
0.21875
0
0.327906
0.173166
2,154
1
2,154
2,154
0.103313
0
0
0
0
0
0.084919
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
5f125fd9b53fe0c36d31f168c7d05b34a636489e
100
py
Python
footle/__init__.py
SupImDos/footle
ff9178e52d1577c96a8b6ec00883ead9317f8b46
[ "MIT" ]
1
2022-03-25T15:28:57.000Z
2022-03-25T15:28:57.000Z
footle/__init__.py
SupImDos/footle
ff9178e52d1577c96a8b6ec00883ead9317f8b46
[ "MIT" ]
null
null
null
footle/__init__.py
SupImDos/footle
ff9178e52d1577c96a8b6ec00883ead9317f8b46
[ "MIT" ]
null
null
null
"""Exports Package Interface""" # Local from . import data from . import game from . import models
14.285714
31
0.72
13
100
5.538462
0.692308
0.416667
0
0
0
0
0
0
0
0
0
0
0.18
100
6
32
16.666667
0.878049
0.32
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5f13c8910cd2964e73c470ff40cdae8091c02ce6
34
py
Python
lib/artkit/shapes/__init__.py
dave-nachman/artkit
5d7e1f1c4ca771c53bbece3872e0ca4544d8ac85
[ "MIT" ]
null
null
null
lib/artkit/shapes/__init__.py
dave-nachman/artkit
5d7e1f1c4ca771c53bbece3872e0ca4544d8ac85
[ "MIT" ]
5
2021-09-02T13:03:23.000Z
2022-02-27T07:07:38.000Z
lib/artkit/shapes/__init__.py
dave-nachman/artkit
5d7e1f1c4ca771c53bbece3872e0ca4544d8ac85
[ "MIT" ]
null
null
null
from artkit.shapes.shape import *
17
33
0.794118
5
34
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
34
2
33
17
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5f15af643654f895e146454cf3290ef5c7837206
298
py
Python
stable_baselines/gail/__init__.py
marctuscher/stable-baselines
d6b2c857fc12915aa8de545a3e14a9f76607703b
[ "MIT" ]
null
null
null
stable_baselines/gail/__init__.py
marctuscher/stable-baselines
d6b2c857fc12915aa8de545a3e14a9f76607703b
[ "MIT" ]
null
null
null
stable_baselines/gail/__init__.py
marctuscher/stable-baselines
d6b2c857fc12915aa8de545a3e14a9f76607703b
[ "MIT" ]
null
null
null
from stable_baselines.gail.model import GAIL from stable_baselines.gail.dataset.dataset import ExpertDataset, ExpertDatasetLSTM, DataLoader from stable_baselines.gail.dataset.record_expert import generate_expert_traj from stable_baselines.gail.dataset.record_expert import generate_expert_traj_HER
59.6
94
0.895973
40
298
6.4
0.375
0.15625
0.296875
0.359375
0.632813
0.515625
0.515625
0.515625
0.515625
0.515625
0
0
0.060403
298
4
95
74.5
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
a02643b18f4852bde78d349779ccaa51bfd43de7
168
py
Python
lib/models/parsers/__init__.py
wanghm92/Singlish_parser_tf0.12
06e28922ab54f57ade7fb8518ab4d3132286cd01
[ "MIT" ]
18
2017-05-17T13:51:08.000Z
2021-06-13T14:34:42.000Z
lib/models/parsers/__init__.py
wanghm92/Singlish_parser_tf0.12
06e28922ab54f57ade7fb8518ab4d3132286cd01
[ "MIT" ]
1
2018-12-10T04:06:06.000Z
2018-12-10T04:06:06.000Z
lib/models/parsers/__init__.py
wanghm92/Singlish_parser_tf0.12
06e28922ab54f57ade7fb8518ab4d3132286cd01
[ "MIT" ]
7
2018-04-24T11:25:03.000Z
2021-03-21T16:41:42.000Z
from parser import Parser from stupid_parser import StupidParser from diag_parser import DiagParser from notag_parser import NoTagParser from kg_parser import KGParser
28
38
0.880952
24
168
6
0.458333
0.416667
0
0
0
0
0
0
0
0
0
0
0.119048
168
5
39
33.6
0.972973
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6