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
b7fe729773f334991658bb6aa780e882a1299015
49
py
Python
div.py
darkdebo/python_codes
5644482b7a7cb4d775de0194bae84024e24bfcaf
[ "MIT" ]
null
null
null
div.py
darkdebo/python_codes
5644482b7a7cb4d775de0194bae84024e24bfcaf
[ "MIT" ]
1
2019-09-03T10:15:36.000Z
2019-09-03T10:15:36.000Z
div.py
darkdebo/python_codes
5644482b7a7cb4d775de0194bae84024e24bfcaf
[ "MIT" ]
null
null
null
print([i for i in range(21) if i%2==0 or i%4==0])
49
49
0.591837
15
49
1.933333
0.733333
0
0
0
0
0
0
0
0
0
0
0.146341
0.163265
49
1
49
49
0.560976
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
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
0
0
0
1
0
6
4d0f8159c728caddebafd852b04cb62cc153e840
1,922
py
Python
examples/00_Example_Active.py
davilamds/py_dss_interface
a447c97787aeac962381db88dd622ccb235eef4b
[ "MIT" ]
8
2020-08-15T12:56:03.000Z
2022-01-04T15:51:14.000Z
examples/00_Example_Active.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
24
2021-04-24T18:33:19.000Z
2021-11-13T14:59:54.000Z
examples/00_Example_Active.py
rodolfoplondero/py_dss_interface
cb6771b34ed322a5df7ef1cc194611e794f26441
[ "MIT" ]
7
2020-08-15T12:56:04.000Z
2021-10-04T16:14:30.000Z
# -*- encoding: utf-8 -*- """ Created by Ênio Viana at 12/05/2021 """ from py_dss_interface.models.Example.ExampleBase import ExampleBase dss = ExampleBase("13").dss # Integer methods print(45 * '=' + ' Integer Methods' + 45 * '=') print(f'dss.active_class_get_class_name(): {dss.active_class_get_class_name()}') print(f'dss.active_class_get_name(): {dss.active_class_get_name()}') print(f'dss.active_class_first(): {dss.active_class_first()}') print(f'dss.active_class_num_elements(): {dss.active_class_num_elements()}') print(f'dss.active_class_count(): {dss.active_class_count()}') print() print(f'dss.active_class_get_class_name(): {dss.active_class_get_class_name()}') print(f'dss.active_class_get_name(): {dss.active_class_get_name()}') print(f'dss.active_class_next(): {dss.active_class_next()}') print(f'dss.active_class_num_elements(): {dss.active_class_num_elements()}') print(f'dss.active_class_count(): {dss.active_class_count()}') # To iterate from begin we must call first() dss.active_class_first() for i in range(dss.active_class_num_elements()): print(f'Name: {dss.active_class_get_name()} || Index: {i}') dss.active_class_next() # String methods print(45 * '=' + ' String Methods' + 45 * '=') dss.active_class_first() print(f'dss.active_class_get_name(): {dss.active_class_get_name()}') print(f'dss.active_class_write_name(): {dss.active_class_write_name("645646")}') print(f'dss.active_class_get_name(): {dss.active_class_get_name()}') print(f'dss.active_class_get_class_name(): {dss.active_class_get_class_name()} \n') print(f'dss.active_class_parent_class_name(): {dss.active_class_parent_class_name()} \n') dss.active_class_first() for _ in range(dss.active_class_num_elements()): print(f'dss.active_class_get_name(): {dss.active_class_get_name()}') dss.active_class_next() # Variant methods print(45 * '=' + ' Variant Methods' + 45 * '=') print(dss.active_class_all_names())
40.893617
89
0.748179
302
1,922
4.360927
0.175497
0.280182
0.435839
0.219438
0.737282
0.667426
0.604404
0.604404
0.593774
0.530752
0
0.016356
0.077523
1,922
46
90
41.782609
0.726452
0.078044
0
0.516129
0
0
0.621944
0.566799
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0.709677
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
4d8273a74b2caa25aa29a811d3b37c390665cd6d
31,890
py
Python
stochastic_spectroscopy/layers.py
fullerf/stochastic-spectroscopy
371ac24fd65dea446ed9448cc208d83d94f7044c
[ "MIT" ]
1
2021-04-12T16:24:07.000Z
2021-04-12T16:24:07.000Z
stochastic_spectroscopy/layers.py
fullerf/stochastic_spectroscopy
371ac24fd65dea446ed9448cc208d83d94f7044c
[ "MIT" ]
null
null
null
stochastic_spectroscopy/layers.py
fullerf/stochastic_spectroscopy
371ac24fd65dea446ed9448cc208d83d94f7044c
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- import sys sys.path.append('/home/dgp_iwvi_gpflow2/') import tensorflow as tf import tensorflow_probability as tfp import numpy as np import gpflow import enum import collections from typing import Callable, Optional, Tuple, TypeVar, Union, List from gpflow.kernels import Kernel, MultioutputKernel from gpflow.mean_functions import MeanFunction, Zero from gpflow.inducing_variables import SeparateIndependentInducingVariables, SharedIndependentInducingVariables from gpflow.kullback_leiblers import gauss_kl as gauss_kl_gpflow import attr # avoiding use of defaults kwarg, to keep compatibility with Python3.6 class RegularizerType(enum.Enum): LOCAL = 0 GLOBAL = 1 def gauss_kl(q_mu, q_sqrt, K=None): """ Wrapper for gauss_kl from gpflow that returns the negative log prob if q_sqrt is None. This can be for use in HMC: all that is required is to set q_sqrt to None and this function substitues the negative log prob instead of the KL (so no need to set q_mu.prior = gpflow.priors.Gaussian(0, 1)). Also, this allows the use of HMC in the unwhitened case. """ if q_sqrt is None: # return negative log prob with q_mu as 'x', with mean 0 and cov K (or I, if None) M, D = tf.shape(q_mu)[0], tf.shape(q_mu)[1] I = tf.eye(M, dtype=q_mu.dtype) if K is None: L = I else: L = tf.cholesky(K + I * gpflow.default_jitter()) return -tf.reduce_sum(gpflow.logdensities.multivariate_normal(q_mu, tf.zeros_like(q_mu), L)) else: # return kl return gauss_kl_gpflow(q_mu, q_sqrt, K=K) class GPLayer(gpflow.Module): regularizer_type = RegularizerType.GLOBAL def __init__(self, kernel: gpflow.kernels.Kernel, inducing: gpflow.inducing_variables.InducingVariables, mean_func: gpflow.mean_functions.MeanFunction, **kwargs ): super().__init__() """ The range of supported options for sample conditional is not complete. The following do not work: LinearCoregionalization: in order to get the proper behavior, you must have a separate kernel for each independent GP. While some things evaluate with a single shared kernel, Kuu and Kuf do not work properly and treat the number of latent gps as the number of separate kernels. LinearCoregionalization / SharedIndependentInducingVariable: In this case, you can only eval- uate the propagation when full_cov = False. However, full_cov is possible if one uses SeparateIndependentInducingVariable. """ assert issubclass(type(kernel), gpflow.kernels.Kernel) assert issubclass(type(inducing), gpflow.inducing_variables.InducingVariables) if not issubclass(type(kernel), gpflow.kernels.MultioutputKernel): self.num_latent_gps = 1 self.output_dim = 1 else: self.num_latent_gps = kernel.num_latent_gps if not len(kernel.kernels) == self.num_latent_gps: # we want to catch the error with LinearCoregionalization mentioned above raise ValueError( f"number of kernels should match number of latent gps " \ f"({self.num_latent_gps}) got {len(kernel.kernels)} kernels" ) if issubclass(type(kernel), gpflow.kernels.LinearCoregionalization): self.output_dim = kernel.W.shape[-2] else: self.output_dim = self.num_latent_gps self.kernel = kernel self.inducing = inducing if hasattr(self.inducing, 'inducing_variable_list'): # case for separate independent assert len(self.inducing.inducing_variable_list) == self.num_latent_gps, \ f"Got {len(self.inducing.inducing_variable_list)} inducing variables, " \ f"but expected {self.num_latent_gps} gps from kernel. These should match." self.in_features = self.inducing.inducing_variable_list[0].Z.shape[-1] self.num_inducing = self.inducing.inducing_variable_list[0].Z.shape[-2] elif hasattr(self.inducing, 'inducing_variable'): # case for shared independent self.in_features = self.inducing.inducing_variable.Z.shape[-1] self.num_inducing = self.inducing.inducing_variable.Z.shape[-2] else: self.in_features = self.inducing.Z.shape[-1] self.num_inducing = self.inducing.Z.shape[-2] assert issubclass(type(mean_func), gpflow.mean_functions.MeanFunction) self.mean = mean_func if type(mean_func) is gpflow.mean_functions.Linear: # more consistency checking assert self.mean.A.shape[-1] == self.output_dim # Now for the storage of variational parameters self.q_mu = gpflow.Parameter(np.zeros((self.num_inducing, self.num_latent_gps)), transform=None) init_sqrt = np.tile(np.eye(self.num_inducing)[None, :, :], [self.num_latent_gps, 1, 1]) if 'scale_init_q_sqrt' in kwargs: init_sqrt *= kwargs['scale_init_q_sqrt'] self.q_sqrt = gpflow.Parameter(init_sqrt, transform=gpflow.utilities.triangular()) def propagate(self, F, num_samples=None, full_cov=False, **kwargs): # In Hugh's code, he forces one to use full_cov = False for the case of a MoK. This has the effect # that only the final layer uses full covariance (as his code uses a single output kernel for the # final layer). This is inspite of the fact that he passes full_cov=True to all layers in the IWVI # case. Since I don't want to hack GPFlow's conditional system, I will let the full_cov pass through # and manually implement his behavior in the model. samples, mean, cov = gpflow.conditionals.sample_conditional(F, self.inducing, self.kernel, self.q_mu, full_cov=full_cov, q_sqrt=self.q_sqrt, white=True, num_samples=num_samples, ) kl = gauss_kl(self.q_mu, self.q_sqrt) mf = self.mean(F) if num_samples is not None: samples = samples + mf[...,None,:,:] else: samples = samples + mf mean = mean + mf return samples, mean, cov, kl def components(self, F, num_samples=None, full_cov=False, **kwargs): # In Hugh's code, he forces one to use full_cov = False for the case of a MoK. This has the effect # that only the final layer uses full covariance (as his code uses a single output kernel for the # final layer). This is inspite of the fact that he passes full_cov=True to all layers in the IWVI # case. Since I don't want to hack GPFlow's conditional system, I will let the full_cov pass through # and manually implement his behavior in the model. mean, cov = gpflow.conditionals.conditional(F, self.inducing, self.kernel, self.q_mu, full_cov=full_cov, q_sqrt=self.q_sqrt, white=True, ) kl = gauss_kl(self.q_mu, self.q_sqrt) mf = self.mean(F) mean = mean + mf return mean, cov, kl class Encoder(gpflow.Module): def __init__(self, latent_dim: int, input_dim: int, network_dims: int, activation_func: Optional[Callable] = None): """ Encoder that uses GPflow params to encode the features. Creates an MLP with input dimensions `input_dim` and produces 2 * `latent_dim` outputs. :param latent_dim: dimension of the latent variable :param input_dim: the MLP acts on data of `input_dim` dimensions :param network_dims: dimensions of inner MLPs, e.g. [10, 20, 10] :param activation_func: TensorFlow operation that can be used as non-linearity between the layers (default: tanh). """ super().__init__() self.latent_dim = latent_dim self.activation_func = activation_func or tf.nn.tanh self.layer_dims = [input_dim, *network_dims, latent_dim * 2] Ws, bs = [], [] for input_dim, output_dim in zip(self.layer_dims[:-1], self.layer_dims[1:]): xavier_std = (2. / (input_dim + output_dim)) ** 0.5 W = np.random.randn(input_dim, output_dim) * xavier_std Ws.append(gpflow.Parameter(W, dtype=gpflow.config.default_float())) bs.append(gpflow.Parameter(np.zeros(output_dim), dtype=gpflow.config.default_float())) self.Ws, self.bs = Ws, bs def __call__(self, Z) -> Tuple[tf.Tensor, tf.Tensor]: o = tf.ones_like(Z)[..., :1, :1] # for correct broadcasting for i, (W, b, dim_in, dim_out) in enumerate(zip(self.Ws, self.bs, self.layer_dims[:-1], self.layer_dims[1:])): Z0 = tf.identity(Z) Z = tf.matmul(Z, o * W) + o * b if i < len(self.bs) - 1: Z = self.activation_func(Z) if dim_out == dim_in: # skip connection Z += Z0 means, log_chol_diag = tf.split(Z, 2, axis=-1) q_sqrt = tf.nn.softplus(log_chol_diag - 3.) # bias it towards small vals at first q_mu = means return q_mu, q_sqrt class SASEEncoder(gpflow.Module): def __init__(self, latent_dim: int, input_dim: int, network_dims: int, activation_func: Optional[Callable] = None): """ Encoder that uses GPflow params to encode the features. Creates an MLP with input dimensions `input_dim` and produces 2 * `latent_dim` outputs. Unlike the standard encoder, this expects an input of NR shape, and converts that to an output which is (N*R)L, where L is the latent dim. :param latent_dim: dimension of the latent variable, i.e L :param input_dim: the MLP acts on data of `input_dim` dimensions, i.e. R :param network_dims: dimensions of inner MLPs, e.g. [10, 20, 10] :param activation_func: TensorFlow operation that can be used as non-linearity between the layers (default: tanh). """ super().__init__() self.latent_dim = tf.convert_to_tensor([latent_dim], tf.int32) self.activation_func = activation_func or tf.nn.tanh self.layer_dims = [input_dim, *network_dims, input_dim * latent_dim * 2] Ws, bs = [], [] for input_dim, output_dim in zip(self.layer_dims[:-1], self.layer_dims[1:]): xavier_std = (2. / (input_dim + output_dim)) ** 0.5 W = np.random.randn(input_dim, output_dim) * xavier_std Ws.append(gpflow.Parameter(W, dtype=gpflow.config.default_float())) bs.append(gpflow.Parameter(np.zeros(output_dim), dtype=gpflow.config.default_float())) self.Ws, self.bs = Ws, bs def __call__(self, Z) -> Tuple[tf.Tensor, tf.Tensor]: N = tf.convert_to_tensor([tf.shape(Z)[-2]], dtype=tf.int32) R = tf.convert_to_tensor([tf.shape(Z)[-1]], dtype=tf.int32) batch_shape = tf.convert_to_tensor(tf.shape(Z)[:-2], dtype=tf.int32) o = tf.ones_like(Z)[..., :1, :1] # for correct broadcasting for i, (W, b, dim_in, dim_out) in enumerate(zip(self.Ws, self.bs, self.layer_dims[:-1], self.layer_dims[1:])): Z0 = tf.identity(Z) Z = tf.matmul(Z, o * W) + o * b if i < len(self.bs) - 1: Z = self.activation_func(Z) if dim_out == dim_in: # skip connection Z += Z0 means, log_chol_diag = tf.split(Z, 2, axis=-1) q_sqrt = tf.nn.softplus(log_chol_diag - 3.) # bias it towards small vals at first q_mu = means #...N(L*R) q_mu_reshaped = tf.reshape(q_mu, tf.concat([batch_shape, N*R, self.latent_dim],0)) # ...(N*R)L q_sqrt_reshaped = tf.reshape(q_sqrt, tf.concat([batch_shape, N*R, self.latent_dim],0)) return q_mu_reshaped, q_sqrt_reshaped class EmbeddingEncoder(gpflow.Module): def __init__(self, latent_dim: int, nwords: int): """ Here we simply pass a shot index to an embedding lookup. This allows us to randomly access a tensor more easily, but basically we're just storing latent values for each shot. """ super().__init__() self.latent_dim = int(latent_dim) self.embedding = gpflow.Parameter(np.random.randn(nwords, 2*latent_dim), dtype=gpflow.config.default_float()) @tf.function def __call__(self, Z: tf.Tensor) -> Tuple[tf.Tensor, tf.Tensor]: Zenc = tf.nn.embedding_lookup(self.embedding, tf.squeeze(Z,-1)) means, log_chol_diag = tf.split(Zenc, 2, axis=-1) q_sqrt = tf.nn.softplus(log_chol_diag - 3.) # bias it towards small vals at first q_mu = means return q_mu, q_sqrt class AmortizedLatentVariableLayer(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, XY_dim: Optional[int] = None, encoder: Optional[Callable] = None): super().__init__() self.latent_dim = latent_dim if encoder is None: assert XY_dim, 'must pass XY_dim or else an encoder' encoder = Encoder(latent_dim, XY_dim, [20, 20]) self.encoder = encoder def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't an X and Y passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ shape = tf.concat([F.shape[:-1], tf.TensorShape([self.latent_dim])], 0) q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt samples = tf.concat([F, W], -1) mean = tf.concat([F, q_mu], -1) cov = tf.concat([tf.zeros_like(F), q_sqrt ** 2], -1) # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=q_mu, scale=q_sqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(W) - p.log_prob(W) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl class AmortizedSASELatentVariableLayer(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, sase_dim: int, encoder: Optional[Callable] = None): super().__init__() if encoder is None: encoder = SASEEncoder(latent_dim, sase_dim, [50, 10, 50]) self.latent_dim = tf.convert_to_tensor([latent_dim], dtype=tf.int32) self.sase_dim = tf.convert_to_tensor([sase_dim], dtype=tf.int32) self.encoder = encoder def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't a SASE spec passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ batch_shape = tf.convert_to_tensor(tf.shape(F)[:-2], dtype=tf.int32) # ... N = tf.convert_to_tensor([tf.shape(F)[-2]], dtype=tf.int32) shape = tf.concat([batch_shape, N, self.latent_dim], 0) # ...(N)L q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt samples = tf.concat([F, W], -1) mean = tf.concat([F, q_mu], -1) cov = tf.concat([tf.zeros_like(F), q_sqrt ** 2], -1) # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=q_mu, scale=q_sqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(W) - p.log_prob(W) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl class AmortizedEmbeddingLatentVariableLayer(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, nwords: int, nembed: int = 10, nhidden: int = 20): super().__init__() self.latent_dim = latent_dim self.encoder = EmbeddingEncoder(latent_dim, nwords) def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't an X and Y passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ shape = tf.concat([F.shape[:-1], tf.TensorShape([self.latent_dim])], 0) q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt samples = tf.concat([F, W], -1) mean = tf.concat([F, q_mu], -1) cov = tf.concat([tf.zeros_like(F), q_sqrt ** 2], -1) # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=q_mu, scale=q_sqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(W) - p.log_prob(W) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl class SASEReducedEncoder(gpflow.Module): def __init__(self, latent_dim: int, input_dim: int, network_dims: int, activation_func: Optional[Callable] = None): """ Encoder that uses GPflow params to encode the features. Creates an MLP with input dimensions `input_dim` and produces 2 * `latent_dim` outputs. Unlike the standard encoder, this expects an input of NR shape, and converts that to an output which is (N*R)L, where L is the latent dim. :param latent_dim: dimension of the latent variable, i.e L :param input_dim: the MLP acts on data of `input_dim` dimensions, i.e. R :param network_dims: dimensions of inner MLPs, e.g. [10, 20, 10] :param activation_func: TensorFlow operation that can be used as non-linearity between the layers (default: tanh). """ super().__init__() self.latent_dim = tf.convert_to_tensor([latent_dim], tf.int32) self.activation_func = activation_func or tf.nn.tanh self.layer_dims = [input_dim, *network_dims, latent_dim * 2] Ws, bs = [], [] for input_dim, output_dim in zip(self.layer_dims[:-1], self.layer_dims[1:]): xavier_std = (2. / (input_dim + output_dim)) ** 0.5 W = np.random.randn(input_dim, output_dim) * xavier_std Ws.append(gpflow.Parameter(W, dtype=gpflow.config.default_float())) bs.append(gpflow.Parameter(np.zeros(output_dim), dtype=gpflow.config.default_float())) self.Ws, self.bs = Ws, bs def __call__(self, Z) -> Tuple[tf.Tensor, tf.Tensor]: N = tf.convert_to_tensor([tf.shape(Z)[-2]], dtype=tf.int32) R = tf.convert_to_tensor([tf.shape(Z)[-1]], dtype=tf.int32) batch_shape = tf.convert_to_tensor(tf.shape(Z)[:-2], dtype=tf.int32) o = tf.ones_like(Z)[..., :1, :1] # for correct broadcasting for i, (W, b, dim_in, dim_out) in enumerate(zip(self.Ws, self.bs, self.layer_dims[:-1], self.layer_dims[1:])): Z0 = tf.identity(Z) Z = tf.matmul(Z, o * W) + o * b if i < len(self.bs) - 1: Z = self.activation_func(Z) if dim_out == dim_in: # skip connection Z += Z0 means, log_chol_diag = tf.split(Z, 2, axis=-1) q_sqrt = tf.nn.softplus(log_chol_diag - 3.) # bias it towards small vals at first q_mu = means #...N(L*R) return q_mu, q_sqrt class AmortizedSASEReducedLatentVariableLayer(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, sase_dim: int, encoder: Optional[Callable] = None): super().__init__() if encoder is None: encoder = SASEReducedEncoder(latent_dim, sase_dim, [50, 10, 10]) self.latent_dim = tf.convert_to_tensor([latent_dim], dtype=tf.int32) self.sase_dim = tf.convert_to_tensor([sase_dim], dtype=tf.int32) self.encoder = encoder def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't a SASE spec passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ batch_shape = tf.convert_to_tensor(tf.shape(F)[:-2], dtype=tf.int32) # ... N = tf.convert_to_tensor([tf.shape(F)[-2]], dtype=tf.int32) shape = tf.concat([batch_shape, N, self.latent_dim], 0) # ...(N)L q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt samples = tf.concat([F, W], -1) mean = tf.concat([F, q_mu], -1) cov = tf.concat([tf.zeros_like(F), q_sqrt ** 2], -1) # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=q_mu, scale=q_sqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(W) - p.log_prob(W) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl class AmortizedLatentVariableLayer2(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, sase_dim: int, encoder_dims: Optional[List[int]] = None): super().__init__() if encoder_dims is None: encoder = Encoder(latent_dim, sase_dim, [50, 10, 10]) else: encoder = Encoder(latent_dim, sase_dim, encoder_dims) self.latent_dim = tf.convert_to_tensor([latent_dim], dtype=tf.int32) self.sase_dim = tf.convert_to_tensor([sase_dim], dtype=tf.int32) self.encoder = encoder def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't a SASE spec passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ batch_shape = tf.convert_to_tensor(tf.shape(F)[:-2], dtype=tf.int32) # ... N = tf.convert_to_tensor([tf.shape(F)[-2]], dtype=tf.int32) shape = tf.concat([batch_shape, N, self.latent_dim], 0) # ...(N)L q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt samples = tf.concat([F, W], -1) mean = tf.concat([F, q_mu], -1) cov = tf.concat([tf.zeros_like(F), q_sqrt ** 2], -1) #### HAHAHASDFDDADSF ##### AGGHHH NOTICE THE SCALE ON THE KL ##### ITS NOT 1!!!!! # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=q_mu, scale=q_sqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(W) - p.log_prob(W) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl class AmortizedLatentVariableLayerTiled(gpflow.Module): regularizer_type = RegularizerType.LOCAL def __init__(self, latent_dim: int, sase_dim: int, encoder_dims: Optional[List[int]] = None): super().__init__() if encoder_dims is None: encoder = Encoder(latent_dim, sase_dim, [50, 10, 10]) else: encoder = Encoder(latent_dim, sase_dim, encoder_dims) self.latent_dim = tf.convert_to_tensor([latent_dim], dtype=tf.int32) self.sase_dim = tf.convert_to_tensor([sase_dim], dtype=tf.int32) self.encoder = encoder def propagate(self, F: tf.Tensor, inference_amortization_inputs: Optional[tf.Tensor] = None, is_sampled_local_regularizer: bool = False, **kwargs) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]: if inference_amortization_inputs is None: """ If there isn't a SASE spec passed for the recognition model, this samples from the prior. Optionally, q_mu and q_sqrt can be fed via a placeholder (e.g. for plotting purposes) """ batch_shape = tf.convert_to_tensor(tf.shape(F)[:-3], dtype=tf.int32) # ... N = tf.convert_to_tensor([tf.shape(F)[-3]], dtype=tf.int32) S = tf.convert_to_tensor([tf.shape(F)[-2]//self.sase_dim[0]], dtype=tf.int32) shape = tf.concat([batch_shape, N, S, self.latent_dim], 0) # ...(N)L q_mu = tf.zeros(shape, dtype=gpflow.config.default_float()) q_sqrt = tf.ones(shape, dtype=gpflow.config.default_float()) else: q_mu, q_sqrt = self.encoder(inference_amortization_inputs) # reparameterization trick to take a sample for W eps = tf.random.normal(tf.shape(q_mu), dtype=gpflow.config.default_float()) W = q_mu + eps * q_sqrt tile_vec = tf.concat([tf.convert_to_tensor([1], dtype=tf.int32), self.sase_dim, tf.convert_to_tensor([1], dtype=tf.int32)],0) TW = tf.tile(W,tile_vec) Tmu = tf.tile(q_mu, tile_vec) Tsqrt = tf.tile(q_sqrt, tile_vec) samples = tf.concat([F, TW], -1) mean = tf.concat([F, Tmu], -1) cov = tf.concat([tf.zeros_like(F), Tsqrt ** 2], -1) # the prior regularization p = p = tfp.distributions.Normal(loc=tf.zeros(1,dtype=gpflow.config.default_float()), scale=0.1*tf.ones(1,dtype=gpflow.config.default_float())) q = tfp.distributions.Normal(loc=Tmu, scale=Tsqrt) if is_sampled_local_regularizer: # for the IW models, we need to return a log q/p for each sample W kl = q.log_prob(TW) - p.log_prob(TW) else: # for the VI models, we want E_q log q/p, which is closed form for Gaussians kl = tfp.distributions.kl_divergence(q, p) return samples, mean, cov, kl # + @attr.s(auto_attribs=True) class GPLayer_Config(object): ngps: int ninducing: int @attr.s(auto_attribs=True) class LatentLayer_Config(object): latent_features: int xy_dim: int @attr.s(auto_attribs=True) class EmbeddingLatentLayer_Config(object): latent_features: int nwords: int # -
46.419214
118
0.605394
4,368
31,890
4.245421
0.100046
0.010516
0.033919
0.047886
0.779713
0.748975
0.732798
0.7239
0.70783
0.705889
0
0.011475
0.289495
31,890
686
119
46.48688
0.806956
0.168485
0
0.703371
0
0
0.015746
0.006357
0
0
0
0
0.013483
1
0.053933
false
0.002247
0.029213
0
0.182022
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
4de1e0c5390d6f6fd70a58694c12c28a57150b84
61
py
Python
hubspot/hubspot.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/hubspot.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/hubspot.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
from .client import Client class HubSpot(Client): pass
10.166667
26
0.721311
8
61
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.213115
61
5
27
12.2
0.916667
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
1279d9e1f4a6fabf7f044bcb6bd3cecc3d1a508c
36
py
Python
midi_websocket_server/__init__.py
xy124/python-midi-websocket-server
eecc42abb308253a412639fce019c2699db5388c
[ "MIT" ]
1
2022-03-24T20:32:31.000Z
2022-03-24T20:32:31.000Z
midi_websocket_server/__init__.py
xy124/python-midi-websocket-server
eecc42abb308253a412639fce019c2699db5388c
[ "MIT" ]
null
null
null
midi_websocket_server/__init__.py
xy124/python-midi-websocket-server
eecc42abb308253a412639fce019c2699db5388c
[ "MIT" ]
1
2021-12-29T16:32:11.000Z
2021-12-29T16:32:11.000Z
from .midi_websocket_server import *
36
36
0.861111
5
36
5.8
1
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
0.878788
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
12a095aa6a4e68dde7c08ab7de0a170eac498bf7
1,244
py
Python
mailers/plugins/base.py
alex-oleshkevich/mailers
36836ae750cd190f75c96c5a78896d4ef830260e
[ "MIT" ]
17
2020-03-13T13:06:05.000Z
2022-03-06T00:17:45.000Z
mailers/plugins/base.py
alex-oleshkevich/mailers
36836ae750cd190f75c96c5a78896d4ef830260e
[ "MIT" ]
null
null
null
mailers/plugins/base.py
alex-oleshkevich/mailers
36836ae750cd190f75c96c5a78896d4ef830260e
[ "MIT" ]
null
null
null
import typing as t from email.message import Message from mailers.message import Email from mailers.result import SentMessages class Plugin(t.Protocol): # pragma: no cover def process_email(self, email: Email) -> Email: """Mailer calls it before sending.""" async def on_before_send(self, message: Message) -> None: """Called right before sending the message.""" async def on_after_send(self, message: Message, sent_messages: SentMessages) -> None: """Called right after sending the message.""" async def on_send_error(self, message: Message, sent_messages: SentMessages) -> None: """Called if no transport has delivered a message.""" class BasePlugin: # pragma: no cover def process_email(self, email: Email) -> Email: """Mailer calls it before sending.""" async def on_before_send(self, message: Message) -> None: """Called right before sending the message.""" async def on_after_send(self, message: Message, sent_messages: SentMessages) -> None: """Called right after sending the message.""" async def on_send_error(self, message: Message, sent_messages: SentMessages) -> None: """Called if no transport has delivered a message."""
36.588235
89
0.69373
161
1,244
5.248447
0.254658
0.056805
0.071006
0.104142
0.830769
0.830769
0.830769
0.830769
0.830769
0.830769
0
0
0.200161
1,244
33
90
37.69697
0.849246
0.078778
0
0.571429
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
12d57370d7a1f7a04757a4d3a925099319aa2578
36
py
Python
experiment/__init__.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
17
2021-07-23T06:16:54.000Z
2022-03-22T06:35:07.000Z
experiment/__init__.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
1
2022-03-12T16:26:27.000Z
2022-03-12T16:26:27.000Z
experiment/__init__.py
anonymoussubmissionrepo/columnar_networks
3a1ea1dc2f25e5226bc37b9239d904f19b62d7b4
[ "Apache-2.0" ]
7
2021-08-21T11:28:32.000Z
2022-03-04T07:01:48.000Z
from experiment.experiment import *
18
35
0.833333
4
36
7.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
1
36
36
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
12ef2178b2fc48385cafeb9a45a9659a02ff4323
30
py
Python
gliomagrowth/experiment/__init__.py
MIC-DKFZ/image-time-series
0480d5cb6936c7d9e839b6741f18c10893d78d8a
[ "MIT" ]
1
2021-11-29T17:46:58.000Z
2021-11-29T17:46:58.000Z
gliomagrowth/experiment/__init__.py
MIC-DKFZ/image-time-series
0480d5cb6936c7d9e839b6741f18c10893d78d8a
[ "MIT" ]
null
null
null
gliomagrowth/experiment/__init__.py
MIC-DKFZ/image-time-series
0480d5cb6936c7d9e839b6741f18c10893d78d8a
[ "MIT" ]
null
null
null
from . import continuous_image
30
30
0.866667
4
30
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.925926
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
424a4fe7026af3548cf7ceef3d3934f4e25da4f5
3,001
py
Python
tests/elf/test_equality.py
junghee/LIEF
de7492ee49ef813cd8db3a858892e4ed5a5638c5
[ "Apache-2.0" ]
2,999
2017-04-03T13:43:23.000Z
2022-03-31T15:24:27.000Z
tests/elf/test_equality.py
junghee/LIEF
de7492ee49ef813cd8db3a858892e4ed5a5638c5
[ "Apache-2.0" ]
626
2017-04-04T15:57:04.000Z
2022-03-31T19:25:18.000Z
tests/elf/test_equality.py
junghee/LIEF
de7492ee49ef813cd8db3a858892e4ed5a5638c5
[ "Apache-2.0" ]
498
2017-04-04T14:18:25.000Z
2022-03-29T19:31:38.000Z
#!/usr/bin/env python import itertools import logging import os import random import stat import subprocess import sys import tempfile import unittest from unittest import TestCase import lief from utils import get_sample lief.logging.set_level(lief.logging.LOGGING_LEVEL.INFO) class TestEquality64(TestCase): def setUp(self): self.logger = logging.getLogger(__name__) self.input = lief.parse(get_sample("ELF/ELF64_x86-64_binary_all.bin")) _, output = tempfile.mkstemp(prefix="all_bis") self.input.write(output) self.output = lief.parse(output) def test_header(self): self.assertEqual(self.input.header, self.output.header) def test_sections(self): for l, r in zip(self.input.sections, self.output.sections): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_segments(self): for l, r in zip(self.input.segments, self.output.segments): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_relocations(self): for l, r in zip(self.input.relocations, self.output.relocations): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_symbols(self): for l, r in zip(self.input.symbols, self.output.symbols): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_dynamic_entries(self): for l, r in zip(self.input.dynamic_entries, self.output.dynamic_entries): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) class TestEquality32(TestCase): def setUp(self): self.logger = logging.getLogger(__name__) self.input = lief.parse(get_sample("ELF/ELF32_x86_binary_all.bin")) _, output = tempfile.mkstemp(prefix="all_bis") self.input.write(output) self.output = lief.parse(output) def test_header(self): self.assertEqual(self.input.header, self.output.header) def test_sections(self): for l, r in zip(self.input.sections, self.output.sections): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_segments(self): for l, r in zip(self.input.segments, self.output.segments): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_relocations(self): for l, r in zip(self.input.relocations, self.output.relocations): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_symbols(self): for l, r in zip(self.input.symbols, self.output.symbols): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) def test_dynamic_entries(self): for l, r in zip(self.input.dynamic_entries, self.output.dynamic_entries): self.assertEqual(l, r, "\n{!s}\n{!s}".format(l, r)) if __name__ == '__main__': root_logger = logging.getLogger() root_logger.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) root_logger.addHandler(ch) unittest.main(verbosity=2)
30.938144
81
0.645785
436
3,001
4.325688
0.167431
0.031813
0.042418
0.04772
0.765642
0.765642
0.765642
0.765642
0.765642
0.765642
0
0.006279
0.203932
3,001
96
82
31.260417
0.783173
0.006664
0
0.647059
0
0
0.06745
0.019799
0
0
0
0
0.176471
1
0.205882
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
6
4299e5f80e6cb9de1d5c74004e85413d15f450f1
7,883
py
Python
WidgetAPIHttpTrigger/tests/test_tidy_widget.py
office-for-students/beta-widget-api
ce06fae0979c1f8bd0b50a77548a7c99653e251d
[ "MIT" ]
null
null
null
WidgetAPIHttpTrigger/tests/test_tidy_widget.py
office-for-students/beta-widget-api
ce06fae0979c1f8bd0b50a77548a7c99653e251d
[ "MIT" ]
null
null
null
WidgetAPIHttpTrigger/tests/test_tidy_widget.py
office-for-students/beta-widget-api
ce06fae0979c1f8bd0b50a77548a7c99653e251d
[ "MIT" ]
null
null
null
import unittest from course_fetcher import CourseFetcher class TestTidyWidgetStats(unittest.TestCase): def test_employment_in_work_or_study_is_returned(self): expected_stats = {"employment": [{"aggregation_level": 14, "in_work_or_study": 95}], "nss": []} input_stats = { "employment": [ { "aggregation_level": 14, "assumed_to_be_unemployed": 5, "in_study": 80, "in_work": 5, "in_work_and_study": 5, "in_work_or_study": 95, "not_available_for_work_or_study": 0, "number_of_students": 15, "response_rate": 100, } ] } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) def test_multiple_employment_in_work_or_study_is_returned_as_empty_array(self): expected_stats = { "employment": [], "nss": [] } input_stats = { "employment": [ { "aggregation_level": 14, "assumed_to_be_unemployed": 5, "in_study": 80, "in_work": 5, "in_work_and_study": 5, "in_work_or_study": 95, "not_available_for_work_or_study": 0, "number_of_students": 15, "response_rate": 100, }, { "aggregation_level": 14, "assumed_to_be_unemployed": 5, "in_study": 70, "in_work": 5, "in_work_and_study": 5, "in_work_or_study": 85, "not_available_for_work_or_study": 0, "number_of_students": 15, "response_rate": 100, }, ] } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) def test_nss_question_1_returned(self): expected_stats = { "nss": [ { "question_1": { "description": "Staff are good at explaining things", "agree_or_strongly_agree": 79, } } ], "employment": [], } input_stats = { "nss": [ { "question_1": { "description": "Staff are good at explaining things", "agree_or_strongly_agree": 79, } } ], } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) def test_multiple_nss_question_1_returned_as_empty_array(self): expected_stats = { "nss": [], "employment": [] } input_stats = { "nss": [ { "question_1": { "description": "Staff are good at explaining things", "agree_or_strongly_agree": 79, } }, { "question_1": { "description": "Staff are good at explaining things", "agree_or_strongly_agree": 93, } }, ] } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) def test_nss_question_27_returned(self): expected_stats = { "nss": [ { "question_27": { "description": "Overall, I am satisfied with the quality of the course", "agree_or_strongly_agree": 84, } } ], "employment": [] } input_stats = { "nss": [ { "question_27": { "description": "Overall, I am satisfied with the quality of the course", "agree_or_strongly_agree": 84, } } ] } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) def test_multiple_nss_question_27_returned_as_empty_array(self): expected_stats = { "nss": [], "employment": [] } input_stats = { "nss": [ { "question_27": { "description": "Overall, I am satisfied with the quality of the course", "agree_or_strongly_agree": 84, } }, { "question_27": { "description": "Overall, I am satisfied with the quality of the course", "agree_or_strongly_agree": 73, } }, ] } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course) # All being question 1 and 27 from nss and in_work_or_Study from employment def test_all_stats_returned(self): expected_stats = { 'nss': [ { 'question_1': { 'description': 'Staff are good at explaining things', 'agree_or_strongly_agree': 79 }, 'question_27': { 'description': 'Overall, I am satisfied with the quality of the course', 'agree_or_strongly_agree': 84 } }], 'employment': [ { 'aggregation_level': 14, 'in_work_or_study': 95 } ] } input_stats = { "nss": [ { "question_1": { "description": "Staff are good at explaining things", "agree_or_strongly_agree": 79, }, "question_2": { "description": "Staff have made the subject interesting", "agree_or_strongly_agree": 100, }, "question_3": { "description": "The course is intellectually stimulating", "agree_or_strongly_agree": 79, }, "question_4": { "description": "My course has challenged me to achieve my best work", "agree_or_strongly_agree": 89, }, "question_27": { "description": "Overall, I am satisfied with the quality of the course", "agree_or_strongly_agree": 84, }, } ], "employment": [ { "aggregation_level": 14, "assumed_to_be_unemployed": 5, "in_study": 80, "in_work": 5, "in_work_and_study": 5, "in_work_or_study": 95, "not_available_for_work_or_study": 0, "number_of_students": 15, "response_rate": 100, } ], } output_course = CourseFetcher.tidy_widget_stats(input_stats) self.assertEqual(expected_stats, output_course)
34.726872
103
0.440568
645
7,883
4.992248
0.148837
0.031677
0.069876
0.093168
0.873292
0.871739
0.856211
0.826708
0.826708
0.808696
0
0.031092
0.473678
7,883
226
104
34.880531
0.744999
0.00926
0
0.516908
0
0
0.273566
0.072362
0
0
0
0
0.033816
1
0.033816
false
0
0.009662
0
0.048309
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
42a3b6929c100bcf916f8fb080c70b6d66e905a0
138
py
Python
src/sqlalchemy_dlock/utils.py
tanbro/sqlalchemy-dlock
9deadeb89f90d2a7512e9de8b038e0261604ba20
[ "BSD-3-Clause" ]
null
null
null
src/sqlalchemy_dlock/utils.py
tanbro/sqlalchemy-dlock
9deadeb89f90d2a7512e9de8b038e0261604ba20
[ "BSD-3-Clause" ]
2
2022-03-14T08:56:06.000Z
2022-03-23T06:57:03.000Z
src/sqlalchemy_dlock/utils.py
tanbro/sqlalchemy-dlock
9deadeb89f90d2a7512e9de8b038e0261604ba20
[ "BSD-3-Clause" ]
null
null
null
import re SAFE_NAME_PATTERN = re.compile(r'[^A-Za-z0-9_]+') def safe_name(s): return SAFE_NAME_PATTERN.sub('_', s).strip().lower()
17.25
56
0.673913
24
138
3.583333
0.708333
0.27907
0.348837
0
0
0
0
0
0
0
0
0.016529
0.123188
138
7
57
19.714286
0.694215
0
0
0
0
0
0.108696
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
0.75
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
1
0
0
0
1
0
0
0
6
35ee5f61db28acaa99370beb666c9025d1d61254
129
py
Python
pydra/tasks/TODO/__init__.py
chasejohnson3/pydra-sem
d46468236568a50dd7dacf7e9d6a698a2fe67cb6
[ "Apache-2.0" ]
1
2020-11-25T19:34:12.000Z
2020-11-25T19:34:12.000Z
pydra/tasks/TODO/__init__.py
chasejohnson3/pydra-sem
d46468236568a50dd7dacf7e9d6a698a2fe67cb6
[ "Apache-2.0" ]
2
2020-06-19T00:04:43.000Z
2020-12-29T22:22:43.000Z
pydra/tasks/TODO/__init__.py
chasejohnson3/pydra-sem
d46468236568a50dd7dacf7e9d6a698a2fe67cb6
[ "Apache-2.0" ]
3
2020-06-18T20:45:08.000Z
2020-11-20T16:56:53.000Z
""" >>> import pydra.tasks.TODO """ from ._version import get_versions __version__ = get_versions()["version"] del get_versions
16.125
39
0.736434
16
129
5.4375
0.5625
0.37931
0.413793
0
0
0
0
0
0
0
0
0
0.116279
129
7
40
18.428571
0.763158
0.209302
0
0
0
0
0.074468
0
0
0
0
0.142857
0
1
0
false
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
1
0
0
0
0
0
1
0
0
0
0
6
67147a562f12006ee076424e40089d11533f4f41
202
py
Python
app/tube/admin.py
tuvshinot/we_tube
9982adbb19508bbfc71e14d7e23b941ba46aa7b7
[ "MIT" ]
null
null
null
app/tube/admin.py
tuvshinot/we_tube
9982adbb19508bbfc71e14d7e23b941ba46aa7b7
[ "MIT" ]
null
null
null
app/tube/admin.py
tuvshinot/we_tube
9982adbb19508bbfc71e14d7e23b941ba46aa7b7
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Video, TubeChannel, TubeUser, Tag admin.site.register(Video) admin.site.register(TubeChannel) admin.site.register(TubeUser) admin.site.register(Tag)
28.857143
53
0.821782
28
202
5.928571
0.428571
0.216867
0.409639
0
0
0
0
0
0
0
0
0
0.074257
202
7
54
28.857143
0.887701
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
671b96946d9a5f6d949b20d5f3f56e9769229914
154
py
Python
temap/tenant_management_application/doctype/tenancy_agreement/test_tenancy_agreement.py
EkpoEsua/temap
5f1abc943711cf9d3caf32fdc6ca681af9392453
[ "MIT" ]
null
null
null
temap/tenant_management_application/doctype/tenancy_agreement/test_tenancy_agreement.py
EkpoEsua/temap
5f1abc943711cf9d3caf32fdc6ca681af9392453
[ "MIT" ]
null
null
null
temap/tenant_management_application/doctype/tenancy_agreement/test_tenancy_agreement.py
EkpoEsua/temap
5f1abc943711cf9d3caf32fdc6ca681af9392453
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Esua Ekpo and Contributors # See license.txt # import frappe import unittest class TestTenancyAgreement(unittest.TestCase): pass
17.111111
48
0.785714
19
154
6.368421
0.894737
0
0
0
0
0
0
0
0
0
0
0.030303
0.142857
154
8
49
19.25
0.886364
0.493506
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
672338b6b311d62c8b42b90d48e9bb3b1738cf45
7,761
py
Python
app/models/hermes.py
nerevu/prometheus-api
f171406c4169d45d1a83df71a76128554988259f
[ "MIT" ]
9
2016-07-22T12:56:59.000Z
2021-12-27T09:09:32.000Z
app/models/hermes.py
nerevu/prometheus-api
f171406c4169d45d1a83df71a76128554988259f
[ "MIT" ]
null
null
null
app/models/hermes.py
nerevu/prometheus-api
f171406c4169d45d1a83df71a76128554988259f
[ "MIT" ]
7
2017-09-08T02:51:25.000Z
2020-11-19T17:50:01.000Z
# -*- coding: utf-8 -*- from __future__ import ( absolute_import, division, print_function, unicode_literals) import savalidation.validators as val from pprint import pprint from datetime import datetime as dt, date as d from app import db from savalidation import ValidationMixin from flask_sqlalchemy import SQLAlchemy from sqlalchemy.orm import backref from builtins import * # Hermes models class Exchange(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # other keys symbol = db.Column(db.String(12), unique=True, nullable=False) name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return ('<Exchange(%r, %r)>' % (self.symbol, self.name)) class DataSource(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # other keys name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return ('<DataSource(%r)>' % self.name) class CommodityGroup(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # other keys name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return ('<CommodityGroup(%r)>' % self.name) class CommodityType(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # foreign keys group_id = db.Column( db.Integer, db.ForeignKey( 'commodity_group.id', onupdate="CASCADE", ondelete="CASCADE"), nullable=False) group = db.relationship( 'CommodityGroup', backref=backref( 'types', cascade='all, delete'), lazy='joined') # other keys name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return ('<CommodityType(%r)>' % self.name) class Commodity(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # foreign keys type_id = db.Column( db.Integer, db.ForeignKey( 'commodity_type.id', onupdate="CASCADE", ondelete="CASCADE"), nullable=False) type = db.relationship( 'CommodityType', backref=backref('commodities', cascade='all, delete'), lazy='joined') data_source_id = db.Column( db.Integer, db.ForeignKey( 'data_source.id', onupdate="CASCADE", ondelete="CASCADE"), nullable=False) data_source = db.relationship( 'DataSource', backref=backref('commodities', cascade='all, delete'), lazy='joined') exchange_id = db.Column( db.Integer, db.ForeignKey('exchange.id'), nullable=False) exchange = db.relationship( 'Exchange', backref=backref('commodities', cascade='all, delete'), lazy='joined') # other keys # cusip = db.Column(db.String(16), unique=True) symbol = db.Column(db.String(12), unique=True, nullable=False) name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return ('<Commodity(%r, %r)>' % (self.symbol, self.name)) class EventType(db.Model, ValidationMixin): # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # other keys name = db.Column(db.String(64), nullable=False, unique=True) # validation val.validates_constraints() def __repr__(self): return '<Type(%r)>' % (self.name) class Event(db.Model, ValidationMixin): # table constraints __table_args__ = ( db.UniqueConstraint( 'commodity_id', 'date', 'type_id', 'currency_id'), {}) # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # foreign keys commodity_id = db.Column( db.Integer, db.ForeignKey('commodity.id'), nullable=False) commodity = db.relationship( 'Commodity', backref=backref('commodity_events', cascade='all, delete'), lazy='joined', primaryjoin='Commodity.id==Event.commodity_id') currency_id = db.Column( db.Integer, db.ForeignKey('commodity.id'), nullable=False) currency = db.relationship( 'Commodity', backref=backref('currency_events', cascade='all, delete'), lazy='joined', primaryjoin='Commodity.id==Event.currency_id') type_id = db.Column( db.Integer, db.ForeignKey('event_type.id'), nullable=False) type = db.relationship( 'EventType', backref=backref('events', cascade='all, delete'), lazy='joined') # other keys value = db.Column(db.Float, nullable=False) date = db.Column(db.DateTime, nullable=False, default=d.today()) # validation val.validates_constraints() def __repr__(self): return ( '<Event(%r, %r, %r, %r)>' % ( self.commodity_id, self.currency_id, self.value, self.date)) class Price(db.Model, ValidationMixin): # constraints __table_args__ = ( db.UniqueConstraint('commodity_id', 'currency_id', 'date'), {}) # auto keys id = db.Column(db.Integer, primary_key=True) utc_created = db.Column(db.DateTime, nullable=False, default=dt.utcnow()) utc_updated = db.Column( db.DateTime, nullable=False, default=dt.utcnow(), onupdate=dt.utcnow()) # foreign keys commodity_id = db.Column( db.Integer, db.ForeignKey('commodity.id'), nullable=False) commodity = db.relationship( 'Commodity', backref=backref('commodity_prices', cascade='all, delete'), lazy='joined', primaryjoin='Commodity.id==Price.commodity_id') currency_id = db.Column( db.Integer, db.ForeignKey('commodity.id'), nullable=False) currency = db.relationship( 'Commodity', backref=backref('currency_prices', cascade='all, delete'), lazy='joined', primaryjoin='Commodity.id==Price.currency_id') # other keys close = db.Column(db.Float, nullable=False) date = db.Column(db.DateTime, nullable=False, default=d.today()) # validation val.validates_constraints() def __repr__(self): return ( '<Price(%r, %r, %r, %r)>' % ( self.close, self.commodity_id, self.currency_id, self.date))
31.168675
79
0.654297
929
7,761
5.34338
0.107643
0.074134
0.092667
0.06527
0.813255
0.800967
0.799758
0.702861
0.648066
0.648066
0
0.003077
0.204355
7,761
248
80
31.294355
0.80081
0.053988
0
0.606667
0
0
0.1159
0.017241
0
0
0
0
0
1
0.053333
false
0
0.066667
0.053333
0.6
0.013333
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
db2186814662b95f517fcfd650b807085d7b5490
25,555
py
Python
tests/integrations/test_code_include.py
ColinKennedy/sphinx-code-include
c9449968ac8c626448bccbc943fcc817df01efab
[ "BSD-2-Clause" ]
2
2020-11-26T20:43:58.000Z
2021-01-18T08:32:21.000Z
tests/integrations/test_code_include.py
ColinKennedy/sphinx-code-include
c9449968ac8c626448bccbc943fcc817df01efab
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/test_code_include.py
ColinKennedy/sphinx-code-include
c9449968ac8c626448bccbc943fcc817df01efab
[ "BSD-2-Clause" ]
1
2021-07-15T10:49:25.000Z
2021-07-15T10:49:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """A series of tests that access content outside of this repository.""" import textwrap import unittest from six.moves import mock from six.moves import urllib from .. import common def _skip_from_ssl_error(url): """bool: Check if the given URL can be reached.""" # This function is mostly meant for pypy3 try: from _cffi_ssl._stdssl import error except ImportError: return False try: return urllib.request.urlopen(url).getcode() == 200 # 200 means "URL not found" except (error.SSLError, urllib.error.URLError): return True class SourceReader(unittest.TestCase): """Check that external queries work.""" @mock.patch("code_include.source_code._get_app_inventory") def _test_import(self, content, expected, _get_app_inventory): """A generic test function. It tests for some source code from an importable Python object. Args: content (list[str]): The lines that the user provides in a standard code-include block. expected (str): The converted source-code text that will be tested for. _get_app_inventory (:class:`mock.mock.MagicMock`): The function that's normally used to query a Sphinx project's inventory to find every HTML file-path and tag-able header. """ _get_app_inventory.return_value = {"non-empty": {"information": tuple()}} directive = common.make_mock_directive(content) nodes = directive.run() self.assertNotEqual([], nodes) self.assertEqual(1, len(nodes)) self.assertEqual(expected, nodes[0].astext()) @mock.patch("code_include.source_code._get_source_module_data") @mock.patch("code_include.source_code._get_source_code_from_object") @mock.patch("code_include.source_code._get_app_inventory") @unittest.skipIf( _skip_from_ssl_error("https://ways.readthedocs.io/en/latest/objects.inv"), "URL could not be reached", ) def test_url( self, _get_app_inventory, _get_source_code_from_object, _get_source_module_data ): """Get the source-code of some project from a URL. Args: _get_app_inventory (:class:`mock.mock.MagicMock`): The function that's normally used to query a Sphinx project's inventory to find every HTML file-path and tag-able header. _get_source_code_from_object (:class:`mock.mock.MagicMock`): Force this function to get the code from intersphinx. _get_source_module_data (:class:`mock.mock.MagicMock`): A function that is mocked so that we can skip some of the less important tag-parsing functions and get to the point of this function - testing generated source-code. """ path = "https://ways.readthedocs.io/en/latest/objects.inv" _get_app_inventory.return_value = common.load_cache_from_url(path) _get_source_module_data.return_value = ( "https://ways.readthedocs.io/en/latest/_modules/ways/base/plugin.html", "DataPlugin", ) _get_source_code_from_object.return_value = "" expected = textwrap.dedent( """\ class DataPlugin(Plugin): '''An add-on that was made from a serialized file (JSON/YAML/etc). This class behaves exactly like a regular Plugin object and is stored in the same space as Plugin objects. DataPlugin does not add itself to the cache automatically. It is the responsibility of some other class/function to register it to Ways. We do this so that we can have better control over the DataPlugin's args and its assignment before it hits the cache. ''' add_to_registry = False def __init__(self, name, sources, info, assignment): '''Create the object and set its sources. Args: sources (list[str]): The location(s) that defined this Plugin. info (dict[str]): The information that came from a JSON or YAML file which sets the base settings of the object. assignment (str): The grouping location where this Plugin will go. This assignment must be the same as the Context that this Plugin is meant for. Raises: ValueError: If there are missing keys in data that this class needs. ''' missing_required_keys = set(self._required_keys()) - set(info.keys()) if missing_required_keys: raise ValueError('Info: "{info}" is missing keys, "{keys}".' ''.format(info=info, keys=missing_required_keys)) # Give this plugin a UUID if none was given, for us # Data is assumed to be a core.classes.dict_class.ReadOnlyDict so we # try to unlock it, here. If it's not a custom dict, just let it pass # try: is_settable = info.settable info.settable = True except AttributeError: pass info.setdefault('uuid', str(uuid.uuid4())) try: info.settable = is_settable except AttributeError: pass self.name = name self._info = info self.sources = tuple(sources) self._data = self._info.get('data', dict()) self.assignment = assignment super(DataPlugin, self).__init__() @classmethod def _required_keys(cls): '''tuple[str]: Keys that must be set in our Plugin.''' return ('hierarchy', ) def is_path(self): '''If the mapping is a filepath or None if unsure. Returns: bool or NoneType: If the mapping is a path to a file/folder on disk. ''' try: return self._info['path'] except KeyError: return None def get_assignment(self): '''str: Where this Plugin lives in Ways, along with its hierarchy.''' return self.assignment def get_groups(self): '''Get the groups that this Plugin evaluates onto. Note: The term 'groups' is not the same as the assignment of a Plugin. They are two different things. Returns: tuple[str]: The groups. ''' value = check.force_itertype(self._info.get('groups', ('*', )), itertype=tuple) is_empty = not [val for val in value if val.strip()] if is_empty: value = ('*', ) return value def get_hierarchy(self): '''tuple[str] or str: The location that this Plugin exists within.''' return self._info['hierarchy'] def get_mapping(self): '''str: The physical location of this Plugin (on the filesystem).''' try: return self._info['mapping'] except KeyError: return '' def get_mapping_details(self): '''dict[str]: Information about the mapping, if needed.''' return self._info.get('mapping_details', dict()) def get_max_folder(self): '''str: The furthest location up that this plugin can navigate to.''' return self._info.get('max_folder', '') def get_platforms(self): '''set[str]: The platforms that this Plugin is allowed to run on.''' platforms = ways.get_known_platfoms() return set(self._info.get('platforms', platforms)) def get_uses(self): '''tuple[str]: The Context hierarchies this instance depends on.''' return self._info.get('uses', tuple()) def get_uuid(self): '''str: A unique ID for this plugin.''' return self._info.get('uuid', '') def __repr__(self): '''str: The information needed to reproduce this instance.''' return '{cls_}(sources={sources!r}, data={data})'.format( cls_=self.__class__.__name__, sources=self.sources, data=dict(self._info)) def __str__(self): '''str: A more concise print-out of this instance.''' return '{cls_}(hierarchy={hierarchy}, sources={sources!r})'.format( cls_=self.__class__.__name__, hierarchy=self.get_hierarchy(), sources=self.sources)""" ) content = [":class:`ways.base.plugin.DataPlugin`"] directive = common.make_mock_directive(content) nodes = directive.run() self.assertNotEqual([], nodes) self.assertEqual(1, len(nodes)) self.assertEqual(expected, nodes[0].astext()) def test_import(self): """Get the source-code of an importable object.""" expected = textwrap.dedent( '''\ def fill(text, width=70, **kwargs): """Fill a single paragraph of text, returning a new string. Reformat the single paragraph in 'text' to fit in lines of no more than 'width' columns, and return a new string containing the entire wrapped paragraph. As with wrap(), tabs are expanded and other whitespace characters converted to space. See TextWrapper class for available keyword args to customize wrapping behaviour. """ w = TextWrapper(width=width, **kwargs) return w.fill(text)''') content = [":func:`textwrap.fill`"] self._test_import(content, expected) # pylint: disable=no-value-for-parameter @unittest.skipIf( _skip_from_ssl_error("https://ways.readthedocs.io/en/latest/objects.inv"), "URL could not be reached", ) class InventoryReader(unittest.TestCase): """Check that external queries to Sphinx intersphinx inventtory files work.""" @mock.patch("code_include.source_code._get_source_code_from_object") @mock.patch("code_include.source_code._get_app_inventory") def _test_import( self, content, expected, _get_app_inventory, _get_source_code_from_object, ): """A generic test function. It tests for some source code from an inventory. Args: content (list[str]): The lines that the user provides in a standard code-include block. expected (str): The converted source-code text that will be tested for. _get_app_inventory (:class:`mock.mock.MagicMock`): The function that gets dictionary information (which later finds the Sphinx Python source-code). _get_source_code_from_object (:class:`mock.mock.MagicMock`): The function that's used to import a Python object to get its source-code to find every HTML file-path and tag-able header. """ _get_source_code_from_object.return_value = "" path = "https://ways.readthedocs.io/en/latest/objects.inv" _get_app_inventory.return_value = common.load_cache_from_url(path) _get_source_code_from_object.return_value = "" directive = common.make_mock_directive(content) nodes = directive.run() self.assertNotEqual([], nodes) self.assertEqual(1, len(nodes)) self.assertEqual(expected, nodes[0].astext()) @mock.patch("code_include.source_code._get_source_module_data") def test_class(self, _get_source_module_data): """Get the source-code of an importable class.""" _get_source_module_data.return_value = ( "https://ways.readthedocs.io/en/latest/_modules/ways/base/plugin.html", "Plugin", ) content = [":class:`ways.base.plugin.Plugin`"] expected = textwrap.dedent( """\ @six.add_metaclass(PluginRegistry) class Plugin(object): '''An add-on that is later retrieved by Context to gather its data.''' add_to_registry = True _data = dict() @property def data(self): '''dict[str]: The display properties (like {'color': 'red'}).''' return self._data @data.setter def data(self, value): '''Set the data on this instance with whatever value is. Args: value (dict[str]): The new values for this instance. ''' self._data = value""" ) self._test_import(content, expected) # pylint: disable=no-value-for-parameter @mock.patch("code_include.source_code._get_source_module_data") def test_function(self, _get_source_module_data): """Get the source-code of an importable function.""" _get_source_module_data.return_value = ( "https://ways.readthedocs.io/en/latest/_modules/ways/base/plugin.html", "get_assignment", ) content = [":func:`ways.base.plugin.get_assignment`"] expected = textwrap.dedent( """\ def get_assignment(obj): '''str: Get an object's assignment or fallback to ways.DEFAULT_ASSIGNMENT.''' try: return obj.get_assignment() except AttributeError: return common.DEFAULT_ASSIGNMENT""" ) self._test_import(content, expected) # pylint: disable=no-value-for-parameter @mock.patch("code_include.source_code._get_source_module_data") def test_method(self, _get_source_module_data): """Get the source-code of an importable method.""" _get_source_module_data.return_value = ( "https://ways.readthedocs.io/en/latest/_modules/ways/base/plugin.html", "DataPlugin.get_groups", ) content = [":meth:`ways.base.plugin.DataPlugin.get_groups`"] expected = textwrap.dedent( """\ def get_groups(self): '''Get the groups that this Plugin evaluates onto. Note: The term 'groups' is not the same as the assignment of a Plugin. They are two different things. Returns: tuple[str]: The groups. ''' value = check.force_itertype(self._info.get('groups', ('*', )), itertype=tuple) is_empty = not [val for val in value if val.strip()] if is_empty: value = ('*', ) return value""" ) self._test_import(content, expected) # pylint: disable=no-value-for-parameter @mock.patch("code_include.source_code._get_source_module_data") def test_module(self, _get_source_module_data): """Get the source-code of an importable module.""" _get_source_module_data.return_value = ( "https://ways.readthedocs.io/en/latest/_modules/ways/base/plugin.html", "", ) content = [":mod:`ways.base.plugin`"] expected = textwrap.dedent( """\ #!/usr/bin/env python # -*- coding: utf-8 -*- '''A module that holds Plugin classes and objects that combine into a Context.''' # IMPORT STANDARD LIBRARIES import uuid # IMPORT THIRD-PARTY LIBRARIES import six # IMPORT WAYS LIBRARIES import ways # IMPORT LOCAL LIBRARIES from ..core import check from ..helper import common class PluginRegistry(type): '''A metaclass that adds new Plugin objects to a cache.''' def __new__(mcs, clsname, bases, attrs): '''Add the created object to the HistoryCache.''' new_class = super(PluginRegistry, mcs).__new__( mcs, clsname, bases, attrs) # TODO : We still need to not be using 'Plugin' ... # If we explicitly state not to register a plugin, don't register it # If add_to_registry isn't defined for this Plugin, # assume that we should register it # try: if new_class.__name__ == 'Plugin' or not new_class.add_to_registry: return new_class except AttributeError: return new_class assignment = get_assignment(new_class) ways.add_plugin(new_class(), assignment) return new_class # pylint: disable=too-few-public-methods @six.add_metaclass(PluginRegistry) class Plugin(object): '''An add-on that is later retrieved by Context to gather its data.''' add_to_registry = True _data = dict() @property def data(self): '''dict[str]: The display properties (like {'color': 'red'}).''' return self._data @data.setter def data(self, value): '''Set the data on this instance with whatever value is. Args: value (dict[str]): The new values for this instance. ''' self._data = value class DataPlugin(Plugin): '''An add-on that was made from a serialized file (JSON/YAML/etc). This class behaves exactly like a regular Plugin object and is stored in the same space as Plugin objects. DataPlugin does not add itself to the cache automatically. It is the responsibility of some other class/function to register it to Ways. We do this so that we can have better control over the DataPlugin's args and its assignment before it hits the cache. ''' add_to_registry = False def __init__(self, name, sources, info, assignment): '''Create the object and set its sources. Args: sources (list[str]): The location(s) that defined this Plugin. info (dict[str]): The information that came from a JSON or YAML file which sets the base settings of the object. assignment (str): The grouping location where this Plugin will go. This assignment must be the same as the Context that this Plugin is meant for. Raises: ValueError: If there are missing keys in data that this class needs. ''' missing_required_keys = set(self._required_keys()) - set(info.keys()) if missing_required_keys: raise ValueError('Info: "{info}" is missing keys, "{keys}".' ''.format(info=info, keys=missing_required_keys)) # Give this plugin a UUID if none was given, for us # Data is assumed to be a core.classes.dict_class.ReadOnlyDict so we # try to unlock it, here. If it's not a custom dict, just let it pass # try: is_settable = info.settable info.settable = True except AttributeError: pass info.setdefault('uuid', str(uuid.uuid4())) try: info.settable = is_settable except AttributeError: pass self.name = name self._info = info self.sources = tuple(sources) self._data = self._info.get('data', dict()) self.assignment = assignment super(DataPlugin, self).__init__() @classmethod def _required_keys(cls): '''tuple[str]: Keys that must be set in our Plugin.''' return ('hierarchy', ) def is_path(self): '''If the mapping is a filepath or None if unsure. Returns: bool or NoneType: If the mapping is a path to a file/folder on disk. ''' try: return self._info['path'] except KeyError: return None def get_assignment(self): '''str: Where this Plugin lives in Ways, along with its hierarchy.''' return self.assignment def get_groups(self): '''Get the groups that this Plugin evaluates onto. Note: The term 'groups' is not the same as the assignment of a Plugin. They are two different things. Returns: tuple[str]: The groups. ''' value = check.force_itertype(self._info.get('groups', ('*', )), itertype=tuple) is_empty = not [val for val in value if val.strip()] if is_empty: value = ('*', ) return value def get_hierarchy(self): '''tuple[str] or str: The location that this Plugin exists within.''' return self._info['hierarchy'] def get_mapping(self): '''str: The physical location of this Plugin (on the filesystem).''' try: return self._info['mapping'] except KeyError: return '' def get_mapping_details(self): '''dict[str]: Information about the mapping, if needed.''' return self._info.get('mapping_details', dict()) def get_max_folder(self): '''str: The furthest location up that this plugin can navigate to.''' return self._info.get('max_folder', '') def get_platforms(self): '''set[str]: The platforms that this Plugin is allowed to run on.''' platforms = ways.get_known_platfoms() return set(self._info.get('platforms', platforms)) def get_uses(self): '''tuple[str]: The Context hierarchies this instance depends on.''' return self._info.get('uses', tuple()) def get_uuid(self): '''str: A unique ID for this plugin.''' return self._info.get('uuid', '') def __repr__(self): '''str: The information needed to reproduce this instance.''' return '{cls_}(sources={sources!r}, data={data})'.format( cls_=self.__class__.__name__, sources=self.sources, data=dict(self._info)) def __str__(self): '''str: A more concise print-out of this instance.''' return '{cls_}(hierarchy={hierarchy}, sources={sources!r})'.format( cls_=self.__class__.__name__, hierarchy=self.get_hierarchy(), sources=self.sources) def get_assignment(obj): '''str: Get an object's assignment or fallback to ways.DEFAULT_ASSIGNMENT.''' try: return obj.get_assignment() except AttributeError: return common.DEFAULT_ASSIGNMENT""" ) self._test_import(content, expected) # pylint: disable=no-value-for-parameter
40.117739
99
0.526981
2,726
25,555
4.774762
0.141599
0.024585
0.018439
0.023356
0.823832
0.811156
0.805009
0.796789
0.786263
0.778273
0
0.001213
0.386969
25,555
636
100
40.180818
0.829631
0.098102
0
0.543103
0
0.043103
0.262201
0.136929
0
0
0
0.001572
0.077586
1
0.077586
false
0
0.12931
0
0.25
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
db23d6634bd85ecd44a9b24a4dfc2d59f0fc137f
100
py
Python
straintables/PrimerEngine/__init__.py
Gab0/linkageMapper
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
null
null
null
straintables/PrimerEngine/__init__.py
Gab0/linkageMapper
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
1
2020-05-03T15:13:07.000Z
2020-05-04T03:01:59.000Z
straintables/PrimerEngine/__init__.py
Gab0/straintables
549b292e5b6ab22e03373483cd27236aa2f635eb
[ "MIT" ]
null
null
null
#!/bin/python from . import GeneticEntities, PrimerDock, PrimerDesign from . import ampliconSanity
20
55
0.8
10
100
8
0.8
0.25
0
0
0
0
0
0
0
0
0
0
0.12
100
4
56
25
0.909091
0.12
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
c020e29df15b71d096728a4664196f0aaeedd0dd
948
py
Python
algo/mad_seat.py
calfzhou/lazy-lab
dcd67845e4bd1e0c82a05a89f53eec6912d870f8
[ "MIT" ]
null
null
null
algo/mad_seat.py
calfzhou/lazy-lab
dcd67845e4bd1e0c82a05a89f53eec6912d870f8
[ "MIT" ]
null
null
null
algo/mad_seat.py
calfzhou/lazy-lab
dcd67845e4bd1e0c82a05a89f53eec6912d870f8
[ "MIT" ]
null
null
null
import random def Sit(n): seats = [i for i in xrange(n)] mad_seat = random.choice(seats) if mad_seat == 0: return True if mad_seat == n - 1: return False seats.remove(mad_seat) for i in xrange(1, n - 1): if i in seats: seat = i else: seat = random.choice(seats) seats.remove(seat) assert(len(seats) == 1) last_seat = seats.pop() return (last_seat == n - 1) and True or False def Sit2(n): seats = [i for i in xrange(n)] mad_seat = random.choice(seats) #if mad_seat == 0: return True if mad_seat == n - 1: return False seats.remove(mad_seat) for i in xrange(1, n - 1): #if i in seats: seat = i #else: seat = random.choice(seats) seats.remove(seat) assert(len(seats) == 1) last_seat = seats.pop() return (last_seat == n - 1) and True or False play_cnt = 10000 last_inplace = 0 for i in xrange(play_cnt): if Sit2(100): last_inplace += 1 print 'Inplace:', last_inplace, '/', play_cnt
25.621622
47
0.640295
166
948
3.548193
0.204819
0.095076
0.050934
0.101868
0.797963
0.797963
0.797963
0.797963
0.797963
0.797963
0
0.032742
0.226793
948
36
48
26.333333
0.770805
0.060127
0
0.6
0
0
0.010135
0
0
0
0
0
0.066667
0
null
null
0
0.033333
null
null
0.033333
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
6
c032438cd46d5216c27f2330da14701e6fdf78df
36
py
Python
richcontext/scholapi/__init__.py
HaritzPuerto/RCApi
5616ffbc2b49f143ebe4111daa2763ed3472b36a
[ "CC0-1.0" ]
8
2020-01-08T16:49:55.000Z
2021-10-20T02:12:33.000Z
richcontext/scholapi/__init__.py
srand525/RCApi
c1f3cf96d1b176cd616830e6a4563585280c12e9
[ "CC0-1.0" ]
27
2020-01-09T19:58:59.000Z
2021-01-11T18:35:28.000Z
richcontext/scholapi/__init__.py
NYU-CI/RCApi
c1f3cf96d1b176cd616830e6a4563585280c12e9
[ "CC0-1.0" ]
3
2020-01-08T20:37:23.000Z
2021-09-04T10:57:37.000Z
from .scholapi import ScholInfraAPI
18
35
0.861111
4
36
7.75
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
1
36
36
0.96875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
fbf2a4f52d3e0d9140b6d8b31ed78c21bf834d7a
13,793
py
Python
cassiopeia/datastores/riotapi/leagues.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
cassiopeia/datastores/riotapi/leagues.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
cassiopeia/datastores/riotapi/leagues.py
bangingheads/cassiopeia-1
becf9b0e4703b40d0cf1e279eeb7777c421b7f48
[ "MIT" ]
null
null
null
from typing import Type, TypeVar, MutableMapping, Any, Iterable, Generator from datapipelines import DataSource, PipelineContext, Query, NotFoundError, validate_query from .common import RiotAPIService, APINotFoundError from ...data import Platform, Queue, Tier, Division from ...dto.league import LeagueEntriesDto, LeagueEntryDto, LeagueDto, LeagueSummonerEntriesDto, ChallengerLeagueListDto, MasterLeagueListDto, GrandmasterLeagueListDto from ..uniquekeys import convert_region_to_platform T = TypeVar("T") class LeaguesAPI(RiotAPIService): @DataSource.dispatch def get(self, type: Type[T], query: MutableMapping[str, Any], context: PipelineContext = None) -> T: pass @DataSource.dispatch def get_many(self, type: Type[T], query: MutableMapping[str, Any], context: PipelineContext = None) -> Iterable[T]: pass # League Entries _validate_get_league_entries_query = Query. \ has("queue").as_(Queue).also. \ has("tier").as_(Tier).also. \ has("division").as_(Division).also. \ has("page").as_(int).also. \ has("platform").as_(Platform) @get.register(LeagueEntriesDto) @validate_query(_validate_get_league_entries_query, convert_region_to_platform) def get_league_entries_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> LeagueEntriesDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/entries/{queue}/{tier}/{division}".format( platform=query["platform"].value.lower(), queue=query["queue"].value, tier=query["tier"].value, division=query["division"].value ) try: app_limiter, method_limiter = self._get_rate_limiter(query["platform"], "leagues/paginated-entries") data = self._get(url, parameters={"page": query["page"]}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError: data = [] region = query["platform"].region.value for entry in data: entry["region"] = region return LeagueEntriesDto(entries=data, page=query["page"], region=query["region"].value, queue=query["queue"].value, tier=query["tier"].value, division=query["division"].value) _validate_get_league_summoner_entries_query = Query. \ has("summoner.id").as_(str).also. \ has("platform").as_(Platform) @get.register(LeagueSummonerEntriesDto) @validate_query(_validate_get_league_summoner_entries_query, convert_region_to_platform) def get_league_summoner_entries_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> LeagueSummonerEntriesDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/entries/by-summoner/{id}".format( platform=query["platform"].value.lower(), id=query["summoner.id"] ) try: app_limiter, method_limiter = self._get_rate_limiter(query["platform"], "leagues/summoner-entries") data = self._get(url, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError: data = [] region = query["platform"].region.value for entry in data: entry["region"] = region return LeagueSummonerEntriesDto(entries=data, region=region, summonerId=query["summoner.id"]) # Leagues _validate_get_league_query = Query. \ has("id").as_(str).also. \ has("platform").as_(Platform) @get.register(LeagueDto) @validate_query(_validate_get_league_query, convert_region_to_platform) def get_leagues_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> LeagueDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/leagues/{leagueId}".format(platform=query["platform"].value.lower(), leagueId=query["id"]) try: endpoint = "leagues/leagueId {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data["region"] = query["platform"].region.value for entry in data["entries"]: entry["region"] = data["region"] entry["tier"] = data["tier"] return LeagueDto(data) _validate_get_many_league_query = Query. \ has("ids").as_(Iterable).also. \ has("platform").as_(Platform) @get_many.register(LeagueDto) @validate_query(_validate_get_many_league_query, convert_region_to_platform) def get_many_leagues_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> Generator[LeagueDto, None, None]: def generator(): for id in query["ids"]: url = "https://{platform}.api.riotgames.com/lol/league/v4/leagues/{leagueId}".format(platform=query["platform"].value.lower(), leagueId=id) try: endpoint = "leagues/leagueId {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data = {"leagues": data} data["region"] = query["platform"].region.value for league in data["leagues"]: league["region"] = data["region"] for entry in league["entries"]: entry["region"] = data["region"] yield LeagueDto(data) return generator() _validate_get_challenger_league_query = Query. \ has("queue").as_(Queue).also. \ has("platform").as_(Platform) @get.register(ChallengerLeagueListDto) @validate_query(_validate_get_challenger_league_query, convert_region_to_platform) def get_challenger_league_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> ChallengerLeagueListDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/challengerleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=query["queue"].value) try: endpoint = "challengerleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data["region"] = query["platform"].region.value data["queue"] = query["queue"].value for entry in data["entries"]: entry["region"] = data["region"] return ChallengerLeagueListDto(data) _validate_get_many_challenger_league_query = Query. \ has("queues").as_(Iterable).also. \ has("platform").as_(Platform) @get_many.register(ChallengerLeagueListDto) @validate_query(_validate_get_many_challenger_league_query, convert_region_to_platform) def get_challenger_leagues_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> Generator[ChallengerLeagueListDto, None, None]: def generator(): for queue in query["queues"]: url = "https://{platform}.api.riotgames.com/lol/league/v4/challengerleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=queue.value) try: endpoint = "challengerleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data = {"leagues": data} data["region"] = query["platform"].region.value data["queue"] = queue.value for entry in data["entries"]: entry["region"] = data["region"] yield ChallengerLeagueListDto(data) return generator() _validate_get_grandmaster_league_query = Query. \ has("queue").as_(Queue).also. \ has("platform").as_(Platform) @get.register(GrandmasterLeagueListDto) @validate_query(_validate_get_grandmaster_league_query, convert_region_to_platform) def get_grandmaster_league_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> GrandmasterLeagueListDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/grandmasterleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=query["queue"].value) try: endpoint = "grandmasterleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data["region"] = query["platform"].region.value data["queue"] = query["queue"].value for entry in data["entries"]: entry["region"] = data["region"] return GrandmasterLeagueListDto(data) _validate_get_many_grandmaster_league_query = Query. \ has("queues").as_(Iterable).also. \ has("platform").as_(Platform) @get_many.register(GrandmasterLeagueListDto) @validate_query(_validate_get_many_grandmaster_league_query, convert_region_to_platform) def get_grandmaster_leagues_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> Generator[GrandmasterLeagueListDto, None, None]: def generator(): for queue in query["queues"]: url = "https://{platform}.api.riotgames.com/lol/league/v4/grandmasterleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=queue.value) try: endpoint = "grandmasterleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data = {"leagues": data} data["region"] = query["platform"].region.value data["queue"] = queue.value for entry in data["entries"]: entry["region"] = data["region"] yield GrandmasterLeagueListDto(data) return generator() _validate_get_master_league_query = Query. \ has("queue").as_(Queue).also. \ has("platform").as_(Platform) @get.register(MasterLeagueListDto) @validate_query(_validate_get_master_league_query, convert_region_to_platform) def get_master_league_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> MasterLeagueListDto: url = "https://{platform}.api.riotgames.com/lol/league/v4/masterleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=query["queue"].value) try: endpoint = "masterleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data["region"] = query["platform"].region.value data["queue"] = query["queue"].value for entry in data["entries"]: entry["region"] = data["region"] return MasterLeagueListDto(data) _validate_get_many_master_league_query = Query. \ has("queues").as_(Iterable).also. \ has("platform").as_(Platform) @get_many.register(MasterLeagueListDto) @validate_query(_validate_get_many_master_league_query, convert_region_to_platform) def get_master_leagues_list(self, query: MutableMapping[str, Any], context: PipelineContext = None) -> Generator[MasterLeagueListDto, None, None]: def generator(): for queue in query["queues"]: url = "https://{platform}.api.riotgames.com/lol/league/v4/masterleagues/by-queue/{queueName}".format(platform=query["platform"].value.lower(), queueName=queue.value) try: endpoint = "masterleagues/by-queue {}".format(query["platform"].value) app_limiter, method_limiter = self._get_rate_limiter(query["platform"], endpoint) data = self._get(url, {}, app_limiter=app_limiter, method_limiter=method_limiter) except APINotFoundError as error: raise NotFoundError(str(error)) from error data = {"leagues": data} data["region"] = query["platform"].region.value data["queue"] = queue.value for entry in data["entries"]: entry["region"] = data["region"] yield MasterLeagueListDto(data) return generator()
52.049057
187
0.655115
1,474
13,793
5.921303
0.065807
0.056599
0.068744
0.052704
0.840055
0.809693
0.741522
0.737053
0.724221
0.713451
0
0.000927
0.218227
13,793
264
188
52.246212
0.808495
0.001595
0
0.582569
0
0.036697
0.142286
0.014454
0
0
0
0
0
1
0.073395
false
0.009174
0.027523
0
0.197248
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
222b17d6d8f5d0e44310a252d8b182262c331e1d
101
py
Python
test/test_component_1/__init__.py
denis-itskovich/flask-composer
b847e153255ea839a922b149e37f8814b4ecc00b
[ "Apache-2.0" ]
2
2015-08-17T12:43:08.000Z
2015-09-24T06:22:02.000Z
test/test_component_1/__init__.py
denis-itskovich/flask-composer
b847e153255ea839a922b149e37f8814b4ecc00b
[ "Apache-2.0" ]
null
null
null
test/test_component_1/__init__.py
denis-itskovich/flask-composer
b847e153255ea839a922b149e37f8814b4ecc00b
[ "Apache-2.0" ]
null
null
null
from flask.ext.composer import Component test_component_1 = Component('test_component_1', __name__)
25.25
58
0.831683
14
101
5.428571
0.642857
0.342105
0.578947
0.605263
0
0
0
0
0
0
0
0.021739
0.089109
101
3
59
33.666667
0.804348
0
0
0
0
0
0.158416
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
6
2234f01954130342d9f554ca44c7e4af5005960e
10,929
py
Python
directord/tests/test_client.py
peznauts/directord
881eff5e4aeed40bcc229c58a2c055b193006295
[ "Apache-2.0" ]
null
null
null
directord/tests/test_client.py
peznauts/directord
881eff5e4aeed40bcc229c58a2c055b193006295
[ "Apache-2.0" ]
null
null
null
directord/tests/test_client.py
peznauts/directord
881eff5e4aeed40bcc229c58a2c055b193006295
[ "Apache-2.0" ]
null
null
null
# Copyright Peznauts <kevin@cloudnull.com>. All Rights Reserved. # # 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. import json from unittest.mock import ANY from unittest.mock import patch from directord import client from directord import tests class TestClient(tests.TestDriverBase): def setUp(self): super(TestClient, self).setUp() self.args = tests.FakeArgs() self.client = client.Client(args=self.args) self.client.driver = self.mock_driver @patch("time.time", autospec=True) def test_run_job(self, mock_time): job_def = { "job_sha3_224": "YYY", "skip_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, None, json.dumps(job_def), None, None, None, ) ] mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check", return_value=False): self.client.run_job() @patch("time.time", autospec=True) def test_run_job_idle(self, mock_time): job_def = { "job_sha3_224": "YYY", "skip_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, None, json.dumps(job_def), None, None, None, ) ] mock_time.side_effect = [1, 1, 66, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check", return_value=False): self.client.run_job() @patch("time.time", autospec=True) def test_run_job_ramp(self, mock_time): job_def = { "job_sha3_224": "YYY", "skip_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, None, json.dumps(job_def), None, None, None, ) ] mock_time.side_effect = [1, 1, 1, 34, 1, 1, 1] with patch.object(self.mock_driver, "job_check", return_value=False): self.client.run_job() @patch("shelve.open", autospec=True) @patch("time.time", autospec=True) def test_run_job_cache_check( self, mock_time, mock_diskcache, ): job_def = { "job_sha3_224": "YYY", "skip_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, None, json.dumps(job_def), None, None, None, ) ] mock_time.side_effect = [1, 1, 1, 1, 5000, 1, 1, 1, 1, 1] mock_diskcache.return_value = tests.FakeCache() with patch.object(self.mock_driver, "job_check", return_value=False): self.client.run_job() @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_skip_skip_cache_run( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_sha3_224": "YYY", "skip_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] mock_diskcache.return_value = tests.FakeCache() mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_skip_ignore_cache_run( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_id": "XXX", "job_sha3_224": "YYY", "ignore_cache": True, "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] mock_diskcache.return_value = tests.FakeCache() mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_parent_failed_run( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_id": "XXX", "job_sha3_224": "YYY", "parent_id": "ZZZ", "command": "RUN", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] cache = mock_diskcache.return_value = tests.FakeCache() cache.set(key="ZZZ", value=False) mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_cache_hit_run( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_id": "XXX", "job_sha3_224": "YYY", "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] cache = mock_diskcache.return_value = tests.FakeCache() cache.set(key="YYY", value=self.mock_driver.job_end) mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.client, "cache", cache): with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_run( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_id": "XXX", "job_sha3_224": "YYY", "command": "RUN", "parent_id": "ZZZ", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] cache = mock_diskcache.return_value = tests.FakeCache() cache.set(key="YYY", value=self.mock_driver.job_end) mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.client, "cache", cache): with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() self.assertEqual(cache.get("YYY"), self.mock_driver.job_end) @patch("shelve.open", autospec=True) @patch("logging.Logger.debug", autospec=True) @patch("time.time", autospec=True) def test_run_job_run_outcome_false( self, mock_time, mock_log_info, mock_diskcache, ): job_def = { "job_id": "XXX", "job_sha3_224": "YYY", "command": "RUN", "job_id": "XXX", "job_sha3_224": "YYY", } self.mock_driver.job_recv.side_effect = [ ( None, None, "RUN", json.dumps(job_def), "", None, None, ) ] cache = mock_diskcache.return_value = tests.FakeCache() cache.set(key="YYY", value=self.mock_driver.job_failed) mock_time.side_effect = [1, 1, 1, 1, 1, 1, 1] with patch.object(self.mock_driver, "job_check") as mock_job_check: mock_job_check.side_effect = [True, False] self.client.run_job() mock_log_info.assert_called() self.assertEqual(cache.get("YYY"), self.mock_driver.job_failed) @patch("os.makedirs", autospec=True) @patch("directord.client.Client.run_threads", autospec=True) def test_worker_run(self, mock_run_threads, mock_makedirs): self.client.worker_run() mock_run_threads.assert_called_with(ANY, threads=[ANY], stop_event=ANY) mock_makedirs.assert_called()
31.048295
79
0.509836
1,233
10,929
4.257908
0.116788
0.021714
0.025143
0.024381
0.795619
0.79181
0.784571
0.784571
0.784571
0.777333
0
0.023035
0.372404
10,929
351
80
31.136752
0.742382
0.055083
0
0.767081
0
0
0.103385
0.003394
0
0
0
0
0.031056
1
0.037267
false
0
0.015528
0
0.055901
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
226c25292c8ca14c6cff5b7e3c63433468e01bb7
227
py
Python
p0002/test_p0002.py
th3-z/euler
cccb6b2ccb6bf443ff42b28c7a7bf1d8e3c91af2
[ "MIT" ]
null
null
null
p0002/test_p0002.py
th3-z/euler
cccb6b2ccb6bf443ff42b28c7a7bf1d8e3c91af2
[ "MIT" ]
null
null
null
p0002/test_p0002.py
th3-z/euler
cccb6b2ccb6bf443ff42b28c7a7bf1d8e3c91af2
[ "MIT" ]
null
null
null
from p0002 import fib_even def test_fib_even(): assert sum(fib_even(4000000)) == 4613732 assert sum(fib_even(0)) == 0 assert sum(fib_even(-1)) == 0 assert sum(fib_even(2)) == 2 assert sum(fib_even(3)) == 2
25.222222
44
0.643172
39
227
3.538462
0.384615
0.355072
0.434783
0.57971
0.246377
0
0
0
0
0
0
0.144444
0.207048
227
8
45
28.375
0.622222
0
0
0
0
0
0
0
0
0
0
0
0.714286
1
0.142857
true
0
0.142857
0
0.285714
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
6
227a4fecc596058e74492c76aa1863757883fec5
18,686
py
Python
nailgun/nailgun/test/unit/test_network_check.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
nailgun/nailgun/test/unit/test_network_check.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/test/unit/test_network_check.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from nailgun.db.sqlalchemy.models import Cluster from nailgun.db.sqlalchemy.models import NetworkGroup from nailgun.db.sqlalchemy.models import node from nailgun.errors import errors from nailgun.network.checker import NetworkCheck from nailgun.task import helpers from nailgun.test.base import BaseIntegrationTest from mock import MagicMock from mock import patch class FakeTask(object): def __init__(self, cluster): self.cluster = cluster class TestNetworkCheck(BaseIntegrationTest): def setUp(self): super(TestNetworkCheck, self).setUp() self.env.create( cluster_kwargs={}, nodes_kwargs=[ {"api": True, "pending_addition": True}, ] ) self.task = FakeTask(self.env.clusters[0]) @patch.object(helpers, 'db') def test_check_untagged_intersection_failed(self, mocked_db): cluster = self.env.create( nodes_kwargs=[ {'roles': ['controller'], 'pending_addition': True} ] ) cluster_db = self.db.query(Cluster).get(cluster['id']) checker = NetworkCheck(FakeTask(cluster_db), {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fake1', 'vlan_start': None, 'meta': {'notation': 'cidr'}}, {'id': 2, 'cidr': '192.168.0.0/26', 'name': 'fake2', 'vlan_start': None, 'meta': {'notation': 'cidr'}}] ng1 = NetworkGroup() ng1.name = 'fake1' ng1.id = 1 ng2 = NetworkGroup() ng2.name = 'fake2' ng2.id = 2 checker.cluster.nodes[0].interfaces[0].assigned_networks_list = \ [ng1, ng2] checker.cluster.nodes[0].interfaces[1].assigned_networks_list = \ [ng1, ng2] self.assertRaises(errors.NetworkCheckError, checker.check_untagged_intersection) def test_check_untagged_intersection(self): cluster = self.env.create( nodes_kwargs=[ {'roles': ['controller'], 'pending_addition': True} ] ) cluster_db = self.db.query(Cluster).get(cluster['id']) checker = NetworkCheck(FakeTask(cluster_db), {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fake1', 'vlan_start': None, 'meta': {'notation': 'cidr'}}] ng1 = NetworkGroup() ng1.name = 'fake3' ng1.id = 3 ng2 = NetworkGroup() ng2.name = 'fake4' ng2.id = 4 checker.cluster.nodes[0].interfaces[0].assigned_networks_list = \ [ng1, ng2] self.assertNotRaises(errors.NetworkCheckError, checker.check_untagged_intersection) @patch.object(helpers, 'db') def test_check_network_address_spaces_intersection(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fake1', 'meta': {'notation': 'cidr'}}, {'id': 2, 'cidr': '192.168.0.0/26', 'name': 'fake2', 'meta': {'notation': 'cidr'}}] self.assertRaises(errors.NetworkCheckError, checker.check_network_address_spaces_intersection) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fake1', 'meta': {'notation': 'cidr'}}, {'id': 2, 'cidr': '192.168.1.0/26', 'name': 'fake2', 'meta': {'notation': 'cidr'}}] checker.network_config['fixed_networks_cidr'] = '10.20.0.0/24' self.assertNotRaises(errors.NetworkCheckError, checker.check_network_address_spaces_intersection) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fake1', 'meta': {'notation': 'cidr'}}, {'id': 2, 'cidr': '10.20.0.0/26', 'name': 'fake2', 'meta': {'notation': 'cidr'}}] checker.network_config['fixed_networks_cidr'] = '10.20.0.0/24' self.assertRaises(errors.NetworkCheckError, checker.check_network_address_spaces_intersection) @patch.object(helpers, 'db') def test_check_public_floating_ranges_intersection(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'public', 'gateway': '192.168.0.1', 'ip_ranges': ['192.168.0.1', '192.168.0.100'], 'meta': {'notation': 'cidr'}}] checker.network_config['floating_ranges'] = ['192.168.0.100', '192.168.0.199'] self.assertRaises(errors.NetworkCheckError, checker.check_public_floating_ranges_intersection) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'public', 'gateway': '192.168.0.1', 'ip_ranges': [('192.168.0.1', '192.168.0.254')], 'meta': {'notation': 'cidr'}}] checker.network_config['floating_ranges'] = ['192.168.2.0/24'] self.assertRaises(errors.NetworkCheckError, checker.check_public_floating_ranges_intersection) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'public', 'gateway': '192.168.0.1', 'ip_ranges': [('192.168.0.2', '192.168.0.254')], 'meta': {'notation': 'cidr'}}] checker.network_config['floating_ranges'] = ['192.168.2.0/24'] self.assertNotRaises(errors.NetworkCheckError, checker.check_public_floating_ranges_intersection) @patch.object(helpers, 'db') def test_check_vlan_ids_range_and_intersection_failed(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fixed', 'gateway': '192.168.0.1', 'vlan_start': 1}] checker.network_config['fixed_networks_vlan_start'] = 1 checker.network_config['fixed_networks_amount'] = 10 self.assertRaises(errors.NetworkCheckError, checker.check_vlan_ids_range_and_intersection) @patch.object(helpers, 'db') def test_check_vlan_ids_range_and_intersection(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'name': 'fixed', 'gateway': '192.168.0.1', 'vlan_start': 200}] checker.network_config['fixed_networks_vlan_start'] = 2 checker.network_config['fixed_networks_amount'] = 10 self.assertNotRaises(errors.NetworkCheckError, checker.check_vlan_ids_range_and_intersection) @patch.object(helpers, 'db') def test_check_networks_amount(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.network_config['net_manager'] = 'FlatDHCPManager' checker.network_config['fixed_networks_amount'] = 2 self.assertNotRaises(errors.NetworkCheckError, checker.check_networks_amount) checker = NetworkCheck(self.task, {}) checker.network_config['net_manager'] = 'FlatDHCPManager' checker.network_config['fixed_networks_amount'] = 1 self.assertNotRaises(errors.NetworkCheckError, checker.check_networks_amount) checker = NetworkCheck(self.task, {}) checker.network_config['fixed_network_size'] = 100 checker.network_config['fixed_networks_amount'] = 3 checker.network_config['fixed_networks_cidr'] = '192.168.10.1/24' self.assertNotRaises(errors.NetworkCheckError, checker.check_networks_amount) checker = NetworkCheck(self.task, {}) checker.network_config['fixed_network_size'] = 10 checker.network_config['fixed_networks_amount'] = 1 checker.network_config['fixed_networks_cidr'] = '192.168.10.1/24' self.assertNotRaises(errors.NetworkCheckError, checker.check_networks_amount) @patch.object(helpers, 'db') def test_neutron_check_l3_addresses_not_match_subnet_and_broadcast( self, mocked_db): checker = NetworkCheck(self.task, {}) checker.network_config['floating_ranges'] = [('192.168.0.1', '192.168.0.255')] checker.network_config['internal_cidr'] = '192.168.0.0/24' checker.network_config['internal_gateway'] = '192.168.0.0' checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'gateway': '192.168.0.1', 'name': 'public'}] self.assertRaises( errors.NetworkCheckError, checker.neutron_check_l3_addresses_not_match_subnet_and_broadcast) self.assertEqual(len(checker.err_msgs), 2) def test_check_network_classes_exclude_loopback(self): checker = NetworkCheck(self.task, {}) checker.networks = [{'cidr': '192.168.0.0/24'}] self.assertNotRaises(errors.NetworkCheckError, checker.check_network_classes_exclude_loopback) @patch.object(helpers, 'db') def test_check_network_classes_exclude_loopback_fail(self, mocked_db): checker = NetworkCheck(self.task, {}) networks = ['224.0.0.0/3', '127.0.0.0/8'] for network in networks: checker.networks = [{'id': 1, 'cidr': network, 'name': 'fake'}] self.assertRaises(errors.NetworkCheckError, checker.check_network_classes_exclude_loopback) self.assertEqual(mocked_db.call_count, 4) @patch.object(helpers, 'db') def test_check_network_addresses_not_match_subnet_and_broadcast(self, mocked_db): checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'gateway': '192.168.0.1', 'name': 'fake1', 'meta': {'notation': 'ip_ranges'}}] self.assertNotRaises( errors.NetworkCheckError, checker.check_network_addresses_not_match_subnet_and_broadcast) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'gateway': '192.168.0.0', 'name': 'fake1', 'meta': {'notation': 'ip_ranges'}}] self.assertRaises( errors.NetworkCheckError, checker.check_network_addresses_not_match_subnet_and_broadcast) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'ip_ranges': ['192.168.0.1', '192.168.0.100'], 'gateway': '192.168.0.0', 'name': 'fake1', 'meta': {'notation': 'ip_ranges'}}] self.assertRaises( errors.NetworkCheckError, checker.check_network_addresses_not_match_subnet_and_broadcast) checker = NetworkCheck(self.task, {}) checker.networks = [{'id': 1, 'cidr': '192.168.0.0/24', 'ip_ranges': ['192.168.1.1', '192.168.1.100'], 'gateway': '192.168.0.1', 'name': 'fake1', 'meta': {'notation': 'ip_ranges'}}] self.assertNotRaises( errors.NetworkCheckError, checker.check_network_addresses_not_match_subnet_and_broadcast) def test_check_bond_slaves_speeds(self): cluster = self.env.create( nodes_kwargs=[ {'roles': ['controller'], 'pending_addition': True} ] ) cluster_db = self.db.query(Cluster).get(cluster['id']) checker = NetworkCheck(FakeTask(cluster_db), {}) checker.check_bond_slaves_speeds() self.assertEqual(checker.err_msgs, []) bond_if1 = node.NodeBondInterface() bond_if2 = node.NodeBondInterface() nic1 = node.NodeNICInterface() nic2 = node.NodeNICInterface() nic3 = node.NodeNICInterface() nic1.current_speed = 100 nic2.current_speed = 10 nic3.current_speed = None bond_if1.slaves = [nic1, nic2, nic3] bond_if2.slaves = [nic3] checker.cluster.nodes[0].bond_interfaces = [bond_if1, bond_if2] checker.check_bond_slaves_speeds() self.assertEqual(len(checker.err_msgs), 2) def test_check_configuration_neutron(self): checker = NetworkCheck(self.task, {}) checker.net_provider = 'neutron' checker.neutron_check_network_address_spaces_intersection = MagicMock() checker.neutron_check_segmentation_ids = MagicMock() checker.neutron_check_l3_addresses_not_match_subnet_and_broadcast = \ MagicMock() checker.check_public_floating_ranges_intersection = MagicMock() checker.check_network_address_spaces_intersection = MagicMock() checker.check_networks_amount = MagicMock() checker.check_vlan_ids_range_and_intersection = MagicMock() checker.check_network_classes_exclude_loopback = MagicMock() checker.check_network_addresses_not_match_subnet_and_broadcast = \ MagicMock() checker.check_configuration() not_called = [ 'check_public_floating_ranges_intersection', 'check_network_address_spaces_intersection', 'check_networks_amount', 'check_vlan_ids_range_and_intersection' ] for method in not_called: mocked = getattr(checker, method) self.assertFalse(mocked.called) called = [ 'neutron_check_network_address_spaces_intersection', 'neutron_check_segmentation_ids', 'neutron_check_l3_addresses_not_match_subnet_and_broadcast', 'check_network_classes_exclude_loopback', 'check_network_addresses_not_match_subnet_and_broadcast' ] for method in called: mocked = getattr(checker, method) mocked.assert_any_call() def test_check_configuration_nova_network(self): checker = NetworkCheck(self.task, {}) checker.net_provider = 'nova-network' checker.neutron_check_network_address_spaces_intersection = MagicMock() checker.neutron_check_segmentation_ids = MagicMock() checker.neutron_check_l3_addresses_not_match_subnet_and_broadcast = \ MagicMock() checker.check_public_floating_ranges_intersection = MagicMock() checker.check_network_address_spaces_intersection = MagicMock() checker.check_networks_amount = MagicMock() checker.check_vlan_ids_range_and_intersection = MagicMock() checker.check_network_classes_exclude_loopback = MagicMock() checker.check_network_addresses_not_match_subnet_and_broadcast = \ MagicMock() checker.check_configuration() not_called = [ 'neutron_check_network_address_spaces_intersection', 'neutron_check_segmentation_ids', 'neutron_check_l3_addresses_not_match_subnet_and_broadcast' ] for method in not_called: mocked = getattr(checker, method) self.assertFalse(mocked.called) called = [ 'check_public_floating_ranges_intersection', 'check_network_address_spaces_intersection', 'check_networks_amount', 'check_vlan_ids_range_and_intersection', 'check_network_classes_exclude_loopback', 'check_network_addresses_not_match_subnet_and_broadcast' ] for method in called: mocked = getattr(checker, method) mocked.assert_any_call() @patch.object(NetworkCheck, 'check_untagged_intersection') @patch.object(NetworkCheck, 'check_bond_slaves_speeds') def test_check_interface_mapping(self, mock_untagged, mock_bond): checker = NetworkCheck(self.task, {}) checker.check_interface_mapping() mock_untagged.assert_called_with() mock_bond.assert_called_with()
42.956322
79
0.559617
1,836
18,686
5.429194
0.1122
0.029494
0.029494
0.017657
0.826946
0.795546
0.752307
0.723716
0.663925
0.663925
0
0.049406
0.328428
18,686
434
80
43.0553
0.74492
0.030986
0
0.706044
0
0
0.156219
0.053234
0
0
0
0
0.085165
1
0.046703
false
0
0.024725
0
0.076923
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
97d962958fbc53041ec07fe757ae15567f1a6bc3
27
py
Python
delatore/outputs/telegram/__init__.py
opentelekomcloud-infra/delatore
6d16400cdfeab175ba6a7d7844d1d623d975fceb
[ "Apache-2.0" ]
1
2020-08-19T16:21:04.000Z
2020-08-19T16:21:04.000Z
delatore/outputs/telegram/__init__.py
opentelekomcloud-infra/delatore
6d16400cdfeab175ba6a7d7844d1d623d975fceb
[ "Apache-2.0" ]
86
2019-12-02T21:24:20.000Z
2021-03-04T13:29:35.000Z
delatore/outputs/telegram/__init__.py
opentelekomcloud-infra/delatore
6d16400cdfeab175ba6a7d7844d1d623d975fceb
[ "Apache-2.0" ]
1
2020-03-19T09:25:07.000Z
2020-03-19T09:25:07.000Z
from .bot import BotRunner
13.5
26
0.814815
4
27
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.956522
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
97e80a5b365b04bb552d9fd8bb3d6a46e9763dc3
2,157
py
Python
NA_Project/NA_WebApp/migrations/0010_profile_allergies_profile_foodpreferences_profile_restrictedingredients_profile_restrictedlabels.py
BounSweFerhatSal/swe573
bd7e18f41a54c842db73176cf13c8e227b539be0
[ "MIT" ]
1
2020-06-23T12:14:50.000Z
2020-06-23T12:14:50.000Z
NA_Project/NA_WebApp/migrations/0010_profile_allergies_profile_foodpreferences_profile_restrictedingredients_profile_restrictedlabels.py
BounSweFerhatSal/NutrAssistant
bd7e18f41a54c842db73176cf13c8e227b539be0
[ "MIT" ]
36
2020-05-03T15:45:59.000Z
2021-09-22T19:06:53.000Z
NA_Project/NA_WebApp/migrations/0010_profile_allergies_profile_foodpreferences_profile_restrictedingredients_profile_restrictedlabels.py
BounSweFerhatSal/swe573
bd7e18f41a54c842db73176cf13c8e227b539be0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-06-17 00:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('NA_WebApp', '0009_profile_diseases'), ] operations = [ migrations.CreateModel( name='Profile_RestrictedLabels', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='NA_WebApp.Labels')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NA_WebApp.Profile')), ], ), migrations.CreateModel( name='Profile_RestrictedIngredients', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Ingredient', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='NA_WebApp.Ingredient')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NA_WebApp.Profile')), ], ), migrations.CreateModel( name='Profile_FoodPreferences', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='NA_WebApp.Labels')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NA_WebApp.Profile')), ], ), migrations.CreateModel( name='Profile_Allergies', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('allergy', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='NA_WebApp.Allergies')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NA_WebApp.Profile')), ], ), ]
45.893617
122
0.619379
226
2,157
5.756637
0.234513
0.061491
0.096849
0.152191
0.764028
0.764028
0.764028
0.764028
0.764028
0.764028
0
0.011607
0.241076
2,157
46
123
46.891304
0.78314
0.020862
0
0.65
1
0
0.15782
0.045972
0
0
0
0
0
1
0
false
0
0.05
0
0.125
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
97f7146ab1cd082f33b55d1aec123dcafbe95fe5
2,215
py
Python
scripts/slave/recipe_modules/chromium_tests/chromium_swarm.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/chromium_tests/chromium_swarm.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/chromium_tests/chromium_swarm.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
1
2020-07-22T09:16:32.000Z
2020-07-22T09:16:32.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from . import steps SPEC = { 'builders': { 'Android N5 Swarm': { 'chromium_config': 'android', 'gclient_config': 'chromium', 'gclient_apply_config': ['android'], 'chromium_config_kwargs': { 'BUILD_CONFIG': 'Release', 'TARGET_BITS': 32, 'TARGET_PLATFORM': 'android', 'TARGET_ARCH': 'arm', }, 'android_config': 'main_builder_mb', 'testing': { 'platform': 'linux', }, 'bot_type': 'builder_tester', 'enable_swarming': True, }, 'Android N5X Swarm': { 'chromium_config': 'android', 'gclient_config': 'chromium', 'gclient_apply_config': ['android'], 'chromium_config_kwargs': { 'BUILD_CONFIG': 'Release', 'TARGET_BITS': 64, 'TARGET_PLATFORM': 'android', 'TARGET_ARCH': 'arm', }, 'android_config': 'main_builder_mb', 'testing': { 'platform': 'linux', }, 'bot_type': 'builder_tester', 'enable_swarming': True, }, 'Linux Swarm': { 'chromium_config': 'chromium', 'chromium_apply_config': ['mb'], 'gclient_config': 'chromium', 'chromium_config_kwargs': { 'BUILD_CONFIG': 'Release', }, 'testing': { 'platform': 'linux', }, 'bot_type': 'builder_tester', 'enable_swarming': True, }, 'Mac Swarm': { 'chromium_config': 'chromium', 'chromium_apply_config': ['mb'], 'gclient_config': 'chromium', 'chromium_config_kwargs': { 'BUILD_CONFIG': 'Release', }, 'testing': { 'platform': 'mac', }, 'bot_type': 'builder_tester', 'enable_swarming': True, }, 'Windows Swarm': { 'chromium_config': 'chromium', 'chromium_apply_config': ['mb'], 'gclient_config': 'chromium', 'chromium_config_kwargs': { 'BUILD_CONFIG': 'Release', }, 'testing': { 'platform': 'win', }, 'bot_type': 'builder_tester', 'enable_swarming': True, }, }, }
26.369048
72
0.550339
203
2,215
5.699507
0.305419
0.121003
0.114088
0.108038
0.830596
0.830596
0.830596
0.764909
0.764909
0.764909
0
0.006329
0.286682
2,215
83
73
26.686747
0.725949
0.069977
0
0.628205
0
0
0.514591
0.084144
0
0
0
0
0
1
0
false
0
0.012821
0
0.012821
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
3f1790c5cc3fa20226bc756b50c194c8ee6efe5b
260,827
py
Python
instances/passenger_demand/pas-20210422-1717-int14000000000000001e/16.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-int14000000000000001e/16.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-int14000000000000001e/16.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 26795 passenger_arriving = ( (4, 8, 6, 6, 2, 1, 1, 5, 5, 0, 0, 2, 0, 12, 5, 4, 3, 5, 7, 4, 0, 3, 4, 0, 1, 0), # 0 (12, 11, 10, 11, 6, 5, 4, 4, 3, 1, 0, 0, 0, 8, 5, 6, 5, 4, 4, 1, 2, 2, 1, 1, 0, 0), # 1 (5, 10, 9, 10, 2, 3, 5, 2, 3, 2, 1, 0, 0, 14, 11, 5, 1, 8, 3, 4, 1, 4, 4, 1, 2, 0), # 2 (6, 9, 9, 9, 7, 2, 4, 3, 6, 0, 1, 2, 0, 9, 6, 7, 4, 10, 2, 4, 3, 5, 0, 2, 3, 0), # 3 (8, 10, 8, 11, 8, 3, 2, 5, 4, 1, 4, 2, 0, 8, 8, 4, 4, 10, 0, 4, 5, 3, 2, 5, 0, 0), # 4 (8, 7, 6, 2, 7, 4, 3, 4, 3, 0, 0, 3, 0, 9, 13, 5, 7, 4, 1, 5, 3, 3, 1, 2, 1, 0), # 5 (4, 14, 9, 9, 6, 1, 6, 6, 7, 2, 4, 0, 0, 5, 9, 3, 4, 10, 7, 4, 5, 4, 2, 4, 0, 0), # 6 (9, 12, 8, 6, 7, 5, 4, 7, 5, 2, 0, 1, 0, 9, 8, 5, 7, 2, 7, 3, 1, 1, 0, 0, 3, 0), # 7 (10, 6, 7, 11, 9, 3, 4, 3, 2, 3, 0, 0, 0, 8, 9, 7, 8, 9, 6, 3, 3, 3, 2, 2, 0, 0), # 8 (12, 13, 13, 3, 7, 4, 3, 7, 5, 2, 1, 1, 0, 16, 9, 9, 4, 9, 8, 4, 3, 1, 4, 1, 2, 0), # 9 (10, 10, 16, 13, 9, 3, 2, 7, 2, 2, 2, 0, 0, 11, 14, 7, 6, 8, 6, 3, 1, 4, 2, 3, 1, 0), # 10 (9, 11, 8, 7, 8, 2, 5, 3, 4, 1, 2, 0, 0, 15, 8, 8, 13, 7, 5, 3, 4, 6, 5, 2, 2, 0), # 11 (15, 11, 6, 9, 11, 7, 1, 4, 6, 2, 4, 2, 0, 11, 8, 5, 8, 14, 6, 5, 4, 3, 4, 2, 2, 0), # 12 (11, 9, 11, 7, 12, 7, 7, 4, 6, 1, 0, 0, 0, 11, 10, 13, 9, 14, 7, 8, 2, 3, 5, 1, 2, 0), # 13 (9, 11, 8, 13, 7, 7, 4, 9, 5, 2, 4, 1, 0, 14, 8, 7, 5, 12, 6, 7, 3, 2, 2, 1, 1, 0), # 14 (11, 14, 8, 12, 12, 6, 6, 2, 5, 4, 0, 0, 0, 13, 10, 3, 7, 11, 9, 9, 2, 7, 3, 5, 0, 0), # 15 (10, 21, 14, 4, 10, 9, 5, 4, 5, 2, 2, 2, 0, 9, 11, 11, 9, 5, 6, 4, 6, 2, 4, 2, 0, 0), # 16 (13, 16, 7, 12, 11, 4, 6, 4, 5, 1, 0, 2, 0, 22, 11, 10, 11, 18, 8, 7, 2, 6, 5, 2, 1, 0), # 17 (9, 21, 12, 8, 8, 4, 11, 8, 7, 3, 2, 1, 0, 13, 18, 9, 8, 8, 9, 8, 3, 5, 5, 4, 2, 0), # 18 (14, 10, 10, 13, 6, 3, 5, 6, 6, 1, 2, 3, 0, 12, 7, 16, 8, 18, 10, 3, 3, 4, 7, 1, 1, 0), # 19 (15, 11, 15, 11, 10, 4, 4, 5, 4, 3, 2, 1, 0, 10, 16, 17, 9, 8, 4, 5, 7, 8, 2, 4, 1, 0), # 20 (16, 13, 14, 11, 11, 4, 12, 6, 7, 3, 1, 3, 0, 23, 10, 16, 8, 11, 8, 3, 2, 9, 4, 5, 1, 0), # 21 (15, 15, 9, 13, 13, 4, 6, 9, 9, 3, 1, 0, 0, 20, 12, 5, 10, 16, 7, 4, 4, 5, 2, 4, 1, 0), # 22 (16, 7, 14, 15, 14, 8, 4, 4, 8, 1, 3, 1, 0, 21, 13, 7, 9, 19, 8, 2, 4, 6, 4, 3, 1, 0), # 23 (18, 13, 7, 18, 16, 6, 5, 5, 4, 4, 5, 1, 0, 19, 10, 11, 8, 14, 9, 7, 5, 8, 5, 2, 2, 0), # 24 (17, 22, 13, 20, 13, 5, 9, 5, 6, 0, 2, 0, 0, 12, 5, 9, 3, 19, 10, 6, 4, 3, 3, 1, 0, 0), # 25 (13, 16, 21, 22, 6, 3, 4, 5, 6, 4, 1, 2, 0, 15, 10, 9, 5, 6, 5, 4, 5, 6, 1, 3, 1, 0), # 26 (10, 22, 7, 13, 12, 3, 5, 3, 7, 3, 2, 0, 0, 16, 9, 14, 5, 14, 6, 3, 7, 6, 4, 2, 1, 0), # 27 (8, 20, 6, 10, 15, 2, 4, 7, 3, 1, 1, 2, 0, 16, 15, 10, 8, 12, 8, 7, 4, 4, 4, 4, 1, 0), # 28 (12, 9, 10, 13, 16, 5, 5, 9, 3, 1, 2, 1, 0, 12, 12, 7, 6, 10, 8, 9, 6, 3, 2, 4, 1, 0), # 29 (13, 13, 8, 12, 6, 8, 3, 4, 6, 1, 0, 4, 0, 14, 24, 8, 9, 11, 6, 10, 8, 5, 4, 1, 1, 0), # 30 (11, 16, 13, 12, 13, 6, 7, 3, 4, 2, 3, 3, 0, 7, 15, 6, 8, 12, 7, 7, 2, 12, 7, 3, 1, 0), # 31 (14, 9, 25, 10, 14, 4, 2, 4, 7, 4, 2, 1, 0, 10, 10, 13, 13, 9, 5, 9, 1, 4, 5, 1, 2, 0), # 32 (11, 18, 7, 18, 11, 6, 4, 9, 5, 3, 1, 2, 0, 18, 13, 7, 9, 11, 6, 2, 4, 7, 4, 5, 0, 0), # 33 (12, 17, 7, 17, 11, 6, 2, 9, 5, 3, 3, 1, 0, 10, 7, 16, 9, 20, 8, 9, 2, 9, 2, 2, 2, 0), # 34 (18, 18, 15, 13, 14, 3, 3, 7, 6, 5, 1, 0, 0, 10, 9, 8, 9, 11, 8, 7, 3, 8, 1, 2, 2, 0), # 35 (14, 13, 18, 12, 6, 5, 4, 5, 8, 2, 2, 1, 0, 15, 17, 7, 5, 11, 7, 6, 1, 6, 6, 2, 0, 0), # 36 (14, 10, 17, 17, 11, 4, 8, 5, 3, 1, 4, 1, 0, 10, 16, 6, 4, 12, 3, 9, 2, 2, 7, 5, 0, 0), # 37 (15, 12, 18, 15, 5, 7, 3, 7, 9, 3, 1, 6, 0, 15, 9, 9, 9, 10, 8, 7, 4, 4, 5, 2, 1, 0), # 38 (13, 19, 15, 12, 9, 5, 5, 6, 7, 3, 2, 1, 0, 17, 18, 9, 6, 14, 7, 5, 4, 4, 7, 3, 4, 0), # 39 (11, 10, 10, 3, 13, 7, 12, 4, 5, 4, 3, 2, 0, 19, 17, 10, 5, 19, 5, 8, 3, 5, 7, 5, 1, 0), # 40 (14, 14, 10, 11, 12, 8, 7, 10, 5, 1, 2, 2, 0, 13, 7, 9, 5, 11, 7, 4, 1, 2, 4, 5, 2, 0), # 41 (22, 9, 11, 14, 17, 8, 5, 7, 5, 2, 1, 1, 0, 14, 9, 9, 4, 9, 3, 3, 5, 9, 5, 2, 2, 0), # 42 (20, 14, 13, 12, 17, 6, 7, 3, 5, 1, 5, 1, 0, 19, 8, 9, 7, 14, 4, 13, 5, 4, 5, 2, 0, 0), # 43 (11, 14, 7, 5, 5, 1, 3, 6, 4, 2, 2, 0, 0, 17, 15, 5, 8, 14, 11, 4, 2, 5, 1, 2, 2, 0), # 44 (19, 9, 10, 12, 6, 10, 2, 4, 8, 3, 1, 1, 0, 13, 14, 9, 4, 14, 7, 3, 2, 10, 2, 0, 1, 0), # 45 (18, 18, 14, 9, 9, 8, 7, 3, 5, 2, 2, 0, 0, 8, 13, 8, 8, 12, 1, 2, 1, 1, 1, 2, 0, 0), # 46 (17, 12, 13, 18, 12, 3, 4, 8, 4, 1, 1, 1, 0, 26, 10, 13, 9, 18, 6, 2, 5, 8, 5, 6, 1, 0), # 47 (14, 16, 16, 19, 5, 3, 7, 6, 2, 2, 2, 1, 0, 15, 9, 9, 10, 10, 9, 5, 5, 4, 6, 3, 1, 0), # 48 (11, 12, 6, 14, 11, 3, 6, 2, 4, 3, 3, 0, 0, 10, 14, 7, 10, 10, 7, 9, 4, 6, 4, 1, 1, 0), # 49 (12, 15, 11, 11, 6, 6, 2, 6, 5, 2, 3, 0, 0, 20, 17, 5, 10, 10, 4, 7, 4, 5, 5, 1, 1, 0), # 50 (14, 3, 10, 11, 11, 4, 7, 3, 7, 1, 1, 1, 0, 14, 12, 11, 4, 14, 4, 3, 2, 4, 5, 0, 1, 0), # 51 (8, 8, 12, 12, 5, 4, 6, 4, 8, 7, 1, 2, 0, 14, 17, 11, 8, 8, 6, 5, 2, 2, 7, 0, 2, 0), # 52 (13, 12, 10, 16, 9, 7, 7, 2, 10, 1, 4, 1, 0, 11, 11, 11, 8, 10, 6, 7, 5, 7, 0, 5, 1, 0), # 53 (17, 15, 11, 14, 11, 7, 5, 0, 5, 1, 0, 1, 0, 15, 6, 15, 7, 6, 9, 5, 2, 6, 5, 4, 1, 0), # 54 (14, 15, 14, 8, 11, 6, 6, 4, 5, 1, 4, 0, 0, 12, 11, 12, 7, 10, 4, 9, 3, 6, 6, 1, 2, 0), # 55 (15, 10, 9, 11, 7, 2, 6, 4, 11, 2, 1, 1, 0, 22, 13, 13, 11, 8, 7, 5, 4, 5, 6, 2, 2, 0), # 56 (12, 14, 5, 12, 9, 6, 7, 4, 6, 2, 3, 1, 0, 6, 11, 7, 8, 13, 11, 7, 7, 8, 1, 3, 3, 0), # 57 (26, 5, 8, 16, 7, 5, 4, 4, 5, 3, 4, 1, 0, 10, 20, 10, 7, 7, 6, 5, 6, 5, 2, 4, 0, 0), # 58 (7, 16, 9, 16, 9, 3, 6, 2, 7, 2, 3, 2, 0, 12, 16, 13, 7, 13, 4, 4, 3, 9, 3, 4, 1, 0), # 59 (19, 14, 9, 13, 9, 3, 5, 2, 4, 2, 0, 0, 0, 8, 12, 11, 6, 11, 2, 4, 5, 6, 4, 3, 2, 0), # 60 (14, 13, 8, 12, 6, 4, 4, 7, 3, 1, 0, 3, 0, 15, 13, 8, 9, 13, 5, 3, 3, 8, 2, 5, 0, 0), # 61 (13, 17, 19, 13, 8, 2, 5, 2, 8, 5, 2, 2, 0, 14, 12, 13, 11, 12, 3, 4, 6, 6, 5, 5, 0, 0), # 62 (21, 11, 14, 13, 12, 4, 6, 7, 10, 3, 5, 1, 0, 8, 10, 8, 3, 13, 2, 0, 4, 10, 4, 1, 0, 0), # 63 (16, 11, 14, 15, 5, 5, 9, 4, 3, 6, 0, 2, 0, 12, 9, 13, 8, 10, 10, 5, 2, 7, 4, 0, 4, 0), # 64 (19, 8, 9, 13, 7, 2, 6, 5, 8, 3, 5, 2, 0, 14, 15, 10, 9, 11, 5, 8, 4, 5, 4, 0, 1, 0), # 65 (12, 18, 10, 10, 13, 5, 2, 4, 4, 3, 4, 0, 0, 9, 11, 13, 5, 14, 12, 4, 5, 8, 2, 0, 0, 0), # 66 (13, 15, 12, 11, 9, 11, 9, 1, 7, 4, 1, 2, 0, 14, 11, 9, 9, 17, 6, 3, 4, 5, 2, 0, 0, 0), # 67 (11, 11, 12, 5, 7, 3, 4, 3, 11, 4, 4, 1, 0, 15, 13, 14, 4, 16, 6, 8, 3, 7, 4, 9, 1, 0), # 68 (21, 12, 16, 8, 10, 11, 4, 2, 9, 2, 5, 0, 0, 17, 9, 10, 7, 16, 4, 6, 6, 2, 4, 3, 0, 0), # 69 (14, 12, 10, 15, 8, 5, 5, 3, 10, 1, 1, 0, 0, 11, 14, 6, 7, 13, 6, 5, 4, 3, 4, 1, 0, 0), # 70 (13, 8, 8, 10, 10, 3, 5, 5, 4, 2, 4, 2, 0, 16, 6, 6, 8, 8, 2, 6, 1, 4, 3, 2, 2, 0), # 71 (8, 16, 8, 9, 10, 7, 5, 5, 0, 4, 3, 3, 0, 9, 15, 9, 16, 18, 7, 3, 5, 3, 3, 1, 3, 0), # 72 (14, 10, 6, 9, 10, 5, 7, 1, 7, 3, 3, 2, 0, 11, 13, 14, 12, 6, 9, 5, 3, 8, 8, 2, 1, 0), # 73 (16, 11, 17, 13, 11, 4, 4, 4, 3, 1, 2, 0, 0, 16, 17, 11, 7, 14, 5, 5, 2, 4, 8, 2, 0, 0), # 74 (15, 20, 14, 5, 12, 3, 3, 3, 4, 2, 1, 0, 0, 18, 12, 7, 11, 9, 5, 4, 5, 5, 2, 1, 1, 0), # 75 (18, 11, 12, 15, 13, 4, 8, 4, 2, 4, 5, 2, 0, 10, 18, 8, 7, 9, 10, 4, 3, 5, 5, 2, 3, 0), # 76 (17, 15, 10, 15, 7, 11, 11, 5, 3, 1, 1, 2, 0, 8, 11, 10, 11, 8, 3, 1, 4, 8, 4, 2, 1, 0), # 77 (13, 11, 10, 13, 13, 7, 7, 8, 7, 1, 2, 0, 0, 13, 12, 14, 7, 15, 6, 5, 5, 1, 5, 2, 2, 0), # 78 (18, 17, 16, 13, 7, 8, 3, 3, 5, 2, 3, 2, 0, 12, 11, 11, 3, 13, 0, 7, 5, 7, 6, 3, 1, 0), # 79 (19, 16, 15, 16, 9, 7, 4, 6, 4, 4, 5, 1, 0, 15, 14, 7, 8, 14, 9, 5, 4, 4, 3, 4, 1, 0), # 80 (18, 15, 9, 13, 6, 2, 4, 3, 7, 1, 2, 3, 0, 8, 10, 10, 12, 3, 6, 6, 2, 3, 4, 5, 1, 0), # 81 (11, 10, 14, 8, 9, 5, 7, 3, 5, 4, 2, 1, 0, 21, 10, 8, 8, 9, 8, 8, 4, 5, 4, 1, 3, 0), # 82 (14, 10, 17, 13, 13, 9, 5, 7, 9, 2, 1, 2, 0, 12, 12, 13, 8, 13, 4, 5, 3, 4, 2, 1, 1, 0), # 83 (15, 21, 11, 18, 8, 7, 2, 4, 1, 1, 0, 1, 0, 18, 11, 7, 8, 9, 6, 6, 0, 4, 4, 3, 1, 0), # 84 (11, 8, 17, 15, 12, 6, 6, 1, 9, 2, 1, 3, 0, 17, 13, 12, 5, 10, 6, 4, 2, 3, 2, 2, 1, 0), # 85 (14, 13, 15, 11, 5, 5, 3, 8, 7, 1, 0, 5, 0, 7, 20, 6, 7, 15, 6, 2, 4, 5, 3, 4, 1, 0), # 86 (17, 19, 8, 10, 8, 3, 1, 4, 1, 3, 0, 1, 0, 11, 17, 15, 6, 17, 5, 4, 4, 9, 4, 6, 1, 0), # 87 (13, 15, 9, 13, 13, 1, 5, 8, 4, 4, 2, 0, 0, 10, 13, 11, 5, 9, 3, 1, 2, 5, 7, 3, 1, 0), # 88 (20, 16, 14, 22, 11, 3, 6, 5, 4, 0, 1, 1, 0, 18, 11, 11, 8, 16, 5, 2, 10, 4, 2, 1, 0, 0), # 89 (19, 11, 8, 6, 9, 3, 6, 2, 6, 2, 0, 0, 0, 14, 15, 12, 8, 10, 6, 6, 5, 9, 7, 3, 1, 0), # 90 (10, 13, 15, 8, 7, 7, 3, 2, 6, 2, 1, 2, 0, 15, 10, 9, 5, 15, 1, 5, 2, 2, 1, 1, 2, 0), # 91 (10, 13, 11, 9, 13, 5, 5, 5, 8, 1, 1, 1, 0, 19, 10, 8, 6, 5, 9, 5, 2, 4, 4, 0, 0, 0), # 92 (10, 11, 11, 13, 4, 3, 1, 4, 4, 5, 4, 1, 0, 8, 12, 9, 8, 18, 7, 5, 2, 6, 7, 2, 0, 0), # 93 (13, 5, 9, 6, 8, 5, 7, 5, 6, 0, 0, 1, 0, 11, 6, 15, 10, 10, 8, 8, 4, 4, 3, 7, 1, 0), # 94 (21, 4, 9, 12, 8, 7, 4, 3, 7, 6, 1, 2, 0, 11, 20, 8, 8, 10, 0, 3, 4, 5, 3, 2, 0, 0), # 95 (5, 11, 7, 13, 15, 3, 5, 5, 5, 2, 1, 4, 0, 17, 9, 10, 8, 6, 4, 4, 5, 4, 2, 5, 0, 0), # 96 (19, 6, 10, 12, 15, 3, 4, 1, 5, 4, 1, 0, 0, 14, 6, 9, 4, 12, 7, 6, 4, 4, 5, 3, 1, 0), # 97 (15, 14, 6, 16, 11, 8, 4, 6, 7, 2, 0, 1, 0, 17, 8, 8, 11, 9, 3, 2, 1, 3, 1, 2, 0, 0), # 98 (14, 13, 11, 11, 17, 5, 4, 2, 6, 5, 1, 1, 0, 17, 11, 18, 12, 17, 3, 4, 7, 7, 3, 3, 0, 0), # 99 (10, 15, 11, 17, 12, 5, 5, 6, 2, 1, 1, 0, 0, 17, 10, 19, 8, 10, 6, 4, 5, 7, 2, 5, 0, 0), # 100 (13, 16, 8, 8, 7, 4, 7, 4, 6, 1, 0, 0, 0, 14, 8, 11, 6, 12, 8, 3, 2, 4, 3, 0, 1, 0), # 101 (13, 16, 5, 6, 10, 4, 4, 5, 1, 0, 4, 1, 0, 12, 11, 8, 5, 9, 7, 4, 3, 6, 3, 2, 3, 0), # 102 (16, 11, 10, 13, 13, 5, 6, 6, 5, 1, 1, 1, 0, 13, 13, 11, 9, 13, 3, 5, 3, 3, 4, 1, 1, 0), # 103 (10, 13, 16, 9, 13, 5, 4, 2, 3, 2, 2, 1, 0, 17, 10, 3, 10, 8, 4, 3, 3, 5, 4, 3, 1, 0), # 104 (16, 14, 11, 16, 15, 4, 5, 5, 9, 0, 1, 0, 0, 9, 14, 10, 9, 10, 0, 7, 6, 5, 3, 1, 1, 0), # 105 (15, 16, 10, 12, 6, 5, 3, 1, 5, 1, 0, 1, 0, 9, 9, 10, 6, 7, 5, 7, 6, 13, 7, 3, 0, 0), # 106 (9, 13, 10, 14, 12, 4, 8, 3, 6, 5, 2, 1, 0, 16, 16, 8, 6, 10, 6, 7, 6, 4, 3, 2, 2, 0), # 107 (16, 15, 8, 5, 7, 9, 3, 4, 6, 0, 2, 0, 0, 13, 12, 5, 4, 13, 2, 2, 0, 4, 4, 1, 0, 0), # 108 (11, 9, 12, 11, 8, 4, 7, 5, 5, 2, 0, 0, 0, 14, 6, 6, 2, 6, 4, 4, 3, 3, 8, 1, 0, 0), # 109 (17, 11, 13, 16, 13, 5, 4, 2, 6, 0, 0, 2, 0, 9, 13, 10, 4, 9, 5, 5, 3, 6, 2, 1, 0, 0), # 110 (17, 13, 7, 7, 7, 5, 2, 4, 4, 2, 1, 0, 0, 10, 11, 11, 9, 10, 4, 4, 2, 5, 4, 5, 0, 0), # 111 (13, 13, 11, 5, 7, 3, 3, 1, 6, 1, 2, 2, 0, 8, 15, 5, 8, 8, 6, 4, 1, 3, 3, 1, 2, 0), # 112 (10, 11, 7, 11, 9, 2, 5, 2, 6, 1, 2, 3, 0, 20, 8, 5, 4, 10, 3, 2, 7, 3, 4, 2, 0, 0), # 113 (13, 12, 12, 8, 10, 4, 5, 0, 3, 2, 2, 0, 0, 5, 15, 8, 6, 15, 3, 8, 1, 5, 3, 0, 0, 0), # 114 (9, 7, 7, 6, 15, 9, 2, 6, 5, 4, 1, 3, 0, 10, 17, 11, 3, 13, 6, 5, 4, 6, 6, 0, 0, 0), # 115 (11, 12, 9, 12, 4, 4, 6, 3, 4, 4, 2, 0, 0, 11, 17, 7, 5, 8, 5, 3, 3, 7, 1, 0, 0, 0), # 116 (7, 11, 10, 12, 13, 3, 2, 1, 6, 3, 3, 1, 0, 12, 10, 10, 1, 14, 4, 5, 7, 3, 3, 4, 1, 0), # 117 (11, 11, 8, 8, 11, 5, 3, 2, 1, 3, 0, 1, 0, 12, 15, 8, 4, 14, 3, 1, 7, 4, 4, 1, 3, 0), # 118 (8, 9, 10, 10, 8, 5, 1, 3, 5, 1, 2, 1, 0, 15, 12, 6, 5, 13, 6, 3, 4, 5, 4, 1, 2, 0), # 119 (14, 12, 10, 13, 7, 7, 5, 2, 6, 5, 1, 0, 0, 16, 15, 3, 8, 6, 3, 4, 2, 3, 3, 3, 2, 0), # 120 (14, 3, 12, 9, 13, 5, 7, 4, 4, 1, 2, 3, 0, 12, 12, 7, 7, 8, 3, 1, 3, 8, 0, 1, 0, 0), # 121 (9, 10, 9, 8, 8, 4, 6, 4, 9, 5, 3, 3, 0, 9, 9, 9, 8, 7, 7, 3, 1, 4, 4, 1, 1, 0), # 122 (14, 9, 9, 12, 7, 3, 8, 3, 3, 2, 2, 0, 0, 11, 9, 10, 8, 9, 6, 3, 6, 9, 5, 1, 0, 0), # 123 (6, 7, 11, 15, 9, 6, 5, 4, 7, 1, 2, 0, 0, 14, 15, 7, 4, 12, 6, 5, 3, 5, 4, 0, 0, 0), # 124 (11, 3, 9, 11, 11, 3, 9, 2, 5, 1, 3, 1, 0, 8, 9, 10, 8, 8, 2, 3, 7, 4, 4, 3, 0, 0), # 125 (11, 6, 11, 11, 8, 3, 3, 3, 5, 0, 2, 1, 0, 15, 8, 8, 5, 16, 5, 1, 3, 5, 3, 2, 3, 0), # 126 (10, 8, 10, 8, 12, 1, 4, 3, 8, 1, 1, 2, 0, 11, 12, 7, 3, 10, 5, 2, 1, 3, 4, 4, 0, 0), # 127 (11, 13, 13, 11, 15, 3, 3, 3, 4, 2, 3, 2, 0, 14, 12, 6, 6, 6, 3, 4, 3, 4, 6, 2, 1, 0), # 128 (14, 8, 15, 9, 8, 9, 4, 9, 5, 3, 2, 1, 0, 11, 11, 10, 6, 13, 4, 3, 4, 7, 3, 3, 1, 0), # 129 (14, 6, 7, 10, 7, 7, 3, 2, 5, 0, 5, 0, 0, 19, 6, 7, 2, 12, 6, 5, 5, 3, 5, 2, 0, 0), # 130 (16, 7, 14, 8, 7, 3, 1, 1, 4, 0, 4, 2, 0, 16, 12, 6, 11, 14, 12, 4, 2, 6, 6, 3, 1, 0), # 131 (9, 4, 9, 7, 10, 2, 5, 1, 4, 2, 3, 1, 0, 14, 11, 8, 7, 10, 3, 6, 3, 1, 2, 1, 1, 0), # 132 (14, 8, 9, 5, 12, 5, 3, 3, 6, 0, 0, 1, 0, 13, 10, 8, 9, 4, 0, 1, 4, 5, 3, 1, 2, 0), # 133 (7, 8, 7, 7, 16, 5, 2, 1, 6, 1, 3, 2, 0, 11, 14, 4, 3, 11, 2, 7, 6, 10, 2, 2, 1, 0), # 134 (10, 7, 9, 10, 10, 1, 4, 5, 3, 0, 2, 0, 0, 17, 10, 7, 9, 13, 7, 1, 5, 4, 4, 1, 0, 0), # 135 (11, 9, 9, 16, 7, 3, 0, 3, 8, 2, 4, 0, 0, 8, 11, 7, 9, 17, 3, 6, 3, 3, 2, 3, 1, 0), # 136 (20, 6, 11, 8, 7, 4, 3, 6, 3, 1, 1, 1, 0, 13, 13, 9, 5, 9, 5, 5, 5, 4, 5, 1, 1, 0), # 137 (6, 4, 11, 6, 6, 3, 4, 4, 6, 1, 4, 1, 0, 21, 9, 9, 5, 13, 4, 6, 1, 3, 4, 4, 1, 0), # 138 (10, 9, 13, 11, 8, 8, 3, 9, 7, 2, 0, 1, 0, 18, 15, 15, 1, 9, 4, 3, 5, 3, 3, 2, 0, 0), # 139 (6, 9, 7, 11, 9, 3, 4, 6, 1, 1, 1, 1, 0, 18, 10, 3, 3, 9, 2, 5, 6, 4, 4, 3, 0, 0), # 140 (8, 10, 12, 9, 8, 2, 1, 1, 5, 3, 3, 1, 0, 16, 19, 7, 6, 8, 6, 4, 2, 7, 4, 1, 0, 0), # 141 (7, 6, 11, 13, 14, 7, 0, 4, 6, 4, 2, 0, 0, 13, 8, 4, 7, 12, 3, 3, 5, 3, 3, 4, 2, 0), # 142 (7, 6, 12, 9, 7, 3, 4, 2, 3, 1, 0, 0, 0, 12, 3, 10, 4, 11, 3, 4, 0, 3, 2, 3, 1, 0), # 143 (9, 5, 14, 9, 8, 3, 1, 3, 4, 1, 1, 0, 0, 6, 12, 8, 5, 11, 5, 4, 3, 5, 1, 1, 1, 0), # 144 (17, 4, 14, 6, 11, 3, 1, 3, 4, 1, 2, 0, 0, 12, 12, 5, 5, 7, 5, 4, 2, 0, 3, 1, 0, 0), # 145 (21, 7, 6, 13, 4, 4, 4, 7, 3, 1, 2, 1, 0, 11, 11, 5, 4, 11, 2, 3, 4, 3, 7, 1, 0, 0), # 146 (9, 8, 9, 15, 11, 4, 3, 4, 1, 1, 1, 2, 0, 9, 13, 6, 3, 11, 6, 3, 4, 7, 3, 3, 1, 0), # 147 (14, 6, 8, 10, 10, 9, 1, 3, 4, 4, 1, 0, 0, 11, 12, 7, 3, 7, 6, 3, 4, 7, 2, 5, 0, 0), # 148 (10, 4, 8, 11, 7, 4, 1, 4, 5, 1, 3, 0, 0, 8, 8, 5, 5, 13, 5, 6, 5, 6, 2, 2, 0, 0), # 149 (11, 9, 7, 13, 13, 4, 0, 3, 5, 1, 1, 0, 0, 8, 12, 5, 7, 11, 4, 2, 1, 2, 2, 2, 0, 0), # 150 (10, 12, 16, 6, 10, 6, 5, 6, 6, 1, 1, 2, 0, 11, 7, 7, 6, 9, 5, 2, 4, 2, 2, 1, 0, 0), # 151 (13, 13, 12, 9, 6, 9, 3, 4, 5, 1, 2, 1, 0, 16, 14, 3, 5, 15, 4, 5, 4, 2, 3, 4, 1, 0), # 152 (8, 14, 6, 9, 11, 5, 3, 1, 4, 2, 0, 2, 0, 4, 10, 11, 4, 9, 5, 3, 1, 3, 5, 1, 1, 0), # 153 (6, 11, 9, 8, 11, 1, 5, 6, 6, 3, 4, 0, 0, 14, 9, 10, 4, 12, 2, 5, 3, 5, 3, 2, 0, 0), # 154 (9, 11, 10, 3, 11, 0, 6, 3, 2, 2, 3, 1, 0, 17, 2, 8, 3, 6, 3, 2, 5, 4, 3, 0, 1, 0), # 155 (13, 10, 4, 17, 11, 4, 2, 5, 3, 1, 1, 2, 0, 10, 10, 7, 4, 10, 4, 6, 3, 8, 3, 3, 0, 0), # 156 (10, 9, 10, 12, 6, 4, 2, 4, 5, 1, 1, 0, 0, 11, 10, 6, 5, 10, 5, 5, 2, 6, 3, 2, 1, 0), # 157 (13, 3, 7, 20, 11, 8, 2, 1, 5, 0, 0, 2, 0, 13, 12, 6, 11, 13, 5, 0, 5, 4, 5, 1, 0, 0), # 158 (15, 10, 10, 9, 8, 3, 5, 3, 3, 1, 1, 1, 0, 11, 5, 4, 7, 17, 3, 5, 5, 5, 5, 0, 0, 0), # 159 (9, 14, 8, 7, 15, 7, 1, 3, 4, 4, 1, 0, 0, 16, 4, 7, 6, 11, 4, 3, 1, 2, 2, 2, 0, 0), # 160 (10, 8, 12, 7, 13, 2, 6, 5, 1, 1, 0, 1, 0, 10, 10, 9, 5, 12, 5, 3, 4, 3, 3, 1, 1, 0), # 161 (11, 11, 15, 13, 13, 1, 4, 3, 1, 2, 1, 0, 0, 8, 4, 9, 2, 8, 4, 1, 1, 4, 5, 1, 3, 0), # 162 (15, 4, 9, 8, 4, 2, 2, 2, 5, 1, 0, 1, 0, 13, 7, 9, 4, 7, 4, 0, 3, 3, 4, 1, 1, 0), # 163 (6, 6, 9, 14, 9, 3, 4, 3, 4, 1, 2, 0, 0, 10, 5, 5, 2, 9, 1, 6, 1, 2, 5, 3, 1, 0), # 164 (9, 6, 10, 9, 13, 3, 5, 3, 2, 1, 1, 0, 0, 5, 5, 7, 4, 8, 6, 3, 2, 4, 0, 2, 1, 0), # 165 (10, 5, 8, 4, 12, 2, 3, 5, 7, 2, 1, 0, 0, 6, 8, 2, 5, 5, 3, 7, 3, 2, 4, 4, 1, 0), # 166 (12, 3, 6, 11, 4, 7, 2, 5, 3, 3, 0, 0, 0, 16, 6, 5, 1, 9, 5, 1, 2, 6, 4, 1, 0, 0), # 167 (7, 6, 5, 7, 5, 3, 2, 6, 3, 5, 2, 1, 0, 8, 5, 5, 4, 8, 1, 4, 0, 0, 3, 3, 0, 0), # 168 (2, 5, 5, 6, 8, 1, 2, 1, 4, 0, 2, 0, 0, 4, 11, 7, 2, 6, 3, 4, 1, 4, 2, 4, 2, 0), # 169 (11, 6, 9, 5, 8, 2, 5, 3, 3, 0, 1, 0, 0, 9, 6, 5, 9, 4, 1, 2, 5, 4, 4, 1, 1, 0), # 170 (12, 5, 4, 7, 6, 6, 5, 2, 2, 1, 1, 0, 0, 8, 8, 2, 6, 9, 2, 3, 0, 5, 1, 1, 1, 0), # 171 (8, 3, 7, 5, 2, 1, 2, 1, 5, 1, 0, 0, 0, 6, 2, 5, 3, 6, 3, 3, 4, 3, 3, 1, 0, 0), # 172 (10, 5, 8, 5, 13, 3, 1, 4, 3, 1, 0, 0, 0, 5, 8, 6, 4, 3, 2, 3, 4, 3, 5, 2, 2, 0), # 173 (7, 4, 1, 9, 11, 3, 2, 1, 0, 0, 2, 0, 0, 5, 7, 11, 4, 4, 3, 2, 0, 2, 0, 0, 0, 0), # 174 (5, 4, 6, 5, 5, 1, 2, 2, 9, 0, 1, 0, 0, 9, 3, 2, 2, 6, 2, 0, 2, 1, 3, 4, 1, 0), # 175 (8, 3, 2, 9, 7, 4, 2, 1, 0, 1, 3, 0, 0, 7, 7, 3, 2, 3, 3, 3, 2, 1, 2, 2, 0, 0), # 176 (9, 3, 6, 2, 5, 1, 2, 0, 7, 1, 1, 0, 0, 12, 8, 2, 3, 2, 2, 3, 1, 2, 2, 1, 0, 0), # 177 (3, 2, 10, 0, 6, 2, 0, 3, 2, 1, 2, 0, 0, 10, 2, 4, 2, 3, 3, 1, 4, 2, 2, 2, 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 = ( (7.029211809720476, 7.735403983570434, 7.29579652145751, 8.700534883408807, 7.776559850653457, 4.394116904852274, 5.804449861523481, 6.514446642171193, 8.52613868703521, 5.541221021731318, 5.887371229439844, 6.857081109628643, 7.117432297609708), # 0 (7.496058012827964, 8.246084971802663, 7.777485227862214, 9.275201954587263, 8.291486472463932, 4.684377017659578, 6.187256517769172, 6.943319212067992, 9.089143456866074, 5.90657296918801, 6.2763345903385845, 7.309703325140097, 7.587708306415797), # 1 (7.9614122125716245, 8.754739239247371, 8.257259199766379, 9.847582786530712, 8.804548163249642, 4.9734791603174235, 6.568545911144986, 7.370475347066188, 9.64990152962857, 6.270479285028765, 6.663752408286839, 7.760525712874277, 8.056110759493567), # 2 (8.423460910405188, 9.259348702711026, 8.733215217047796, 10.415406970544904, 9.313726346402664, 5.260276871619158, 6.946805098307138, 7.79422162049231, 10.206189225289531, 6.631495777796654, 7.0480877765583365, 8.207759958902646, 8.520781928755916), # 3 (8.880390607782374, 9.757895279000085, 9.203450059584252, 10.976404097935598, 9.81700244531509, 5.543623690358135, 7.320521135911843, 8.212864605672882, 10.75578286381579, 6.988178256034751, 7.4278037884268056, 8.64961774929667, 8.979864086115745), # 4 (9.330387806156915, 10.248360884921025, 9.666060507253526, 11.528303760008551, 10.312357883378994, 5.822373155327701, 7.688181080615314, 8.62471087593443, 11.296458765174183, 7.339082528286129, 7.801363537165986, 9.084310770127807, 9.43149950348596), # 5 (9.771639006982534, 10.728727437280302, 10.119143339933412, 12.068835548069513, 10.79777408398646, 6.09537880532121, 8.048271989073768, 9.028067004603484, 11.825993249331543, 7.682764403093862, 8.167230116049597, 9.510050707467531, 9.87383045277945), # 6 (10.202330711712957, 11.196976852884385, 10.56079533750169, 12.595729053424249, 11.271232470529577, 6.36149417913201, 8.39928091794342, 9.421239565006573, 12.342162636254702, 8.017779689001022, 8.523866618351377, 9.925049247387301, 10.304999205909127), # 7 (10.62064942180191, 11.651091048539739, 10.989113279836156, 13.1067138673785, 11.730714466400421, 6.619572815553446, 8.739694923880478, 9.802535130470215, 12.842743245910489, 8.342684194550685, 8.86973613734505, 10.327518075958585, 10.723148034787885), # 8 (11.02478163870312, 12.089051941052832, 11.402193946814586, 13.599519581238038, 12.174201494991074, 6.868468253378878, 9.068001063541168, 10.170260274320949, 13.325511398265744, 8.65603372828592, 9.20330176630435, 10.71566887925284, 11.126419211328628), # 9 (11.412913863870306, 12.508841447230123, 11.798134118314776, 14.071875786308604, 12.599674979693622, 7.107034031401651, 9.382686393581697, 10.522721569885295, 13.7882434132873, 8.956384098749801, 9.523026598503003, 11.087713343341534, 11.512955007444255), # 10 (11.783232598757209, 12.90844148387809, 12.175030574214501, 14.521512073895957, 13.005116343900148, 7.334123688415116, 9.682237970658283, 10.85822559048978, 14.228715610941991, 9.242291114485408, 9.82737372721475, 11.441863154296136, 11.880897695047656), # 11 (12.133924344817538, 13.285833967803178, 12.530980094391557, 14.946158035305858, 13.38850701100273, 7.5485907632126175, 9.965142851427137, 11.17507890946093, 14.644704311196652, 9.512310584035802, 10.114806245713309, 11.776329998188096, 12.22838954605175), # 12 (12.463175603505027, 13.639000815811869, 12.864079458723728, 15.343543261844063, 13.747828404393443, 7.749288794587514, 10.22988809254448, 11.471588100125276, 15.033985834018106, 9.764998315944066, 10.383787247272418, 12.08932556108889, 12.55357283236943), # 13 (12.769172876273403, 13.965923944710624, 13.172425447088806, 15.71139734481631, 14.081061947464386, 7.935071321333148, 10.474960750666526, 11.746059735809345, 15.39433649937319, 9.998910118753269, 10.6327798251658, 12.379061529069986, 12.85458982591359), # 14 (13.050102664576398, 14.264585271305906, 13.45411483936456, 16.047449875528383, 14.386189063607633, 8.104791882242878, 10.698847882449478, 11.99680038983966, 15.723532627228748, 10.212601801006487, 10.860247072667189, 12.64374958820284, 13.129582798597134), # 15 (13.30415146986772, 14.532966712404187, 13.707244415428796, 16.349430445286004, 14.661191176215267, 8.257304016110044, 10.900036544549568, 12.222116635542745, 16.019350537551603, 10.404629171246796, 11.06465208305032, 12.881601424558916, 13.376694022332964), # 16 (13.529505793601107, 14.769050184811926, 13.929910955159293, 16.61506864539496, 14.904049708679375, 8.391461261728, 11.077013793622996, 12.420315046245145, 16.27956655030858, 10.573548038017254, 11.24445794958892, 13.090828724209679, 13.594065769033982), # 17 (13.724352137230287, 14.970817605335585, 14.120211238433834, 16.842094067160993, 15.112746084392025, 8.506117157890104, 11.228266686325993, 12.589702195273366, 16.501956985466535, 10.717914209860952, 11.398127765556712, 13.269643173226603, 13.779840310613086), # 18 (13.88687700220898, 15.136250890781643, 14.27624204513021, 17.02823630188984, 15.285261726745313, 8.600125243389693, 11.352282279314753, 12.728584655953943, 16.68429816299229, 10.83628349532096, 11.52412462422743, 13.416256457681136, 13.932159918983176), # 19 (14.015266889990915, 15.263331957956549, 14.396100155126206, 17.171224940887296, 15.419578059131322, 8.672339057020126, 11.44754762924551, 12.835269001613405, 16.82436640285268, 10.927211702940342, 11.62091161887481, 13.528880263644748, 14.049166866057154), # 20 (14.107708302029813, 15.350042723666784, 14.477882348299607, 17.26878957545908, 15.513676504942126, 8.72161213757475, 11.512549792774463, 12.908061805578273, 16.91993802501453, 10.989254641262178, 11.686951842772585, 13.60572627718891, 14.12900342374791), # 21 (14.162387739779412, 15.394365104718803, 14.5196854045282, 17.31865979691097, 15.565538487569807, 8.746798023846914, 11.54577582655784, 12.945269641175082, 16.968789349444684, 11.02096811882954, 11.720708389194478, 13.645006184385087, 14.16981186396836), # 22 (14.182550708679697, 15.39961303155007, 14.524892455418383, 17.324903137860087, 15.578824878445637, 8.75, 11.549725603163076, 12.949291358024693, 16.974896728395063, 11.024709181527207, 11.724941252026436, 13.649856607224509, 14.175), # 23 (14.197417378247815, 15.396551851851854, 14.524040740740743, 17.324134722222226, 15.586350659060795, 8.75, 11.547555337690634, 12.943700000000002, 16.974078333333335, 11.02241086419753, 11.724474410774413, 13.648720987654322, 14.175), # 24 (14.211970122296213, 15.390517832647463, 14.522359396433473, 17.322614454732513, 15.593710923832306, 8.75, 11.543278463648836, 12.932716049382718, 16.97246141975309, 11.01788637402835, 11.723548759196907, 13.646479195244629, 14.175), # 25 (14.226207826667249, 15.381603155006863, 14.519871467764064, 17.320359619341563, 15.600905415789548, 8.75, 11.53696140563221, 12.916546913580248, 16.97006672839506, 11.011210992226795, 11.722172677391198, 13.643161957018751, 14.175), # 26 (14.240129377203292, 15.3699, 14.5166, 17.3173875, 15.607933877961901, 8.75, 11.528670588235297, 12.895400000000002, 16.966915, 11.00246, 11.720354545454546, 13.638800000000003, 14.175), # 27 (14.253733659746702, 15.355500548696845, 14.51256803840878, 17.313715380658437, 15.614796053378763, 8.75, 11.518472436052612, 12.869482716049385, 16.963026975308644, 10.9917086785551, 11.718102743484225, 13.633424051211708, 14.175), # 28 (14.26701956013985, 15.338496982167355, 14.50779862825789, 17.30936054526749, 15.62149168506951, 8.75, 11.506433373678693, 12.839002469135803, 16.95842339506173, 10.979032309099225, 11.715425651577503, 13.627064837677183, 14.175), # 29 (14.279985964225098, 15.318981481481483, 14.502314814814815, 17.30434027777778, 15.628020516063533, 8.75, 11.492619825708061, 12.804166666666665, 16.953125, 10.964506172839508, 11.71233164983165, 13.619753086419752, 14.175), # 30 (14.292631757844802, 15.297046227709194, 14.496139643347053, 17.29867186213992, 15.634382289390214, 8.75, 11.477098216735257, 12.765182716049384, 16.947152530864198, 10.948205550983083, 11.708829118343933, 13.611519524462738, 14.175), # 31 (14.304955826841338, 15.27278340192044, 14.489296159122084, 17.29237258230453, 15.640576748078935, 8.75, 11.4599349713548, 12.72225802469136, 16.940526728395064, 10.930205724737084, 11.704926437211622, 13.602394878829449, 14.175), # 32 (14.316957057057056, 15.246285185185185, 14.481807407407409, 17.28545972222222, 15.646603635159089, 8.75, 11.441196514161222, 12.675600000000001, 16.933268333333334, 10.910581975308643, 11.700631986531986, 13.59240987654321, 14.175), # 33 (14.328634334334335, 15.217643758573388, 14.473696433470508, 17.27795056584362, 15.652462693660054, 8.75, 11.420949269749054, 12.625416049382716, 16.925398086419758, 10.889409583904893, 11.695954146402293, 13.581595244627344, 14.175), # 34 (14.339986544515531, 15.186951303155007, 14.464986282578877, 17.26986239711934, 15.65815366661122, 8.75, 11.399259662712824, 12.571913580246914, 16.916936728395065, 10.866763831732968, 11.690901296919815, 13.569981710105168, 14.175), # 35 (14.35101257344301, 15.1543, 14.455700000000002, 17.2612125, 15.663676297041972, 8.75, 11.37619411764706, 12.515300000000002, 16.907905, 10.84272, 11.685481818181819, 13.557600000000003, 14.175), # 36 (14.361711306959135, 15.119782030178326, 14.445860631001374, 17.252018158436215, 15.669030327981691, 8.75, 11.351819059146292, 12.455782716049384, 16.89832364197531, 10.817353369913125, 11.679704090285574, 13.544480841335163, 14.175), # 37 (14.372081630906267, 15.083489574759948, 14.43549122085048, 17.242296656378603, 15.674215502459768, 8.75, 11.326200911805053, 12.393569135802473, 16.88821339506173, 10.790739222679472, 11.673576493328346, 13.530654961133976, 14.175), # 38 (14.382122431126781, 15.045514814814815, 14.424614814814818, 17.232065277777778, 15.679231563505585, 8.75, 11.299406100217867, 12.328866666666666, 16.877595000000003, 10.762952839506175, 11.667107407407409, 13.516153086419752, 14.175), # 39 (14.39183259346303, 15.005949931412895, 14.413254458161866, 17.221341306584364, 15.684078254148528, 8.75, 11.271501048979264, 12.261882716049385, 16.866489197530868, 10.734069501600368, 11.660305212620028, 13.501005944215823, 14.175), # 40 (14.40121100375738, 14.964887105624143, 14.401433196159124, 17.210142026748972, 15.688755317417984, 8.75, 11.242552182683774, 12.192824691358027, 16.85491672839506, 10.704164490169182, 11.653178289063476, 13.485244261545498, 14.175), # 41 (14.410256547852201, 14.922418518518521, 14.389174074074077, 17.198484722222226, 15.693262496343333, 8.75, 11.212625925925927, 12.121900000000002, 16.842898333333338, 10.673313086419753, 11.645735016835017, 13.4688987654321, 14.175), # 42 (14.418968111589852, 14.878636351165984, 14.376500137174213, 17.186386676954736, 15.697599533953966, 8.75, 11.181788703300251, 12.049316049382718, 16.83045475308642, 10.641590571559215, 11.637983776031925, 13.452000182898951, 14.175), # 43 (14.427344580812699, 14.83363278463649, 14.363434430727025, 17.173865174897124, 15.701766173279264, 8.75, 11.150106939401276, 11.975280246913583, 16.817606728395063, 10.609072226794698, 11.629932946751465, 13.434579240969367, 14.175), # 44 (14.435384841363105, 14.787500000000001, 14.350000000000001, 17.160937500000003, 15.705762157348616, 8.75, 11.11764705882353, 11.9, 16.804375, 10.575833333333335, 11.62159090909091, 13.416666666666666, 14.175), # 45 (14.443087779083434, 14.740330178326476, 14.336219890260631, 17.147620936213993, 15.709587229191404, 8.75, 11.084475486161544, 11.823682716049385, 16.790780308641974, 10.541949172382258, 11.612966043147525, 13.398293187014175, 14.175), # 46 (14.45045227981605, 14.692215500685872, 14.322117146776408, 17.133932767489714, 15.713241131837016, 8.75, 11.050658646009847, 11.746535802469136, 16.776843395061732, 10.507495025148607, 11.604066729018582, 13.37948952903521, 14.175), # 47 (14.457477229403315, 14.64324814814815, 14.307714814814817, 17.11989027777778, 15.716723608314837, 8.75, 11.016262962962964, 11.668766666666668, 16.762585, 10.472546172839506, 11.594901346801347, 13.360286419753088, 14.175), # 48 (14.464161513687602, 14.593520301783265, 14.29303593964335, 17.10551075102881, 15.720034401654251, 8.75, 10.981354861615428, 11.590582716049383, 16.748025864197533, 10.437177896662096, 11.585478276593093, 13.340714586191131, 14.175), # 49 (14.470504018511264, 14.543124142661183, 14.278103566529495, 17.090811471193415, 15.723173254884642, 8.75, 10.94600076656177, 11.512191358024692, 16.73318672839506, 10.401465477823503, 11.575805898491085, 13.32080475537266, 14.175), # 50 (14.476503629716676, 14.492151851851853, 14.262940740740742, 17.075809722222225, 15.726139911035398, 8.75, 10.910267102396515, 11.433800000000002, 16.718088333333338, 10.365484197530865, 11.565892592592595, 13.30058765432099, 14.175), # 51 (14.482159233146191, 14.440695610425243, 14.247570507544584, 17.060522788065846, 15.728934113135901, 8.75, 10.874220293714194, 11.355616049382716, 16.70275141975309, 10.329309336991313, 11.555746738994888, 13.280094010059445, 14.175), # 52 (14.487469714642183, 14.388847599451307, 14.232015912208508, 17.0449679526749, 15.731555604215542, 8.75, 10.837926765109337, 11.277846913580248, 16.687196728395065, 10.293016177411982, 11.545376717795238, 13.259354549611341, 14.175), # 53 (14.492433960047004, 14.336700000000002, 14.2163, 17.0291625, 15.734004127303704, 8.75, 10.801452941176471, 11.2007, 16.671445000000002, 10.256680000000001, 11.534790909090908, 13.2384, 14.175), # 54 (14.497050855203032, 14.284344993141291, 14.200445816186559, 17.01312371399177, 15.736279425429768, 8.75, 10.764865246510128, 11.124382716049384, 16.655516975308643, 10.220376085962506, 11.523997692979176, 13.217261088248744, 14.175), # 55 (14.501319285952622, 14.231874759945132, 14.184476406035667, 16.996868878600825, 15.738381241623124, 8.75, 10.728230105704835, 11.049102469135804, 16.63943339506173, 10.184179716506632, 11.513005449557303, 13.195968541380887, 14.175), # 56 (14.505238138138138, 14.179381481481483, 14.168414814814819, 16.98041527777778, 15.740309318913155, 8.75, 10.69161394335512, 10.975066666666669, 16.623215000000002, 10.148166172839508, 11.50182255892256, 13.174553086419753, 14.175), # 57 (14.508806297601952, 14.126957338820304, 14.152284087791497, 16.96378019547325, 15.742063400329245, 8.75, 10.655083184055517, 10.902482716049382, 16.606882530864198, 10.112410736168268, 11.490457401172218, 13.153045450388662, 14.175), # 58 (14.51202265018642, 14.07469451303155, 14.136107270233198, 16.946980915637862, 15.743643228900785, 8.75, 10.61870425240055, 10.83155802469136, 16.590456728395065, 10.076988687700048, 11.478918356403542, 13.131476360310929, 14.175), # 59 (14.51488608173391, 14.022685185185187, 14.119907407407407, 16.930034722222224, 15.745048547657152, 8.75, 10.582543572984749, 10.762500000000001, 16.573958333333337, 10.041975308641977, 11.467213804713806, 13.109876543209879, 14.175), # 60 (14.517395478086781, 13.971021536351168, 14.10370754458162, 16.912958899176957, 15.746279099627737, 8.75, 10.546667570402647, 10.695516049382718, 16.557408086419755, 10.00744588020119, 11.455352126200275, 13.088276726108827, 14.175), # 61 (14.519549725087407, 13.919795747599453, 14.087530727023323, 16.89577073045268, 15.74733462784193, 8.75, 10.51114266924877, 10.630813580246915, 16.540826728395064, 9.973475683584821, 11.44334170096022, 13.066707636031095, 14.175), # 62 (14.521347708578144, 13.869100000000001, 14.071400000000002, 16.878487500000002, 15.7482148753291, 8.75, 10.476035294117647, 10.568600000000002, 16.524235, 9.94014, 11.43119090909091, 13.045200000000001, 14.175), # 63 (14.522788314401359, 13.819026474622772, 14.05533840877915, 16.86112649176955, 15.74891958511865, 8.75, 10.44141186960381, 10.509082716049384, 16.50765364197531, 9.907514110653864, 11.41890813068961, 13.023784545038868, 14.175), # 64 (14.523870428399414, 13.769667352537724, 14.03936899862826, 16.843704989711934, 15.749448500239955, 8.75, 10.407338820301785, 10.45246913580247, 16.49110339506173, 9.875673296753543, 11.4065017458536, 13.00249199817101, 14.175), # 65 (14.524592936414676, 13.721114814814818, 14.023514814814817, 16.826240277777778, 15.749801363722403, 8.75, 10.373882570806101, 10.398966666666668, 16.474605000000004, 9.844692839506173, 11.393980134680135, 12.981353086419755, 14.175), # 66 (14.524954724289511, 13.673461042524005, 14.00779890260631, 16.808749639917696, 15.749977918595382, 8.75, 10.341109545711289, 10.348782716049385, 16.458179197530864, 9.814648020118886, 11.381351677266494, 12.960398536808412, 14.175), # 67 (14.524708260273156, 13.626548095048452, 13.99216832990398, 16.7910984366613, 15.749829137416285, 8.74983761621704, 10.308921272761506, 10.301681390032009, 16.44172298811157, 9.785468618306034, 11.368400383956526, 12.939542030659641, 14.174825210048013), # 68 (14.522398389694043, 13.578943727598569, 13.976183796296295, 16.772396920289854, 15.748474945533768, 8.748553909465022, 10.27637545388526, 10.25513827160494, 16.424516975308645, 9.756328946986201, 11.35380797448166, 12.918106562703056, 14.17344039351852), # 69 (14.517840102582454, 13.5304294437807, 13.95977580589849, 16.752521973966722, 15.74579903978052, 8.746025758268557, 10.243324188385918, 10.208733424782809, 16.40646404892547, 9.727087334247829, 11.337408441136512, 12.895991865809934, 14.170705268347055), # 70 (14.511097524900102, 13.481034236028144, 13.942950120027435, 16.731502905260335, 15.74183531025579, 8.742294131992075, 10.209782323354585, 10.162482213077277, 16.387591095107457, 9.697744503079695, 11.319262319097408, 12.873214112097802, 14.166655842764062), # 71 (14.502234782608697, 13.430787096774193, 13.9257125, 16.709369021739132, 15.736617647058825, 8.737400000000001, 10.175764705882354, 10.1164, 16.367925000000003, 9.668301176470589, 11.299430143540672, 12.849789473684211, 14.161328125), # 72 (14.491316001669949, 13.379717018452144, 13.90806870713306, 16.686149630971553, 15.730179940288872, 8.73138433165676, 10.141286183060329, 10.070502149062644, 16.347492649748517, 9.63875807740929, 11.277972449642624, 12.825734122686688, 14.154758123285324), # 73 (14.478405308045566, 13.32785299349529, 13.890024502743485, 16.661874040526033, 15.722556080045187, 8.72428809632678, 10.106361601979613, 10.024804023776863, 16.3263209304984, 9.609115928884586, 11.254949772579598, 12.801064231222776, 14.146981845850483), # 74 (14.463566827697262, 13.275224014336917, 13.871585648148148, 16.636571557971017, 15.713779956427018, 8.716152263374488, 10.0710058097313, 9.979320987654322, 16.30443672839506, 9.579375453885259, 11.23042264752791, 12.775795971410007, 14.138035300925928), # 75 (14.44686468658675, 13.22185907341033, 13.852757904663925, 16.610271490874936, 15.703885459533609, 8.707017802164305, 10.035233653406493, 9.934068404206677, 16.281866929583906, 9.549537375400092, 11.20445160966389, 12.749945515365916, 14.127954496742113), # 76 (14.428363010675731, 13.167787163148816, 13.833547033607681, 16.583003146806227, 15.692906479464213, 8.696925682060662, 9.999059980096293, 9.88906163694559, 16.258638420210335, 9.519602416417872, 11.177097194163862, 12.723529035208049, 14.116775441529496), # 77 (14.408125925925928, 13.113037275985667, 13.813958796296298, 16.554795833333333, 15.680876906318085, 8.685916872427983, 9.962499636891796, 9.844316049382718, 16.23477808641975, 9.489571299927379, 11.148419936204148, 12.696562703053933, 14.10453414351852), # 78 (14.386217558299041, 13.057638404354178, 13.793998954046641, 16.525678858024694, 15.667830630194468, 8.674032342630696, 9.925567470884102, 9.799847005029722, 16.210312814357568, 9.4594447489174, 11.118480370961072, 12.669062691021107, 14.091266610939643), # 79 (14.362702033756786, 13.001619540687642, 13.773673268175584, 16.495681528448742, 15.653801541192612, 8.661313062033226, 9.888278329164315, 9.755669867398264, 16.185269490169183, 9.429223486376719, 11.087339033610965, 12.64104517122711, 14.07700885202332), # 80 (14.337643478260873, 12.945009677419357, 13.752987500000001, 16.464833152173917, 15.638823529411765, 8.6478, 9.85064705882353, 9.711800000000002, 16.159675, 9.398908235294119, 11.055056459330146, 12.612526315789475, 14.061796875), # 81 (14.311106017773009, 12.887837806982612, 13.731947410836765, 16.433163036768654, 15.622930484951183, 8.633534125895444, 9.812688506952853, 9.668252766346594, 16.133556229995428, 9.368499718658382, 11.02169318329494, 12.583522296825743, 14.045666688100141), # 82 (14.283153778254908, 12.8301329218107, 13.710558762002744, 16.400700489801395, 15.606156297910111, 8.618556409083983, 9.774417520643375, 9.625043529949703, 16.10694006630087, 9.337998659458297, 10.987309740681672, 12.554049286453447, 14.028654299554185), # 83 (14.253850885668278, 12.77192401433692, 13.688827314814816, 16.36747481884058, 15.588534858387801, 8.602907818930042, 9.735848946986202, 9.582187654320988, 16.07985339506173, 9.307405780682645, 10.951966666666667, 12.524123456790125, 14.010795717592593), # 84 (14.223261465974833, 12.713240076994557, 13.666758830589849, 16.333515331454645, 15.5701000564835, 8.58662932479805, 9.696997633072435, 9.53970050297211, 16.05232310242341, 9.276721805320209, 10.915724496426252, 12.493760979953313, 13.992126950445819), # 85 (14.191449645136279, 12.654110102216913, 13.644359070644722, 16.298851335212028, 15.550885782296458, 8.569761896052432, 9.65787842599317, 9.497597439414724, 16.024376074531325, 9.245947456359774, 10.878643765136749, 12.462978028060553, 13.97268400634431), # 86 (14.15847954911433, 12.594563082437277, 13.621633796296296, 16.26351213768116, 15.53092592592593, 8.552346502057613, 9.618506172839506, 9.455893827160494, 15.996039197530868, 9.215083456790124, 10.840785007974482, 12.43179077322937, 13.95250289351852), # 87 (14.124415303870702, 12.534628010088941, 13.598588768861456, 16.22752704643049, 15.510254377471155, 8.534424112178023, 9.578895720702548, 9.414605029721079, 15.967339357567447, 9.184130529600042, 10.802208760115779, 12.400215387577312, 13.931619620198905), # 88 (14.089321035367092, 12.474333877605204, 13.575229749657066, 16.19092536902845, 15.488905027031391, 8.516035695778085, 9.539061916673392, 9.37374641060814, 15.938303440786468, 9.153089397778317, 10.762975556736963, 12.36826804322191, 13.910070194615912), # 89 (14.053260869565218, 12.413709677419357, 13.551562500000001, 16.153736413043482, 15.466911764705886, 8.497222222222224, 9.499019607843138, 9.333333333333334, 15.908958333333336, 9.121960784313726, 10.723145933014354, 12.335964912280703, 13.887890625), # 90 (14.016298932426789, 12.352784401964689, 13.527592781207133, 16.11598948604402, 15.444308480593882, 8.478024660874867, 9.458783641302887, 9.293381161408323, 15.879330921353455, 9.090745412195057, 10.682780424124285, 12.303322166871226, 13.865116919581618), # 91 (13.978499349913523, 12.2915870436745, 13.503326354595337, 16.0777138955985, 15.421129064794641, 8.458483981100443, 9.418368864143739, 9.253905258344766, 15.84944809099223, 9.059444004411093, 10.641939565243074, 12.270355979111017, 13.841785086591221), # 92 (13.939926247987117, 12.230146594982081, 13.478768981481483, 16.038938949275366, 15.397407407407409, 8.438641152263374, 9.37779012345679, 9.214920987654322, 15.819336728395063, 9.028057283950616, 10.600683891547051, 12.23708252111761, 13.81793113425926), # 93 (13.900643752609293, 12.168492048320722, 13.453926423182445, 15.999693954643051, 15.37317739853143, 8.418537143728091, 9.337062266333147, 9.176443712848654, 15.789023719707364, 8.996585973802416, 10.559073938212535, 12.203517965008546, 13.793591070816188), # 94 (13.860715989741754, 12.106652396123724, 13.42880444101509, 15.960008219269996, 15.34847292826596, 8.398212924859017, 9.296200139863902, 9.138488797439416, 15.758535951074533, 8.96503079695527, 10.517170240415854, 12.169678482901354, 13.768800904492457), # 95 (13.820207085346219, 12.044656630824377, 13.403408796296299, 15.91991105072464, 15.32332788671024, 8.377709465020576, 9.25521859114016, 9.101071604938273, 15.727900308641976, 8.933392476397968, 10.475033333333334, 12.135580246913582, 13.74359664351852), # 96 (13.779181165384388, 11.98253374485597, 13.377745250342937, 15.879431756575416, 15.297776163963531, 8.357067733577198, 9.21413246725302, 9.064207498856883, 15.6971436785551, 8.901671735119288, 10.432723752141296, 12.101239429162758, 13.718014296124831), # 97 (13.737702355817978, 11.9203127306518, 13.35181956447188, 15.83859964439077, 15.271851650125074, 8.336328699893311, 9.17295661529358, 9.027911842706905, 15.666292946959304, 8.86986929610802, 10.390302032016068, 12.066672201766417, 13.69208987054184), # 98 (13.695834782608697, 11.858022580645162, 13.325637500000003, 15.797444021739132, 15.24558823529412, 8.315533333333335, 9.131705882352943, 8.9922, 15.635375000000002, 8.83798588235294, 10.347828708133973, 12.031894736842107, 13.665859375000002), # 99 (13.653642571718258, 11.795692287269347, 13.29920481824417, 15.755994196188944, 15.21901980956992, 8.294722603261699, 9.090395115522204, 8.957087334247829, 15.60441672382259, 8.806022216842843, 10.305364315671335, 11.996923206507354, 13.639358817729768), # 100 (13.611189849108369, 11.733350842957654, 13.272527280521263, 15.714279475308645, 15.192180263051725, 8.273937479042829, 9.049039161892468, 8.922589208962048, 15.573445004572475, 8.773979022566504, 10.262969389804478, 11.961773782879694, 13.612624206961591), # 101 (13.568540740740744, 11.67102724014337, 13.245610648148148, 15.67232916666667, 15.165103485838781, 8.253218930041154, 9.00765286855483, 8.888720987654322, 15.542486728395062, 8.741857022512711, 10.22070446570973, 11.926462638076675, 13.585691550925928), # 102 (13.525759372577088, 11.60875047125979, 13.218460682441702, 15.630172577831457, 15.137823368030341, 8.232607925621096, 8.966251082600394, 8.855498033836307, 15.511568781435757, 8.709656939670245, 10.178630078563414, 11.891005944215824, 13.558596857853223), # 103 (13.482909870579116, 11.546549528740211, 13.191083144718794, 15.587839016371445, 15.110373799725652, 8.212145435147082, 8.924848651120257, 8.822935711019662, 15.480718049839965, 8.677379497027893, 10.13680676354185, 11.855419873414677, 13.53137613597394), # 104 (13.440056360708535, 11.484453405017922, 13.163483796296298, 15.545357789855073, 15.082788671023966, 8.19187242798354, 8.883460421205521, 8.79104938271605, 15.449961419753087, 8.64502541757444, 10.095295055821373, 11.819720597790775, 13.50406539351852), # 105 (13.39726296892706, 11.42249109252622, 13.135668398491084, 15.50275820585078, 15.055101872024531, 8.171829873494895, 8.842101239947283, 8.759854412437129, 15.41932577732053, 8.612595424298663, 10.054155490578298, 11.783924289461654, 13.476700638717421), # 106 (13.3545938211964, 11.360691583698395, 13.10764271262003, 15.460069571927, 15.027347292826596, 8.152058741045574, 8.800785954436646, 8.72936616369456, 15.388838008687703, 8.580090240189355, 10.013448602988953, 11.748047120544847, 13.449317879801098), # 107 (13.312113043478263, 11.299083870967744, 13.079412500000002, 15.417321195652177, 14.999558823529412, 8.132600000000002, 8.759529411764706, 8.699600000000002, 15.358525000000002, 8.547510588235296, 9.973234928229665, 11.712105263157897, 13.421953125000002), # 108 (13.26988476173436, 11.237696946767558, 13.050983521947876, 15.374542384594738, 14.97177035423223, 8.113494619722603, 8.718346459022568, 8.670571284865114, 15.328413637402836, 8.514857191425268, 9.933575001476758, 11.676114889418335, 13.394642382544584), # 109 (13.227973101926404, 11.176559803531132, 13.022361539780524, 15.331762446323136, 14.944015775034297, 8.094783569577809, 8.677251943301325, 8.642295381801555, 15.29853080704161, 8.482130772748057, 9.894529357906551, 11.640092171443701, 13.367421660665297), # 110 (13.186442190016104, 11.11570143369176, 12.993552314814819, 15.2890106884058, 14.91632897603486, 8.076507818930043, 8.636260711692085, 8.614787654320988, 15.26890339506173, 8.449332055192448, 9.856158532695375, 11.60405328135153, 13.340326967592594), # 111 (13.14535615196517, 11.055150829682729, 12.96456160836763, 15.246316418411165, 14.888743847333174, 8.05870833714373, 8.595387611285942, 8.588063465935072, 15.239558287608595, 8.416461761747223, 9.818523061019553, 11.568014391259355, 13.313394311556928), # 112 (13.104705913184263, 10.995038066300333, 12.935464959552897, 15.203767435488858, 14.861245952243188, 8.04141767690032, 8.554736349119478, 8.562193596292849, 15.21059793576207, 8.383626631257822, 9.781693468614014, 11.5320701111062, 13.286621461180511), # 113 (13.064073257060091, 10.935956056935751, 12.906663945030267, 15.161705189788272, 14.833550696392859, 8.024596451941862, 8.514825491774811, 8.537495763307168, 15.182466649998286, 8.351441235077896, 9.745742071958476, 11.496677040958165, 13.25978557982405), # 114 (13.023338864205595, 10.877926078156266, 12.878175705790246, 15.120118307254492, 14.805570749044042, 8.008200917498272, 8.475683510268187, 8.513963715990194, 15.155174970136306, 8.319955459183308, 9.710616315997932, 11.461852615582393, 13.232809284324528), # 115 (12.982451822532688, 10.820863593808383, 12.849945065977423, 15.078932610372966, 14.777263936937292, 7.992192428201937, 8.43724674453905, 8.491532438058591, 15.128653874918964, 8.289110701829367, 9.676248303780074, 11.427532476482286, 13.205650163658248), # 116 (12.941361219953283, 10.76468406773861, 12.82191684973638, 15.038073921629142, 14.748588086813156, 7.976532338685248, 8.399451534526854, 8.47013691322902, 15.102834343089086, 8.258848361271381, 9.642570138352598, 11.39365226516125, 13.178265806801516), # 117 (12.900016144379297, 10.709302963793455, 12.794035881211714, 14.997468063508467, 14.71950102541218, 7.9611820035805945, 8.362234220171041, 8.449712125218136, 15.07764735338951, 8.229109835764664, 9.609513922763194, 11.36014762312269, 13.150613802730636), # 118 (12.858365683722639, 10.654635745819421, 12.766246984548014, 14.95704085849639, 14.689960579474912, 7.946102777520366, 8.325531141411059, 8.430193057742605, 15.053023884563062, 8.199836523564521, 9.577011760059559, 11.326954191870009, 13.122651740421906), # 119 (12.816358925895228, 10.600597877663022, 12.738494983889867, 14.916718129078353, 14.659924575741897, 7.931256015136952, 8.289278638186355, 8.41151469451908, 15.028894915352582, 8.170969822926269, 9.544995753289383, 11.294007612906617, 13.094337208851638), # 120 (12.773944958808976, 10.547104823170763, 12.710724703381864, 14.876425697739808, 14.629350840953688, 7.9166030710627435, 8.253413050436373, 8.39361201926423, 15.0051914245009, 8.142451132105215, 9.513398005500363, 11.261243527735912, 13.065627796996127), # 121 (12.731072870375797, 10.494072046189146, 12.682880967168597, 14.836089386966199, 14.598197201850828, 7.902105299930128, 8.217870718100565, 8.376420015694709, 14.981844390750846, 8.11422184935667, 9.482150619740192, 11.228597577861303, 13.036481093831679), # 122 (12.687691748507607, 10.441415010564684, 12.65490859939465, 14.795635019242972, 14.56642148517387, 7.887724056371495, 8.182587981118376, 8.359873667527177, 14.958784792845258, 8.086223372935942, 9.451185699056563, 11.19600540478619, 13.0068546883346), # 123 (12.643750681116316, 10.389049180143882, 12.62675242420462, 14.754988417055582, 14.533981517663353, 7.873420695019235, 8.147501179429248, 8.343907958478297, 14.935943609526962, 8.058397101098347, 9.420435346497168, 11.163402650013985, 12.976706169481197), # 124 (12.599198756113843, 10.33689001877325, 12.598357265743093, 14.714075402889465, 14.500835126059833, 7.859156570505739, 8.112546652972636, 8.328457872264728, 14.913251819538791, 8.030684432099187, 9.389831665109703, 11.130724955048088, 12.94599312624776), # 125 (12.553985061412101, 10.284852990299292, 12.56966794815466, 14.672821799230077, 14.466940137103851, 7.844893037463395, 8.077660741687978, 8.31345839260313, 14.890640401623585, 8.00302676419378, 9.359306757941859, 11.097907961391908, 12.91467314761061), # 126 (12.508058684923006, 10.232853558568515, 12.540629295583907, 14.63115342856286, 14.432254377535958, 7.830591450524592, 8.042779785514732, 8.298844503210164, 14.86804033452417, 7.975365495637434, 9.32879272804133, 11.064887310548842, 12.88270382254604), # 127 (12.461368714558466, 10.18080718742743, 12.51118613217543, 14.588996113373266, 14.396735674096707, 7.816213164321722, 8.007840124392336, 8.284551187802489, 14.845382596983379, 7.947642024685458, 9.298221678455814, 11.031598644022305, 12.850042740030352), # 128 (12.413864238230394, 10.128629340722538, 12.481283282073816, 14.546275676146736, 14.360341853526638, 7.801719533487173, 7.972778098260239, 8.270513430096765, 14.822598167744045, 7.919797749593164, 9.267525712233, 10.997977603315691, 12.816647489039854), # 129 (12.365494343850713, 10.076235482300353, 12.450865569423652, 14.502917939368722, 14.3230307425663, 7.7870719126533325, 7.937530047057888, 8.256666213809652, 14.799618025549002, 7.89177406861586, 9.236636932420582, 10.963959829932413, 12.78247565855085), # 130 (12.316208119331334, 10.023541076007378, 12.419877818369534, 14.458848725524668, 14.284760167956243, 7.772231656452593, 7.902032310724733, 8.24294452265781, 14.776373149141081, 7.86351238000886, 9.205487442066255, 10.929480965375875, 12.747484837539638), # 131 (12.265954652584163, 9.970461585690122, 12.388264853056045, 14.413993857100023, 14.245487956437017, 7.757160119517344, 7.8662212292002165, 8.229283340357902, 14.752794517263117, 7.834954082027471, 9.17400934421771, 10.894476651149478, 12.711632614982527), # 132 (12.21468303152113, 9.91691247519509, 12.355971497627777, 14.368279156580234, 14.205171934749162, 7.741818656479974, 7.830033142423786, 8.215617650626585, 14.728813108657938, 7.806040572927006, 9.142134741922645, 10.85888252875663, 12.674876579855821), # 133 (12.162342344054133, 9.862809208368793, 12.322942576229327, 14.321630446450746, 14.163769929633231, 7.726168621972872, 7.79340439033489, 8.201882437180522, 14.704359902068381, 7.776713250962773, 9.109795738228751, 10.822634239700733, 12.637174321135817), # 134 (12.108881678095097, 9.808067249057736, 12.289122913005274, 14.273973549197011, 14.12123976782977, 7.710171370628429, 7.756271312872975, 8.18801268373637, 14.679365876237274, 7.746913514390087, 9.07692443618372, 10.785667425485194, 12.59848342779883), # 135 (12.05425012155593, 9.752602061108423, 12.254457332100213, 14.225234287304469, 14.077539276079325, 7.693788257079036, 7.718570249977489, 8.173943374010788, 14.65376200990745, 7.716582761464252, 9.043452938835248, 10.747917727613418, 12.558761488821151), # 136 (11.998396762348548, 9.696329108367367, 12.218890657658735, 14.175338483258576, 14.032626281122448, 7.6769806359570785, 7.6802375415878785, 8.159609491720442, 14.627479281821747, 7.685662390440583, 9.009313349231029, 10.709320787588808, 12.517966093179089), # 137 (11.941270688384867, 9.639163854681073, 12.182367713825425, 14.12421195954477, 13.986458609699687, 7.6597098618949495, 7.6412095276435865, 8.144946020581987, 14.600448670722995, 7.654093799574386, 8.974437770418753, 10.66981224691477, 12.476054829848946), # 138 (11.882820987576796, 9.581021763896047, 12.144833324744877, 14.071780538648504, 13.938994088551583, 7.641937289525037, 7.601422548084064, 8.129887944312085, 14.572601155354022, 7.621818387120976, 8.938758305446116, 10.62932774709471, 12.432985287807028), # 139 (11.822996747836257, 9.521818299858795, 12.106232314561684, 14.017970043055223, 13.890190544418692, 7.623624273479732, 7.560812942848756, 8.114370246627395, 14.543867714457667, 7.588777551335661, 8.902207057360812, 10.58780292963203, 12.38871505602964), # 140 (11.761747057075162, 9.46146892641583, 12.066509507420426, 13.962706295250376, 13.840005804041555, 7.604732168391422, 7.519317051877113, 8.09832791124458, 14.514179326776754, 7.554912690473753, 8.864716129210535, 10.545173436030137, 12.34320172349308), # 141 (11.69902100320542, 9.399889107413653, 12.0256097274657, 13.90591511771941, 13.788397694160723, 7.585222328892499, 7.476871215108577, 8.081695921880296, 14.48346697105412, 7.52016520279056, 8.826217624042977, 10.501374907792433, 12.296402879173653), # 142 (11.634767674138946, 9.336994306698774, 11.983477798842097, 13.847522332947767, 13.735324041516742, 7.56505610961535, 7.4334117724825965, 8.064409262251205, 14.451661626032607, 7.484476486541395, 8.786643644905832, 10.456342986422326, 12.248276112047666), # 143 (11.56893615778766, 9.2726999881177, 11.9400585456942, 13.787453763420901, 13.680742672850162, 7.544194865192366, 7.3888750639386185, 8.04640291607397, 14.418694270455035, 7.4477879399815645, 8.745926294846791, 10.41001331342322, 12.198779011091421), # 144 (11.501475542063469, 9.20692161551694, 11.895296792166606, 13.725635231624254, 13.624611414901528, 7.5225999502559375, 7.343197429416091, 8.027611867065247, 14.384495883064238, 7.410040961366383, 8.703997676913554, 10.36232153029852, 12.14786916528122), # 145 (11.432334914878291, 9.139574652742999, 11.849137362403903, 13.661992560043277, 13.566888094411391, 7.500232719438453, 7.2963152088544625, 8.007971098941699, 14.34899744260305, 7.37117694895116, 8.660789894153808, 10.313203278551628, 12.095504163593366), # 146 (11.361463364144042, 9.070574563642383, 11.801525080550675, 13.596451571163414, 13.507530538120294, 7.477054527372301, 7.2481647421931745, 7.987415595419982, 14.312129927814308, 7.331137300991204, 8.616235049615252, 10.262594199685955, 12.041641595004167), # 147 (11.288809977772631, 8.999836812061604, 11.752404770751518, 13.528938087470117, 13.446496572768787, 7.453026728689875, 7.198682369371678, 7.965880340216761, 14.273824317440841, 7.289863415741826, 8.570265246345576, 10.210429935204898, 11.986239048489919), # 148 (11.214323843675977, 8.927276861847163, 11.701721257151021, 13.459377931448826, 13.38374402509742, 7.42811067802356, 7.147804430329418, 7.943300317048694, 14.234011590225474, 7.247296691458339, 8.522812587392474, 10.156646126611868, 11.929254113026934), # 149 (11.137954049765991, 8.852810176845571, 11.649419363893772, 13.387696925584994, 13.319230721846738, 7.402267730005749, 7.0954672650058415, 7.91961050963244, 14.192622724911054, 7.2033785263960475, 8.473809175803641, 10.101178415410269, 11.870644377591507), # 150 (11.059649683954586, 8.776352220903336, 11.59544391512436, 13.313820892364063, 13.252914489757288, 7.375459239268828, 7.041607213340397, 7.8947459016846615, 14.149588700240406, 7.15805031881027, 8.423187114626767, 10.043962443103501, 11.810367431159946), # 151 (10.979359834153682, 8.697818457866962, 11.539739734987382, 13.237675654271488, 13.184753155569618, 7.34764656044519, 6.986160615272531, 7.8686414769220185, 14.10484049495636, 7.11125346695631, 8.37087850690955, 9.984933851194974, 11.748380862708558), # 152 (10.897033588275185, 8.61712435158296, 11.482251647627416, 13.159187033792707, 13.11470454602428, 7.318791048167222, 6.929063810741687, 7.841232219061167, 14.058309087801755, 7.062929369089481, 8.316815455699683, 9.92402828118809, 11.68464226121364), # 153 (10.81262003423102, 8.534185365897834, 11.422924477189063, 13.078280853413174, 13.042726487861813, 7.288854057067317, 6.87025313968732, 7.8124531118187726, 14.009925457519413, 7.013019423465095, 8.260930064044857, 9.861181374586256, 11.6191092156515), # 154 (10.72606825993309, 8.448916964658093, 11.361703047816906, 12.99488293561833, 12.968776807822776, 7.257796941777861, 6.809664942048866, 7.782239138911491, 13.95962058285218, 6.9614650283384565, 8.203154434992767, 9.796328772892876, 11.551739314998438), # 155 (10.637327353293314, 8.361234611710243, 11.298532183655539, 12.908919102893627, 12.892813332647707, 7.225581056931246, 6.74723555776578, 7.750525284055986, 13.907325442542877, 6.9082075819648825, 8.143420671591107, 9.729406117611353, 11.48249014823076), # 156 (10.546346402223609, 8.271053770900794, 11.233356708849547, 12.820315177724513, 12.81479388907716, 7.19216775715986, 6.6829013267775075, 7.717246530968915, 13.852971015334345, 6.853188482599679, 8.08166087688757, 9.660349050245092, 11.411319304324769), # 157 (10.450553324967336, 8.176634369081162, 11.163028735463298, 12.725677414311741, 12.731153548219398, 7.155434266843955, 6.615149409299001, 7.680115733289122, 13.792326928238738, 6.794712282807602, 8.01583405355452, 9.586639389872076, 11.335080203181485), # 158 (10.335201473769764, 8.06829144743927, 11.069432945764184, 12.605568022303835, 12.62126783369428, 7.103165507209945, 6.535497868740003, 7.626098945870136, 13.700998165711002, 6.723193391738244, 7.934383709866593, 9.493907533156353, 11.235598705688274), # 159 (10.198820932866035, 7.945135419957, 10.950689341138245, 12.458008514572404, 12.482988183885514, 7.034077814466758, 6.443141247737298, 7.553838865338286, 13.576395318120113, 6.637687912608051, 7.8361633120533565, 9.380702728442985, 11.110988852451014), # 160 (10.042510876420344, 7.8079692153126565, 10.808065760674433, 12.28440150525942, 12.317750373994958, 6.94900813819844, 6.338754024409627, 7.464240746353693, 13.420161673798626, 6.5389214704393135, 7.7220383164395905, 9.248074456470599, 10.962523662746737), # 161 (9.8673704785969, 7.657595762184535, 10.642830043461695, 12.086149608506858, 12.126990179224487, 6.848793427989039, 6.223010676875733, 7.358209843576484, 13.233940521079093, 6.427619690254325, 7.592874179350069, 9.09707219797781, 10.791476155852466), # 162 (9.674498913559898, 7.494817989250934, 10.456250028588983, 11.864655438456708, 11.912143374775964, 6.734270633422602, 6.096585683254362, 7.2366514116667755, 13.019375148294069, 6.304508197075376, 7.449536357109572, 8.928745433703247, 10.599119351045232), # 163 (9.464995355473539, 7.320438825190149, 10.249593555145248, 11.621321609250947, 11.674645735851264, 6.606276704083181, 5.960153521664253, 7.100470705284697, 12.778108843776113, 6.170312615924756, 7.292890306042875, 8.744143644385526, 10.386726267602059), # 164 (9.239958978502024, 7.135261198680485, 10.024128462219437, 11.357550735031554, 11.415933037652254, 6.465648589554821, 5.814388670224151, 6.950572979090365, 12.511784895857772, 6.02575857182476, 7.123801482474756, 8.544316310763268, 10.155569924799979), # 165 (9.000488956809557, 6.940088038400237, 9.7811225889005, 11.074745429940503, 11.137441055380801, 6.313223239421572, 5.659965607052801, 6.787863487743908, 12.222046592871603, 5.871571689797677, 6.943135342729992, 8.330312913575103, 9.906923341916015), # 166 (8.747684464560333, 6.735722273027703, 9.521843774277388, 10.774308308119782, 10.840605564238773, 6.149837603267482, 5.497558810268945, 6.613247485905448, 11.91053722315016, 5.7084775948658, 6.751757343133359, 8.103182933559642, 9.642059538227196), # 167 (8.482644675918554, 6.52296683124118, 9.247559857439049, 10.457641983711365, 10.526862339428039, 5.9763286306765995, 5.327842757991326, 6.427630228235103, 11.578900075025999, 5.5372019120514215, 6.550532940009634, 7.863975851455517, 9.362251533010546), # 168 (8.206468765048422, 6.302624641718972, 8.959538677474432, 10.126149070857236, 10.197647156150468, 5.793533271232973, 5.151491928338689, 6.231916969393004, 11.228778436831673, 5.358470266376831, 6.3403275896835956, 7.613741148001342, 9.0687723455431), # 169 (7.9202559061141375, 6.0754986331393726, 8.659048073472489, 9.781232183699368, 9.854395789607928, 5.60228847452065, 4.9691807994297745, 6.027012964039266, 10.861815596899735, 5.173008282864322, 6.122006748480023, 7.353528303935743, 8.762894995101878), # 170 (7.6251052732799005, 5.842391734180682, 8.34735588452217, 9.424293936379751, 9.498544015002288, 5.403431190123678, 4.781583849383328, 5.813823466834017, 10.47965484356274, 4.981541586536184, 5.896435872723688, 7.0843867999973416, 8.445892500963913), # 171 (7.322116040709912, 5.604106873521197, 8.025729949712423, 9.056736943040356, 9.131527607535416, 5.197798367626108, 4.5893755563180925, 5.593253732437379, 10.083939465153241, 4.784795802414712, 5.664480418739371, 6.80736611692476, 8.119037882406225), # 172 (7.012387382568372, 5.3614469798392195, 7.695438108132197, 8.679963817823166, 8.754782342409182, 4.9862269566119855, 4.39323039835281, 5.366209015509473, 9.676312750003792, 4.583496555522195, 5.427005842851849, 6.523515735456615, 7.783604158705848), # 173 (6.697018473019482, 5.115214981813045, 7.357748198870443, 8.295377174870158, 8.369743994825454, 4.76955390666536, 4.193822853606226, 5.133594570710425, 9.25841798644695, 4.3783694708809255, 5.1848776013858995, 6.233885136331535, 7.440864349139807), # 174 (6.377108486227438, 4.866213808120973, 7.013928061016112, 7.904379628323315, 7.977848339986097, 4.54861616737028, 3.9918274001970815, 4.896315652700355, 8.831898462815268, 4.170140173513194, 4.938961150666297, 5.939523800288141, 7.092091472985131), # 175 (6.053756596356447, 4.615246387441302, 6.66524553365815, 7.508373792324615, 7.580531153092983, 4.324250688310793, 3.787918516244121, 4.655277516139389, 8.3983974674413, 3.959534288441294, 4.690121947017822, 5.641481208065051, 6.738558549518844), # 176 (5.7280619775707065, 4.363115648452332, 6.3129684558855095, 7.108762281016037, 7.179228209347984, 4.097294419070949, 3.582770679866088, 4.411385415687646, 7.959558288657599, 3.7472774406875144, 4.43922544676525, 5.340806840400891, 6.381538598017975), # 177 (5.401123804034416, 4.11062451983236, 5.95836466678714, 6.7069477085395635, 6.775375283952959, 3.8685843092347962, 3.3770583691817246, 4.165544606005252, 7.51702421479672, 3.5340952552741505, 4.187137106233358, 5.038550178034279, 6.022304637759553), # 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 = ( (4, 8, 6, 6, 2, 1, 1, 5, 5, 0, 0, 2, 0, 12, 5, 4, 3, 5, 7, 4, 0, 3, 4, 0, 1, 0), # 0 (16, 19, 16, 17, 8, 6, 5, 9, 8, 1, 0, 2, 0, 20, 10, 10, 8, 9, 11, 5, 2, 5, 5, 1, 1, 0), # 1 (21, 29, 25, 27, 10, 9, 10, 11, 11, 3, 1, 2, 0, 34, 21, 15, 9, 17, 14, 9, 3, 9, 9, 2, 3, 0), # 2 (27, 38, 34, 36, 17, 11, 14, 14, 17, 3, 2, 4, 0, 43, 27, 22, 13, 27, 16, 13, 6, 14, 9, 4, 6, 0), # 3 (35, 48, 42, 47, 25, 14, 16, 19, 21, 4, 6, 6, 0, 51, 35, 26, 17, 37, 16, 17, 11, 17, 11, 9, 6, 0), # 4 (43, 55, 48, 49, 32, 18, 19, 23, 24, 4, 6, 9, 0, 60, 48, 31, 24, 41, 17, 22, 14, 20, 12, 11, 7, 0), # 5 (47, 69, 57, 58, 38, 19, 25, 29, 31, 6, 10, 9, 0, 65, 57, 34, 28, 51, 24, 26, 19, 24, 14, 15, 7, 0), # 6 (56, 81, 65, 64, 45, 24, 29, 36, 36, 8, 10, 10, 0, 74, 65, 39, 35, 53, 31, 29, 20, 25, 14, 15, 10, 0), # 7 (66, 87, 72, 75, 54, 27, 33, 39, 38, 11, 10, 10, 0, 82, 74, 46, 43, 62, 37, 32, 23, 28, 16, 17, 10, 0), # 8 (78, 100, 85, 78, 61, 31, 36, 46, 43, 13, 11, 11, 0, 98, 83, 55, 47, 71, 45, 36, 26, 29, 20, 18, 12, 0), # 9 (88, 110, 101, 91, 70, 34, 38, 53, 45, 15, 13, 11, 0, 109, 97, 62, 53, 79, 51, 39, 27, 33, 22, 21, 13, 0), # 10 (97, 121, 109, 98, 78, 36, 43, 56, 49, 16, 15, 11, 0, 124, 105, 70, 66, 86, 56, 42, 31, 39, 27, 23, 15, 0), # 11 (112, 132, 115, 107, 89, 43, 44, 60, 55, 18, 19, 13, 0, 135, 113, 75, 74, 100, 62, 47, 35, 42, 31, 25, 17, 0), # 12 (123, 141, 126, 114, 101, 50, 51, 64, 61, 19, 19, 13, 0, 146, 123, 88, 83, 114, 69, 55, 37, 45, 36, 26, 19, 0), # 13 (132, 152, 134, 127, 108, 57, 55, 73, 66, 21, 23, 14, 0, 160, 131, 95, 88, 126, 75, 62, 40, 47, 38, 27, 20, 0), # 14 (143, 166, 142, 139, 120, 63, 61, 75, 71, 25, 23, 14, 0, 173, 141, 98, 95, 137, 84, 71, 42, 54, 41, 32, 20, 0), # 15 (153, 187, 156, 143, 130, 72, 66, 79, 76, 27, 25, 16, 0, 182, 152, 109, 104, 142, 90, 75, 48, 56, 45, 34, 20, 0), # 16 (166, 203, 163, 155, 141, 76, 72, 83, 81, 28, 25, 18, 0, 204, 163, 119, 115, 160, 98, 82, 50, 62, 50, 36, 21, 0), # 17 (175, 224, 175, 163, 149, 80, 83, 91, 88, 31, 27, 19, 0, 217, 181, 128, 123, 168, 107, 90, 53, 67, 55, 40, 23, 0), # 18 (189, 234, 185, 176, 155, 83, 88, 97, 94, 32, 29, 22, 0, 229, 188, 144, 131, 186, 117, 93, 56, 71, 62, 41, 24, 0), # 19 (204, 245, 200, 187, 165, 87, 92, 102, 98, 35, 31, 23, 0, 239, 204, 161, 140, 194, 121, 98, 63, 79, 64, 45, 25, 0), # 20 (220, 258, 214, 198, 176, 91, 104, 108, 105, 38, 32, 26, 0, 262, 214, 177, 148, 205, 129, 101, 65, 88, 68, 50, 26, 0), # 21 (235, 273, 223, 211, 189, 95, 110, 117, 114, 41, 33, 26, 0, 282, 226, 182, 158, 221, 136, 105, 69, 93, 70, 54, 27, 0), # 22 (251, 280, 237, 226, 203, 103, 114, 121, 122, 42, 36, 27, 0, 303, 239, 189, 167, 240, 144, 107, 73, 99, 74, 57, 28, 0), # 23 (269, 293, 244, 244, 219, 109, 119, 126, 126, 46, 41, 28, 0, 322, 249, 200, 175, 254, 153, 114, 78, 107, 79, 59, 30, 0), # 24 (286, 315, 257, 264, 232, 114, 128, 131, 132, 46, 43, 28, 0, 334, 254, 209, 178, 273, 163, 120, 82, 110, 82, 60, 30, 0), # 25 (299, 331, 278, 286, 238, 117, 132, 136, 138, 50, 44, 30, 0, 349, 264, 218, 183, 279, 168, 124, 87, 116, 83, 63, 31, 0), # 26 (309, 353, 285, 299, 250, 120, 137, 139, 145, 53, 46, 30, 0, 365, 273, 232, 188, 293, 174, 127, 94, 122, 87, 65, 32, 0), # 27 (317, 373, 291, 309, 265, 122, 141, 146, 148, 54, 47, 32, 0, 381, 288, 242, 196, 305, 182, 134, 98, 126, 91, 69, 33, 0), # 28 (329, 382, 301, 322, 281, 127, 146, 155, 151, 55, 49, 33, 0, 393, 300, 249, 202, 315, 190, 143, 104, 129, 93, 73, 34, 0), # 29 (342, 395, 309, 334, 287, 135, 149, 159, 157, 56, 49, 37, 0, 407, 324, 257, 211, 326, 196, 153, 112, 134, 97, 74, 35, 0), # 30 (353, 411, 322, 346, 300, 141, 156, 162, 161, 58, 52, 40, 0, 414, 339, 263, 219, 338, 203, 160, 114, 146, 104, 77, 36, 0), # 31 (367, 420, 347, 356, 314, 145, 158, 166, 168, 62, 54, 41, 0, 424, 349, 276, 232, 347, 208, 169, 115, 150, 109, 78, 38, 0), # 32 (378, 438, 354, 374, 325, 151, 162, 175, 173, 65, 55, 43, 0, 442, 362, 283, 241, 358, 214, 171, 119, 157, 113, 83, 38, 0), # 33 (390, 455, 361, 391, 336, 157, 164, 184, 178, 68, 58, 44, 0, 452, 369, 299, 250, 378, 222, 180, 121, 166, 115, 85, 40, 0), # 34 (408, 473, 376, 404, 350, 160, 167, 191, 184, 73, 59, 44, 0, 462, 378, 307, 259, 389, 230, 187, 124, 174, 116, 87, 42, 0), # 35 (422, 486, 394, 416, 356, 165, 171, 196, 192, 75, 61, 45, 0, 477, 395, 314, 264, 400, 237, 193, 125, 180, 122, 89, 42, 0), # 36 (436, 496, 411, 433, 367, 169, 179, 201, 195, 76, 65, 46, 0, 487, 411, 320, 268, 412, 240, 202, 127, 182, 129, 94, 42, 0), # 37 (451, 508, 429, 448, 372, 176, 182, 208, 204, 79, 66, 52, 0, 502, 420, 329, 277, 422, 248, 209, 131, 186, 134, 96, 43, 0), # 38 (464, 527, 444, 460, 381, 181, 187, 214, 211, 82, 68, 53, 0, 519, 438, 338, 283, 436, 255, 214, 135, 190, 141, 99, 47, 0), # 39 (475, 537, 454, 463, 394, 188, 199, 218, 216, 86, 71, 55, 0, 538, 455, 348, 288, 455, 260, 222, 138, 195, 148, 104, 48, 0), # 40 (489, 551, 464, 474, 406, 196, 206, 228, 221, 87, 73, 57, 0, 551, 462, 357, 293, 466, 267, 226, 139, 197, 152, 109, 50, 0), # 41 (511, 560, 475, 488, 423, 204, 211, 235, 226, 89, 74, 58, 0, 565, 471, 366, 297, 475, 270, 229, 144, 206, 157, 111, 52, 0), # 42 (531, 574, 488, 500, 440, 210, 218, 238, 231, 90, 79, 59, 0, 584, 479, 375, 304, 489, 274, 242, 149, 210, 162, 113, 52, 0), # 43 (542, 588, 495, 505, 445, 211, 221, 244, 235, 92, 81, 59, 0, 601, 494, 380, 312, 503, 285, 246, 151, 215, 163, 115, 54, 0), # 44 (561, 597, 505, 517, 451, 221, 223, 248, 243, 95, 82, 60, 0, 614, 508, 389, 316, 517, 292, 249, 153, 225, 165, 115, 55, 0), # 45 (579, 615, 519, 526, 460, 229, 230, 251, 248, 97, 84, 60, 0, 622, 521, 397, 324, 529, 293, 251, 154, 226, 166, 117, 55, 0), # 46 (596, 627, 532, 544, 472, 232, 234, 259, 252, 98, 85, 61, 0, 648, 531, 410, 333, 547, 299, 253, 159, 234, 171, 123, 56, 0), # 47 (610, 643, 548, 563, 477, 235, 241, 265, 254, 100, 87, 62, 0, 663, 540, 419, 343, 557, 308, 258, 164, 238, 177, 126, 57, 0), # 48 (621, 655, 554, 577, 488, 238, 247, 267, 258, 103, 90, 62, 0, 673, 554, 426, 353, 567, 315, 267, 168, 244, 181, 127, 58, 0), # 49 (633, 670, 565, 588, 494, 244, 249, 273, 263, 105, 93, 62, 0, 693, 571, 431, 363, 577, 319, 274, 172, 249, 186, 128, 59, 0), # 50 (647, 673, 575, 599, 505, 248, 256, 276, 270, 106, 94, 63, 0, 707, 583, 442, 367, 591, 323, 277, 174, 253, 191, 128, 60, 0), # 51 (655, 681, 587, 611, 510, 252, 262, 280, 278, 113, 95, 65, 0, 721, 600, 453, 375, 599, 329, 282, 176, 255, 198, 128, 62, 0), # 52 (668, 693, 597, 627, 519, 259, 269, 282, 288, 114, 99, 66, 0, 732, 611, 464, 383, 609, 335, 289, 181, 262, 198, 133, 63, 0), # 53 (685, 708, 608, 641, 530, 266, 274, 282, 293, 115, 99, 67, 0, 747, 617, 479, 390, 615, 344, 294, 183, 268, 203, 137, 64, 0), # 54 (699, 723, 622, 649, 541, 272, 280, 286, 298, 116, 103, 67, 0, 759, 628, 491, 397, 625, 348, 303, 186, 274, 209, 138, 66, 0), # 55 (714, 733, 631, 660, 548, 274, 286, 290, 309, 118, 104, 68, 0, 781, 641, 504, 408, 633, 355, 308, 190, 279, 215, 140, 68, 0), # 56 (726, 747, 636, 672, 557, 280, 293, 294, 315, 120, 107, 69, 0, 787, 652, 511, 416, 646, 366, 315, 197, 287, 216, 143, 71, 0), # 57 (752, 752, 644, 688, 564, 285, 297, 298, 320, 123, 111, 70, 0, 797, 672, 521, 423, 653, 372, 320, 203, 292, 218, 147, 71, 0), # 58 (759, 768, 653, 704, 573, 288, 303, 300, 327, 125, 114, 72, 0, 809, 688, 534, 430, 666, 376, 324, 206, 301, 221, 151, 72, 0), # 59 (778, 782, 662, 717, 582, 291, 308, 302, 331, 127, 114, 72, 0, 817, 700, 545, 436, 677, 378, 328, 211, 307, 225, 154, 74, 0), # 60 (792, 795, 670, 729, 588, 295, 312, 309, 334, 128, 114, 75, 0, 832, 713, 553, 445, 690, 383, 331, 214, 315, 227, 159, 74, 0), # 61 (805, 812, 689, 742, 596, 297, 317, 311, 342, 133, 116, 77, 0, 846, 725, 566, 456, 702, 386, 335, 220, 321, 232, 164, 74, 0), # 62 (826, 823, 703, 755, 608, 301, 323, 318, 352, 136, 121, 78, 0, 854, 735, 574, 459, 715, 388, 335, 224, 331, 236, 165, 74, 0), # 63 (842, 834, 717, 770, 613, 306, 332, 322, 355, 142, 121, 80, 0, 866, 744, 587, 467, 725, 398, 340, 226, 338, 240, 165, 78, 0), # 64 (861, 842, 726, 783, 620, 308, 338, 327, 363, 145, 126, 82, 0, 880, 759, 597, 476, 736, 403, 348, 230, 343, 244, 165, 79, 0), # 65 (873, 860, 736, 793, 633, 313, 340, 331, 367, 148, 130, 82, 0, 889, 770, 610, 481, 750, 415, 352, 235, 351, 246, 165, 79, 0), # 66 (886, 875, 748, 804, 642, 324, 349, 332, 374, 152, 131, 84, 0, 903, 781, 619, 490, 767, 421, 355, 239, 356, 248, 165, 79, 0), # 67 (897, 886, 760, 809, 649, 327, 353, 335, 385, 156, 135, 85, 0, 918, 794, 633, 494, 783, 427, 363, 242, 363, 252, 174, 80, 0), # 68 (918, 898, 776, 817, 659, 338, 357, 337, 394, 158, 140, 85, 0, 935, 803, 643, 501, 799, 431, 369, 248, 365, 256, 177, 80, 0), # 69 (932, 910, 786, 832, 667, 343, 362, 340, 404, 159, 141, 85, 0, 946, 817, 649, 508, 812, 437, 374, 252, 368, 260, 178, 80, 0), # 70 (945, 918, 794, 842, 677, 346, 367, 345, 408, 161, 145, 87, 0, 962, 823, 655, 516, 820, 439, 380, 253, 372, 263, 180, 82, 0), # 71 (953, 934, 802, 851, 687, 353, 372, 350, 408, 165, 148, 90, 0, 971, 838, 664, 532, 838, 446, 383, 258, 375, 266, 181, 85, 0), # 72 (967, 944, 808, 860, 697, 358, 379, 351, 415, 168, 151, 92, 0, 982, 851, 678, 544, 844, 455, 388, 261, 383, 274, 183, 86, 0), # 73 (983, 955, 825, 873, 708, 362, 383, 355, 418, 169, 153, 92, 0, 998, 868, 689, 551, 858, 460, 393, 263, 387, 282, 185, 86, 0), # 74 (998, 975, 839, 878, 720, 365, 386, 358, 422, 171, 154, 92, 0, 1016, 880, 696, 562, 867, 465, 397, 268, 392, 284, 186, 87, 0), # 75 (1016, 986, 851, 893, 733, 369, 394, 362, 424, 175, 159, 94, 0, 1026, 898, 704, 569, 876, 475, 401, 271, 397, 289, 188, 90, 0), # 76 (1033, 1001, 861, 908, 740, 380, 405, 367, 427, 176, 160, 96, 0, 1034, 909, 714, 580, 884, 478, 402, 275, 405, 293, 190, 91, 0), # 77 (1046, 1012, 871, 921, 753, 387, 412, 375, 434, 177, 162, 96, 0, 1047, 921, 728, 587, 899, 484, 407, 280, 406, 298, 192, 93, 0), # 78 (1064, 1029, 887, 934, 760, 395, 415, 378, 439, 179, 165, 98, 0, 1059, 932, 739, 590, 912, 484, 414, 285, 413, 304, 195, 94, 0), # 79 (1083, 1045, 902, 950, 769, 402, 419, 384, 443, 183, 170, 99, 0, 1074, 946, 746, 598, 926, 493, 419, 289, 417, 307, 199, 95, 0), # 80 (1101, 1060, 911, 963, 775, 404, 423, 387, 450, 184, 172, 102, 0, 1082, 956, 756, 610, 929, 499, 425, 291, 420, 311, 204, 96, 0), # 81 (1112, 1070, 925, 971, 784, 409, 430, 390, 455, 188, 174, 103, 0, 1103, 966, 764, 618, 938, 507, 433, 295, 425, 315, 205, 99, 0), # 82 (1126, 1080, 942, 984, 797, 418, 435, 397, 464, 190, 175, 105, 0, 1115, 978, 777, 626, 951, 511, 438, 298, 429, 317, 206, 100, 0), # 83 (1141, 1101, 953, 1002, 805, 425, 437, 401, 465, 191, 175, 106, 0, 1133, 989, 784, 634, 960, 517, 444, 298, 433, 321, 209, 101, 0), # 84 (1152, 1109, 970, 1017, 817, 431, 443, 402, 474, 193, 176, 109, 0, 1150, 1002, 796, 639, 970, 523, 448, 300, 436, 323, 211, 102, 0), # 85 (1166, 1122, 985, 1028, 822, 436, 446, 410, 481, 194, 176, 114, 0, 1157, 1022, 802, 646, 985, 529, 450, 304, 441, 326, 215, 103, 0), # 86 (1183, 1141, 993, 1038, 830, 439, 447, 414, 482, 197, 176, 115, 0, 1168, 1039, 817, 652, 1002, 534, 454, 308, 450, 330, 221, 104, 0), # 87 (1196, 1156, 1002, 1051, 843, 440, 452, 422, 486, 201, 178, 115, 0, 1178, 1052, 828, 657, 1011, 537, 455, 310, 455, 337, 224, 105, 0), # 88 (1216, 1172, 1016, 1073, 854, 443, 458, 427, 490, 201, 179, 116, 0, 1196, 1063, 839, 665, 1027, 542, 457, 320, 459, 339, 225, 105, 0), # 89 (1235, 1183, 1024, 1079, 863, 446, 464, 429, 496, 203, 179, 116, 0, 1210, 1078, 851, 673, 1037, 548, 463, 325, 468, 346, 228, 106, 0), # 90 (1245, 1196, 1039, 1087, 870, 453, 467, 431, 502, 205, 180, 118, 0, 1225, 1088, 860, 678, 1052, 549, 468, 327, 470, 347, 229, 108, 0), # 91 (1255, 1209, 1050, 1096, 883, 458, 472, 436, 510, 206, 181, 119, 0, 1244, 1098, 868, 684, 1057, 558, 473, 329, 474, 351, 229, 108, 0), # 92 (1265, 1220, 1061, 1109, 887, 461, 473, 440, 514, 211, 185, 120, 0, 1252, 1110, 877, 692, 1075, 565, 478, 331, 480, 358, 231, 108, 0), # 93 (1278, 1225, 1070, 1115, 895, 466, 480, 445, 520, 211, 185, 121, 0, 1263, 1116, 892, 702, 1085, 573, 486, 335, 484, 361, 238, 109, 0), # 94 (1299, 1229, 1079, 1127, 903, 473, 484, 448, 527, 217, 186, 123, 0, 1274, 1136, 900, 710, 1095, 573, 489, 339, 489, 364, 240, 109, 0), # 95 (1304, 1240, 1086, 1140, 918, 476, 489, 453, 532, 219, 187, 127, 0, 1291, 1145, 910, 718, 1101, 577, 493, 344, 493, 366, 245, 109, 0), # 96 (1323, 1246, 1096, 1152, 933, 479, 493, 454, 537, 223, 188, 127, 0, 1305, 1151, 919, 722, 1113, 584, 499, 348, 497, 371, 248, 110, 0), # 97 (1338, 1260, 1102, 1168, 944, 487, 497, 460, 544, 225, 188, 128, 0, 1322, 1159, 927, 733, 1122, 587, 501, 349, 500, 372, 250, 110, 0), # 98 (1352, 1273, 1113, 1179, 961, 492, 501, 462, 550, 230, 189, 129, 0, 1339, 1170, 945, 745, 1139, 590, 505, 356, 507, 375, 253, 110, 0), # 99 (1362, 1288, 1124, 1196, 973, 497, 506, 468, 552, 231, 190, 129, 0, 1356, 1180, 964, 753, 1149, 596, 509, 361, 514, 377, 258, 110, 0), # 100 (1375, 1304, 1132, 1204, 980, 501, 513, 472, 558, 232, 190, 129, 0, 1370, 1188, 975, 759, 1161, 604, 512, 363, 518, 380, 258, 111, 0), # 101 (1388, 1320, 1137, 1210, 990, 505, 517, 477, 559, 232, 194, 130, 0, 1382, 1199, 983, 764, 1170, 611, 516, 366, 524, 383, 260, 114, 0), # 102 (1404, 1331, 1147, 1223, 1003, 510, 523, 483, 564, 233, 195, 131, 0, 1395, 1212, 994, 773, 1183, 614, 521, 369, 527, 387, 261, 115, 0), # 103 (1414, 1344, 1163, 1232, 1016, 515, 527, 485, 567, 235, 197, 132, 0, 1412, 1222, 997, 783, 1191, 618, 524, 372, 532, 391, 264, 116, 0), # 104 (1430, 1358, 1174, 1248, 1031, 519, 532, 490, 576, 235, 198, 132, 0, 1421, 1236, 1007, 792, 1201, 618, 531, 378, 537, 394, 265, 117, 0), # 105 (1445, 1374, 1184, 1260, 1037, 524, 535, 491, 581, 236, 198, 133, 0, 1430, 1245, 1017, 798, 1208, 623, 538, 384, 550, 401, 268, 117, 0), # 106 (1454, 1387, 1194, 1274, 1049, 528, 543, 494, 587, 241, 200, 134, 0, 1446, 1261, 1025, 804, 1218, 629, 545, 390, 554, 404, 270, 119, 0), # 107 (1470, 1402, 1202, 1279, 1056, 537, 546, 498, 593, 241, 202, 134, 0, 1459, 1273, 1030, 808, 1231, 631, 547, 390, 558, 408, 271, 119, 0), # 108 (1481, 1411, 1214, 1290, 1064, 541, 553, 503, 598, 243, 202, 134, 0, 1473, 1279, 1036, 810, 1237, 635, 551, 393, 561, 416, 272, 119, 0), # 109 (1498, 1422, 1227, 1306, 1077, 546, 557, 505, 604, 243, 202, 136, 0, 1482, 1292, 1046, 814, 1246, 640, 556, 396, 567, 418, 273, 119, 0), # 110 (1515, 1435, 1234, 1313, 1084, 551, 559, 509, 608, 245, 203, 136, 0, 1492, 1303, 1057, 823, 1256, 644, 560, 398, 572, 422, 278, 119, 0), # 111 (1528, 1448, 1245, 1318, 1091, 554, 562, 510, 614, 246, 205, 138, 0, 1500, 1318, 1062, 831, 1264, 650, 564, 399, 575, 425, 279, 121, 0), # 112 (1538, 1459, 1252, 1329, 1100, 556, 567, 512, 620, 247, 207, 141, 0, 1520, 1326, 1067, 835, 1274, 653, 566, 406, 578, 429, 281, 121, 0), # 113 (1551, 1471, 1264, 1337, 1110, 560, 572, 512, 623, 249, 209, 141, 0, 1525, 1341, 1075, 841, 1289, 656, 574, 407, 583, 432, 281, 121, 0), # 114 (1560, 1478, 1271, 1343, 1125, 569, 574, 518, 628, 253, 210, 144, 0, 1535, 1358, 1086, 844, 1302, 662, 579, 411, 589, 438, 281, 121, 0), # 115 (1571, 1490, 1280, 1355, 1129, 573, 580, 521, 632, 257, 212, 144, 0, 1546, 1375, 1093, 849, 1310, 667, 582, 414, 596, 439, 281, 121, 0), # 116 (1578, 1501, 1290, 1367, 1142, 576, 582, 522, 638, 260, 215, 145, 0, 1558, 1385, 1103, 850, 1324, 671, 587, 421, 599, 442, 285, 122, 0), # 117 (1589, 1512, 1298, 1375, 1153, 581, 585, 524, 639, 263, 215, 146, 0, 1570, 1400, 1111, 854, 1338, 674, 588, 428, 603, 446, 286, 125, 0), # 118 (1597, 1521, 1308, 1385, 1161, 586, 586, 527, 644, 264, 217, 147, 0, 1585, 1412, 1117, 859, 1351, 680, 591, 432, 608, 450, 287, 127, 0), # 119 (1611, 1533, 1318, 1398, 1168, 593, 591, 529, 650, 269, 218, 147, 0, 1601, 1427, 1120, 867, 1357, 683, 595, 434, 611, 453, 290, 129, 0), # 120 (1625, 1536, 1330, 1407, 1181, 598, 598, 533, 654, 270, 220, 150, 0, 1613, 1439, 1127, 874, 1365, 686, 596, 437, 619, 453, 291, 129, 0), # 121 (1634, 1546, 1339, 1415, 1189, 602, 604, 537, 663, 275, 223, 153, 0, 1622, 1448, 1136, 882, 1372, 693, 599, 438, 623, 457, 292, 130, 0), # 122 (1648, 1555, 1348, 1427, 1196, 605, 612, 540, 666, 277, 225, 153, 0, 1633, 1457, 1146, 890, 1381, 699, 602, 444, 632, 462, 293, 130, 0), # 123 (1654, 1562, 1359, 1442, 1205, 611, 617, 544, 673, 278, 227, 153, 0, 1647, 1472, 1153, 894, 1393, 705, 607, 447, 637, 466, 293, 130, 0), # 124 (1665, 1565, 1368, 1453, 1216, 614, 626, 546, 678, 279, 230, 154, 0, 1655, 1481, 1163, 902, 1401, 707, 610, 454, 641, 470, 296, 130, 0), # 125 (1676, 1571, 1379, 1464, 1224, 617, 629, 549, 683, 279, 232, 155, 0, 1670, 1489, 1171, 907, 1417, 712, 611, 457, 646, 473, 298, 133, 0), # 126 (1686, 1579, 1389, 1472, 1236, 618, 633, 552, 691, 280, 233, 157, 0, 1681, 1501, 1178, 910, 1427, 717, 613, 458, 649, 477, 302, 133, 0), # 127 (1697, 1592, 1402, 1483, 1251, 621, 636, 555, 695, 282, 236, 159, 0, 1695, 1513, 1184, 916, 1433, 720, 617, 461, 653, 483, 304, 134, 0), # 128 (1711, 1600, 1417, 1492, 1259, 630, 640, 564, 700, 285, 238, 160, 0, 1706, 1524, 1194, 922, 1446, 724, 620, 465, 660, 486, 307, 135, 0), # 129 (1725, 1606, 1424, 1502, 1266, 637, 643, 566, 705, 285, 243, 160, 0, 1725, 1530, 1201, 924, 1458, 730, 625, 470, 663, 491, 309, 135, 0), # 130 (1741, 1613, 1438, 1510, 1273, 640, 644, 567, 709, 285, 247, 162, 0, 1741, 1542, 1207, 935, 1472, 742, 629, 472, 669, 497, 312, 136, 0), # 131 (1750, 1617, 1447, 1517, 1283, 642, 649, 568, 713, 287, 250, 163, 0, 1755, 1553, 1215, 942, 1482, 745, 635, 475, 670, 499, 313, 137, 0), # 132 (1764, 1625, 1456, 1522, 1295, 647, 652, 571, 719, 287, 250, 164, 0, 1768, 1563, 1223, 951, 1486, 745, 636, 479, 675, 502, 314, 139, 0), # 133 (1771, 1633, 1463, 1529, 1311, 652, 654, 572, 725, 288, 253, 166, 0, 1779, 1577, 1227, 954, 1497, 747, 643, 485, 685, 504, 316, 140, 0), # 134 (1781, 1640, 1472, 1539, 1321, 653, 658, 577, 728, 288, 255, 166, 0, 1796, 1587, 1234, 963, 1510, 754, 644, 490, 689, 508, 317, 140, 0), # 135 (1792, 1649, 1481, 1555, 1328, 656, 658, 580, 736, 290, 259, 166, 0, 1804, 1598, 1241, 972, 1527, 757, 650, 493, 692, 510, 320, 141, 0), # 136 (1812, 1655, 1492, 1563, 1335, 660, 661, 586, 739, 291, 260, 167, 0, 1817, 1611, 1250, 977, 1536, 762, 655, 498, 696, 515, 321, 142, 0), # 137 (1818, 1659, 1503, 1569, 1341, 663, 665, 590, 745, 292, 264, 168, 0, 1838, 1620, 1259, 982, 1549, 766, 661, 499, 699, 519, 325, 143, 0), # 138 (1828, 1668, 1516, 1580, 1349, 671, 668, 599, 752, 294, 264, 169, 0, 1856, 1635, 1274, 983, 1558, 770, 664, 504, 702, 522, 327, 143, 0), # 139 (1834, 1677, 1523, 1591, 1358, 674, 672, 605, 753, 295, 265, 170, 0, 1874, 1645, 1277, 986, 1567, 772, 669, 510, 706, 526, 330, 143, 0), # 140 (1842, 1687, 1535, 1600, 1366, 676, 673, 606, 758, 298, 268, 171, 0, 1890, 1664, 1284, 992, 1575, 778, 673, 512, 713, 530, 331, 143, 0), # 141 (1849, 1693, 1546, 1613, 1380, 683, 673, 610, 764, 302, 270, 171, 0, 1903, 1672, 1288, 999, 1587, 781, 676, 517, 716, 533, 335, 145, 0), # 142 (1856, 1699, 1558, 1622, 1387, 686, 677, 612, 767, 303, 270, 171, 0, 1915, 1675, 1298, 1003, 1598, 784, 680, 517, 719, 535, 338, 146, 0), # 143 (1865, 1704, 1572, 1631, 1395, 689, 678, 615, 771, 304, 271, 171, 0, 1921, 1687, 1306, 1008, 1609, 789, 684, 520, 724, 536, 339, 147, 0), # 144 (1882, 1708, 1586, 1637, 1406, 692, 679, 618, 775, 305, 273, 171, 0, 1933, 1699, 1311, 1013, 1616, 794, 688, 522, 724, 539, 340, 147, 0), # 145 (1903, 1715, 1592, 1650, 1410, 696, 683, 625, 778, 306, 275, 172, 0, 1944, 1710, 1316, 1017, 1627, 796, 691, 526, 727, 546, 341, 147, 0), # 146 (1912, 1723, 1601, 1665, 1421, 700, 686, 629, 779, 307, 276, 174, 0, 1953, 1723, 1322, 1020, 1638, 802, 694, 530, 734, 549, 344, 148, 0), # 147 (1926, 1729, 1609, 1675, 1431, 709, 687, 632, 783, 311, 277, 174, 0, 1964, 1735, 1329, 1023, 1645, 808, 697, 534, 741, 551, 349, 148, 0), # 148 (1936, 1733, 1617, 1686, 1438, 713, 688, 636, 788, 312, 280, 174, 0, 1972, 1743, 1334, 1028, 1658, 813, 703, 539, 747, 553, 351, 148, 0), # 149 (1947, 1742, 1624, 1699, 1451, 717, 688, 639, 793, 313, 281, 174, 0, 1980, 1755, 1339, 1035, 1669, 817, 705, 540, 749, 555, 353, 148, 0), # 150 (1957, 1754, 1640, 1705, 1461, 723, 693, 645, 799, 314, 282, 176, 0, 1991, 1762, 1346, 1041, 1678, 822, 707, 544, 751, 557, 354, 148, 0), # 151 (1970, 1767, 1652, 1714, 1467, 732, 696, 649, 804, 315, 284, 177, 0, 2007, 1776, 1349, 1046, 1693, 826, 712, 548, 753, 560, 358, 149, 0), # 152 (1978, 1781, 1658, 1723, 1478, 737, 699, 650, 808, 317, 284, 179, 0, 2011, 1786, 1360, 1050, 1702, 831, 715, 549, 756, 565, 359, 150, 0), # 153 (1984, 1792, 1667, 1731, 1489, 738, 704, 656, 814, 320, 288, 179, 0, 2025, 1795, 1370, 1054, 1714, 833, 720, 552, 761, 568, 361, 150, 0), # 154 (1993, 1803, 1677, 1734, 1500, 738, 710, 659, 816, 322, 291, 180, 0, 2042, 1797, 1378, 1057, 1720, 836, 722, 557, 765, 571, 361, 151, 0), # 155 (2006, 1813, 1681, 1751, 1511, 742, 712, 664, 819, 323, 292, 182, 0, 2052, 1807, 1385, 1061, 1730, 840, 728, 560, 773, 574, 364, 151, 0), # 156 (2016, 1822, 1691, 1763, 1517, 746, 714, 668, 824, 324, 293, 182, 0, 2063, 1817, 1391, 1066, 1740, 845, 733, 562, 779, 577, 366, 152, 0), # 157 (2029, 1825, 1698, 1783, 1528, 754, 716, 669, 829, 324, 293, 184, 0, 2076, 1829, 1397, 1077, 1753, 850, 733, 567, 783, 582, 367, 152, 0), # 158 (2044, 1835, 1708, 1792, 1536, 757, 721, 672, 832, 325, 294, 185, 0, 2087, 1834, 1401, 1084, 1770, 853, 738, 572, 788, 587, 367, 152, 0), # 159 (2053, 1849, 1716, 1799, 1551, 764, 722, 675, 836, 329, 295, 185, 0, 2103, 1838, 1408, 1090, 1781, 857, 741, 573, 790, 589, 369, 152, 0), # 160 (2063, 1857, 1728, 1806, 1564, 766, 728, 680, 837, 330, 295, 186, 0, 2113, 1848, 1417, 1095, 1793, 862, 744, 577, 793, 592, 370, 153, 0), # 161 (2074, 1868, 1743, 1819, 1577, 767, 732, 683, 838, 332, 296, 186, 0, 2121, 1852, 1426, 1097, 1801, 866, 745, 578, 797, 597, 371, 156, 0), # 162 (2089, 1872, 1752, 1827, 1581, 769, 734, 685, 843, 333, 296, 187, 0, 2134, 1859, 1435, 1101, 1808, 870, 745, 581, 800, 601, 372, 157, 0), # 163 (2095, 1878, 1761, 1841, 1590, 772, 738, 688, 847, 334, 298, 187, 0, 2144, 1864, 1440, 1103, 1817, 871, 751, 582, 802, 606, 375, 158, 0), # 164 (2104, 1884, 1771, 1850, 1603, 775, 743, 691, 849, 335, 299, 187, 0, 2149, 1869, 1447, 1107, 1825, 877, 754, 584, 806, 606, 377, 159, 0), # 165 (2114, 1889, 1779, 1854, 1615, 777, 746, 696, 856, 337, 300, 187, 0, 2155, 1877, 1449, 1112, 1830, 880, 761, 587, 808, 610, 381, 160, 0), # 166 (2126, 1892, 1785, 1865, 1619, 784, 748, 701, 859, 340, 300, 187, 0, 2171, 1883, 1454, 1113, 1839, 885, 762, 589, 814, 614, 382, 160, 0), # 167 (2133, 1898, 1790, 1872, 1624, 787, 750, 707, 862, 345, 302, 188, 0, 2179, 1888, 1459, 1117, 1847, 886, 766, 589, 814, 617, 385, 160, 0), # 168 (2135, 1903, 1795, 1878, 1632, 788, 752, 708, 866, 345, 304, 188, 0, 2183, 1899, 1466, 1119, 1853, 889, 770, 590, 818, 619, 389, 162, 0), # 169 (2146, 1909, 1804, 1883, 1640, 790, 757, 711, 869, 345, 305, 188, 0, 2192, 1905, 1471, 1128, 1857, 890, 772, 595, 822, 623, 390, 163, 0), # 170 (2158, 1914, 1808, 1890, 1646, 796, 762, 713, 871, 346, 306, 188, 0, 2200, 1913, 1473, 1134, 1866, 892, 775, 595, 827, 624, 391, 164, 0), # 171 (2166, 1917, 1815, 1895, 1648, 797, 764, 714, 876, 347, 306, 188, 0, 2206, 1915, 1478, 1137, 1872, 895, 778, 599, 830, 627, 392, 164, 0), # 172 (2176, 1922, 1823, 1900, 1661, 800, 765, 718, 879, 348, 306, 188, 0, 2211, 1923, 1484, 1141, 1875, 897, 781, 603, 833, 632, 394, 166, 0), # 173 (2183, 1926, 1824, 1909, 1672, 803, 767, 719, 879, 348, 308, 188, 0, 2216, 1930, 1495, 1145, 1879, 900, 783, 603, 835, 632, 394, 166, 0), # 174 (2188, 1930, 1830, 1914, 1677, 804, 769, 721, 888, 348, 309, 188, 0, 2225, 1933, 1497, 1147, 1885, 902, 783, 605, 836, 635, 398, 167, 0), # 175 (2196, 1933, 1832, 1923, 1684, 808, 771, 722, 888, 349, 312, 188, 0, 2232, 1940, 1500, 1149, 1888, 905, 786, 607, 837, 637, 400, 167, 0), # 176 (2205, 1936, 1838, 1925, 1689, 809, 773, 722, 895, 350, 313, 188, 0, 2244, 1948, 1502, 1152, 1890, 907, 789, 608, 839, 639, 401, 167, 0), # 177 (2208, 1938, 1848, 1925, 1695, 811, 773, 725, 897, 351, 315, 188, 0, 2254, 1950, 1506, 1154, 1893, 910, 790, 612, 841, 641, 403, 167, 0), # 178 (2208, 1938, 1848, 1925, 1695, 811, 773, 725, 897, 351, 315, 188, 0, 2254, 1950, 1506, 1154, 1893, 910, 790, 612, 841, 641, 403, 167, 0), # 179 ) passenger_arriving_rate = ( (7.029211809720476, 7.090786984939564, 6.079830434547925, 6.525401162556605, 5.184373233768971, 2.563234861163827, 2.9022249307617405, 2.7143527675713304, 2.8420462290117365, 1.3853052554328298, 0.9812285382399741, 0.571423425802387, 0.0, 7.117432297609708, 6.285657683826256, 4.90614269119987, 4.155915766298489, 5.684092458023473, 3.8000938745998627, 2.9022249307617405, 1.8308820436884476, 2.5921866168844856, 2.175133720852202, 1.2159660869095852, 0.6446169986308695, 0.0), # 0 (7.496058012827964, 7.558911224152441, 6.4812376898851785, 6.956401465940448, 5.527657648309288, 2.7325532603014207, 3.093628258884586, 2.893049671694997, 3.0297144856220246, 1.4766432422970026, 1.0460557650564308, 0.6091419437616749, 0.0, 7.587708306415797, 6.700561381378422, 5.230278825282154, 4.429929726891007, 6.059428971244049, 4.050269540372995, 3.093628258884586, 1.9518237573581576, 2.763828824154644, 2.3188004886468163, 1.2962475379770357, 0.687173747650222, 0.0), # 1 (7.9614122125716245, 8.025177635976757, 6.881049333138649, 7.385687089898034, 5.869698775499761, 2.9011961768518306, 3.284272955572493, 3.071031394610912, 3.2166338432095234, 1.5676198212571917, 1.1106254013811399, 0.6467104760728565, 0.0, 8.056110759493567, 7.113815236801421, 5.553127006905699, 4.702859463771574, 6.433267686419047, 4.2994439524552766, 3.284272955572493, 2.0722829834655934, 2.9348493877498805, 2.4618956966326784, 1.37620986662773, 0.7295616032706144, 0.0), # 2 (8.423460910405188, 8.487736310818441, 7.277679347539831, 7.811555227908678, 6.209150897601775, 3.0684948417778424, 3.473402549153569, 3.2475923418717962, 3.4020630750965104, 1.657873944449164, 1.1746812960930562, 0.6839799965752206, 0.0, 8.520781928755916, 7.523779962327425, 5.873406480465281, 4.97362183334749, 6.804126150193021, 4.5466292786205145, 3.473402549153569, 2.191782029841316, 3.1045754488008876, 2.6038517426362264, 1.455535869507966, 0.7716123918925856, 0.0), # 3 (8.880390607782374, 8.94473733908341, 7.669541716320211, 8.232303073451698, 6.5446682968767265, 3.233780486042246, 3.6602605679559215, 3.4220269190303676, 3.585260954605263, 1.7470445640086882, 1.2379672980711345, 0.7208014791080559, 0.0, 8.979864086115745, 7.928816270188614, 6.189836490355671, 5.241133692026064, 7.170521909210526, 4.790837686642515, 3.6602605679559215, 2.30984320431589, 3.2723341484383632, 2.7441010244839, 1.5339083432640421, 0.8131579399166738, 0.0), # 4 (9.330387806156915, 9.394330811177607, 8.055050422711272, 8.646227820006413, 6.874905255585995, 3.396384340607826, 3.844090540307657, 3.593629531639346, 3.765486255058061, 1.8347706320715327, 1.300227256194331, 0.7570258975106506, 0.0, 9.43149950348596, 8.327284872617156, 6.501136280971655, 5.504311896214597, 7.530972510116122, 5.031081344295084, 3.844090540307657, 2.4259888147198754, 3.4374526277929975, 2.8820759400021383, 1.6110100845422546, 0.8540300737434189, 0.0), # 5 (9.771639006982534, 9.834666817506942, 8.43261944994451, 9.051626661052135, 7.198516055990973, 3.5556376364373725, 4.024135994536884, 3.7616945852514516, 3.9419977497771805, 1.920691100773466, 1.3612050193415997, 0.7925042256222944, 0.0, 9.87383045277945, 8.717546481845236, 6.806025096707997, 5.762073302320396, 7.883995499554361, 5.266372419352033, 4.024135994536884, 2.5397411688838374, 3.5992580279954867, 3.017208887017379, 1.6865238899889023, 0.8940606197733586, 0.0), # 6 (10.202330711712957, 10.263895448477353, 8.800662781251408, 9.446796790068186, 7.514154980353052, 3.710871604493673, 4.19964045897171, 3.9255164854194056, 4.1140542120849, 2.004444922250256, 1.4206444363918964, 0.8270874372822752, 0.0, 10.304999205909127, 9.097961810105026, 7.103222181959481, 6.013334766750766, 8.2281084241698, 5.495723079587168, 4.19964045897171, 2.6506225746383376, 3.757077490176526, 3.148932263356063, 1.7601325562502819, 0.9330814044070321, 0.0), # 7 (10.62064942180191, 10.68016679449476, 9.157594399863463, 9.830035400533875, 7.820476310933614, 3.8614174757395103, 4.369847461940239, 4.0843896376959234, 4.280914415303496, 2.0856710486376717, 1.4782893562241752, 0.8606265063298821, 0.0, 10.723148034787885, 9.466891569628702, 7.391446781120876, 6.257013145913014, 8.561828830606991, 5.718145492774292, 4.369847461940239, 2.758155339813936, 3.910238155466807, 3.276678466844626, 1.831518879972693, 0.9709242540449783, 0.0), # 8 (11.02478163870312, 11.081630945965095, 9.501828289012156, 10.199639685928528, 8.116134329994049, 4.006606481137679, 4.534000531770584, 4.237608447633729, 4.441837132755248, 2.1640084320714803, 1.5338836277173917, 0.8929724066044035, 0.0, 11.126419211328628, 9.822696472648436, 7.669418138586958, 6.49202529621444, 8.883674265510496, 5.932651826687221, 4.534000531770584, 2.861861772241199, 4.058067164997024, 3.3998798953095104, 1.9003656578024313, 1.0074209950877362, 0.0), # 9 (11.412913863870306, 11.46643799329428, 9.83177843192898, 10.553906839731454, 8.399783319795748, 4.145769851650964, 4.691343196790848, 4.38446732078554, 4.596081137762433, 2.2390960246874507, 1.5871710997505006, 0.923976111945128, 0.0, 11.512955007444255, 10.163737231396405, 7.935855498752503, 6.717288074062351, 9.192162275524867, 6.138254249099756, 4.691343196790848, 2.961264179750688, 4.199891659897874, 3.517968946577152, 1.9663556863857963, 1.0424034539358438, 0.0), # 10 (11.783232598757209, 11.832738026888249, 10.145858811845418, 10.891134055421968, 8.670077562600099, 4.278238818242151, 4.841118985329142, 4.524260662704076, 4.7429052036473305, 2.3105727786213524, 1.6378956212024585, 0.9534885961913449, 0.0, 11.880897695047656, 10.488374558104791, 8.189478106012292, 6.931718335864056, 9.485810407294661, 6.333964927785706, 4.841118985329142, 3.055884870172965, 4.3350387813000495, 3.63037801847399, 2.0291717623690837, 1.075703456989841, 0.0), # 11 (12.133924344817538, 12.178681137152912, 10.442483411992965, 11.209618526479394, 8.925671340668487, 4.403344611874027, 4.9825714257135685, 4.656282878942054, 4.881568103732217, 2.378077646008951, 1.6858010409522184, 0.9813608331823415, 0.0, 12.22838954605175, 10.794969165005755, 8.429005204761092, 7.134232938026852, 9.763136207464434, 6.518796030518876, 4.9825714257135685, 3.1452461513385908, 4.462835670334243, 3.7365395088264655, 2.0884966823985933, 1.107152830650265, 0.0), # 12 (12.463175603505027, 12.502417414494213, 10.720066215603106, 11.507657446383048, 9.165218936262296, 4.520418463509383, 5.11494404627224, 4.779828375052198, 5.011328611339368, 2.441249578986017, 1.7306312078787365, 1.0074437967574077, 0.0, 12.55357283236943, 11.08188176433148, 8.653156039393682, 7.323748736958049, 10.022657222678736, 6.691759725073078, 5.11494404627224, 3.228870331078131, 4.582609468131148, 3.8358858154610167, 2.1440132431206216, 1.136583401317656, 0.0), # 13 (12.769172876273403, 12.802096949318072, 10.977021205907338, 11.783548008612232, 9.387374631642924, 4.6287916041110035, 5.237480375333263, 4.894191556587227, 5.131445499791063, 2.4997275296883177, 1.7721299708609668, 1.0315884607558323, 0.0, 12.85458982591359, 11.347473068314153, 8.860649854304834, 7.499182589064952, 10.262890999582126, 6.8518681792221185, 5.237480375333263, 3.306279717222145, 4.693687315821462, 3.9278493362040785, 2.195404241181468, 1.1638269953925522, 0.0), # 14 (13.050102664576398, 13.075869832030413, 11.211762366137135, 12.035587406646286, 9.590792709071755, 4.72779526464168, 5.349423941224739, 4.998666829099858, 5.241177542409583, 2.5531504502516222, 1.810041178777865, 1.0536457990169035, 0.0, 13.129582798597134, 11.590103789185937, 9.050205893889325, 7.659451350754866, 10.482355084819165, 6.998133560739801, 5.349423941224739, 3.3769966176011996, 4.795396354535877, 4.0118624688820965, 2.242352473227427, 1.1887154392754924, 0.0), # 15 (13.30415146986772, 13.321886153037171, 11.422703679523998, 12.262072833964503, 9.774127450810177, 4.816760676064193, 5.450018272274784, 5.092548598142811, 5.339783512517201, 2.6011572928116995, 1.8441086805083868, 1.0734667853799098, 0.0, 13.376694022332964, 11.808134639179006, 9.220543402541933, 7.803471878435097, 10.679567025034402, 7.1295680373999355, 5.450018272274784, 3.440543340045852, 4.887063725405088, 4.087357611321502, 2.2845407359047996, 1.2110805593670158, 0.0), # 16 (13.529505793601107, 13.538296002744264, 11.608259129299412, 12.46130148404622, 9.936033139119584, 4.895019069341334, 5.538506896811498, 5.17513126926881, 5.426522183436193, 2.643387009504314, 1.874076324931487, 1.09090239368414, 0.0, 13.594065769033982, 11.999926330525538, 9.370381624657433, 7.9301610285129405, 10.853044366872385, 7.245183776976335, 5.538506896811498, 3.496442192386667, 4.968016569559792, 4.153767161348741, 2.3216518258598824, 1.2307541820676606, 0.0), # 17 (13.724352137230287, 13.723249471557619, 11.766842698694862, 12.631570550370744, 10.07516405626135, 4.961901675435895, 5.6141333431629965, 5.245709248030569, 5.500652328488845, 2.6794785524652385, 1.8996879609261188, 1.1058035977688838, 0.0, 13.779840310613086, 12.163839575457718, 9.498439804630594, 8.038435657395715, 11.00130465697769, 7.343992947242797, 5.6141333431629965, 3.5442154824542103, 5.037582028130675, 4.210523516790249, 2.3533685397389728, 1.2475681337779656, 0.0), # 18 (13.88687700220898, 13.874896649883173, 11.896868370941842, 12.77117722641738, 10.190174484496875, 5.0167397253106545, 5.676141139657377, 5.30357693998081, 5.561432720997431, 2.7090708738302403, 1.9206874373712384, 1.1180213714734282, 0.0, 13.932159918983176, 12.298235086207708, 9.603437186856192, 8.12721262149072, 11.122865441994861, 7.425007715973134, 5.676141139657377, 3.5833855180790386, 5.095087242248438, 4.257059075472461, 2.379373674188369, 1.2613542408984704, 0.0), # 19 (14.015266889990915, 13.991387628126835, 11.996750129271838, 12.87841870566547, 10.279718706087547, 5.058864449928407, 5.723773814622755, 5.348028750672253, 5.608122134284226, 2.731802925735086, 1.936818603145802, 1.1274066886370624, 0.0, 14.049166866057154, 12.401473575007685, 9.68409301572901, 8.195408777205257, 11.216244268568452, 7.487240250941153, 5.723773814622755, 3.6134746070917196, 5.139859353043773, 4.292806235221825, 2.399350025854368, 1.2719443298297126, 0.0), # 20 (14.107708302029813, 14.070872496694552, 12.064901956916339, 12.951592181594311, 10.34245100329475, 5.087607080251938, 5.756274896387231, 5.378359085657614, 5.63997934167151, 2.747313660315545, 1.9478253071287643, 1.133810523099076, 0.0, 14.12900342374791, 12.471915754089835, 9.739126535643821, 8.241940980946634, 11.27995868334302, 7.529702719920659, 5.756274896387231, 3.634005057322813, 5.171225501647375, 4.317197393864771, 2.412980391383268, 1.279170226972232, 0.0), # 21 (14.162387739779412, 14.111501345992236, 12.099737837106835, 12.988994847683228, 10.377025658379871, 5.102298847244033, 5.77288791327892, 5.393862350489618, 5.656263116481561, 2.7552420297073854, 1.9534513981990798, 1.1370838486987573, 0.0, 14.16981186396836, 12.50792233568633, 9.7672569909954, 8.265726089122154, 11.312526232963123, 7.551407290685465, 5.77288791327892, 3.644499176602881, 5.188512829189936, 4.329664949227744, 2.419947567421367, 1.282863758726567, 0.0), # 22 (14.182550708679697, 14.116311945587563, 12.104077046181986, 12.993677353395064, 10.385883252297091, 5.104166666666667, 5.774862801581538, 5.395538065843622, 5.658298909465021, 2.7561772953818022, 1.9541568753377396, 1.1374880506020426, 0.0, 14.175, 12.512368556622466, 9.770784376688697, 8.268531886145405, 11.316597818930042, 7.553753292181072, 5.774862801581538, 3.6458333333333335, 5.192941626148546, 4.331225784465023, 2.4208154092363974, 1.283301085962506, 0.0), # 23 (14.197417378247815, 14.113505864197531, 12.10336728395062, 12.99310104166667, 10.390900439373862, 5.104166666666667, 5.773777668845317, 5.393208333333334, 5.658026111111111, 2.755602716049383, 1.9540790684624023, 1.1373934156378602, 0.0, 14.175, 12.51132757201646, 9.77039534231201, 8.266808148148147, 11.316052222222222, 7.550491666666668, 5.773777668845317, 3.6458333333333335, 5.195450219686931, 4.331033680555557, 2.4206734567901242, 1.2830459876543212, 0.0), # 24 (14.211970122296213, 14.10797467992684, 12.101966163694561, 12.991960841049384, 10.39580728255487, 5.104166666666667, 5.771639231824418, 5.388631687242799, 5.657487139917696, 2.754471593507088, 1.9539247931994848, 1.1372065996037193, 0.0, 14.175, 12.509272595640908, 9.769623965997424, 8.263414780521263, 11.314974279835392, 7.544084362139919, 5.771639231824418, 3.6458333333333335, 5.197903641277435, 4.330653613683129, 2.4203932327389124, 1.2825431527206221, 0.0), # 25 (14.226207826667249, 14.099802892089624, 12.099892889803387, 12.990269714506173, 10.400603610526364, 5.104166666666667, 5.768480702816105, 5.381894547325103, 5.65668890946502, 2.7528027480566992, 1.9536954462318665, 1.136930163084896, 0.0, 14.175, 12.506231793933855, 9.768477231159332, 8.258408244170097, 11.31337781893004, 7.534652366255146, 5.768480702816105, 3.6458333333333335, 5.200301805263182, 4.330089904835392, 2.4199785779606775, 1.2818002629172387, 0.0), # 26 (14.240129377203292, 14.089075, 12.097166666666668, 12.988040625, 10.405289251974601, 5.104166666666667, 5.7643352941176484, 5.3730833333333345, 5.655638333333333, 2.7506150000000003, 1.9533924242424245, 1.1365666666666672, 0.0, 14.175, 12.502233333333336, 9.766962121212122, 8.251845, 11.311276666666666, 7.5223166666666685, 5.7643352941176484, 3.6458333333333335, 5.2026446259873005, 4.329346875000001, 2.4194333333333335, 1.280825, 0.0), # 27 (14.253733659746702, 14.075875502972108, 12.093806698673983, 12.985286535493827, 10.40986403558584, 5.104166666666667, 5.759236218026306, 5.362284465020577, 5.654342325102881, 2.7479271696387753, 1.9530171239140377, 1.1361186709343092, 0.0, 14.175, 12.4973053802774, 9.765085619570188, 8.243781508916324, 11.308684650205763, 7.507198251028808, 5.759236218026306, 3.6458333333333335, 5.20493201779292, 4.32842884516461, 2.418761339734797, 1.2796250457247373, 0.0), # 28 (14.26701956013985, 14.060288900320074, 12.089832190214908, 12.982020408950618, 10.41432779004634, 5.104166666666667, 5.753216686839346, 5.349584362139918, 5.652807798353909, 2.7447580772748066, 1.952570941929584, 1.1355887364730988, 0.0, 14.175, 12.491476101204084, 9.76285470964792, 8.234274231824418, 11.305615596707819, 7.489418106995886, 5.753216686839346, 3.6458333333333335, 5.20716389502317, 4.327340136316874, 2.4179664380429817, 1.2782080818472796, 0.0), # 29 (14.279985964225098, 14.042399691358026, 12.085262345679013, 12.978255208333334, 10.418680344042354, 5.104166666666667, 5.746309912854031, 5.335069444444444, 5.651041666666666, 2.7411265432098775, 1.952055274971942, 1.1349794238683129, 0.0, 14.175, 12.48477366255144, 9.760276374859709, 8.223379629629632, 11.302083333333332, 7.469097222222222, 5.746309912854031, 3.6458333333333335, 5.209340172021177, 4.326085069444446, 2.4170524691358026, 1.276581790123457, 0.0), # 30 (14.292631757844802, 14.022292375400093, 12.080116369455878, 12.97400389660494, 10.422921526260142, 5.104166666666667, 5.7385491083676285, 5.318826131687244, 5.649050843621399, 2.737051387745771, 1.9514715197239891, 1.1342932937052284, 0.0, 14.175, 12.477226230757509, 9.757357598619945, 8.211154163237312, 11.298101687242799, 7.4463565843621415, 5.7385491083676285, 3.6458333333333335, 5.211460763130071, 4.324667965534981, 2.416023273891176, 1.2747538523090995, 0.0), # 31 (14.304955826841338, 14.000051451760402, 12.07441346593507, 12.969279436728398, 10.427051165385956, 5.104166666666667, 5.7299674856774, 5.3009408436214, 5.646842242798354, 2.7325514311842714, 1.950821072868604, 1.1335329065691209, 0.0, 14.175, 12.468861972260328, 9.754105364343019, 8.197654293552812, 11.293684485596708, 7.421317181069961, 5.7299674856774, 3.6458333333333335, 5.213525582692978, 4.3230931455761334, 2.4148826931870144, 1.272731950160037, 0.0), # 32 (14.316957057057056, 13.975761419753086, 12.068172839506175, 12.964094791666666, 10.431069090106059, 5.104166666666667, 5.720598257080611, 5.2815, 5.644422777777778, 2.7276454938271613, 1.9501053310886647, 1.1327008230452675, 0.0, 14.175, 12.459709053497942, 9.750526655443322, 8.182936481481482, 11.288845555555556, 7.394100000000001, 5.720598257080611, 3.6458333333333335, 5.215534545053029, 4.321364930555556, 2.413634567901235, 1.2705237654320989, 0.0), # 33 (14.328634334334335, 13.949506778692271, 12.061413694558757, 12.958462924382715, 10.434975129106702, 5.104166666666667, 5.710474634874527, 5.260590020576132, 5.641799362139919, 2.7223523959762237, 1.9493256910670491, 1.1317996037189455, 0.0, 14.175, 12.449795640908398, 9.746628455335244, 8.16705718792867, 11.283598724279837, 7.3648260288065845, 5.710474634874527, 3.6458333333333335, 5.217487564553351, 4.319487641460906, 2.4122827389117516, 1.2681369798811157, 0.0), # 34 (14.339986544515531, 13.92137202789209, 12.054155235482398, 12.952396797839505, 10.438769111074146, 5.104166666666667, 5.699629831356412, 5.238297325102881, 5.638978909465021, 2.7166909579332423, 1.9484835494866362, 1.1308318091754308, 0.0, 14.175, 12.439149900929737, 9.74241774743318, 8.150072873799726, 11.277957818930043, 7.333616255144034, 5.699629831356412, 3.6458333333333335, 5.219384555537073, 4.317465599279836, 2.41083104709648, 1.2655792752629174, 0.0), # 35 (14.35101257344301, 13.891441666666665, 12.04641666666667, 12.945909375, 10.442450864694647, 5.104166666666667, 5.68809705882353, 5.214708333333334, 5.635968333333333, 2.7106800000000004, 1.9475803030303034, 1.1298000000000004, 0.0, 14.175, 12.427800000000001, 9.737901515151515, 8.13204, 11.271936666666665, 7.300591666666668, 5.68809705882353, 3.6458333333333335, 5.221225432347324, 4.315303125000001, 2.409283333333334, 1.2628583333333334, 0.0), # 36 (14.361711306959135, 13.859800194330132, 12.038217192501145, 12.939013618827161, 10.44602021865446, 5.104166666666667, 5.675909529573146, 5.189909465020577, 5.632774547325103, 2.7043383424782816, 1.9466173483809293, 1.1287067367779304, 0.0, 14.175, 12.415774104557233, 9.733086741904645, 8.113015027434844, 11.265549094650206, 7.265873251028808, 5.675909529573146, 3.6458333333333335, 5.22301010932723, 4.313004539609055, 2.407643438500229, 1.259981835848194, 0.0), # 37 (14.372081630906267, 13.826532110196618, 12.029576017375401, 12.931722492283953, 10.449477001639845, 5.104166666666667, 5.663100455902526, 5.1639871399176975, 5.629404465020576, 2.6976848056698683, 1.9455960822213911, 1.1275545800944982, 0.0, 14.175, 12.403100381039478, 9.727980411106955, 8.093054417009604, 11.258808930041152, 7.229581995884776, 5.663100455902526, 3.6458333333333335, 5.224738500819923, 4.3105741640946516, 2.40591520347508, 1.2569574645633292, 0.0), # 38 (14.382122431126781, 13.791721913580247, 12.020512345679016, 12.924048958333334, 10.452821042337057, 5.104166666666667, 5.649703050108934, 5.137027777777778, 5.625865000000001, 2.690738209876544, 1.9445179012345684, 1.1263460905349796, 0.0, 14.175, 12.389806995884772, 9.722589506172842, 8.07221462962963, 11.251730000000002, 7.191838888888889, 5.649703050108934, 3.6458333333333335, 5.226410521168528, 4.308016319444445, 2.4041024691358035, 1.253792901234568, 0.0), # 39 (14.39183259346303, 13.755454103795152, 12.011045381801555, 12.916005979938273, 10.45605216943235, 5.104166666666667, 5.635750524489632, 5.1091177983539104, 5.622163065843623, 2.6835173754000925, 1.943384202103338, 1.125083828684652, 0.0, 14.175, 12.375922115531171, 9.71692101051669, 8.050552126200277, 11.244326131687245, 7.1527649176954755, 5.635750524489632, 3.6458333333333335, 5.228026084716175, 4.305335326646092, 2.4022090763603114, 1.2504958276177414, 0.0), # 40 (14.40121100375738, 13.717813180155463, 12.001194330132604, 12.90760652006173, 10.459170211611989, 5.104166666666667, 5.621276091341887, 5.080343621399178, 5.618305576131687, 2.676041122542296, 1.9421963815105796, 1.1237703551287916, 0.0, 14.175, 12.361473906416705, 9.710981907552897, 8.028123367626886, 11.236611152263373, 7.112481069958849, 5.621276091341887, 3.6458333333333335, 5.229585105805994, 4.302535506687244, 2.400238866026521, 1.2470739254686787, 0.0), # 41 (14.410256547852201, 13.678883641975311, 11.990978395061731, 12.89886354166667, 10.462174997562222, 5.104166666666667, 5.6063129629629636, 5.050791666666668, 5.614299444444446, 2.668328271604939, 1.9409558361391697, 1.122408230452675, 0.0, 14.175, 12.346490534979424, 9.704779180695848, 8.004984814814815, 11.228598888888891, 7.071108333333335, 5.6063129629629636, 3.6458333333333335, 5.231087498781111, 4.299621180555557, 2.3981956790123466, 1.2435348765432102, 0.0), # 42 (14.418968111589852, 13.638749988568819, 11.980416780978512, 12.889790007716051, 10.46506635596931, 5.104166666666667, 5.5908943516501255, 5.020548353909466, 5.61015158436214, 2.660397642889804, 1.9396639626719878, 1.1210000152415793, 0.0, 14.175, 12.331000167657372, 9.698319813359937, 7.981192928669412, 11.22030316872428, 7.0287676954732525, 5.5908943516501255, 3.6458333333333335, 5.232533177984655, 4.296596669238685, 2.3960833561957027, 1.2398863625971654, 0.0), # 43 (14.427344580812699, 13.597496719250115, 11.969528692272522, 12.880398881172843, 10.467844115519508, 5.104166666666667, 5.575053469700638, 4.98970010288066, 5.605868909465021, 2.652268056698675, 1.938322157791911, 1.1195482700807806, 0.0, 14.175, 12.315030970888586, 9.691610788959554, 7.9568041700960235, 11.211737818930041, 6.985580144032924, 5.575053469700638, 3.6458333333333335, 5.233922057759754, 4.293466293724282, 2.3939057384545044, 1.2361360653863744, 0.0), # 44 (14.435384841363105, 13.555208333333335, 11.958333333333336, 12.870703125000002, 10.470508104899077, 5.104166666666667, 5.558823529411765, 4.958333333333334, 5.601458333333333, 2.6439583333333343, 1.9369318181818187, 1.1180555555555556, 0.0, 14.175, 12.29861111111111, 9.684659090909092, 7.931875000000002, 11.202916666666667, 6.941666666666667, 5.558823529411765, 3.6458333333333335, 5.235254052449538, 4.290234375000002, 2.391666666666667, 1.232291666666667, 0.0), # 45 (14.443087779083434, 13.511969330132603, 11.946849908550526, 12.860715702160494, 10.47305815279427, 5.104166666666667, 5.542237743080772, 4.926534465020577, 5.596926769547324, 2.635487293095565, 1.9354943405245877, 1.1165244322511814, 0.0, 14.175, 12.281768754762993, 9.677471702622938, 7.906461879286693, 11.193853539094649, 6.897148251028808, 5.542237743080772, 3.6458333333333335, 5.236529076397135, 4.286905234053499, 2.3893699817101055, 1.228360848193873, 0.0), # 46 (14.45045227981605, 13.46786420896205, 11.935097622313673, 12.850449575617287, 10.475494087891343, 5.104166666666667, 5.525329323004923, 4.894389917695474, 5.592281131687244, 2.6268737562871523, 1.9340111215030973, 1.1149574607529342, 0.0, 14.175, 12.264532068282275, 9.670055607515485, 7.880621268861455, 11.184562263374488, 6.852145884773663, 5.525329323004923, 3.6458333333333335, 5.237747043945672, 4.283483191872429, 2.387019524462735, 1.2243512917238228, 0.0), # 47 (14.457477229403315, 13.422977469135803, 11.923095679012349, 12.839917708333335, 10.477815738876558, 5.104166666666667, 5.508131481481482, 4.861986111111112, 5.587528333333333, 2.618136543209877, 1.9324835578002246, 1.1133572016460909, 0.0, 14.175, 12.246929218106997, 9.662417789001124, 7.854409629629629, 11.175056666666666, 6.806780555555557, 5.508131481481482, 3.6458333333333335, 5.238907869438279, 4.279972569444446, 2.38461913580247, 1.2202706790123459, 0.0), # 48 (14.464161513687602, 13.377393609967992, 11.910863283036125, 12.829133063271607, 10.480022934436168, 5.104166666666667, 5.490677430807714, 4.829409465020577, 5.582675288065844, 2.6092944741655244, 1.930913046098849, 1.1117262155159278, 0.0, 14.175, 12.228988370675204, 9.654565230494246, 7.827883422496572, 11.165350576131688, 6.761173251028807, 5.490677430807714, 3.6458333333333335, 5.240011467218084, 4.276377687757203, 2.382172656607225, 1.2161266918152722, 0.0), # 49 (14.470504018511264, 13.33119713077275, 11.89841963877458, 12.81810860339506, 10.482115503256427, 5.104166666666667, 5.473000383280885, 4.796746399176955, 5.57772890946502, 2.6003663694558763, 1.9293009830818477, 1.1100670629477218, 0.0, 14.175, 12.210737692424937, 9.646504915409238, 7.8010991083676275, 11.15545781893004, 6.715444958847738, 5.473000383280885, 3.6458333333333335, 5.2410577516282135, 4.272702867798355, 2.379683927754916, 1.211927011888432, 0.0), # 50 (14.476503629716676, 13.284472530864198, 11.885783950617286, 12.806857291666669, 10.484093274023598, 5.104166666666667, 5.455133551198258, 4.764083333333335, 5.572696111111112, 2.5913710493827167, 1.9276487654320995, 1.1083823045267494, 0.0, 14.175, 12.192205349794241, 9.638243827160496, 7.774113148148149, 11.145392222222224, 6.669716666666668, 5.455133551198258, 3.6458333333333335, 5.242046637011799, 4.268952430555557, 2.377156790123457, 1.2076793209876546, 0.0), # 51 (14.482159233146191, 13.237304309556471, 11.87297542295382, 12.795392091049385, 10.485956075423934, 5.104166666666667, 5.437110146857097, 4.731506687242798, 5.567583806584363, 2.582327334247829, 1.9259577898324816, 1.1066745008382872, 0.0, 14.175, 12.173419509221157, 9.629788949162407, 7.746982002743485, 11.135167613168726, 6.624109362139918, 5.437110146857097, 3.6458333333333335, 5.242978037711967, 4.265130697016462, 2.3745950845907644, 1.2033913008687704, 0.0), # 52 (14.487469714642183, 13.189776966163697, 11.860013260173757, 12.783725964506175, 10.487703736143693, 5.104166666666667, 5.418963382554669, 4.699102880658437, 5.5623989094650215, 2.573254044352996, 1.9242294529658732, 1.104946212467612, 0.0, 14.175, 12.15440833714373, 9.621147264829364, 7.719762133058986, 11.124797818930043, 6.578744032921811, 5.418963382554669, 3.6458333333333335, 5.243851868071847, 4.261241988168726, 2.3720026520347517, 1.199070633287609, 0.0), # 53 (14.492433960047004, 13.141975000000002, 11.846916666666667, 12.771871875000002, 10.489336084869135, 5.104166666666667, 5.400726470588236, 4.6669583333333335, 5.557148333333334, 2.5641700000000007, 1.9224651515151516, 1.1032000000000002, 0.0, 14.175, 12.1352, 9.612325757575757, 7.69251, 11.114296666666668, 6.533741666666667, 5.400726470588236, 3.6458333333333335, 5.244668042434568, 4.257290625000001, 2.369383333333334, 1.1947250000000003, 0.0), # 54 (14.497050855203032, 13.093982910379516, 11.833704846822133, 12.759842785493827, 10.490852950286511, 5.104166666666667, 5.382432623255064, 4.6351594650205765, 5.551838991769547, 2.555094021490627, 1.9206662821631961, 1.101438424020729, 0.0, 14.175, 12.115822664228014, 9.603331410815981, 7.66528206447188, 11.103677983539095, 6.4892232510288075, 5.382432623255064, 3.6458333333333335, 5.2454264751432556, 4.253280928497944, 2.3667409693644266, 1.1903620827617745, 0.0), # 55 (14.501319285952622, 13.045885196616371, 11.820397005029724, 12.74765165895062, 10.492254161082082, 5.104166666666667, 5.3641150528524175, 4.603792695473252, 5.5464777983539095, 2.5460449291266585, 1.918834241592884, 1.099664045115074, 0.0, 14.175, 12.096304496265812, 9.59417120796442, 7.638134787379974, 11.092955596707819, 6.445309773662553, 5.3641150528524175, 3.6458333333333335, 5.246127080541041, 4.249217219650207, 2.3640794010059447, 1.1859895633287612, 0.0), # 56 (14.505238138138138, 12.997766358024693, 11.807012345679016, 12.735311458333335, 10.493539545942102, 5.104166666666667, 5.34580697167756, 4.572944444444445, 5.541071666666667, 2.5370415432098774, 1.9169704264870937, 1.097879423868313, 0.0, 14.175, 12.076673662551439, 9.584852132435467, 7.61112462962963, 11.082143333333335, 6.402122222222224, 5.34580697167756, 3.6458333333333335, 5.246769772971051, 4.245103819444446, 2.3614024691358035, 1.1816151234567904, 0.0), # 57 (14.508806297601952, 12.949710893918612, 11.79357007315958, 12.72283514660494, 10.494708933552829, 5.104166666666667, 5.3275415920277585, 4.5427011316872425, 5.535627510288066, 2.5281026840420675, 1.9150762335287033, 1.096087120865722, 0.0, 14.175, 12.05695832952294, 9.575381167643515, 7.584308052126201, 11.071255020576132, 6.35978158436214, 5.3275415920277585, 3.6458333333333335, 5.2473544667764145, 4.240945048868314, 2.3587140146319165, 1.1772464449016922, 0.0), # 58 (14.51202265018642, 12.901803303612255, 11.780089391860999, 12.710235686728396, 10.495762152600523, 5.104166666666667, 5.309352126200275, 4.513149176954733, 5.530152242798355, 2.5192471719250125, 1.9131530594005905, 1.0942896966925775, 0.0, 14.175, 12.037186663618352, 9.565765297002951, 7.557741515775036, 11.06030448559671, 6.3184088477366265, 5.309352126200275, 3.6458333333333335, 5.247881076300262, 4.2367452289094665, 2.3560178783722, 1.172891209419296, 0.0), # 59 (14.51488608173391, 12.854128086419754, 11.76658950617284, 12.697526041666668, 10.496699031771435, 5.104166666666667, 5.291271786492374, 4.484375000000001, 5.524652777777779, 2.5104938271604946, 1.9112023007856345, 1.0924897119341568, 0.0, 14.175, 12.017386831275722, 9.556011503928172, 7.5314814814814826, 11.049305555555557, 6.278125000000001, 5.291271786492374, 3.6458333333333335, 5.248349515885717, 4.232508680555557, 2.353317901234568, 1.1685570987654323, 0.0), # 60 (14.517395478086781, 12.806769741655238, 11.753089620484685, 12.684719174382717, 10.497519399751823, 5.104166666666667, 5.273333785201324, 4.4564650205761325, 5.519136028806585, 2.501861470050298, 1.9092253543667126, 1.0906897271757356, 0.0, 14.175, 11.997586998933091, 9.546126771833563, 7.5055844101508935, 11.03827205761317, 6.2390510288065855, 5.273333785201324, 3.6458333333333335, 5.248759699875912, 4.22823972479424, 2.350617924096937, 1.1642517946959308, 0.0), # 61 (14.519549725087407, 12.759812768632832, 11.739608939186102, 12.671828047839508, 10.498223085227952, 5.104166666666667, 5.255571334624385, 4.429505658436215, 5.513608909465021, 2.4933689208962058, 1.9072236168267036, 1.0888923030025914, 0.0, 14.175, 11.977815333028504, 9.536118084133516, 7.4801067626886155, 11.027217818930042, 6.201307921810701, 5.255571334624385, 3.6458333333333335, 5.249111542613976, 4.2239426826131705, 2.3479217878372207, 1.1599829789666212, 0.0), # 62 (14.521347708578144, 12.713341666666667, 11.72616666666667, 12.658865625, 10.498809916886067, 5.104166666666667, 5.238017647058824, 4.4035833333333345, 5.508078333333334, 2.4850350000000003, 1.9051984848484853, 1.0871000000000002, 0.0, 14.175, 11.9581, 9.525992424242425, 7.455105, 11.016156666666667, 6.165016666666668, 5.238017647058824, 3.6458333333333335, 5.249404958443034, 4.219621875000001, 2.345233333333334, 1.1557583333333337, 0.0), # 63 (14.522788314401359, 12.667440935070873, 11.712782007315958, 12.645844868827162, 10.499279723412432, 5.104166666666667, 5.220705934801905, 4.378784465020577, 5.50255121399177, 2.4768785276634664, 1.9031513551149353, 1.0853153787532392, 0.0, 14.175, 11.938469166285628, 9.515756775574676, 7.430635582990398, 11.00510242798354, 6.130298251028808, 5.220705934801905, 3.6458333333333335, 5.249639861706216, 4.215281622942388, 2.342556401463192, 1.151585539551898, 0.0), # 64 (14.523870428399414, 12.62219507315958, 11.69947416552355, 12.63277874228395, 10.499632333493302, 5.104166666666667, 5.2036694101508925, 4.35519547325103, 5.497034465020577, 2.4689183241883863, 1.9010836243089335, 1.0835409998475842, 0.0, 14.175, 11.918950998323425, 9.505418121544666, 7.406754972565158, 10.994068930041154, 6.097273662551442, 5.2036694101508925, 3.6458333333333335, 5.249816166746651, 4.2109262474279845, 2.3398948331047102, 1.1474722793781438, 0.0), # 65 (14.524592936414676, 12.577688580246916, 11.686262345679015, 12.619680208333333, 10.499867575814935, 5.104166666666667, 5.1869412854030505, 4.332902777777779, 5.491535000000001, 2.4611732098765438, 1.898996689113356, 1.0817794238683132, 0.0, 14.175, 11.899573662551441, 9.49498344556678, 7.38351962962963, 10.983070000000001, 6.06606388888889, 5.1869412854030505, 3.6458333333333335, 5.249933787907468, 4.206560069444445, 2.337252469135803, 1.1434262345679016, 0.0), # 66 (14.524954724289511, 12.534005955647004, 11.673165752171926, 12.606562229938273, 10.499985279063587, 5.104166666666667, 5.1705547728556445, 4.311992798353911, 5.486059732510288, 2.453662005029722, 1.8968919462110825, 1.0800332114007012, 0.0, 14.175, 11.88036532540771, 9.484459731055413, 7.360986015089164, 10.972119465020576, 6.036789917695475, 5.1705547728556445, 3.6458333333333335, 5.2499926395317935, 4.202187409979425, 2.3346331504343856, 1.1394550868770006, 0.0), # 67 (14.524708260273156, 12.491002420461081, 11.660140274919984, 12.593323827495976, 10.499886091610856, 5.104071942793273, 5.154460636380753, 4.292367245846671, 5.480574329370524, 2.446367154576509, 1.894733397326088, 1.078295169221637, 0.0, 14.174825210048013, 11.861246861438005, 9.47366698663044, 7.339101463729525, 10.961148658741047, 6.009314144185339, 5.154460636380753, 3.6457656734237665, 5.249943045805428, 4.197774609165326, 2.3320280549839967, 1.135545674587371, 0.0), # 68 (14.522398389694043, 12.44736508363202, 11.646819830246914, 12.579297690217391, 10.498983297022512, 5.1033231138545965, 5.13818772694263, 4.272974279835392, 5.474838991769548, 2.439082236746551, 1.8923013290802768, 1.0765088802252547, 0.0, 14.17344039351852, 11.8415976824778, 9.461506645401384, 7.317246710239651, 10.949677983539097, 5.982163991769549, 5.13818772694263, 3.6452307956104257, 5.249491648511256, 4.193099230072464, 2.329363966049383, 1.1315786439665476, 0.0), # 69 (14.517840102582454, 12.402893656798973, 11.633146504915409, 12.564391480475042, 10.49719935985368, 5.101848358989992, 5.121662094192959, 4.253638926992837, 5.468821349641823, 2.4317718335619576, 1.8895680735227522, 1.0746659888174948, 0.0, 14.170705268347055, 11.82132587699244, 9.447840367613761, 7.295315500685872, 10.937642699283646, 5.955094497789972, 5.121662094192959, 3.6441773992785653, 5.24859967992684, 4.188130493491681, 2.326629300983082, 1.127535786981725, 0.0), # 70 (14.511097524900102, 12.357614716359132, 11.619125100022863, 12.548627178945251, 10.49455687350386, 5.0996715769953775, 5.104891161677292, 4.234367588782199, 5.462530365035819, 2.4244361257699243, 1.8865437198495683, 1.072767842674817, 0.0, 14.166655842764062, 11.800446269422984, 9.43271859924784, 7.273308377309771, 10.925060730071637, 5.928114624295079, 5.104891161677292, 3.642622554996698, 5.24727843675193, 4.182875726315085, 2.323825020004573, 1.1234195196690122, 0.0), # 71 (14.502234782608697, 12.311554838709677, 11.604760416666666, 12.532026766304348, 10.49107843137255, 5.096816666666667, 5.087882352941177, 4.215166666666667, 5.4559750000000005, 2.4170752941176477, 1.8832383572567788, 1.0708157894736845, 0.0, 14.161328125, 11.778973684210527, 9.416191786283894, 7.251225882352942, 10.911950000000001, 5.901233333333334, 5.087882352941177, 3.6405833333333337, 5.245539215686275, 4.177342255434784, 2.3209520833333337, 1.1192322580645162, 0.0), # 72 (14.491316001669949, 12.264740600247798, 11.590057255944217, 12.514612223228664, 10.486786626859248, 5.0933075267997765, 5.070643091530164, 4.196042562109436, 5.4491642165828384, 2.409689519352323, 1.8796620749404376, 1.0688111768905575, 0.0, 14.154758123285324, 11.75692294579613, 9.398310374702186, 7.229068558056968, 10.898328433165677, 5.8744595869532095, 5.070643091530164, 3.638076804856983, 5.243393313429624, 4.171537407742889, 2.3180114511888434, 1.1149764182043456, 0.0), # 73 (14.478405308045566, 12.21719857737068, 11.575020418952905, 12.496405530394526, 10.481704053363458, 5.089168056190623, 5.053180800989806, 4.177001676573693, 5.4421069768328, 2.402278982221147, 1.8758249620965999, 1.0667553526018982, 0.0, 14.146981845850483, 11.734308878620878, 9.379124810482999, 7.20683694666344, 10.8842139536656, 5.84780234720317, 5.053180800989806, 3.635120040136159, 5.240852026681729, 4.165468510131509, 2.315004083790581, 1.1106544161246077, 0.0), # 74 (14.463566827697262, 12.168955346475506, 11.559654706790123, 12.477428668478263, 10.475853304284678, 5.084422153635118, 5.03550290486565, 4.158050411522635, 5.434812242798353, 2.394843863471315, 1.8717371079213185, 1.0646496642841674, 0.0, 14.138035300925928, 11.711146307125839, 9.358685539606592, 7.184531590413944, 10.869624485596706, 5.821270576131688, 5.03550290486565, 3.63173010973937, 5.237926652142339, 4.159142889492755, 2.311930941358025, 1.10626866786141, 0.0), # 75 (14.44686468658675, 12.12003748395947, 11.543964920553272, 12.457703618156202, 10.469256973022405, 5.079093717929179, 5.017616826703247, 4.139195168419449, 5.427288976527969, 2.3873843438500235, 1.8674086016106486, 1.0624954596138265, 0.0, 14.127954496742113, 11.68745005575209, 9.337043008053241, 7.162153031550069, 10.854577953055937, 5.794873235787229, 5.017616826703247, 3.6279240842351275, 5.234628486511203, 4.152567872718735, 2.3087929841106543, 1.101821589450861, 0.0), # 76 (14.428363010675731, 12.070471566219748, 11.527955861339734, 12.43725236010467, 10.461937652976141, 5.07320664786872, 4.9995299900481465, 4.120442348727329, 5.4195461400701115, 2.3799006041044684, 1.8628495323606438, 1.0602940862673376, 0.0, 14.116775441529496, 11.663234948940712, 9.314247661803218, 7.139701812313404, 10.839092280140223, 5.768619288218261, 4.9995299900481465, 3.623719034191943, 5.230968826488071, 4.145750786701558, 2.305591172267947, 1.0973155969290682, 0.0), # 77 (14.408125925925928, 12.020284169653527, 11.511632330246915, 12.416096875000001, 10.45391793754539, 5.066784842249657, 4.981249818445898, 4.101798353909466, 5.41159269547325, 2.372392824981845, 1.8580699893673582, 1.0580468919211612, 0.0, 14.10453414351852, 11.638515811132772, 9.29034994683679, 7.1171784749455345, 10.8231853909465, 5.742517695473253, 4.981249818445898, 3.6191320301783265, 5.226958968772695, 4.138698958333334, 2.3023264660493834, 1.092753106332139, 0.0), # 78 (14.386217558299041, 11.969501870657995, 11.494999128372202, 12.394259143518521, 10.445220420129644, 5.0598521998679065, 4.962783735442051, 4.0832695854290515, 5.403437604785855, 2.3648611872293506, 1.8530800618268455, 1.0557552242517592, 0.0, 14.091266610939643, 11.613307466769347, 9.265400309134227, 7.094583561688051, 10.80687520957171, 5.716577419600672, 4.962783735442051, 3.61418014276279, 5.222610210064822, 4.131419714506174, 2.2989998256744406, 1.0881365336961817, 0.0), # 79 (14.362702033756786, 11.918151245630337, 11.478061056812987, 12.371761146336556, 10.435867694128408, 5.052432619519382, 4.9441391645821575, 4.064862444749277, 5.395089830056394, 2.35730587159418, 1.847889838935161, 1.0534204309355928, 0.0, 14.07700885202332, 11.587624740291517, 9.239449194675805, 7.071917614782539, 10.790179660112788, 5.690807422648988, 4.9441391645821575, 3.6088804425138443, 5.217933847064204, 4.123920382112186, 2.2956122113625974, 1.0834682950573036, 0.0), # 80 (14.337643478260873, 11.866258870967743, 11.460822916666668, 12.348624864130437, 10.425882352941176, 5.04455, 4.925323529411765, 4.046583333333334, 5.386558333333333, 2.34972705882353, 1.8425094098883579, 1.0510438596491232, 0.0, 14.061796875, 11.561482456140352, 9.212547049441788, 7.049181176470589, 10.773116666666667, 5.665216666666669, 4.925323529411765, 3.60325, 5.212941176470588, 4.11620828804348, 2.2921645833333337, 1.0787508064516131, 0.0), # 81 (14.311106017773009, 11.813851323067393, 11.443289509030638, 12.32487227757649, 10.415286989967456, 5.036228240105676, 4.906344253476426, 4.0284386526444145, 5.3778520766651425, 2.342124929664596, 1.83694886388249, 1.048626858068812, 0.0, 14.045666688100141, 11.53489543875693, 9.18474431941245, 7.026374788993786, 10.755704153330285, 5.63981411370218, 4.906344253476426, 3.5973058857897686, 5.207643494983728, 4.1082907591921645, 2.2886579018061277, 1.0739864839152178, 0.0), # 82 (14.283153778254908, 11.760955178326475, 11.425465635002288, 12.300525367351046, 10.40410419860674, 5.027491238632323, 4.887208760321688, 4.01043480414571, 5.368980022100289, 2.3344996648645746, 1.8312182901136123, 1.0461707738711208, 0.0, 14.028654299554185, 11.507878512582325, 9.156091450568061, 7.0034989945937225, 10.737960044200578, 5.614608725803994, 4.887208760321688, 3.5910651704516594, 5.20205209930337, 4.1001751224503495, 2.2850931270004575, 1.0691777434842251, 0.0), # 83 (14.253850885668278, 11.707597013142175, 11.407356095679013, 12.275606114130436, 10.392356572258533, 5.0183628943758585, 4.867924473493101, 3.9925781893004118, 5.359951131687243, 2.3268514451706617, 1.825327777777778, 1.0436769547325107, 0.0, 14.010795717592593, 11.480446502057614, 9.12663888888889, 6.980554335511984, 10.719902263374486, 5.589609465020577, 4.867924473493101, 3.5845449245541845, 5.196178286129267, 4.091868704710146, 2.281471219135803, 1.0643270011947434, 0.0), # 84 (14.223261465974833, 11.653803403911677, 11.388965692158209, 12.250136498590983, 10.380066704322333, 5.008867106132196, 4.8484988165362175, 3.974875209571713, 5.35077436747447, 2.3191804513300527, 1.8192874160710422, 1.041146748329443, 0.0, 13.992126950445819, 11.452614231623869, 9.09643708035521, 6.957541353990157, 10.70154873494894, 5.564825293400398, 4.8484988165362175, 3.577762218665854, 5.190033352161167, 4.083378832863662, 2.2777931384316417, 1.05943667308288, 0.0), # 85 (14.191449645136279, 11.59960092703217, 11.370299225537268, 12.224138501409021, 10.367257188197637, 4.999027772697253, 4.828939212996585, 3.9573322664228017, 5.341458691510441, 2.311486864089944, 1.8131072941894584, 1.0385815023383795, 0.0, 13.97268400634431, 11.424396525722173, 9.065536470947292, 6.934460592269831, 10.682917383020882, 5.540265172991923, 4.828939212996585, 3.57073412335518, 5.183628594098819, 4.074712833803008, 2.274059845107454, 1.0545091751847429, 0.0), # 86 (14.15847954911433, 11.545016158900838, 11.35136149691358, 12.19763410326087, 10.353950617283953, 4.988868792866941, 4.809253086419753, 3.939955761316873, 5.332013065843622, 2.3037708641975314, 1.8067975013290805, 1.035982564435781, 0.0, 13.95250289351852, 11.39580820879359, 9.033987506645403, 6.9113125925925925, 10.664026131687244, 5.515938065843622, 4.809253086419753, 3.563477709190672, 5.1769753086419765, 4.065878034420291, 2.2702722993827162, 1.0495469235364399, 0.0), # 87 (14.124415303870702, 11.490075675914863, 11.332157307384547, 12.170645284822868, 10.340169584980769, 4.97841406543718, 4.789447860351274, 3.9227520957171165, 5.322446452522482, 2.296032632400011, 1.8003681266859632, 1.0333512822981095, 0.0, 13.931619620198905, 11.366864105279202, 9.001840633429817, 6.888097897200032, 10.644892905044964, 5.491852934003963, 4.789447860351274, 3.556010046740843, 5.1700847924903846, 4.056881761607624, 2.2664314614769094, 1.0445523341740786, 0.0), # 88 (14.089321035367092, 11.434806054471437, 11.312691458047555, 12.143194026771337, 10.325936684687594, 4.967687489203883, 4.769530958336696, 3.905727671086725, 5.312767813595489, 2.2882723494445796, 1.7938292594561607, 1.030689003601826, 0.0, 13.910070194615912, 11.337579039620083, 8.969146297280803, 6.864817048333737, 10.625535627190978, 5.4680187395214155, 4.769530958336696, 3.548348206574202, 5.162968342343797, 4.047731342257113, 2.2625382916095114, 1.0395278231337672, 0.0), # 89 (14.053260869565218, 11.379233870967743, 11.292968750000002, 12.115302309782612, 10.311274509803923, 4.956712962962964, 4.749509803921569, 3.8888888888888893, 5.302986111111112, 2.280490196078432, 1.787190988835726, 1.027997076023392, 0.0, 13.887890625, 11.30796783625731, 8.93595494417863, 6.841470588235294, 10.605972222222224, 5.4444444444444455, 4.749509803921569, 3.54050925925926, 5.155637254901961, 4.0384341032608715, 2.2585937500000006, 1.0344758064516133, 0.0), # 90 (14.016298932426789, 11.323385701800964, 11.272993984339278, 12.086992114533015, 10.296205653729254, 4.945514385510339, 4.729391820651443, 3.8722421505868017, 5.293110307117818, 2.2726863530487647, 1.7804634040207143, 1.025276847239269, 0.0, 13.865116919581618, 11.278045319631957, 8.902317020103572, 6.818059059146293, 10.586220614235636, 5.4211390108215225, 4.729391820651443, 3.5325102753645283, 5.148102826864627, 4.0289973715110055, 2.254598796867856, 1.0293987001637241, 0.0), # 91 (13.978499349913523, 11.267288123368292, 11.252771962162782, 12.058285421698875, 10.280752709863094, 4.934115655641925, 4.709184432071869, 3.8557938576436523, 5.2831493636640765, 2.2648610011027737, 1.7736565942071794, 1.0225296649259181, 0.0, 13.841785086591221, 11.247826314185097, 8.868282971035896, 6.79458300330832, 10.566298727328153, 5.398111400701113, 4.709184432071869, 3.524368325458518, 5.140376354931547, 4.019428473899626, 2.2505543924325564, 1.0242989203062085, 0.0), # 92 (13.939926247987117, 11.210967712066907, 11.232307484567903, 12.029204211956525, 10.264938271604938, 4.9225406721536356, 4.688895061728395, 3.839550411522634, 5.273112242798354, 2.2570143209876545, 1.7667806485911755, 1.019756876759801, 0.0, 13.81793113425926, 11.217325644357809, 8.833903242955877, 6.771042962962962, 10.546224485596708, 5.375370576131688, 4.688895061728395, 3.5161004801097393, 5.132469135802469, 4.009734737318842, 2.246461496913581, 1.0191788829151736, 0.0), # 93 (13.900643752609293, 11.154451044293994, 11.211605352652038, 11.999770465982289, 10.248784932354287, 4.910813333841387, 4.6685311331665735, 3.8235182136869392, 5.263007906569121, 2.2491464934506045, 1.7598456563687561, 1.016959830417379, 0.0, 13.793591070816188, 11.186558134591166, 8.79922828184378, 6.747439480351812, 10.526015813138242, 5.3529254991617155, 4.6685311331665735, 3.5077238098867047, 5.124392466177143, 3.9999234886607637, 2.2423210705304077, 1.014041004026727, 0.0), # 94 (13.860715989741754, 11.097764696446747, 11.190670367512576, 11.970006164452498, 10.232315285510639, 4.898957539501094, 4.648100069931951, 3.807703665599757, 5.252845317024844, 2.241257699238818, 1.752861706735976, 1.014139873575113, 0.0, 13.768800904492457, 11.155538609326241, 8.764308533679879, 6.723773097716453, 10.505690634049689, 5.33078513183966, 4.648100069931951, 3.499255385357924, 5.1161576427553195, 3.9900020548175, 2.2381340735025153, 1.0088876996769771, 0.0), # 95 (13.820207085346219, 11.040935244922345, 11.169507330246915, 11.93993328804348, 10.215551924473493, 4.88699718792867, 4.62760929557008, 3.7921131687242804, 5.242633436213992, 2.2333481190994924, 1.7458388888888892, 1.0112983539094653, 0.0, 13.74359664351852, 11.124281893004117, 8.729194444444445, 6.700044357298475, 10.485266872427983, 5.3089584362139925, 4.62760929557008, 3.490712277091907, 5.1077759622367465, 3.9799777626811608, 2.2339014660493834, 1.0037213859020315, 0.0), # 96 (13.779181165384388, 10.983989266117973, 11.148121041952448, 11.909573817431562, 10.198517442642354, 4.8749561779200326, 4.60706623362651, 3.7767531245237014, 5.2323812261850335, 2.2254179337798226, 1.7387872920235496, 1.0084366190968967, 0.0, 13.718014296124831, 11.09280281006586, 8.693936460117747, 6.676253801339467, 10.464762452370067, 5.287454374333182, 4.60706623362651, 3.482111555657166, 5.099258721321177, 3.969857939143855, 2.2296242083904896, 0.9985444787379977, 0.0), # 97 (13.737702355817978, 10.926953336430817, 11.126516303726566, 11.878949733293078, 10.181234433416716, 4.862858408271099, 4.58647830764679, 3.7616299344612103, 5.222097648986434, 2.2174673240270053, 1.7317170053360116, 1.0055560168138682, 0.0, 13.69208987054184, 11.06111618495255, 8.658585026680058, 6.652401972081014, 10.444195297972868, 5.266281908245695, 4.58647830764679, 3.4734702916222133, 5.090617216708358, 3.9596499110976935, 2.2253032607453136, 0.9933593942209834, 0.0), # 98 (13.695834782608697, 10.869854032258065, 11.10469791666667, 11.848083016304349, 10.163725490196079, 4.850727777777779, 4.5658529411764714, 3.7467500000000005, 5.211791666666667, 2.2094964705882356, 1.724638118022329, 1.0026578947368423, 0.0, 13.665859375000002, 11.029236842105265, 8.623190590111644, 6.628489411764706, 10.423583333333333, 5.245450000000001, 4.5658529411764714, 3.4648055555555564, 5.081862745098039, 3.949361005434784, 2.220939583333334, 0.988168548387097, 0.0), # 99 (13.653642571718258, 10.8127179299969, 11.082670681870143, 11.816995647141708, 10.146013206379946, 4.8385881852359915, 4.545197557761102, 3.732119722603262, 5.201472241274196, 2.201505554210711, 1.717560719278556, 0.9997436005422796, 0.0, 13.639358817729768, 10.997179605965075, 8.58780359639278, 6.6045166626321326, 10.402944482548392, 5.224967611644567, 4.545197557761102, 3.456134418025708, 5.073006603189973, 3.938998549047237, 2.2165341363740287, 0.9829743572724456, 0.0), # 100 (13.611189849108369, 10.755571606044516, 11.060439400434387, 11.785709606481484, 10.128120175367815, 4.82646352944165, 4.524519580946234, 3.7177455037341867, 5.191148334857491, 2.1934947556416264, 1.7104948983007466, 0.9968144819066413, 0.0, 13.612624206961591, 10.964959300973053, 8.552474491503732, 6.580484266924878, 10.382296669714982, 5.204843705227861, 4.524519580946234, 3.4474739496011786, 5.064060087683908, 3.928569868827162, 2.2120878800868775, 0.977779236913138, 0.0), # 101 (13.568540740740744, 10.698441636798089, 11.038008873456791, 11.754246875000002, 10.110068990559187, 4.814377709190674, 4.503826434277415, 3.7036337448559675, 5.180828909465021, 2.1854642556281783, 1.7034507442849551, 0.9938718865063897, 0.0, 13.585691550925928, 10.932590751570284, 8.517253721424776, 6.556392766884533, 10.361657818930041, 5.185087242798355, 4.503826434277415, 3.438841220850481, 5.055034495279593, 3.918082291666668, 2.207601774691358, 0.972585603345281, 0.0), # 102 (13.525759372577088, 10.641354598654807, 11.015383902034753, 11.722629433373593, 10.09188224535356, 4.802354623278973, 4.483125541300197, 3.689790847431795, 5.170522927145252, 2.1774142349175616, 1.696438346427236, 0.9909171620179854, 0.0, 13.558596857853223, 10.900088782197837, 8.482191732136178, 6.532242704752683, 10.341045854290504, 5.1657071864045125, 4.483125541300197, 3.4302533023421233, 5.04594112267678, 3.907543144457865, 2.2030767804069504, 0.9673958726049827, 0.0), # 103 (13.482909870579116, 10.58433706801186, 10.992569287265662, 11.690879262278584, 10.073582533150434, 4.790418170502465, 4.462424325560129, 3.6762232129248593, 5.160239349946655, 2.1693448742569736, 1.689467793923642, 0.9879516561178898, 0.0, 13.53137613597394, 10.867468217296787, 8.447338969618208, 6.50803462277092, 10.32047869989331, 5.146712498094804, 4.462424325560129, 3.421727264644618, 5.036791266575217, 3.896959754092862, 2.1985138574531327, 0.9622124607283511, 0.0), # 104 (13.440056360708535, 10.527415621266428, 10.969569830246915, 11.659018342391304, 10.05519244734931, 4.778592249657065, 4.441730210602761, 3.662937242798354, 5.1499871399176955, 2.1612563543936103, 1.682549175970229, 0.9849767164825647, 0.0, 13.50406539351852, 10.83474388130821, 8.412745879851144, 6.48376906318083, 10.299974279835391, 5.128112139917696, 4.441730210602761, 3.4132801783264752, 5.027596223674655, 3.886339447463769, 2.1939139660493834, 0.9570377837514936, 0.0), # 105 (13.39726296892706, 10.470616834815702, 10.946390332075904, 11.627068654388085, 10.036734581349688, 4.766900759538689, 4.4210506199736415, 3.6499393385154706, 5.139775259106843, 2.153148856074666, 1.67569258176305, 0.9819936907884712, 0.0, 13.476700638717421, 10.801930598673183, 8.378462908815248, 6.459446568223997, 10.279550518213686, 5.109915073921659, 4.4210506199736415, 3.4049291139562063, 5.018367290674844, 3.875689551462696, 2.189278066415181, 0.9518742577105185, 0.0), # 106 (13.3545938211964, 10.413967285056863, 10.923035593850026, 11.59505217894525, 10.018231528551063, 4.755367598943252, 4.400392977218323, 3.6372359015394005, 5.129612669562567, 2.145022560047339, 1.6689081004981592, 0.9790039267120707, 0.0, 13.449317879801098, 10.769043193832776, 8.344540502490794, 6.435067680142016, 10.259225339125134, 5.092130262155161, 4.400392977218323, 3.3966911421023225, 5.009115764275531, 3.865017392981751, 2.1846071187700056, 0.9467242986415331, 0.0), # 107 (13.312113043478263, 10.357493548387097, 10.899510416666669, 11.562990896739132, 9.999705882352941, 4.744016666666668, 4.379764705882353, 3.6248333333333345, 5.119508333333334, 2.1368776470588244, 1.662205821371611, 0.9760087719298248, 0.0, 13.421953125000002, 10.736096491228071, 8.311029106858054, 6.4106329411764715, 10.239016666666668, 5.074766666666668, 4.379764705882353, 3.3885833333333344, 4.999852941176471, 3.854330298913045, 2.179902083333334, 0.9415903225806455, 0.0), # 108 (13.26988476173436, 10.301222201203595, 10.87581960162323, 11.530906788446053, 9.98118023615482, 4.732871861504853, 4.359173229511284, 3.612738035360464, 5.109471212467612, 2.1287142978563174, 1.6555958335794598, 0.9730095741181947, 0.0, 13.394642382544584, 10.70310531530014, 8.277979167897298, 6.386142893568951, 10.218942424935223, 5.05783324950465, 4.359173229511284, 3.3806227582177515, 4.99059011807741, 3.8436355961486854, 2.1751639203246462, 0.9364747455639633, 0.0), # 109 (13.227973101926404, 10.245179819903537, 10.851967949817103, 11.498821834742351, 9.962677183356197, 4.721957082253722, 4.3386259716506625, 3.6009564090839814, 5.099510269013869, 2.1205326931870148, 1.6490882263177586, 0.9700076809536419, 0.0, 13.367421660665297, 10.670084490490058, 8.245441131588793, 6.361598079561043, 10.199020538027739, 5.041338972717574, 4.3386259716506625, 3.372826487324087, 4.981338591678099, 3.832940611580785, 2.170393589963421, 0.9313799836275944, 0.0), # 110 (13.186442190016104, 10.189392980884113, 10.827960262345682, 11.46675801630435, 9.944219317356573, 4.711296227709192, 4.318130355846042, 3.5894948559670787, 5.089634465020577, 2.1123330137981124, 1.6426930887825626, 0.9670044401126275, 0.0, 13.340326967592594, 10.6370488412389, 8.213465443912813, 6.336999041394336, 10.179268930041154, 5.02529279835391, 4.318130355846042, 3.3652115912208513, 4.972109658678287, 3.8222526721014507, 2.1655920524691368, 0.9263084528076467, 0.0), # 111 (13.14535615196517, 10.133888260542502, 10.803801340306359, 11.434737313808373, 9.925829231555449, 4.700913196667176, 4.297693805642971, 3.5783597774729468, 5.079852762536198, 2.1041154404368063, 1.6364205101699256, 0.9640011992716131, 0.0, 13.313394311556928, 10.604013191987741, 8.182102550849628, 6.312346321310418, 10.159705525072397, 5.0097036884621255, 4.297693805642971, 3.357795140476554, 4.962914615777724, 3.8115791046027923, 2.160760268061272, 0.9212625691402275, 0.0), # 112 (13.104705913184263, 10.078784894108638, 10.779554132960747, 11.402825576616644, 9.907497301495457, 4.690826978191853, 4.277368174559739, 3.5675806651220205, 5.07019931192069, 2.095906657814456, 1.6302822447690024, 0.9610058425921835, 0.0, 13.286621461180511, 10.571064268514016, 8.151411223845011, 6.287719973443367, 10.14039862384138, 4.9946129311708285, 4.277368174559739, 3.3505906987084666, 4.953748650747729, 3.8009418588722155, 2.15591082659215, 0.9162531721916946, 0.0), # 113 (13.064073257060091, 10.024626385524439, 10.755553287525224, 11.371278892341204, 9.88903379759524, 4.681014596966087, 4.257412745887406, 3.557289901377987, 5.060822216666095, 2.0878603087694745, 1.6242903453264128, 0.9580564200798471, 0.0, 13.25978557982405, 10.538620620878318, 8.121451726632063, 6.263580926308422, 10.12164443333219, 4.980205861929182, 4.257412745887406, 3.3435818549757763, 4.94451689879762, 3.790426297447069, 2.1511106575050447, 0.9113296714113127, 0.0), # 114 (13.023338864205595, 9.97143223830991, 10.731813088158539, 11.340088730440868, 9.870380499362694, 4.671450535207326, 4.2378417551340934, 3.547484881662581, 5.051724990045435, 2.0799888647958276, 1.6184360526663222, 0.9551543846318662, 0.0, 13.232809284324528, 10.506698230950526, 8.09218026333161, 6.239966594387481, 10.10344998009087, 4.966478834327614, 4.2378417551340934, 3.336750382290947, 4.935190249681347, 3.780029576813624, 2.146362617631708, 0.9064938398463556, 0.0), # 115 (12.982451822532688, 9.919124960991017, 10.708287554981187, 11.309199457779725, 9.851509291291528, 4.662112249784464, 4.218623372269525, 3.5381385158577467, 5.042884624972988, 2.072277675457342, 1.6127080506300124, 0.9522943730401906, 0.0, 13.205650163658248, 10.475238103442095, 8.063540253150062, 6.216833026372026, 10.085769249945976, 4.953393922200846, 4.218623372269525, 3.330080178417474, 4.925754645645764, 3.7697331525932425, 2.1416575109962372, 0.9017386328173653, 0.0), # 116 (12.941361219953283, 9.867627062093726, 10.68493070811365, 11.278555441221856, 9.832392057875436, 4.652977197566394, 4.199725767263427, 3.529223713845425, 5.034278114363028, 2.0647120903178457, 1.6070950230587664, 0.949471022096771, 0.0, 13.178265806801516, 10.44418124306448, 8.035475115293831, 6.1941362709535355, 10.068556228726056, 4.940913199383595, 4.199725767263427, 3.3235551411188533, 4.916196028937718, 3.7595184804072863, 2.1369861416227303, 0.8970570056448843, 0.0), # 117 (12.900016144379297, 9.816861050144, 10.66169656767643, 11.248101047631351, 9.81300068360812, 4.644022835422014, 4.181117110085521, 3.5207133855075567, 5.025882451129837, 2.0572774589411664, 1.6015856537938657, 0.9466789685935577, 0.0, 13.150613802730636, 10.413468654529133, 8.007928268969328, 6.171832376823498, 10.051764902259674, 4.92899873971058, 4.181117110085521, 3.317159168158581, 4.90650034180406, 3.7493670158771177, 2.132339313535286, 0.8924419136494547, 0.0), # 118 (12.858365683722639, 9.766749433667803, 10.638539153790012, 11.217780643872292, 9.793307052983273, 4.635226620220214, 4.162765570705529, 3.512580440726085, 5.017674628187687, 2.0499591308911307, 1.5961686266765933, 0.9439128493225009, 0.0, 13.122651740421906, 10.383041342547507, 7.980843133382966, 6.149877392673391, 10.035349256375374, 4.91761261701652, 4.162765570705529, 3.310876157300153, 4.896653526491637, 3.7392602146240983, 2.1277078307580024, 0.8878863121516185, 0.0), # 119 (12.816358925895228, 9.717214721191104, 10.61541248657489, 11.187538596808764, 9.773283050494598, 4.626566008829889, 4.144639319093177, 3.5047977893829505, 5.009631638450861, 2.0427424557315677, 1.5908326255482306, 0.9411673010755515, 0.0, 13.094337208851638, 10.352840311831065, 7.954163127741153, 6.128227367194702, 10.019263276901722, 4.906716905136131, 4.144639319093177, 3.3046900063070637, 4.886641525247299, 3.729179532269589, 2.1230824973149782, 0.8833831564719186, 0.0), # 120 (12.773944958808976, 9.668179421239865, 10.592270586151553, 11.157319273304857, 9.75290056063579, 4.618018458119934, 4.126706525218187, 3.4973383413600962, 5.001730474833633, 2.035612783026304, 1.5855663342500608, 0.9384369606446594, 0.0, 13.065627796996127, 10.322806567091252, 7.927831671250303, 6.106838349078911, 10.003460949667266, 4.8962736779041345, 4.126706525218187, 3.29858461294281, 4.876450280317895, 3.719106424434953, 2.118454117230311, 0.878925401930897, 0.0), # 121 (12.731072870375797, 9.61956604234005, 10.569067472640498, 11.127067040224649, 9.732131467900551, 4.609561424959241, 4.108935359050283, 3.490175006539462, 4.993948130250281, 2.0285554623391677, 1.5803584366233656, 0.9357164648217753, 0.0, 13.036481093831679, 10.292881113039527, 7.901792183116827, 6.085666387017502, 9.987896260500563, 4.886245009155247, 4.108935359050283, 3.2925438749708866, 4.8660657339502755, 3.7090223467415506, 2.1138134945280997, 0.8745060038490956, 0.0), # 122 (12.687691748507607, 9.571297093017627, 10.54575716616221, 11.09672626443223, 9.71094765678258, 4.601172366216706, 4.091293990559188, 3.4832806948029904, 4.986261597615085, 2.021555843233986, 1.5751976165094272, 0.9330004503988493, 0.0, 13.0068546883346, 10.263004954387341, 7.875988082547136, 6.064667529701957, 9.97252319523017, 4.876592972724187, 4.091293990559188, 3.28655169015479, 4.85547382839129, 3.698908754810744, 2.109151433232442, 0.8701179175470571, 0.0), # 123 (12.643750681116316, 9.523295081798558, 10.522293686837184, 11.066241312791686, 9.689321011775569, 4.592828738761221, 4.073750589714624, 3.476628316032624, 4.97864786984232, 2.014599275274587, 1.5700725577495283, 0.9302835541678323, 0.0, 12.976706169481197, 10.233119095846153, 7.85036278874764, 6.04379782582376, 9.95729573968464, 4.8672796424456735, 4.073750589714624, 3.280591956258015, 4.844660505887784, 3.6887471042638964, 2.104458737367437, 0.8657540983453236, 0.0), # 124 (12.599198756113843, 9.475482517208812, 10.498631054785912, 11.0355565521671, 9.667223417373222, 4.584507999461682, 4.056273326486318, 3.4701907801103036, 4.971083939846263, 2.0076711080247973, 1.5649719441849508, 0.927560412920674, 0.0, 12.94599312624776, 10.203164542127412, 7.824859720924753, 6.023013324074391, 9.942167879692526, 4.858267092154425, 4.056273326486318, 3.2746485710440583, 4.833611708686611, 3.678518850722367, 2.0997262109571824, 0.8614075015644376, 0.0), # 125 (12.553985061412101, 9.427781907774351, 10.474723290128884, 11.004616349422557, 9.644626758069233, 4.5761876051869805, 4.038830370843989, 3.463940996917971, 4.963546800541195, 2.0007566910484456, 1.5598844596569765, 0.9248256634493257, 0.0, 12.91467314761061, 10.173082297942582, 7.799422298284883, 6.002270073145335, 9.92709360108239, 4.849517395685159, 4.038830370843989, 3.268705432276415, 4.822313379034616, 3.66820544980752, 2.094944658025777, 0.8570710825249411, 0.0), # 126 (12.508058684923006, 9.380115762021138, 10.450524412986589, 10.973365071422144, 9.621502918357304, 4.567845012806012, 4.021389892757366, 3.4578518763375685, 4.95601344484139, 1.993841373909359, 1.5547987880068885, 0.9220739425457369, 0.0, 12.88270382254604, 10.142813368003106, 7.773993940034442, 5.981524121728076, 9.91202688968278, 4.8409926268725965, 4.021389892757366, 3.26274643771858, 4.810751459178652, 3.6577883571407157, 2.090104882597318, 0.8527377965473764, 0.0), # 127 (12.461368714558466, 9.332406588475143, 10.425988443479525, 10.941747085029949, 9.597823782731137, 4.5594576791876715, 4.003920062196168, 3.451896328251037, 4.948460865661126, 1.986910506171365, 1.5497036130759692, 0.9192998870018588, 0.0, 12.850042740030352, 10.112298757020445, 7.748518065379845, 5.960731518514094, 9.896921731322252, 4.832654859551452, 4.003920062196168, 3.2567554851340508, 4.798911891365568, 3.6472490283433174, 2.085197688695905, 0.8484005989522859, 0.0), # 128 (12.413864238230394, 9.284576895662326, 10.401069401728181, 10.909706757110053, 9.573561235684425, 4.551003061200851, 3.9863890491301195, 3.446047262540319, 4.9408660559146815, 1.9799494373982915, 1.5445876187055003, 0.916498133609641, 0.0, 12.816647489039854, 10.08147946970605, 7.7229380935275005, 5.939848312194873, 9.881732111829363, 4.824466167556446, 3.9863890491301195, 3.250716472286322, 4.786780617842212, 3.636568919036685, 2.0802138803456365, 0.8440524450602116, 0.0), # 129 (12.365494343850713, 9.236549192108656, 10.375721307853043, 10.877188454526541, 9.548687161710866, 4.542458615714445, 3.968765023528944, 3.440277589087355, 4.933206008516334, 1.9729435171539655, 1.539439488736764, 0.9136633191610346, 0.0, 12.78247565855085, 10.050296510771378, 7.697197443683819, 5.9188305514618955, 9.866412017032667, 4.816388624722297, 3.968765023528944, 3.244613296938889, 4.774343580855433, 3.6257294848421813, 2.075144261570609, 0.8396862901916962, 0.0), # 130 (12.316208119331334, 9.188245986340096, 10.349898181974611, 10.8441365441435, 9.523173445304161, 4.533801799597346, 3.9510161553623666, 3.4345602177740875, 4.92545771638036, 1.9658780950022154, 1.5342479070110426, 0.9107900804479897, 0.0, 12.747484837539638, 10.018690884927885, 7.671239535055213, 5.897634285006645, 9.85091543276072, 4.808384304883723, 3.9510161553623666, 3.238429856855247, 4.761586722652081, 3.614712181381168, 2.0699796363949226, 0.8352950896672816, 0.0), # 131 (12.265954652584163, 9.139589786882611, 10.32355404421337, 10.810495392825016, 9.49699197095801, 4.525010069718451, 3.9331106146001082, 3.4288680584824593, 4.917598172421039, 1.9587385205068681, 1.5290015573696185, 0.9078730542624567, 0.0, 12.711632614982527, 9.986603596887022, 7.645007786848092, 5.876215561520603, 9.835196344842078, 4.800415281875443, 3.9331106146001082, 3.2321500497988938, 4.748495985479005, 3.6034984642750065, 2.0647108088426744, 0.8308717988075103, 0.0), # 132 (12.21468303152113, 9.090503102262165, 10.296642914689816, 10.776209367435175, 9.470114623166108, 4.516060882946651, 3.915016571211893, 3.4231740210944106, 4.909604369552646, 1.9515101432317519, 1.5236891236537742, 0.904906877396386, 0.0, 12.674876579855821, 9.953975651360244, 7.618445618268871, 5.854530429695254, 9.819208739105292, 4.792443629532175, 3.915016571211893, 3.2257577735333225, 4.735057311583054, 3.5920697891450595, 2.059328582937963, 0.8264093729329243, 0.0), # 133 (12.162342344054133, 9.040908441004726, 10.26911881352444, 10.741222834838059, 9.442513286422153, 4.5069316961508425, 3.896702195167445, 3.4174510154918845, 4.90145330068946, 1.9441783127406937, 1.518299289704792, 0.9018861866417278, 0.0, 12.637174321135817, 9.920748053059004, 7.5914964485239596, 5.83253493822208, 9.80290660137892, 4.784431421688638, 3.896702195167445, 3.21923692582203, 4.721256643211077, 3.5804076116126873, 2.053823762704888, 0.8219007673640661, 0.0), # 134 (12.108881678095097, 8.990728311636257, 10.24093576083773, 10.705480161897759, 9.414159845219846, 4.4975999661999175, 3.8781356564364877, 3.4116719515568206, 4.893121958745757, 1.9367283785975222, 1.5128207393639534, 0.898805618790433, 0.0, 12.59848342779883, 9.88686180669476, 7.5641036968197675, 5.810185135792565, 9.786243917491515, 4.776340732179549, 3.8781356564364877, 3.212571404428512, 4.707079922609923, 3.5684933872992537, 2.048187152167546, 0.817338937421478, 0.0), # 135 (12.05425012155593, 8.93988522268272, 10.212047776750177, 10.668925715478352, 9.385026184052883, 4.488043149962771, 3.8592851249887445, 3.4058097391711617, 4.884587336635816, 1.9291456903660635, 1.5072421564725416, 0.8956598106344515, 0.0, 12.558761488821151, 9.852257916978965, 7.536210782362707, 5.787437071098189, 9.769174673271632, 4.768133634839627, 3.8592851249887445, 3.205745107116265, 4.6925130920264415, 3.556308571826118, 2.042409555350036, 0.812716838425702, 0.0), # 136 (11.998396762348548, 8.888301682670086, 10.18240888138228, 10.631503862443932, 9.355084187414965, 4.478238704308296, 3.8401187707939393, 3.399837288216851, 4.875826427273916, 1.9214155976101461, 1.5015522248718383, 0.8924433989657341, 0.0, 12.517966093179089, 9.816877388623073, 7.507761124359191, 5.764246792830437, 9.751652854547832, 4.759772203503592, 3.8401187707939393, 3.1987419316487826, 4.6775420937074825, 3.543834620814645, 2.036481776276456, 0.8080274256972807, 0.0), # 137 (11.941270688384867, 8.835900200124316, 10.15197309485452, 10.593158969658578, 9.32430573979979, 4.4681640861053875, 3.8206047638217933, 3.393727508575828, 4.8668162235743315, 1.913523449893597, 1.4957396284031257, 0.889151020576231, 0.0, 12.476054829848946, 9.78066122633854, 7.478698142015627, 5.740570349680789, 9.733632447148663, 4.751218512006159, 3.8206047638217933, 3.1915457757895624, 4.662152869899895, 3.5310529898861933, 2.0303946189709046, 0.8032636545567561, 0.0), # 138 (11.882820987576796, 8.782603283571376, 10.120694437287398, 10.553835403986378, 9.292662725701055, 4.457796752222938, 3.800711274042032, 3.3874533101300353, 4.85753371845134, 1.9054545967802445, 1.4897930509076862, 0.8857773122578926, 0.0, 12.432985287807028, 9.743550434836816, 7.448965254538431, 5.716363790340733, 9.71506743690268, 4.742434634182049, 3.800711274042032, 3.184140537302099, 4.646331362850527, 3.517945134662127, 2.0241388874574797, 0.7984184803246707, 0.0), # 139 (11.822996747836257, 8.72833344153723, 10.088526928801404, 10.513477532291418, 9.26012702961246, 4.447114159529844, 3.780406471424378, 3.3809876027614147, 4.847955904819222, 1.8971943878339157, 1.4837011762268022, 0.8823169108026693, 0.0, 12.38871505602964, 9.70548601882936, 7.41850588113401, 5.691583163501746, 9.695911809638444, 4.733382643865981, 3.780406471424378, 3.176510113949888, 4.63006351480623, 3.5044925107638067, 2.017705385760281, 0.7934848583215663, 0.0), # 140 (11.761747057075162, 8.673013182547843, 10.055424589517022, 10.472029721437782, 9.226670536027703, 4.436093764894997, 3.7596585259385567, 3.374303296351908, 4.838059775592251, 1.8887281726184386, 1.477452688201756, 0.8787644530025115, 0.0, 12.34320172349308, 9.666408983027624, 7.38726344100878, 5.6661845178553145, 9.676119551184502, 4.724024614892672, 3.7596585259385567, 3.168638403496426, 4.613335268013851, 3.490676573812595, 2.0110849179034047, 0.7884557438679859, 0.0), # 141 (11.69902100320542, 8.616565015129181, 10.02134143955475, 10.429436338289557, 9.192265129440482, 4.424713025187291, 3.7384356075542886, 3.367373300783457, 4.827822323684707, 1.8800413006976404, 1.4710362706738296, 0.8751145756493696, 0.0, 12.296402879173653, 9.626260332143064, 7.355181353369148, 5.64012390209292, 9.655644647369414, 4.71432262109684, 3.7384356075542886, 3.160509303705208, 4.596132564720241, 3.4764787794298533, 2.0042682879109504, 0.7833240922844712, 0.0), # 142 (11.634767674138946, 8.558911447807208, 9.986231499035082, 10.385641749710825, 9.156882694344494, 4.412949397275621, 3.7167058862412983, 3.360170525938002, 4.817220542010869, 1.871119121635349, 1.4644406074843055, 0.8713619155351939, 0.0, 12.248276112047666, 9.584981070887132, 7.322203037421526, 5.6133573649060455, 9.634441084021738, 4.704238736313203, 3.7167058862412983, 3.1521067123397293, 4.578441347172247, 3.4618805832369426, 1.9972462998070164, 0.7780828588915646, 0.0), # 143 (11.56893615778766, 8.499974989107892, 9.950048788078501, 10.340590322565676, 9.12049511523344, 4.400780338028881, 3.6944375319693092, 3.3526678816974873, 4.806231423485011, 1.8619469849953916, 1.4576543824744654, 0.867501109451935, 0.0, 12.198779011091421, 9.542512203971285, 7.288271912372326, 5.585840954986173, 9.612462846970022, 4.693735034376482, 3.6944375319693092, 3.1434145271634857, 4.56024755761672, 3.446863440855226, 1.9900097576157, 0.7727249990098085, 0.0), # 144 (11.501475542063469, 8.439678147557194, 9.912747326805505, 10.294226423718191, 9.083074276601018, 4.388183304315964, 3.6715987147080456, 3.344838277943853, 4.794831961021412, 1.8525102403415963, 1.4506662794855925, 0.8635267941915434, 0.0, 12.14786916528122, 9.498794736106976, 7.253331397427962, 5.557530721024787, 9.589663922042824, 4.682773589121394, 3.6715987147080456, 3.1344166459399743, 4.541537138300509, 3.4314088079060645, 1.9825494653611013, 0.7672434679597451, 0.0), # 145 (11.432334914878291, 8.377943431681082, 9.874281135336586, 10.246494420032459, 9.044592062940927, 4.375135753005765, 3.6481576044272312, 3.336654624559041, 4.782999147534349, 1.8427942372377903, 1.4434649823589683, 0.8594336065459691, 0.0, 12.095504163593366, 9.453769672005658, 7.21732491179484, 5.52838271171337, 9.565998295068699, 4.671316474382658, 3.6481576044272312, 3.125096966432689, 4.522296031470463, 3.41549814001082, 1.9748562270673173, 0.7616312210619166, 0.0), # 146 (11.361463364144042, 8.314693350005518, 9.83460423379223, 10.19733867837256, 9.005020358746862, 4.361615140967176, 3.6240823710965873, 3.3280898314249927, 4.770709975938102, 1.8327843252478015, 1.4360391749358754, 0.855216183307163, 0.0, 12.041641595004167, 9.407378016378791, 7.180195874679377, 5.498352975743403, 9.541419951876204, 4.65932576399499, 3.6240823710965873, 3.1154393864051255, 4.502510179373431, 3.3991128927908543, 1.966920846758446, 0.7558812136368653, 0.0), # 147 (11.288809977772631, 8.24985041105647, 9.793670642292932, 10.146703565602587, 8.964331048512523, 4.347598925069094, 3.599341184685839, 3.3191168084236504, 4.757941439146947, 1.822465853935457, 1.428377541057596, 0.8508691612670749, 0.0, 11.986239048489919, 9.359560773937822, 7.141887705287981, 5.4673975618063695, 9.515882878293894, 4.646763531793111, 3.599341184685839, 3.105427803620781, 4.482165524256262, 3.38223452186753, 1.9587341284585866, 0.7499864010051337, 0.0), # 148 (11.214323843675977, 8.1833371233599, 9.751434380959186, 10.094533448586619, 8.922496016731612, 4.33306456218041, 3.573902215164709, 3.3097084654369557, 4.744670530075158, 1.8118241728645852, 1.4204687645654126, 0.8463871772176558, 0.0, 11.929254113026934, 9.310258949394212, 7.102343822827062, 5.4354725185937545, 9.489341060150316, 4.6335918516117385, 3.573902215164709, 3.09504611584315, 4.461248008365806, 3.3648444828622073, 1.950286876191837, 0.7439397384872637, 0.0), # 149 (11.137954049765991, 8.115075995441773, 9.707849469911476, 10.040772694188746, 8.879487147897825, 4.317989509170021, 3.5477336325029207, 3.29983771234685, 4.730874241637018, 1.8008446315990123, 1.412301529300607, 0.8417648679508558, 0.0, 11.870644377591507, 9.259413547459413, 7.061507646503035, 5.402533894797036, 9.461748483274036, 4.61977279728559, 3.5477336325029207, 3.084278220835729, 4.439743573948912, 3.3469242313962493, 1.9415698939822956, 0.7377341814037977, 0.0), # 150 (11.059649683954586, 8.044989535828057, 9.6628699292703, 9.985365669273047, 8.835276326504857, 4.302351222906816, 3.5208036066701984, 3.2894774590352758, 4.716529566746802, 1.789512579702568, 1.4038645191044614, 0.8369968702586252, 0.0, 11.810367431159946, 9.206965572844876, 7.019322595522306, 5.368537739107703, 9.433059133493604, 4.605268442649386, 3.5208036066701984, 3.0731080163620117, 4.417638163252429, 3.3284552230910167, 1.9325739858540603, 0.731362685075278, 0.0), # 151 (10.979359834153682, 7.973000253044715, 9.616449779156152, 9.928256740703617, 8.789835437046412, 4.286127160259694, 3.4930803076362653, 3.2786006153841747, 4.701613498318786, 1.7778133667390779, 1.3951464178182584, 0.8320778209329146, 0.0, 11.748380862708558, 9.15285603026206, 6.975732089091292, 5.333440100217232, 9.403226996637573, 4.590040861537845, 3.4930803076362653, 3.061519400185496, 4.394917718523206, 3.309418913567873, 1.9232899558312306, 0.7248182048222469, 0.0), # 152 (10.897033588275185, 7.899030655617714, 9.568543039689514, 9.86939027534453, 8.743136364016186, 4.269294778097547, 3.4645319053708437, 3.2671800912754865, 4.686103029267251, 1.7657323422723707, 1.3861359092832806, 0.8270023567656742, 0.0, 11.68464226121364, 9.097025924422415, 6.930679546416402, 5.297197026817111, 9.372206058534502, 4.574052127785681, 3.4645319053708437, 3.049496270069676, 4.371568182008093, 3.2897967584481775, 1.9137086079379029, 0.7180936959652467, 0.0), # 153 (10.81262003423102, 7.823003252073014, 9.519103730990887, 9.80871064005988, 8.695150991907875, 4.251831533289268, 3.43512656984366, 3.2551887965911552, 4.6699751525064706, 1.7532548558662742, 1.3768216773408095, 0.8217651145488547, 0.0, 11.6191092156515, 9.0394162600374, 6.884108386704048, 5.259764567598821, 9.339950305012941, 4.557264315227617, 3.43512656984366, 3.037022523778049, 4.347575495953937, 3.2695702133532945, 1.9038207461981775, 0.7111821138248196, 0.0), # 154 (10.72606825993309, 7.744840550936584, 9.468085873180756, 9.746162201713748, 8.645851205215184, 4.233714882703753, 3.404832471024433, 3.2425996412131215, 4.653206860950727, 1.7403662570846146, 1.3671924058321279, 0.8163607310744064, 0.0, 11.551739314998438, 8.97996804181847, 6.8359620291606396, 5.221098771253843, 9.306413721901453, 4.53963949769837, 3.404832471024433, 3.0240820590741087, 4.322925602607592, 3.2487207339045834, 1.8936171746361512, 0.7040764137215078, 0.0), # 155 (10.637327353293314, 7.664465060734389, 9.415443486379615, 9.68168932717022, 8.595208888431804, 4.214922283209894, 3.37361777888289, 3.2293855350233276, 4.635775147514292, 1.727051895491221, 1.357236778598518, 0.8107838431342794, 0.0, 11.48249014823076, 8.918622274477073, 6.7861838929925895, 5.181155686473662, 9.271550295028584, 4.521139749032659, 3.37361777888289, 3.0106587737213526, 4.297604444215902, 3.2272297757234076, 1.8830886972759233, 0.6967695509758537, 0.0), # 156 (10.546346402223609, 7.581799289992394, 9.361130590707957, 9.615236383293386, 8.543195926051439, 4.195431191676585, 3.3414506633887537, 3.215519387903715, 4.6176570051114485, 1.7132971206499201, 1.3469434794812618, 0.8050290875204243, 0.0, 11.411319304324769, 8.855319962724668, 6.734717397406309, 5.1398913619497595, 9.235314010222897, 4.501727143065201, 3.3414506633887537, 2.996736565483275, 4.2715979630257195, 3.205078794431129, 1.8722261181415913, 0.6892544809083996, 0.0), # 157 (10.450553324967336, 7.495248171657732, 9.302523946219415, 9.544258060733807, 8.48743569881293, 4.174003322325641, 3.3075747046495003, 3.200048222203801, 4.597442309412912, 1.698678070701901, 1.335972342259087, 0.7988866158226731, 0.0, 11.335080203181485, 8.787752774049402, 6.679861711295434, 5.096034212105701, 9.194884618825824, 4.480067511085322, 3.3075747046495003, 2.9814309445183147, 4.243717849406465, 3.1814193535779363, 1.8605047892438833, 0.6813861974234302, 0.0), # 158 (10.335201473769764, 7.395933826819331, 9.224527454803487, 9.454176016727876, 8.414178555796186, 4.143513212539135, 3.2677489343700015, 3.17754122744589, 4.566999388570334, 1.6807983479345614, 1.3223972849777657, 0.7911589610963629, 0.0, 11.235598705688274, 8.70274857205999, 6.611986424888827, 5.042395043803683, 9.133998777140668, 4.448557718424246, 3.2677489343700015, 2.9596522946708106, 4.207089277898093, 3.1513920055759597, 1.8449054909606977, 0.6723576206199392, 0.0), # 159 (10.198820932866035, 7.28304080162725, 9.125574450948537, 9.343506385929302, 8.321992122590341, 4.103212058438943, 3.221570623868649, 3.147432860557619, 4.525465106040038, 1.6594219781520132, 1.3060272186755595, 0.7817252273702489, 0.0, 11.110988852451014, 8.598977501072737, 6.530136093377798, 4.978265934456038, 9.050930212080075, 4.406406004780667, 3.221570623868649, 2.9308657560278157, 4.160996061295171, 3.114502128643102, 1.8251148901897079, 0.6620946183297501, 0.0), # 160 (10.042510876420344, 7.1573051140366015, 9.006721467228694, 9.213301128944565, 8.211833582663305, 4.053588080615757, 3.1693770122048135, 3.1101003109807053, 4.473387224599541, 1.6347303676098288, 1.2870063860732652, 0.77067287137255, 0.0, 10.962523662746737, 8.477401585098049, 6.435031930366326, 4.904191102829485, 8.946774449199083, 4.354140435372988, 3.1693770122048135, 2.8954200575826836, 4.105916791331652, 3.071100376314856, 1.801344293445739, 0.6506641012760548, 0.0), # 161 (9.8673704785969, 7.01946278200249, 8.86902503621808, 9.064612206380144, 8.08466011948299, 3.9951294996602726, 3.1115053384378664, 3.0659207681568685, 4.411313507026364, 1.6069049225635816, 1.2654790298916783, 0.7580893498314843, 0.0, 10.791476155852466, 8.338982848146326, 6.3273951494583915, 4.820714767690744, 8.822627014052728, 4.292289075419616, 3.1115053384378664, 2.8536639283287664, 4.042330059741495, 3.0215374021267154, 1.773805007243616, 0.6381329801820447, 0.0), # 162 (9.674498913559898, 6.870249823480022, 8.71354169049082, 8.898491578842531, 7.941428916517308, 3.928324536163185, 3.048292841627181, 3.015271421527823, 4.339791716098023, 1.5761270492688444, 1.2415893928515955, 0.7440621194752707, 0.0, 10.599119351045232, 8.184683314227977, 6.207946964257977, 4.728381147806532, 8.679583432196045, 4.221379990138953, 3.048292841627181, 2.8059460972594175, 3.970714458258654, 2.9661638596141775, 1.742708338098164, 0.6245681657709112, 0.0), # 163 (9.464995355473539, 6.710402256424303, 8.54132796262104, 8.71599120693821, 7.783097157234176, 3.853661410715189, 2.9800767608321266, 2.9585294605352903, 4.259369614592037, 1.5425781539811894, 1.2154817176738126, 0.7286786370321272, 0.0, 10.386726267602059, 8.015465007353399, 6.077408588369063, 4.627734461943566, 8.518739229184074, 4.141941244749407, 2.9800767608321266, 2.752615293367992, 3.891548578617088, 2.905330402312737, 1.7082655925242083, 0.6100365687658459, 0.0), # 164 (9.239958978502024, 6.5406560987904445, 8.353440385182864, 8.518163051273666, 7.610622025101502, 3.771628343906979, 2.9071943351120755, 2.8960720746209856, 4.1705949652859235, 1.5064396429561904, 1.1873002470791263, 0.7120263592302724, 0.0, 10.155569924799979, 7.832289951532995, 5.936501235395631, 4.51931892886857, 8.341189930571847, 4.05450090446938, 2.9071943351120755, 2.694020245647842, 3.805311012550751, 2.839387683757889, 1.670688077036573, 0.5946050998900405, 0.0), # 165 (9.000488956809557, 6.361747368533551, 8.150935490750417, 8.306059072455376, 7.4249607035872005, 3.682713556329251, 2.8299828035264003, 2.8282764532266285, 4.074015530957201, 1.4678929224494195, 1.157189223788332, 0.6941927427979253, 0.0, 9.906923341916015, 7.636120170777177, 5.78594611894166, 4.403678767348258, 8.148031061914402, 3.95958703451728, 2.8299828035264003, 2.630509683092322, 3.7124803517936003, 2.768686357485126, 1.6301870981500834, 0.5783406698666865, 0.0), # 166 (8.747684464560333, 6.174412083608727, 7.934869811897824, 8.080731231089835, 7.2270703761591815, 3.5874052685726983, 2.7487794051344725, 2.7555197857939366, 3.9701790743833865, 1.4271193987164503, 1.1252928905222266, 0.6752652444633036, 0.0, 9.642059538227196, 7.427917689096338, 5.626464452611132, 4.28135819614935, 7.940358148766773, 3.8577277001115116, 2.7487794051344725, 2.562432334694784, 3.6135351880795907, 2.693577077029946, 1.5869739623795647, 0.5613101894189753, 0.0), # 167 (8.482644675918554, 5.979386261971081, 7.706299881199207, 7.843231487783524, 7.017908226285359, 3.4861917012280164, 2.663921378995663, 2.6781792617646265, 3.8596333583419993, 1.3843004780128556, 1.0917554900016058, 0.6553313209546264, 0.0, 9.362251533010546, 7.20864453050089, 5.458777450008029, 4.152901434038566, 7.7192667166839986, 3.7494509664704774, 2.663921378995663, 2.490136929448583, 3.5089541131426794, 2.614410495927842, 1.5412599762398416, 0.5435805692700985, 0.0), # 168 (8.206468765048422, 5.777405921575724, 7.466282231228694, 7.594611803142927, 6.798431437433646, 3.3795610748859013, 2.5757459641693443, 2.5966320705804184, 3.7429261456105576, 1.339617566594208, 1.0567212649472661, 0.6344784290001119, 0.0, 9.0687723455431, 6.9792627190012295, 5.28360632473633, 4.018852699782624, 7.485852291221115, 3.635284898812586, 2.5757459641693443, 2.413972196347072, 3.399215718716823, 2.5315372677143095, 1.493256446245739, 0.5252187201432478, 0.0), # 169 (7.9202559061141375, 5.569207080377758, 7.215873394560408, 7.335924137774526, 6.569597193071951, 3.268001610137046, 2.4845903997148873, 2.5112554016830275, 3.620605198966578, 1.2932520707160806, 1.020334458080004, 0.6127940253279787, 0.0, 8.762894995101878, 6.740734278607764, 5.101672290400019, 3.879756212148241, 7.241210397933156, 3.5157575623562387, 2.4845903997148873, 2.3342868643836043, 3.2847985965359756, 2.4453080459248424, 1.4431746789120816, 0.5062915527616144, 0.0), # 170 (7.6251052732799005, 5.355525756332291, 6.956129903768475, 7.068220452284813, 6.3323626766681915, 3.152001527572146, 2.390791924691664, 2.4224264445141737, 3.4932182811875796, 1.2453853966340462, 0.9827393121206148, 0.5903655666664452, 0.0, 8.445892500963913, 6.494021233330896, 4.913696560603074, 3.736156189902138, 6.986436562375159, 3.3913970223198433, 2.390791924691664, 2.2514296625515327, 3.1661813383340958, 2.356073484094938, 1.391225980753695, 0.4868659778483902, 0.0), # 171 (7.322116040709912, 5.137097967394431, 6.688108291427019, 6.792552707280267, 6.087685071690277, 3.0320490477818964, 2.2946877781590462, 2.3305223885155746, 3.3613131550510804, 1.1961989506036783, 0.9440800697898953, 0.56728050974373, 0.0, 8.119037882406225, 6.24008560718103, 4.720400348949476, 3.588596851811034, 6.722626310102161, 3.2627313439218044, 2.2946877781590462, 2.165749319844212, 3.0438425358451386, 2.2641842357600894, 1.337621658285404, 0.4670089061267665, 0.0), # 172 (7.012387382568372, 4.914659731519285, 6.412865090110164, 6.509972863367375, 5.836521561606121, 2.9086323913569916, 2.196615199176405, 2.235920423128947, 3.225437583334597, 1.145874138880549, 0.9045009738086416, 0.5436263112880514, 0.0, 7.783604158705848, 5.979889424168563, 4.522504869043208, 3.437622416641646, 6.450875166669194, 3.130288592380526, 2.196615199176405, 2.077594565254994, 2.9182607808030605, 2.169990954455792, 1.282573018022033, 0.446787248319935, 0.0), # 173 (6.697018473019482, 4.6889470666619575, 6.131456832392036, 6.221532881152618, 5.579829329883635, 2.7822397788881266, 2.096911426803113, 2.1389977377960108, 3.08613932881565, 1.0945923677202316, 0.8641462668976501, 0.519490428027628, 0.0, 7.440864349139807, 5.7143947083039075, 4.32073133448825, 3.283777103160694, 6.1722786576313, 2.994596832914415, 2.096911426803113, 1.9873141277772333, 2.7899146649418176, 2.07384429371754, 1.2262913664784072, 0.42626791515108714, 0.0), # 174 (6.377108486227438, 4.460695990777558, 5.84494005084676, 5.928284721242486, 5.318565559990731, 2.653359430965997, 1.9959137000985407, 2.040131521958481, 2.943966154271756, 1.0425350433782987, 0.8231601917777163, 0.49496031669067847, 0.0, 7.092091472985131, 5.444563483597462, 4.115800958888581, 3.1276051301348957, 5.887932308543512, 2.8561841307418736, 1.9959137000985407, 1.8952567364042836, 2.6592827799953653, 1.9760949070808291, 1.1689880101693522, 0.40551781734341447, 0.0), # 175 (6.053756596356447, 4.230642521821194, 5.554371278048459, 5.631280344243462, 5.053687435395322, 2.5224795681812964, 1.8939592581220606, 1.9396989650580787, 2.7994658224804327, 0.9898835721103237, 0.781686991169637, 0.470123434005421, 0.0, 6.738558549518844, 5.17135777405963, 3.9084349558481852, 2.9696507163309707, 5.5989316449608655, 2.71557855108131, 1.8939592581220606, 1.8017711201294973, 2.526843717697661, 1.8770934480811543, 1.1108742556096918, 0.38460386562010856, 0.0), # 176 (5.7280619775707065, 3.9995226777479713, 5.260807046571258, 5.331571710762027, 4.786152139565322, 2.3900884111247205, 1.791385339933044, 1.8380772565365193, 2.6531860962191995, 0.9368193601718788, 0.7398709077942084, 0.4450672367000743, 0.0, 6.381538598017975, 4.895739603700816, 3.699354538971042, 2.8104580805156356, 5.306372192438399, 2.5733081591511273, 1.791385339933044, 1.707206007946229, 2.393076069782661, 1.7771905702540096, 1.0521614093142517, 0.3635929707043611, 0.0), # 177 (5.401123804034416, 3.7680724765129963, 4.9653038889892835, 5.030210781404673, 4.516916855968639, 2.2566741803869648, 1.6885291845908623, 1.7356435858355217, 2.505674738265573, 0.8835238138185378, 0.6978561843722264, 0.41987918150285664, 0.0, 6.022304637759553, 4.618670996531422, 3.489280921861132, 2.6505714414556127, 5.011349476531146, 2.4299010201697304, 1.6885291845908623, 1.611910128847832, 2.2584584279843196, 1.6767369271348913, 0.9930607777978567, 0.34255204331936334, 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 15, # 1 )
278.959358
492
0.771787
32,987
260,827
6.102161
0.22718
0.354112
0.339805
0.643841
0.367883
0.360928
0.359895
0.359527
0.359527
0.359527
0
0.851414
0.094829
260,827
934
493
279.25803
0.001182
0.015378
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
3f31d2bb293be6205ae663454629362d66493a43
4,755
py
Python
tests/distributed/test_against_external_daemon/test_single_instance.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
null
null
null
tests/distributed/test_against_external_daemon/test_single_instance.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
4
2020-09-01T17:47:27.000Z
2021-04-16T23:11:57.000Z
tests/distributed/test_against_external_daemon/test_single_instance.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import pytest from jina import Flow from tests import random_docs cur_dir = os.path.dirname(os.path.abspath(__file__)) CLOUD_HOST = 'localhost:8000' # consider it as the staged version NUM_DOCS = 100 @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_r_l_simple(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) .add(parallel=parallels)) with f: f.index(('hello' for _ in range(NUM_DOCS)), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_l_r_simple(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add(parallel=parallels) .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) ) with f: f.index(('hello' for _ in range(NUM_DOCS)), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_r_l_r_simple(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) .add() .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) ) with f: f.index(('hello' for _ in range(NUM_DOCS)), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_r_r_r_simple(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) ) with f: f.index(('hello' for _ in range(NUM_DOCS)), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_l_r_l_simple(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add() .add(host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log) .add() ) with f: f.index(('hello' for _ in range(NUM_DOCS)), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2]) def test_l_r_l_with_upload(silent_log, parallels, mocker): response_mock = mocker.Mock() f = (Flow() .add() .add(uses='mwu_encoder.yml', host=CLOUD_HOST, parallel=parallels, upload_files=['mwu_encoder.py'], silent_remote_logs=silent_log) .add()) with f: f.index_ndarray(np.random.random([NUM_DOCS, 100]), on_done=response_mock) response_mock.assert_called() @pytest.fixture() def docker_image(): img_name = 'test-mwu-encoder' import docker client = docker.from_env() client.images.build(path=os.path.join(cur_dir, '../../unit/mwu-encoder/'), tag=img_name) client.close() yield img_name client = docker.from_env() client.containers.prune() @pytest.mark.parametrize('silent_log', [True, False]) @pytest.mark.parametrize('parallels', [1, 2, 3]) def test_l_r_l_with_upload_remote(silent_log, parallels, docker_image, mocker): response_mock = mocker.Mock() f = (Flow() .add() .add(uses=f'docker://{docker_image}', host=CLOUD_HOST, parallel=parallels, silent_remote_logs=silent_log, timeout_ready=60000) .add()) with f: f.index_ndarray(np.random.random([NUM_DOCS, 100]), on_done=response_mock) response_mock.assert_called() @pytest.mark.parametrize('parallels', [2]) def test_create_pea_timeout(parallels): f = (Flow() .add() .add(uses='delayed_executor.yml', host=CLOUD_HOST, parallel=parallels, upload_files=['delayed_executor.py'], timeout_ready=20000) .add()) with f: f.index(random_docs(10))
29.534161
92
0.628601
597
4,755
4.735343
0.159129
0.076406
0.111426
0.081712
0.80474
0.776795
0.776795
0.766183
0.735055
0.735055
0
0.011398
0.243533
4,755
160
93
29.71875
0.774534
0.00694
0
0.691729
0
0
0.06589
0.009746
0
0
0
0
0.052632
1
0.067669
false
0
0.045113
0
0.112782
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
18cb8acc073e1a0c3244437b916e432fac5f61b8
148
py
Python
azazel/api/models/course.py
agata-project/azazel
501d55a8209e374b8f6315b9474109970f0b193a
[ "MIT" ]
4
2018-07-10T00:32:40.000Z
2018-07-12T01:22:20.000Z
azazel/api/models/course.py
agata-project/azazel
501d55a8209e374b8f6315b9474109970f0b193a
[ "MIT" ]
10
2018-07-12T14:18:34.000Z
2021-06-10T20:39:10.000Z
azazel/api/models/course.py
agata-project/azazel
501d55a8209e374b8f6315b9474109970f0b193a
[ "MIT" ]
1
2018-07-12T03:19:27.000Z
2018-07-12T03:19:27.000Z
from django.db import models class Course(models.Model): initials = models.CharField(max_length=5) name = models.CharField(max_length=50)
21.142857
45
0.75
21
148
5.190476
0.714286
0.275229
0.330275
0.440367
0
0
0
0
0
0
0
0.02381
0.148649
148
6
46
24.666667
0.84127
0
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
18f438bf55af321f2c442e20b7bde7ad028e6c61
309
py
Python
rpi_automator/dto/TempAndHumidityData.py
raviles/rpi_automator
8b7a1899cabed91b7c1f1be1508ab86a213776f6
[ "MIT" ]
1
2018-11-22T09:14:52.000Z
2018-11-22T09:14:52.000Z
rpi_automator/dto/TempAndHumidityData.py
raviles/rpi_automator
8b7a1899cabed91b7c1f1be1508ab86a213776f6
[ "MIT" ]
null
null
null
rpi_automator/dto/TempAndHumidityData.py
raviles/rpi_automator
8b7a1899cabed91b7c1f1be1508ab86a213776f6
[ "MIT" ]
null
null
null
class TempAndHumidityData: """ Captures temperature and humidity data """ def __init__(self, temperature, humidity): self.temperature = temperature self.humidity = humidity def __str__(self): return 'temperature={}, humidity={}'.format(self.temperature, self.humidity)
25.75
84
0.679612
29
309
6.965517
0.448276
0.222772
0.227723
0
0
0
0
0
0
0
0
0
0.210356
309
11
85
28.090909
0.827869
0.122977
0
0
0
0
0.103448
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
7a0e91998974b626e17484ae7a2c901a3e68aa53
12,669
py
Python
tests/api/v3_0_0/test_node_deployment.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
tests/api/v3_0_0/test_node_deployment.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
tests/api/v3_0_0/test_node_deployment.py
oianson/ciscoisesdk
c8fe9d80416048dd0ff2241209c4f78ab78c1a4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """IdentityServicesEngineAPI node_deployment API fixtures and tests. Copyright (c) 2021 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ import pytest from fastjsonschema.exceptions import JsonSchemaException from ciscoisesdk.exceptions import MalformedRequest from tests.environment import IDENTITY_SERVICES_ENGINE_VERSION pytestmark = pytest.mark.skipif(IDENTITY_SERVICES_ENGINE_VERSION != '3.0.0', reason='version does not match') def is_valid_get_all_nodes(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_fa838e78175e51b4bcfb0821c19b81b7_v3_0_0').validate(obj.response) return True def get_all_nodes(api): endpoint_result = api.node_deployment.get_all_nodes( ) return endpoint_result @pytest.mark.node_deployment def test_get_all_nodes(api, validator): try: assert is_valid_get_all_nodes( validator, get_all_nodes(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def get_all_nodes_default(api): endpoint_result = api.node_deployment.get_all_nodes( ) return endpoint_result @pytest.mark.node_deployment def test_get_all_nodes_default(api, validator): try: assert is_valid_get_all_nodes( validator, get_all_nodes_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_register_node(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_e82e46732de25832a543c4640312588c_v3_0_0').validate(obj.response) return True def register_node(api): endpoint_result = api.node_deployment.register_node( active_validation=False, administration={'isEnabled': True, 'role': 'string'}, fdqn='string', general_settings={'monitoring': {'isEnabled': True, 'role': 'string', 'otherMonitoringNode': 'string', 'isMntDedicated': True, 'policyservice': {'enabled': True, 'sessionService': {'isEnabled': True, 'nodegroup': 'string'}, 'enableProfilingService': True, 'enableNACService': True, 'sxpservice': {'isEnabled': True, 'userInterface': 'string'}, 'enableDeviceAdminService': True, 'enablePassiveIdentityService': True}, 'enablePXGrid': True}}, password='string', payload=None, profile_configuration={'netflow': {'enabled': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'dhcp': {'enabled': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'dhcpSpan': {'enabled': True, 'interface': 'string', 'description': 'string'}, 'http': {'enabled': True, 'interface': 'string', 'description': 'string'}, 'radius': {'enabled': True, 'description': 'string'}, 'nmap': {'enabled': True, 'description': 'string'}, 'dns': {'enabled': True, 'description': 'string'}, 'snmpQuery': {'enabled': True, 'description': 'string', 'retries': 0, 'timeout': 0, 'eventTimeout': 0}, 'snmpTrap': {'linkTrapQuery': True, 'macTrapQuery': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'activeDirectory': {'enabled': True, 'daysBeforeRescan': 0, 'description': 'string'}, 'pxgrid': {'enabled': True, 'description': 'string'}}, user_name='string' ) return endpoint_result @pytest.mark.node_deployment def test_register_node(api, validator): try: assert is_valid_register_node( validator, register_node(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def register_node_default(api): endpoint_result = api.node_deployment.register_node( active_validation=False, administration=None, fdqn=None, general_settings=None, password=None, payload=None, profile_configuration=None, user_name=None ) return endpoint_result @pytest.mark.node_deployment def test_register_node_default(api, validator): try: assert is_valid_register_node( validator, register_node_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_promote_node(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_42b11e2f1af656bcb5880a7b33720ec5_v3_0_0').validate(obj.response) return True def promote_node(api): endpoint_result = api.node_deployment.promote_node( active_validation=False, payload=None, promotion_type='string' ) return endpoint_result @pytest.mark.node_deployment def test_promote_node(api, validator): try: assert is_valid_promote_node( validator, promote_node(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def promote_node_default(api): endpoint_result = api.node_deployment.promote_node( active_validation=False, payload=None, promotion_type=None ) return endpoint_result @pytest.mark.node_deployment def test_promote_node_default(api, validator): try: assert is_valid_promote_node( validator, promote_node_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_get_node_details(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_ae8d7c8f33bb52ceb04880845f2f45ba_v3_0_0').validate(obj.response) return True def get_node_details(api): endpoint_result = api.node_deployment.get_node_details( hostname='string' ) return endpoint_result @pytest.mark.node_deployment def test_get_node_details(api, validator): try: assert is_valid_get_node_details( validator, get_node_details(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def get_node_details_default(api): endpoint_result = api.node_deployment.get_node_details( hostname='string' ) return endpoint_result @pytest.mark.node_deployment def test_get_node_details_default(api, validator): try: assert is_valid_get_node_details( validator, get_node_details_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_update_node(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_682c1fa3bf115c77be99b602aca1493b_v3_0_0').validate(obj.response) return True def update_node(api): endpoint_result = api.node_deployment.update_node( active_validation=False, general_settings={'monitoring': {'isEnabled': True, 'role': 'string', 'otherMonitoringNode': 'string', 'isMntDedicated': True, 'policyservice': {'enabled': True, 'sessionService': {'isEnabled': True, 'nodegroup': 'string'}, 'enableProfilingService': True, 'enableNACService': True, 'sxpservice': {'isEnabled': True, 'userInterface': 'string'}, 'enableDeviceAdminService': True, 'enablePassiveIdentityService': True}, 'enablePXGrid': True}}, hostname='string', payload=None, profile_configuration={'netflow': {'enabled': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'dhcp': {'enabled': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'dhcpSpan': {'enabled': True, 'interface': 'string', 'description': 'string'}, 'http': {'enabled': True, 'interface': 'string', 'description': 'string'}, 'radius': {'enabled': True, 'description': 'string'}, 'nmap': {'enabled': True, 'description': 'string'}, 'dns': {'enabled': True, 'description': 'string'}, 'snmpQuery': {'enabled': True, 'description': 'string', 'retries': 0, 'timeout': 0, 'eventTimeout': 0}, 'snmpTrap': {'linkTrapQuery': True, 'macTrapQuery': True, 'interface': 'string', 'port': {}, 'description': 'string'}, 'activeDirectory': {'enabled': True, 'daysBeforeRescan': 0, 'description': 'string'}, 'pxgrid': {'enabled': True, 'description': 'string'}} ) return endpoint_result @pytest.mark.node_deployment def test_update_node(api, validator): try: assert is_valid_update_node( validator, update_node(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def update_node_default(api): endpoint_result = api.node_deployment.update_node( active_validation=False, hostname='string', general_settings=None, payload=None, profile_configuration=None ) return endpoint_result @pytest.mark.node_deployment def test_update_node_default(api, validator): try: assert is_valid_update_node( validator, update_node_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e def is_valid_delete_node(json_schema_validate, obj): if not obj: return False assert hasattr(obj, 'headers') assert hasattr(obj, 'content') assert hasattr(obj, 'text') assert hasattr(obj, 'response') json_schema_validate('jsd_161d26670a205a78800cb50673027a6e_v3_0_0').validate(obj.response) return True def delete_node(api): endpoint_result = api.node_deployment.delete_node( hostname='string' ) return endpoint_result @pytest.mark.node_deployment def test_delete_node(api, validator): try: assert is_valid_delete_node( validator, delete_node(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def delete_node_default(api): endpoint_result = api.node_deployment.delete_node( hostname='string' ) return endpoint_result @pytest.mark.node_deployment def test_delete_node_default(api, validator): try: assert is_valid_delete_node( validator, delete_node_default(api) ) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest, TypeError)): raise original_e
35.587079
882
0.691531
1,412
12,669
5.988669
0.157932
0.03193
0.045412
0.028382
0.809721
0.80369
0.794939
0.793046
0.78122
0.764191
0
0.015898
0.200647
12,669
355
883
35.687324
0.819097
0.091641
0
0.66171
0
0
0.175811
0.035301
0
0
0
0
0.133829
1
0.111524
false
0.01487
0.01487
0
0.215613
0.022305
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
e17fc8853b010762782b9e0e5f0885507c560a0d
10,342
py
Python
Utility/path_to_transcript_dicts.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
93
2021-08-11T13:52:37.000Z
2022-03-29T23:19:07.000Z
Utility/path_to_transcript_dicts.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
4
2021-12-15T17:23:14.000Z
2022-03-24T04:51:40.000Z
Utility/path_to_transcript_dicts.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
25
2021-08-11T14:23:47.000Z
2022-03-28T20:23:51.000Z
import os def build_path_to_transcript_dict_karlsson(): root = "/mount/resources/speech/corpora/MAILabs_german_single_speaker_karlsson" path_to_transcript = dict() for el in os.listdir(root): if os.path.isdir(os.path.join(root, el)): with open(os.path.join(root, el, "metadata.csv"), "r", encoding="utf8") as file: lookup = file.read() for line in lookup.split("\n"): if line.strip() != "": norm_transcript = line.split("|")[2] wav_path = os.path.join(root, el, "wavs", line.split("|")[0] + ".wav") if os.path.exists(wav_path): path_to_transcript[wav_path] = norm_transcript return path_to_transcript def build_path_to_transcript_dict_eva(): root = "/mount/resources/speech/corpora/MAILabs_german_single_speaker_eva" path_to_transcript = dict() for el in os.listdir(root): if os.path.isdir(os.path.join(root, el)): with open(os.path.join(root, el, "metadata.csv"), "r", encoding="utf8") as file: lookup = file.read() for line in lookup.split("\n"): if line.strip() != "": norm_transcript = line.split("|")[2] wav_path = os.path.join(root, el, "wavs", line.split("|")[0] + ".wav") if os.path.exists(wav_path): path_to_transcript[wav_path] = norm_transcript return path_to_transcript def build_path_to_transcript_dict_elizabeth(): root = "/mount/resources/speech/corpora/MAILabs_british_single_speaker_elizabeth" path_to_transcript = dict() for el in os.listdir(root): if os.path.isdir(os.path.join(root, el)): with open(os.path.join(root, el, "metadata.csv"), "r", encoding="utf8") as file: lookup = file.read() for line in lookup.split("\n"): if line.strip() != "": norm_transcript = line.split("|")[2] wav_path = os.path.join(root, el, "wavs", line.split("|")[0] + ".wav") if os.path.exists(wav_path): path_to_transcript[wav_path] = norm_transcript return path_to_transcript def build_path_to_transcript_dict_nancy(): root = "/mount/resources/speech/corpora/NancyKrebs" path_to_transcript = dict() with open(os.path.join(root, "metadata.csv"), "r", encoding="utf8") as file: lookup = file.read() for line in lookup.split("\n"): if line.strip() != "": norm_transcript = line.split("|")[1] wav_path = os.path.join(root, "wav", line.split("|")[0] + ".wav") if os.path.exists(wav_path): path_to_transcript[wav_path] = norm_transcript return path_to_transcript def build_path_to_transcript_dict_hokuspokus(): path_to_transcript = dict() for transcript_file in os.listdir("/mount/resources/speech/corpora/LibriVox.Hokuspokus/txt"): if transcript_file.endswith(".txt"): with open("/mount/resources/speech/corpora/LibriVox.Hokuspokus/txt/" + transcript_file, 'r', encoding='utf8') as tf: transcript = tf.read() wav_path = "/mount/resources/speech/corpora/LibriVox.Hokuspokus/wav/" + transcript_file.rstrip(".txt") + ".wav" path_to_transcript[wav_path] = transcript return path_to_transcript def build_path_to_transcript_dict_libritts(): path_train = "/mount/resources/speech/corpora/LibriTTS/train-clean-100" path_to_transcript = dict() for speaker in os.listdir(path_train): for chapter in os.listdir(os.path.join(path_train, speaker)): for file in os.listdir(os.path.join(path_train, speaker, chapter)): if file.endswith("normalized.txt"): with open(os.path.join(path_train, speaker, chapter, file), 'r', encoding='utf8') as tf: transcript = tf.read() wav_file = file.split(".")[0] + ".wav" path_to_transcript[os.path.join(path_train, speaker, chapter, wav_file)] = transcript return path_to_transcript def build_path_to_transcript_dict_ljspeech(): path_to_transcript = dict() for transcript_file in os.listdir("/mount/resources/speech/corpora/LJSpeech/16kHz/txt"): with open("/mount/resources/speech/corpora/LJSpeech/16kHz/txt/" + transcript_file, 'r', encoding='utf8') as tf: transcript = tf.read() wav_path = "/mount/resources/speech/corpora/LJSpeech/16kHz/wav/" + transcript_file.rstrip(".txt") + ".wav" path_to_transcript[wav_path] = transcript return path_to_transcript def build_path_to_transcript_dict_css10de(): path_to_transcript = dict() with open("/mount/resources/speech/corpora/CSS10/german/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript["/mount/resources/speech/corpora/CSS10/german/" + line.split("|")[0]] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_thorsten(): path_to_transcript = dict() with open("/mount/resources/speech/corpora/Thorsten_DE/metadata_shuf.csv", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript["/mount/resources/speech/corpora/Thorsten_DE/wavs/" + line.split("|")[0] + ".wav"] = line.split("|")[1] return path_to_transcript def build_path_to_transcript_dict_css10el(): path_to_transcript = dict() language = "greek" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10nl(): path_to_transcript = dict() language = "dutch" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10fi(): path_to_transcript = dict() language = "finnish" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10ru(): path_to_transcript = dict() language = "russian" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10hu(): path_to_transcript = dict() language = "hungarian" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10es(): path_to_transcript = dict() language = "spanish" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_css10fr(): path_to_transcript = dict() language = "french" with open(f"/mount/resources/speech/corpora/CSS10/{language}/transcript.txt", encoding="utf8") as f: transcriptions = f.read() trans_lines = transcriptions.split("\n") for line in trans_lines: if line.strip() != "": path_to_transcript[f"/mount/resources/speech/corpora/CSS10/{language}/{line.split('|')[0]}"] = line.split("|")[2] return path_to_transcript def build_path_to_transcript_dict_nvidia_hifitts(): path_to_transcript = dict() transcripts = list() root = "/mount/resources/speech/corpora/hi_fi_tts_v0" import json for jpath in [f"{root}/6097_manifest_clean_dev.json", f"{root}/6097_manifest_clean_test.json", f"{root}/6097_manifest_clean_train.json", f"{root}/9017_manifest_clean_dev.json", f"{root}/9017_manifest_clean_test.json", f"{root}/9017_manifest_clean_train.json", f"{root}/92_manifest_clean_dev.json", f"{root}/92_manifest_clean_test.json", f"{root}/92_manifest_clean_train.json"]: with open(jpath, encoding='utf-8', mode='r') as jfile: for line in jfile.read().split("\n"): if line.strip() != "": transcripts.append(json.loads(line)) for transcript in transcripts: path = transcript["audio_filepath"] norm_text = transcript["text_normalized"] path_to_transcript[f"{root}/{path}"] = norm_text return path_to_transcript
44.196581
134
0.639141
1,313
10,342
4.810358
0.088347
0.064598
0.172261
0.107663
0.881096
0.828531
0.7576
0.723718
0.723718
0.693952
0
0.016304
0.217173
10,342
233
135
44.386266
0.763834
0
0
0.641026
0
0
0.237672
0.205376
0
0
0
0
0
1
0.087179
false
0
0.010256
0
0.184615
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
e18fbf8b3b28ae04b0046ee22253de71b7bf2ce7
177
py
Python
teste.py
isabelmussi/travis_aula01
2f8105ac7b8d2ce83776d66f94c8e96177ace2bd
[ "Apache-2.0" ]
null
null
null
teste.py
isabelmussi/travis_aula01
2f8105ac7b8d2ce83776d66f94c8e96177ace2bd
[ "Apache-2.0" ]
null
null
null
teste.py
isabelmussi/travis_aula01
2f8105ac7b8d2ce83776d66f94c8e96177ace2bd
[ "Apache-2.0" ]
null
null
null
import pytest #biblioteca pytest from principal import somar from principal import subtrair #def-função def test_somar(): #verifica se é verdadeiro assert somar(2,4)==6
19.666667
30
0.768362
26
177
5.192308
0.692308
0.192593
0.281481
0
0
0
0
0
0
0
0
0.02027
0.163842
177
8
31
22.125
0.891892
0.288136
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
true
0
0.6
0
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e1b1a4fabea369dd027bebf796f0c080a7896e2b
52,540
py
Python
tests/column_aggregate_expectations_distributional/test_pandas_dataset_distributional_expectations.py
anhollis/great_expectations
41ccddfd2c604a0452d6ab142696f5d27c2d551f
[ "Apache-2.0" ]
1
2021-01-10T18:00:06.000Z
2021-01-10T18:00:06.000Z
tests/column_aggregate_expectations_distributional/test_pandas_dataset_distributional_expectations.py
anhollis/great_expectations
41ccddfd2c604a0452d6ab142696f5d27c2d551f
[ "Apache-2.0" ]
null
null
null
tests/column_aggregate_expectations_distributional/test_pandas_dataset_distributional_expectations.py
anhollis/great_expectations
41ccddfd2c604a0452d6ab142696f5d27c2d551f
[ "Apache-2.0" ]
null
null
null
import unittest import json import numpy as np import sys import great_expectations as ge sys.path.append("./tests") from test_utils import assertDeepAlmostEqual sys.path.append("./great_expectations/dataset") from util import is_valid_continuous_partition_object class TestDistributionalExpectations(unittest.TestCase): def __init__(self, *args, **kwargs): super(TestDistributionalExpectations, self).__init__(*args, **kwargs) self.D = ge.read_csv( './tests/test_sets/distributional_expectations_data_test.csv') with open('./tests/test_sets/test_partitions.json', 'r') as infile: self.test_partitions = json.loads(infile.read()) def test_expect_column_chisquare_test_p_value_to_be_greater_than(self): T = [ { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed'], 'p': 0.05 }, 'out': {'success': True, 'observed_value': 1.} }, { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed_alternate'], 'p': 0.05 }, 'out': {'success': False, 'observed_value': 5.1397782097623862e-53} }, { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed_alternate'], 'p': 0.05, 'result_format': 'SUMMARY' }, 'out': {'success': False, 'observed_value': 5.1397782097623862e-53, 'details': { 'observed_partition': { 'values': [u'A', u'B', u'C'], 'weights': [540, 320, 140] }, 'expected_partition': { 'values': [u'A', u'B', u'C'], 'weights': [333.3333333333333, 333.3333333333333, 333.3333333333333] } } } } ] for t in T: out = self.D.expect_column_chisquare_test_p_value_to_be_greater_than( *t['args'], **t['kwargs']) self.assertEqual(t['out']['success'], out['success']) self.assertEqual(t['out']['observed_value'], out['result']['observed_value']) if 'result_format' in t['kwargs'] and t['kwargs']['result_format'] == 'SUMMARY': self.assertDictEqual( t['out']['details'], out['result']['details']) def test_expect_column_chisquare_test_p_value_to_be_greater_than_new_categorical_val(self): # Note: Chisquare test with true zero expected could be treated subtly. Here, we tolerate a warning from stats. categorical_list = (['A'] * 25) + (['B'] * 25) + \ (['C'] * 25) + (['D'] * 25) df = ge.dataset.PandasDataset({'categorical': categorical_list}) out = df.expect_column_chisquare_test_p_value_to_be_greater_than( 'categorical', self.test_partitions['categorical_fixed_alternate']) self.assertEqual(out['success'], False) out = df.expect_column_chisquare_test_p_value_to_be_greater_than( 'categorical', self.test_partitions['categorical_fixed_alternate'], tail_weight_holdout=0.25) self.assertEqual(out['success'], True) def test_expect_column_chisquare_test_p_value_to_be_greater_than_missing_categorical_val(self): categorical_list = (['A'] * 61) + (['B'] * 39) df = ge.dataset.PandasDataset({'categorical': categorical_list}) out = df.expect_column_chisquare_test_p_value_to_be_greater_than( 'categorical', self.test_partitions['categorical_fixed']) self.assertEqual(out['success'], False) def test_expect_column_kl_divergence_to_be_less_than_discrete(self): T = [ { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed'], 'threshold': 0.1 }, 'out': {'success': True, 'observed_value': 0.} }, { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed_alternate'], 'threshold': 0.1 }, 'out': {'success': False, 'observed_value': 0.12599700286677529} }, { 'args': ['categorical_fixed'], 'kwargs': { 'partition_object': self.test_partitions['categorical_fixed_alternate'], 'threshold': 0.1, 'result_format': 'SUMMARY' }, 'out': {'success': False, 'observed_value': 0.12599700286677529, 'details': { 'observed_partition': { 'weights': [0.54, 0.32, 0.14], 'values': [u'A', u'B', u'C']}, 'expected_partition': { 'weights': [0.3333333333333333, 0.3333333333333333, 0.3333333333333333], 'values': [u'A', u'B', u'C'] } } } } ] for t in T: out = self.D.expect_column_kl_divergence_to_be_less_than( *t['args'], **t['kwargs']) self.assertTrue(np.allclose(out['success'], t['out']['success'])) self.assertTrue(np.allclose( out['result']['observed_value'], t['out']['observed_value'])) if 'result_format' in t['kwargs'] and t['kwargs']['result_format'] == 'SUMMARY': self.assertDictEqual( out['result']['details'], t['out']['details']) def test_expect_column_kl_divergence_to_be_less_than_discrete_holdout(self): df = ge.dataset.PandasDataset({'a': ['a', 'a', 'b', 'c']}) out = df.expect_column_kl_divergence_to_be_less_than('a', {'values': ['a', 'b'], 'weights': [ 0.6, 0.4]}, threshold=0.1, tail_weight_holdout=0.1) self.assertEqual(out['success'], True) self.assertTrue(np.allclose( out['result']['observed_value'], [0.099431384003497381])) out = df.expect_column_kl_divergence_to_be_less_than('a', {'values': ['a', 'b'], 'weights': [ 0.6, 0.4]}, threshold=0.1, tail_weight_holdout=0.05) self.assertEqual(out['success'], False) self.assertTrue(np.isclose( out['result']['observed_value'], [0.23216776319077681])) out = df.expect_column_kl_divergence_to_be_less_than('a', {'values': ['a', 'b'], 'weights': [ 0.6, 0.4]}, threshold=0.1) self.assertEqual(out['success'], False) self.assertEqual(out['result']['observed_value'], None) def test_expect_column_bootstrapped_ks_test_p_value_to_be_greater_than(self): T = [ { 'args': ['norm_0_1'], 'kwargs': {'partition_object': self.test_partitions['norm_0_1_auto'], "p": 0.05}, 'out': {'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_0_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_uniform'], "p": 0.05}, 'out':{'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_0_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_ntile'], "p": 0.05}, 'out':{'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_0_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_kde'], "p": 0.05}, 'out':{'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_1_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_auto'], "p": 0.05}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_1_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_uniform'], "p": 0.05}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_1_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_ntile'], "p": 0.05}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['norm_1_1'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_kde'], "p": 0.05}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['bimodal'], 'kwargs':{'partition_object': self.test_partitions['bimodal_auto'], "p": 0.05}, 'out':{'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['bimodal'], 'kwargs':{'partition_object': self.test_partitions['bimodal_kde'], "p": 0.05}, 'out':{'success': True, 'observed_value': "RANDOMIZED"} }, { 'args': ['bimodal'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_auto'], "p": 0.05, 'include_config': True}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['bimodal'], 'kwargs':{'partition_object': self.test_partitions['norm_0_1_uniform'], "p": 0.05}, 'out':{'success': False, 'observed_value': "RANDOMIZED"} }, { 'args': ['bimodal'], 'kwargs': {'partition_object': self.test_partitions['norm_0_1_uniform'], "p": 0.05, 'result_format': 'SUMMARY'}, 'out': {'success': False, 'observed_value': "RANDOMIZED", 'details': { 'expected_cdf': { 'cdf_values': [0.0, 0.001, 0.009000000000000001, 0.056, 0.184, 0.429, 0.6779999999999999, 0.8899999999999999, 0.9689999999999999, 0.9929999999999999, 0.9999999999999999], 'x': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364] }, 'observed_partition': { 'weights': [0.001, 0.006, 0.022, 0.07, 0.107, 0.146, 0.098, 0.04, 0.01, 0.0, 0.5], 'bins': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364, 12.8787297644972] }, 'bootstrap_samples': 1000, 'observed_cdf': { 'cdf_values': [0, 0.001, 0.007, 0.028999999999999998, 0.099, 0.20600000000000002, 0.352, 0.44999999999999996, 0.48999999999999994, 0.49999999999999994, 0.49999999999999994, 1.0], 'x': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364, 12.8787297644972] }, 'expected_partition': { 'weights': [0.001, 0.008, 0.047, 0.128, 0.245, 0.249, 0.212, 0.079, 0.024, 0.007], 'bins': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364] }, 'bootstrap_sample_size': 20 } } } ] for t in T: out = self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than( *t['args'], **t['kwargs']) if out['success'] != t['out']['success']: print("Test case error:") print(t) print(out) self.assertEqual(out['success'], t['out']['success']) if 'result_format' in t['kwargs'] and t['kwargs']['result_format'] == 'SUMMARY': self.assertTrue(np.allclose( out['result']['details']['observed_cdf']['x'], t['out']['details']['observed_cdf']['x'])) self.assertTrue(np.allclose(out['result']['details']['observed_cdf'] ['cdf_values'], t['out']['details']['observed_cdf']['cdf_values'])) self.assertTrue(np.allclose( out['result']['details']['expected_cdf']['x'], t['out']['details']['expected_cdf']['x'])) self.assertTrue(np.allclose(out['result']['details']['expected_cdf'] ['cdf_values'], t['out']['details']['expected_cdf']['cdf_values'])) self.assertTrue(np.allclose( out['result']['details']['observed_partition']['bins'], t['out']['details']['observed_partition']['bins'])) self.assertTrue(np.allclose(out['result']['details']['observed_partition'] ['weights'], t['out']['details']['observed_partition']['weights'])) self.assertTrue(np.allclose( out['result']['details']['expected_partition']['bins'], t['out']['details']['expected_partition']['bins'])) self.assertTrue(np.allclose(out['result']['details']['expected_partition'] ['weights'], t['out']['details']['expected_partition']['weights'])) def test_expect_column_bootstrapped_ks_test_p_value_to_be_greater_than_expanded_partitions(self): # Extend observed above and below expected out = self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than('norm_0_1', {'bins': np.linspace(-1, 1, 11), 'weights': [0.1] * 10}, result_format='SUMMARY') self.assertTrue(out['result']['details']['observed_cdf']['x'][0] < -1) self.assertTrue(out['result']['details']['observed_cdf']['x'][-1] > 1) # Extend observed below expected out = self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than('norm_0_1', {'bins': np.linspace(-10, 1, 11), 'weights': [ 0.1] * 10}, result_format='SUMMARY') self.assertTrue(out['result']['details'] ['observed_cdf']['x'][0] == -10) self.assertTrue(out['result']['details']['observed_cdf']['x'][-1] > 1) # Extend observed above expected out = self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than('norm_0_1', {'bins': np.linspace(-1, 10, 11), 'weights': [ 0.1] * 10}, result_format='SUMMARY') self.assertTrue(out['result']['details']['observed_cdf']['x'][0] < -1) self.assertTrue(out['result']['details'] ['observed_cdf']['x'][-1] == 10) # Extend expected above and below observed out = self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than('norm_0_1', {'bins': np.linspace(-10, 10, 11), 'weights': [ 0.1] * 10}, result_format='SUMMARY') self.assertTrue(out['result']['details'] ['observed_cdf']['x'][0] == -10) self.assertTrue(out['result']['details'] ['observed_cdf']['x'][-1] == 10) def test_expect_column_bootstrapped_ks_test_p_value_to_be_greater_than_bad_partition(self): with self.assertRaises(ValueError): self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than( 'norm_0_1', {'bins': [-np.inf, 0, 1, 2, 3], 'weights': [0.25, 0.25, 0.25, 0.25]}) def test_expect_column_kl_divergence_to_be_less_than_continuous_infinite_partition(self): # Manually build a partition extending to -Inf and Inf test_partition = self.test_partitions['norm_0_1_auto'] test_partition['bins'] = [-np.inf] + test_partition['bins'] + [np.inf] scaled_weights = np.array(test_partition['weights']) * (1-0.01) test_partition['weights'] = [0.005] + scaled_weights.tolist() + [0.005] out = self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', test_partition, 0.5, internal_weight_holdout=0.01) self.assertTrue(out['success']) # This should fail: tails have internal weight zero, which is highly unlikely. out = self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', test_partition, 0.5) self.assertFalse(out['success']) # Build one-sided to infinity test partitions test_partition = { 'bins': [-np.inf, 0, 1, 2, 3], 'weights': [0.25, 0.25, 0.25, 0.25] } summary_expected_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.25, 0.25, 0.25], 'tail_weights':[0.25,0] } summary_observed_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.25, 0.25, 0.25], 'tail_weights':[0.25,0] } test_df = ge.dataset.PandasDataset( {'x': [-0.5, 0.5, 1.5, 2.5]}) # This should succeed: our data match the partition out = test_df.expect_column_kl_divergence_to_be_less_than( 'x', test_partition, 0.5, result_format='SUMMARY') self.assertTrue(out['success']) self.assertDictEqual( out['result']['details']['observed_partition'], summary_observed_partition) self.assertDictEqual( out['result']['details']['expected_partition'], summary_expected_partition) # Build one-sided to infinity test partitions test_partition = { 'bins': [0, 1, 2, 3, np.inf], 'weights': [0.25, 0.25, 0.25, 0.25] } summary_expected_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.25, 0.25, 0.25], 'tail_weights':[0,0.25] } summary_observed_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.2, 0.2, 0.2], 'tail_weights':[0.2,0.2] } test_df = ge.dataset.PandasDataset( {'x': [-0.5, 0.5, 1.5, 2.5, 3.5]}) out = test_df.expect_column_kl_divergence_to_be_less_than( 'x', test_partition, 0.5, result_format='SUMMARY') # This should fail: we expect zero weight less than 0 self.assertFalse(out['success']) self.assertDictEqual( out['result']['details']['observed_partition'], summary_observed_partition) self.assertDictEqual( out['result']['details']['expected_partition'], summary_expected_partition) # Build two-sided to infinity test partition test_partition = { 'bins': [-np.inf, 0, 1, 2, 3, np.inf], 'weights': [0.1, 0.2, 0.4, 0.2, 0.1] } summary_expected_partition = { 'bins': [ 0, 1, 2, 3], 'weights': [0.2, 0.4, 0.2], 'tail_weights':[0.1,0.1] } summary_observed_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.2, 0.4, 0.2], 'tail_weights':[0.1,0.1] } test_df = ge.dataset.PandasDataset( {'x': [-0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 2.5, 2.5, 3.5]}) # This should succeed: our data match the partition out = test_df.expect_column_kl_divergence_to_be_less_than( 'x', test_partition, 0.5, result_format='SUMMARY') self.assertTrue(out['success']) self.assertDictEqual( out['result']['details']['observed_partition'], summary_observed_partition) self.assertDictEqual( out['result']['details']['expected_partition'], summary_expected_partition) # Tail weight holdout is not defined for partitions already extending to infinity: with self.assertRaises(ValueError): test_df.expect_column_kl_divergence_to_be_less_than( 'x', test_partition, 0.5, tail_weight_holdout=0.01) def test_expect_column_kl_divergence_to_be_less_than_continuous_serialized_infinite_partition(self): with open('./tests/test_sets/test_partition_serialized_infinity_bins.json', 'r') as infile: test_partition = json.loads(infile.read())['test_partition'] summary_expected_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.2, 0.4, 0.2], 'tail_weights':[0.1,0.1] } summary_observed_partition = { 'bins': [0, 1, 2, 3], 'weights': [0.2, 0.4, 0.2], 'tail_weights':[0.1,0.1] } test_df = ge.dataset.PandasDataset( {'x': [-0.5, 0.5, 0.5, 1.5, 1.5, 1.5, 1.5, 2.5, 2.5, 3.5]}) # This should succeed: our data match the partition out = test_df.expect_column_kl_divergence_to_be_less_than( 'x', test_partition, 0.5, result_format='SUMMARY') self.assertTrue(out['success']) self.assertDictEqual( out['result']['details']['observed_partition'], summary_observed_partition) self.assertDictEqual( out['result']['details']['expected_partition'], summary_expected_partition) # Confirm serialization of resulting expectations config expectation_config = test_df.get_expectations_config() found_expectation = False for expectation in expectation_config['expectations']: if 'expectation_type' in expectation and expectation['expectation_type'] == 'expect_column_kl_divergence_to_be_less_than': self.assertEqual( json.dumps(expectation['kwargs'] ['partition_object']['bins']), '[-Infinity, 0, 1, 2, 3, Infinity]' ) found_expectation = True self.assertTrue(found_expectation) def test_expect_column_kl_divergence_to_be_less_than_continuous(self): T = [ { 'args': ['norm_0_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_auto'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':True, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_0_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_uniform'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':True, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_0_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_ntile'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':True, 'observed_value': 'NOTTESTED'} }, ## Note higher threshold example for kde { 'args': ['norm_0_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_kde'], "threshold": 0.3, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':True, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_1_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_auto'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':False, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_1_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_uniform'], "threshold": 0.1, "tail_weight_holdout": 1e-5, "internal_weight_holdout": 1e-5}, 'out':{'success':False, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_1_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_ntile'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':False, 'observed_value': 'NOTTESTED'} }, { 'args': ['norm_1_1'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_kde'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':False, 'observed_value': 'NOTTESTED'} }, { 'args': ['bimodal'], 'kwargs':{"partition_object": self.test_partitions['bimodal_auto'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':True, 'observed_value': 'NOTTESTED'} }, { 'args': ['bimodal'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_auto'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':False, 'observed_value': "NOTTESTED"} }, { 'args': ['bimodal'], 'kwargs':{"partition_object": self.test_partitions['norm_0_1_uniform'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01}, 'out':{'success':False, 'observed_value': "NOTTESTED"} }, { 'args': ['bimodal'], 'kwargs': {"partition_object": self.test_partitions['norm_0_1_uniform'], "threshold": 0.1, "tail_weight_holdout": 0.01, "internal_weight_holdout": 0.01, "result_format": "SUMMARY"}, 'out': {'success': False, 'observed_value': "NOTTESTED", 'details': {'observed_partition': {'weights': [0.001, 0.006, 0.022, 0.07, 0.107, 0.146, 0.098, 0.04, 0.01, 0.0], 'bins': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364], 'tail_weights':[0.0,0.5] }, 'missing_percent': 0.0, 'element_count': 1000, 'missing_count': 0, 'expected_partition': {'bins': [-3.721835843971108, -3.02304158492966, -2.324247325888213, -1.625453066846767, -0.926658807805319, -0.227864548763872, 0.470929710277574, 1.169723969319022, 1.868518228360469, 2.567312487401916, 3.266106746443364], 'weights': [0.00098, 0.00784, 0.04606, 0.12544, 0.24009999999999998, 0.24402, 0.20776, 0.07742, 0.02352, 0.00686], 'tail_weights':[0.005,0.005] } } } } ] for t in T: out = self.D.expect_column_kl_divergence_to_be_less_than( *t['args'], **t['kwargs']) if t['out']['observed_value'] != 'NOTTESTED': if not np.allclose(out['observed_value'], t['out']['observed_value']): print("Test case error:") print(t) print(out) self.assertTrue(np.allclose( out['observed_value'], t['out']['observed_value'])) if 'result_format' in t['kwargs'] and t['kwargs']['result_format'] == 'SUMMARY': self.assertTrue(np.allclose(out['result']['details']['observed_partition']['bins'],t['out']['details']['observed_partition']['bins'])) self.assertTrue(np.allclose(out['result']['details']['observed_partition']['weights'],t['out']['details']['observed_partition']['weights'])) self.assertTrue(np.allclose(out['result']['details']['observed_partition']['tail_weights'],t['out']['details']['observed_partition']['tail_weights'])) self.assertTrue(np.allclose(out['result']['details']['expected_partition']['bins'],t['out']['details']['expected_partition']['bins'])) self.assertTrue(np.allclose(out['result']['details']['expected_partition']['weights'],t['out']['details']['expected_partition']['weights'])) self.assertTrue(np.allclose(out['result']['details']['expected_partition']['tail_weights'],t['out']['details']['expected_partition']['tail_weights'])) if not out['success'] == t['out']['success']: print("Test case error:") print(t) print(out) self.assertEqual(out['success'], t['out']['success']) def test_expect_column_kl_divergence_to_be_less_than_bad_parameters(self): with self.assertRaises(ValueError): self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', {}, threshold=0.1) with self.assertRaises(ValueError): self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', self.test_partitions['norm_0_1_auto']) with self.assertRaises(ValueError): self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', self.test_partitions['norm_0_1_auto'], threshold=0.1, tail_weight_holdout=2) with self.assertRaises(ValueError): self.D.expect_column_kl_divergence_to_be_less_than( 'norm_0_1', self.test_partitions['norm_0_1_auto'], threshold=0.1, internal_weight_holdout=2) with self.assertRaises(ValueError): self.D.expect_column_kl_divergence_to_be_less_than( 'categorical_fixed', self.test_partitions['categorical_fixed'], threshold=0.1, internal_weight_holdout=0.01) def test_expect_column_kl_divergence_to_be_less_than_infinite_observed_value(self): # Test with discrete distribution discrete_df = ge.dataset.PandasDataset( {"x1": ['a', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'c', 'c']}) discrete_partition_object = {"weights": [0.5, 0.5], "values": ["a", "b"]} discrete_out = discrete_df.expect_column_kl_divergence_to_be_less_than("x1", discrete_partition_object, 0.05) discrete_out_json = json.dumps( discrete_out['result']['observed_value']) self.assertEqual(discrete_out['result']['observed_value'], None) self.assertEqual(discrete_out_json, 'null') # Test with continuous distribution continuous_df = ge.dataset.PandasDataset({"x2": [-1.5, -1.5, -1.35, -1.2, -1.19, -1.12, -1.04, -1, 0, 0, 0, 0.25, 0.34, 1, 1.1, 1.13, 1.22, 1.34, 1.4, 1.46, 1.5, 1.5, 1.5]}) continuous_partition_object1 = {"weights": [0.1, 0.4, 0, 0, 0.4, 0.1], "bins": [-2, -1.5, -1, 0, 1, 1.5, 2]} # Partition sets weight to zero for to a non-empty bin continuous_out1 = continuous_df.expect_column_kl_divergence_to_be_less_than("x2", continuous_partition_object1, 0.05) continuous_out_json1 = json.dumps( continuous_out1['result']['observed_value']) self.assertEqual(continuous_out1['result']['observed_value'], None) self.assertEqual(continuous_out_json1, 'null') continuous_partition_object2 = {"weights": [0.25, 0.25, 0.25, 0.25], "bins": [-1, 0, 1, 1.5, 2]} # Partition bins do not cover all of data set continuous_out2 = continuous_df.expect_column_kl_divergence_to_be_less_than("x2", continuous_partition_object2, 0.05) continuous_out_json2 = json.dumps( continuous_out2['result']['observed_value']) self.assertEqual(continuous_out2['result']['observed_value'], None) self.assertEqual(continuous_out_json2, 'null') def test_expect_column_kl_divergence_to_be_less_than_infinite_return_bins(self): continuous_df=ge.dataset.PandasDataset({"x":[-1.95, 1.03, 1.00, 0.81, -2.27, 0.52, 2.45, -1.19, -0.17, -1.54, 2.20, -2.66, 1.71, 1.59, 2.19]}) #Both endpoints at infinity, no tail_holdout or internal_holdout continuous_partition_object={"weights":[0.3,0.15,0.05,0.05,0.2,0.25], "bins":[-np.inf,-2,-1,0,1,2,np.inf]} expected_details={ "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-2,-1,0,1,2], "weights": [3/15.0, 1/15.0, 2/15.0, 4/15.0], "tail_weights": [2/15.0,3/15.0] }, "expected_partition": { "bins": [-2,-1,0,1,2], "weights": [0.15,0.05,0.05,0.2], "tail_weights":[0.3,0.25] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) #Both endpoints bounded, no tail_holdout or internal_holdout continuous_partition_object={"weights":[0.3,0.15,0.05,0.05,0.2,0.25], "bins":[-3,-2,-1,0,1,2,3]} expected_details={ "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-3,-2,-1,0,1,2,3], "weights": [2/15.0,3/15.0, 1/15.0, 2/15.0, 4/15.0,3/15.0], "tail_weights": [0,0] }, "expected_partition": { "bins": [-3,-2,-1,0,1,2,3], "weights": [0.3,0.15,0.05,0.05,0.2,0.25], "tail_weights":[0,0] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) #Infinite KL Divergence, no tail_holdout or internal_holdout continuous_partition_object={"weights":[0.45,0.05,0.05,0.2,0.25], "bins":[-2,-1,0,1,2,3]} expected_details={ "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-2,-1,0,1,2,3], "weights": [3/15.0, 1/15.0, 2/15.0, 4/15.0,3/15.0], "tail_weights": [2/15.0,0] }, "expected_partition": { "bins": [-2,-1,0,1,2,3], "weights": [0.45,0.05,0.05,0.2,0.25], "tail_weights":[0,0] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) #Both endpoints at infinity, non-zero tail hold_out continuous_partition_object={"weights":[0.3,0.15,0.05,0.05,0.2,0.25], "bins":[-np.inf,-2,-1,0,1,2,np.inf]} with self.assertRaises(ValueError): actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0.01, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] #Upper at infinity, non-zero tail hold_out continuous_partition_object={"weights":[0.3,0.15,0.05,0.05,0.2,0.25], "bins":[-3,-2,-1,0,1,2,np.inf]} expected_details={ "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-3,-2,-1,0,1,2], "weights": [2/15.0,3/15.0, 1/15.0, 2/15.0, 4/15.0], "tail_weights": [0,3/15.0] }, "expected_partition": { "bins": [-3,-2,-1,0,1,2], "weights": [0.3*0.98,0.15*0.98,0.05*0.98,0.05*0.98,0.2*0.98], "tail_weights":[0.02,0.98*0.25] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0.02, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) #Lower at infinity, non-zero tail holdout continuous_partition_object={"weights":[0.3,0.15,0.05,0.05,0.45], "bins":[-np.inf,-2,-1,0,1,2]} expected_details={ "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-2,-1,0,1,2], "weights": [3/15.0, 1/15.0, 2/15.0, 4/15.0], "tail_weights": [2/15.0,3/15.0] }, "expected_partition": { "bins": [-2,-1,0,1,2], "weights": [0.15*0.95,0.05*0.95,0.05*0.95,0.45*0.95], "tail_weights":[0.3*0.95,0.05] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0.05, internal_weight_holdout=0, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) #Bounded Endpoints, non-zero tail holdout, non-zero internal holdout continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.45], "bins":[-3,-2,-1,0,1,2]} expected_details= { "observed_partition": { # return expected_bins, since we used those bins to compute the observed_weights "bins": [-3,-2,-1,0,1,2], "weights": [2/15.0,3/15.0, 1/15.0, 2/15.0, 4/15.0], "tail_weights": [0.0,3/15.0] }, "expected_partition": { "bins": [-3,-2,-1,0,1,2], "weights": [0.3*0.9,0.15*0.9,0.05,0.10*0.9,0.45*0.9], "tail_weights":[0.05/2,0.05/2] } } actual_details=continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0.05, internal_weight_holdout=0.05, result_format="COMPLETE")["result"]["details"] assertDeepAlmostEqual(expected_details,actual_details) self.assertTrue(is_valid_continuous_partition_object(actual_details["observed_partition"])) self.assertTrue(is_valid_continuous_partition_object(actual_details["expected_partition"])) def test_expect_column_kl_divergence_to_be_less_than_user_tail_weights(self): continuous_df=ge.dataset.PandasDataset({"x":[-1.95, 1.03, 1.00, 0.81, -2.27, 0.52, 2.45, -1.19, -0.17, -1.54, 2.20, -2.66, 1.71, 1.59, 2.19]}) #This should exit without error continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.15], "bins":[-3,-2,-1,0,1,2], "tail_weights":[0.15,0.15]} continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05) #Error: Only one tail weight continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.30], "bins":[-3,-2,-1,0,1,2], "tail_weights":[0.15]} self.assertFalse(is_valid_continuous_partition_object(continuous_partition_object)) #Error: Use of tail_weights with infinite end points partition continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.15], "bins":[-3,-2,-1,0,1,np.inf], "tail_weights":[0.15,0.15]} with self.assertRaises(ValueError): continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05) #Error: Use of tail_weights and tail_weight_holdout continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.15], "bins":[-3,-2,-1,0,1,2], "tail_weights":[0.15,0.15]} with self.assertRaises(ValueError): continuous_df.expect_column_kl_divergence_to_be_less_than("x", continuous_partition_object, 0.05, tail_weight_holdout=0.01) #Error: Tail_weights and weights don't add to one continuous_partition_object={"weights":[0.3,0.15,0.0,0.10,0.16], "bins":[-3,-2,-1,0,1,2], "tail_weights":[0.15,0.15]} self.assertFalse(is_valid_continuous_partition_object(continuous_partition_object)) def test_expect_column_bootstrapped_ks_test_p_value_to_be_greater_than_bad_parameters(self): with self.assertRaises(ValueError): self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than( 'norm_0_1', self.test_partitions['categorical_fixed']) test_partition = ge.dataset.util.kde_partition_data( self.D['norm_0_1'], estimate_tails=False) with self.assertRaises(ValueError): self.D.expect_column_bootstrapped_ks_test_p_value_to_be_greater_than( 'norm_0_1', test_partition) def test_expect_column_chisquare_test_p_value_to_be_greater_than_bad_parameters(self): with self.assertRaises(ValueError): self.D.expect_column_chisquare_test_p_value_to_be_greater_than( 'categorical_fixed', self.test_partitions['norm_0_1_auto']) if __name__ == "__main__": unittest.main()
55.715801
279
0.474343
5,193
52,540
4.529752
0.06528
0.011393
0.012498
0.040811
0.844025
0.810016
0.78944
0.779577
0.758067
0.737789
0
0.105076
0.398991
52,540
942
280
55.774947
0.639864
0.040407
0
0.552465
0
0
0.164424
0.013677
0
0
0
0
0.121365
1
0.022756
false
0
0.00885
0
0.03287
0.011378
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
e1b3a0a1918c83c1a9c7807018dafc05e51d64e1
47
py
Python
scripts/portal/out_cygnusGarden.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/out_cygnusGarden.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/out_cygnusGarden.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# 271040000 sm.warp(271030600, 0) sm.dispose()
11.75
21
0.723404
7
47
4.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.452381
0.106383
47
3
22
15.666667
0.357143
0.191489
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
becd47d689aa7e847259be3624c0472b757d39a2
155
py
Python
users/admin.py
Mutghost01/ailms
1aaa45ad3fb3c71bc1f356069290e2ca016f0e06
[ "Apache-2.0" ]
null
null
null
users/admin.py
Mutghost01/ailms
1aaa45ad3fb3c71bc1f356069290e2ca016f0e06
[ "Apache-2.0" ]
null
null
null
users/admin.py
Mutghost01/ailms
1aaa45ad3fb3c71bc1f356069290e2ca016f0e06
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from users.models import * admin.site.register(Student) admin.site.register(Lecturer) admin.site.register(LecturerRating)
25.833333
35
0.832258
21
155
6.142857
0.571429
0.209302
0.395349
0
0
0
0
0
0
0
0
0
0.070968
155
6
35
25.833333
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
bef749d55344298c4f186b67758919ea2649792e
158
py
Python
robots/small/strategies/2019/test/cam_test/manje_agresivna/test3/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
5
2018-11-27T15:15:00.000Z
2022-02-10T21:44:13.000Z
robots/small/strategies/2019/test/cam_test/manje_agresivna/test3/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
2
2018-10-20T15:48:40.000Z
2018-11-20T05:11:33.000Z
robots/small/strategies/2019/test/cam_test/manje_agresivna/test3/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
1
2020-02-07T12:44:47.000Z
2020-02-07T12:44:47.000Z
def run(): @_core.listen('test') def _(): print('a test 2') @_core.on('test') def _(): print('a test') _emit('test') _emit('test') _emit('test')
12.153846
22
0.556962
23
158
3.521739
0.434783
0.296296
0.444444
0.320988
0.716049
0
0
0
0
0
0
0.007752
0.183544
158
12
23
13.166667
0.620155
0
0
0.5
0
0
0.216561
0
0
0
0
0
0
1
0.3
true
0
0
0
0.3
0.2
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
8320271145d18de99a0dcbc3432172454eed3dc3
22
py
Python
models/__init__.py
psui3905/CCT
637cbac130b39f02733339c79cdf1d531e339e9c
[ "MIT" ]
308
2020-06-09T13:37:17.000Z
2022-03-24T07:43:33.000Z
models/__init__.py
lesvay/CCT
cf98ea7e6aefa7091e6c375a9025ba1e0f6e53ca
[ "MIT" ]
55
2020-06-16T11:57:54.000Z
2022-03-09T12:04:58.000Z
models/__init__.py
lesvay/CCT
cf98ea7e6aefa7091e6c375a9025ba1e0f6e53ca
[ "MIT" ]
51
2020-06-08T02:42:14.000Z
2022-02-25T16:38:36.000Z
from .model import CCT
22
22
0.818182
4
22
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.136364
22
1
22
22
0.947368
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
83221fed88505f657dd6938bbb9722f8a761af4a
1,023
py
Python
lib_profiler/datamart_profiler/warning_tools.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
15
2020-12-22T15:28:56.000Z
2022-03-29T08:13:49.000Z
lib_profiler/datamart_profiler/warning_tools.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
4
2021-04-09T18:08:36.000Z
2022-03-21T17:51:05.000Z
lib_profiler/datamart_profiler/warning_tools.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
4
2021-08-12T09:34:29.000Z
2022-01-03T22:30:50.000Z
import contextlib import warnings @contextlib.contextmanager def ignore_warnings(*categories): """Context manager to ignore specific warning categories. """ orig_showarning = warnings.showwarning def record(message, category, filename, lineno, file=None, line=None): if not any(issubclass(category, c) for c in categories): orig_showarning(message, category, filename, lineno, file, line) try: warnings.showwarning = record yield finally: warnings.showwarning = orig_showarning @contextlib.contextmanager def raise_warnings(*categories): orig_showarning = warnings.showwarning def record(message, category, filename, lineno, file=None, line=None): if any(issubclass(category, c) for c in categories): raise category(message) orig_showarning(message, category, filename, lineno, file, line) try: warnings.showwarning = record yield finally: warnings.showwarning = orig_showarning
28.416667
76
0.695015
109
1,023
6.449541
0.311927
0.119488
0.130868
0.165007
0.742532
0.742532
0.742532
0.742532
0.634424
0.634424
0
0
0.223851
1,023
35
77
29.228571
0.88539
0.052786
0
0.72
0
0
0
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.24
0
0
0
0
null
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
8338c2d757c0b063ac9328bfd27f8b831b07fa82
44
py
Python
ScienceDynamics/config/__init__.py
data4goodlab/ScienceDynamics
1ba24a7a0ec64058b6095541b0ecc5d5d294b588
[ "MIT" ]
1
2020-09-29T15:41:58.000Z
2020-09-29T15:41:58.000Z
ScienceDynamics/config/__init__.py
data4goodlab/ScienceDynamics
1ba24a7a0ec64058b6095541b0ecc5d5d294b588
[ "MIT" ]
null
null
null
ScienceDynamics/config/__init__.py
data4goodlab/ScienceDynamics
1ba24a7a0ec64058b6095541b0ecc5d5d294b588
[ "MIT" ]
1
2020-11-12T18:15:25.000Z
2020-11-12T18:15:25.000Z
from ScienceDynamics.config.configs import *
44
44
0.863636
5
44
7.6
1
0
0
0
0
0
0
0
0
0
0
0
0.068182
44
1
44
44
0.926829
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
8359d18eed3e7f9abeb56933d54bde94d62ba630
28
py
Python
Core/hippoSeg/__init__.py
YongLiuLab/BrainRadiomicsTools
19b440acd554ee920857c306442b6d2c411dca88
[ "Apache-2.0", "BSD-3-Clause" ]
10
2019-09-26T03:12:52.000Z
2022-02-25T06:05:38.000Z
Core/hippoSeg/__init__.py
YongLiuLab/BrainRadiomicsTools
19b440acd554ee920857c306442b6d2c411dca88
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Core/hippoSeg/__init__.py
YongLiuLab/BrainRadiomicsTools
19b440acd554ee920857c306442b6d2c411dca88
[ "Apache-2.0", "BSD-3-Clause" ]
8
2020-02-26T01:54:48.000Z
2022-03-19T01:23:55.000Z
from .segment import segment
28
28
0.857143
4
28
6
0.75
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
55eee2625b86dfb724e69a47dbfde363fc1f251c
77
py
Python
slack_messages/__init__.py
joegasewicz/slack-messages
2bddb04306ba333209e38b1ff8e2247c3190e921
[ "MIT" ]
1
2021-06-17T18:40:45.000Z
2021-06-17T18:40:45.000Z
slack_messages/__init__.py
joegasewicz/slack-messages
2bddb04306ba333209e38b1ff8e2247c3190e921
[ "MIT" ]
null
null
null
slack_messages/__init__.py
joegasewicz/slack-messages
2bddb04306ba333209e38b1ff8e2247c3190e921
[ "MIT" ]
null
null
null
from .slack import SlackMessages, ErrorPostingMessage, ErrorFetchingChannels
38.5
76
0.883117
6
77
11.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.077922
77
1
77
77
0.957746
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
360f5d30e9e93c28f61b152a676dc09deb292ddf
28
py
Python
src/amuse/community/mesa/__init__.py
sibonyves/amuse
5557bf88d14df1aa02133a199b6d60c0c57dcab7
[ "Apache-2.0" ]
null
null
null
src/amuse/community/mesa/__init__.py
sibonyves/amuse
5557bf88d14df1aa02133a199b6d60c0c57dcab7
[ "Apache-2.0" ]
12
2021-11-15T09:13:03.000Z
2022-02-02T14:53:04.000Z
src/amuse/community/mesa/__init__.py
sibonyves/amuse
5557bf88d14df1aa02133a199b6d60c0c57dcab7
[ "Apache-2.0" ]
null
null
null
from .interface import Mesa
14
27
0.821429
4
28
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
28
1
28
28
0.958333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
366e9336a889a39e8206a36b4afe4a8b9923eb01
176
py
Python
pyobs/comm/xmpp/xep_0009_timeout/__init__.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
4
2020-02-14T10:50:03.000Z
2022-03-25T04:15:06.000Z
pyobs/comm/xmpp/xep_0009_timeout/__init__.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
60
2020-09-14T09:10:20.000Z
2022-03-25T17:51:42.000Z
pyobs/comm/xmpp/xep_0009_timeout/__init__.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
2
2020-10-14T09:34:57.000Z
2021-04-27T09:35:57.000Z
from sleekxmpp.plugins.base import register_plugin from . import stanza from .rpc import XEP_0009_timeout from .stanza import MethodTimeout register_plugin(XEP_0009_timeout)
22
50
0.852273
25
176
5.76
0.52
0.194444
0.194444
0
0
0
0
0
0
0
0
0.050955
0.107955
176
7
51
25.142857
0.866242
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
367f2b20efff13ac34a4228d9835b126c85413e9
127
py
Python
boa3_test/test_sc/interop_test/runtime/NotifySequence.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/interop_test/runtime/NotifySequence.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/interop_test/runtime/NotifySequence.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public from boa3.builtin.interop.runtime import notify @public def Main(): notify([2, 3, 5, 7])
15.875
47
0.716535
20
127
4.55
0.7
0.175824
0.32967
0
0
0
0
0
0
0
0
0.056604
0.165354
127
7
48
18.142857
0.801887
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.6
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
36a94f48d3d663af6598b5688f94f57356538261
4,954
py
Python
tests/test_normal_means_scaled.py
banskt/mr-ash-pen
a9e574f66ce64265bff22cf0661d23a5706e4515
[ "MIT" ]
null
null
null
tests/test_normal_means_scaled.py
banskt/mr-ash-pen
a9e574f66ce64265bff22cf0661d23a5706e4515
[ "MIT" ]
null
null
null
tests/test_normal_means_scaled.py
banskt/mr-ash-pen
a9e574f66ce64265bff22cf0661d23a5706e4515
[ "MIT" ]
null
null
null
import unittest import numpy as np from mrashpen.models.normal_means_ash_scaled import NormalMeansASHScaled from mrashpen.utils.logs import MyLogger mlogger = MyLogger(__name__) class TestNMAshScaled(unittest.TestCase): def _NM_data(self): n = 100 s = 1.2 k = 6 np.random.seed(100) y = np.random.normal(0, 1, size = n) X = np.random.normal(0, 1, size = (n, 2000)) d = np.sum(np.square(X), axis = 1) wk = np.zeros(k) wk[1:(k-1)] = np.repeat(1/(k-1), (k - 2)) wk[k-1] = 1 - np.sum(wk) sk = np.arange(k) return y, s, wk, sk, d def test_NM_logML_derivative(self, eps = 1e-8): mlogger.info("Check derivatives of Normal Means logML (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps = NormalMeansASHScaled(y + eps, s, wk, sk, d = dj) deriv_analytic = nmash.logML_deriv deriv_numeric = (nmash_eps.logML - nmash.logML) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric, atol = 1e-8, rtol = 1e-4), msg = "Normal Means logML derivative does not match numeric results (scaled prior)") return def test_NM_logML_derivative2(self, eps = 1e-8): mlogger.info("Check second derivatives of Normal Means logML (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps = NormalMeansASHScaled(y + eps, s, wk, sk, d = dj) deriv_analytic = nmash.logML_deriv2 deriv_numeric = (nmash_eps.logML_deriv - nmash.logML_deriv) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric, atol = 1e-8, rtol = 1e-4), msg = "Normal Means logML second derivative does not match numeric results (scaled prior)") return def test_NM_logML_wderiv(self, eps = 1e-8): mlogger.info("Check derivatives of Normal Means logML with respect to w_k (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) for i in range(wk.shape[0]): wkeps = wk.copy() wkeps[i] += eps nmash_eps = NormalMeansASHScaled(y, s, wkeps, sk, d = dj) deriv_analytic = nmash.logML_wderiv[:, i] deriv_numeric = (nmash_eps.logML - nmash.logML) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric, atol = 1e-6, rtol = 1e-5), msg = f"Normal Means logML derivative with respect to w_k does not match numeric results (scaled prior) for k = {i}") return def test_NM_logML_deriv_wderiv(self, eps = 1e-8): mlogger.info("Check derivatives of Normal Means logML' with respect to w_k (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) for i in range(wk.shape[0]): wkeps = wk.copy() wkeps[i] += eps nmash_eps = NormalMeansASHScaled(y, s, wkeps, sk, d = dj) deriv_analytic = nmash.logML_deriv_wderiv[:, i] deriv_numeric = (nmash_eps.logML_deriv - nmash.logML_deriv) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric, atol = 1e-6, rtol = 1e-5), msg = f"Normal Means logML' derivative with respect to w_k does not match numeric results (scaled prior) for k = {i}") return def test_NM_logML_s2deriv(self, eps = 1e-8): mlogger.info("Check derivatives of Normal Means logML with respect to s^2 (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps.set_s2_eps(eps) deriv_analytic = nmash.logML_s2deriv deriv_numeric = (nmash_eps.logML - nmash.logML) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric), msg = "Normal Means logML derivative with respect to s^2 does not match numeric results (scaled prior)") return def test_NM_logML_deriv_s2deriv(self, eps = 1e-8): mlogger.info("Check derivatives of Normal Means logML' with respect to s^2 (scaled prior)") y, s, wk, sk, dj = self._NM_data() nmash = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps = NormalMeansASHScaled(y, s, wk, sk, d = dj) nmash_eps.set_s2_eps(eps) deriv_analytic = nmash.logML_deriv_s2deriv deriv_numeric = (nmash_eps.logML_deriv - nmash.logML_deriv) / eps self.assertTrue(np.allclose(deriv_analytic, deriv_numeric), msg = "Normal Means logML' derivative with respect to s^2 does not match numeric results (scaled prior)") return if __name__ == '__main__': unittest.main()
45.87037
146
0.61627
699
4,954
4.211731
0.13877
0.024457
0.028872
0.030571
0.871603
0.867527
0.859375
0.831522
0.828125
0.828125
0
0.018689
0.276342
4,954
107
147
46.299065
0.80251
0
0
0.494382
0
0.022472
0.198627
0
0
0
0
0
0.067416
1
0.078652
false
0
0.044944
0
0.213483
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
36fc913eb639f075c8664b28591690fe44372235
5,277
py
Python
tests/helpers/test_secure_boot_helper.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
tests/helpers/test_secure_boot_helper.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
tests/helpers/test_secure_boot_helper.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
import unittest from pathlib import Path from unittest.mock import MagicMock from unittest.mock import Mock from unittest.mock import patch from secbootctl.env import Env from secbootctl.helpers.secureboot import SecureBootHelper class TestSecureBootHelper(unittest.TestCase): def setUp(self) -> None: self._process_result_mock: Mock = Mock() self._file_path: Path = Path('/tmp/file.efi') self._key_path: Path = Path('/tmp/keys') self._db_key_file_path = self._key_path / (Env.SB_KEY_NAME_DB + '.key') self._db_cert_file_path = self._key_path / (Env.SB_KEY_NAME_DB + '.crt') self._sb_helper: SecureBootHelper = SecureBootHelper(self._key_path) def test_init_it_assigns_key_file_paths(self): self.assertEqual( self._db_key_file_path, self._sb_helper._db_key_file_path ) self.assertEqual( self._db_cert_file_path, self._sb_helper._db_cert_file_path ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_signing_is_successful_it_returns_true(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=0) self.assertTrue( self._sb_helper.sign_file(self._file_path) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbsign', f'--key={self._db_key_file_path}', f'--cert={self._db_cert_file_path}', f'--output={self._file_path}', self._file_path ], capture_output=True ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_use_token_and_signing_is_successful_it_returns_true(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=0) self.assertTrue( self._sb_helper.sign_file(self._file_path, True) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbsign', '--engine=pkcs11', '--key=pkcs11:manufacturer=piv_II;id=%02', f'--cert={self._db_cert_file_path}', f'--output={self._file_path}', self._file_path ], capture_output=True ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_signing_fails_it_returns_false(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=1) self.assertFalse( self._sb_helper.sign_file(self._file_path) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbsign', f'--key={self._db_key_file_path}', f'--cert={self._db_cert_file_path}', f'--output={self._file_path}', self._file_path ], capture_output=True ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_use_token_and_signing_fails_it_returns_false(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=1) self.assertFalse( self._sb_helper.sign_file(self._file_path, True) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbsign', '--engine=pkcs11', '--key=pkcs11:manufacturer=piv_II;id=%02', f'--cert={self._db_cert_file_path}', f'--output={self._file_path}', self._file_path ], capture_output=True ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_verification_is_successful_it_returns_true(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=0) self.assertTrue( self._sb_helper.verify_file(self._file_path) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbverify', f'--cert={self._db_cert_file_path}', self._file_path ], capture_output=True ) @patch('secbootctl.helpers.secureboot.subprocess') def test_sign_file_if_verifications_fails_it_returns_false(self, subprocess_patch_mock: MagicMock): subprocess_patch_mock.run.return_value = self._process_result_mock self._process_result_mock.configure_mock(returncode=1) self.assertFalse( self._sb_helper.verify_file(self._file_path) ) subprocess_patch_mock.run.assert_called_once_with( [ 'sbverify', f'--cert={self._db_cert_file_path}', self._file_path ], capture_output=True ) if __name__ == '__main__': unittest.main()
36.393103
118
0.647338
622
5,277
4.990354
0.130225
0.079897
0.11018
0.087951
0.83183
0.826997
0.80058
0.80058
0.80058
0.80058
0
0.004611
0.260186
5,277
144
119
36.645833
0.790471
0
0
0.6
0
0
0.14819
0.127724
0
0
0
0
0.116667
1
0.066667
false
0
0.058333
0
0.133333
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
36fceae17c9c40b722a6e5c6f41fd603d8d2393b
75
py
Python
backend/api/utils.py
NurlykhanKairly/bus-for-everyone
04f57d73ceeeef0e90e969683409ac177f20955b
[ "MIT" ]
null
null
null
backend/api/utils.py
NurlykhanKairly/bus-for-everyone
04f57d73ceeeef0e90e969683409ac177f20955b
[ "MIT" ]
null
null
null
backend/api/utils.py
NurlykhanKairly/bus-for-everyone
04f57d73ceeeef0e90e969683409ac177f20955b
[ "MIT" ]
1
2021-09-08T04:42:23.000Z
2021-09-08T04:42:23.000Z
def has_permission(created_by, user): return created_by.id == user.id
18.75
37
0.733333
12
75
4.333333
0.666667
0.346154
0
0
0
0
0
0
0
0
0
0
0.16
75
3
38
25
0.825397
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
7fd4b6e3415c8fd3eafa5138724b4f7a5fe39c59
41
py
Python
daolilb/client/__init__.py
foruy/openflow-docker
6fa8bc3c634ccaf7ad5ab924bf31faf80887fb3a
[ "Apache-2.0" ]
null
null
null
daolilb/client/__init__.py
foruy/openflow-docker
6fa8bc3c634ccaf7ad5ab924bf31faf80887fb3a
[ "Apache-2.0" ]
null
null
null
daolilb/client/__init__.py
foruy/openflow-docker
6fa8bc3c634ccaf7ad5ab924bf31faf80887fb3a
[ "Apache-2.0" ]
null
null
null
from daolicontroller.client.api import *
20.5
40
0.829268
5
41
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
0.918919
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
1847cc0fe74496ff75f23469b80d5955537334e8
2,093
py
Python
benchmarks/models/layers.py
SunDoge/octconv
a1ed9f872065a8f765621e231c2419d07fe7e69a
[ "MIT" ]
17
2019-05-01T12:12:49.000Z
2021-08-11T15:17:19.000Z
benchmarks/models/layers.py
SunDoge/octconv
a1ed9f872065a8f765621e231c2419d07fe7e69a
[ "MIT" ]
3
2019-05-15T11:50:13.000Z
2021-05-26T01:45:21.000Z
benchmarks/models/layers.py
SunDoge/octconv
a1ed9f872065a8f765621e231c2419d07fe7e69a
[ "MIT" ]
3
2019-10-30T04:57:22.000Z
2020-12-12T15:28:32.000Z
import torch.nn as nn from octconv import OctConv2d class OctConvBn(nn.Module): def __init__(self, in_channels, out_channels, kernel_size, alpha=0.5, stride=1, padding=0, bias=False, norm_layer=None): super(OctConvBn, self).__init__() if norm_layer is None: norm_layer = nn.BatchNorm2d self.conv = OctConv2d(in_channels, out_channels, kernel_size=kernel_size, alpha=alpha, stride=stride, padding=padding, bias=bias) alpha_out = self.conv.alpha_out self.bn_h = None if alpha_out == 1 else norm_layer(self.conv.out_channels['high']) self.bn_l = None if alpha_out == 0 else norm_layer(self.conv.out_channels['low']) def forward(self, x): out = self.conv(x) x_h, x_l = out if isinstance(out, tuple) else (out, None) x_h = self.bn_h(x_h) x_l = self.bn_l(x_l) if x_l is not None else None return x_h, x_l class OctConvBnAct(nn.Module): def __init__(self, in_channels, out_channels, kernel_size, alpha=0.5, stride=1, padding=0, bias=False, norm_layer=None, activation_layer=None): super(OctConvBnAct, self).__init__() if norm_layer is None: norm_layer = nn.BatchNorm2d if activation_layer is None: activation_layer = nn.ReLU(inplace=True) self.conv = OctConv2d(in_channels, out_channels, kernel_size=kernel_size, alpha=alpha, stride=stride, padding=padding, bias=bias) alpha_out = self.conv.alpha_out self.bn_h = None if alpha_out == 1 else norm_layer(self.conv.out_channels['high']) self.bn_l = None if alpha_out == 0 else norm_layer(self.conv.out_channels['low']) self.act = activation_layer def forward(self, x): out = self.conv(x) x_h, x_l = out if isinstance(out, tuple) else (out, None) x_h = self.act(self.bn_h(x_h)) x_l = self.act(self.bn_l(x_l)) if x_l is not None else None return x_h, x_l if __name__ == '__main__': pass
30.779412
94
0.630196
319
2,093
3.852665
0.172414
0.07323
0.014646
0.019528
0.820179
0.820179
0.820179
0.820179
0.802278
0.802278
0
0.011075
0.266603
2,093
67
95
31.238806
0.789577
0
0
0.585366
0
0
0.010511
0
0
0
0
0
0
1
0.097561
false
0.02439
0.04878
0
0.243902
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
185e869f554d29bc7caba88326432861880e615e
87
py
Python
image_keras/supports/functional/__init__.py
tenkeyless/image-keras
09da179d75bb7a17d76e4fd7456b1667c8b4f62b
[ "MIT" ]
null
null
null
image_keras/supports/functional/__init__.py
tenkeyless/image-keras
09da179d75bb7a17d76e4fd7456b1667c8b4f62b
[ "MIT" ]
1
2020-06-18T06:47:32.000Z
2020-06-18T06:47:32.000Z
common_py/functional/__init__.py
tenkeyless/common_py
fae49f038dacecef468a5c0972fdbe0d6a5a66b9
[ "MIT" ]
null
null
null
from .either import * from .future import * from .monad import * from .option import *
17.4
21
0.724138
12
87
5.25
0.5
0.47619
0
0
0
0
0
0
0
0
0
0
0.183908
87
4
22
21.75
0.887324
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
1881e51f643bba5d063f0ce1b3e4401fca981cb1
202
py
Python
app/widget/__init__.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
app/widget/__init__.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
app/widget/__init__.py
HansBug/dgdvapp
f3142d2c265afda427bbeee46c8073e1126eeef5
[ "Apache-2.0" ]
null
null
null
from .dialog_config import DialogConfig from .form_generate import FormGenerate from .form_log_process import FormLogProcess from .form_metrics import FormMetrics from .main_window import AppMainWindow
33.666667
44
0.876238
26
202
6.576923
0.615385
0.140351
0
0
0
0
0
0
0
0
0
0
0.09901
202
5
45
40.4
0.93956
0
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
43f09c545710d449af81791e0d46921fd9bf872f
221
py
Python
physics/error.py
dwahme/physics_calc_enabler
f0fc4c9214cd024344c5f0d3684b29666339395e
[ "MIT" ]
null
null
null
physics/error.py
dwahme/physics_calc_enabler
f0fc4c9214cd024344c5f0d3684b29666339395e
[ "MIT" ]
1
2018-12-31T17:49:59.000Z
2018-12-31T17:49:59.000Z
physics/error.py
dwahme/physics_calc_enabler
f0fc4c9214cd024344c5f0d3684b29666339395e
[ "MIT" ]
null
null
null
''' A submodule for doing basic error analysis for experimental physics results. ''' def average(values): # TODO: add documentation pass def percent_diff(expected, actual): # TODO: add documentation pass
18.416667
59
0.714932
27
221
5.814815
0.777778
0.089172
0.254777
0.305732
0
0
0
0
0
0
0
0
0.20362
221
12
60
18.416667
0.892045
0.565611
0
0.5
0
0
0
0
0
0
0
0.083333
0
1
0.5
false
0.5
0
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
6
a13b27ac35b40c2fe3a4e1cf4063300bf2b1b66b
7,163
py
Python
shade/tests/functional/test_object.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
96
2015-01-29T20:12:08.000Z
2019-01-28T22:17:13.000Z
shade/tests/functional/test_object.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
7
2015-08-14T18:47:28.000Z
2019-02-18T16:32:36.000Z
shade/tests/functional/test_object.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
88
2015-05-11T17:20:52.000Z
2019-04-04T03:23:30.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. """ test_object ---------------------------------- Functional tests for `shade` object methods. """ import random import string import tempfile from testtools import content from shade import exc from shade.tests.functional import base class TestObject(base.BaseFunctionalTestCase): def setUp(self): super(TestObject, self).setUp() if not self.user_cloud.has_service('object-store'): self.skipTest('Object service not supported by cloud') def test_create_object(self): '''Test uploading small and large files.''' container_name = self.getUniqueString('container') self.addDetail('container', content.text_content(container_name)) self.addCleanup(self.user_cloud.delete_container, container_name) self.user_cloud.create_container(container_name) self.assertEqual(container_name, self.user_cloud.list_containers()[0]['name']) sizes = ( (64 * 1024, 1), # 64K, one segment (64 * 1024, 5) # 64MB, 5 segments ) for size, nseg in sizes: segment_size = int(round(size / nseg)) with tempfile.NamedTemporaryFile() as fake_file: fake_content = ''.join(random.SystemRandom().choice( string.ascii_uppercase + string.digits) for _ in range(size)).encode('latin-1') fake_file.write(fake_content) fake_file.flush() name = 'test-%d' % size self.addCleanup( self.user_cloud.delete_object, container_name, name) self.user_cloud.create_object( container_name, name, fake_file.name, segment_size=segment_size, metadata={'foo': 'bar'}) self.assertFalse(self.user_cloud.is_object_stale( container_name, name, fake_file.name )) self.assertEqual( 'bar', self.user_cloud.get_object_metadata( container_name, name)['x-object-meta-foo'] ) self.user_cloud.update_object(container=container_name, name=name, metadata={'testk': 'testv'}) self.assertEqual( 'testv', self.user_cloud.get_object_metadata( container_name, name)['x-object-meta-testk'] ) try: self.assertIsNotNone( self.user_cloud.get_object(container_name, name)) except exc.OpenStackCloudException as e: self.addDetail( 'failed_response', content.text_content(str(e.response.headers))) self.addDetail( 'failed_response', content.text_content(e.response.text)) self.assertEqual( name, self.user_cloud.list_objects(container_name)[0]['name']) self.assertTrue( self.user_cloud.delete_object(container_name, name)) self.assertEqual([], self.user_cloud.list_objects(container_name)) self.assertEqual(container_name, self.user_cloud.list_containers()[0]['name']) self.user_cloud.delete_container(container_name) def test_download_object_to_file(self): '''Test uploading small and large files.''' container_name = self.getUniqueString('container') self.addDetail('container', content.text_content(container_name)) self.addCleanup(self.user_cloud.delete_container, container_name) self.user_cloud.create_container(container_name) self.assertEqual(container_name, self.user_cloud.list_containers()[0]['name']) sizes = ( (64 * 1024, 1), # 64K, one segment (64 * 1024, 5) # 64MB, 5 segments ) for size, nseg in sizes: fake_content = '' segment_size = int(round(size / nseg)) with tempfile.NamedTemporaryFile() as fake_file: fake_content = ''.join(random.SystemRandom().choice( string.ascii_uppercase + string.digits) for _ in range(size)).encode('latin-1') fake_file.write(fake_content) fake_file.flush() name = 'test-%d' % size self.addCleanup( self.user_cloud.delete_object, container_name, name) self.user_cloud.create_object( container_name, name, fake_file.name, segment_size=segment_size, metadata={'foo': 'bar'}) self.assertFalse(self.user_cloud.is_object_stale( container_name, name, fake_file.name )) self.assertEqual( 'bar', self.user_cloud.get_object_metadata( container_name, name)['x-object-meta-foo'] ) self.user_cloud.update_object(container=container_name, name=name, metadata={'testk': 'testv'}) self.assertEqual( 'testv', self.user_cloud.get_object_metadata( container_name, name)['x-object-meta-testk'] ) try: with tempfile.NamedTemporaryFile() as fake_file: self.user_cloud.get_object( container_name, name, outfile=fake_file.name) downloaded_content = open(fake_file.name, 'rb').read() self.assertEqual(fake_content, downloaded_content) except exc.OpenStackCloudException as e: self.addDetail( 'failed_response', content.text_content(str(e.response.headers))) self.addDetail( 'failed_response', content.text_content(e.response.text)) raise self.assertEqual( name, self.user_cloud.list_objects(container_name)[0]['name']) self.assertTrue( self.user_cloud.delete_object(container_name, name)) self.assertEqual([], self.user_cloud.list_objects(container_name)) self.assertEqual(container_name, self.user_cloud.list_containers()[0]['name']) self.user_cloud.delete_container(container_name)
42.892216
78
0.568756
737
7,163
5.324288
0.217096
0.11264
0.102701
0.051988
0.765545
0.765545
0.755352
0.755352
0.735474
0.735474
0
0.010484
0.334218
7,163
166
79
43.150602
0.81233
0.106101
0
0.801471
0
0
0.050071
0
0
0
0
0
0.132353
1
0.022059
false
0
0.044118
0
0.073529
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
a173108006ddc214ef88d92d7434f67d2c9d5464
766
py
Python
component/mobility.py
sagelga/covid-vaccine
8484393f001b31ef1bc3fb07246f6cfa33c18ee9
[ "MIT" ]
null
null
null
component/mobility.py
sagelga/covid-vaccine
8484393f001b31ef1bc3fb07246f6cfa33c18ee9
[ "MIT" ]
31
2021-03-23T08:19:55.000Z
2021-04-28T05:33:47.000Z
component/mobility.py
sagelga/covid-vaccine
8484393f001b31ef1bc3fb07246f6cfa33c18ee9
[ "MIT" ]
null
null
null
import pandas as pd def get_aapl_df(): url = 'https://raw.githubusercontent.com/ActiveConclusion/COVID19_mobility/master/apple_reports/apple_mobility_report.csv' df = pd.read_csv(url) return df def get_goog_df(): url = 'https://raw.githubusercontent.com/ActiveConclusion/COVID19_mobility/master/google_reports/mobility_report_countries.csv' df = pd.read_csv(url) return df def get_waze_df(): url = 'https://raw.githubusercontent.com/ActiveConclusion/COVID19_mobility/master/waze_reports/waze_mobility.csv' df = pd.read_csv(url) return df def get_tom_df(): url = 'https://raw.githubusercontent.com/ActiveConclusion/COVID19_mobility/master/tomtom_reports/tomtom_trafic_index.csv' df = pd.read_csv(url) return df
29.461538
131
0.759791
107
766
5.186916
0.28972
0.043243
0.072072
0.093694
0.717117
0.717117
0.717117
0.717117
0.672072
0.672072
0
0.012012
0.130548
766
25
132
30.64
0.821321
0
0
0.470588
0
0
0.588773
0
0
0
0
0
0
1
0.235294
false
0
0.058824
0
0.529412
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
a1790a9de1a01844b6041ed2768afbe0185f00c5
92
py
Python
office365/sharepoint/fields/field_thumbnail.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/fields/field_thumbnail.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/fields/field_thumbnail.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.sharepoint.fields.field import Field class FieldThumbnail(Field): pass
15.333333
51
0.793478
11
92
6.636364
0.818182
0
0
0
0
0
0
0
0
0
0
0.037975
0.141304
92
5
52
18.4
0.886076
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
a1980d4135bf4d30710bd2b262964a71bba8f43f
1,014
py
Python
flexmeasures/ui/views/__init__.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/ui/views/__init__.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/ui/views/__init__.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
"""This module hosts the views. This file registers blueprints and hosts some helpful functions""" from flexmeasures.ui import flexmeasures_ui # Now views can register from flexmeasures.ui.views.dashboard import ( # noqa: F401 dashboard_view as legacy_dashboard_view, ) from flexmeasures.ui.views.new_dashboard import new_dashboard_view # noqa: F401 from flexmeasures.ui.views.portfolio import portfolio_view # noqa: F401 from flexmeasures.ui.views.control import control_view # noqa: F401 from flexmeasures.ui.views.analytics import analytics_view # noqa: F401 from flexmeasures.ui.views.state import sensor_state_view # noqa: F401 from flexmeasures.ui.views.logged_in_user import ( # noqa: F401 # noqa: F401 logged_in_user_view, ) from flexmeasures.ui.views.charts import get_power_chart # noqa: F401 @flexmeasures_ui.route("/docs") def docs_view(): """Render the Sphinx documentation""" # Todo: render the docs with this nicer url and include the app's navigation menu return
37.555556
98
0.781065
145
1,014
5.317241
0.372414
0.199741
0.210117
0.238651
0.297017
0.226978
0.226978
0
0
0
0
0.031106
0.143984
1,014
26
99
39
0.857143
0.324458
0
0
0
0
0.00753
0
0
0
0
0.038462
0
1
0.0625
true
0
0.5625
0
0.6875
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
1
0
1
0
0
6
a1a2e9ca174a49c4b21843591f98cd0f5c868ae3
108
py
Python
tests/exog/random/random_exog_150_320.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/exog/random/random_exog_150_320.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/exog/random/random_exog_150_320.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.exog.test_random_exogenous as testrandexog testrandexog.test_random_exogenous( 150,320);
27
60
0.861111
15
108
5.933333
0.733333
0.224719
0.426966
0
0
0
0
0
0
0
0
0.059406
0.064815
108
4
61
27
0.821782
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
a1cbb13f0d829f5ecbc5ad9ac3d3f1eb4f555da7
5,772
py
Python
raiden_contracts/utils/sign.py
konradkonrad/raiden-contracts
5726f744e8d7e80f7ca61401bd3f1084de57e30c
[ "MIT" ]
null
null
null
raiden_contracts/utils/sign.py
konradkonrad/raiden-contracts
5726f744e8d7e80f7ca61401bd3f1084de57e30c
[ "MIT" ]
null
null
null
raiden_contracts/utils/sign.py
konradkonrad/raiden-contracts
5726f744e8d7e80f7ca61401bd3f1084de57e30c
[ "MIT" ]
null
null
null
from web3 import Web3 from eth_abi import encode_single from .sign_utils import sign from raiden_contracts.constants import MessageTypeId def hash_balance_data(transferred_amount, locked_amount, locksroot): return Web3.soliditySha3( ['uint256', 'uint256', 'bytes32'], [transferred_amount, locked_amount, locksroot], ) def eth_sign_hash_message(encoded_message): signature_prefix = '\x19Ethereum Signed Message:\n' return Web3.sha3( Web3.toBytes(text=signature_prefix) + Web3.toBytes(text=str(len(encoded_message))) + encoded_message, ) def hash_balance_proof( token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, ): return eth_sign_hash_message( Web3.toBytes(hexstr=token_network_address) + encode_single('uint256', chain_identifier) + encode_single('uint256', MessageTypeId.BALANCE_PROOF) + encode_single('uint256', channel_identifier) + balance_hash + encode_single('uint256', nonce) + additional_hash, ) def hash_balance_proof_update_message( token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, closing_signature, ): return eth_sign_hash_message( Web3.toBytes(hexstr=token_network_address) + encode_single('uint256', chain_identifier) + encode_single('uint256', MessageTypeId.BALANCE_PROOF_UPDATE) + encode_single('uint256', channel_identifier) + balance_hash + encode_single('uint256', nonce) + additional_hash + closing_signature, ) def hash_cooperative_settle_message( token_network_address, chain_identifier, channel_identifier, participant1_address, participant1_balance, participant2_address, participant2_balance, ): return eth_sign_hash_message( Web3.toBytes(hexstr=token_network_address) + encode_single('uint256', chain_identifier) + encode_single('uint256', MessageTypeId.COOPERATIVE_SETTLE) + encode_single('uint256', channel_identifier) + Web3.toBytes(hexstr=participant1_address) + encode_single('uint256', participant1_balance) + Web3.toBytes(hexstr=participant2_address) + encode_single('uint256', participant2_balance), ) def hash_withdraw_message( token_network_address, chain_identifier, channel_identifier, participant, amount_to_withdraw, ): return eth_sign_hash_message( Web3.toBytes(hexstr=token_network_address) + encode_single('uint256', chain_identifier) + encode_single('uint256', MessageTypeId.WITHDRAW) + encode_single('uint256', channel_identifier) + Web3.toBytes(hexstr=participant) + encode_single('uint256', amount_to_withdraw), ) def hash_reward_proof( channel_identifier, reward_amount, token_network_address, chain_id, nonce): return Web3.soliditySha3([ 'uint256', 'uint256', 'address', 'uint256', 'uint256', ], [ channel_identifier, reward_amount, token_network_address, chain_id, nonce, ]) def sign_balance_proof( privatekey, token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, v=27, ): message_hash = hash_balance_proof( token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, ) return sign(privatekey, message_hash, v) def sign_balance_proof_update_message( privatekey, token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, closing_signature, v=27, ): message_hash = hash_balance_proof_update_message( token_network_address, chain_identifier, channel_identifier, balance_hash, nonce, additional_hash, closing_signature, ) return sign(privatekey, message_hash, v) def sign_cooperative_settle_message( privatekey, token_network_address, chain_identifier, channel_identifier, participant1_address, participant1_balance, participant2_address, participant2_balance, v=27, ): message_hash = hash_cooperative_settle_message( token_network_address, chain_identifier, channel_identifier, participant1_address, participant1_balance, participant2_address, participant2_balance, ) return sign(privatekey, message_hash, v) def sign_withdraw_message( privatekey, token_network_address, chain_identifier, channel_identifier, participant, amount_to_withdraw, v=27, ): message_hash = hash_withdraw_message( token_network_address, chain_identifier, channel_identifier, participant, amount_to_withdraw, ) return sign(privatekey, message_hash, v) def sign_reward_proof( privatekey, channel_identifier, reward_amount, token_network_address, chain_id, nonce, v=27): message_hash = hash_reward_proof( channel_identifier, reward_amount, token_network_address, chain_id, nonce, ) return sign(privatekey, message_hash, v)
25.20524
70
0.650381
550
5,772
6.410909
0.110909
0.068066
0.107771
0.108905
0.819626
0.762904
0.75553
0.747589
0.680091
0.668463
0
0.027905
0.279799
5,772
228
71
25.315789
0.820303
0
0
0.713568
0
0
0.035516
0
0
0
0
0
0
1
0.060302
false
0
0.020101
0.030151
0.140704
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
a1ffd68b70a3e94d90d0db934d5b68551327d1d5
1,597
py
Python
tests/test_tuple_strategy.py
stortiz-lifeworks/chili
958adf88de6df995d9216b9dcf3c11f3e6885485
[ "MIT" ]
4
2021-10-01T09:50:47.000Z
2022-02-03T05:43:04.000Z
tests/test_tuple_strategy.py
stortiz-lifeworks/chili
958adf88de6df995d9216b9dcf3c11f3e6885485
[ "MIT" ]
5
2021-10-01T08:11:33.000Z
2021-12-13T18:33:37.000Z
tests/test_tuple_strategy.py
stortiz-lifeworks/chili
958adf88de6df995d9216b9dcf3c11f3e6885485
[ "MIT" ]
null
null
null
from typing import Tuple from chili import registry def test_hydrate_generic_tuple() -> None: # given strategy = registry.get_for(tuple) items = ["a", 1, 2.1, True] # when hydrated_items = strategy.hydrate(items) # then assert hydrated_items == ("a", 1, 2.1, True) def test_hydrate_typed_tuple() -> None: # given strategy = registry.get_for(Tuple[str, int, str, int]) items = ["a", 1, 2.1, True] # when hydrated_items = strategy.hydrate(items) # then assert hydrated_items == ("a", 1, "2.1", 1) def test_hydrate_ellipsis_tuple() -> None: # given strategy = registry.get_for(Tuple[str, ...]) items = ["a", 1, 2.1, True] # when hydrated_items = strategy.hydrate(items) # then assert hydrated_items == ("a", "1", "2.1", "True") def test_extract_simple_tuple() -> None: # given strategy = registry.get_for(tuple) items = ("a", 1, 2.1, True) # when extracted_items = strategy.extract(items) # then assert extracted_items == ["a", 1, 2.1, True] def test_extract_typed_tuple() -> None: # given strategy = registry.get_for(Tuple[str, int, str, int]) items = ("a", 1, 2.1, True) # when extracted_items = strategy.extract(items) # then assert extracted_items == ["a", 1, "2.1", 1] def test_extract_ellipsis_tuple() -> None: # given strategy = registry.get_for(Tuple[str, ...]) items = ("a", 1, 2.1, True) # when extracted_items = strategy.extract(items) # then assert extracted_items == ["a", "1", "2.1", "True"]
20.74026
58
0.604258
216
1,597
4.300926
0.143519
0.077503
0.09042
0.103337
0.900969
0.900969
0.900969
0.900969
0.883746
0.861141
0
0.031327
0.240451
1,597
76
59
21.013158
0.734542
0.059487
0
0.5625
0
0
0.022927
0
0
0
0
0
0.1875
1
0.1875
false
0
0.0625
0
0.25
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
62d1d043177ddc1afdb37ce3d016cae78eb3bfe0
2,271
py
Python
photo_album_server/photos/migrations/0001_initial.py
Pu-Yongjun/photo-album
6ba662c243802e53b5df5548a36c27cc31c5cede
[ "Apache-2.0" ]
1
2020-12-11T05:46:37.000Z
2020-12-11T05:46:37.000Z
photo_album_server/photos/migrations/0001_initial.py
Pu-Yongjun/photo-album
6ba662c243802e53b5df5548a36c27cc31c5cede
[ "Apache-2.0" ]
19
2020-06-05T19:51:11.000Z
2022-03-11T23:44:47.000Z
photo_album_server/photos/migrations/0001_initial.py
parker-pu/photo-album
6ba662c243802e53b5df5548a36c27cc31c5cede
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-20 12:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='PhotoCacheModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField(verbose_name='图片名称')), ('describe', models.TextField(verbose_name='图片描述')), ('photo_url', models.TextField(verbose_name='图片的路径')), ('thumbnail', models.ImageField(upload_to='static/data/images/cache', verbose_name='缩略图')), ('insert_time', models.DateTimeField(auto_now=True, verbose_name='插入时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('user', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='cuser', to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'db_table': 'photo_cache', }, ), migrations.CreateModel( name='PhotoModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField(verbose_name='图片名称')), ('describe', models.TextField(verbose_name='图片描述')), ('photo_url', models.TextField(verbose_name='图片的路径')), ('thumbnail', models.ImageField(upload_to='static/user_img', verbose_name='缩略图')), ('insert_time', models.DateTimeField(auto_now=True, verbose_name='插入时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('user', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'db_table': 'photo', }, ), ]
45.42
171
0.600616
235
2,271
5.604255
0.331915
0.133637
0.100228
0.118451
0.733485
0.733485
0.733485
0.733485
0.733485
0.733485
0
0.008855
0.254073
2,271
49
172
46.346939
0.768595
0.019815
0
0.52381
1
0
0.12455
0.010791
0
0
0
0
0
1
0
false
0
0.071429
0
0.166667
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
62d7ed0ea5dcd7bc76928b29927c0ebb86b865a9
19,760
py
Python
main.py
marjanin/G2P_with_fb
683aa5af45f37a7ac8537ce097ccc91c422c80ba
[ "MIT" ]
null
null
null
main.py
marjanin/G2P_with_fb
683aa5af45f37a7ac8537ce097ccc91c422c80ba
[ "MIT" ]
null
null
null
main.py
marjanin/G2P_with_fb
683aa5af45f37a7ac8537ce097ccc91c422c80ba
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from matplotlib import pyplot as plt import pickle from warnings import simplefilter from all_functions import * from feedback_functions import * simplefilter(action='ignore', category=FutureWarning) # np.random.seed(0) # [babbling_kinematics, babbling_activations] = babbling_fcn(simulation_minutes=5) # model = inverse_mapping_fcn(kinematics=babbling_kinematics, activations=babbling_activations) # cum_kinematics = babbling_kinematics # cum_activations = babbling_activations # pickle.dump([model,cum_kinematics, cum_activations],open("results/mlp_model.sav", 'wb')) [model,cum_kinematics, cum_activations] = pickle.load(open("results/mlp_model.sav", 'rb')) # loading the model P = np.array([10, 15]) I = np.array([2, 6]) np.random.seed(0) experiments_switch = np.zeros(11,) # sets which experiments should run #np.zeros(10,)#[0, 0, 0, 1, 0, 0, 0, 0, 0, 1] #experiments_switch[4]=1 trial_number = 1 plot_outputs = True Mj_render = False for ii in range(len(experiments_switch)): globals()["exp{}_average_error".format(ii+1)]=np.zeros([2,1]) exp6_average_error = np.zeros([3,1]) exp7_average_error = np.zeros([3,1]) exp9_average_error = np.zeros([3,1,1]) exp10_average_error = np.zeros([3,1,1]) if experiments_switch[0] ==1: # as a function of cycle period features=np.ones(10,) cycle_durations = np.array([2.5,2.5])#np.linspace(.5,10,trial_number) test1_no = cycle_durations.shape[0] exp1_average_error = np.zeros([2,test1_no]) # first row open-loop and second row close-loop #cycle length experiment for cycle_duration_in_seconds, ii in zip(cycle_durations, range(test1_no)): [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = cycle_duration_in_seconds, show=False) q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp1_average_error[0,ii], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, plot_outputs=plot_outputs, Mj_render=False) exp1_average_error[1,ii], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P, I=I, plot_outputs=plot_outputs, Mj_render=False) # K = [10, 15] if experiments_switch[1] ==1: # cyclical on air np.random.seed(0) test2_no = trial_number exp2_average_error = np.zeros([2,test2_no]) for ii in range(test2_no): features = np.random.rand(10) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #import pdb; pdb.set_trace() q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp2_average_error[0,ii], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, plot_outputs=plot_outputs, Mj_render=False) exp2_average_error[1,ii], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P, I=I, plot_outputs=plot_outputs, Mj_render=False) # K = [10, 15] #print("error_without: ", exp2_average_error[0,0], "error with: ", exp2_average_error[1,0]) if experiments_switch[2] ==1: # p2p np.random.seed(0) test3_no = trial_number exp3_average_error = np.zeros([2,test3_no]) for ii in range(test3_no): q0 = p2p_positions_gen_fcn(low=-np.pi/3, high=np.pi/3, number_of_positions=10, duration_of_each_position=2.5, timestep=.005) q1 = p2p_positions_gen_fcn(low=-np.pi/2, high=0, number_of_positions=10, duration_of_each_position=2.5, timestep=.005) desired_kinematics = positions_to_kinematics_fcn(q0, q1, timestep = 0.005) exp3_average_error[0,ii], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, plot_outputs=plot_outputs, Mj_render=False) exp3_average_error[1,ii], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P, I=I, plot_outputs=plot_outputs, Mj_render=False) # K = [10, 15] if experiments_switch[3] ==1: # standing up against weight test4_no = 1 exp4_average_error = np.zeros([2,test4_no]) q0 = p2p_positions_gen_fcn(low=np.pi/3, high=np.pi/3, number_of_positions=1, duration_of_each_position=1, timestep=.005) q0 = np.append(q0,p2p_positions_gen_fcn(low=0, high=0, number_of_positions=1, duration_of_each_position=6, timestep=.005)) q1 = p2p_positions_gen_fcn(low=-np.pi/2, high=-np.pi/2, number_of_positions=1, duration_of_each_position=1, timestep=.005) q1 = np.append(q1,p2p_positions_gen_fcn(low=0, high=0, number_of_positions=1, duration_of_each_position=6, timestep=.005)) desired_kinematics = positions_to_kinematics_fcn(q0, q1, timestep = 0.005) exp4_average_error[0,:], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, model_ver=3, plot_outputs=plot_outputs, Mj_render=Mj_render) q0 = p2p_positions_gen_fcn(low=np.pi/3, high=np.pi/3, number_of_positions=1, duration_of_each_position=1, timestep=.005) q0 = np.append(q0,p2p_positions_gen_fcn(low=0, high=0, number_of_positions=1, duration_of_each_position=6, timestep=.005)) q1 = p2p_positions_gen_fcn(low=-np.pi/2, high=-np.pi/2, number_of_positions=1, duration_of_each_position=1, timestep=.005) q1 = np.append(q1,p2p_positions_gen_fcn(low=0, high=0, number_of_positions=1, duration_of_each_position=6, timestep=.005)) desired_kinematics = positions_to_kinematics_fcn(q0, q1, timestep = 0.005) exp4_average_error[1,:], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P, I=I, model_ver=3, plot_outputs=plot_outputs, Mj_render=Mj_render) if experiments_switch[4] == 1: # walking; contact dynamics np.random.seed(0) test5_no = trial_number exp5_average_error = np.zeros([2,test5_no]) for ii in range(test5_no): ########################## features = np.random.rand(10) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp5_average_error[0,ii], real_attempt_kinematics_ol, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, model_ver=2, plot_outputs=plot_outputs, Mj_render=Mj_render) exp5_average_error[1,ii], real_attempt_kinematics_cl, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, model_ver=2, P=P, I=I, plot_outputs=plot_outputs, Mj_render=Mj_render) # K = [10, 15] #import pdb; pdb.set_trace() # np.savetxt('./results/withdynamics_desired.csv', desired_kinematics, delimiter=',') # np.savetxt('./results/withdynamics_ol.csv', real_attempt_kinematics_ol, delimiter=',') # np.savetxt('./results/withdynamics_cl.csv', real_attempt_kinematics_cl, delimiter=',') if experiments_switch[5] == 1: # everlearn ones np.random.seed(0) [babbling_kinematics_1min, babbling_activations_1min] = babbling_fcn(simulation_minutes=1) model_1min = inverse_mapping_fcn(kinematics=babbling_kinematics_1min, activations=babbling_activations_1min) cum_kinematics_ol = deepcopy(babbling_kinematics_1min) cum_activations_ol = deepcopy(babbling_activations_1min) exp6_model_ol = deepcopy(model_1min) cum_kinematics_cl = deepcopy(babbling_kinematics_1min) cum_activations_cl = deepcopy(babbling_activations_1min) exp6_model_cl = deepcopy(model_1min) test6_no = trial_number exp6_average_error = np.zeros([3,test6_no]) for ii in range(test6_no): features = np.ones(10,) print(features) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #1sec also fine q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp6_average_error[0,ii], real_attempt_kinematics_ol, real_attempt_activations_ol = openloop_run_fcn(model=exp6_model_ol, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_ol, cum_activations_ol = concatinate_data_fcn( cum_kinematics_ol, cum_activations_ol, real_attempt_kinematics_ol, real_attempt_activations_ol, throw_percentage = 0.20) exp6_model_ol = inverse_mapping_fcn(cum_kinematics_ol, cum_activations_ol, prior_model = exp6_model_ol) exp6_average_error[1,ii], real_attempt_kinematics_cl, real_attempt_activations_cl = closeloop_run_fcn(model=exp6_model_cl, desired_kinematics=desired_kinematics, model_ver=0, P=P, I=I, plot_outputs=False, Mj_render=False) exp6_average_error[2,ii], _, _ = openloop_run_fcn(model=exp6_model_cl, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_cl, cum_activations_cl = concatinate_data_fcn( cum_kinematics_cl, cum_activations_cl, real_attempt_kinematics_cl, real_attempt_activations_cl, throw_percentage = 0.20) exp6_model_cl = inverse_mapping_fcn(cum_kinematics_cl, cum_activations_cl, prior_model = exp6_model_cl) if experiments_switch[6] == 1: # everlearn random multi np.random.seed(0) [babbling_kinematics_1min, babbling_activations_1min] = babbling_fcn(simulation_minutes=1) model_1min = inverse_mapping_fcn(kinematics=babbling_kinematics_1min, activations=babbling_activations_1min) cum_kinematics_ol = deepcopy(babbling_kinematics_1min) cum_activations_ol = deepcopy(babbling_activations_1min) exp7_model_ol = deepcopy(model_1min) cum_kinematics_cl = deepcopy(babbling_kinematics_1min) cum_activations_cl = deepcopy(babbling_activations_1min) exp7_model_cl = deepcopy(model_1min) test7_no = trial_number exp7_average_error = np.zeros([3,test7_no]) for ii in range(test7_no): print(ii) features = np.random.rand(10) print(features) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #1sec also fine q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp7_average_error[0,ii], real_attempt_kinematics_ol, real_attempt_activations_ol = openloop_run_fcn(model=exp7_model_ol, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_ol, cum_activations_ol = concatinate_data_fcn( cum_kinematics_ol, cum_activations_ol, real_attempt_kinematics_ol, real_attempt_activations_ol, throw_percentage = 0.20) exp7_model_ol = inverse_mapping_fcn(cum_kinematics_ol, cum_activations_ol, prior_model = exp7_model_ol) exp7_average_error[1,ii], real_attempt_kinematics_cl, real_attempt_activations_cl = closeloop_run_fcn(model=exp7_model_cl, desired_kinematics=desired_kinematics, model_ver=0, P=P, I=I, plot_outputs=False, Mj_render=False) exp7_average_error[2,ii], _, _ = openloop_run_fcn(model=exp7_model_cl, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_cl, cum_activations_cl = concatinate_data_fcn( cum_kinematics_cl, cum_activations_cl, real_attempt_kinematics_cl, real_attempt_activations_cl, throw_percentage = 0.20) exp7_model_cl = inverse_mapping_fcn(cum_kinematics_cl, cum_activations_cl, prior_model = exp7_model_cl) if experiments_switch[7] ==1: # delay np.random.seed(0) test8_no = trial_number all_delays = np.arange(0, 21, 2) exp8_average_error = np.zeros([all_delays.shape[0]+1,test8_no]) for ii in range(test8_no): features = np.random.rand(10) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #import pdb; pdb.set_trace() q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) for delay_timesteps, jj in zip(all_delays, range(all_delays.shape[0])): if jj==0: # 0 is for the open loop exp8_average_error[jj,ii], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, plot_outputs=False, Mj_render=False) exp8_average_error[jj+1,ii], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P, I=I, delay_timesteps=delay_timesteps, plot_outputs=False, Mj_render=False) # K = [10, 15] #print("error_without: ", exp2_average_error[0,0], "error with: ", exp2_average_error[1,0]) if experiments_switch[8] == 1: # everlearn random mesh refine_num = 25 test9_no = refine_num babbling_times = np.array([1, 2.5, 5]) num_babbling_cases = babbling_times.shape[0] #import pdb; pdb.set_trace() exp9_average_error = np.zeros([3,test9_no,num_babbling_cases]) for babbling_time, jj in zip(babbling_times, range(num_babbling_cases)): np.random.seed(0) [babbling_kinematics_1min, babbling_activations_1min] = babbling_fcn(simulation_minutes=babbling_time) model_1min = inverse_mapping_fcn(kinematics=babbling_kinematics_1min, activations=babbling_activations_1min) cum_kinematics_ol = deepcopy(babbling_kinematics_1min) cum_activations_ol = deepcopy(babbling_activations_1min) exp9_model_ol = deepcopy(model_1min) cum_kinematics_cl = deepcopy(babbling_kinematics_1min) cum_activations_cl = deepcopy(babbling_activations_1min) exp9_model_cl = deepcopy(model_1min) for ii in range(test9_no): features = np.ones(10,)#np.random.rand(10)*.8+.2 print(features) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #1sec also fine q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp9_average_error[0,ii,jj], real_attempt_kinematics_ol, real_attempt_activations_ol = openloop_run_fcn(model=exp9_model_ol, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_ol, cum_activations_ol = concatinate_data_fcn( cum_kinematics_ol, cum_activations_ol, real_attempt_kinematics_ol, real_attempt_activations_ol, throw_percentage = 0.20) exp9_model_ol = inverse_mapping_fcn(cum_kinematics_ol, cum_activations_ol, prior_model = exp9_model_ol) exp9_average_error[1,ii,jj], real_attempt_kinematics_cl, real_attempt_activations_cl = closeloop_run_fcn(model=exp9_model_cl, desired_kinematics=desired_kinematics, model_ver=0, P=P, I=I, plot_outputs=False, Mj_render=False) exp9_average_error[2,ii,jj], _, _ = openloop_run_fcn(model=exp9_model_cl, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_cl, cum_activations_cl = concatinate_data_fcn( cum_kinematics_cl, cum_activations_cl, real_attempt_kinematics_cl, real_attempt_activations_cl, throw_percentage = 0.20) exp9_model_cl = inverse_mapping_fcn(cum_kinematics_cl, cum_activations_cl, prior_model = exp9_model_cl) if experiments_switch[9] == 1: # everlearn random np.random.seed(0) rep_num = trial_number refine_num=25 exp10_average_error = np.zeros([4,refine_num,rep_num]) for jj in range(rep_num): [babbling_kinematics_1min, babbling_activations_1min] = babbling_fcn(simulation_minutes=1) model_1min = inverse_mapping_fcn(kinematics=babbling_kinematics_1min, activations=babbling_activations_1min) cum_kinematics_ol = deepcopy(babbling_kinematics_1min) cum_activations_ol = deepcopy(babbling_activations_1min) exp10_model_ol = deepcopy(model_1min) cum_kinematics_cl = deepcopy(babbling_kinematics_1min) cum_activations_cl = deepcopy(babbling_activations_1min) exp10_model_cl = deepcopy(model_1min) features = np.random.rand(10) for ii in range(refine_num): print(features) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #1sec also fine q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) exp10_average_error[0,ii,jj], real_attempt_kinematics_ol, real_attempt_activations_ol = openloop_run_fcn(model=exp10_model_ol, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) exp10_average_error[3,ii,jj], _, _ = closeloop_run_fcn(model=exp10_model_ol, desired_kinematics=desired_kinematics, model_ver=0, P=P, I=I, plot_outputs=False, Mj_render=False) cum_kinematics_ol, cum_activations_ol = concatinate_data_fcn( cum_kinematics_ol, cum_activations_ol, real_attempt_kinematics_ol, real_attempt_activations_ol, throw_percentage = 0.20) exp10_model_ol = inverse_mapping_fcn(cum_kinematics_ol, cum_activations_ol, prior_model = exp10_model_ol) exp10_average_error[1,ii,jj], real_attempt_kinematics_cl, real_attempt_activations_cl = closeloop_run_fcn(model=exp10_model_cl, desired_kinematics=desired_kinematics, model_ver=0, P=P, I=I, plot_outputs=False, Mj_render=False) exp10_average_error[2,ii,jj], _, _ = openloop_run_fcn(model=exp10_model_cl, desired_kinematics=desired_kinematics, model_ver=0, plot_outputs=False, Mj_render=False) cum_kinematics_cl, cum_activations_cl = concatinate_data_fcn( cum_kinematics_cl, cum_activations_cl, real_attempt_kinematics_cl, real_attempt_activations_cl, throw_percentage = 0.20) exp10_model_cl = inverse_mapping_fcn(cum_kinematics_cl, cum_activations_cl, prior_model = exp10_model_cl) if experiments_switch[10] ==1: # cyclical on air rep_num = trial_number powers=np.arange(-6,7,1) coefficients = np.power(2.,powers) P_exp11 = np.dot(coefficients[:,None],P[None,:]) I_exp11 = np.dot(coefficients[:,None],I[None,:]) PI_sets_no = P_exp11.shape[0] exp11_average_error = np.zeros([2,PI_sets_no]) for jj in range(PI_sets_no): np.random.seed(0) current_average_error = np.zeros([2,rep_num]) for ii in range(rep_num): features = np.random.rand(10) [q0_filtered, q1_filtered] = feat_to_positions_fcn(features, timestep=0.005, cycle_duration_in_seconds = 2.5, show=False) #import pdb; pdb.set_trace() q0_filtered_10 = np.tile(q0_filtered,10) q1_filtered_10 = np.tile(q1_filtered,10) desired_kinematics = positions_to_kinematics_fcn(q0_filtered_10, q1_filtered_10, timestep = 0.005) current_average_error[0,ii], _, _ = openloop_run_fcn(model=model, desired_kinematics=desired_kinematics, plot_outputs=False, Mj_render=False) current_average_error[1,ii], _, _ = closeloop_run_fcn(model=model, desired_kinematics=desired_kinematics, P=P_exp11[jj], I=I_exp11[jj], plot_outputs=False, Mj_render=False) # K = [10, 15] #print("error_without: ", exp2_average_error[0,0], "error with: ", exp2_average_error[1,0]) exp11_average_error[0, jj] = current_average_error[0,:].mean() exp11_average_error[1, jj] = current_average_error[1,:].mean() #import pdb; pdb.set_trace() #experiments_switch = np.ones(11,) errors_all = [exp1_average_error, exp2_average_error, exp3_average_error, exp4_average_error, exp5_average_error, exp6_average_error, exp7_average_error, exp8_average_error, exp9_average_error, exp10_average_error, exp11_average_error] #pickle.dump([errors_all, trial_number],open("results/P_I/feedback_errors_P_I_tmp.sav", 'wb')) # saving the results with only P [errors_all, trial_number] = pickle.load(open("results/P_I/feedback_errors_P_I_V8_50.sav", 'rb')) # loading the results with only P experiments_switch = np.zeros(11,) experiments_switch[0] =1 experiments_switch[3] =1 experiments_switch[7] =1 experiments_switch[9] =1 plot_comparison_figures_fcn(errors_all, experiments_switch, trial_number) #import pdb; pdb.set_trace()
65.647841
235
0.801417
3,107
19,760
4.690698
0.069842
0.078153
0.022231
0.062989
0.804446
0.741732
0.720392
0.717373
0.701866
0.696308
0
0.047189
0.09165
19,760
300
236
65.866667
0.764778
0.094433
0
0.443515
0
0
0.005109
0.003481
0
0
0
0
0
1
0
false
0
0.029289
0
0.029289
0.020921
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
a7eb527833529ec5d9540a0df0878bf3286e1e79
143
py
Python
midas_web_solution/menu/admin.py
jupiny/MIDASWebSolution
c6250bb7aeab815b3c759ae4f7b419da50c26b1c
[ "MIT" ]
null
null
null
midas_web_solution/menu/admin.py
jupiny/MIDASWebSolution
c6250bb7aeab815b3c759ae4f7b419da50c26b1c
[ "MIT" ]
null
null
null
midas_web_solution/menu/admin.py
jupiny/MIDASWebSolution
c6250bb7aeab815b3c759ae4f7b419da50c26b1c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Menu class MenuAdmin(admin.ModelAdmin): pass admin.site.register(Menu, MenuAdmin)
14.3
36
0.776224
19
143
5.842105
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.146853
143
9
37
15.888889
0.909836
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
c51277255498510c7788d0aabbaaeedc21c52724
371
py
Python
script.py
LNDHULK34/db8bot
cec34f4319b30754b273b6044e5c6eb010e6d6ff
[ "MIT" ]
null
null
null
script.py
LNDHULK34/db8bot
cec34f4319b30754b273b6044e5c6eb010e6d6ff
[ "MIT" ]
null
null
null
script.py
LNDHULK34/db8bot
cec34f4319b30754b273b6044e5c6eb010e6d6ff
[ "MIT" ]
null
null
null
import lib.scholarly as scholarly # searchstr = input() # print(searchstr) # print(next(scholarly.search_pubs_query("https://heinonline.org/hol-cgi-bin/get_pdf.cgi?handle=hein.journals/hlr130&section=49"))) # print(next(scholarly.search_pubs_query(searchstr))) print(next(scholarly.search_pubs_query('Perception of physical stability and center of mass of 3D objects')))
53
131
0.797844
54
371
5.351852
0.62963
0.093426
0.186851
0.249135
0.404844
0.404844
0.290657
0
0
0
0
0.017341
0.067385
371
7
132
53
0.817919
0.587601
0
0
0
0
0.436242
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
c5537a94467e96f9b8e7b0b42a11754fb8d9563a
17
py
Python
__init__.py
neonkitchen/beta-tcvae
c1903d923944a79c58b63b73a6060bf53b003443
[ "MIT" ]
null
null
null
__init__.py
neonkitchen/beta-tcvae
c1903d923944a79c58b63b73a6060bf53b003443
[ "MIT" ]
null
null
null
__init__.py
neonkitchen/beta-tcvae
c1903d923944a79c58b63b73a6060bf53b003443
[ "MIT" ]
null
null
null
import lib.dist
8.5
16
0.764706
3
17
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.928571
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
3d7fbc4cbbf991ea74df371a22127cbce3ff929d
137
py
Python
tests/test_import.py
GoodManWEN/bare_pypi_init_update
916b4d4d1238a1e7b60609a1103effb7e26963d2
[ "MIT" ]
null
null
null
tests/test_import.py
GoodManWEN/bare_pypi_init_update
916b4d4d1238a1e7b60609a1103effb7e26963d2
[ "MIT" ]
null
null
null
tests/test_import.py
GoodManWEN/bare_pypi_init_update
916b4d4d1238a1e7b60609a1103effb7e26963d2
[ "MIT" ]
null
null
null
import os , sys sys.path.append(os.getcwd()) import pytest from repo_name import * @pytest.mark.asyncio async def test_import(): ...
17.125
28
0.722628
21
137
4.619048
0.714286
0.247423
0
0
0
0
0
0
0
0
0
0
0.145985
137
8
29
17.125
0.82906
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
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
3da4516df467db0cf1190dffee4345fa1cd2cc2f
140
py
Python
Pedigrad_py/SegmentCategory/SegmentCategory.py
remytuyeras/pedigrad-library
14846b3ddeac87f010a976f03b1b6d5245efc73b
[ "MIT" ]
8
2019-03-08T21:43:15.000Z
2021-08-12T19:43:21.000Z
Pedigrad_py/SegmentCategory/SegmentCategory.py
remytuyeras/pedigrad-library
14846b3ddeac87f010a976f03b1b6d5245efc73b
[ "MIT" ]
null
null
null
Pedigrad_py/SegmentCategory/SegmentCategory.py
remytuyeras/pedigrad-library
14846b3ddeac87f010a976f03b1b6d5245efc73b
[ "MIT" ]
1
2022-02-24T10:01:37.000Z
2022-02-24T10:01:37.000Z
from cl_pro import PreOrder from cl_so import SegmentObject from cl_mos import MorphismOfSegments from cl_cos import CategoryOfSegments
15.555556
37
0.857143
20
140
5.8
0.55
0.206897
0
0
0
0
0
0
0
0
0
0
0.142857
140
8
38
17.5
0.966667
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
3dd2973cf9fe73122e008856cf206f860d61c06c
57
py
Python
2019/day_4/test_star_2.py
j-benson/advent-of-code
ec8162e769b45a54931c049daa4a0f492e773493
[ "MIT" ]
null
null
null
2019/day_4/test_star_2.py
j-benson/advent-of-code
ec8162e769b45a54931c049daa4a0f492e773493
[ "MIT" ]
null
null
null
2019/day_4/test_star_2.py
j-benson/advent-of-code
ec8162e769b45a54931c049daa4a0f492e773493
[ "MIT" ]
null
null
null
import star_2 print(star_2.contains_adjacent('224555'))
14.25
41
0.807018
9
57
4.777778
0.777778
0.232558
0
0
0
0
0
0
0
0
0
0.150943
0.070175
57
4
41
14.25
0.660377
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
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
0
1
0
6
9ab6c972a337a9a4794c1c1950e12141c510cb83
27,974
py
Python
code/python/FactSetEntity/v1/fds/sdk/FactSetEntity/api/entity_reference_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetEntity/v1/fds/sdk/FactSetEntity/api/entity_reference_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetEntity/v1/fds/sdk/FactSetEntity/api/entity_reference_api.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Entity API Using an entity centric data model, FactSet's Entity API provides access to FactSet's complete security and entity level symbology, comprehensive entity reference data, and all of the necessary relationships and connections to create a foundation that tightly correlates disparate sources of information to a master entity identifier. Use this API to quickly understand the full entity structure and related securities. # noqa: E501 The version of the OpenAPI document: 1.2.0 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.FactSetEntity.api_client import ApiClient, Endpoint as _Endpoint from fds.sdk.FactSetEntity.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from fds.sdk.FactSetEntity.exceptions import ApiException from fds.sdk.FactSetEntity.model.entity_reference_request import EntityReferenceRequest from fds.sdk.FactSetEntity.model.entity_reference_response import EntityReferenceResponse from fds.sdk.FactSetEntity.model.error_response import ErrorResponse class EntityReferenceApi(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_entity_references_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (EntityReferenceResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 415: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/factset-entity/v1/entity-references', 'operation_id': 'get_entity_references', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'ids', ], 'required': [ 'ids', ], 'nullable': [ ], 'enum': [ ], 'validation': [ 'ids', ] }, root_map={ 'validations': { ('ids',): { 'max_items': 3000, 'min_items': 1, }, }, 'allowed_values': { }, 'openapi_types': { 'ids': ([str],), }, 'attribute_map': { 'ids': 'ids', }, 'location_map': { 'ids': 'query', }, 'collection_format_map': { 'ids': 'csv', } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [], }, api_client=api_client ) self.post_entity_references_endpoint = _Endpoint( settings={ 'response_type': ( { 200: (EntityReferenceResponse,), 400: (ErrorResponse,), 401: (ErrorResponse,), 403: (ErrorResponse,), 415: (ErrorResponse,), 500: (ErrorResponse,), }, None ), 'auth': [ 'FactSetApiKey', 'FactSetOAuth2' ], 'endpoint_path': '/factset-entity/v1/entity-references', 'operation_id': 'post_entity_references', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'entity_reference_request', ], 'required': [ 'entity_reference_request', ], 'nullable': [ ], 'enum': [ ], 'validation': [ ] }, root_map={ 'validations': { }, 'allowed_values': { }, 'openapi_types': { 'entity_reference_request': (EntityReferenceRequest,), }, 'attribute_map': { }, 'location_map': { 'entity_reference_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ 'application/json' ], 'content_type': [ 'application/json' ] }, 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_entity_references( self, ids, **kwargs ) -> EntityReferenceResponse: """Returns an entity reference profiles for an individual entity # noqa: E501 Returns an Entity reference profile for the requested Entity Id(s). Data points include - Ultimate Parent Id, Credit Parent Id, Headquarters location details, Website URL, and Business Description. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: ids ([str]): The requested Market Identifier. Accepted input identifiers include Ticker-Exchange, Ticker-Regions, CUSIPs, ISINs, SEDOLs, or FactSet Permanent Ids, such as -R, -L, or -E.<p>**Max Ids Limit set to 3000 in a single request**</p> *<p>Make note, GET Method URL request lines are also limited to a total length of 8192 bytes (8KB). In cases where the service allows for thousands of ids, which may lead to exceeding this request line limit of 8KB, its advised for any requests with large request lines to be requested through the respective \\\"POST\\\" method.</p>* 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: EntityReferenceResponse Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['ids'] = \ ids return self.get_entity_references_endpoint.call_with_http_info(**kwargs) def get_entity_references_with_http_info( self, ids, **kwargs ) -> typing.Tuple[EntityReferenceResponse, int, typing.MutableMapping]: """Returns an entity reference profiles for an individual entity # noqa: E501 Returns an Entity reference profile for the requested Entity Id(s). Data points include - Ultimate Parent Id, Credit Parent Id, Headquarters location details, Website URL, and Business Description. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: ids ([str]): The requested Market Identifier. Accepted input identifiers include Ticker-Exchange, Ticker-Regions, CUSIPs, ISINs, SEDOLs, or FactSet Permanent Ids, such as -R, -L, or -E.<p>**Max Ids Limit set to 3000 in a single request**</p> *<p>Make note, GET Method URL request lines are also limited to a total length of 8192 bytes (8KB). In cases where the service allows for thousands of ids, which may lead to exceeding this request line limit of 8KB, its advised for any requests with large request lines to be requested through the respective \\\"POST\\\" method.</p>* 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: EntityReferenceResponse 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) kwargs['ids'] = \ ids return self.get_entity_references_endpoint.call_with_http_info(**kwargs) def get_entity_references_async( self, ids, **kwargs ) -> "ApplyResult[EntityReferenceResponse]": """Returns an entity reference profiles for an individual entity # noqa: E501 Returns an Entity reference profile for the requested Entity Id(s). Data points include - Ultimate Parent Id, Credit Parent Id, Headquarters location details, Website URL, and Business Description. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: ids ([str]): The requested Market Identifier. Accepted input identifiers include Ticker-Exchange, Ticker-Regions, CUSIPs, ISINs, SEDOLs, or FactSet Permanent Ids, such as -R, -L, or -E.<p>**Max Ids Limit set to 3000 in a single request**</p> *<p>Make note, GET Method URL request lines are also limited to a total length of 8192 bytes (8KB). In cases where the service allows for thousands of ids, which may lead to exceeding this request line limit of 8KB, its advised for any requests with large request lines to be requested through the respective \\\"POST\\\" method.</p>* 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[EntityReferenceResponse] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['ids'] = \ ids return self.get_entity_references_endpoint.call_with_http_info(**kwargs) def get_entity_references_with_http_info_async( self, ids, **kwargs ) -> "ApplyResult[typing.Tuple[EntityReferenceResponse, int, typing.MutableMapping]]": """Returns an entity reference profiles for an individual entity # noqa: E501 Returns an Entity reference profile for the requested Entity Id(s). Data points include - Ultimate Parent Id, Credit Parent Id, Headquarters location details, Website URL, and Business Description. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: ids ([str]): The requested Market Identifier. Accepted input identifiers include Ticker-Exchange, Ticker-Regions, CUSIPs, ISINs, SEDOLs, or FactSet Permanent Ids, such as -R, -L, or -E.<p>**Max Ids Limit set to 3000 in a single request**</p> *<p>Make note, GET Method URL request lines are also limited to a total length of 8192 bytes (8KB). In cases where the service allows for thousands of ids, which may lead to exceeding this request line limit of 8KB, its advised for any requests with large request lines to be requested through the respective \\\"POST\\\" method.</p>* 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[(EntityReferenceResponse, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['ids'] = \ ids return self.get_entity_references_endpoint.call_with_http_info(**kwargs) def post_entity_references( self, entity_reference_request, **kwargs ) -> EntityReferenceResponse: """Returns an entity reference data for a list of ids. # noqa: E501 Returns an entity reference object for the requested entity ids. Data points include - ultimate parent id, headquarters location details, credit parent id, website, and business description. # noqa: E501 This method makes a synchronous HTTP request. Returns the http data only Args: entity_reference_request (EntityReferenceRequest): Request Body to request a list of Entity Reference objects. 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: EntityReferenceResponse Response Object """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False) kwargs['entity_reference_request'] = \ entity_reference_request return self.post_entity_references_endpoint.call_with_http_info(**kwargs) def post_entity_references_with_http_info( self, entity_reference_request, **kwargs ) -> typing.Tuple[EntityReferenceResponse, int, typing.MutableMapping]: """Returns an entity reference data for a list of ids. # noqa: E501 Returns an entity reference object for the requested entity ids. Data points include - ultimate parent id, headquarters location details, credit parent id, website, and business description. # noqa: E501 This method makes a synchronous HTTP request. Returns http data, http status and headers Args: entity_reference_request (EntityReferenceRequest): Request Body to request a list of Entity Reference objects. 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: EntityReferenceResponse 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) kwargs['entity_reference_request'] = \ entity_reference_request return self.post_entity_references_endpoint.call_with_http_info(**kwargs) def post_entity_references_async( self, entity_reference_request, **kwargs ) -> "ApplyResult[EntityReferenceResponse]": """Returns an entity reference data for a list of ids. # noqa: E501 Returns an entity reference object for the requested entity ids. Data points include - ultimate parent id, headquarters location details, credit parent id, website, and business description. # noqa: E501 This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult Args: entity_reference_request (EntityReferenceRequest): Request Body to request a list of Entity Reference objects. 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[EntityReferenceResponse] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True) kwargs['entity_reference_request'] = \ entity_reference_request return self.post_entity_references_endpoint.call_with_http_info(**kwargs) def post_entity_references_with_http_info_async( self, entity_reference_request, **kwargs ) -> "ApplyResult[typing.Tuple[EntityReferenceResponse, int, typing.MutableMapping]]": """Returns an entity reference data for a list of ids. # noqa: E501 Returns an entity reference object for the requested entity ids. Data points include - ultimate parent id, headquarters location details, credit parent id, website, and business description. # noqa: E501 This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult Args: entity_reference_request (EntityReferenceRequest): Request Body to request a list of Entity Reference objects. 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[(EntityReferenceResponse, int, typing.Dict)] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True) kwargs['entity_reference_request'] = \ entity_reference_request return self.post_entity_references_endpoint.call_with_http_info(**kwargs)
50.861818
609
0.612605
3,226
27,974
5.180719
0.092064
0.025848
0.018668
0.022976
0.880452
0.864656
0.86346
0.847005
0.847005
0.847005
0
0.00825
0.324015
27,974
549
610
50.954463
0.875568
0.616251
0
0.609865
0
0
0.158745
0.073636
0
0
0
0
0
1
0.044843
false
0
0.044843
0
0.130045
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
9ae831dec7f026851789b00d7431813c28ad990b
10,214
py
Python
tests/functional/test_jsonrpc_specs.py
vladcalin/pymicroservice
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
[ "MIT" ]
2
2016-12-17T13:09:14.000Z
2016-12-31T18:38:57.000Z
tests/functional/test_jsonrpc_specs.py
vladcalin/pymicroservice
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
[ "MIT" ]
15
2016-11-27T13:28:25.000Z
2017-01-10T09:09:30.000Z
tests/functional/test_jsonrpc_specs.py
vladcalin/pymicroservice
325a49d17621b9d45ffd2b5eca6f0de284de8ba4
[ "MIT" ]
null
null
null
""" Contains tests that assert the compliance with the JSON RPC 2.0 specifications (http://www.jsonrpc.org/specification) """ import logging import simplejson as json import pytest from tests.services.service_jsonrpc_specs import ServiceJsonRpcSpecs @pytest.fixture def app(): service = ServiceJsonRpcSpecs() service._initial_setup() return service.make_tornado_app() @pytest.mark.gen_test def test_incomplete_json(http_client, base_url): body = json.dumps({"jsonrpc": "2.0", "method": "subtract"})[:15] result = yield http_client.fetch(base_url + "/api", method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["result"] is None assert response_body["jsonrpc"] == "2.0" assert response_body["error"] == {"code": -32700, "message": "Parse error"} # examples from http://www.jsonrpc.org/specification @pytest.mark.gen_test def test_rpc_call_with_positional_parameters(http_client, base_url): base_url += "/api" body = json.dumps({"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] == 19 assert response_body["id"] == 1 body = json.dumps({"jsonrpc": "2.0", "method": "subtract", "params": [23, 42], "id": 2}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] == -19 assert response_body["id"] == 2 @pytest.mark.gen_test def test_rpc_call_with_named_parameters(http_client, base_url): base_url += "/api" body = json.dumps( {"jsonrpc": "2.0", "method": "subtract", "params": {"a": 42, "b": 23}, "id": 3}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] == 19 assert response_body["id"] == 3 body = json.dumps( {"jsonrpc": "2.0", "method": "subtract", "params": {"b": 42, "a": 23}, "id": 4}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] == -19 assert response_body["id"] == 4 @pytest.mark.gen_test def test_a_notification(http_client, base_url): base_url += "/api" body = json.dumps({"jsonrpc": "2.0", "method": "update", "params": {"a": 23}}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] is None @pytest.mark.gen_test def test_a_notification_inexistent_method(http_client, base_url): base_url += "/api" body = json.dumps({"jsonrpc": "2.0", "method": "does_not_exist", "params": {"a": 23}}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] is None @pytest.mark.gen_test def test_rpc_call_of_non_existent_method(http_client, base_url): base_url += "/api" body = json.dumps({"jsonrpc": "2.0", "method": "does_not_exist", "params": {"a": 23}, "id": 1}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] == {"code": -32601, "message": "Method not found"} assert response_body["id"] == 1 @pytest.mark.gen_test def test_rpc_call_with_invalid_json(http_client, base_url): base_url += "/api" body = '{"jsonrpc": "2.0", "method": "foobar, "params": "bar", "baz]' result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] == {"code": -32700, "message": "Parse error"} @pytest.mark.gen_test def test_rpc_call_with_invalid_request_object(http_client, base_url): base_url += "/api" body = json.dumps({"jsonrpc": "2.0", "method": "subtract", "params": "foobar"}) result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] == {"code": -32600, "message": "Invalid Request"} assert response_body["id"] is None @pytest.mark.gen_test def test_batch_call_with_invalid_json(http_client, base_url): base_url += "/api" body = '[{"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"},{"jsonrpc": "2.0", "method"]' result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) print(response_body) assert isinstance(response_body, dict) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] == {"code": -32700, "message": "Parse error"} @pytest.mark.gen_test def test_batch_call_empty_array(http_client, base_url): base_url += "/api" body = "[]" result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert response_body["jsonrpc"] == "2.0" assert response_body["result"] is None assert response_body["error"] == {"code": -32600, "message": "Invalid Request"} assert response_body["id"] is None @pytest.mark.gen_test def test_batch_call_invalid_batch_but_not_empty(http_client, base_url): base_url += "/api" body = "[1]" result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert isinstance(response_body, list) assert len(response_body) == 1 assert response_body[0]["jsonrpc"] == "2.0" assert response_body[0]["id"] is None assert response_body[0]["result"] is None assert response_body[0]["error"] == {"code": -32600, "message": "Invalid Request"} @pytest.mark.gen_test def test_batch_call_invalid_batch(http_client, base_url): base_url += "/api" body = "[1,2,3]" result = yield http_client.fetch(base_url, method="POST", body=body, headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert isinstance(response_body, list) assert len(response_body) == 3 for i in range(3): assert response_body[i]["jsonrpc"] == "2.0" assert response_body[i]["id"] is None assert response_body[i]["result"] is None assert response_body[i]["error"] == {"code": -32600, "message": "Invalid Request"} @pytest.mark.gen_test def test_batch_big_batch(http_client, base_url): base_url += "/api" body = [ {"jsonrpc": "2.0", "method": "sum", "params": [1, 2, 4], "id": "1"}, # valid {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]}, # notification {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": "2"}, # valid {"foo": "boo"}, # invalid request {"jsonrpc": "2.0", "method": "foo.get", "params": {"name": "myself"}, "id": "5"}, # method not found {"jsonrpc": "2.0", "method": "get_data", "id": "9"} # valid no params ] expected_results = { "1": {"jsonrpc": "2.0", "result": 7, "id": "1", "error": None}, "2": {"jsonrpc": "2.0", "result": 19, "id": "2", "error": None}, "5": {"jsonrpc": "2.0", "error": {"code": -32601, "message": "Method not found"}, "id": "5", "result": None}, "9": {"jsonrpc": "2.0", "result": ["hello", 5], "id": "9", "error": None} } result = yield http_client.fetch(base_url, method="POST", body=json.dumps(body), headers={"content-type": "application/json"}) assert result.code == 200 response_body = json.loads(result.body) assert isinstance(response_body, list) print(response_body) for request in body: req_id = request.get("id") if not req_id: continue expected = expected_results.get(req_id) actual_response = [x for x in response_body if x["id"] == req_id][0] assert expected == actual_response
40.693227
108
0.618661
1,313
10,214
4.637471
0.102056
0.139924
0.138939
0.041879
0.837412
0.815241
0.78338
0.767942
0.7461
0.689112
0
0.030416
0.214607
10,214
250
109
40.856
0.728621
0.023791
0
0.621891
0
0.00995
0.179873
0
0
0
0
0
0.343284
1
0.069652
false
0
0.019901
0
0.094527
0.00995
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
9af6789ad7c7cb5f1a6419706656130eb737a52c
253
py
Python
server/constants.py
Shnitselon/torque-vs-code-extensions
c53fe0b777d86b90f0c8dd7a3e3dda531316267e
[ "Apache-2.0" ]
null
null
null
server/constants.py
Shnitselon/torque-vs-code-extensions
c53fe0b777d86b90f0c8dd7a3e3dda531316267e
[ "Apache-2.0" ]
null
null
null
server/constants.py
Shnitselon/torque-vs-code-extensions
c53fe0b777d86b90f0c8dd7a3e3dda531316267e
[ "Apache-2.0" ]
null
null
null
PREDEFINED_TORQUE_INPUTS = [ "$torque.environment.id", "$torque.environment.virtual_network_id", "$torque.environment.public_address", "$torque.repos.current.current", "$torque.repos.current.url", "$torque.repos.current.token" ]
28.111111
45
0.703557
27
253
6.407407
0.481481
0.294798
0.312139
0
0
0
0
0
0
0
0
0
0.134387
253
8
46
31.625
0.789954
0
0
0
0
0
0.6917
0.6917
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b1305f14fabdebf7d51b44aff261961d2d026403
147
py
Python
boa3_test/test_sc/neo_type_test/UInt256ConcatWithBytes.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/neo_type_test/UInt256ConcatWithBytes.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/neo_type_test/UInt256ConcatWithBytes.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public from boa3.builtin.type import UInt256 @public def uint256_method(arg: UInt256) -> bytes: return arg + b'123'
18.375
42
0.748299
22
147
4.954545
0.636364
0.146789
0.275229
0
0
0
0
0
0
0
0
0.113821
0.163265
147
7
43
21
0.772358
0
0
0
0
0
0.020408
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
6
b133299c6bd6fbaeea515e9c5dbf150eca645c44
115
py
Python
pyhiveapi/apyhiveapi/helper/__init__.py
ms32035/Pyhiveapi
c84389aa8118acd006a4b228e58b6a966e49e7dc
[ "MIT" ]
10
2020-10-11T20:50:36.000Z
2021-05-01T16:11:19.000Z
pyhiveapi/apyhiveapi/helper/__init__.py
ms32035/Pyhiveapi
c84389aa8118acd006a4b228e58b6a966e49e7dc
[ "MIT" ]
11
2020-10-27T19:34:12.000Z
2021-03-11T22:30:13.000Z
pyhiveapi/apyhiveapi/helper/__init__.py
ms32035/Pyhiveapi
c84389aa8118acd006a4b228e58b6a966e49e7dc
[ "MIT" ]
8
2020-10-05T18:55:41.000Z
2021-03-04T23:45:05.000Z
"""__init__.py file.""" from .hive_helper import HiveHelper # noqa: F401 from .logger import Logger # noqa: F401
28.75
49
0.721739
16
115
4.875
0.6875
0.205128
0
0
0
0
0
0
0
0
0
0.061856
0.156522
115
3
50
38.333333
0.742268
0.347826
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
499093152a32f66619204ce206d7fc86b9da4db3
173
py
Python
moveit_commander/src/moveit_commander/__init__.py
Bhavam/moveit
6b56cd68d76ae29d1ceb255d06be35543dd3f830
[ "BSD-3-Clause" ]
1,116
2016-07-29T06:39:49.000Z
2022-03-31T08:42:14.000Z
moveit_commander/src/moveit_commander/__init__.py
Bhavam/moveit
6b56cd68d76ae29d1ceb255d06be35543dd3f830
[ "BSD-3-Clause" ]
2,784
2016-07-29T15:19:38.000Z
2022-03-31T01:35:59.000Z
moveit_commander/src/moveit_commander/__init__.py
Bhavam/moveit
6b56cd68d76ae29d1ceb255d06be35543dd3f830
[ "BSD-3-Clause" ]
956
2016-07-30T17:03:44.000Z
2022-03-31T15:48:31.000Z
from .exception import * from .roscpp_initializer import * from .planning_scene_interface import * from .move_group import * from .robot import * from .interpreter import *
24.714286
39
0.791908
22
173
6.045455
0.545455
0.37594
0
0
0
0
0
0
0
0
0
0
0.138728
173
6
40
28.833333
0.892617
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
7713cc53f359831a64b7e090c4d9bd83f373aba5
207
py
Python
ssacc/utils/utils.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
1
2021-07-18T20:25:24.000Z
2021-07-18T20:25:24.000Z
ssacc/utils/utils.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
314
2020-08-29T18:58:58.000Z
2022-03-29T01:19:54.000Z
ssacc/utils/utils.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
null
null
null
"""Utility functions.""" from pathlib import Path def get_project_root() -> Path: """Consistently get the project root for any module in source tree.""" return Path(__file__).parent.parent.parent
23
74
0.719807
28
207
5.107143
0.75
0.153846
0
0
0
0
0
0
0
0
0
0
0.164251
207
8
75
25.875
0.82659
0.400966
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
773131c7c59b08517ed46d312140b62122e7da23
56,144
py
Python
osm_nbi/tests/test_descriptor_topics.py
CrossStream/etsi_nbi
9fe58b17a7d58efbf87df1ae119907b9071ecf2f
[ "Apache-2.0" ]
null
null
null
osm_nbi/tests/test_descriptor_topics.py
CrossStream/etsi_nbi
9fe58b17a7d58efbf87df1ae119907b9071ecf2f
[ "Apache-2.0" ]
null
null
null
osm_nbi/tests/test_descriptor_topics.py
CrossStream/etsi_nbi
9fe58b17a7d58efbf87df1ae119907b9071ecf2f
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- # 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. __author__ = "Pedro de la Cruz Ramos, pedro.delacruzramos@altran.com" __date__ = "2019-11-20" import unittest from unittest import TestCase from unittest.mock import Mock from uuid import uuid4 from http import HTTPStatus from copy import deepcopy from time import time from osm_common import dbbase, fsbase, msgbase from osm_nbi import authconn from osm_nbi.tests.test_pkg_descriptors import db_vnfds_text, db_nsds_text from osm_nbi.descriptor_topics import VnfdTopic, NsdTopic from osm_nbi.engine import EngineException from osm_common.dbbase import DbException import yaml test_pid = str(uuid4()) test_name = "test-user" fake_session = {"username": test_name, "project_id": (test_pid,), "method": None, "admin": True, "force": False, "public": False, "allow_show_user_project_role": True} db_vnfd_content = yaml.load(db_vnfds_text, Loader=yaml.Loader)[0] db_nsd_content = yaml.load(db_nsds_text, Loader=yaml.Loader)[0] def norm(str): """Normalize string for checking""" return ' '.join(str.strip().split()).lower() def compare_desc(tc, d1, d2, k): """ Compare two descriptors We need this function because some methods are adding/removing items to/from the descriptors before they are stored in the database, so the original and stored versions will differ What we check is that COMMON LEAF ITEMS are equal Lists of different length are not compared :param tc: Test Case wich provides context (in particular the assert* methods) :param d1,d2: Descriptors to be compared :param key/item being compared :return: Nothing """ if isinstance(d1, dict) and isinstance(d2, dict): for key in d1.keys(): if key in d2: compare_desc(tc, d1[key], d2[key], k+"[{}]".format(key)) elif isinstance(d1, list) and isinstance(d2, list) and len(d1) == len(d2): for i in range(len(d1)): compare_desc(tc, d1[i], d2[i], k+"[{}]".format(i)) else: tc.assertEqual(d1, d2, "Wrong descriptor content: {}".format(k)) class Test_VnfdTopic(TestCase): @classmethod def setUpClass(cls): cls.test_name = "test-vnfd-topic" @classmethod def tearDownClass(cls): pass def setUp(self): self.db = Mock(dbbase.DbBase()) self.fs = Mock(fsbase.FsBase()) self.msg = Mock(msgbase.MsgBase()) self.auth = Mock(authconn.Authconn(None, None, None)) self.topic = VnfdTopic(self.db, self.fs, self.msg, self.auth) def test_new_vnfd(self): did = db_vnfd_content["_id"] self.fs.get_params.return_value = {} self.fs.file_exists.return_value = False self.fs.file_open.side_effect = lambda path, mode: open("/tmp/" + str(uuid4()), "a+b") test_vnfd = deepcopy(db_vnfd_content) del test_vnfd["_id"] del test_vnfd["_admin"] with self.subTest(i=1, t='Normal Creation'): self.db.create.return_value = did rollback = [] did2, oid = self.topic.new(rollback, fake_session, {}) db_args = self.db.create.call_args[0] msg_args = self.msg.write.call_args[0] self.assertEqual(len(rollback), 1, "Wrong rollback length") self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "created", "Wrong message action") self.assertEqual(msg_args[2], {"_id": did}, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(did2, did, "Wrong DB VNFD id") self.assertIsNotNone(db_args[1]["_admin"]["created"], "Wrong creation time") self.assertEqual(db_args[1]["_admin"]["modified"], db_args[1]["_admin"]["created"], "Wrong modification time") self.assertEqual(db_args[1]["_admin"]["projects_read"], [test_pid], "Wrong read-only project list") self.assertEqual(db_args[1]["_admin"]["projects_write"], [test_pid], "Wrong read-write project list") tmp1 = test_vnfd["vdu"][0]["cloud-init-file"] tmp2 = test_vnfd["vnf-configuration"]["juju"] del test_vnfd["vdu"][0]["cloud-init-file"] del test_vnfd["vnf-configuration"]["juju"] try: self.db.get_one.side_effect = [{"_id": did, "_admin": db_vnfd_content["_admin"]}, None] self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) msg_args = self.msg.write.call_args[0] test_vnfd["_id"] = did self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "edited", "Wrong message action") self.assertEqual(msg_args[2], test_vnfd, "Wrong message content") db_args = self.db.get_one.mock_calls[0][1] self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1]["_id"], did, "Wrong DB VNFD id") db_args = self.db.replace.call_args[0] self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1], did, "Wrong DB VNFD id") admin = db_args[2]["_admin"] db_admin = db_vnfd_content["_admin"] self.assertEqual(admin["type"], "vnfd", "Wrong descriptor type") self.assertEqual(admin["created"], db_admin["created"], "Wrong creation time") self.assertGreater(admin["modified"], db_admin["created"], "Wrong modification time") self.assertEqual(admin["projects_read"], db_admin["projects_read"], "Wrong read-only project list") self.assertEqual(admin["projects_write"], db_admin["projects_write"], "Wrong read-write project list") self.assertEqual(admin["onboardingState"], "ONBOARDED", "Wrong onboarding state") self.assertEqual(admin["operationalState"], "ENABLED", "Wrong operational state") self.assertEqual(admin["usageState"], "NOT_IN_USE", "Wrong usage state") storage = admin["storage"] self.assertEqual(storage["folder"], did, "Wrong storage folder") self.assertEqual(storage["descriptor"], "package", "Wrong storage descriptor") compare_desc(self, test_vnfd, db_args[2], "VNFD") finally: test_vnfd["vdu"][0]["cloud-init-file"] = tmp1 test_vnfd["vnf-configuration"]["juju"] = tmp2 self.db.get_one.side_effect = lambda table, filter, fail_on_empty=None, fail_on_more=None:\ {"_id": did, "_admin": db_vnfd_content["_admin"]} with self.subTest(i=2, t='Check Pyangbind Validation: required properties'): tmp = test_vnfd["id"] del test_vnfd["id"] try: with self.assertRaises(EngineException, msg="Accepted VNFD with a missing required property") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: '{}'".format("id")), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["id"] = tmp with self.subTest(i=3, t='Check Pyangbind Validation: additional properties'): test_vnfd["extra-property"] = 0 try: with self.assertRaises(EngineException, msg="Accepted VNFD with an additional property") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: {} ({})" .format("json object contained a key that did not exist", "extra-property")), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["extra-property"] with self.subTest(i=4, t='Check Pyangbind Validation: property types'): tmp = test_vnfd["short-name"] test_vnfd["short-name"] = {"key": 0} try: with self.assertRaises(EngineException, msg="Accepted VNFD with a wrongly typed property") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: {} ({})" .format("json object contained a key that did not exist", "key")), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["short-name"] = tmp with self.subTest(i=5, t='Check Input Validation: cloud-init'): with self.assertRaises(EngineException, msg="Accepted non-existent cloud_init file") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.BAD_REQUEST, "Wrong HTTP status code") self.assertIn(norm("{} defined in vnf[id={}]:vdu[id={}] but not present in package" .format("cloud-init", test_vnfd["id"], test_vnfd["vdu"][0]["id"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=6, t='Check Input Validation: vnf-configuration[juju]'): del test_vnfd["vdu"][0]["cloud-init-file"] with self.assertRaises(EngineException, msg="Accepted non-existent charm in VNF configuration") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.BAD_REQUEST, "Wrong HTTP status code") self.assertIn(norm("{} defined in vnf[id={}] but not present in package".format("charm", test_vnfd["id"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=7, t='Check Input Validation: mgmt-interface'): del test_vnfd["vnf-configuration"]["juju"] tmp = test_vnfd["mgmt-interface"] del test_vnfd["mgmt-interface"] try: with self.assertRaises(EngineException, msg="Accepted VNFD without management interface") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("'{}' is a mandatory field and it is not defined".format("mgmt-interface")), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["mgmt-interface"] = tmp with self.subTest(i=8, t='Check Input Validation: mgmt-interface[cp]'): tmp = test_vnfd["mgmt-interface"]["cp"] test_vnfd["mgmt-interface"]["cp"] = "wrong-cp" try: with self.assertRaises(EngineException, msg="Accepted wrong management interface connection point") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("mgmt-interface:cp='{}' must match an existing connection-point" .format(test_vnfd["mgmt-interface"]["cp"])), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["mgmt-interface"]["cp"] = tmp with self.subTest(i=9, t='Check Input Validation: vdu[interface][external-connection-point-ref]'): tmp = test_vnfd["vdu"][0]["interface"][0]["external-connection-point-ref"] test_vnfd["vdu"][0]["interface"][0]["external-connection-point-ref"] = "wrong-cp" try: with self.assertRaises(EngineException, msg="Accepted wrong VDU interface external connection point reference") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("vdu[id='{}']:interface[name='{}']:external-connection-point-ref='{}'" " must match an existing connection-point" .format(test_vnfd["vdu"][0]["id"], test_vnfd["vdu"][0]["interface"][0]["name"], test_vnfd["vdu"][0]["interface"][0]["external-connection-point-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["vdu"][0]["interface"][0]["external-connection-point-ref"] = tmp with self.subTest(i=10, t='Check Input Validation: vdu[interface][internal-connection-point-ref]'): tmp = test_vnfd["vdu"][1]["interface"][0]["internal-connection-point-ref"] test_vnfd["vdu"][1]["interface"][0]["internal-connection-point-ref"] = "wrong-cp" try: with self.assertRaises(EngineException, msg="Accepted wrong VDU interface internal connection point reference") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("vdu[id='{}']:interface[name='{}']:internal-connection-point-ref='{}'" " must match an existing vdu:internal-connection-point" .format(test_vnfd["vdu"][1]["id"], test_vnfd["vdu"][1]["interface"][0]["name"], test_vnfd["vdu"][1]["interface"][0]["internal-connection-point-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["vdu"][1]["interface"][0]["internal-connection-point-ref"] = tmp with self.subTest(i=11, t='Check Input Validation: vdu[vdu-configuration][juju]'): test_vnfd["vdu"][0]["vdu-configuration"] = {"juju": {"charm": "wrong-charm"}} try: with self.assertRaises(EngineException, msg="Accepted non-existent charm in VDU configuration") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.BAD_REQUEST, "Wrong HTTP status code") self.assertIn(norm("{} defined in vnf[id={}]:vdu[id={}] but not present in package" .format("charm", test_vnfd["id"], test_vnfd["vdu"][0]["id"])), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["vdu"][0]["vdu-configuration"] with self.subTest(i=12, t='Check Input Validation: Duplicated VLD name'): test_vnfd["internal-vld"].append(deepcopy(test_vnfd["internal-vld"][0])) test_vnfd["internal-vld"][1]["id"] = "wrong-internal-vld" try: with self.assertRaises(EngineException, msg="Accepted duplicated VLD name") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Duplicated VLD name '{}' in vnfd[id={}]:internal-vld[id={}]" .format(test_vnfd["internal-vld"][1]["name"], test_vnfd["id"], test_vnfd["internal-vld"][1]["id"])), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["internal-vld"][1] with self.subTest(i=13, t='Check Input Validation: internal-vld[internal-connection-point][id-ref])'): tmp = test_vnfd["internal-vld"][0]["internal-connection-point"][0]["id-ref"] test_vnfd["internal-vld"][0]["internal-connection-point"][0]["id-ref"] = "wrong-icp-id-ref" try: with self.assertRaises(EngineException, msg="Accepted non-existent internal VLD ICP id-ref") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("internal-vld[id='{}']:internal-connection-point='{}' must match an existing " "vdu:internal-connection-point" .format(test_vnfd["internal-vld"][0]["id"], test_vnfd["internal-vld"][0]["internal-connection-point"][0]["id-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["internal-vld"][0]["internal-connection-point"][0]["id-ref"] = tmp with self.subTest(i=14, t='Check Input Validation: internal-vld[ip-profile-ref])'): test_vnfd["ip-profiles"] = [{"name": "fake-ip-profile-ref"}] test_vnfd["internal-vld"][0]["ip-profile-ref"] = "wrong-ip-profile-ref" try: with self.assertRaises(EngineException, msg="Accepted non-existent IP Profile Ref") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("internal-vld[id='{}']:ip-profile-ref='{}' does not exist" .format(test_vnfd["internal-vld"][0]["id"], test_vnfd["internal-vld"][0]["ip-profile-ref"])), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["ip-profiles"] del test_vnfd["internal-vld"][0]["ip-profile-ref"] with self.subTest(i=15, t='Check Input Validation: vdu[monitoring-param])'): test_vnfd["monitoring-param"] = [{"id": "fake-mp-id", "vdu-monitoring-param": { "vdu-monitoring-param-ref": "fake-vdu-mp-ref", "vdu-ref": "fake-vdu-ref"}}] test_vnfd["vdu"][0]["monitoring-param"] = [{"id": "wrong-vdu-mp-id"}] try: with self.assertRaises(EngineException, msg="Accepted non-existent VDU Monitorimg Param") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") mp = test_vnfd["monitoring-param"][0]["vdu-monitoring-param"] self.assertIn(norm("monitoring-param:vdu-monitoring-param:vdu-monitoring-param-ref='{}' not defined" " at vdu[id='{}'] or vdu does not exist" .format(mp["vdu-monitoring-param-ref"], mp["vdu-ref"])), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["monitoring-param"] del test_vnfd["vdu"][0]["monitoring-param"] with self.subTest(i=16, t='Check Input Validation: vdu[vdu-configuration][metrics]'): test_vnfd["monitoring-param"] = [{"id": "fake-mp-id", "vdu-metric": { "vdu-metric-name-ref": "fake-vdu-mp-ref", "vdu-ref": "fake-vdu-ref"}}] test_vnfd["vdu"][0]["vdu-configuration"] = {"metrics": [{"name": "wrong-vdu-mp-id"}]} try: with self.assertRaises(EngineException, msg="Accepted non-existent VDU Configuration Metric") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") mp = test_vnfd["monitoring-param"][0]["vdu-metric"] self.assertIn(norm("monitoring-param:vdu-metric:vdu-metric-name-ref='{}' not defined" " at vdu[id='{}'] or vdu does not exist" .format(mp["vdu-metric-name-ref"], mp["vdu-ref"])), norm(str(e.exception)), "Wrong exception text") finally: del test_vnfd["monitoring-param"] del test_vnfd["vdu"][0]["vdu-configuration"] with self.subTest(i=17, t='Check Input Validation: scaling-group-descriptor[scaling-policy][scaling-criteria]'): test_vnfd["monitoring-param"] = [{"id": "fake-mp-id"}] test_vnfd["scaling-group-descriptor"] = [{ "name": "fake-vnf-sg-name", "vdu": [{"vdu-id-ref": "wrong-vdu-id-ref"}], "scaling-policy": [{"name": "fake-vnf-sp-name", "scaling-criteria": [{ "name": "fake-vnf-sc-name", "vnf-monitoring-param-ref": "wrong-vnf-mp-id"}]}]}] with self.assertRaises(EngineException, msg="Accepted non-existent Scaling Group Policy Criteria") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") sg = test_vnfd["scaling-group-descriptor"][0] sc = sg["scaling-policy"][0]["scaling-criteria"][0] self.assertIn(norm("scaling-group-descriptor[name='{}']:scaling-criteria[name='{}']:" "vnf-monitoring-param-ref='{}' not defined in any monitoring-param" .format(sg["name"], sc["name"], sc["vnf-monitoring-param-ref"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=18, t='Check Input Validation: scaling-group-descriptor[vdu][vdu-id-ref]'): sc["vnf-monitoring-param-ref"] = "fake-mp-id" with self.assertRaises(EngineException, msg="Accepted non-existent Scaling Group VDU ID Reference") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("scaling-group-descriptor[name='{}']:vdu-id-ref={} does not match any vdu" .format(sg["name"], sg["vdu"][0]["vdu-id-ref"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=19, t='Check Input Validation: scaling-group-descriptor[scaling-config-action]'): tmp = test_vnfd["vnf-configuration"] del test_vnfd["vnf-configuration"] sg["vdu"][0]["vdu-id-ref"] = test_vnfd["vdu"][0]["id"] sg["scaling-config-action"] = [{"trigger": "pre-scale-in"}] try: with self.assertRaises(EngineException, msg="Accepted non-existent Scaling Group VDU ID Reference")\ as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("'vnf-configuration' not defined in the descriptor but it is referenced" " by scaling-group-descriptor[name='{}']:scaling-config-action" .format(sg["name"])), norm(str(e.exception)), "Wrong exception text") finally: test_vnfd["vnf-configuration"] = tmp with self.subTest(i=20, t='Check Input Validation: scaling-group-descriptor[scaling-config-action]' '[vnf-config-primitive-name-ref]'): sg["scaling-config-action"][0]["vnf-config-primitive-name-ref"] = "wrong-sca-prim-name" with self.assertRaises(EngineException, msg="Accepted non-existent Scaling Group VDU ID Reference") as e: self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("scaling-group-descriptor[name='{}']:scaling-config-action:" "vnf-config-primitive-name-ref='{}' does not match" " any vnf-configuration:config-primitive:name" .format(sg["name"], sg["scaling-config-action"][0]["vnf-config-primitive-name-ref"])), norm(str(e.exception)), "Wrong exception text") # del test_vnfd["monitoring-param"] # del test_vnfd["scaling-group-descriptor"] with self.subTest(i=21, t='Check Input Validation: everything right'): sg["scaling-config-action"][0]["vnf-config-primitive-name-ref"] = "touch" test_vnfd["id"] = "fake-vnfd-id" self.db.get_one.side_effect = [{"_id": did, "_admin": db_vnfd_content["_admin"]}, None] rc = self.topic.upload_content(fake_session, did, test_vnfd, {}, {"Content-Type": []}) self.assertTrue(rc, "Input Validation: Unexpected failure") return def test_edit_vnfd(self): did = db_vnfd_content["_id"] self.fs.file_exists.return_value = True self.fs.dir_ls.return_value = True with self.subTest(i=1, t='Normal Edition'): now = time() self.db.get_one.side_effect = [db_vnfd_content, None] data = {"id": "new-vnfd-id", "name": "new-vnfd-name"} self.topic.edit(fake_session, did, data) db_args = self.db.replace.call_args[0] msg_args = self.msg.write.call_args[0] data["_id"] = did self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "edited", "Wrong message action") self.assertEqual(msg_args[2], data, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1], did, "Wrong DB ID") self.assertEqual(db_args[2]["_admin"]["created"], db_vnfd_content["_admin"]["created"], "Wrong creation time") self.assertGreater(db_args[2]["_admin"]["modified"], now, "Wrong modification time") self.assertEqual(db_args[2]["_admin"]["projects_read"], db_vnfd_content["_admin"]["projects_read"], "Wrong read-only project list") self.assertEqual(db_args[2]["_admin"]["projects_write"], db_vnfd_content["_admin"]["projects_write"], "Wrong read-write project list") self.assertEqual(db_args[2]["id"], data["id"], "Wrong VNFD ID") self.assertEqual(db_args[2]["name"], data["name"], "Wrong VNFD Name") with self.subTest(i=2, t='Conflict on Edit'): data = {"id": "fake-vnfd-id", "name": "new-vnfd-name"} self.db.get_one.side_effect = [db_vnfd_content, {"_id": str(uuid4()), "id": data["id"]}] with self.assertRaises(EngineException, msg="Accepted existing VNFD ID") as e: self.topic.edit(fake_session, did, data) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn(norm("{} with id '{}' already exists for this project".format("vnfd", data["id"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=3, t='Check Envelope'): data = {"vnfd": {"id": "new-vnfd-id-1", "name": "new-vnfd-name"}} with self.assertRaises(EngineException, msg="Accepted VNFD with wrong envelope") as e: self.topic.edit(fake_session, did, data) self.assertEqual(e.exception.http_code, HTTPStatus.BAD_REQUEST, "Wrong HTTP status code") self.assertIn("'vnfd' must be a list of only one element", norm(str(e.exception)), "Wrong exception text") return def test_delete_vnfd(self): did = db_vnfd_content["_id"] self.db.get_one.return_value = db_vnfd_content with self.subTest(i=1, t='Normal Deletion'): self.db.get_list.return_value = [] self.db.del_one.return_value = {"deleted": 1} self.topic.delete(fake_session, did) db_args = self.db.del_one.call_args[0] msg_args = self.msg.write.call_args[0] self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "deleted", "Wrong message action") self.assertEqual(msg_args[2], {"_id": did}, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1]["_id"], did, "Wrong DB ID") self.assertEqual(db_args[1]["_admin.projects_read"], [[], ['ANY']], "Wrong DB filter") db_g1_args = self.db.get_one.call_args[0] self.assertEqual(db_g1_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_g1_args[1]["_id"], did, "Wrong DB VNFD ID") db_gl_calls = self.db.get_list.call_args_list self.assertEqual(db_gl_calls[0][0][0], "vnfrs", "Wrong DB topic") # self.assertEqual(db_gl_calls[0][0][1]["vnfd-id"], did, "Wrong DB VNFD ID") # Filter changed after call self.assertEqual(db_gl_calls[1][0][0], "nsds", "Wrong DB topic") self.assertEqual(db_gl_calls[1][0][1]["constituent-vnfd.ANYINDEX.vnfd-id-ref"], db_vnfd_content["id"], "Wrong DB NSD constituent-vnfd id-ref") db_s1_args = self.db.set_one.call_args self.assertEqual(db_s1_args[0][0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_s1_args[0][1]["_id"], did, "Wrong DB ID") self.assertIn(test_pid, db_s1_args[0][1]["_admin.projects_write.cont"], "Wrong DB filter") self.assertIsNone(db_s1_args[1]["update_dict"], "Wrong DB update dictionary") self.assertEqual(db_s1_args[1]["pull"]["_admin.projects_read"]["$in"], fake_session["project_id"], "Wrong DB pull dictionary") fs_del_calls = self.fs.file_delete.call_args_list self.assertEqual(fs_del_calls[0][0][0], did, "Wrong FS file id") self.assertEqual(fs_del_calls[1][0][0], did+'_', "Wrong FS folder id") with self.subTest(i=2, t='Conflict on Delete - VNFD in use by VNFR'): self.db.get_list.return_value = [{"_id": str(uuid4()), "name": "fake-vnfr"}] with self.assertRaises(EngineException, msg="Accepted VNFD in use by VNFR") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn("there is at least one vnf using this descriptor", norm(str(e.exception)), "Wrong exception text") with self.subTest(i=3, t='Conflict on Delete - VNFD in use by NSD'): self.db.get_list.side_effect = [[], [{"_id": str(uuid4()), "name": "fake-nsd"}]] with self.assertRaises(EngineException, msg="Accepted VNFD in use by NSD") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn("there is at least one nsd referencing this descriptor", norm(str(e.exception)), "Wrong exception text") with self.subTest(i=4, t='Non-existent VNFD'): excp_msg = "Not found any {} with filter='{}'".format("VNFD", {"_id": did}) self.db.get_one.side_effect = DbException(excp_msg, HTTPStatus.NOT_FOUND) with self.assertRaises(DbException, msg="Accepted non-existent VNFD ID") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.NOT_FOUND, "Wrong HTTP status code") self.assertIn(norm(excp_msg), norm(str(e.exception)), "Wrong exception text") return class Test_NsdTopic(TestCase): @classmethod def setUpClass(cls): cls.test_name = "test-nsd-topic" @classmethod def tearDownClass(cls): pass def setUp(self): self.db = Mock(dbbase.DbBase()) self.fs = Mock(fsbase.FsBase()) self.msg = Mock(msgbase.MsgBase()) self.auth = Mock(authconn.Authconn(None, None, None)) self.topic = NsdTopic(self.db, self.fs, self.msg, self.auth) def test_new_nsd(self): did = db_nsd_content["_id"] self.fs.get_params.return_value = {} self.fs.file_exists.return_value = False self.fs.file_open.side_effect = lambda path, mode: open("/tmp/" + str(uuid4()), "a+b") test_nsd = deepcopy(db_nsd_content) del test_nsd["_id"] del test_nsd["_admin"] with self.subTest(i=1, t='Normal Creation'): self.db.create.return_value = did rollback = [] did2, oid = self.topic.new(rollback, fake_session, {}) db_args = self.db.create.call_args[0] msg_args = self.msg.write.call_args[0] self.assertEqual(len(rollback), 1, "Wrong rollback length") self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "created", "Wrong message action") self.assertEqual(msg_args[2], {"_id": did}, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(did2, did, "Wrong DB NSD id") self.assertIsNotNone(db_args[1]["_admin"]["created"], "Wrong creation time") self.assertEqual(db_args[1]["_admin"]["modified"], db_args[1]["_admin"]["created"], "Wrong modification time") self.assertEqual(db_args[1]["_admin"]["projects_read"], [test_pid], "Wrong read-only project list") self.assertEqual(db_args[1]["_admin"]["projects_write"], [test_pid], "Wrong read-write project list") try: self.db.get_one.side_effect = [{"_id": did, "_admin": db_nsd_content["_admin"]}, None] self.db.get_list.return_value = [db_vnfd_content] self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) msg_args = self.msg.write.call_args[0] test_nsd["_id"] = did self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "edited", "Wrong message action") self.assertEqual(msg_args[2], test_nsd, "Wrong message content") db_args = self.db.get_one.mock_calls[0][1] self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1]["_id"], did, "Wrong DB NSD id") db_args = self.db.replace.call_args[0] self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1], did, "Wrong DB NSD id") admin = db_args[2]["_admin"] db_admin = db_nsd_content["_admin"] self.assertEqual(admin["created"], db_admin["created"], "Wrong creation time") self.assertGreater(admin["modified"], db_admin["created"], "Wrong modification time") self.assertEqual(admin["projects_read"], db_admin["projects_read"], "Wrong read-only project list") self.assertEqual(admin["projects_write"], db_admin["projects_write"], "Wrong read-write project list") self.assertEqual(admin["onboardingState"], "ONBOARDED", "Wrong onboarding state") self.assertEqual(admin["operationalState"], "ENABLED", "Wrong operational state") self.assertEqual(admin["usageState"], "NOT_IN_USE", "Wrong usage state") storage = admin["storage"] self.assertEqual(storage["folder"], did, "Wrong storage folder") self.assertEqual(storage["descriptor"], "package", "Wrong storage descriptor") compare_desc(self, test_nsd, db_args[2], "NSD") finally: pass self.db.get_one.side_effect = lambda table, filter, fail_on_empty=None, fail_on_more=None:\ {"_id": did, "_admin": db_nsd_content["_admin"]} with self.subTest(i=2, t='Check Pyangbind Validation: required properties'): tmp = test_nsd["id"] del test_nsd["id"] try: with self.assertRaises(EngineException, msg="Accepted NSD with a missing required property") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: '{}'".format("id")), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["id"] = tmp with self.subTest(i=3, t='Check Pyangbind Validation: additional properties'): test_nsd["extra-property"] = 0 try: with self.assertRaises(EngineException, msg="Accepted NSD with an additional property") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: {} ({})" .format("json object contained a key that did not exist", "extra-property")), norm(str(e.exception)), "Wrong exception text") finally: del test_nsd["extra-property"] with self.subTest(i=4, t='Check Pyangbind Validation: property types'): tmp = test_nsd["short-name"] test_nsd["short-name"] = {"key": 0} try: with self.assertRaises(EngineException, msg="Accepted NSD with a wrongly typed property") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error in pyangbind validation: {} ({})" .format("json object contained a key that did not exist", "key")), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["short-name"] = tmp with self.subTest(i=5, t='Check Input Validation: vld[mgmt-network+ip-profile]'): tmp = test_nsd["vld"][0]["vim-network-name"] del test_nsd["vld"][0]["vim-network-name"] test_nsd["vld"][0]["ip-profile-ref"] = "fake-ip-profile" try: with self.assertRaises(EngineException, msg="Accepted VLD with mgmt-network+ip-profile") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error at vld[id='{}']:ip-profile-ref" " You cannot set an ip-profile when mgmt-network is True" .format(test_nsd["vld"][0]["id"])), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["vld"][0]["vim-network-name"] = tmp del test_nsd["vld"][0]["ip-profile-ref"] with self.subTest(i=6, t='Check Input Validation: vld[vnfd-connection-point-ref][vnfd-id-ref]'): tmp = test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-id-ref"] test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-id-ref"] = "wrong-vnfd-id-ref" try: with self.assertRaises(EngineException, msg="Accepted VLD with wrong vnfd-connection-point-ref") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error at vld[id='{}']:vnfd-connection-point-ref[vnfd-id-ref='{}']" " does not match constituent-vnfd[member-vnf-index='{}']:vnfd-id-ref '{}'" .format(test_nsd["vld"][0]["id"], test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-id-ref"], test_nsd["constituent-vnfd"][0]["member-vnf-index"], test_nsd["constituent-vnfd"][0]["vnfd-id-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-id-ref"] = tmp with self.subTest(i=7, t='Check Input Validation: vld[vnfd-connection-point-ref][member-vnf-index-ref]'): tmp = test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["member-vnf-index-ref"] test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["member-vnf-index-ref"] = "wrong-member-vnf-index-ref" try: with self.assertRaises(EngineException, msg="Accepted VLD with wrong vnfd-connection-point-ref") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error at vld[id='{}']:vnfd-connection-point-ref[member-vnf-index-ref='{}']" " does not match any constituent-vnfd:member-vnf-index" .format(test_nsd["vld"][0]["id"], test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["member-vnf-index-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["member-vnf-index-ref"] = tmp with self.subTest(i=8, t='Check Input Validation: vnffgd[classifier][rsp-id-ref]'): test_nsd["vnffgd"] = [{"id": "fake-vnffgd-id", "rsp": [{"id": "fake-rsp-id"}], "classifier": [{"id": "fake-vnffgd-classifier-id", "rsp-id-ref": "wrong-rsp-id"}]}] try: with self.assertRaises(EngineException, msg="Accepted VNF FGD with wrong classifier rsp-id-ref") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error at vnffgd[id='{}']:classifier[id='{}']:rsp-id-ref '{}'" " does not match any rsp:id" .format(test_nsd["vnffgd"][0]["id"], test_nsd["vnffgd"][0]["classifier"][0]["id"], test_nsd["vnffgd"][0]["classifier"][0]["rsp-id-ref"])), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["vnffgd"][0]["classifier"][0]["rsp-id-ref"] = "fake-rsp-id" with self.subTest(i=9, t='Check Descriptor Dependencies: constituent-vnfd[vnfd-id-ref]'): self.db.get_one.side_effect = [{"_id": did, "_admin": db_nsd_content["_admin"]}, None] self.db.get_list.return_value = [] try: with self.assertRaises(EngineException, msg="Accepted wrong constituent VNFD ID reference") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn(norm("Descriptor error at 'constituent-vnfd':'vnfd-id-ref'='{}'" " references a non existing vnfd" .format(test_nsd["constituent-vnfd"][0]["vnfd-id-ref"])), norm(str(e.exception)), "Wrong exception text") finally: pass with self.subTest(i=10, t='Check Descriptor Dependencies: ' 'vld[vnfd-connection-point-ref][vnfd-connection-point-ref]'): tmp = test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-connection-point-ref"] test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-connection-point-ref"] = "wrong-vnfd-cp-ref" self.db.get_one.side_effect = [{"_id": did, "_admin": db_nsd_content["_admin"]}, None] self.db.get_list.return_value = [db_vnfd_content] try: with self.assertRaises(EngineException, msg="Accepted wrong VLD CP reference") as e: self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertEqual(e.exception.http_code, HTTPStatus.UNPROCESSABLE_ENTITY, "Wrong HTTP status code") self.assertIn(norm("Error at vld[id='{}']:vnfd-connection-point-ref[member-vnf-index-ref='{}']:" "vnfd-connection-point-ref='{}' references a non existing conection-point:name" " inside vnfd '{}'" .format(test_nsd["vld"][0]["id"], test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["member-vnf-index-ref"], test_nsd["vld"][0]["vnfd-connection-point-ref"][0] ["vnfd-connection-point-ref"], db_vnfd_content["id"])), norm(str(e.exception)), "Wrong exception text") finally: test_nsd["vld"][0]["vnfd-connection-point-ref"][0]["vnfd-connection-point-ref"] = tmp return with self.subTest(i=11, t='Check Input Validation: everything right'): test_nsd["id"] = "fake-nsd-id" self.db.get_one.side_effect = [{"_id": did, "_admin": db_nsd_content["_admin"]}, None] self.db.get_list.return_value = [db_vnfd_content] rc = self.topic.upload_content(fake_session, did, test_nsd, {}, {"Content-Type": []}) self.assertTrue(rc, "Input Validation: Unexpected failure") return def test_edit_nsd(self): did = db_nsd_content["_id"] self.fs.file_exists.return_value = True self.fs.dir_ls.return_value = True with self.subTest(i=1, t='Normal Edition'): now = time() self.db.get_one.side_effect = [db_nsd_content, None] self.db.get_list.return_value = [db_vnfd_content] data = {"id": "new-nsd-id", "name": "new-nsd-name"} self.topic.edit(fake_session, did, data) db_args = self.db.replace.call_args[0] msg_args = self.msg.write.call_args[0] data["_id"] = did self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "edited", "Wrong message action") self.assertEqual(msg_args[2], data, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1], did, "Wrong DB ID") self.assertEqual(db_args[2]["_admin"]["created"], db_nsd_content["_admin"]["created"], "Wrong creation time") self.assertGreater(db_args[2]["_admin"]["modified"], now, "Wrong modification time") self.assertEqual(db_args[2]["_admin"]["projects_read"], db_nsd_content["_admin"]["projects_read"], "Wrong read-only project list") self.assertEqual(db_args[2]["_admin"]["projects_write"], db_nsd_content["_admin"]["projects_write"], "Wrong read-write project list") self.assertEqual(db_args[2]["id"], data["id"], "Wrong NSD ID") self.assertEqual(db_args[2]["name"], data["name"], "Wrong NSD Name") with self.subTest(i=2, t='Conflict on Edit'): data = {"id": "fake-nsd-id", "name": "new-nsd-name"} self.db.get_one.side_effect = [db_nsd_content, {"_id": str(uuid4()), "id": data["id"]}] with self.assertRaises(EngineException, msg="Accepted existing NSD ID") as e: self.topic.edit(fake_session, did, data) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn(norm("{} with id '{}' already exists for this project".format("nsd", data["id"])), norm(str(e.exception)), "Wrong exception text") with self.subTest(i=3, t='Check Envelope'): data = {"nsd": {"id": "new-nsd-id", "name": "new-nsd-name"}} with self.assertRaises(EngineException, msg="Accepted NSD with wrong envelope") as e: self.topic.edit(fake_session, did, data) self.assertEqual(e.exception.http_code, HTTPStatus.BAD_REQUEST, "Wrong HTTP status code") self.assertIn("'nsd' must be a list of only one element", norm(str(e.exception)), "Wrong exception text") return def test_delete_nsd(self): did = db_nsd_content["_id"] self.db.get_one.return_value = db_nsd_content with self.subTest(i=1, t='Normal Deletion'): self.db.get_list.return_value = [] self.db.del_one.return_value = {"deleted": 1} self.topic.delete(fake_session, did) db_args = self.db.del_one.call_args[0] msg_args = self.msg.write.call_args[0] self.assertEqual(msg_args[0], self.topic.topic_msg, "Wrong message topic") self.assertEqual(msg_args[1], "deleted", "Wrong message action") self.assertEqual(msg_args[2], {"_id": did}, "Wrong message content") self.assertEqual(db_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_args[1]["_id"], did, "Wrong DB ID") self.assertEqual(db_args[1]["_admin.projects_read"], [[], ['ANY']], "Wrong DB filter") db_g1_args = self.db.get_one.call_args[0] self.assertEqual(db_g1_args[0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_g1_args[1]["_id"], did, "Wrong DB NSD ID") db_gl_calls = self.db.get_list.call_args_list self.assertEqual(db_gl_calls[0][0][0], "nsrs", "Wrong DB topic") # self.assertEqual(db_gl_calls[0][0][1]["nsd-id"], did, "Wrong DB NSD ID") # Filter changed after call self.assertEqual(db_gl_calls[1][0][0], "nsts", "Wrong DB topic") self.assertEqual(db_gl_calls[1][0][1]["netslice-subnet.ANYINDEX.nsd-ref"], db_nsd_content["id"], "Wrong DB NSD netslice-subnet nsd-ref") db_s1_args = self.db.set_one.call_args self.assertEqual(db_s1_args[0][0], self.topic.topic, "Wrong DB topic") self.assertEqual(db_s1_args[0][1]["_id"], did, "Wrong DB ID") self.assertIn(test_pid, db_s1_args[0][1]["_admin.projects_write.cont"], "Wrong DB filter") self.assertIsNone(db_s1_args[1]["update_dict"], "Wrong DB update dictionary") self.assertEqual(db_s1_args[1]["pull"]["_admin.projects_read"]["$in"], fake_session["project_id"], "Wrong DB pull dictionary") fs_del_calls = self.fs.file_delete.call_args_list self.assertEqual(fs_del_calls[0][0][0], did, "Wrong FS file id") self.assertEqual(fs_del_calls[1][0][0], did+'_', "Wrong FS folder id") return # TO REMOVE with self.subTest(i=2, t='Conflict on Delete - NSD in use by nsr'): self.db.get_list.return_value = [{"_id": str(uuid4()), "name": "fake-nsr"}] with self.assertRaises(EngineException, msg="Accepted NSD in use by NSR") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn("there is at least one ns using this descriptor", norm(str(e.exception)), "Wrong exception text") with self.subTest(i=3, t='Conflict on Delete - NSD in use by NST'): self.db.get_list.side_effect = [[], [{"_id": str(uuid4()), "name": "fake-nst"}]] with self.assertRaises(EngineException, msg="Accepted NSD in use by NST") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.CONFLICT, "Wrong HTTP status code") self.assertIn("there is at least one netslice template referencing this descriptor", norm(str(e.exception)), "Wrong exception text") with self.subTest(i=4, t='Non-existent NSD'): excp_msg = "Not found any {} with filter='{}'".format("NSD", {"_id": did}) self.db.get_one.side_effect = DbException(excp_msg, HTTPStatus.NOT_FOUND) with self.assertRaises(DbException, msg="Accepted non-existent NSD ID") as e: self.topic.delete(fake_session, did) self.assertEqual(e.exception.http_code, HTTPStatus.NOT_FOUND, "Wrong HTTP status code") self.assertIn(norm(excp_msg), norm(str(e.exception)), "Wrong exception text") return if __name__ == '__main__': unittest.main()
68.719706
120
0.585174
6,844
56,144
4.668469
0.065167
0.066195
0.028732
0.023035
0.874621
0.840819
0.81697
0.796125
0.766017
0.733592
0
0.009644
0.268648
56,144
816
121
68.803922
0.768491
0.024028
0
0.551451
0
0.003958
0.297193
0.061675
0
0
0
0
0.300792
1
0.01847
false
0.005277
0.01847
0
0.051451
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
91f94cb8899bc5a2c28e3da16e4835cedf777204
155
py
Python
mainapp/admin.py
DBarthe/chatbox
f0a467cb5c24594e1bad14cc0f2c94a91a57ff48
[ "MIT" ]
null
null
null
mainapp/admin.py
DBarthe/chatbox
f0a467cb5c24594e1bad14cc0f2c94a91a57ff48
[ "MIT" ]
null
null
null
mainapp/admin.py
DBarthe/chatbox
f0a467cb5c24594e1bad14cc0f2c94a91a57ff48
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Message class MessageAdmin(admin.ModelAdmin): pass admin.site.register(Message, MessageAdmin)
15.5
42
0.793548
19
155
6.473684
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.135484
155
9
43
17.222222
0.91791
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
6207946af6e25d6cfcbffae495c23d8e40decda2
29
py
Python
registry/signup/__init__.py
HTPhenotyping/registration
07d224e6bc537c20f9428e81bbac09bad012d64c
[ "Apache-2.0" ]
null
null
null
registry/signup/__init__.py
HTPhenotyping/registration
07d224e6bc537c20f9428e81bbac09bad012d64c
[ "Apache-2.0" ]
46
2020-05-11T14:20:41.000Z
2020-09-18T18:15:17.000Z
registry/signup/__init__.py
HTPhenotyping/registration
07d224e6bc537c20f9428e81bbac09bad012d64c
[ "Apache-2.0" ]
null
null
null
from .views import signup_bp
14.5
28
0.827586
5
29
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.92
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
6260edef6b6eefb3032d565eaed97623b61ccbcd
2,222
py
Python
tests/resources/test_wallets.py
danielcoker/embedpy
6af5a794a50e3b9b03efb03eadb0ba46dca2cd8d
[ "MIT" ]
null
null
null
tests/resources/test_wallets.py
danielcoker/embedpy
6af5a794a50e3b9b03efb03eadb0ba46dca2cd8d
[ "MIT" ]
1
2022-01-12T14:13:39.000Z
2022-01-12T14:35:43.000Z
tests/resources/test_wallets.py
danielcoker/embedpy
6af5a794a50e3b9b03efb03eadb0ba46dca2cd8d
[ "MIT" ]
2
2021-07-15T11:16:29.000Z
2022-03-28T01:07:31.000Z
from embed.resources.wallet import Wallet from unittest.mock import MagicMock, patch import json @patch("embed.common.APIResponse.get_essential_details") def test_can_get_wallets(mock_get_essential_details, api_session): wallet = Wallet(api_session) mock_get_essential_details.return_value = MagicMock() wallet.list_wallets() wallet.get_essential_details.assert_called_with( "GET", f"{api_session.base_url}/api/{api_session.api_version}/wallets", ) @patch("embed.common.APIResponse.get_essential_details") def test_can_get_single_wallet(mock_get_essential_details, api_session): wallet = Wallet(api_session) mock_get_essential_details.return_value = MagicMock() wallet.get_wallet("fake-id") wallet.get_essential_details.assert_called_with( "GET", f"{api_session.base_url}/api/{api_session.api_version}/wallets/fake-id", ) @patch("embed.common.APIResponse.get_essential_details") def test_can_create_wallet(mock_get_essential_details, api_session): wallet = Wallet(api_session) mock_get_essential_details.return_value = MagicMock() test_data = {"account_id": "fake-id", "currency_code": "NGN"} wallet.create_wallet( account_id=test_data.get("account_id"), currency_code=test_data.get("currency_code"), ) wallet.get_essential_details.assert_called_with( "POST", f"{api_session.base_url}/api/{api_session.api_version}/wallets", json.dumps(test_data), ) @patch("embed.common.APIResponse.get_essential_details") def test_can_transfer(mock_get_essential_details, api_session): wallet = Wallet(api_session) mock_get_essential_details.return_value = MagicMock() test_data = { "wallet_id": "fake-id", "product_code": "PRCD", "amount": "100000", } wallet.transfer( wallet_id=test_data.get("wallet_id"), product_code=test_data.get("product_code"), amount=test_data.get("amount"), ) wallet.get_essential_details.assert_called_with( "POST", f"{api_session.base_url}/api/{api_session.api_version}/wallets/fake-id/transfer", json.dumps({"product_code": "PRCD", "amount": "100000"}), )
35.269841
89
0.720972
288
2,222
5.173611
0.163194
0.128859
0.204027
0.12349
0.736913
0.700671
0.700671
0.700671
0.700671
0.700671
0
0.006414
0.157966
2,222
62
90
35.83871
0.789952
0
0
0.407407
0
0
0.281278
0.20207
0
0
0
0
0.074074
1
0.074074
false
0
0.055556
0
0.12963
0
0
0
0
null
0
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
627e1ccdf29677cc3b8227775fcbdd7a3441ce36
27
py
Python
code/model/__init__.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
74
2020-03-08T15:29:00.000Z
2022-03-05T14:57:33.000Z
code/model/__init__.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
19
2020-03-06T08:56:51.000Z
2022-03-27T05:07:35.000Z
code/model/__init__.py
wukailu/EDSR-PyTorch
5625cf83ce88050b68e649beb4155b32c38018fa
[ "MIT" ]
23
2020-03-20T08:19:55.000Z
2022-03-16T17:40:09.000Z
from .model_utils import *
13.5
26
0.777778
4
27
5
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.869565
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
6550cd169424597d8ffd211318ef2b3ff2d55504
14
py
Python
login.py
fmk-0309/git_ssh
c0122f61ca62143172b20646897d173bb6207da3
[ "MIT" ]
3
2018-09-27T07:27:13.000Z
2019-04-02T13:39:03.000Z
login.py
fmk-0309/git_ssh
c0122f61ca62143172b20646897d173bb6207da3
[ "MIT" ]
null
null
null
login.py
fmk-0309/git_ssh
c0122f61ca62143172b20646897d173bb6207da3
[ "MIT" ]
null
null
null
a = 10 b = 20
4.666667
6
0.428571
4
14
1.5
1
0
0
0
0
0
0
0
0
0
0
0.5
0.428571
14
2
7
7
0.25
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
65894989dfdbf1aceef7deb331666e5d3466ba07
47
py
Python
scan_models/niagara/__init__.py
ssdemajia/ids-backend
188af247befa44596f62c660c24b05474d1ba29f
[ "MIT" ]
1
2020-05-22T09:52:33.000Z
2020-05-22T09:52:33.000Z
scan_models/niagara/__init__.py
ssdemajia/ids-backend
188af247befa44596f62c660c24b05474d1ba29f
[ "MIT" ]
8
2021-03-18T21:22:40.000Z
2022-03-11T23:32:48.000Z
scan_models/niagara/__init__.py
ssdemajia/ids-backend
188af247befa44596f62c660c24b05474d1ba29f
[ "MIT" ]
null
null
null
from .scan import niagara_resolve, niagara_scan
47
47
0.87234
7
47
5.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.085106
47
1
47
47
0.906977
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
65a52c09452b8d62f53f896d08045672061495c1
44
py
Python
hs/__init__.py
Fawers/horriblesubs-hourly-notifier
b8c610d9fdd6494976e00e5a7fad746013669280
[ "MIT" ]
10
2019-01-14T10:24:53.000Z
2022-03-29T02:39:09.000Z
hs/__init__.py
Fawers/horriblesubs-hourly-notifier
b8c610d9fdd6494976e00e5a7fad746013669280
[ "MIT" ]
null
null
null
hs/__init__.py
Fawers/horriblesubs-hourly-notifier
b8c610d9fdd6494976e00e5a7fad746013669280
[ "MIT" ]
null
null
null
from . import rss, frontpage, links # noqa
22
43
0.704545
6
44
5.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.204545
44
1
44
44
0.885714
0.090909
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
65ddf8e65929af3f40881f87fcf1bbb545ce5239
49
py
Python
test.py
ellastyko/Widowmaker-1917-1922
2d9d2b8f273ea210997223193b6b9426ada3d738
[ "MIT" ]
null
null
null
test.py
ellastyko/Widowmaker-1917-1922
2d9d2b8f273ea210997223193b6b9426ada3d738
[ "MIT" ]
null
null
null
test.py
ellastyko/Widowmaker-1917-1922
2d9d2b8f273ea210997223193b6b9426ada3d738
[ "MIT" ]
null
null
null
from config import Config print(Config.BASEDIR)
12.25
25
0.816327
7
49
5.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.122449
49
3
26
16.333333
0.930233
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
65e3f279390edc9cb38d4856ec86ef2938ac77e6
12,157
py
Python
GoogleDorker.py
artech-git/GHDB-googleDorker
e238b9f11deee119ea493c80d5636ec74dd1776b
[ "MIT" ]
null
null
null
GoogleDorker.py
artech-git/GHDB-googleDorker
e238b9f11deee119ea493c80d5636ec74dd1776b
[ "MIT" ]
null
null
null
GoogleDorker.py
artech-git/GHDB-googleDorker
e238b9f11deee119ea493c80d5636ec74dd1776b
[ "MIT" ]
1
2020-08-17T00:10:37.000Z
2020-08-17T00:10:37.000Z
#!usr/bin/env python3 import requests import re import optparse import subprocess import time def get_arguments(): parser = optparse.OptionParser() parser.add_option("-u", "--url", dest="url", help="Target URL") parser.add_option('-m', '--manual', help="Enables manual mode", action="store_true") (option, arguments) = parser.parse_args() if not option.url: parser.error("[-] Please specify an URL, use --help for more info") return option options = get_arguments() url = options.url print("\n\n") subprocess.call(["chmod", "777", url + ".html"]) subprocess.call(["rm", url + ".html"]) subprocess.call(["clear"]) #--------------------------------------------------------------------------------------------------------------------------------- print(" ______ _ _____ _ ") print(" / _____) | | (____ \ | | ") print(" | / ___ ___ ___ ____ | | ____ _ \ \ ___ ____ | | _ ____ ____ ") print(" | | (___) / _ \ / _ \ / _ || | / _ )| | | | / _ \ / ___)| | / ) / _ ) / ___)") print(" | \____/|| |_| || |_| |( ( | || |( (/ / | |__/ / | |_| || | | |< ( ( (/ / | | ") print(" \_____/ \___/ \___/ \_|| ||_| \____)|_____/ \___/ |_| |_| \_) \____)|_| ") print(" (_____| ") print("\n\n") #-------------------------------------------------------------------------------------------------------------------------------- f = open(str(url) + ".html", "at") f.write( '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"> <title>Results from GoogleDorker by nerrorsec</title> </head> <body><br>') if options.manual: def manual(): global f print("[+]Registering data into the file.\n") time.sleep(2) f.write("<h2>Manual mode - Check the links manually.</h2>") f.write("<br>") f.write('<h2>Possible Directory listing</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+intitle:index.of&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Configuration files</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:xml+|+ext:conf+|+ext:cnf+|+ext:reg+|+ext:inf+|+ext:rdp+|+ext:cfg+|+ext:txt+|+ext:ora+|+ext:ini&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Database files</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:sql+|+ext:dbf+|+ext:mdb&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Log files</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:log&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Backup and Old files</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:bkf+|+ext:bkp+|+ext:bak+|+ext:old+|+ext:backup&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Login pages</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+inurl:login&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible SQL Errors</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+intext:%22sql+syntax+near%22+|+intext:%22syntax+error+has+occurred%22+|+intext:%22incorrect+syntax+near%22+|+intext:%22unexpected+end+of+SQL+command%22+|+intext:%22Warning:+mysql_connect()%22+|+intext:%22Warning:+mysql_query()%22+|+intext:%22Warning:+pg_connect()%22&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>Possible Publicly Exposed Documents</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:doc+|+ext:docx+|+ext:odt+|+ext:pdf+|+ext:rtf+|+ext:sxw+|+ext:psw+|+ext:ppt+|+ext:pptx+|+ext:pps+|+ext:csv&hl=en">Click Here</a>') f.write("<br>") f.write('<h2>phpinfo()</h2>') f.write('<a href="https://www.google.com/search?q=site:'+ url +'+ext:php+intitle:phpinfo+%22published+by+the+PHP+Group%22&hl=en">Click Here</a>') f.write("<br>") f.close() print("File successfully created.\n") manual() else: def process_google(): global f print("Dorking via Google") print("\n") f.write("<h1>Results from Google</h1>") f.write("<br>") print ("[#]Checking for Directory listing vulnerabilities") requesturl = 'https://www.google.com/search?q=site:'+ url +'+intitle:index.of&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Directory listing</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for Configuration files exposed") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:xml+|+ext:conf+|+ext:cnf+|+ext:reg+|+ext:inf+|+ext:rdp+|+ext:cfg+|+ext:txt+|+ext:ora+|+ext:ini&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Configuration files</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for Database files exposed") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:sql+|+ext:dbf+|+ext:mdb&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Database files</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for Log files exposed") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:log&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Log files</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for Backup and old files") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:bkf+|+ext:bkp+|+ext:bak+|+ext:old+|+ext:backup&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Backup and Old files</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for Login pages") requesturl = 'https://www.google.com/search?q=site:'+ url +'+inurl:login&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Login pages</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print ("[#]Checking for SQL errors") requesturl = 'https://www.google.com/search?q=site:'+ url +'+intext:%22sql+syntax+near%22+|+intext:%22syntax+error+has+occurred%22+|+intext:%22incorrect+syntax+near%22+|+intext:%22unexpected+end+of+SQL+command%22+|+intext:%22Warning:+mysql_connect()%22+|+intext:%22Warning:+mysql_query()%22+|+intext:%22Warning:+pg_connect()%22&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible SQL Errors</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print("[#]Checking for Publicly exposed documents ") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:doc+|+ext:docx+|+ext:odt+|+ext:pdf+|+ext:rtf+|+ext:sxw+|+ext:psw+|+ext:ppt+|+ext:pptx+|+ext:pps+|+ext:csv&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>Possible Publicly Exposed Documents</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") print("[#]Checking for phpinfo() ") requesturl = 'https://www.google.com/search?q=site:'+ url +'+ext:php+intitle:phpinfo+%22published+by+the+PHP+Group%22&hl=en' response = requests.get(requesturl) notfound = re.search('\s-\sdid not match any documents.', response.text) captcha = re.search(',\ssolving the above CAPTCHA will let you continue\s', response.text) if notfound: print("[-]No results found\n") elif captcha: print("[-]Captcha triggered. Please try after some time.\n") else: print("[+]Registering data into the file.\n") f.write('<h2>phpinfo()</h2>') f.write('<a href="' + requesturl + '">Click Here</a>') f.write("<br>") f.close() process_google()
54.761261
364
0.537879
1,467
12,157
4.367417
0.134288
0.055252
0.024973
0.025285
0.862494
0.862494
0.858748
0.846262
0.844545
0.837678
0
0.01219
0.257712
12,157
221
365
55.00905
0.697806
0.022785
0
0.673267
0
0.074257
0.549502
0.125086
0
0
0
0
0
1
0.014851
false
0
0.024752
0
0.044554
0.242574
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
02c07dc9c7f18ffb84f402d85b98df384f7004f6
216
py
Python
tests/data/plugins_project/libs/multiple_plugin_files/plugins/handlers.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
6
2021-03-09T10:24:02.000Z
2022-01-16T03:52:11.000Z
tests/data/plugins_project/libs/multiple_plugin_files/plugins/handlers.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
1,319
2020-12-18T08:52:29.000Z
2022-03-31T18:17:32.000Z
tests/data/plugins_project/libs/multiple_plugin_files/plugins/handlers.py
inmanta/inmanta-core
ae2153d57f124d00ad1b58e6d4bc6818364be4a8
[ "Apache-2.0" ]
4
2021-03-03T15:36:50.000Z
2022-03-11T11:41:51.000Z
from inmanta.agent.handler import ResourceHandler, provider from inmanta_plugins.multiple_plugin_files.helpers import helper @provider("std::Directory", name="myhandler") class MyHandler(ResourceHandler): pass
27
64
0.819444
25
216
6.96
0.76
0.126437
0
0
0
0
0
0
0
0
0
0
0.092593
216
7
65
30.857143
0.887755
0
0
0
0
0
0.106481
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
02c33c0602a6a04145c3ecdff47775fcd5dfeafb
24,201
py
Python
src/parser/PyxellLexer.py
ThatXliner/Pyxell
72c58fd26fe1eded038ba5bf11c327c9b33cdd31
[ "MIT" ]
null
null
null
src/parser/PyxellLexer.py
ThatXliner/Pyxell
72c58fd26fe1eded038ba5bf11c327c9b33cdd31
[ "MIT" ]
null
null
null
src/parser/PyxellLexer.py
ThatXliner/Pyxell
72c58fd26fe1eded038ba5bf11c327c9b33cdd31
[ "MIT" ]
null
null
null
# Generated from Pyxell.g4 by ANTLR 4.9.1 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2S") buf.write("\u025d\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7") buf.write("\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r") buf.write("\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22\4\23") buf.write("\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30") buf.write("\4\31\t\31\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36") buf.write("\t\36\4\37\t\37\4 \t \4!\t!\4\"\t\"\4#\t#\4$\t$\4%\t%") buf.write("\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4,\t,\4-\t-\4.") buf.write("\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64") buf.write("\t\64\4\65\t\65\4\66\t\66\4\67\t\67\48\t8\49\t9\4:\t:") buf.write("\4;\t;\4<\t<\4=\t=\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\t") buf.write("C\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I\tI\4J\tJ\4K\tK\4L\t") buf.write("L\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT\4U\t") buf.write("U\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\3\2\3\2\3\3\3\3\3\4\3") buf.write("\4\3\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\6\3\6\3\6\3\7\3\7") buf.write("\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3\n\3\n\3") buf.write("\13\3\13\3\f\3\f\3\r\3\r\3\r\3\16\3\16\3\17\3\17\3\17") buf.write("\3\20\3\20\3\21\3\21\3\22\3\22\3\23\3\23\3\24\3\24\3\25") buf.write("\3\25\3\25\3\26\3\26\3\26\3\26\3\26\3\26\3\27\3\27\3\27") buf.write("\3\27\3\27\3\27\3\27\3\27\3\27\3\30\3\30\3\30\3\30\3\30") buf.write("\3\30\3\30\3\31\3\31\3\31\3\31\3\31\3\31\3\32\3\32\3\32") buf.write("\3\33\3\33\3\33\3\34\3\34\3\34\3\34\3\34\3\35\3\35\3\35") buf.write("\3\35\3\35\3\36\3\36\3\36\3\36\3\36\3\36\3\37\3\37\3\37") buf.write("\3\37\3\37\3\37\3 \3 \3 \3 \3 \3 \3!\3!\3!\3!\3\"\3\"") buf.write("\3\"\3#\3#\3#\3#\3$\3$\3$\3$\3$\3$\3$\3%\3%\3%\3%\3%\3") buf.write("%\3&\3&\3\'\3\'\3(\3(\3(\3(\3(\3)\3)\3*\3*\3+\3+\3+\3") buf.write("+\3,\3,\3,\3,\3,\3,\3,\3,\3,\3-\3-\3-\3-\3-\3-\3-\3-\3") buf.write("-\3-\3-\3-\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3.\3/\3/\3\60") buf.write("\3\60\3\61\3\61\3\62\3\62\3\63\3\63\3\64\3\64\3\65\3\65") buf.write("\3\65\3\66\3\66\3\66\3\67\3\67\3\67\38\38\38\39\39\39") buf.write("\3:\3:\3:\3;\3;\3;\3<\3<\3<\3<\3=\3=\3=\3>\3>\3>\3>\3") buf.write(">\3?\3?\3?\3?\3@\3@\3@\3A\3A\3A\3A\3A\3A\3A\3B\3B\3B\3") buf.write("B\3B\3C\3C\3C\3C\3C\3D\3D\3D\3D\3D\3D\3E\3E\3E\3E\3E\3") buf.write("F\3F\3F\3F\3F\3F\3G\3G\3G\3H\3H\7H\u01d1\nH\fH\16H\u01d4") buf.write("\13H\3I\3I\3I\3I\6I\u01da\nI\rI\16I\u01db\3J\3J\3J\3J") buf.write("\6J\u01e2\nJ\rJ\16J\u01e3\3K\3K\3K\3K\6K\u01ea\nK\rK\16") buf.write("K\u01eb\3L\3L\7L\u01f0\nL\fL\16L\u01f3\13L\3L\3L\6L\u01f7") buf.write("\nL\rL\16L\u01f8\3L\5L\u01fc\nL\3M\3M\7M\u0200\nM\fM\16") buf.write("M\u0203\13M\3M\3M\6M\u0207\nM\rM\16M\u0208\5M\u020b\n") buf.write("M\3M\3M\5M\u020f\nM\3M\6M\u0212\nM\rM\16M\u0213\3M\5M") buf.write("\u0217\nM\3N\3N\3N\3N\3N\5N\u021e\nN\5N\u0220\nN\3N\3") buf.write("N\3O\3O\3O\3O\3O\5O\u0229\nO\7O\u022b\nO\fO\16O\u022e") buf.write("\13O\3O\3O\3P\3P\7P\u0234\nP\fP\16P\u0237\13P\3Q\3Q\3") buf.write("R\3R\5R\u023d\nR\3S\3S\3T\3T\3U\3U\3V\3V\3V\6V\u0248\n") buf.write("V\rV\16V\u0249\5V\u024c\nV\3W\3W\3X\3X\3X\5X\u0253\nX") buf.write("\3Y\6Y\u0256\nY\rY\16Y\u0257\3Y\3Y\3Z\3Z\2\2[\3\3\5\4") buf.write("\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17") buf.write("\35\20\37\21!\22#\23%\24\'\25)\26+\27-\30/\31\61\32\63") buf.write("\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-") buf.write("Y.[/]\60_\61a\62c\63e\64g\65i\66k\67m8o9q:s;u<w=y>{?}") buf.write("@\177A\u0081B\u0083C\u0085D\u0087E\u0089F\u008bG\u008d") buf.write("H\u008fI\u0091J\u0093K\u0095L\u0097M\u0099N\u009bO\u009d") buf.write("P\u009fQ\u00a1\2\u00a3\2\u00a5\2\u00a7\2\u00a9\2\u00ab") buf.write("\2\u00ad\2\u00af\2\u00b1R\u00b3S\3\2\22\4\2GGgg\4\2--") buf.write("//\3\2))\4\2))^^\3\2^^\3\2$$\4\2$$^^\3\2\62;\3\2aa\4\2") buf.write("\62\63aa\4\2\629aa\6\2\62;CHaach\b\2^^cdhhppttvv\5\2\62") buf.write(";CHch\5\2C\\aac|\5\2\f\f\17\17\"\"\2\u026d\2\3\3\2\2\2") buf.write("\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r") buf.write("\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3") buf.write("\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2") buf.write("\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'") buf.write("\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2") buf.write("\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29") buf.write("\3\2\2\2\2;\3\2\2\2\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2") buf.write("C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I\3\2\2\2\2K\3\2\2\2") buf.write("\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2\2") buf.write("\2\2W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2") buf.write("\2\2\2a\3\2\2\2\2c\3\2\2\2\2e\3\2\2\2\2g\3\2\2\2\2i\3") buf.write("\2\2\2\2k\3\2\2\2\2m\3\2\2\2\2o\3\2\2\2\2q\3\2\2\2\2s") buf.write("\3\2\2\2\2u\3\2\2\2\2w\3\2\2\2\2y\3\2\2\2\2{\3\2\2\2\2") buf.write("}\3\2\2\2\2\177\3\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2") buf.write("\2\2\u0085\3\2\2\2\2\u0087\3\2\2\2\2\u0089\3\2\2\2\2\u008b") buf.write("\3\2\2\2\2\u008d\3\2\2\2\2\u008f\3\2\2\2\2\u0091\3\2\2") buf.write("\2\2\u0093\3\2\2\2\2\u0095\3\2\2\2\2\u0097\3\2\2\2\2\u0099") buf.write("\3\2\2\2\2\u009b\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2") buf.write("\2\2\u00b1\3\2\2\2\2\u00b3\3\2\2\2\3\u00b5\3\2\2\2\5\u00b7") buf.write("\3\2\2\2\7\u00b9\3\2\2\2\t\u00bb\3\2\2\2\13\u00bf\3\2") buf.write("\2\2\r\u00c6\3\2\2\2\17\u00cb\3\2\2\2\21\u00d1\3\2\2\2") buf.write("\23\u00d3\3\2\2\2\25\u00d5\3\2\2\2\27\u00d7\3\2\2\2\31") buf.write("\u00d9\3\2\2\2\33\u00dc\3\2\2\2\35\u00de\3\2\2\2\37\u00e1") buf.write("\3\2\2\2!\u00e3\3\2\2\2#\u00e5\3\2\2\2%\u00e7\3\2\2\2") buf.write("\'\u00e9\3\2\2\2)\u00eb\3\2\2\2+\u00ee\3\2\2\2-\u00f4") buf.write("\3\2\2\2/\u00fd\3\2\2\2\61\u0104\3\2\2\2\63\u010a\3\2") buf.write("\2\2\65\u010d\3\2\2\2\67\u0110\3\2\2\29\u0115\3\2\2\2") buf.write(";\u011a\3\2\2\2=\u0120\3\2\2\2?\u0126\3\2\2\2A\u012c\3") buf.write("\2\2\2C\u0130\3\2\2\2E\u0133\3\2\2\2G\u0137\3\2\2\2I\u013e") buf.write("\3\2\2\2K\u0144\3\2\2\2M\u0146\3\2\2\2O\u0148\3\2\2\2") buf.write("Q\u014d\3\2\2\2S\u014f\3\2\2\2U\u0151\3\2\2\2W\u0155\3") buf.write("\2\2\2Y\u015e\3\2\2\2[\u016a\3\2\2\2]\u0175\3\2\2\2_\u0177") buf.write("\3\2\2\2a\u0179\3\2\2\2c\u017b\3\2\2\2e\u017d\3\2\2\2") buf.write("g\u017f\3\2\2\2i\u0181\3\2\2\2k\u0184\3\2\2\2m\u0187\3") buf.write("\2\2\2o\u018a\3\2\2\2q\u018d\3\2\2\2s\u0190\3\2\2\2u\u0193") buf.write("\3\2\2\2w\u0196\3\2\2\2y\u019a\3\2\2\2{\u019d\3\2\2\2") buf.write("}\u01a2\3\2\2\2\177\u01a6\3\2\2\2\u0081\u01a9\3\2\2\2") buf.write("\u0083\u01b0\3\2\2\2\u0085\u01b5\3\2\2\2\u0087\u01ba\3") buf.write("\2\2\2\u0089\u01c0\3\2\2\2\u008b\u01c5\3\2\2\2\u008d\u01cb") buf.write("\3\2\2\2\u008f\u01ce\3\2\2\2\u0091\u01d5\3\2\2\2\u0093") buf.write("\u01dd\3\2\2\2\u0095\u01e5\3\2\2\2\u0097\u01ed\3\2\2\2") buf.write("\u0099\u01fd\3\2\2\2\u009b\u0218\3\2\2\2\u009d\u0223\3") buf.write("\2\2\2\u009f\u0231\3\2\2\2\u00a1\u0238\3\2\2\2\u00a3\u023c") buf.write("\3\2\2\2\u00a5\u023e\3\2\2\2\u00a7\u0240\3\2\2\2\u00a9") buf.write("\u0242\3\2\2\2\u00ab\u024b\3\2\2\2\u00ad\u024d\3\2\2\2") buf.write("\u00af\u0252\3\2\2\2\u00b1\u0255\3\2\2\2\u00b3\u025b\3") buf.write("\2\2\2\u00b5\u00b6\7=\2\2\u00b6\4\3\2\2\2\u00b7\u00b8") buf.write("\7}\2\2\u00b8\6\3\2\2\2\u00b9\u00ba\7\177\2\2\u00ba\b") buf.write("\3\2\2\2\u00bb\u00bc\7w\2\2\u00bc\u00bd\7u\2\2\u00bd\u00be") buf.write("\7g\2\2\u00be\n\3\2\2\2\u00bf\u00c0\7j\2\2\u00c0\u00c1") buf.write("\7k\2\2\u00c1\u00c2\7f\2\2\u00c2\u00c3\7k\2\2\u00c3\u00c4") buf.write("\7p\2\2\u00c4\u00c5\7i\2\2\u00c5\f\3\2\2\2\u00c6\u00c7") buf.write("\7u\2\2\u00c7\u00c8\7m\2\2\u00c8\u00c9\7k\2\2\u00c9\u00ca") buf.write("\7r\2\2\u00ca\16\3\2\2\2\u00cb\u00cc\7r\2\2\u00cc\u00cd") buf.write("\7t\2\2\u00cd\u00ce\7k\2\2\u00ce\u00cf\7p\2\2\u00cf\u00d0") buf.write("\7v\2\2\u00d0\20\3\2\2\2\u00d1\u00d2\7.\2\2\u00d2\22\3") buf.write("\2\2\2\u00d3\u00d4\7<\2\2\u00d4\24\3\2\2\2\u00d5\u00d6") buf.write("\7?\2\2\u00d6\26\3\2\2\2\u00d7\u00d8\7`\2\2\u00d8\30\3") buf.write("\2\2\2\u00d9\u00da\7`\2\2\u00da\u00db\7`\2\2\u00db\32") buf.write("\3\2\2\2\u00dc\u00dd\7\61\2\2\u00dd\34\3\2\2\2\u00de\u00df") buf.write("\7\61\2\2\u00df\u00e0\7\61\2\2\u00e0\36\3\2\2\2\u00e1") buf.write("\u00e2\7\'\2\2\u00e2 \3\2\2\2\u00e3\u00e4\7,\2\2\u00e4") buf.write("\"\3\2\2\2\u00e5\u00e6\7(\2\2\u00e6$\3\2\2\2\u00e7\u00e8") buf.write("\7-\2\2\u00e8&\3\2\2\2\u00e9\u00ea\7/\2\2\u00ea(\3\2\2") buf.write("\2\u00eb\u00ec\7A\2\2\u00ec\u00ed\7A\2\2\u00ed*\3\2\2") buf.write("\2\u00ee\u00ef\7d\2\2\u00ef\u00f0\7t\2\2\u00f0\u00f1\7") buf.write("g\2\2\u00f1\u00f2\7c\2\2\u00f2\u00f3\7m\2\2\u00f3,\3\2") buf.write("\2\2\u00f4\u00f5\7e\2\2\u00f5\u00f6\7q\2\2\u00f6\u00f7") buf.write("\7p\2\2\u00f7\u00f8\7v\2\2\u00f8\u00f9\7k\2\2\u00f9\u00fa") buf.write("\7p\2\2\u00fa\u00fb\7w\2\2\u00fb\u00fc\7g\2\2\u00fc.\3") buf.write("\2\2\2\u00fd\u00fe\7t\2\2\u00fe\u00ff\7g\2\2\u00ff\u0100") buf.write("\7v\2\2\u0100\u0101\7w\2\2\u0101\u0102\7t\2\2\u0102\u0103") buf.write("\7p\2\2\u0103\60\3\2\2\2\u0104\u0105\7{\2\2\u0105\u0106") buf.write("\7k\2\2\u0106\u0107\7g\2\2\u0107\u0108\7n\2\2\u0108\u0109") buf.write("\7f\2\2\u0109\62\3\2\2\2\u010a\u010b\7k\2\2\u010b\u010c") buf.write("\7h\2\2\u010c\64\3\2\2\2\u010d\u010e\7f\2\2\u010e\u010f") buf.write("\7q\2\2\u010f\66\3\2\2\2\u0110\u0111\7g\2\2\u0111\u0112") buf.write("\7n\2\2\u0112\u0113\7k\2\2\u0113\u0114\7h\2\2\u01148\3") buf.write("\2\2\2\u0115\u0116\7g\2\2\u0116\u0117\7n\2\2\u0117\u0118") buf.write("\7u\2\2\u0118\u0119\7g\2\2\u0119:\3\2\2\2\u011a\u011b") buf.write("\7y\2\2\u011b\u011c\7j\2\2\u011c\u011d\7k\2\2\u011d\u011e") buf.write("\7n\2\2\u011e\u011f\7g\2\2\u011f<\3\2\2\2\u0120\u0121") buf.write("\7n\2\2\u0121\u0122\7c\2\2\u0122\u0123\7d\2\2\u0123\u0124") buf.write("\7g\2\2\u0124\u0125\7n\2\2\u0125>\3\2\2\2\u0126\u0127") buf.write("\7w\2\2\u0127\u0128\7p\2\2\u0128\u0129\7v\2\2\u0129\u012a") buf.write("\7k\2\2\u012a\u012b\7n\2\2\u012b@\3\2\2\2\u012c\u012d") buf.write("\7h\2\2\u012d\u012e\7q\2\2\u012e\u012f\7t\2\2\u012fB\3") buf.write("\2\2\2\u0130\u0131\7k\2\2\u0131\u0132\7p\2\2\u0132D\3") buf.write("\2\2\2\u0133\u0134\7f\2\2\u0134\u0135\7g\2\2\u0135\u0136") buf.write("\7h\2\2\u0136F\3\2\2\2\u0137\u0138\7g\2\2\u0138\u0139") buf.write("\7z\2\2\u0139\u013a\7v\2\2\u013a\u013b\7g\2\2\u013b\u013c") buf.write("\7t\2\2\u013c\u013d\7p\2\2\u013dH\3\2\2\2\u013e\u013f") buf.write("\7e\2\2\u013f\u0140\7n\2\2\u0140\u0141\7c\2\2\u0141\u0142") buf.write("\7u\2\2\u0142\u0143\7u\2\2\u0143J\3\2\2\2\u0144\u0145") buf.write("\7*\2\2\u0145L\3\2\2\2\u0146\u0147\7+\2\2\u0147N\3\2\2") buf.write("\2\u0148\u0149\7h\2\2\u0149\u014a\7w\2\2\u014a\u014b\7") buf.write("p\2\2\u014b\u014c\7e\2\2\u014cP\3\2\2\2\u014d\u014e\7") buf.write(">\2\2\u014eR\3\2\2\2\u014f\u0150\7@\2\2\u0150T\3\2\2\2") buf.write("\u0151\u0152\7\60\2\2\u0152\u0153\7\60\2\2\u0153\u0154") buf.write("\7\60\2\2\u0154V\3\2\2\2\u0155\u0156\7c\2\2\u0156\u0157") buf.write("\7d\2\2\u0157\u0158\7u\2\2\u0158\u0159\7v\2\2\u0159\u015a") buf.write("\7t\2\2\u015a\u015b\7c\2\2\u015b\u015c\7e\2\2\u015c\u015d") buf.write("\7v\2\2\u015dX\3\2\2\2\u015e\u015f\7e\2\2\u015f\u0160") buf.write("\7q\2\2\u0160\u0161\7p\2\2\u0161\u0162\7u\2\2\u0162\u0163") buf.write("\7v\2\2\u0163\u0164\7t\2\2\u0164\u0165\7w\2\2\u0165\u0166") buf.write("\7e\2\2\u0166\u0167\7v\2\2\u0167\u0168\7q\2\2\u0168\u0169") buf.write("\7t\2\2\u0169Z\3\2\2\2\u016a\u016b\7f\2\2\u016b\u016c") buf.write("\7g\2\2\u016c\u016d\7u\2\2\u016d\u016e\7v\2\2\u016e\u016f") buf.write("\7t\2\2\u016f\u0170\7w\2\2\u0170\u0171\7e\2\2\u0171\u0172") buf.write("\7v\2\2\u0172\u0173\7q\2\2\u0173\u0174\7t\2\2\u0174\\") buf.write("\3\2\2\2\u0175\u0176\7]\2\2\u0176^\3\2\2\2\u0177\u0178") buf.write("\7_\2\2\u0178`\3\2\2\2\u0179\u017a\7A\2\2\u017ab\3\2\2") buf.write("\2\u017b\u017c\7\60\2\2\u017cd\3\2\2\2\u017d\u017e\7B") buf.write("\2\2\u017ef\3\2\2\2\u017f\u0180\7#\2\2\u0180h\3\2\2\2") buf.write("\u0181\u0182\7\'\2\2\u0182\u0183\7\'\2\2\u0183j\3\2\2") buf.write("\2\u0184\u0185\7\60\2\2\u0185\u0186\7\60\2\2\u0186l\3") buf.write("\2\2\2\u0187\u0188\7d\2\2\u0188\u0189\7{\2\2\u0189n\3") buf.write("\2\2\2\u018a\u018b\7?\2\2\u018b\u018c\7?\2\2\u018cp\3") buf.write("\2\2\2\u018d\u018e\7#\2\2\u018e\u018f\7?\2\2\u018fr\3") buf.write("\2\2\2\u0190\u0191\7>\2\2\u0191\u0192\7?\2\2\u0192t\3") buf.write("\2\2\2\u0193\u0194\7@\2\2\u0194\u0195\7?\2\2\u0195v\3") buf.write("\2\2\2\u0196\u0197\7p\2\2\u0197\u0198\7q\2\2\u0198\u0199") buf.write("\7v\2\2\u0199x\3\2\2\2\u019a\u019b\7k\2\2\u019b\u019c") buf.write("\7u\2\2\u019cz\3\2\2\2\u019d\u019e\7p\2\2\u019e\u019f") buf.write("\7w\2\2\u019f\u01a0\7n\2\2\u01a0\u01a1\7n\2\2\u01a1|\3") buf.write("\2\2\2\u01a2\u01a3\7c\2\2\u01a3\u01a4\7p\2\2\u01a4\u01a5") buf.write("\7f\2\2\u01a5~\3\2\2\2\u01a6\u01a7\7q\2\2\u01a7\u01a8") buf.write("\7t\2\2\u01a8\u0080\3\2\2\2\u01a9\u01aa\7n\2\2\u01aa\u01ab") buf.write("\7c\2\2\u01ab\u01ac\7o\2\2\u01ac\u01ad\7d\2\2\u01ad\u01ae") buf.write("\7f\2\2\u01ae\u01af\7c\2\2\u01af\u0082\3\2\2\2\u01b0\u01b1") buf.write("\7\60\2\2\u01b1\u01b2\7\60\2\2\u01b2\u01b3\7\60\2\2\u01b3") buf.write("\u01b4\7<\2\2\u01b4\u0084\3\2\2\2\u01b5\u01b6\7v\2\2\u01b6") buf.write("\u01b7\7t\2\2\u01b7\u01b8\7w\2\2\u01b8\u01b9\7g\2\2\u01b9") buf.write("\u0086\3\2\2\2\u01ba\u01bb\7h\2\2\u01bb\u01bc\7c\2\2\u01bc") buf.write("\u01bd\7n\2\2\u01bd\u01be\7u\2\2\u01be\u01bf\7g\2\2\u01bf") buf.write("\u0088\3\2\2\2\u01c0\u01c1\7v\2\2\u01c1\u01c2\7j\2\2\u01c2") buf.write("\u01c3\7k\2\2\u01c3\u01c4\7u\2\2\u01c4\u008a\3\2\2\2\u01c5") buf.write("\u01c6\7u\2\2\u01c6\u01c7\7w\2\2\u01c7\u01c8\7r\2\2\u01c8") buf.write("\u01c9\7g\2\2\u01c9\u01ca\7t\2\2\u01ca\u008c\3\2\2\2\u01cb") buf.write("\u01cc\7/\2\2\u01cc\u01cd\7@\2\2\u01cd\u008e\3\2\2\2\u01ce") buf.write("\u01d2\5\u00a1Q\2\u01cf\u01d1\5\u00a3R\2\u01d0\u01cf\3") buf.write("\2\2\2\u01d1\u01d4\3\2\2\2\u01d2\u01d0\3\2\2\2\u01d2\u01d3") buf.write("\3\2\2\2\u01d3\u0090\3\2\2\2\u01d4\u01d2\3\2\2\2\u01d5") buf.write("\u01d6\7\62\2\2\u01d6\u01d7\7d\2\2\u01d7\u01d9\3\2\2\2") buf.write("\u01d8\u01da\5\u00a5S\2\u01d9\u01d8\3\2\2\2\u01da\u01db") buf.write("\3\2\2\2\u01db\u01d9\3\2\2\2\u01db\u01dc\3\2\2\2\u01dc") buf.write("\u0092\3\2\2\2\u01dd\u01de\7\62\2\2\u01de\u01df\7q\2\2") buf.write("\u01df\u01e1\3\2\2\2\u01e0\u01e2\5\u00a7T\2\u01e1\u01e0") buf.write("\3\2\2\2\u01e2\u01e3\3\2\2\2\u01e3\u01e1\3\2\2\2\u01e3") buf.write("\u01e4\3\2\2\2\u01e4\u0094\3\2\2\2\u01e5\u01e6\7\62\2") buf.write("\2\u01e6\u01e7\7z\2\2\u01e7\u01e9\3\2\2\2\u01e8\u01ea") buf.write("\5\u00a9U\2\u01e9\u01e8\3\2\2\2\u01ea\u01eb\3\2\2\2\u01eb") buf.write("\u01e9\3\2\2\2\u01eb\u01ec\3\2\2\2\u01ec\u0096\3\2\2\2") buf.write("\u01ed\u01f1\5\u00a1Q\2\u01ee\u01f0\5\u00a3R\2\u01ef\u01ee") buf.write("\3\2\2\2\u01f0\u01f3\3\2\2\2\u01f1\u01ef\3\2\2\2\u01f1") buf.write("\u01f2\3\2\2\2\u01f2\u01fb\3\2\2\2\u01f3\u01f1\3\2\2\2") buf.write("\u01f4\u01f6\7\60\2\2\u01f5\u01f7\5\u00a3R\2\u01f6\u01f5") buf.write("\3\2\2\2\u01f7\u01f8\3\2\2\2\u01f8\u01f6\3\2\2\2\u01f8") buf.write("\u01f9\3\2\2\2\u01f9\u01fc\3\2\2\2\u01fa\u01fc\7t\2\2") buf.write("\u01fb\u01f4\3\2\2\2\u01fb\u01fa\3\2\2\2\u01fc\u0098\3") buf.write("\2\2\2\u01fd\u0201\5\u00a1Q\2\u01fe\u0200\5\u00a3R\2\u01ff") buf.write("\u01fe\3\2\2\2\u0200\u0203\3\2\2\2\u0201\u01ff\3\2\2\2") buf.write("\u0201\u0202\3\2\2\2\u0202\u020a\3\2\2\2\u0203\u0201\3") buf.write("\2\2\2\u0204\u0206\7\60\2\2\u0205\u0207\5\u00a3R\2\u0206") buf.write("\u0205\3\2\2\2\u0207\u0208\3\2\2\2\u0208\u0206\3\2\2\2") buf.write("\u0208\u0209\3\2\2\2\u0209\u020b\3\2\2\2\u020a\u0204\3") buf.write("\2\2\2\u020a\u020b\3\2\2\2\u020b\u0216\3\2\2\2\u020c\u020e") buf.write("\t\2\2\2\u020d\u020f\t\3\2\2\u020e\u020d\3\2\2\2\u020e") buf.write("\u020f\3\2\2\2\u020f\u0211\3\2\2\2\u0210\u0212\5\u00a3") buf.write("R\2\u0211\u0210\3\2\2\2\u0212\u0213\3\2\2\2\u0213\u0211") buf.write("\3\2\2\2\u0213\u0214\3\2\2\2\u0214\u0217\3\2\2\2\u0215") buf.write("\u0217\7h\2\2\u0216\u020c\3\2\2\2\u0216\u0215\3\2\2\2") buf.write("\u0217\u009a\3\2\2\2\u0218\u021f\t\4\2\2\u0219\u0220\n") buf.write("\5\2\2\u021a\u021d\t\6\2\2\u021b\u021e\t\4\2\2\u021c\u021e") buf.write("\5\u00abV\2\u021d\u021b\3\2\2\2\u021d\u021c\3\2\2\2\u021e") buf.write("\u0220\3\2\2\2\u021f\u0219\3\2\2\2\u021f\u021a\3\2\2\2") buf.write("\u0220\u0221\3\2\2\2\u0221\u0222\t\4\2\2\u0222\u009c\3") buf.write("\2\2\2\u0223\u022c\t\7\2\2\u0224\u022b\n\b\2\2\u0225\u0228") buf.write("\t\6\2\2\u0226\u0229\t\7\2\2\u0227\u0229\5\u00abV\2\u0228") buf.write("\u0226\3\2\2\2\u0228\u0227\3\2\2\2\u0229\u022b\3\2\2\2") buf.write("\u022a\u0224\3\2\2\2\u022a\u0225\3\2\2\2\u022b\u022e\3") buf.write("\2\2\2\u022c\u022a\3\2\2\2\u022c\u022d\3\2\2\2\u022d\u022f") buf.write("\3\2\2\2\u022e\u022c\3\2\2\2\u022f\u0230\t\7\2\2\u0230") buf.write("\u009e\3\2\2\2\u0231\u0235\5\u00adW\2\u0232\u0234\5\u00af") buf.write("X\2\u0233\u0232\3\2\2\2\u0234\u0237\3\2\2\2\u0235\u0233") buf.write("\3\2\2\2\u0235\u0236\3\2\2\2\u0236\u00a0\3\2\2\2\u0237") buf.write("\u0235\3\2\2\2\u0238\u0239\t\t\2\2\u0239\u00a2\3\2\2\2") buf.write("\u023a\u023d\5\u00a1Q\2\u023b\u023d\t\n\2\2\u023c\u023a") buf.write("\3\2\2\2\u023c\u023b\3\2\2\2\u023d\u00a4\3\2\2\2\u023e") buf.write("\u023f\t\13\2\2\u023f\u00a6\3\2\2\2\u0240\u0241\t\f\2") buf.write("\2\u0241\u00a8\3\2\2\2\u0242\u0243\t\r\2\2\u0243\u00aa") buf.write("\3\2\2\2\u0244\u024c\t\16\2\2\u0245\u0247\7z\2\2\u0246") buf.write("\u0248\t\17\2\2\u0247\u0246\3\2\2\2\u0248\u0249\3\2\2") buf.write("\2\u0249\u0247\3\2\2\2\u0249\u024a\3\2\2\2\u024a\u024c") buf.write("\3\2\2\2\u024b\u0244\3\2\2\2\u024b\u0245\3\2\2\2\u024c") buf.write("\u00ac\3\2\2\2\u024d\u024e\t\20\2\2\u024e\u00ae\3\2\2") buf.write("\2\u024f\u0253\5\u00adW\2\u0250\u0253\5\u00a1Q\2\u0251") buf.write("\u0253\t\4\2\2\u0252\u024f\3\2\2\2\u0252\u0250\3\2\2\2") buf.write("\u0252\u0251\3\2\2\2\u0253\u00b0\3\2\2\2\u0254\u0256\t") buf.write("\21\2\2\u0255\u0254\3\2\2\2\u0256\u0257\3\2\2\2\u0257") buf.write("\u0255\3\2\2\2\u0257\u0258\3\2\2\2\u0258\u0259\3\2\2\2") buf.write("\u0259\u025a\bY\2\2\u025a\u00b2\3\2\2\2\u025b\u025c\13") buf.write("\2\2\2\u025c\u00b4\3\2\2\2\33\2\u01d2\u01db\u01e3\u01eb") buf.write("\u01f1\u01f8\u01fb\u0201\u0208\u020a\u020e\u0213\u0216") buf.write("\u021d\u021f\u0228\u022a\u022c\u0235\u023c\u0249\u024b") buf.write("\u0252\u0257\3\b\2\2") return buf.getvalue() class PyxellLexer(Lexer): atn = ATNDeserializer().deserialize(serializedATN()) decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ] T__0 = 1 T__1 = 2 T__2 = 3 T__3 = 4 T__4 = 5 T__5 = 6 T__6 = 7 T__7 = 8 T__8 = 9 T__9 = 10 T__10 = 11 T__11 = 12 T__12 = 13 T__13 = 14 T__14 = 15 T__15 = 16 T__16 = 17 T__17 = 18 T__18 = 19 T__19 = 20 T__20 = 21 T__21 = 22 T__22 = 23 T__23 = 24 T__24 = 25 T__25 = 26 T__26 = 27 T__27 = 28 T__28 = 29 T__29 = 30 T__30 = 31 T__31 = 32 T__32 = 33 T__33 = 34 T__34 = 35 T__35 = 36 T__36 = 37 T__37 = 38 T__38 = 39 T__39 = 40 T__40 = 41 T__41 = 42 T__42 = 43 T__43 = 44 T__44 = 45 T__45 = 46 T__46 = 47 T__47 = 48 T__48 = 49 T__49 = 50 T__50 = 51 T__51 = 52 T__52 = 53 T__53 = 54 T__54 = 55 T__55 = 56 T__56 = 57 T__57 = 58 T__58 = 59 T__59 = 60 T__60 = 61 T__61 = 62 T__62 = 63 T__63 = 64 T__64 = 65 T__65 = 66 T__66 = 67 T__67 = 68 T__68 = 69 T__69 = 70 INT_DEC = 71 INT_BIN = 72 INT_OCT = 73 INT_HEX = 74 RAT = 75 FLOAT = 76 CHAR = 77 STRING = 78 ID = 79 WS = 80 ERR = 81 channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ] modeNames = [ "DEFAULT_MODE" ] literalNames = [ "<INVALID>", "';'", "'{'", "'}'", "'use'", "'hiding'", "'skip'", "'print'", "','", "':'", "'='", "'^'", "'^^'", "'/'", "'//'", "'%'", "'*'", "'&'", "'+'", "'-'", "'??'", "'break'", "'continue'", "'return'", "'yield'", "'if'", "'do'", "'elif'", "'else'", "'while'", "'label'", "'until'", "'for'", "'in'", "'def'", "'extern'", "'class'", "'('", "')'", "'func'", "'<'", "'>'", "'...'", "'abstract'", "'constructor'", "'destructor'", "'['", "']'", "'?'", "'.'", "'@'", "'!'", "'%%'", "'..'", "'by'", "'=='", "'!='", "'<='", "'>='", "'not'", "'is'", "'null'", "'and'", "'or'", "'lambda'", "'...:'", "'true'", "'false'", "'this'", "'super'", "'->'" ] symbolicNames = [ "<INVALID>", "INT_DEC", "INT_BIN", "INT_OCT", "INT_HEX", "RAT", "FLOAT", "CHAR", "STRING", "ID", "WS", "ERR" ] ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", "T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24", "T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32", "T__33", "T__34", "T__35", "T__36", "T__37", "T__38", "T__39", "T__40", "T__41", "T__42", "T__43", "T__44", "T__45", "T__46", "T__47", "T__48", "T__49", "T__50", "T__51", "T__52", "T__53", "T__54", "T__55", "T__56", "T__57", "T__58", "T__59", "T__60", "T__61", "T__62", "T__63", "T__64", "T__65", "T__66", "T__67", "T__68", "T__69", "INT_DEC", "INT_BIN", "INT_OCT", "INT_HEX", "RAT", "FLOAT", "CHAR", "STRING", "ID", "DIGIT", "NUMBER_DEC_CONT", "NUMBER_BIN_CONT", "NUMBER_OCT_CONT", "NUMBER_HEX_CONT", "ESCAPE_CHAR", "ID_START", "ID_CONT", "WS", "ERR" ] grammarFileName = "Pyxell.g4" def __init__(self, input=None, output:TextIO = sys.stdout): super().__init__(input, output) self.checkVersion("4.9.1") self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache()) self._actions = None self._predicates = None
58.883212
103
0.560555
5,517
24,201
2.400761
0.168751
0.146168
0.082673
0.087278
0.233447
0.139373
0.060778
0.052548
0.048773
0.047565
0
0.358413
0.15425
24,201
410
104
59.026829
0.288695
0.001612
0
0
1
0.479592
0.626749
0.58105
0
0
0
0
0
1
0.005102
false
0
0.010204
0
0.247449
0.002551
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
02e184776feb00f7f15454f39e42354325d8a0cd
196
py
Python
fabfile.py
ZimGreen/edbo-connector-py
2787c5a43af1229d93591b735cd14cebaf792c39
[ "MIT" ]
2
2017-08-05T17:20:58.000Z
2017-08-13T09:44:13.000Z
fabfile.py
ZimGreen/edbo-connector-py
2787c5a43af1229d93591b735cd14cebaf792c39
[ "MIT" ]
1
2017-12-14T05:00:56.000Z
2017-12-14T05:00:56.000Z
fabfile.py
EldarAliiev/python-edbo-connector
2787c5a43af1229d93591b735cd14cebaf792c39
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from fabric.api import run def publish(): """Publish package to PyPi repository""" run('python3 setup.py bdist_wheel sdist upload --sign')
19.6
59
0.663265
28
196
4.607143
0.928571
0
0
0
0
0
0
0
0
0
0
0.012422
0.178571
196
9
60
21.777778
0.78882
0.392857
0
0
0
0
0.428571
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
f3011e9cb2694b55cc81c37cc91b855f9ebdc747
134
py
Python
tests/test_init.py
dendisuhubdy/datamine_python
22ca2a580b3f6360cef9f6219a43bae935294353
[ "BSD-3-Clause" ]
null
null
null
tests/test_init.py
dendisuhubdy/datamine_python
22ca2a580b3f6360cef9f6219a43bae935294353
[ "BSD-3-Clause" ]
null
null
null
tests/test_init.py
dendisuhubdy/datamine_python
22ca2a580b3f6360cef9f6219a43bae935294353
[ "BSD-3-Clause" ]
null
null
null
import datamine def test_package_has_version(): assert hasattr(datamine, '__version__') assert len(datamine.__version__) > 0
22.333333
43
0.761194
16
134
5.6875
0.6875
0.285714
0
0
0
0
0
0
0
0
0
0.008772
0.149254
134
6
44
22.333333
0.789474
0
0
0
0
0
0.081481
0
0
0
0
0
0.5
1
0.25
true
0
0.25
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
6
b831a1d83c386ff35d888e82700fbc234a4bb809
1,044
py
Python
05_restapi_argumentParser/caculator.py
choisungwook/practice_flask
a2059d8d7c011e3d560f7bb042575a7ff080c235
[ "MIT" ]
null
null
null
05_restapi_argumentParser/caculator.py
choisungwook/practice_flask
a2059d8d7c011e3d560f7bb042575a7ff080c235
[ "MIT" ]
null
null
null
05_restapi_argumentParser/caculator.py
choisungwook/practice_flask
a2059d8d7c011e3d560f7bb042575a7ff080c235
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from flask import jsonify class Add(Resource): def get(self): parser = reqparse.RequestParser(bundle_errors=True) parser.add_argument('operand1', type=int, required=True, help='operand1 is required The detail error is{error_msg}') parser.add_argument('operand2', type=int, required=True, help='operand2 is required. The detail error is {error_msg}') args = parser.parse_args() operand1 = args['operand1'] operand2 = args['operand2'] return jsonify({'result': operand1+operand2}) class Sub(Resource): def get(self): parser = reqparse.RequestParser(bundle_errors=True) parser.add_argument('operand1', type=int, required=True, help='operand1 is required The detail error is{error_msg}') parser.add_argument('operand2', type=int, required=True, help='operand2 is required. The detail error is {error_msg}') args = parser.parse_args() operand1 = args['operand1'] operand2 = args['operand2'] return jsonify({'result': operand1 - operand2})
40.153846
122
0.727011
136
1,044
5.485294
0.25
0.048257
0.091153
0.101877
0.898123
0.898123
0.898123
0.898123
0.898123
0.898123
0
0.022523
0.149425
1,044
26
123
40.153846
0.817568
0
0
0.7
0
0
0.27177
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
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
b83b1add13f6271187ec9f7c8847f542ca329b3c
96
py
Python
venv/lib/python3.8/site-packages/numpy/f2py/common_rules.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/f2py/common_rules.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/f2py/common_rules.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/21/67/d1/41f865482ce20e7fb7846a08a481c643bc82f84682d162b1f58ad7b3a2
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.458333
0
96
1
96
96
0.4375
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
b843393ab79b4d575a1e1b2c1e57ea34cffb25ff
297
py
Python
tests/test_cos_matrix2.py
ffreemt/freemt-utils
25bf192033235bb783005795f8c0bcdd8a79610f
[ "MIT" ]
null
null
null
tests/test_cos_matrix2.py
ffreemt/freemt-utils
25bf192033235bb783005795f8c0bcdd8a79610f
[ "MIT" ]
null
null
null
tests/test_cos_matrix2.py
ffreemt/freemt-utils
25bf192033235bb783005795f8c0bcdd8a79610f
[ "MIT" ]
null
null
null
# from freemt_utils.make_url import make_url from freemt_utils import cos_matrix2 def test_cos_matrix2(): ''' test cos_matrix2. ''' assert cos_matrix2([[1, 1]], [[1, 1]])[0, 0] > 0.9 def test_cos_matrix2a(): ''' test cos_matrix2. ''' assert cos_matrix2([[1, 1]])[0, 0] > 0.9
19.8
54
0.632997
48
297
3.645833
0.3125
0.342857
0.24
0.228571
0.422857
0.422857
0.365714
0.365714
0
0
0
0.0875
0.191919
297
14
55
21.214286
0.641667
0.272727
0
0
0
0
0
0
0
0
0
0
0.4
1
0.4
true
0
0.2
0
0.6
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
1
0
0
0
1
0
0
6
b89454fc4303b4272285f2699649796ed1343439
36,716
py
Python
learning/tests/views/test_activity_views.py
dbcaturra/django-koala-azure
7b79b7484e3530513b97ed148333ba0778f38a3e
[ "MIT" ]
null
null
null
learning/tests/views/test_activity_views.py
dbcaturra/django-koala-azure
7b79b7484e3530513b97ed148333ba0778f38a3e
[ "MIT" ]
null
null
null
learning/tests/views/test_activity_views.py
dbcaturra/django-koala-azure
7b79b7484e3530513b97ed148333ba0778f38a3e
[ "MIT" ]
null
null
null
# # Copyright (C) 2019 Guillaume Bernard <guillaume.bernard@koala-lms.org> # Copyright (C) 2020 Raphaël Penault <raphael.penault@etudiant.univ-lr.fr> # Copyright (C) 2020 Nolwenn Machon <nolwenn.machon@etudiant.univ-lr.fr> # # This file is part of Koala LMS (Learning Management system) # Koala LMS is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # # We make an extensive use of the Django framework, https://www.djangoproject.com/ # import tempfile from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.test import TestCase, Client, override_settings from django.urls import reverse from learning.forms import BasicSearchForm from learning.models import Resource, ResourceAccess, ResourceReuse, Activity, ActivityAccess, ActivityReuse, Course, \ CourseActivity, Duration, Licences, ResourceType from learning.tests.views.helpers import ClientFactory from learning.tests.views.test_resource_views import get_temporary_file class ActivityViews(TestCase): def setUp(self): for initials in ["ws", "acd", "lt", "ed"]: setattr(self, initials, get_user_model().objects.create_user(username=initials, password="pwd")) self.anon_client = Client() self.ws_activity = Activity.objects.create( id=1, name="A sample activity", description="A sample description", access=ResourceAccess.PUBLIC.name, reuse=ResourceReuse.NO_RESTRICTION.name, author=self.ws, language="en", ) self.acd_activity = Activity.objects.create(author=self.acd, name="activity1", language="en") self.lt_activity = Activity.objects.create(author=self.lt, name="activity2", language="en") self.resource1 = Resource.objects.create( id=1, name="resource1", author=self.ws, language="en" ) """ ActivityDetailView """ def test_get_resource_view(self): response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(200, response.status_code) the_object = response.context.get('object') activity = response.context.get('activity') self.assertEqual(the_object, self.ws_activity) self.assertEqual(activity, self.ws_activity) self.assertTemplateUsed(response, "learning/activity/detail.html") def test_post_detail_resource_view_method_not_allowed(self): response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(405, response.status_code) def test_get_detail_activity_view_as_author_private_resource_no_resource(self): self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) self.assertContains(response, "link-activity-usage", count=1) self.assertContains(response, "link-activity-similar", count=1) self.assertContains(response, "link-activity-add-resource", count=2) self.assertContains(response, "link-activity-attach-resource", count=1) self.assertContains(response, "btn-change-activity", count=1) self.assertContains(response, "btn-delete-activity", count=1) self.assertContains(response, "activity-no-resource", count=2) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) def test_get_detail_activity_view_as_author_private_resource_one_resource(self): self.ws_activity.resources.add(self.resource1) self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) self.assertContains(response, "link-activity-usage", count=1) self.assertContains(response, "link-activity-similar", count=1) self.assertContains(response, "link-activity-add-resource", count=2) self.assertContains(response, "link-activity-attach-resource", count=1) self.assertContains(response, "btn-change-activity", count=1) self.assertContains(response, "btn-delete-activity", count=1) self.assertNotContains(response, "activity-no-resource") activity = response.context.get('activity') self.assertContains(response, "resource-block-for-{}".format(self.resource1.slug)) self.assertEqual(activity, self.ws_activity) def test_get_detail_activity_view_registered_user_private_activity(self): self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn("view_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(403, response.status_code) def test_get_detail_activity_view_registered_user_public_activity(self): self.ws_activity.resources.add(self.resource1) self.ws_activity.access = ActivityAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(200, response.status_code) self.assertNotContains(response, "link-activity-usage") self.assertNotContains(response, "link-activity-similar") self.assertNotContains(response, "link-activity-add-resource") self.assertNotContains(response, "btn-change-activity") self.assertNotContains(response, "btn-delete-activity") self.assertNotContains(response, "activity-no-resource") activity = response.context.get('activity') self.assertContains(response, "resource-block-for-{}".format(self.resource1.slug)) self.assertEqual(activity, self.ws_activity) """ ActivityCreateView """ def test_get_create_activity_view(self): response = ClientFactory.get_client_for_user("ws").get(reverse("learning:activity/add")) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/add.html") def test_post_create_activity_error_missing_tags_name_description_language(self): form_data = { 'reuse': ActivityReuse.NO_RESTRICTION.name, 'access': ActivityAccess.PUBLIC.name } response = ClientFactory.get_client_for_user("ws").post(reverse("learning:activity/add"), form_data) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/add.html") self.assertContains(response, "is-invalid", count=4) def test_post_create_activity_error_missing_all_fields(self): response = ClientFactory.get_client_for_user("ws").post(reverse("learning:activity/add")) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/add.html") self.assertContains(response, "is-invalid", count=6) def test_post_create_activity(self): form_data = { 'name': "A sample name", 'description': "A short description", 'language': 'fr', 'reuse': ActivityReuse.NO_RESTRICTION.name, 'access': ActivityAccess.PUBLIC.name, 'tags': "A", } response = ClientFactory.get_client_for_user("ws").post(reverse("learning:activity/add"), form_data) # Check redirection after resource creation self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/detail", kwargs={'slug': "a-sample-name"}) ) # The author is the request sender resource = Activity.objects.get(pk=4) self.assertEqual(self.ws, resource.author) """ ActivityUpdateView """ def test_update_get_activity_as_author(self): response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/update", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/details/change.html") def test_update_post_activity_as_author(self): form_data = { 'name': "A sample name that changed", 'description': "A short description", 'language': 'fr', 'access': ActivityAccess.PUBLIC.name, 'reuse': ActivityReuse.ONLY_AUTHOR.name, 'tags': "A" } response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/update", kwargs={'slug': self.ws_activity.slug}), form_data ) self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/detail", kwargs={'slug': "a-sample-name-that-changed"}) ) def test_update_post_activity_as_author_errors(self): form_data = { 'name': "", 'description': "", 'language': 'fakelanguage', 'access': ActivityAccess.PUBLIC.name, 'reuse': ActivityReuse.ONLY_AUTHOR.name, 'tags': "A" } response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/update", kwargs={'slug': self.ws_activity.slug}), form_data ) self.assertEqual(200, response.status_code) self.assertContains(response, "is-invalid", count=3) def test_update_get_activity_without_being_author_forbidden(self): response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/update", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) def test_update_post_activity_without_being_author_forbidden(self): form_data = { 'name': "A sample name that changed", 'description': "A short description", } response = ClientFactory.get_client_for_user("acd").post( reverse("learning:activity/update", kwargs={'slug': self.ws_activity.slug}), form_data ) self.assertEqual(403, response.status_code) """ ActivityDeleteView """ def test_delete_activity_get_as_author(self): response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/delete", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/delete.html") def test_delete_resource_post_as_author(self): response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/delete", kwargs={'slug': self.ws_activity.slug}) ) self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/my") ) with self.assertRaises(ObjectDoesNotExist): Activity.objects.get(pk=self.ws_activity.id) def test_delete_resource_get_without_being_author_forbidden(self): response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/delete", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) def test_delete_activity_post_without_being_author_forbidden(self): response = ClientFactory.get_client_for_user("acd").post( reverse("learning:activity/delete", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) """ ActivityDetailUsageView """ def test_post_detail_usage_activity_view_method_not_allowed(self): response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(405, response.status_code) def test_get_detail_usage_activity_view_as_author_private_not_used(self): self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_usage_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertNotContains(response, "table-activity-usage") self.assertContains(response, "alert-not-used") def test_get_detail_usage_activity_view_as_author_public_not_used(self): self.ws_activity.access = ResourceAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_usage_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertNotContains(response, "table-activity-usage") self.assertContains(response, "alert-not-used") def test_get_detail_usage_activity_view_as_author_public_resource_used_twice(self): c1 = Course.objects.create(author=self.ws, name="test1", language="en") c2 = Course.objects.create(author=self.acd, name="test2", language="en") CourseActivity.objects.create(activity=self.ws_activity, rank=1, course=c1) CourseActivity.objects.create(activity=self.ws_activity, rank=1, course=c2) self.assertEqual(2, self.ws_activity.course_activities.count()) self.ws_activity.access = ResourceAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_usage_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertContains(response, "table-activity-usage") self.assertContains(response, "usage-activity-row", count=2) self.assertNotContains(response, "alert-not-used") page_obj = response.context.get('page_obj') self.assertIsNotNone(page_obj) self.assertEqual(2, len(page_obj.object_list)) def test_get_detail_usage_activity_view_as_author_private_resource_used_three_times(self): c1 = Course.objects.create(author=self.ws, name="test1", language="en") c2 = Course.objects.create(author=self.acd, name="test2", language="en") c3 = Course.objects.create(author=self.acd, name="test3", language="en") CourseActivity.objects.create(activity=self.ws_activity, rank=1, course=c1) CourseActivity.objects.create(activity=self.ws_activity, rank=1, course=c2) CourseActivity.objects.create(activity=self.ws_activity, rank=1, course=c3) self.assertEqual(3, self.ws_activity.course_activities.count()) self.ws_activity.access = ResourceAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_usage_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertIsNotNone(activity) self.assertEqual(activity, self.ws_activity) self.assertContains(response, "table-activity-usage") self.assertContains(response, "usage-activity-row", count=3) self.assertNotContains(response, "alert-not-used") page_obj = response.context.get('page_obj') self.assertIsNotNone(page_obj) self.assertEqual(3, len(page_obj.object_list)) def test_get_detail_usage_activity_view_user_private_resource_forbidden(self): self.ws_activity.access = ResourceAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn("view_usage_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(403, response.status_code) def test_get_detail_usage_resource_view_user_public_resource(self): self.ws_activity.access = ResourceAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/usage", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn("view_usage_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(403, response.status_code) """ activityDetailSimilarView """ def test_post_detail_similar_activity_view_method_not_allowed(self): response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(405, response.status_code) def test_get_detail_similar_activity_view_as_author_private_activity_empty(self): self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_similar_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertNotContains(response, "similar-activities") self.assertContains(response, "alert-no-similar-activity") def test_get_detail_similar_activity_view_as_author_public_activity_empty(self): self.ws_activity.access = ActivityAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_similar_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertNotContains(response, "similar-activities") self.assertContains(response, "alert-no-similar-activity") def test_get_detail_similar_activity_view_as_author_public_activity_used_twice(self): self.ws_activity.tags.add("tag1") self.ws_activity.tags.add("tag2") for tag in self.ws_activity.tags.all(): self.acd_activity.tags.add(tag) self.lt_activity.tags.add(tag) self.acd_activity.save() self.lt_activity.save() self.ws_activity.access = ActivityAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn("view_similar_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(200, response.status_code) activity = response.context.get('activity') self.assertEqual(activity, self.ws_activity) self.assertNotContains(response, "alert-no-similar-activity") self.assertContains(response, "similar-activities") page_obj = response.context.get('page_obj') self.assertIsNotNone(page_obj) self.assertEqual(2, len(page_obj.object_list)) def test_get_detail_similar_activity_view_user_private_activity_forbidden(self): self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn("view_similar_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(403, response.status_code) def test_get_detail_similar_activity_view_user_public_activity(self): self.ws_activity.access = ActivityAccess.PUBLIC.name self.ws_activity.save() response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/similar", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn("view_similar_activity", self.ws_activity.get_user_perms(self.acd)) self.assertEqual(403, response.status_code) """ ResourceOnActivityDetailView """ def test_get_resource_on_activity(self): r1 = Resource.objects.create(author=self.ws, name="A first resource", language="en") self.ws_activity.resources.add(r1) response = ClientFactory.get_client_for_user("ws").get( reverse( "learning:activity/resource/detail", kwargs={'slug': self.ws_activity.slug, 'resource_slug': r1.slug} ) ) self.assertEqual(200, response.status_code) self.assertContains(response, self.ws_activity.name, count=3) self.assertContains(response, "A first resource", count=3) self.assertEqual(self.ws_activity, response.context.get('object')) self.assertEqual(self.ws_activity, response.context.get('activity')) self.assertEqual(r1, response.context.get('resource')) def test_get_resource_on_activity_no_perm_on_resource(self): r1 = Resource.objects.create( author=self.acd, name="A first resource", access=ResourceAccess.PRIVATE.name, language="en" ) self.ws_activity.resources.add(r1) self.assertNotIn("view_resource", r1.get_user_perms(self.ws)) self.assertIn("view_activity", self.ws_activity.get_user_perms(self.ws)) response = ClientFactory.get_client_for_user("ws").get( reverse( "learning:activity/resource/detail", kwargs={'slug': self.ws_activity.slug, 'resource_slug': r1.slug} ) ) self.assertEqual(403, response.status_code) def test_get_resource_on_activity_no_perm_on_activity(self): r1 = Resource.objects.create( author=self.acd, name="A first resource", access=ResourceAccess.PUBLIC.name, language="en" ) self.ws_activity.author = self.acd self.ws_activity.access = ActivityAccess.PRIVATE.name self.ws_activity.save() self.ws_activity.resources.add(r1) self.assertIn("view_resource", r1.get_user_perms(self.ws)) self.assertNotIn("view_activity", self.ws_activity.get_user_perms(self.ws)) response = ClientFactory.get_client_for_user("ws").get( reverse( "learning:activity/resource/detail", kwargs={'slug': self.ws_activity.slug, 'resource_slug': r1.slug} ) ) self.assertEqual(403, response.status_code) """ ActivityCreateResourceView """ def test_get_create_resource_on_activity_as_author(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(200, response.status_code) self.assertTemplateUsed(response, "learning/activity/details/add_resource.html") def test_get_create_resource_on_activity_no_perm(self): self.assertNotIn("change_activity", self.ws_activity.get_user_perms(self.acd)) response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) def test_post_create_resource_on_activity_no_perm(self): self.assertNotIn("change_activity", self.ws_activity.get_user_perms(self.acd)) response = ClientFactory.get_client_for_user("acd").post( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) @override_settings(MEDIA_ROOT=tempfile.gettempdir()) def test_post_create_resource_on_activity_as_author(self): form_data = { 'name': "A sample name", 'description': "A short description", 'type': ResourceType.FILE.name, 'language': 'fr', 'licence': Licences.CC_BY.name, 'access': ResourceAccess.PUBLIC.name, 'reuse': ResourceReuse.ONLY_AUTHOR.name, 'duration': Duration.NOT_SPECIFIED.name, 'tags': "A", "media": get_temporary_file() } response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}), form_data ) resource = Resource.objects.get(slug="a-sample-name") self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:resource/detail", kwargs={'slug': resource.slug}) ) self.assertIsNotNone(resource) self.assertEqual(1, resource.activities.count()) self.assertIn(resource, self.ws_activity.resources.all()) self.assertEqual(resource.author, self.ws) @override_settings(MEDIA_ROOT=tempfile.gettempdir()) def test_post_create_resource_on_activity_as_author_not_reusable_resource_not_saved(self): form_data = { 'name': "A sample name", 'description': "A short description", 'type': ResourceType.FILE.name, 'language': 'fr', 'licence': Licences.CC_BY.name, 'access': ResourceAccess.PUBLIC.name, 'reuse': ResourceReuse.NON_REUSABLE.name, 'duration': Duration.NOT_SPECIFIED.name, 'tags': "A", "media": get_temporary_file() } response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}), form_data ) self.assertEqual(200, response.status_code) self.assertFalse(Resource.objects.filter(name="A sample name").exists()) self.assertEqual(0, self.ws_activity.resources.count()) self.assertEqual(0, len(response.context.get('form').errors.as_data())) self.assertEqual(0, self.ws_activity.resources.count()) @override_settings(MEDIA_ROOT=tempfile.gettempdir()) def test_post_create_resource_on_activity_invalid_form(self): form_data = { 'description': "A short description", 'type': ResourceType.FILE.name, 'language': 'fr', 'licence': Licences.CC_BY.name, 'access': ResourceAccess.PUBLIC.name, 'reuse': ResourceReuse.NO_RESTRICTION.name, 'duration': Duration.NOT_SPECIFIED.name, 'tags': "A", "media": get_temporary_file() } response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/resource/add", kwargs={'slug': self.ws_activity.slug}), form_data ) self.assertEqual(200, response.status_code) self.assertFalse(Resource.objects.filter(name="A sample name").exists()) self.assertEqual(0, self.ws_activity.resources.count()) self.assertEqual(1, len(response.context.get('form').errors.as_data())) self.assertEqual(0, self.ws_activity.resources.count()) """ ResourceUnlinkOnActivityView """ def test_unlink_on_activity_no_perm(self): self.assertNotIn("change_activity", self.ws_activity.get_user_perms(self.acd)) response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/resource/unlink", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) def test_get_unlink_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/resource/unlink", kwargs={'slug': self.ws_activity.slug}) ) self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) def test_post_unlink_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) r1 = Resource.objects.create(name="A sample resource", author=self.acd, language="en") self.ws_activity.resources.add(r1) self.assertIn(r1, self.ws_activity.resources.all()) response = ClientFactory.get_client_for_user("ws").post( reverse( "learning:activity/detail/resource/unlink", kwargs={'slug': self.ws_activity.slug, }, ), {'resource': r1.id} ) self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/detail", kwargs={'slug': self.ws_activity.slug}) ) self.assertNotIn(r1, self.ws_activity.resources.all()) def test_post_unlink_resource_not_linked_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) r1 = Resource.objects.create(name="A sample resource", author=self.acd, language="en") r2 = Resource.objects.create(name="A sample resource 2", author=self.lt, language="en") self.ws_activity.resources.add(r1) self.assertIn(r1, self.ws_activity.resources.all()) self.assertNotIn(r2, self.ws_activity.resources.all()) response = ClientFactory.get_client_for_user("ws").post( reverse( "learning:activity/detail/resource/unlink", kwargs={'slug': self.ws_activity.slug, }, ), {'resource': r2.id} ) self.assertEqual(302, response.status_code) self.assertIn(r1, self.ws_activity.resources.all()) self.assertNotIn(r2, self.ws_activity.resources.all()) def test_post_unlink_does_not_exist_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) r1 = Resource.objects.create(name="A sample resource", author=self.acd) self.ws_activity.resources.add(r1) self.assertIn(r1, self.ws_activity.resources.all()) response = ClientFactory.get_client_for_user("ws").post( reverse( "learning:activity/detail/resource/unlink", kwargs={'slug': self.ws_activity.slug, }, ), {'resource': r1.id + 1} ) self.assertEqual(404, response.status_code) self.assertIn(r1, self.ws_activity.resources.all()) """ ResourceAttachOnActivityView """ def test_attach_on_activity_no_perm(self): self.assertNotIn("change_activity", self.ws_activity.get_user_perms(self.acd)) response = ClientFactory.get_client_for_user("acd").get( reverse("learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(403, response.status_code) def test_get_attach_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) response = ClientFactory.get_client_for_user("ws").get( reverse("learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug}) ) self.assertEqual(200, response.status_code) self.assertTemplateUsed("learning/activity/details/attach_resource.html") self.assertIsNotNone(response.context.get('form')) self.assertIsInstance(response.context.get('form'), BasicSearchForm) def test_post_attach_on_activity_view(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) r1 = Resource.objects.create( name="A sample resource", author=self.acd, reuse=ResourceReuse.NO_RESTRICTION.name, language="en" ) self.assertTrue(r1.is_reusable(self.ws_activity)) self.assertNotIn(r1, self.ws_activity.resources.all()) response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug}), {'resource': r1.id} ) self.assertRedirects( response, status_code=302, target_status_code=200, expected_url=reverse("learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug}) ) self.assertIn(r1, self.ws_activity.resources.all()) def test_post_attach_on_activity_view_not_exists(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) self.assertEqual(0, self.ws_activity.resources.count()) response = ClientFactory.get_client_for_user("ws").post( reverse("learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug}), {'resource': 99} ) self.assertEqual(404, response.status_code) self.assertEqual(0, self.ws_activity.resources.count()) def test_post_attach_on_activity_view_already_linked(self): self.assertIn("change_activity", self.ws_activity.get_user_perms(self.ws)) r1 = Resource.objects.create(name="A sample resource", author=self.acd, language="en") r2 = Resource.objects.create(name="A sample resource 2", author=self.lt, language="en") self.ws_activity.resources.add(r1) self.assertIn(r1, self.ws_activity.resources.all()) self.assertNotIn(r2, self.ws_activity.resources.all()) response = ClientFactory.get_client_for_user("ws").post( reverse( "learning:activity/detail/resource/attach", kwargs={'slug': self.ws_activity.slug, }, ), {'resource': r1.id} ) self.assertEqual(302, response.status_code) self.assertIn(r1, self.ws_activity.resources.all()) self.assertNotIn(r2, self.ws_activity.resources.all())
48.120577
119
0.679949
4,305
36,716
5.575145
0.069454
0.049998
0.099746
0.063747
0.858214
0.835799
0.818883
0.798925
0.782467
0.75676
0
0.010288
0.200485
36,716
762
120
48.183727
0.807324
0.028271
0
0.638933
0
0
0.137988
0.069079
0
0
0
0
0.299843
1
0.081633
false
0.00157
0.014129
0
0.097331
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
b230dbbdc6a44cea06c6ae7a88c00dba082a275b
192
py
Python
enumtables/alembic_ops/__init__.py
gazorby/gino-enum-tables
68e43530d07b9fa81551c400639956cbe43b3ba2
[ "Apache-2.0" ]
null
null
null
enumtables/alembic_ops/__init__.py
gazorby/gino-enum-tables
68e43530d07b9fa81551c400639956cbe43b3ba2
[ "Apache-2.0" ]
null
null
null
enumtables/alembic_ops/__init__.py
gazorby/gino-enum-tables
68e43530d07b9fa81551c400639956cbe43b3ba2
[ "Apache-2.0" ]
null
null
null
try: import alembic except ModuleNotFoundError: pass # Expected exception else: from .alembic_ops import EnumInsertOp, EnumDeleteOp from .alembic_autogen import compare_enums
24
55
0.776042
21
192
6.952381
0.761905
0.150685
0
0
0
0
0
0
0
0
0
0
0.1875
192
7
56
27.428571
0.935897
0.09375
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.428571
0
0.428571
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
1
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
6
b257f6717a2f3bd580e8c2a281e46b3b574a4629
1,155
py
Python
notebooks/Sophie1/project_functions2.py
data301-2021-winter1/project-group42-project
a1177177f0620657315ebed7822598fc6c0f4dd8
[ "MIT" ]
null
null
null
notebooks/Sophie1/project_functions2.py
data301-2021-winter1/project-group42-project
a1177177f0620657315ebed7822598fc6c0f4dd8
[ "MIT" ]
null
null
null
notebooks/Sophie1/project_functions2.py
data301-2021-winter1/project-group42-project
a1177177f0620657315ebed7822598fc6c0f4dd8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def load_and_process(url_or_path_to_csv_file): #Method Chain 1 - loading data df_0=(pd.read_csv(url_or_path_to_csv_file, encoding='unicode_escape')) #Method Chain 2 - dropping columns and processing data for df1 df_1=(df_0 .drop(columns=['INCIDENT_NUMBER', 'OFFENSE_CODE', 'REPORTING_AREA', 'SHOOTING', 'OCCURRED_ON_DATE' , 'YEAR', 'MONTH', 'DAY_OF_WEEK', 'HOUR', 'UCR_PART', 'Lat', 'Long']) .replace(np.nan, 'N', regex=True) .dropna() ) #Ensure it returns to the lastest dataframe return df_1 def load_and_process(url_or_path_to_csv_file): #Method Chain 1 - loading data df_0=(pd.read_csv(url_or_path_to_csv_file, encoding='unicode_escape')) #Method Chain 2 - dropping columns and processing data for df2 df_2=(df_0 .drop(columns=['INCIDENT_NUMBER', 'OFFENSE_CODE', 'REPORTING_AREA', 'SHOOTING', 'OCCURRED_ON_DATE', 'UCR_PART', 'Lat', 'Long', 'Location', 'STREET', 'DISTRICT']) .replace(np.nan, 'N', regex=True) .dropna() ) #Ensure it returns to the lastest dataframe return df_2
44.423077
178
0.667532
169
1,155
4.266272
0.420118
0.027739
0.049931
0.061026
0.837725
0.837725
0.837725
0.837725
0.837725
0.837725
0
0.015284
0.206926
1,155
26
179
44.423077
0.771834
0.228571
0
0.444444
0
0
0.266366
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
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
b2b13afb7bf942e050ae1c191a343164698f5859
26,674
py
Python
fmpsdk/company_valuation.py
ipl31/fmpsdk
fba494ee7c123d8ca12a2b456c27655edfa24455
[ "BSD-3-Clause" ]
null
null
null
fmpsdk/company_valuation.py
ipl31/fmpsdk
fba494ee7c123d8ca12a2b456c27655edfa24455
[ "BSD-3-Clause" ]
null
null
null
fmpsdk/company_valuation.py
ipl31/fmpsdk
fba494ee7c123d8ca12a2b456c27655edfa24455
[ "BSD-3-Clause" ]
null
null
null
import typing import logging import requests from .settings import ( BASE_URL_v3, DEFAULT_LIMIT, FINANCIAL_STATEMENT_FILENAME, CASH_FLOW_STATEMENT_FILENAME, INCOME_STATEMENT_FILENAME, BALANCE_SHEET_STATEMENT_FILENAME, INCOME_STATEMENT_AS_REPORTED_FILENAME, BALANCE_SHEET_STATEMENT_AS_REPORTED_FILENAME, CASH_FLOW_STATEMENT_AS_REPORTED_FILENAME, ) from .url_methods import ( __return_json_v3, __validate_sector, __validate_period, __validate_industry, __validate_exchange, ) def company_profile(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /profile/ API. Gather this company's information. :param apikey: Your API key. :param symbol: Ticker of Company. :return: A list of dictionaries. """ path = f"profile/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def key_executives(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /key-executives/ API. Gather info about company's key executives. :param apikey: Your API Key. :param symbol: Ticker of company. :return: A list of dictionaries. """ path = f"key-executives/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def search( apikey: str, query: str = "", limit: int = DEFAULT_LIMIT, exchange: str = "" ) -> typing.List[typing.Dict]: """ Query FMP /search/ API. Search via ticker and company name. :param apikey: Your API key. :param query: Whole or fragment of Ticker or Name of company. :param limit: Number of rows to return. :param exchange: Stock exchange to search. :return: A list of dictionaries. """ path = f"search/" query_vars = { "apikey": apikey, "limit": limit, "query": query, "exchange": __validate_exchange(value=exchange), } return __return_json_v3(path=path, query_vars=query_vars) def search_ticker( apikey: str, query: str = "", limit: int = DEFAULT_LIMIT, exchange: str = "" ) -> typing.List[typing.Dict]: """ Query FMP /search-ticker/ API. Search only via ticker. :param apikey: Your API key. :param query: Whole or fragment of Ticker. :param limit: Number of rows to return. :param exchange:Stock exchange to search. :return: A list of dictionaries. """ path = f"search-ticker/" query_vars = { "apikey": apikey, "limit": limit, "query": query, "exchange": __validate_exchange(value=exchange), } return __return_json_v3(path=path, query_vars=query_vars) def financial_statement( apikey: str, symbol: str, filename: str = FINANCIAL_STATEMENT_FILENAME ) -> None: """ Query FMP /financial-statements/ API. Download company's financial statement. :param apikey: Your API key. :param symbol: Ticker of company. :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"financial-statements/{symbol}" query_vars = { "apikey": apikey, "datatype": "zip", # Only ZIP format is supported. } response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") def income_statement( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = INCOME_STATEMENT_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /income-statement/ API. Display or download company's income statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'quarter' or 'annual'. :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"income-statement/{symbol}" query_vars = {"apikey": apikey, "limit": limit, "period": __validate_period(period)} if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def balance_sheet_statement( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = BALANCE_SHEET_STATEMENT_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /balance-sheet-statement/ API. Display or download company's balance sheet statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'quarter' or 'annual'. :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"balance-sheet-statement/{symbol}" query_vars = {"apikey": apikey, "limit": limit, "period": __validate_period(period)} if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def cash_flow_statement( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = CASH_FLOW_STATEMENT_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /cash-flow-statement/ API. Display or download company's cash flow statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'quarter' or 'annual'. :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"cash-flow-statement/{symbol}" query_vars = {"apikey": apikey, "limit": limit, "period": __validate_period(period)} if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def financial_statement_symbol_lists(apikey: str) -> typing.List[typing.Dict]: """ Query FMP /financial-statement-symbol-lists/ API. List of symbols that have financial statements. :param apikey: Your API key. :return: A list of dictionaries. """ path = f"financial-statement-symbol-lists" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def income_statement_growth( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /income-statement-growth/ API. Growth stats for company's income statement. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"income-statement-growth/{symbol}" query_vars = { "apikey": apikey, "limit": limit, } return __return_json_v3(path=path, query_vars=query_vars) def balance_sheet_statement_growth( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /balance-sheet-statement-growth/ API. Growth stats for company's balance sheet statement. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"balance-sheet-statement-growth/{symbol}" query_vars = { "apikey": apikey, "limit": limit, } return __return_json_v3(path=path, query_vars=query_vars) def cash_flow_statement_growth( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /cash-flow-statement-growth/ API. Growth stats for company's cash flow statement. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"cash-flow-statement-growth/{symbol}" query_vars = { "apikey": apikey, "limit": limit, } return __return_json_v3(path=path, query_vars=query_vars) def income_statement_as_reported( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = INCOME_STATEMENT_AS_REPORTED_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /income-statement-as-reported/ API. Company's "as reported" income statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"income-statement-as-reported/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def balance_sheet_statement_as_reported( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = BALANCE_SHEET_STATEMENT_AS_REPORTED_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /balance-sheet-statement-as-reported/ API. Company's "as reported" balance sheet statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"balance-sheet-statement-as-reported/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def cash_flow_statement_as_reported( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, download: bool = False, filename: str = CASH_FLOW_STATEMENT_AS_REPORTED_FILENAME, ) -> typing.Union[typing.List[typing.Dict], None]: """ Query FMP /cash-flow-statement-as-reported/ API. Company's "as reported" cash flow statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :param download: True/False :param filename: Name of saved file. :return: A list of dictionaries. """ path = f"cash-flow-statement-as-reported/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } if download: query_vars["datatype"] = "csv" # Only CSV is supported. response = requests.get(f"{BASE_URL_v3}{path}", params=query_vars) open(filename, "wb").write(response.content) logging.info(f"Saving {symbol} financial statement as {filename}.") else: return __return_json_v3(path=path, query_vars=query_vars) def financial_statement_full_as_reported( apikey: str, symbol: str, period: str = "annual", ) -> typing.List[typing.Dict]: """ Query FMP /financial-statement-full-as-reported/ API. Company's "as reported" full income statement. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :return: A list of dictionaries. """ path = f"financial-statement-full-as-reported/{symbol}" query_vars = {"apikey": apikey, "period": __validate_period(value=period)} return __return_json_v3(path=path, query_vars=query_vars) def financial_ratios_ttm(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FmP /ratios-ttm/ API. :param apikey: Your API key :param symbol: Company ticker :return: A list of dictionaries. """ path = f"ratios-ttm/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def financial_ratios( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FmP /ratios/ API. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"ratios/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } return __return_json_v3(path=path, query_vars=query_vars) def enterprise_values( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /enterprise-values/ API. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"enterprise-values/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } return __return_json_v3(path=path, query_vars=query_vars) def key_metrics_ttm( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /key-metrics-ttm/ API :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"key-metrics-ttm/{symbol}" query_vars = {"apikey": apikey, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars) def key_metrics( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /key-metrics/ API :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"key-metrics/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } return __return_json_v3(path=path, query_vars=query_vars) def financial_growth( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /financial-growth/ API. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"financial-growth/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } return __return_json_v3(path=path, query_vars=query_vars) def rating(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /rating/ API. :param apikey: Your API key. :param symbol: Company ticker. :return: A list of dictionaries. """ path = f"rating/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def historical_rating( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /financial-growth/ API. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"financial-growth/{symbol}" query_vars = {"apikey": apikey, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars) def discounted_cash_flow(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /discounted-cash-flow/ API. :param apikey: Your API key. :param symbol: Company ticker. :return: A list of dictionaries. """ path = f"discounted-cash-flow/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def historical_discounted_cash_flow( apikey: str, symbol: str, period: str = "annual", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /historical-discounted-cash-flow/ API. :param apikey: Your API key. :param symbol: Company ticker. :param period: 'annual' or 'quarter' :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"historical-discounted-cash-flow/{symbol}" query_vars = { "apikey": apikey, "limit": limit, "period": __validate_period(value=period), } return __return_json_v3(path=path, query_vars=query_vars) def historical_daily_discounted_cash_flow( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /historical-daily-discounted-cash-flow/ API. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"historical-daily-discounted-cash-flow/{symbol}" query_vars = {"apikey": apikey, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars) def market_capitalization(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /market-capitalization/ API. :param apikey: Your API key. :param symbol: Company ticker. :return: A list of dictionaries. """ path = f"market-capitalization/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def historical_market_capitalization( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /historical-market-capitalization/ API. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"historical-market-capitalization/{symbol}" query_vars = {"apikey": apikey, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars) def symbols_list(apikey: str) -> typing.List[typing.Dict]: """ Query FMP /stock/list/ API :param apikey: Your API key. :return: A list of dictionaries. """ path = f"stock/list" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def etf_list(apikey: str) -> typing.List[typing.Dict]: """ Query FMP /etf/list/ API All ETF symbols :param apikey: Your API key. :return: A list of dictionaries. """ path = f"etf/list" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def available_traded_list(apikey: str) -> typing.List[typing.Dict]: """ Query FMP /available-traded/list/ API All tradable symbols :param apikey: Your API key. :return: A list of dictionaries. """ path = f"available-traded/list" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def stock_screener( apikey: str, market_cap_more_than: typing.Union[float, int] = None, market_cap_lower_than: typing.Union[float, int] = None, beta_more_than: typing.Union[float, int] = None, beta_lower_than: typing.Union[float, int] = None, volume_more_than: typing.Union[float, int] = None, volume_lower_than: typing.Union[float, int] = None, dividend_more_than: typing.Union[float, int] = None, dividend_lower_than: typing.Union[float, int] = None, price_more_than: typing.Union[float, int] = None, price_lower_than: typing.Union[float, int] = None, is_etf: bool = None, is_actively_trading: bool = None, sector: str = None, industry: str = None, country: str = None, exchange: typing.Union[str, typing.List[str]] = None, limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /stock-screener/ API. :param apikey: Your API key. :param market_cap_more_than: Numeric Value :param market_cap_lower_than: Numeric Value :param beta_more_than: Numeric Value :param beta_lower_than: Numeric Value :param volume_more_than: Numeric Value :param volume_lower_than: Numeric Value :param dividend_more_than: Numeric Value :param dividend_lower_than: Numeric Value :param price_more_than: Numeric Value :param price_lower_than: Numeric Value :param price_more_than: Numeric Value :param price_lower_than: Numeric Value :param is_etf: bool :param is_actively_trading: bool :param sector: Valid sector name. :param industry: Valid industry name. :param country: 2 digit country code as string. :param exchange: Stock exchange symbol. :param limit: Number of rows to return. :return: A list of dicitonaries. """ path = f"stock-screener" query_vars = {"apikey": apikey, "limit": limit} if market_cap_more_than: query_vars["marketCapMoreThan"] = market_cap_more_than if market_cap_lower_than: query_vars["marketCapLowerThan"] = market_cap_lower_than if beta_more_than: query_vars["betaMoreThan"] = beta_more_than if beta_lower_than: query_vars["betaLowerThan"] = beta_lower_than if volume_more_than: query_vars["volumeMoreThan"] = volume_more_than if volume_lower_than: query_vars["volumeLowerThan"] = volume_lower_than if dividend_more_than: query_vars["dividendMoreThan"] = dividend_more_than if dividend_lower_than: query_vars["dividendLowerThan"] = dividend_lower_than if price_more_than: query_vars["priceMoreThan"] = price_more_than if price_lower_than: query_vars["priceLowerThan"] = price_lower_than if is_etf: query_vars["isEtf"] = is_etf if is_actively_trading: query_vars["isActivelyTrading"] = is_actively_trading if sector: query_vars["sector"] = __validate_sector(sector) if industry: query_vars["industry"] = __validate_industry(industry) if country: query_vars["country"] = country if exchange: if type(exchange) is list: for item in exchange: if item != __validate_exchange(item): logging.error(f"Invalid Exchange value: {exchange}.") exit(1) query_vars["exchange"] = ",".join(exchange) else: query_vars["exchange"] = __validate_exchange(exchange) return __return_json_v3(path=path, query_vars=query_vars) def delisted_companies( apikey: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /delisted-companies/ API. :param apikey: Your API key. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"delisted-companies" query_vars = {"apikey": apikey, "limt": limit} return __return_json_v3(path=path, query_vars=query_vars) def stock_news( apikey: str, tickers: typing.Union[str, typing.List] = "", limit: int = DEFAULT_LIMIT, ) -> typing.List[typing.Dict]: """ Query FMP /stock_news/ API. :param apikey: Your API key. :param tickers: List of ticker symbols. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"stock_news" query_vars = {"apikey": apikey, "limt": limit} if tickers: if type(tickers) is list: tickers = ",".join(tickers) query_vars["tickers"] = tickers return __return_json_v3(path=path, query_vars=query_vars) def earnings_surprises(apikey: str, symbol: str) -> typing.List[typing.Dict]: """ Query FMP /earnings-surprises/ API. :param apikey: Your API key. :param symbol: Company ticker. :return: A list of dictionaries. """ path = f"earnings-surprises/{symbol}" query_vars = {"apikey": apikey} return __return_json_v3(path=path, query_vars=query_vars) def sec_filings( apikey: str, symbol: str, filing_type: str = "", limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /sec_filings/ API. :param apikey: Your API key. :param symbol: Company ticker. :param filing_type: Name of filing. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"sec_filings/{symbol}" query_vars = {"apikey": apikey, "type": filing_type, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars) def press_releases( apikey: str, symbol: str, limit: int = DEFAULT_LIMIT ) -> typing.List[typing.Dict]: """ Query FMP /press-releases/ API. :param apikey: Your API key. :param symbol: Company ticker. :param limit: Number of rows to return. :return: A list of dictionaries. """ path = f"press-releases/{symbol}" query_vars = {"apikey": apikey, "limit": limit} return __return_json_v3(path=path, query_vars=query_vars)
30.908459
88
0.661693
3,405
26,674
4.998825
0.051395
0.075612
0.02679
0.040186
0.850831
0.825098
0.812819
0.772575
0.751953
0.737971
0
0.00231
0.220852
26,674
862
89
30.944316
0.816677
0.3169
0
0.582949
0
0
0.138526
0.047342
0
0
0
0
0
1
0.087558
false
0
0.011521
0
0.184332
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
a24afb1247a1ee3eec101b00a6f34bf2ddc4a700
160
py
Python
tests/urls.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
2
2020-06-06T06:50:38.000Z
2022-02-03T08:54:28.000Z
tests/urls.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
5
2018-12-17T11:12:20.000Z
2020-11-27T10:28:51.000Z
tests/urls.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
1
2021-08-19T06:02:44.000Z
2021-08-19T06:02:44.000Z
try: from django.urls import include, url except ImportError: from django.conf.urls import include, url urlpatterns = [url(r'', include('cms.urls'))]
20
45
0.70625
22
160
5.136364
0.590909
0.176991
0.300885
0.353982
0
0
0
0
0
0
0
0
0.16875
160
7
46
22.857143
0.849624
0
0
0
0
0
0.05
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
6
a254a7aeef1e4efe256a6460a82f662dc6b9a927
125
py
Python
GPErks/serialization/labels.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
null
null
null
GPErks/serialization/labels.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
6
2021-12-10T14:16:51.000Z
2022-03-25T16:26:50.000Z
GPErks/serialization/labels.py
stelong/GPErks
7e8e0e4561c10ad21fba2079619418e416a167b6
[ "MIT" ]
1
2022-01-28T11:12:33.000Z
2022-01-28T11:12:33.000Z
def read_labels_from_file(labels_file_path): with open(labels_file_path, "r") as f: return f.read().splitlines()
31.25
44
0.712
20
125
4.1
0.65
0.243902
0.341463
0
0
0
0
0
0
0
0
0
0.168
125
3
45
41.666667
0.788462
0
0
0
0
0
0.008
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
6
a2dafd326fe659346652f4e6498ea2553021c151
26
py
Python
utils/__init__.py
jackklys/wake-sleep-modifications
f3e515eea8f683bf32bf3cfeed31a237bfcc2347
[ "MIT" ]
2
2018-06-11T03:41:09.000Z
2019-11-25T09:39:01.000Z
utils/__init__.py
jackklys/wake-sleep-modifications
f3e515eea8f683bf32bf3cfeed31a237bfcc2347
[ "MIT" ]
null
null
null
utils/__init__.py
jackklys/wake-sleep-modifications
f3e515eea8f683bf32bf3cfeed31a237bfcc2347
[ "MIT" ]
3
2017-07-21T08:40:21.000Z
2020-10-04T21:15:53.000Z
from utils.misc import *
13
25
0.730769
4
26
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
1
26
26
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