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
790ab1a20b5574df9d37d70dbe96e1b795d53953
103
py
Python
python/learn/base/module/l1/pack/big/b1.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
2
2017-06-07T03:20:42.000Z
2020-01-07T09:14:26.000Z
python/learn/base/module/l1/pack/big/b1.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
python/learn/base/module/l1/pack/big/b1.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 print "run here: pack/big/b1.py" def b1_fun(): print "function: pack/big/b1.py"
17.166667
46
0.679612
20
103
3.45
0.7
0.202899
0.26087
0.318841
0
0
0
0
0
0
0
0.054945
0.116505
103
5
47
20.6
0.703297
0.184466
0
0
0
0
0.578313
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
0
0
0
0
0
1
0
7
79216183c0c4168075c7f887a63bebe03c32ccb2
145
py
Python
core/datasets/data/__init__.py
Brain-Engine/DynamicActivation
7dce57cdf018a8b2acdb1d7291dfbc33be6dde78
[ "Apache-2.0" ]
1
2021-05-01T03:46:00.000Z
2021-05-01T03:46:00.000Z
core/datasets/data/__init__.py
dddlli/DynamicActivation
7dce57cdf018a8b2acdb1d7291dfbc33be6dde78
[ "Apache-2.0" ]
null
null
null
core/datasets/data/__init__.py
dddlli/DynamicActivation
7dce57cdf018a8b2acdb1d7291dfbc33be6dde78
[ "Apache-2.0" ]
2
2021-04-26T14:25:20.000Z
2021-04-28T09:05:10.000Z
from . import cifar10 from . import imagenet from . import image_folder from . import mnist from . import fashion_mnist from . import small_norb
20.714286
27
0.793103
21
145
5.333333
0.47619
0.535714
0.267857
0
0
0
0
0
0
0
0
0.016529
0.165517
145
6
28
24.166667
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
f701d647f8fe822a2a2729383c44109685c2195f
13,630
py
Python
sdk/python/pulumi_azure/apimanagement/policy.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/apimanagement/policy.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/apimanagement/policy.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['PolicyArgs', 'Policy'] @pulumi.input_type class PolicyArgs: def __init__(__self__, *, api_management_id: pulumi.Input[str], xml_content: Optional[pulumi.Input[str]] = None, xml_link: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Policy resource. :param pulumi.Input[str] api_management_id: The ID of the API Management service. Changing this forces a new API Management service Policy to be created. :param pulumi.Input[str] xml_content: The XML Content for this Policy as a string. :param pulumi.Input[str] xml_link: A link to a Policy XML Document, which must be publicly available. """ pulumi.set(__self__, "api_management_id", api_management_id) if xml_content is not None: pulumi.set(__self__, "xml_content", xml_content) if xml_link is not None: pulumi.set(__self__, "xml_link", xml_link) @property @pulumi.getter(name="apiManagementId") def api_management_id(self) -> pulumi.Input[str]: """ The ID of the API Management service. Changing this forces a new API Management service Policy to be created. """ return pulumi.get(self, "api_management_id") @api_management_id.setter def api_management_id(self, value: pulumi.Input[str]): pulumi.set(self, "api_management_id", value) @property @pulumi.getter(name="xmlContent") def xml_content(self) -> Optional[pulumi.Input[str]]: """ The XML Content for this Policy as a string. """ return pulumi.get(self, "xml_content") @xml_content.setter def xml_content(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "xml_content", value) @property @pulumi.getter(name="xmlLink") def xml_link(self) -> Optional[pulumi.Input[str]]: """ A link to a Policy XML Document, which must be publicly available. """ return pulumi.get(self, "xml_link") @xml_link.setter def xml_link(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "xml_link", value) @pulumi.input_type class _PolicyState: def __init__(__self__, *, api_management_id: Optional[pulumi.Input[str]] = None, xml_content: Optional[pulumi.Input[str]] = None, xml_link: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering Policy resources. :param pulumi.Input[str] api_management_id: The ID of the API Management service. Changing this forces a new API Management service Policy to be created. :param pulumi.Input[str] xml_content: The XML Content for this Policy as a string. :param pulumi.Input[str] xml_link: A link to a Policy XML Document, which must be publicly available. """ if api_management_id is not None: pulumi.set(__self__, "api_management_id", api_management_id) if xml_content is not None: pulumi.set(__self__, "xml_content", xml_content) if xml_link is not None: pulumi.set(__self__, "xml_link", xml_link) @property @pulumi.getter(name="apiManagementId") def api_management_id(self) -> Optional[pulumi.Input[str]]: """ The ID of the API Management service. Changing this forces a new API Management service Policy to be created. """ return pulumi.get(self, "api_management_id") @api_management_id.setter def api_management_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "api_management_id", value) @property @pulumi.getter(name="xmlContent") def xml_content(self) -> Optional[pulumi.Input[str]]: """ The XML Content for this Policy as a string. """ return pulumi.get(self, "xml_content") @xml_content.setter def xml_content(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "xml_content", value) @property @pulumi.getter(name="xmlLink") def xml_link(self) -> Optional[pulumi.Input[str]]: """ A link to a Policy XML Document, which must be publicly available. """ return pulumi.get(self, "xml_link") @xml_link.setter def xml_link(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "xml_link", value) class Policy(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, api_management_id: Optional[pulumi.Input[str]] = None, xml_content: Optional[pulumi.Input[str]] = None, xml_link: Optional[pulumi.Input[str]] = None, __props__=None): """ Manages a API Management service Policy. > **NOTE:** This resource will, upon creation, **overwrite any existing policy in the API Management service**, as there is no feasible way to test whether the policy has been modified from the default. Similarly, when this resource is destroyed, the API Management service will revert to its default policy. ## Example Usage ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_service = azure.apimanagement.Service("exampleService", location=example_resource_group.location, resource_group_name=example_resource_group.name, publisher_name="pub1", publisher_email="pub1@email.com", sku_name="Developer_1") example_named_value = azure.apimanagement.NamedValue("exampleNamedValue", resource_group_name=example_resource_group.name, api_management_name=example_service.name, display_name="ExampleProperty", value="Example Value") example_policy = azure.apimanagement.Policy("examplePolicy", api_management_id=example_service.id, xml_content=(lambda path: open(path).read())("example.xml")) ``` ## Import API Management service Policys can be imported using the `resource id`, e.g. ```sh $ pulumi import azure:apimanagement/policy:Policy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/policies/policy ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] api_management_id: The ID of the API Management service. Changing this forces a new API Management service Policy to be created. :param pulumi.Input[str] xml_content: The XML Content for this Policy as a string. :param pulumi.Input[str] xml_link: A link to a Policy XML Document, which must be publicly available. """ ... @overload def __init__(__self__, resource_name: str, args: PolicyArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Manages a API Management service Policy. > **NOTE:** This resource will, upon creation, **overwrite any existing policy in the API Management service**, as there is no feasible way to test whether the policy has been modified from the default. Similarly, when this resource is destroyed, the API Management service will revert to its default policy. ## Example Usage ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_service = azure.apimanagement.Service("exampleService", location=example_resource_group.location, resource_group_name=example_resource_group.name, publisher_name="pub1", publisher_email="pub1@email.com", sku_name="Developer_1") example_named_value = azure.apimanagement.NamedValue("exampleNamedValue", resource_group_name=example_resource_group.name, api_management_name=example_service.name, display_name="ExampleProperty", value="Example Value") example_policy = azure.apimanagement.Policy("examplePolicy", api_management_id=example_service.id, xml_content=(lambda path: open(path).read())("example.xml")) ``` ## Import API Management service Policys can be imported using the `resource id`, e.g. ```sh $ pulumi import azure:apimanagement/policy:Policy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/instance1/policies/policy ``` :param str resource_name: The name of the resource. :param PolicyArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(PolicyArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, api_management_id: Optional[pulumi.Input[str]] = None, xml_content: Optional[pulumi.Input[str]] = None, xml_link: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = PolicyArgs.__new__(PolicyArgs) if api_management_id is None and not opts.urn: raise TypeError("Missing required property 'api_management_id'") __props__.__dict__["api_management_id"] = api_management_id __props__.__dict__["xml_content"] = xml_content __props__.__dict__["xml_link"] = xml_link super(Policy, __self__).__init__( 'azure:apimanagement/policy:Policy', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, api_management_id: Optional[pulumi.Input[str]] = None, xml_content: Optional[pulumi.Input[str]] = None, xml_link: Optional[pulumi.Input[str]] = None) -> 'Policy': """ Get an existing Policy resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] api_management_id: The ID of the API Management service. Changing this forces a new API Management service Policy to be created. :param pulumi.Input[str] xml_content: The XML Content for this Policy as a string. :param pulumi.Input[str] xml_link: A link to a Policy XML Document, which must be publicly available. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _PolicyState.__new__(_PolicyState) __props__.__dict__["api_management_id"] = api_management_id __props__.__dict__["xml_content"] = xml_content __props__.__dict__["xml_link"] = xml_link return Policy(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="apiManagementId") def api_management_id(self) -> pulumi.Output[str]: """ The ID of the API Management service. Changing this forces a new API Management service Policy to be created. """ return pulumi.get(self, "api_management_id") @property @pulumi.getter(name="xmlContent") def xml_content(self) -> pulumi.Output[str]: """ The XML Content for this Policy as a string. """ return pulumi.get(self, "xml_content") @property @pulumi.getter(name="xmlLink") def xml_link(self) -> pulumi.Output[Optional[str]]: """ A link to a Policy XML Document, which must be publicly available. """ return pulumi.get(self, "xml_link")
44.110032
316
0.65818
1,656
13,630
5.175121
0.125604
0.087981
0.066978
0.06161
0.822637
0.796733
0.790432
0.781214
0.775263
0.763127
0
0.007329
0.249156
13,630
308
317
44.253247
0.830076
0.436464
0
0.648276
1
0
0.099985
0.004874
0
0
0
0
0
1
0.151724
false
0.006897
0.034483
0
0.275862
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e3a66499b1c25d9475b1e44e51e501fe6acdb9cb
14,057
py
Python
ext/ANTsPyNet/antspynet/architectures/create_alexnet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
ext/ANTsPyNet/antspynet/architectures/create_alexnet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
ext/ANTsPyNet/antspynet/architectures/create_alexnet_model.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras.models import Model from tensorflow.keras.layers import (Input, Lambda, Concatenate, Flatten, Dense, Conv2D, Conv2DTranspose, MaxPooling2D, ZeroPadding2D, Conv3D, Conv3DTranspose, MaxPooling3D, ZeroPadding3D) def create_alexnet_model_2d(input_image_size, number_of_classification_labels=1000, number_of_dense_units=4096, dropout_rate=0.0, mode='classification'): """ 2-D implementation of the AlexNet deep learning architecture. Creates a keras model of the AlexNet deep learning architecture for image recognition based on the paper A. Krizhevsky, and I. Sutskever, and G. Hinton. ImageNet Classification with Deep Convolutional Neural Networks. available here: http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf This particular implementation was influenced by the following python implementation: https://github.com/duggalrahul/AlexNet-Experiments-Keras/ https://github.com/lunardog/convnets-keras/ Arguments --------- input_image_size : tuple of length 3 Used for specifying the input tensor shape. The shape (or dimension) of that tensor is the image dimensions followed by the number of channels (e.g., red, green, and blue). The batch size (i.e., number of training images) is not specified a priori. number_of_classification_labels : integer Number of segmentation labels. number_of_dense_units : integer Number of dense units. dropout_rate : scalar Optional regularization parameter between [0, 1]. Default = 0.0. mode : string 'classification' or 'regression'. Default = 'classification'. Returns ------- Keras model A 2-D Keras model defining the network. Example ------- >>> model = create_alexnet_model_2d((128, 128, 1)) >>> model.summary() """ def split_tensor_2d(axis=1, ratio_split=1, id_split=0): def f(X): Xdims = K.int_shape(X) div = Xdims[axis] // ratio_split axis_split = slice(id_split * div, (id_split + 1) * div) if axis == 0: output = X[axis_split,:, :, :] elif axis == 1: output = X[:,axis_split, :, :] elif axis == 2: output = X[:,:, axis_split, :] elif axis == 3: output = X[:,:, :, axis_split] else: raise ValueError("axis specified is out of range.") return(output) def g(input_shape): output_shape = list(input_shape) output_shape[axis] = output_shape[axis] // ratio_split return(tuple(output_shape)) return(Lambda(f, output_shape=lambda input_shape:g(input_shape))) def cross_channel_normalization_2d(alpha=1e-4, k=2, beta=0.75, n=5): def normalize_tensor_2d(X): X2 = K.square(X) half = n // 2 extra_channels = K.spatial_2d_padding( K.permute_dimensions(X2, (1, 2, 3, 0)), padding=((0, 0), (half, half))) extra_channels = K.permute_dimensions( extra_channels, (3, 0, 1, 2)) Xdims = K.int_shape(X) number_of_channels = int(Xdims[-1]) scale = k for i in range(n): scale += alpha * extra_channels[:,:,:,i:(i + number_of_channels)] scale = scale ** beta return(X / scale) return(Lambda(normalize_tensor_2d, output_shape = lambda input_shape:input_shape)) inputs = Input(shape = input_image_size) # Conv1 outputs = Conv2D(filters = 96, kernel_size=(11, 11), strides=(4, 4), activation='relu')(inputs) # Conv2 outputs = MaxPooling2D(pool_size=(3, 3), strides=(2, 2))(outputs) normalization_layer = cross_channel_normalization_2d() outputs = normalization_layer(outputs) outputs = ZeroPadding2D(padding=(2, 2))(outputs) convolution_layer = Conv2D(filters=128, kernel_size=(5, 5), padding='same')(outputs) lambda_layers_conv2 = [convolution_layer] for i in range(2): split_layer = split_tensor_2d(axis=3, ratio_split=2, id_split=i)(outputs) lambda_layers_conv2.append(split_layer) outputs = Concatenate()(lambda_layers_conv2) # Conv3 outputs = MaxPooling2D(pool_size=(3, 3), strides=(2, 2))(outputs) normalization_layer = cross_channel_normalization_2d() outputs = normalization_layer(outputs) outputs = ZeroPadding2D(padding=(2, 2))(outputs) outputs = Conv2D(filters=384, kernel_size=(3, 3), padding='same')(outputs) # Conv4 outputs = ZeroPadding2D(padding=(2, 2))(outputs) convolution_layer = Conv2D(filters=192, kernel_size=(3, 3), padding='same')(outputs) lambda_layers_conv4 = [convolution_layer] for i in range(2): split_layer = split_tensor_2d(axis=3, ratio_split=2, id_split=i)(outputs) lambda_layers_conv4.append(split_layer) outputs = Concatenate()(lambda_layers_conv4) # Conv5 outputs = ZeroPadding2D(padding=(2, 2))(outputs) normalization_layer = cross_channel_normalization_2d() outputs = normalization_layer(outputs) convolution_layer = Conv2D(filters=128, kernel_size=(3, 3), padding='same')(outputs) lambda_layers_conv5 = [convolution_layer] for i in range(2): split_layer = split_tensor_2d(axis=3, ratio_split=2, id_split=i)(outputs) lambda_layers_conv5.append(split_layer) outputs = Concatenate()(lambda_layers_conv5) outputs = MaxPooling2D(pool_size=(3, 3), strides=(2, 2))(outputs) outputs = Flatten()(outputs) outputs = Dense(units=number_of_dense_units, activation ='relu')(outputs) if dropout_rate > 0.0: outputs = Dropout(rate=dropout_rate)(outputs) outputs = Dense(units=number_of_dense_units, activation ='relu')(outputs) if dropout_rate > 0.0: outputs = Dropout(rate=dropout_rate)(outputs) layer_activation = '' if mode == 'classification': layer_activation = 'softmax' elif mode == 'regression': layerActivation = 'linear' else: raise ValueError('unrecognized mode.') outputs = Dense(units=number_of_classification_labels, activation=layer_activation)(outputs) alexnet_model = Model(inputs=inputs, outputs=outputs) return(alexnet_model) def create_alexnet_model_3d(input_image_size, number_of_classification_labels=1000, number_of_dense_units=4096, dropout_rate=0.0, mode='classification'): """ 3-D implementation of the AlexNet deep learning architecture. Creates a keras model of the AlexNet deep learning architecture for image recognition based on the paper A. Krizhevsky, and I. Sutskever, and G. Hinton. ImageNet Classification with Deep Convolutional Neural Networks. available here: http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf This particular implementation was influenced by the following python implementation: https://github.com/duggalrahul/AlexNet-Experiments-Keras/ https://github.com/lunardog/convnets-keras/ Arguments --------- input_image_size : tuple of length 4 Used for specifying the input tensor shape. The shape (or dimension) of that tensor is the image dimensions followed by the number of channels (e.g., red, green, and blue). The batch size (i.e., number of training images) is not specified a priori. number_of_classification_labels : integer Number of segmentation labels. number_of_dense_units : integer Number of dense units. dropout_rate : scalar Optional regularization parameter between [0, 1]. Default = 0.0. mode : string 'classification' or 'regression'. Default = 'classification'. Returns ------- Keras model A 3-D Keras model defining the network. Example ------- >>> model = create_alexnet_model_3d((128, 128, 128, 1)) >>> model.summary() """ def split_tensor_3d(axis=1, ratio_split=1, id_split=0): def f(X): Xdims = K.int_shape(X) div = Xdims[axis] // ratio_split axis_split = slice(id_split * div, (id_split + 1) * div) if axis == 0: output = X[axis_split,:, :, :, :] elif axis == 1: output = X[:,axis_split, :, :, :] elif axis == 2: output = X[:,:, axis_split, :, :] elif axis == 3: output = X[:,:, :, axis_split, :] elif axis == 4: output = X[:,:, :, :, axis_split] else: raise ValueError("axis specified is out of range.") return(output) def g(input_shape): output_shape = list(input_shape) output_shape[axis] = output_shape[axis] // ratio_split return(tuple(output_shape)) return(Lambda(f, output_shape=lambda input_shape:g(input_shape))) def cross_channel_normalization_3d(alpha=1e-4, k=2, beta=0.75, n=5): def normalize_tensor_3d(X): X2 = K.square(X) half = n // 2 extra_channels = K.spatial_3d_padding( K.permute_dimensions(X2, (1, 2, 3, 4, 0)), padding=((0, 0), (0, 0), (half, half))) extra_channels = K.permute_dimensions( extra_channels, (4, 0, 1, 2, 3)) Xdims = K.int_shape(X) number_of_channels = int(Xdims[-1]) scale = k for i in range(n): scale += alpha * extra_channels[:,:,:,:,i:(i + number_of_channels)] scale = scale ** beta return(X / scale) return(Lambda(normalize_tensor_3d, output_shape = lambda input_shape:input_shape)) inputs = Input(shape = input_image_size) # Conv1 outputs = Conv3D(filters = 96, kernel_size=(11, 11, 11), strides=(4, 4, 4), activation='relu')(inputs) # Conv2 outputs = MaxPooling3D(pool_size=(3, 3, 3), strides=(2, 2, 2))(outputs) normalization_layer = cross_channel_normalization_3d() outputs = normalization_layer(outputs) outputs = ZeroPadding3D(padding=(2, 2, 2))(outputs) convolution_layer = Conv3D(filters=128, kernel_size=(5, 5, 5), padding='same')(outputs) lambda_layers_conv2 = [convolution_layer] for i in range(2): split_layer = split_tensor_3d(axis=4, ratio_split=2, id_split=i)(outputs) lambda_layers_conv2.append(split_layer) outputs = Concatenate()(lambda_layers_conv2) # Conv3 outputs = MaxPooling3D(pool_size=(3, 3, 3), strides=(2, 2, 2))(outputs) normalization_layer = cross_channel_normalization_3d() outputs = normalization_layer(outputs) outputs = ZeroPadding3D(padding=(2, 2, 2))(outputs) outputs = Conv3D(filters=384, kernel_size=(3, 3, 3), padding='same')(outputs) # Conv4 outputs = ZeroPadding3D(padding=(2, 2, 2))(outputs) convolution_layer = Conv3D(filters=192, kernel_size=(3, 3, 3), padding='same')(outputs) lambda_layers_conv4 = [convolution_layer] for i in range(2): split_layer = split_tensor_3d(axis=4, ratio_split=2, id_split=i)(outputs) lambda_layers_conv4.append(split_layer) outputs = Concatenate()(lambda_layers_conv4) # Conv5 outputs = ZeroPadding3D(padding=(2, 2, 2))(outputs) normalization_layer = cross_channel_normalization_3d() outputs = normalization_layer(outputs) convolution_layer = Conv3D(filters=128, kernel_size=(3, 3, 3), padding='same')(outputs) lambda_layers_conv5 = [convolution_layer] for i in range(2): split_layer = split_tensor_3d(axis=4, ratio_split=2, id_split=i)(outputs) lambda_layers_conv5.append(split_layer) outputs = Concatenate()(lambda_layers_conv5) outputs = MaxPooling3D(pool_size=(3, 3, 3), strides=(2, 2, 2))(outputs) outputs = Flatten()(outputs) outputs = Dense(units=number_of_dense_units, activation ='relu')(outputs) if dropout_rate > 0.0: outputs = Dropout(rate=dropout_rate)(outputs) outputs = Dense(units=number_of_dense_units, activation ='relu')(outputs) if dropout_rate > 0.0: outputs = Dropout(rate=dropout_rate)(outputs) layer_activation = '' if mode == 'classification': layer_activation = 'softmax' elif mode == 'regression': layerActivation = 'linear' else: raise ValueError('unrecognized mode.') outputs = Dense(units=number_of_classification_labels, activation=layer_activation)(outputs) alexnet_model = Model(inputs=inputs, outputs=outputs) return(alexnet_model)
34.453431
116
0.591449
1,598
14,057
5.008135
0.122653
0.02599
0.015744
0.022492
0.952143
0.949144
0.936524
0.922279
0.891416
0.888917
0
0.035521
0.305044
14,057
407
117
34.538084
0.783704
0.205236
0
0.784483
0
0
0.023547
0
0
0
0
0
0
1
0.051724
false
0
0.017241
0
0.068966
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e3a6a0b41be61961bde1100446df49e86d5f1be8
2,294
py
Python
kabusapi/wallet.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
11
2020-10-02T04:27:50.000Z
2022-01-05T03:41:03.000Z
kabusapi/wallet.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
1
2020-12-15T03:52:45.000Z
2020-12-15T23:28:04.000Z
kabusapi/wallet.py
dogwood008/python-kabusapi
7e7a5ac232e037c651b5447b408d8b0b6727c9b0
[ "MIT" ]
5
2021-02-21T16:25:50.000Z
2022-02-15T08:11:43.000Z
import requests import json class EntitySpec(object): def __init__(self, ctx): self.ctx = ctx def cash(self, **kwargs): symbol = kwargs.get("symbol") exchange = kwargs.get("exchange") if symbol and exchange: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/cash' + '/' + str(symbol) + '@' + str(exchange), headers=self.ctx._headers) else: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/cash', headers=self.ctx._headers) return json.loads(response.text) def margin(self, **kwargs): symbol = kwargs.get("symbol") exchange = kwargs.get("exchange") if symbol and exchange: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/margin' + '/' + str(symbol) + '@' + str(exchange), headers=self.ctx._headers) else: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/margin', headers=self.ctx._headers) return json.loads(response.text) def future(self, **kwargs): symbol = kwargs.get("symbol") exchange = kwargs.get("exchange") if symbol and exchange: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/future' + '/' + str(symbol) + '@' + str(exchange), headers=self.ctx._headers) else: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/future', headers=self.ctx._headers) return json.loads(response.text) def option(self, **kwargs): symbol = kwargs.get("symbol") exchange = kwargs.get("exchange") if symbol and exchange: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/option' + '/' + str(symbol) + '@' + str(exchange), headers=self.ctx._headers) else: response = requests.get( self.ctx._base_url + '/kabusapi/wallet/option', headers=self.ctx._headers) return json.loads(response.text)
31.861111
63
0.53313
230
2,294
5.195652
0.134783
0.105439
0.127197
0.153975
0.921339
0.921339
0.921339
0.921339
0.921339
0.881172
0
0
0.340889
2,294
71
64
32.309859
0.790344
0
0
0.701754
0
0
0.106364
0.078466
0
0
0
0
0
1
0.087719
false
0
0.035088
0
0.210526
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e3cd51093b099b8c71a12a3b61f7174a93832412
148,763
py
Python
python/sbp/navigation.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
65
2015-03-25T10:28:10.000Z
2022-02-24T12:36:49.000Z
python/sbp/navigation.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
654
2015-03-24T17:43:55.000Z
2022-03-31T21:42:49.000Z
python/sbp/navigation.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
110
2015-03-24T17:38:35.000Z
2022-03-21T02:05:19.000Z
#!/usr/bin/env python # Copyright (C) 2015-2021 Swift Navigation Inc. # Contact: https://support.swiftnav.com # # This source is subject to the license found in the file 'LICENSE' which must # be be distributed together with this source. All other rights reserved. # # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. """ Geodetic navigation messages reporting GPS time, position, velocity, and baseline position solutions. For position solutions, these messages define several different position solutions: single-point (SPP), RTK, and pseudo- absolute position solutions. The SPP is the standalone, absolute GPS position solution using only a single receiver. The RTK solution is the differential GPS solution, which can use either a fixed/integer or floating carrier phase ambiguity. The pseudo-absolute position solution uses a user-provided, well-surveyed base station position (if available) and the RTK solution in tandem. When the inertial navigation mode indicates that the IMU is used, all messages are reported in the vehicle body frame as defined by device settings. By default, the vehicle body frame is configured to be coincident with the antenna phase center. When there is no inertial navigation, the solution will be reported at the phase center of the antenna. There is no inertial navigation capability on Piksi Multi or Duro. The tow field, when valid, is most often the Time of Measurement. When this is the case, the 5th bit of flags is set to the default value of 0. When this is not the case, the tow may be a time of arrival or a local system timestamp, irrespective of the time reference (GPS Week or else), but not a Time of Measurement. """ import json import construct from sbp.msg import SBP, SENDER_ID from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize # Automatically generated from piksi/yaml/swiftnav/sbp/navigation.yaml with generate.py. # Please do not hand edit! class EstimatedHorizontalErrorEllipse(object): """EstimatedHorizontalErrorEllipse. Parameters ---------- semi_major : float The semi major axis of the estimated horizontal error ellipse at the user- configured confidence level; zero implies invalid. semi_minor : float The semi minor axis of the estimated horizontal error ellipse at the user- configured confidence level; zero implies invalid. orientation : float The orientation of the semi major axis of the estimated horizontal error ellipse with respect to North. """ _parser = construct.Struct( 'semi_major' / construct.Float32l, 'semi_minor' / construct.Float32l, 'orientation' / construct.Float32l,) __slots__ = [ 'semi_major', 'semi_minor', 'orientation', ] def __init__(self, payload=None, **kwargs): if payload: self.from_binary(payload) else: self.semi_major = kwargs.pop('semi_major') self.semi_minor = kwargs.pop('semi_minor') self.orientation = kwargs.pop('orientation') def __repr__(self): return fmt_repr(self) def from_binary(self, d): p = EstimatedHorizontalErrorEllipse._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) SBP_MSG_GPS_TIME = 0x0102 class MsgGPSTime(SBP): """SBP class for message MSG_GPS_TIME (0x0102). You can have MSG_GPS_TIME inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the GPS time, representing the time since the GPS epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale. Within each week number, the GPS time of the week is between between 0 and 604800 seconds (=60*60*24*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small offset from UTC. In a message stream, this message precedes a set of other navigation messages referenced to the same time (but lacking the ns field) and indicates a more precise time of these messages. Parameters ---------- sbp : SBP SBP parent object to inherit from. wn : int GPS week number tow : int GPS time of week rounded to the nearest millisecond ns_residual : int Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) flags : int Status flags (reserved) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'wn' / construct.Int16ul, 'tow' / construct.Int32ul, 'ns_residual' / construct.Int32sl, 'flags' / construct.Int8ul,) __slots__ = [ 'wn', 'tow', 'ns_residual', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgGPSTime, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgGPSTime, self).__init__() self.msg_type = SBP_MSG_GPS_TIME self.sender = kwargs.pop('sender', SENDER_ID) self.wn = kwargs.pop('wn') self.tow = kwargs.pop('tow') self.ns_residual = kwargs.pop('ns_residual') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgGPSTime.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgGPSTime(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgGPSTime._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgGPSTime._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgGPSTime._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgGPSTime, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_GPS_TIME_GNSS = 0x0104 class MsgGPSTimeGnss(SBP): """SBP class for message MSG_GPS_TIME_GNSS (0x0104). You can have MSG_GPS_TIME_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the GPS time, representing the time since the GPS epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale. Within each week number, the GPS time of the week is between between 0 and 604800 seconds (=60*60*24*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small offset from UTC. In a message stream, this message precedes a set of other navigation messages referenced to the same time (but lacking the ns field) and indicates a more precise time of these messages. Parameters ---------- sbp : SBP SBP parent object to inherit from. wn : int GPS week number tow : int GPS time of week rounded to the nearest millisecond ns_residual : int Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) flags : int Status flags (reserved) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'wn' / construct.Int16ul, 'tow' / construct.Int32ul, 'ns_residual' / construct.Int32sl, 'flags' / construct.Int8ul,) __slots__ = [ 'wn', 'tow', 'ns_residual', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgGPSTimeGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgGPSTimeGnss, self).__init__() self.msg_type = SBP_MSG_GPS_TIME_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.wn = kwargs.pop('wn') self.tow = kwargs.pop('tow') self.ns_residual = kwargs.pop('ns_residual') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgGPSTimeGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgGPSTimeGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgGPSTimeGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgGPSTimeGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgGPSTimeGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgGPSTimeGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_UTC_TIME = 0x0103 class MsgUtcTime(SBP): """SBP class for message MSG_UTC_TIME (0x0103). You can have MSG_UTC_TIME inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the Universal Coordinated Time (UTC). Note the flags which indicate the source of the UTC offset value and source of the time fix. Parameters ---------- sbp : SBP SBP parent object to inherit from. flags : int Indicates source and time validity tow : int GPS time of week rounded to the nearest millisecond year : int Year month : int Month (range 1 .. 12) day : int days in the month (range 1-31) hours : int hours of day (range 0-23) minutes : int minutes of hour (range 0-59) seconds : int seconds of minute (range 0-60) rounded down ns : int nanoseconds of second (range 0-999999999) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'flags' / construct.Int8ul, 'tow' / construct.Int32ul, 'year' / construct.Int16ul, 'month' / construct.Int8ul, 'day' / construct.Int8ul, 'hours' / construct.Int8ul, 'minutes' / construct.Int8ul, 'seconds' / construct.Int8ul, 'ns' / construct.Int32ul,) __slots__ = [ 'flags', 'tow', 'year', 'month', 'day', 'hours', 'minutes', 'seconds', 'ns', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgUtcTime, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgUtcTime, self).__init__() self.msg_type = SBP_MSG_UTC_TIME self.sender = kwargs.pop('sender', SENDER_ID) self.flags = kwargs.pop('flags') self.tow = kwargs.pop('tow') self.year = kwargs.pop('year') self.month = kwargs.pop('month') self.day = kwargs.pop('day') self.hours = kwargs.pop('hours') self.minutes = kwargs.pop('minutes') self.seconds = kwargs.pop('seconds') self.ns = kwargs.pop('ns') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgUtcTime.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgUtcTime(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgUtcTime._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgUtcTime._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgUtcTime._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgUtcTime, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_UTC_TIME_GNSS = 0x0105 class MsgUtcTimeGnss(SBP): """SBP class for message MSG_UTC_TIME_GNSS (0x0105). You can have MSG_UTC_TIME_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the Universal Coordinated Time (UTC). Note the flags which indicate the source of the UTC offset value and source of the time fix. Parameters ---------- sbp : SBP SBP parent object to inherit from. flags : int Indicates source and time validity tow : int GPS time of week rounded to the nearest millisecond year : int Year month : int Month (range 1 .. 12) day : int days in the month (range 1-31) hours : int hours of day (range 0-23) minutes : int minutes of hour (range 0-59) seconds : int seconds of minute (range 0-60) rounded down ns : int nanoseconds of second (range 0-999999999) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'flags' / construct.Int8ul, 'tow' / construct.Int32ul, 'year' / construct.Int16ul, 'month' / construct.Int8ul, 'day' / construct.Int8ul, 'hours' / construct.Int8ul, 'minutes' / construct.Int8ul, 'seconds' / construct.Int8ul, 'ns' / construct.Int32ul,) __slots__ = [ 'flags', 'tow', 'year', 'month', 'day', 'hours', 'minutes', 'seconds', 'ns', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgUtcTimeGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgUtcTimeGnss, self).__init__() self.msg_type = SBP_MSG_UTC_TIME_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.flags = kwargs.pop('flags') self.tow = kwargs.pop('tow') self.year = kwargs.pop('year') self.month = kwargs.pop('month') self.day = kwargs.pop('day') self.hours = kwargs.pop('hours') self.minutes = kwargs.pop('minutes') self.seconds = kwargs.pop('seconds') self.ns = kwargs.pop('ns') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgUtcTimeGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgUtcTimeGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgUtcTimeGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgUtcTimeGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgUtcTimeGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgUtcTimeGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_DOPS = 0x0208 class MsgDops(SBP): """SBP class for message MSG_DOPS (0x0208). You can have MSG_DOPS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This dilution of precision (DOP) message describes the effect of navigation satellite geometry on positional measurement precision. The flags field indicated whether the DOP reported corresponds to differential or SPP solution. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week gdop : int Geometric Dilution of Precision pdop : int Position Dilution of Precision tdop : int Time Dilution of Precision hdop : int Horizontal Dilution of Precision vdop : int Vertical Dilution of Precision flags : int Indicates the position solution with which the DOPS message corresponds sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'gdop' / construct.Int16ul, 'pdop' / construct.Int16ul, 'tdop' / construct.Int16ul, 'hdop' / construct.Int16ul, 'vdop' / construct.Int16ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'gdop', 'pdop', 'tdop', 'hdop', 'vdop', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgDops, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgDops, self).__init__() self.msg_type = SBP_MSG_DOPS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.gdop = kwargs.pop('gdop') self.pdop = kwargs.pop('pdop') self.tdop = kwargs.pop('tdop') self.hdop = kwargs.pop('hdop') self.vdop = kwargs.pop('vdop') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgDops.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgDops(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgDops._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgDops._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgDops._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgDops, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_ECEF = 0x0209 class MsgPosECEF(SBP): """SBP class for message MSG_POS_ECEF (0x0209). You can have MSG_POS_ECEF inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : double ECEF X coordinate y : double ECEF Y coordinate z : double ECEF Z coordinate accuracy : int Position estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Float64l, 'y' / construct.Float64l, 'z' / construct.Float64l, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosECEF, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosECEF, self).__init__() self.msg_type = SBP_MSG_POS_ECEF self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosECEF.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosECEF(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosECEF._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosECEF._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosECEF._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosECEF, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_ECEF_COV = 0x0214 class MsgPosECEFCov(SBP): """SBP class for message MSG_POS_ECEF_COV (0x0214). You can have MSG_POS_ECEF_COV inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. The message also reports the upper triangular portion of the 3x3 covariance matrix. If the receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : double ECEF X coordinate y : double ECEF Y coordinate z : double ECEF Z coordinate cov_x_x : float Estimated variance of x cov_x_y : float Estimated covariance of x and y cov_x_z : float Estimated covariance of x and z cov_y_y : float Estimated variance of y cov_y_z : float Estimated covariance of y and z cov_z_z : float Estimated variance of z n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Float64l, 'y' / construct.Float64l, 'z' / construct.Float64l, 'cov_x_x' / construct.Float32l, 'cov_x_y' / construct.Float32l, 'cov_x_z' / construct.Float32l, 'cov_y_y' / construct.Float32l, 'cov_y_z' / construct.Float32l, 'cov_z_z' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'cov_x_x', 'cov_x_y', 'cov_x_z', 'cov_y_y', 'cov_y_z', 'cov_z_z', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosECEFCov, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosECEFCov, self).__init__() self.msg_type = SBP_MSG_POS_ECEF_COV self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.cov_x_x = kwargs.pop('cov_x_x') self.cov_x_y = kwargs.pop('cov_x_y') self.cov_x_z = kwargs.pop('cov_x_z') self.cov_y_y = kwargs.pop('cov_y_y') self.cov_y_z = kwargs.pop('cov_y_z') self.cov_z_z = kwargs.pop('cov_z_z') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosECEFCov.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosECEFCov(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosECEFCov._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosECEFCov._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosECEFCov._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosECEFCov, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH = 0x020A class MsgPosLLH(SBP): """SBP class for message MSG_POS_LLH (0x020A). You can have MSG_POS_LLH inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height above WGS84 ellipsoid h_accuracy : int Horizontal position estimated standard deviation v_accuracy : int Vertical position estimated standard deviation n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLH, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLH, self).__init__() self.msg_type = SBP_MSG_POS_LLH self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLH.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLH(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLH._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLH._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLH._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLH, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH_COV = 0x0211 class MsgPosLLHCov(SBP): """SBP class for message MSG_POS_LLH_COV (0x0211). You can have MSG_POS_LLH_COV inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution as well as the upper triangle of the 3x3 covariance matrix. The position information and Fix Mode flags follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level North, East, Down frame, the covariance terms follow that convention. Thus, covariances are reported against the "downward" measurement and care should be taken with the sign convention. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height above WGS84 ellipsoid cov_n_n : float Estimated variance of northing cov_n_e : float Covariance of northing and easting cov_n_d : float Covariance of northing and downward measurement cov_e_e : float Estimated variance of easting cov_e_d : float Covariance of easting and downward measurement cov_d_d : float Estimated variance of downward measurement n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'cov_n_n' / construct.Float32l, 'cov_n_e' / construct.Float32l, 'cov_n_d' / construct.Float32l, 'cov_e_e' / construct.Float32l, 'cov_e_d' / construct.Float32l, 'cov_d_d' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'cov_n_n', 'cov_n_e', 'cov_n_d', 'cov_e_e', 'cov_e_d', 'cov_d_d', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLHCov, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLHCov, self).__init__() self.msg_type = SBP_MSG_POS_LLH_COV self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.cov_n_n = kwargs.pop('cov_n_n') self.cov_n_e = kwargs.pop('cov_n_e') self.cov_n_d = kwargs.pop('cov_n_d') self.cov_e_e = kwargs.pop('cov_e_e') self.cov_e_d = kwargs.pop('cov_e_d') self.cov_d_d = kwargs.pop('cov_d_d') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLHCov.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLHCov(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLHCov._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLHCov._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLHCov._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLHCov, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH_ACC = 0x0218 class MsgPosLLHAcc(SBP): """SBP class for message MSG_POS_LLH_ACC (0x0218). You can have MSG_POS_LLH_ACC inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution as well as the estimated horizontal, vertical, cross-track and along-track errors. The position information and Fix Mode flags follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level North, East, Down frame, the estimated error terms follow that convention. The estimated errors are reported at a user-configurable confidence level. The user-configured percentile is encoded in the percentile field. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height above WGS84 ellipsoid orthometric_height : double Height above the geoid (i.e. height above mean sea level). See confidence_and_geoid for geoid model used. h_accuracy : float Estimated horizontal error at the user-configured confidence level; zero implies invalid. v_accuracy : float Estimated vertical error at the user-configured confidence level; zero implies invalid. ct_accuracy : float Estimated cross-track error at the user-configured confidence level; zero implies invalid. at_accuracy : float Estimated along-track error at the user-configured confidence level; zero implies invalid. h_ellipse : EstimatedHorizontalErrorEllipse The estimated horizontal error ellipse at the user-configured confidence level. confidence_and_geoid : int The lower bits describe the configured confidence level for the estimated position error. The middle bits describe the geoid model used to calculate the orthometric height. n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'orthometric_height' / construct.Float64l, 'h_accuracy' / construct.Float32l, 'v_accuracy' / construct.Float32l, 'ct_accuracy' / construct.Float32l, 'at_accuracy' / construct.Float32l, 'h_ellipse' / EstimatedHorizontalErrorEllipse._parser, 'confidence_and_geoid' / construct.Int8ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'orthometric_height', 'h_accuracy', 'v_accuracy', 'ct_accuracy', 'at_accuracy', 'h_ellipse', 'confidence_and_geoid', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLHAcc, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLHAcc, self).__init__() self.msg_type = SBP_MSG_POS_LLH_ACC self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.orthometric_height = kwargs.pop('orthometric_height') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.ct_accuracy = kwargs.pop('ct_accuracy') self.at_accuracy = kwargs.pop('at_accuracy') self.h_ellipse = kwargs.pop('h_ellipse') self.confidence_and_geoid = kwargs.pop('confidence_and_geoid') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLHAcc.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLHAcc(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLHAcc._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLHAcc._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLHAcc._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLHAcc, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_BASELINE_ECEF = 0x020B class MsgBaselineECEF(SBP): """SBP class for message MSG_BASELINE_ECEF (0x020B). You can have MSG_BASELINE_ECEF inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the baseline solution in Earth Centered Earth Fixed (ECEF) coordinates. This baseline is the relative vector distance from the base station to the rover receiver. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Baseline ECEF X coordinate y : int Baseline ECEF Y coordinate z : int Baseline ECEF Z coordinate accuracy : int Position estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgBaselineECEF, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgBaselineECEF, self).__init__() self.msg_type = SBP_MSG_BASELINE_ECEF self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgBaselineECEF.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgBaselineECEF(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgBaselineECEF._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgBaselineECEF._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgBaselineECEF._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgBaselineECEF, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_BASELINE_NED = 0x020C class MsgBaselineNED(SBP): """SBP class for message MSG_BASELINE_NED (0x020C). You can have MSG_BASELINE_NED inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the baseline solution in North East Down (NED) coordinates. This baseline is the relative vector distance from the base station to the rover receiver, and NED coordinate system is defined at the local WGS84 tangent plane centered at the base station position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of- week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Baseline North coordinate e : int Baseline East coordinate d : int Baseline Down coordinate h_accuracy : int Horizontal position estimated standard deviation v_accuracy : int Vertical position estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgBaselineNED, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgBaselineNED, self).__init__() self.msg_type = SBP_MSG_BASELINE_NED self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgBaselineNED.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgBaselineNED(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgBaselineNED._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgBaselineNED._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgBaselineNED._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgBaselineNED, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_ECEF = 0x020D class MsgVelECEF(SBP): """SBP class for message MSG_VEL_ECEF (0x020D). You can have MSG_VEL_ECEF inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity ECEF X coordinate y : int Velocity ECEF Y coordinate z : int Velocity ECEF Z coordinate accuracy : int Velocity estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelECEF, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelECEF, self).__init__() self.msg_type = SBP_MSG_VEL_ECEF self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelECEF.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelECEF(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelECEF._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelECEF._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelECEF._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelECEF, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_ECEF_COV = 0x0215 class MsgVelECEFCov(SBP): """SBP class for message MSG_VEL_ECEF_COV (0x0215). You can have MSG_VEL_ECEF_COV inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity ECEF X coordinate y : int Velocity ECEF Y coordinate z : int Velocity ECEF Z coordinate cov_x_x : float Estimated variance of x cov_x_y : float Estimated covariance of x and y cov_x_z : float Estimated covariance of x and z cov_y_y : float Estimated variance of y cov_y_z : float Estimated covariance of y and z cov_z_z : float Estimated variance of z n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'cov_x_x' / construct.Float32l, 'cov_x_y' / construct.Float32l, 'cov_x_z' / construct.Float32l, 'cov_y_y' / construct.Float32l, 'cov_y_z' / construct.Float32l, 'cov_z_z' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'cov_x_x', 'cov_x_y', 'cov_x_z', 'cov_y_y', 'cov_y_z', 'cov_z_z', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelECEFCov, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelECEFCov, self).__init__() self.msg_type = SBP_MSG_VEL_ECEF_COV self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.cov_x_x = kwargs.pop('cov_x_x') self.cov_x_y = kwargs.pop('cov_x_y') self.cov_x_z = kwargs.pop('cov_x_z') self.cov_y_y = kwargs.pop('cov_y_y') self.cov_y_z = kwargs.pop('cov_y_z') self.cov_z_z = kwargs.pop('cov_z_z') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelECEFCov.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelECEFCov(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelECEFCov._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelECEFCov._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelECEFCov._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelECEFCov, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_NED = 0x020E class MsgVelNED(SBP): """SBP class for message MSG_VEL_NED (0x020E). You can have MSG_VEL_NED inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in local North East Down (NED) coordinates. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Velocity North coordinate e : int Velocity East coordinate d : int Velocity Down coordinate h_accuracy : int Horizontal velocity estimated standard deviation v_accuracy : int Vertical velocity estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelNED, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelNED, self).__init__() self.msg_type = SBP_MSG_VEL_NED self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelNED.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelNED(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelNED._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelNED._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelNED._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelNED, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_NED_COV = 0x0212 class MsgVelNEDCov(SBP): """SBP class for message MSG_VEL_NED_COV (0x0212). You can have MSG_VEL_NED_COV inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in local North East Down (NED) coordinates. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). This message is similar to the MSG_VEL_NED, but it includes the upper triangular portion of the 3x3 covariance matrix. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Velocity North coordinate e : int Velocity East coordinate d : int Velocity Down coordinate cov_n_n : float Estimated variance of northward measurement cov_n_e : float Covariance of northward and eastward measurement cov_n_d : float Covariance of northward and downward measurement cov_e_e : float Estimated variance of eastward measurement cov_e_d : float Covariance of eastward and downward measurement cov_d_d : float Estimated variance of downward measurement n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'cov_n_n' / construct.Float32l, 'cov_n_e' / construct.Float32l, 'cov_n_d' / construct.Float32l, 'cov_e_e' / construct.Float32l, 'cov_e_d' / construct.Float32l, 'cov_d_d' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'cov_n_n', 'cov_n_e', 'cov_n_d', 'cov_e_e', 'cov_e_d', 'cov_d_d', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelNEDCov, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelNEDCov, self).__init__() self.msg_type = SBP_MSG_VEL_NED_COV self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.cov_n_n = kwargs.pop('cov_n_n') self.cov_n_e = kwargs.pop('cov_n_e') self.cov_n_d = kwargs.pop('cov_n_d') self.cov_e_e = kwargs.pop('cov_e_e') self.cov_e_d = kwargs.pop('cov_e_d') self.cov_d_d = kwargs.pop('cov_d_d') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelNEDCov.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelNEDCov(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelNEDCov._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelNEDCov._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelNEDCov._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelNEDCov, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_ECEF_GNSS = 0x0229 class MsgPosECEFGnss(SBP): """SBP class for message MSG_POS_ECEF_GNSS (0x0229). You can have MSG_POS_ECEF_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : double ECEF X coordinate y : double ECEF Y coordinate z : double ECEF Z coordinate accuracy : int Position estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Float64l, 'y' / construct.Float64l, 'z' / construct.Float64l, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosECEFGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosECEFGnss, self).__init__() self.msg_type = SBP_MSG_POS_ECEF_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosECEFGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosECEFGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosECEFGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosECEFGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosECEFGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosECEFGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_ECEF_COV_GNSS = 0x0234 class MsgPosECEFCovGnss(SBP): """SBP class for message MSG_POS_ECEF_COV_GNSS (0x0234). You can have MSG_POS_ECEF_COV_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. The message also reports the upper triangular portion of the 3x3 covariance matrix. If the receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : double ECEF X coordinate y : double ECEF Y coordinate z : double ECEF Z coordinate cov_x_x : float Estimated variance of x cov_x_y : float Estimated covariance of x and y cov_x_z : float Estimated covariance of x and z cov_y_y : float Estimated variance of y cov_y_z : float Estimated covariance of y and z cov_z_z : float Estimated variance of z n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Float64l, 'y' / construct.Float64l, 'z' / construct.Float64l, 'cov_x_x' / construct.Float32l, 'cov_x_y' / construct.Float32l, 'cov_x_z' / construct.Float32l, 'cov_y_y' / construct.Float32l, 'cov_y_z' / construct.Float32l, 'cov_z_z' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'cov_x_x', 'cov_x_y', 'cov_x_z', 'cov_y_y', 'cov_y_z', 'cov_z_z', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosECEFCovGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosECEFCovGnss, self).__init__() self.msg_type = SBP_MSG_POS_ECEF_COV_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.cov_x_x = kwargs.pop('cov_x_x') self.cov_x_y = kwargs.pop('cov_x_y') self.cov_x_z = kwargs.pop('cov_x_z') self.cov_y_y = kwargs.pop('cov_y_y') self.cov_y_z = kwargs.pop('cov_y_z') self.cov_z_z = kwargs.pop('cov_z_z') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosECEFCovGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosECEFCovGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosECEFCovGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosECEFCovGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosECEFCovGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosECEFCovGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH_GNSS = 0x022A class MsgPosLLHGnss(SBP): """SBP class for message MSG_POS_LLH_GNSS (0x022A). You can have MSG_POS_LLH_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height above WGS84 ellipsoid h_accuracy : int Horizontal position estimated standard deviation v_accuracy : int Vertical position estimated standard deviation n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLHGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLHGnss, self).__init__() self.msg_type = SBP_MSG_POS_LLH_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLHGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLHGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLHGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLHGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLHGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLHGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH_COV_GNSS = 0x0231 class MsgPosLLHCovGnss(SBP): """SBP class for message MSG_POS_LLH_COV_GNSS (0x0231). You can have MSG_POS_LLH_COV_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution as well as the upper triangle of the 3x3 covariance matrix. The position information and Fix Mode flags should follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level North, East, Down frame, the covariance terms follow with that convention. Thus, covariances are reported against the "downward" measurement and care should be taken with the sign convention. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height above WGS84 ellipsoid cov_n_n : float Estimated variance of northing cov_n_e : float Covariance of northing and easting cov_n_d : float Covariance of northing and downward measurement cov_e_e : float Estimated variance of easting cov_e_d : float Covariance of easting and downward measurement cov_d_d : float Estimated variance of downward measurement n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'cov_n_n' / construct.Float32l, 'cov_n_e' / construct.Float32l, 'cov_n_d' / construct.Float32l, 'cov_e_e' / construct.Float32l, 'cov_e_d' / construct.Float32l, 'cov_d_d' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'cov_n_n', 'cov_n_e', 'cov_n_d', 'cov_e_e', 'cov_e_d', 'cov_d_d', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLHCovGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLHCovGnss, self).__init__() self.msg_type = SBP_MSG_POS_LLH_COV_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.cov_n_n = kwargs.pop('cov_n_n') self.cov_n_e = kwargs.pop('cov_n_e') self.cov_n_d = kwargs.pop('cov_n_d') self.cov_e_e = kwargs.pop('cov_e_e') self.cov_e_d = kwargs.pop('cov_e_d') self.cov_d_d = kwargs.pop('cov_d_d') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLHCovGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLHCovGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLHCovGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLHCovGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLHCovGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLHCovGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_ECEF_GNSS = 0x022D class MsgVelECEFGnss(SBP): """SBP class for message MSG_VEL_ECEF_GNSS (0x022D). You can have MSG_VEL_ECEF_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity ECEF X coordinate y : int Velocity ECEF Y coordinate z : int Velocity ECEF Z coordinate accuracy : int Velocity estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelECEFGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelECEFGnss, self).__init__() self.msg_type = SBP_MSG_VEL_ECEF_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelECEFGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelECEFGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelECEFGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelECEFGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelECEFGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelECEFGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_ECEF_COV_GNSS = 0x0235 class MsgVelECEFCovGnss(SBP): """SBP class for message MSG_VEL_ECEF_COV_GNSS (0x0235). You can have MSG_VEL_ECEF_COV_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity ECEF X coordinate y : int Velocity ECEF Y coordinate z : int Velocity ECEF Z coordinate cov_x_x : float Estimated variance of x cov_x_y : float Estimated covariance of x and y cov_x_z : float Estimated covariance of x and z cov_y_y : float Estimated variance of y cov_y_z : float Estimated covariance of y and z cov_z_z : float Estimated variance of z n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'cov_x_x' / construct.Float32l, 'cov_x_y' / construct.Float32l, 'cov_x_z' / construct.Float32l, 'cov_y_y' / construct.Float32l, 'cov_y_z' / construct.Float32l, 'cov_z_z' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'cov_x_x', 'cov_x_y', 'cov_x_z', 'cov_y_y', 'cov_y_z', 'cov_z_z', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelECEFCovGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelECEFCovGnss, self).__init__() self.msg_type = SBP_MSG_VEL_ECEF_COV_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.cov_x_x = kwargs.pop('cov_x_x') self.cov_x_y = kwargs.pop('cov_x_y') self.cov_x_z = kwargs.pop('cov_x_z') self.cov_y_y = kwargs.pop('cov_y_y') self.cov_y_z = kwargs.pop('cov_y_z') self.cov_z_z = kwargs.pop('cov_z_z') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelECEFCovGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelECEFCovGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelECEFCovGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelECEFCovGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelECEFCovGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelECEFCovGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_NED_GNSS = 0x022E class MsgVelNEDGnss(SBP): """SBP class for message MSG_VEL_NED_GNSS (0x022E). You can have MSG_VEL_NED_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in local North East Down (NED) coordinates. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Velocity North coordinate e : int Velocity East coordinate d : int Velocity Down coordinate h_accuracy : int Horizontal velocity estimated standard deviation v_accuracy : int Vertical velocity estimated standard deviation n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelNEDGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelNEDGnss, self).__init__() self.msg_type = SBP_MSG_VEL_NED_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelNEDGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelNEDGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelNEDGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelNEDGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelNEDGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelNEDGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_NED_COV_GNSS = 0x0232 class MsgVelNEDCovGnss(SBP): """SBP class for message MSG_VEL_NED_COV_GNSS (0x0232). You can have MSG_VEL_NED_COV_GNSS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in local North East Down (NED) coordinates. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). This message is similar to the MSG_VEL_NED, but it includes the upper triangular portion of the 3x3 covariance matrix. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Velocity North coordinate e : int Velocity East coordinate d : int Velocity Down coordinate cov_n_n : float Estimated variance of northward measurement cov_n_e : float Covariance of northward and eastward measurement cov_n_d : float Covariance of northward and downward measurement cov_e_e : float Estimated variance of eastward measurement cov_e_d : float Covariance of eastward and downward measurement cov_d_d : float Estimated variance of downward measurement n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'cov_n_n' / construct.Float32l, 'cov_n_e' / construct.Float32l, 'cov_n_d' / construct.Float32l, 'cov_e_e' / construct.Float32l, 'cov_e_d' / construct.Float32l, 'cov_d_d' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'cov_n_n', 'cov_n_e', 'cov_n_d', 'cov_e_e', 'cov_e_d', 'cov_d_d', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelNEDCovGnss, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelNEDCovGnss, self).__init__() self.msg_type = SBP_MSG_VEL_NED_COV_GNSS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.cov_n_n = kwargs.pop('cov_n_n') self.cov_n_e = kwargs.pop('cov_n_e') self.cov_n_d = kwargs.pop('cov_n_d') self.cov_e_e = kwargs.pop('cov_e_e') self.cov_e_d = kwargs.pop('cov_e_d') self.cov_d_d = kwargs.pop('cov_d_d') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelNEDCovGnss.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelNEDCovGnss(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelNEDCovGnss._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelNEDCovGnss._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelNEDCovGnss._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelNEDCovGnss, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_BODY = 0x0213 class MsgVelBody(SBP): """SBP class for message MSG_VEL_BODY (0x0213). You can have MSG_VEL_BODY inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in the Vehicle Body Frame. By convention, the x-axis should point out the nose of the vehicle and represent the forward direction, while as the y-axis should point out the right hand side of the vehicle. Since this is a right handed system, z should point out the bottom of the vehicle. The orientation and origin of the Vehicle Body Frame are specified via the device settings. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). This message is only produced by inertial versions of Swift products and is not available from Piksi Multi or Duro. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity in x direction y : int Velocity in y direction z : int Velocity in z direction cov_x_x : float Estimated variance of x cov_x_y : float Covariance of x and y cov_x_z : float Covariance of x and z cov_y_y : float Estimated variance of y cov_y_z : float Covariance of y and z cov_z_z : float Estimated variance of z n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'cov_x_x' / construct.Float32l, 'cov_x_y' / construct.Float32l, 'cov_x_z' / construct.Float32l, 'cov_y_y' / construct.Float32l, 'cov_y_z' / construct.Float32l, 'cov_z_z' / construct.Float32l, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'cov_x_x', 'cov_x_y', 'cov_x_z', 'cov_y_y', 'cov_y_z', 'cov_z_z', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelBody, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelBody, self).__init__() self.msg_type = SBP_MSG_VEL_BODY self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.cov_x_x = kwargs.pop('cov_x_x') self.cov_x_y = kwargs.pop('cov_x_y') self.cov_x_z = kwargs.pop('cov_x_z') self.cov_y_y = kwargs.pop('cov_y_y') self.cov_y_z = kwargs.pop('cov_y_z') self.cov_z_z = kwargs.pop('cov_z_z') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelBody.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelBody(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelBody._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelBody._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelBody._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelBody, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_AGE_CORRECTIONS = 0x0210 class MsgAgeCorrections(SBP): """SBP class for message MSG_AGE_CORRECTIONS (0x0210). You can have MSG_AGE_CORRECTIONS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the Age of the corrections used for the current Differential solution. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week age : int Age of the corrections (0xFFFF indicates invalid) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'age' / construct.Int16ul,) __slots__ = [ 'tow', 'age', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgAgeCorrections, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgAgeCorrections, self).__init__() self.msg_type = SBP_MSG_AGE_CORRECTIONS self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.age = kwargs.pop('age') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgAgeCorrections.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgAgeCorrections(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgAgeCorrections._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgAgeCorrections._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgAgeCorrections._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgAgeCorrections, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_GPS_TIME_DEP_A = 0x0100 class MsgGPSTimeDepA(SBP): """SBP class for message MSG_GPS_TIME_DEP_A (0x0100). You can have MSG_GPS_TIME_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the GPS time, representing the time since the GPS epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale. Within each week number, the GPS time of the week is between between 0 and 604800 seconds (=60*60*24*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small offset from UTC. In a message stream, this message precedes a set of other navigation messages referenced to the same time (but lacking the ns field) and indicates a more precise time of these messages. Parameters ---------- sbp : SBP SBP parent object to inherit from. wn : int GPS week number tow : int GPS time of week rounded to the nearest millisecond ns_residual : int Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) flags : int Status flags (reserved) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'wn' / construct.Int16ul, 'tow' / construct.Int32ul, 'ns_residual' / construct.Int32sl, 'flags' / construct.Int8ul,) __slots__ = [ 'wn', 'tow', 'ns_residual', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgGPSTimeDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgGPSTimeDepA, self).__init__() self.msg_type = SBP_MSG_GPS_TIME_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.wn = kwargs.pop('wn') self.tow = kwargs.pop('tow') self.ns_residual = kwargs.pop('ns_residual') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgGPSTimeDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgGPSTimeDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgGPSTimeDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgGPSTimeDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgGPSTimeDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgGPSTimeDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_DOPS_DEP_A = 0x0206 class MsgDopsDepA(SBP): """SBP class for message MSG_DOPS_DEP_A (0x0206). You can have MSG_DOPS_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This dilution of precision (DOP) message describes the effect of navigation satellite geometry on positional measurement precision. Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week gdop : int Geometric Dilution of Precision pdop : int Position Dilution of Precision tdop : int Time Dilution of Precision hdop : int Horizontal Dilution of Precision vdop : int Vertical Dilution of Precision sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'gdop' / construct.Int16ul, 'pdop' / construct.Int16ul, 'tdop' / construct.Int16ul, 'hdop' / construct.Int16ul, 'vdop' / construct.Int16ul,) __slots__ = [ 'tow', 'gdop', 'pdop', 'tdop', 'hdop', 'vdop', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgDopsDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgDopsDepA, self).__init__() self.msg_type = SBP_MSG_DOPS_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.gdop = kwargs.pop('gdop') self.pdop = kwargs.pop('pdop') self.tdop = kwargs.pop('tdop') self.hdop = kwargs.pop('hdop') self.vdop = kwargs.pop('vdop') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgDopsDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgDopsDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgDopsDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgDopsDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgDopsDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgDopsDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_ECEF_DEP_A = 0x0200 class MsgPosECEFDepA(SBP): """SBP class for message MSG_POS_ECEF_DEP_A (0x0200). You can have MSG_POS_ECEF_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : double ECEF X coordinate y : double ECEF Y coordinate z : double ECEF Z coordinate accuracy : int Position accuracy estimate (not implemented). Defaults to 0. n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Float64l, 'y' / construct.Float64l, 'z' / construct.Float64l, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosECEFDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosECEFDepA, self).__init__() self.msg_type = SBP_MSG_POS_ECEF_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosECEFDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosECEFDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosECEFDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosECEFDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosECEFDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosECEFDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_POS_LLH_DEP_A = 0x0201 class MsgPosLLHDepA(SBP): """SBP class for message MSG_POS_LLH_DEP_A (0x0201). You can have MSG_POS_LLH_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute position solution using the base station position and the rover's RTK baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week lat : double Latitude lon : double Longitude height : double Height h_accuracy : int Horizontal position accuracy estimate (not implemented). Defaults to 0. v_accuracy : int Vertical position accuracy estimate (not implemented). Defaults to 0. n_sats : int Number of satellites used in solution. flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'lat', 'lon', 'height', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgPosLLHDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgPosLLHDepA, self).__init__() self.msg_type = SBP_MSG_POS_LLH_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgPosLLHDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgPosLLHDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgPosLLHDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgPosLLHDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgPosLLHDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgPosLLHDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_BASELINE_ECEF_DEP_A = 0x0202 class MsgBaselineECEFDepA(SBP): """SBP class for message MSG_BASELINE_ECEF_DEP_A (0x0202). You can have MSG_BASELINE_ECEF_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the baseline solution in Earth Centered Earth Fixed (ECEF) coordinates. This baseline is the relative vector distance from the base station to the rover receiver. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Baseline ECEF X coordinate y : int Baseline ECEF Y coordinate z : int Baseline ECEF Z coordinate accuracy : int Position accuracy estimate n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgBaselineECEFDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgBaselineECEFDepA, self).__init__() self.msg_type = SBP_MSG_BASELINE_ECEF_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgBaselineECEFDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgBaselineECEFDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgBaselineECEFDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgBaselineECEFDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgBaselineECEFDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgBaselineECEFDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_BASELINE_NED_DEP_A = 0x0203 class MsgBaselineNEDDepA(SBP): """SBP class for message MSG_BASELINE_NED_DEP_A (0x0203). You can have MSG_BASELINE_NED_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the baseline solution in North East Down (NED) coordinates. This baseline is the relative vector distance from the base station to the rover receiver, and NED coordinate system is defined at the local WGS84 tangent plane centered at the base station position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of- week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Baseline North coordinate e : int Baseline East coordinate d : int Baseline Down coordinate h_accuracy : int Horizontal position accuracy estimate (not implemented). Defaults to 0. v_accuracy : int Vertical position accuracy estimate (not implemented). Defaults to 0. n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgBaselineNEDDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgBaselineNEDDepA, self).__init__() self.msg_type = SBP_MSG_BASELINE_NED_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgBaselineNEDDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgBaselineNEDDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgBaselineNEDDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgBaselineNEDDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgBaselineNEDDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgBaselineNEDDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_ECEF_DEP_A = 0x0204 class MsgVelECEFDepA(SBP): """SBP class for message MSG_VEL_ECEF_DEP_A (0x0204). You can have MSG_VEL_ECEF_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week x : int Velocity ECEF X coordinate y : int Velocity ECEF Y coordinate z : int Velocity ECEF Z coordinate accuracy : int Velocity accuracy estimate (not implemented). Defaults to 0. n_sats : int Number of satellites used in solution flags : int Status flags (reserved) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'x' / construct.Int32sl, 'y' / construct.Int32sl, 'z' / construct.Int32sl, 'accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'x', 'y', 'z', 'accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelECEFDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelECEFDepA, self).__init__() self.msg_type = SBP_MSG_VEL_ECEF_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.x = kwargs.pop('x') self.y = kwargs.pop('y') self.z = kwargs.pop('z') self.accuracy = kwargs.pop('accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelECEFDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelECEFDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelECEFDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelECEFDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelECEFDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelECEFDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_VEL_NED_DEP_A = 0x0205 class MsgVelNEDDepA(SBP): """SBP class for message MSG_VEL_NED_DEP_A (0x0205). You can have MSG_VEL_NED_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the velocity in local North East Down (NED) coordinates. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week n : int Velocity North coordinate e : int Velocity East coordinate d : int Velocity Down coordinate h_accuracy : int Horizontal velocity accuracy estimate (not implemented). Defaults to 0. v_accuracy : int Vertical velocity accuracy estimate (not implemented). Defaults to 0. n_sats : int Number of satellites used in solution flags : int Status flags (reserved) sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'n' / construct.Int32sl, 'e' / construct.Int32sl, 'd' / construct.Int32sl, 'h_accuracy' / construct.Int16ul, 'v_accuracy' / construct.Int16ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'n', 'e', 'd', 'h_accuracy', 'v_accuracy', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgVelNEDDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgVelNEDDepA, self).__init__() self.msg_type = SBP_MSG_VEL_NED_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.n = kwargs.pop('n') self.e = kwargs.pop('e') self.d = kwargs.pop('d') self.h_accuracy = kwargs.pop('h_accuracy') self.v_accuracy = kwargs.pop('v_accuracy') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgVelNEDDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgVelNEDDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgVelNEDDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgVelNEDDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgVelNEDDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgVelNEDDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_BASELINE_HEADING_DEP_A = 0x0207 class MsgBaselineHeadingDepA(SBP): """SBP class for message MSG_BASELINE_HEADING_DEP_A (0x0207). You can have MSG_BASELINE_HEADING_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the baseline heading pointing from the base station to the rover relative to True North. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week heading : int Heading n_sats : int Number of satellites used in solution flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'heading' / construct.Int32ul, 'n_sats' / construct.Int8ul, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'heading', 'n_sats', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgBaselineHeadingDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgBaselineHeadingDepA, self).__init__() self.msg_type = SBP_MSG_BASELINE_HEADING_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.heading = kwargs.pop('heading') self.n_sats = kwargs.pop('n_sats') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgBaselineHeadingDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgBaselineHeadingDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgBaselineHeadingDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgBaselineHeadingDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgBaselineHeadingDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgBaselineHeadingDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_PROTECTION_LEVEL_DEP_A = 0x0216 class MsgProtectionLevelDepA(SBP): """SBP class for message MSG_PROTECTION_LEVEL_DEP_A (0x0216). You can have MSG_PROTECTION_LEVEL_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the local vertical and horizontal protection levels associated with a given LLH position solution. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week vpl : int Vertical protection level hpl : int Horizontal protection level lat : double Latitude lon : double Longitude height : double Height flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'vpl' / construct.Int16ul, 'hpl' / construct.Int16ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'flags' / construct.Int8ul,) __slots__ = [ 'tow', 'vpl', 'hpl', 'lat', 'lon', 'height', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgProtectionLevelDepA, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgProtectionLevelDepA, self).__init__() self.msg_type = SBP_MSG_PROTECTION_LEVEL_DEP_A self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.vpl = kwargs.pop('vpl') self.hpl = kwargs.pop('hpl') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgProtectionLevelDepA.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgProtectionLevelDepA(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgProtectionLevelDepA._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgProtectionLevelDepA._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgProtectionLevelDepA._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgProtectionLevelDepA, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d SBP_MSG_PROTECTION_LEVEL = 0x0217 class MsgProtectionLevel(SBP): """SBP class for message MSG_PROTECTION_LEVEL (0x0217). You can have MSG_PROTECTION_LEVEL inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. This message reports the protection levels associated to the given state estimate. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Parameters ---------- sbp : SBP SBP parent object to inherit from. tow : int GPS Time of Week wn : int GPS week number hpl : int Horizontal protection level vpl : int Vertical protection level atpl : int Along-track position error protection level ctpl : int Cross-track position error protection level hvpl : int Protection level for the error vector between estimated and true along/cross track velocity vector vvpl : int Protection level for the velocity in vehicle upright direction (different from vertical direction if on a slope) hopl : int Heading orientation protection level popl : int Pitch orientation protection level ropl : int Roll orientation protection level lat : double Latitude lon : double Longitude height : double Height v_x : int Velocity in vehicle x direction v_y : int Velocity in vehicle y direction v_z : int Velocity in vehicle z direction roll : int Roll angle pitch : int Pitch angle heading : int Heading angle flags : int Status flags sender : int Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). """ _parser = construct.Struct( 'tow' / construct.Int32ul, 'wn' / construct.Int16sl, 'hpl' / construct.Int16ul, 'vpl' / construct.Int16ul, 'atpl' / construct.Int16ul, 'ctpl' / construct.Int16ul, 'hvpl' / construct.Int16ul, 'vvpl' / construct.Int16ul, 'hopl' / construct.Int16ul, 'popl' / construct.Int16ul, 'ropl' / construct.Int16ul, 'lat' / construct.Float64l, 'lon' / construct.Float64l, 'height' / construct.Float64l, 'v_x' / construct.Int32sl, 'v_y' / construct.Int32sl, 'v_z' / construct.Int32sl, 'roll' / construct.Int32sl, 'pitch' / construct.Int32sl, 'heading' / construct.Int32sl, 'flags' / construct.Int32ul,) __slots__ = [ 'tow', 'wn', 'hpl', 'vpl', 'atpl', 'ctpl', 'hvpl', 'vvpl', 'hopl', 'popl', 'ropl', 'lat', 'lon', 'height', 'v_x', 'v_y', 'v_z', 'roll', 'pitch', 'heading', 'flags', ] def __init__(self, sbp=None, **kwargs): if sbp: super( MsgProtectionLevel, self).__init__(sbp.msg_type, sbp.sender, sbp.length, sbp.payload, sbp.crc) self.from_binary(sbp.payload) else: super( MsgProtectionLevel, self).__init__() self.msg_type = SBP_MSG_PROTECTION_LEVEL self.sender = kwargs.pop('sender', SENDER_ID) self.tow = kwargs.pop('tow') self.wn = kwargs.pop('wn') self.hpl = kwargs.pop('hpl') self.vpl = kwargs.pop('vpl') self.atpl = kwargs.pop('atpl') self.ctpl = kwargs.pop('ctpl') self.hvpl = kwargs.pop('hvpl') self.vvpl = kwargs.pop('vvpl') self.hopl = kwargs.pop('hopl') self.popl = kwargs.pop('popl') self.ropl = kwargs.pop('ropl') self.lat = kwargs.pop('lat') self.lon = kwargs.pop('lon') self.height = kwargs.pop('height') self.v_x = kwargs.pop('v_x') self.v_y = kwargs.pop('v_y') self.v_z = kwargs.pop('v_z') self.roll = kwargs.pop('roll') self.pitch = kwargs.pop('pitch') self.heading = kwargs.pop('heading') self.flags = kwargs.pop('flags') def __repr__(self): return fmt_repr(self) @staticmethod def from_json(s): """Given a JSON-encoded string s, build a message object. """ d = json.loads(s) return MsgProtectionLevel.from_json_dict(d) @staticmethod def from_json_dict(d): sbp = SBP.from_json_dict(d) return MsgProtectionLevel(sbp, **d) def from_binary(self, d): """Given a binary payload d, update the appropriate payload fields of the message. """ p = MsgProtectionLevel._parser.parse(d) for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) def to_binary(self): """Produce a framed/packed SBP message. """ c = containerize(exclude_fields(self)) self.payload = MsgProtectionLevel._parser.build(c) return self.pack() def into_buffer(self, buf, offset): """Produce a framed/packed SBP message into the provided buffer and offset. """ self.payload = containerize(exclude_fields(self)) self.parser = MsgProtectionLevel._parser self.stream_payload.reset(buf, offset) return self.pack_into(buf, offset, self._build_payload) def to_json_dict(self): self.to_binary() d = super( MsgProtectionLevel, self).to_json_dict() j = walk_json_dict(exclude_fields(self)) d.update(j) return d msg_classes = { 0x0102: MsgGPSTime, 0x0104: MsgGPSTimeGnss, 0x0103: MsgUtcTime, 0x0105: MsgUtcTimeGnss, 0x0208: MsgDops, 0x0209: MsgPosECEF, 0x0214: MsgPosECEFCov, 0x020A: MsgPosLLH, 0x0211: MsgPosLLHCov, 0x0218: MsgPosLLHAcc, 0x020B: MsgBaselineECEF, 0x020C: MsgBaselineNED, 0x020D: MsgVelECEF, 0x0215: MsgVelECEFCov, 0x020E: MsgVelNED, 0x0212: MsgVelNEDCov, 0x0229: MsgPosECEFGnss, 0x0234: MsgPosECEFCovGnss, 0x022A: MsgPosLLHGnss, 0x0231: MsgPosLLHCovGnss, 0x022D: MsgVelECEFGnss, 0x0235: MsgVelECEFCovGnss, 0x022E: MsgVelNEDGnss, 0x0232: MsgVelNEDCovGnss, 0x0213: MsgVelBody, 0x0210: MsgAgeCorrections, 0x0100: MsgGPSTimeDepA, 0x0206: MsgDopsDepA, 0x0200: MsgPosECEFDepA, 0x0201: MsgPosLLHDepA, 0x0202: MsgBaselineECEFDepA, 0x0203: MsgBaselineNEDDepA, 0x0204: MsgVelECEFDepA, 0x0205: MsgVelNEDDepA, 0x0207: MsgBaselineHeadingDepA, 0x0216: MsgProtectionLevelDepA, 0x0217: MsgProtectionLevel, }
29.675444
88
0.628066
19,515
148,763
4.595952
0.028952
0.035924
0.014851
0.016089
0.878682
0.87032
0.859929
0.855558
0.845457
0.83259
0
0.012053
0.274961
148,763
5,013
89
29.675444
0.819496
0.352426
0
0.787009
0
0
0.052665
0
0
0
0.004805
0
0
1
0.112915
false
0
0.001511
0.01435
0.241692
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e3e40919e6533e1b11bce645430558b413285a03
141
py
Python
main.py
Hannah-Ashna/git-cli-workshop
62951f4b379f6f7442467ff1c3c2018ca908565e
[ "MIT" ]
null
null
null
main.py
Hannah-Ashna/git-cli-workshop
62951f4b379f6f7442467ff1c3c2018ca908565e
[ "MIT" ]
null
null
null
main.py
Hannah-Ashna/git-cli-workshop
62951f4b379f6f7442467ff1c3c2018ca908565e
[ "MIT" ]
null
null
null
name = input("Enter your name: ") print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA wassup " + name)
47
106
0.843972
9
141
13.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.078014
141
2
107
70.5
0.915385
0
0
0
0
0
0.758865
0.58156
0
1
0
0
0
1
0
false
0
0
0
0
0.5
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
1
1
null
1
0
0
0
0
0
0
0
0
0
0
1
0
7
5404015b4206c1730c53b4bd0e84fd22d27fb94e
64,716
py
Python
neuralNetwork.py
xavigs/tennis-predictor
60f71723744f15fb601d1cf0612d417cd0c13923
[ "MIT" ]
6
2019-05-28T15:38:58.000Z
2022-01-14T10:01:37.000Z
neuralNetwork.py
xavigs/the-beast
60f71723744f15fb601d1cf0612d417cd0c13923
[ "MIT" ]
null
null
null
neuralNetwork.py
xavigs/the-beast
60f71723744f15fb601d1cf0612d417cd0c13923
[ "MIT" ]
2
2019-04-16T19:38:09.000Z
2019-05-28T15:38:59.000Z
from cassandra.cluster import Cluster import numpy as np import matplotlib.pyplot as plt from pprint import pprint from colorclass import Color, Windows from terminaltables import SingleTable import random def sigmoid(x): return 1.0 / (1.0 + np.exp(-x)) def sigmoid_derivative(x): return sigmoid(x) * (1.0 - sigmoid(x)) def tanh(x): return np.tanh(x) def tanh_derivative(x): return 1.0 - x ** 2 class NeuralNetwork: def __init__(self, layers, activation='tanh'): if activation == 'sigmoid': self.activation = sigmoid self.activation_prime = sigmoid_derivative elif activation == 'tanh': self.activation = tanh self.activation_prime = tanh_derivative # Init weights self.weights = [] self.deltas = [] # Set random values for i in range(1, len(layers) - 1): r = 2 * np.random.random((layers[i-1] + 1, layers[i] + 1)) -1 self.weights.append(r) r = 2 * np.random.random((layers[i] + 1, layers[i+1])) - 1 self.weights.append(r) def fit(self, X, y, learning_rate=0.2, epochs=100000): origin = X ones = np.atleast_2d(np.ones(X.shape[0])) X = np.concatenate((ones.T, X), axis=1) for k in range(epochs): i = np.random.randint(X.shape[0]) a = [X[i]] for l in range(len(self.weights)): dot_value = np.dot(a[l], self.weights[l]) activation = self.activation(dot_value) a.append(activation) error = y[i] - a[-1] deltas = [error * self.activation_prime(a[-1])] for l in range(len(a) - 2, 0, -1): deltas.append(deltas[-1].dot(self.weights[l].T)*self.activation_prime(a[l])) self.deltas.append(deltas) deltas.reverse() # Backpropagation for i in range(len(self.weights)): layer = np.atleast_2d(a[i]) delta = np.atleast_2d(deltas[i]) self.weights[i] += learning_rate * layer.T.dot(delta) if k % 10000 == 0: print('epochs:', k) # Generem el valor del gràfic if k % (epochs / 200) == 0: global values total_errors = 0 total_items = len(origin) for i, item in enumerate(origin): coef = self.predict(item) if coef[0] < 0 and y[i] == 1 or coef[0] > 0 and y[i] == -1: total_errors += 1 pct_errors = round((total_errors * 100) / total_items, 2) values.append(pct_errors) # Predicció global Z global sol global values_predicted total_errors = 0 total_items = len(Z) for i, item in enumerate(Z): coef = self.predict(item) if coef[0] < 0 and sol[i] == 1 or coef[0] > 0 and sol[i] == -1: total_errors += 1 pct_errors = round((total_errors * 100) / total_items, 2) values_predicted.append(pct_errors) def predict(self, x): ones = np.atleast_2d(np.ones(x.shape[0])) a = np.concatenate((np.ones(1).T, np.array(x)), axis=0) for l in range(0, len(self.weights)): a = self.activation(np.dot(a, self.weights[l])) return a def print_weights(self): print("Llistat de pesos de connexions") for i in range(len(self.weights)): print(self.weights[i]) def get_deltas(self): return self.deltas # Variables Windows.enable(auto_colors=True, reset_atexit=True) # Does nothing if not on Windows rounds = ["1R", "2R", "3R", "R16", "QF", "SF", "F"] categories = ["250", "500", "1000", "grandslam"] surfaces = ["H", "C", "G", "I"] intervals = {"<1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.50-1.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.00-2.49": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.50-2.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}, ">2.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}} value_intervals = {"<1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, ">3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}} games_train = [] games = [] winners_train = [] games_predict = [] predict = [] winners_sim = [] dates_train = [] dates_predict = [] tournaments_train = [] tournaments_predict = [] games_names_train = [] games_names_predict = [] values = [] values_predicted = [] num_epochs = 50000000 nn = NeuralNetwork([21, 15, 15, 15, 1], activation = 'tanh') # Open connection cluster = Cluster(["127.0.0.1"]) session = cluster.connect("beast") # Get games from DB ''' Torneig - Ronda - Local - Edat - Rank - Race - RankMax - H2H - %Any - %AnySup - %SupCar - 3Mesos - PtsDef - Odd ''' query = "SELECT COUNT(*) as num_games FROM game_train" row = session.execute(query) num_games = row[0].num_games num_games_train = round(num_games * 0.8, 0) index = 0 season = 2014 while season < 2016: for week in range(1, 45): query = "SELECT game_season, game_tournament, game_week, game_round, game_surface, game_category, game_sets, game_points, game_date, game_rank1, game_rank2, game_race1, game_race2, game_rankmax1, game_rankmax2, game_age1, game_age2, game_h2h1, game_h2h2, game_h2h_year1, game_h2h_year2, game_h2h_surface1, game_h2h_surface2, game_h2h_surface_year1, game_h2h_surface_year2, game_surface1, game_surface2, game_surface_year1, game_surface_year2, game_hand1, game_hand2, game_home1, game_home2, game_3months1, game_3months2, game_10streak1, game_10streak2, game_gp1m1, game_gp1m2, game_gp3m1, game_gp3m2, game_gp6m1, game_gp6m2, game_pts_def1, game_pts_def2, game_player1, game_player2, game_winner, game_odd1, game_odd2 FROM game_train WHERE game_season = " + str(season) + " AND game_week = " + str(week) + " ORDER BY game_id ASC" games_db = session.execute(query) for game_db in games_db: game = [] game.append(round((rounds.index(game_db.game_round) + 1) / 7, 2)) game.append(round((surfaces.index(game_db.game_surface) + 1) / 4, 2)) game.append(round((categories.index(game_db.game_category) + 1) / 4, 2)) if game_db.game_rank1 == 0 or game_db.game_rank2 == 0: game.append(0) else: if game_db.game_rank1 < game_db.game_rank2: game.append(-1) else: game.append(1) if game_db.game_race1 == 0 or game_db.game_race2 == 0: game.append(0) else: if game_db.game_race1 < game_db.game_race2: game.append(-1) else: game.append(1) if game_db.game_rankmax1 == 0 or game_db.game_rankmax2 == 0 or game_db.game_rankmax1 == game_db.game_rankmax2: game.append(0) else: if game_db.game_rankmax1 < game_db.game_rankmax2: game.append(-1) else: game.append(1) if game_db.game_h2h1 == -1 or game_db.game_h2h2 == -1: game.append(0) else: if game_db.game_h2h1 > game_db.game_h2h2: game.append(-1) else: game.append(1) if game_db.game_h2h_year1 == -1 or game_db.game_h2h_year2 == -1: game.append(0) else: if game_db.game_h2h_year1 > game_db.game_h2h_year2: game.append(-1) else: game.append(1) if game_db.game_h2h_surface1 == -1 or game_db.game_h2h_surface2 == -1: game.append(0) else: if game_db.game_h2h_surface1 > game_db.game_h2h_surface2: game.append(-1) else: game.append(1) if game_db.game_surface1 == -1 or game_db.game_surface2 == -1 or game_db.game_surface1 == game_db.game_surface2: game.append(0) else: if game_db.game_surface1 > game_db.game_surface2: game.append(-1) else: game.append(1) if game_db.game_surface_year1 == -1 or game_db.game_surface_year2 == -1 or game_db.game_surface_year1 == game_db.game_surface_year2: game.append(0) else: if game_db.game_surface_year1 > game_db.game_surface_year2: game.append(-1) else: game.append(1) if game_db.game_home1 == game_db.game_home2: game.append(0) else: if game_db.game_home1: game.append(-1) else: game.append(1) evol_3months1 = round((game_db.game_3months1 - game_db.game_rank1) * 100 / max(game_db.game_3months1, game_db.game_rank1), 0) evol_3months2 = round((game_db.game_3months2 - game_db.game_rank2) * 100 / max(game_db.game_3months2, game_db.game_rank2), 0) if evol_3months1 == evol_3months2: game.append(0) else: if evol_3months1 > evol_3months2: game.append(-1) else: game.append(1) if game_db.game_10streak1 == game_db.game_10streak2: game.append(0) else: if game_db.game_10streak1 > game_db.game_10streak2: game.append(-1) else: game.append(1) if game_db.game_gp1m1 == game_db.game_gp1m2: game.append(0) else: if game_db.game_gp1m1 > game_db.game_gp1m2: game.append(-1) else: game.append(1) if game_db.game_gp3m1 == game_db.game_gp3m2: game.append(0) else: if game_db.game_gp3m1 > game_db.game_gp3m2: game.append(-1) else: game.append(1) if game_db.game_gp6m1 == game_db.game_gp6m2: game.append(0) else: if game_db.game_gp6m1 > game_db.game_gp6m2: game.append(-1) else: game.append(1) if game_db.game_pts_def1 == game_db.game_pts_def2: game.append(0) else: if game_db.game_pts_def1 > game_db.game_pts_def2: game.append(-1) else: game.append(1) game.append(round(game_db.game_points / 2000, 4)) game.append(round(game_db.game_odd1 / 50, 4)) game.append(round(game_db.game_odd2 / 50, 4)) query_player1 = "SELECT player_name FROM player_by_atpid WHERE player_atpwt_id = '" + game_db.game_player1 + "'" player1 = session.execute(query_player1) player1_name = player1[0].player_name query_player2 = "SELECT player_name FROM player_by_atpid WHERE player_atpwt_id = '" + game_db.game_player2 + "'" player2 = session.execute(query_player2) player2_name = player2[0].player_name # Turn players randomly turn = random.randint(0, 1) if turn == 1: game[3] *= -1 game[4] *= -1 game[5] *= -1 game[6] *= -1 game[7] *= -1 game[8] *= -1 game[9] *= -1 game[10] *= -1 game[11] *= -1 game[12] *= -1 game[13] *= -1 game[14] *= -1 game[15] *= -1 game[16] *= -1 game[17] *= -1 odd1 = game[19] game[19] = game[20] game[20] = odd1 aux_name = player1_name player1_name = player2_name player2_name = aux_name winner = 1 else: winner = -1 if index < num_games_train: full_game = game.copy() games.append(full_game) #del game[0] games_train.append(game) games_names_train.append(player1_name + " - " + player2_name) dates_train.append(str(game_db.game_date)) tournaments_train.append(game_db.game_tournament.capitalize()) winners_train.append([winner]) else: full_game = game.copy() predict.append(full_game) #del game[0] games_predict.append(game) games_names_predict.append(player1_name + " - " + player2_name) dates_predict.append(str(game_db.game_date)) tournaments_predict.append(game_db.game_tournament.capitalize()) winners_sim.append([winner]) index += 1 season += 1 np.set_printoptions(suppress=True) X = np.array(games_train) y = np.array(winners_train) Z = np.array(games_predict) sol = np.array(winners_sim) # Previous prediction index = 0 for e in X: print("X:", games_names_train[index], "Sol:", y[index], "Network:", nn.predict(e)) index += 1 nn.fit(X, y, learning_rate = 0.01, epochs = num_epochs) # Prediction after training index = 0 train_table = [] train_table.append([Color('{autoyellow}Game{/autoyellow}'), Color('{autoyellow}Date{/autoyellow}'), Color('{autoyellow}Tournament{/autoyellow}'), Color('{autoyellow}Round{/autoyellow}'), Color('{autoyellow}Odd 1{/autoyellow}'), Color('{autoyellow}Odd 2{/autoyellow}'), Color('{autoyellow}Pick{/autoyellow}'), Color('{autoyellow}Prob{/autoyellow}'), Color('{autoyellow}Value{/autoyellow}'), Color('{autoyellow}Res{/autoyellow}'), Color('{autoyellow}Uts{/autoyellow}'), Color('{autoyellow}Coef{/autoyellow}')]) units = 0.0 stake = 0 hits = 0 different_probs = [] for e in X: stake += 1 row = [] row.append(games_names_train[index]) players = games_names_train[index].split(" - ") row.append(dates_train[index][:10]) row.append(tournaments_train[index]) row.append(rounds[int(round(games[index][0] * 6, 0))]) odd1 = round(games[index][19] * 50, 2) odd2 = round(games[index][20] * 50, 2) row.append(odd1) row.append(odd2) coef = nn.predict(e) if round(coef[0], 2) not in different_probs: different_probs.append(round(coef[0], 2)) prob2 = round((coef[0] + 1) * 100 / 2, 2) prob1 = round(100 - prob2, 2) inv_odd1 = 1 / odd1 inv_odd2 = 1 / odd2 inv_tot = inv_odd1 + inv_odd2 prob_bookmark1 = round(inv_odd1 * (100 - (inv_tot * 100 - 100)), 2) prob_bookmark2 = round(inv_odd2 * (100 - (inv_tot * 100 - 100)), 2) new_odd1 = round(100 / prob_bookmark1, 2) new_odd2 = round(100 / prob_bookmark2, 2) value1 = round(odd1 * prob1 / 100, 2) value2 = round(odd2 * prob2 / 100, 2) if value1 >= value2: units_pick = odd1 - 1 row.append(players[0]) row.append(str(prob1) + "%") row.append(str(value1)) if y[index] == -1: result = "W" else: result = "L" else: units_pick = odd2 - 1 row.append(players[1]) row.append(str(prob2) + "%") row.append(str(value2)) if y[index] == -1: result = "L" else: result = "W" if result == "W": hits += 1 row.append(Color('{autogreen}W{/autogreen}')) row.append("+" + str(round(units_pick, 2))) units += round(units_pick, 2) # Odds intervals if units_pick < 1.50: intervals['<1.50']['units'] += round(units_pick, 2) intervals['<1.50']['stake'] += 1 intervals['<1.50']['yield'] = round(intervals['<1.50']['units'] * 100 / intervals['<1.50']['stake'], 2) elif units_pick < 2.00: intervals['1.50-1.99']['units'] += round(units_pick, 2) intervals['1.50-1.99']['stake'] += 1 intervals['1.50-1.99']['yield'] = round(intervals['1.50-1.99']['units'] * 100 / intervals['1.50-1.99']['stake'], 2) elif units_pick < 2.49: intervals['2.00-2.49']['units'] += round(units_pick, 2) intervals['2.00-2.49']['stake'] += 1 intervals['2.00-2.49']['yield'] = round(intervals['2.00-2.49']['units'] * 100 / intervals['2.00-2.49']['stake'], 2) elif units_pick < 2.99: intervals['2.50-2.99']['units'] += round(units_pick, 2) intervals['2.50-2.99']['stake'] += 1 intervals['2.50-2.99']['yield'] = round(intervals['2.50-2.99']['units'] * 100 / intervals['2.50-2.99']['stake'], 2) else: intervals['>2.99']['units'] += round(units_pick, 2) intervals['>2.99']['stake'] += 1 intervals['>2.99']['yield'] = round(intervals['>2.99']['units'] * 100 / intervals['>2.99']['stake'], 2) # Value intervals if float(row[8]) < 1.01: value_intervals['<1.01']['units'] += round(units_pick, 2) value_intervals['<1.01']['stake'] += 1 value_intervals['<1.01']['yield'] = round(value_intervals['<1.01']['units'] * 100 / value_intervals['<1.01']['stake'], 2) elif float(row[8]) < 1.51: value_intervals['1.01-1.50']['units'] += round(units_pick, 2) value_intervals['1.01-1.50']['stake'] += 1 value_intervals['1.01-1.50']['yield'] = round(value_intervals['1.01-1.50']['units'] * 100 / value_intervals['1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: value_intervals['1.51-2.00']['units'] += round(units_pick, 2) value_intervals['1.51-2.00']['stake'] += 1 value_intervals['1.51-2.00']['yield'] = round(value_intervals['1.51-2.00']['units'] * 100 / value_intervals['1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: value_intervals['2.01-2.50']['units'] += round(units_pick, 2) value_intervals['2.01-2.50']['stake'] += 1 value_intervals['2.01-2.50']['yield'] = round(value_intervals['2.01-2.50']['units'] * 100 / value_intervals['2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: value_intervals['2.51-3.00']['units'] += round(units_pick, 2) value_intervals['2.51-3.00']['stake'] += 1 value_intervals['2.51-3.00']['yield'] = round(value_intervals['2.51-3.00']['units'] * 100 / value_intervals['2.51-3.00']['stake'], 2) else: value_intervals['>3.00']['units'] += round(units_pick, 2) value_intervals['>3.00']['stake'] += 1 value_intervals['>3.00']['yield'] = round(value_intervals['>3.00']['units'] * 100 / value_intervals['>3.00']['stake'], 2) else: row.append(Color('{autored}L{/autored}')) row.append(-1) units -= 1 # Odds intervals if units_pick < 1.50: intervals['<1.50']['units'] -= 1 intervals['<1.50']['stake'] += 1 intervals['<1.50']['yield'] = round(intervals['<1.50']['units'] * 100 / intervals['<1.50']['stake'], 2) elif units_pick < 2.00: intervals['1.50-1.99']['units'] -= 1 intervals['1.50-1.99']['stake'] += 1 intervals['1.50-1.99']['yield'] = round(intervals['1.50-1.99']['units'] * 100 / intervals['1.50-1.99']['stake'], 2) elif units_pick < 2.49: intervals['2.00-2.49']['units'] -= 1 intervals['2.00-2.49']['stake'] += 1 intervals['2.00-2.49']['yield'] = round(intervals['2.00-2.49']['units'] * 100 / intervals['2.00-2.49']['stake'], 2) elif units_pick < 2.99: intervals['2.50-2.99']['units'] -= 1 intervals['2.50-2.99']['stake'] += 1 intervals['2.50-2.99']['yield'] = round(intervals['2.50-2.99']['units'] * 100 / intervals['2.50-2.99']['stake'], 2) else: intervals['>2.99']['units'] -= 1 intervals['>2.99']['stake'] += 1 intervals['>2.99']['yield'] = round(intervals['>2.99']['units'] * 100 / intervals['>2.99']['stake'], 2) # Value intervals if float(row[8]) < 1.01: value_intervals['<1.01']['units'] -= 1 value_intervals['<1.01']['stake'] += 1 value_intervals['<1.01']['yield'] = round(value_intervals['<1.01']['units'] * 100 / value_intervals['<1.01']['stake'], 2) elif float(row[8]) < 1.51: value_intervals['1.01-1.50']['units'] -= 1 value_intervals['1.01-1.50']['stake'] += 1 value_intervals['1.01-1.50']['yield'] = round(value_intervals['1.01-1.50']['units'] * 100 / value_intervals['1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: value_intervals['1.51-2.00']['units'] -= 1 value_intervals['1.51-2.00']['stake'] += 1 value_intervals['1.51-2.00']['yield'] = round(value_intervals['1.51-2.00']['units'] * 100 / value_intervals['1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: value_intervals['2.01-2.50']['units'] -= 1 value_intervals['2.01-2.50']['stake'] += 1 value_intervals['2.01-2.50']['yield'] = round(value_intervals['2.01-2.50']['units'] * 100 / value_intervals['2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: value_intervals['2.51-3.00']['units'] -= 1 value_intervals['2.51-3.00']['stake'] += 1 value_intervals['2.51-3.00']['yield'] = round(value_intervals['2.51-3.00']['units'] * 100 / value_intervals['2.51-3.00']['stake'], 2) else: value_intervals['>3.00']['units'] -= 1 value_intervals['>3.00']['stake'] += 1 value_intervals['>3.00']['yield'] = round(value_intervals['>3.00']['units'] * 100 / value_intervals['>3.00']['stake'], 2) row.append(coef[0]) train_table.append(row) index += 1 table_instance = SingleTable(train_table, Color('{autocyan} Prediction with training games {/autocyan}')) table_instance.inner_heading_row_border = False table_instance.inner_row_border = True table_instance.justify_columns = {0: 'left', 1: 'center', 2: 'center', 3: 'center', 4: 'center', 5: 'center', 6: 'left', 7: 'center', 8: 'center', 9: 'center', 10: 'center', 11: 'center'} print("\n" + table_instance.table) print("\n" + Color('{autogreen}Units: {/autogreen}') + str(round(units, 2))) print(Color('{autogreen}Hits: {/autogreen}') + str(hits)) print(Color('{autogreen}Stake: {/autogreen}') + str(stake)) print(Color('{autogreen}Yield: {/autogreen}') + str(round(units * 100 / stake, 2)) + "%") print(Color('{autogreen}Different probabilities: {/autogreen}') + str(len(different_probs))) print(Color('{autogreen}Value intervals: {/autogreen}')) pprint(value_intervals) print(Color('{autogreen}Odd intervals: {/autogreen}')) pprint(intervals) # Prediction with new games index = 0 intervals = {"<1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.50-1.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.00-2.49": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.50-2.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}, ">2.99": {'units': 0.0, 'stake': 0, 'yield': 0.0}} value_intervals = {"<1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, ">3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}} odd_value_intervals = {"Odd <1.50 / Value <1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd <1.50 / Value 1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd <1.50 / Value 1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd <1.50 / Value 2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd <1.50 / Value 2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd <1.50 / Value >3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value <1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value 1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value 1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value 2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value 2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 1.50-1.99 / Value >3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value <1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value 1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value 1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value 2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value 2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.00-2.49 / Value >3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value <1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value 1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value 1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value 2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value 2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd 2.50-2.99 / Value >3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value <1.01": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value 1.01-1.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value 1.51-2.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value 2.01-2.50": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value 2.51-3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}, "Odd >2.99 / Value >3.00": {'units': 0.0, 'stake': 0, 'yield': 0.0}} prediction_table = [] prediction_table.append([Color('{autoyellow}Game{/autoyellow}'), Color('{autoyellow}Date{/autoyellow}'), Color('{autoyellow}Tournament{/autoyellow}'), Color('{autoyellow}Round{/autoyellow}'), Color('{autoyellow}Odd 1{/autoyellow}'), Color('{autoyellow}Odd 2{/autoyellow}'), Color('{autoyellow}Pick{/autoyellow}'), Color('{autoyellow}Prob{/autoyellow}'), Color('{autoyellow}Value{/autoyellow}'), Color('{autoyellow}Res{/autoyellow}'), Color('{autoyellow}Uts{/autoyellow}'), Color('{autoyellow}Coef{/autoyellow}')]) units = 0.0 stake = 0 hits = 0 different_probs = [] for e in Z: row = [] row.append(games_names_predict[index]) players = games_names_predict[index].split(" - ") row.append(dates_predict[index][:10]) row.append(tournaments_predict[index]) row.append(rounds[int(round(predict[index][0] * 6, 0))]) odd1 = round(predict[index][19] * 50, 2) odd2 = round(predict[index][20] * 50, 2) row.append(odd1) row.append(odd2) coef = nn.predict(e) if round(coef[0], 2) not in different_probs: different_probs.append(round(coef[0], 2)) prob2 = round((coef[0] + 1) * 100 / 2, 2) prob1 = round(100 - prob2, 2) inv_odd1 = 1 / odd1 inv_odd2 = 1 / odd2 inv_tot = inv_odd1 + inv_odd2 prob_bookmark1 = round(inv_odd1 * (100 - (inv_tot * 100 - 100)), 2) prob_bookmark2 = round(inv_odd2 * (100 - (inv_tot * 100 - 100)), 2) new_odd1 = round(100 / prob_bookmark1, 2) new_odd2 = round(100 / prob_bookmark2, 2) value1 = round(odd1 * prob1 / 100, 2) value2 = round(odd2 * prob2 / 100, 2) if value1 >= value2: units_pick = odd1 - 1 row.append(players[0]) row.append(str(prob1) + "%") row.append(str(value1)) if sol[index] == -1: result = "W" else: result = "L" else: units_pick = odd2 - 1 row.append(players[1]) row.append(str(prob2) + "%") row.append(str(value2)) if sol[index] == -1: result = "L" else: result = "W" if 1.50 < float(row[8]) <= 2.00 and 0.50 <= float(units_pick) < 2.00: stake += 1 if result == "W": hits += 1 row.append(Color('{autogreen}W{/autogreen}')) row.append("+" + str(round(units_pick, 2))) units += round(units_pick, 2) # Odds intervals if float(units_pick) < 0.50: intervals['<1.50']['units'] += round(units_pick, 2) intervals['<1.50']['stake'] += 1 intervals['<1.50']['yield'] = round(intervals['<1.50']['units'] * 100 / intervals['<1.50']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd <1.50 / Value <1.01']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value <1.01']['yield'] = round(odd_value_intervals['Odd <1.50 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd <1.50 / Value >3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd <1.50 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value >3.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value >3.00']['stake'], 2) elif float(units_pick) < 1.00: intervals['1.50-1.99']['units'] += round(units_pick, 2) intervals['1.50-1.99']['stake'] += 1 intervals['1.50-1.99']['yield'] = round(intervals['1.50-1.99']['units'] * 100 / intervals['1.50-1.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['stake'], 2) elif float(units_pick) < 1.50: intervals['2.00-2.49']['units'] += round(units_pick, 2) intervals['2.00-2.49']['stake'] += 1 intervals['2.00-2.49']['yield'] = round(intervals['2.00-2.49']['units'] * 100 / intervals['2.00-2.49']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['stake'], 2) elif float(units_pick) < 2.00: intervals['2.50-2.99']['units'] += round(units_pick, 2) intervals['2.50-2.99']['stake'] += 1 intervals['2.50-2.99']['yield'] = round(intervals['2.50-2.99']['units'] * 100 / intervals['2.50-2.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['stake'], 2) else: intervals['>2.99']['units'] += round(units_pick, 2) intervals['>2.99']['stake'] += 1 intervals['>2.99']['yield'] = round(intervals['>2.99']['units'] * 100 / intervals['>2.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd >2.99 / Value <1.01']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd >2.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd >2.99 / Value >3.00']['units'] += round(units_pick, 2) odd_value_intervals['Odd >2.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value >3.00']['stake'], 2) # Value intervals if float(row[8]) < 1.01: value_intervals['<1.01']['units'] += round(units_pick, 2) value_intervals['<1.01']['stake'] += 1 value_intervals['<1.01']['yield'] = round(value_intervals['<1.01']['units'] * 100 / value_intervals['<1.01']['stake'], 2) elif float(row[8]) < 1.51: value_intervals['1.01-1.50']['units'] += round(units_pick, 2) value_intervals['1.01-1.50']['stake'] += 1 value_intervals['1.01-1.50']['yield'] = round(value_intervals['1.01-1.50']['units'] * 100 / value_intervals['1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: value_intervals['1.51-2.00']['units'] += round(units_pick, 2) value_intervals['1.51-2.00']['stake'] += 1 value_intervals['1.51-2.00']['yield'] = round(value_intervals['1.51-2.00']['units'] * 100 / value_intervals['1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: value_intervals['2.01-2.50']['units'] += round(units_pick, 2) value_intervals['2.01-2.50']['stake'] += 1 value_intervals['2.01-2.50']['yield'] = round(value_intervals['2.01-2.50']['units'] * 100 / value_intervals['2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: value_intervals['2.51-3.00']['units'] += round(units_pick, 2) value_intervals['2.51-3.00']['stake'] += 1 value_intervals['2.51-3.00']['yield'] = round(value_intervals['2.51-3.00']['units'] * 100 / value_intervals['2.51-3.00']['stake'], 2) else: value_intervals['>3.00']['units'] += round(units_pick, 2) value_intervals['>3.00']['stake'] += 1 value_intervals['>3.00']['yield'] = round(value_intervals['>3.00']['units'] * 100 / value_intervals['>3.00']['stake'], 2) else: row.append(Color('{autored}L{/autored}')) row.append(-1) units -= 1 # Odds intervals if float(units_pick) < 0.50: intervals['<1.50']['units'] -= 1 intervals['<1.50']['stake'] += 1 intervals['<1.50']['yield'] = round(intervals['<1.50']['units'] * 100 / intervals['<1.50']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd <1.50 / Value <1.01']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value <1.01']['yield'] = round(odd_value_intervals['Odd <1.50 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd <1.50 / Value >3.00']['units'] -= 1 odd_value_intervals['Odd <1.50 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd <1.50 / Value >3.00']['yield'] = round(odd_value_intervals['Odd <1.50 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd <1.50 / Value >3.00']['stake'], 2) elif float(units_pick) < 1.00: intervals['1.50-1.99']['units'] -= 1 intervals['1.50-1.99']['stake'] += 1 intervals['1.50-1.99']['yield'] = round(intervals['1.50-1.99']['units'] * 100 / intervals['1.50-1.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['units'] -= 1 odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 1.50-1.99 / Value >3.00']['stake'], 2) elif float(units_pick) < 1.50: intervals['2.00-2.49']['units'] -= 1 intervals['2.00-2.49']['stake'] += 1 intervals['2.00-2.49']['yield'] = round(intervals['2.00-2.49']['units'] * 100 / intervals['2.00-2.49']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['units'] -= 1 odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 2.00-2.49 / Value >3.00']['stake'], 2) elif float(units_pick) < 2.00: intervals['2.50-2.99']['units'] -= 1 intervals['2.50-2.99']['stake'] += 1 intervals['2.50-2.99']['yield'] = round(intervals['2.50-2.99']['units'] * 100 / intervals['2.50-2.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['units'] -= 1 odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd 2.50-2.99 / Value >3.00']['stake'], 2) else: intervals['>2.99']['units'] -= 1 intervals['>2.99']['stake'] += 1 intervals['>2.99']['yield'] = round(intervals['>2.99']['units'] * 100 / intervals['>2.99']['stake'], 2) if float(row[8]) < 1.01: odd_value_intervals['Odd >2.99 / Value <1.01']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value <1.01']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value <1.01']['yield'] = round(odd_value_intervals['Odd >2.99 / Value <1.01']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value <1.01']['stake'], 2) elif float(row[8]) < 1.51: odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value 2.51-3.00']['stake'], 2) else: odd_value_intervals['Odd >2.99 / Value >3.00']['units'] -= 1 odd_value_intervals['Odd >2.99 / Value >3.00']['stake'] += 1 odd_value_intervals['Odd >2.99 / Value >3.00']['yield'] = round(odd_value_intervals['Odd >2.99 / Value >3.00']['units'] * 100 / odd_value_intervals['Odd >2.99 / Value >3.00']['stake'], 2) # Value intervals if float(row[8]) < 1.01: value_intervals['<1.01']['units'] -= 1 value_intervals['<1.01']['stake'] += 1 value_intervals['<1.01']['yield'] = round(value_intervals['<1.01']['units'] * 100 / value_intervals['<1.01']['stake'], 2) elif float(row[8]) < 1.51: value_intervals['1.01-1.50']['units'] -= 1 value_intervals['1.01-1.50']['stake'] += 1 value_intervals['1.01-1.50']['yield'] = round(value_intervals['1.01-1.50']['units'] * 100 / value_intervals['1.01-1.50']['stake'], 2) elif float(row[8]) < 2.01: value_intervals['1.51-2.00']['units'] -= 1 value_intervals['1.51-2.00']['stake'] += 1 value_intervals['1.51-2.00']['yield'] = round(value_intervals['1.51-2.00']['units'] * 100 / value_intervals['1.51-2.00']['stake'], 2) elif float(row[8]) < 2.51: value_intervals['2.01-2.50']['units'] -= 1 value_intervals['2.01-2.50']['stake'] += 1 value_intervals['2.01-2.50']['yield'] = round(value_intervals['2.01-2.50']['units'] * 100 / value_intervals['2.01-2.50']['stake'], 2) elif float(row[8]) < 3.01: value_intervals['2.51-3.00']['units'] -= 1 value_intervals['2.51-3.00']['stake'] += 1 value_intervals['2.51-3.00']['yield'] = round(value_intervals['2.51-3.00']['units'] * 100 / value_intervals['2.51-3.00']['stake'], 2) else: value_intervals['>3.00']['units'] -= 1 value_intervals['>3.00']['stake'] += 1 value_intervals['>3.00']['yield'] = round(value_intervals['>3.00']['units'] * 100 / value_intervals['>3.00']['stake'], 2) row.append(coef[0]) prediction_table.append(row) index += 1 table_instance = SingleTable(prediction_table, Color('{autocyan} Prediction with new games {/autocyan}')) table_instance.inner_heading_row_border = False table_instance.inner_row_border = True table_instance.justify_columns = {0: 'left', 1: 'center', 2: 'center', 3: 'center', 4: 'center', 5: 'center', 6: 'left', 7: 'center', 8: 'center', 9: 'center', 10: 'center', 11: 'center'} print("\n" + table_instance.table) print("\n" + Color('{autogreen}Units: {/autogreen}') + str(round(units, 2))) print(Color('{autogreen}Hits: {/autogreen}') + str(hits)) print(Color('{autogreen}Stake: {/autogreen}') + str(stake)) print(Color('{autogreen}Yield: {/autogreen}') + str(round(units * 100 / stake, 2)) + "%") print(Color('{autogreen}Different probabilities: {/autogreen}') + str(len(different_probs))) print(Color('{autogreen}Value intervals: {/autogreen}')) pprint(value_intervals) print(Color('{autogreen}Odd intervals: {/autogreen}')) pprint(intervals) print(Color('{autogreen}Odd/Value intervals: {/autogreen}')) pprint(odd_value_intervals) # Gràfica plt.figure("The Beast Training") plt.title("Test 22/04/2019") index = 0 axes = [] while index < num_epochs: axes.append(index) index += (num_epochs / 200) plt.plot(axes, values) plt.plot(axes, values_predicted, color='r') plt.ylim([0, 100]) plt.xlim([0, num_epochs]) plt.ylabel('Error') plt.xlabel('Training Time') plt.tight_layout() plt.show() # Mostrar pesos #nn.print_weights()
59.372477
836
0.531754
9,652
64,716
3.434625
0.034397
0.18286
0.15538
0.181593
0.867153
0.850925
0.838949
0.825435
0.813671
0.807638
0
0.137416
0.276176
64,716
1,089
837
59.426997
0.570288
0.006783
0
0.658281
0
0.001048
0.268343
0.010698
0
0
0
0
0
1
0.009434
false
0
0.007338
0.005241
0.024109
0.030398
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
540f623a46176a08f9103787e1534833fc0a6193
203
py
Python
src/spaceone/inventory/manager/__init__.py
spaceone-dev/plugin-aws-state-inven-collector
9e766c36e9d5bb0bc805d10386b5ca64584fb5a6
[ "Apache-2.0" ]
1
2021-01-15T08:04:30.000Z
2021-01-15T08:04:30.000Z
src/spaceone/inventory/manager/__init__.py
spaceone-dev/plugin-aws-state-inven-collector
9e766c36e9d5bb0bc805d10386b5ca64584fb5a6
[ "Apache-2.0" ]
3
2020-10-21T09:08:04.000Z
2021-04-27T06:51:08.000Z
src/spaceone/inventory/manager/__init__.py
spaceone-dev/plugin-aws-state-inven-collector
9e766c36e9d5bb0bc805d10386b5ca64584fb5a6
[ "Apache-2.0" ]
3
2020-10-13T14:58:11.000Z
2020-11-19T04:16:11.000Z
from spaceone.inventory.manager.rds_manager import RDSManager from spaceone.inventory.manager.auto_scaling_manager import AutoScalingManager from spaceone.inventory.manager.ec2_manager import EC2Manager
50.75
78
0.896552
25
203
7.12
0.48
0.202247
0.353933
0.47191
0
0
0
0
0
0
0
0.010471
0.059113
203
3
79
67.666667
0.921466
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
540fd1f5b4edefd1d7c31cb4d0f6b47eca4ead18
93
py
Python
src/fast_map/__init__.py
michalmonday/fast_map
5bd74ae5288689bd80d8f3a30e31f2caba9e6ec8
[ "MIT" ]
2
2022-02-13T15:19:15.000Z
2022-03-16T17:07:14.000Z
src/fast_map/__init__.py
michalmonday/fast_map
5bd74ae5288689bd80d8f3a30e31f2caba9e6ec8
[ "MIT" ]
null
null
null
src/fast_map/__init__.py
michalmonday/fast_map
5bd74ae5288689bd80d8f3a30e31f2caba9e6ec8
[ "MIT" ]
null
null
null
from .fast_map import fast_map #, fast_map_simple from .fast_map_async import fast_map_async
31
49
0.849462
17
93
4.176471
0.352941
0.492958
0.309859
0
0
0
0
0
0
0
0
0
0.107527
93
2
50
46.5
0.855422
0.182796
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
5417351d1728b292729eb4b750baaf218b16f80b
222
py
Python
infos.py
EduardoWS/bmo-sc
3b077577e275adcce8a7dd483395463da0e75fd2
[ "MIT" ]
null
null
null
infos.py
EduardoWS/bmo-sc
3b077577e275adcce8a7dd483395463da0e75fd2
[ "MIT" ]
null
null
null
infos.py
EduardoWS/bmo-sc
3b077577e275adcce8a7dd483395463da0e75fd2
[ "MIT" ]
null
null
null
def canais_perm(): canais_permitidos = [749451565525631026, 754386829360234587, 756134587553284176, 920736410183557142, 854848660524630041, 927381503275569173, 942934387627003924] return canais_permitidos
31.714286
165
0.810811
15
222
11.8
0.8
0.180791
0
0
0
0
0
0
0
0
0
0.65625
0.135135
222
6
166
37
0.265625
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
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
1
0
0
0
0
1
0
0
7
5426c0a758565c9233fba333fa99477e856d68fe
302
py
Python
ariadne/contrib/__init__.py
tilmanbeck/inception-external-recommender
72fd3afad7ba9c5f1bff6cda26f5848d2ce717bf
[ "Apache-2.0" ]
null
null
null
ariadne/contrib/__init__.py
tilmanbeck/inception-external-recommender
72fd3afad7ba9c5f1bff6cda26f5848d2ce717bf
[ "Apache-2.0" ]
null
null
null
ariadne/contrib/__init__.py
tilmanbeck/inception-external-recommender
72fd3afad7ba9c5f1bff6cda26f5848d2ce717bf
[ "Apache-2.0" ]
null
null
null
#from ariadne.contrib.sklearn import SklearnSentenceClassifier #from ariadne.contrib.sbert import SbertSentenceClassifier #from ariadne.contrib.adapter import AdapterClassifier from ariadne.contrib.bert import BertClassifier from ariadne.contrib.bert_prediction_only import BertPredictionOnlyClassifier
60.4
77
0.89404
32
302
8.375
0.46875
0.205224
0.335821
0.164179
0
0
0
0
0
0
0
0
0.062914
302
5
77
60.4
0.946996
0.566225
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
580b53e865b5d432d78f2f63f9a49508eddb68ee
6,055
py
Python
model/tensorflow/tests/test_tf_integration.py
Javier77nance/dffml
2e094e44cfa1758ef17cd5d052581ed5fe3d3e03
[ "MIT" ]
null
null
null
model/tensorflow/tests/test_tf_integration.py
Javier77nance/dffml
2e094e44cfa1758ef17cd5d052581ed5fe3d3e03
[ "MIT" ]
null
null
null
model/tensorflow/tests/test_tf_integration.py
Javier77nance/dffml
2e094e44cfa1758ef17cd5d052581ed5fe3d3e03
[ "MIT" ]
1
2021-04-02T23:58:57.000Z
2021-04-02T23:58:57.000Z
""" This file contains integration tests. We use the CLI to exercise functionality of various DFFML classes and constructs. """ import csv import json import pathlib import contextlib import numpy as np from sklearn.datasets import make_classification, make_regression from dffml.cli.cli import CLI from dffml.util.asynctestcase import AsyncTestCase class TestDNNC(AsyncTestCase): async def test_run(self): self.required_plugins("dffml-model-tensorflow") data_filename = self.mktempfile() + ".csv" X, y = make_classification( n_samples=10, n_features=5, n_classes=4, n_informative=3, shuffle=True, random_state=2020, ) train_data = np.concatenate((X, y[:, None]), axis=1) with open(pathlib.Path(data_filename), "w+") as data_file: writer = csv.writer(data_file, delimiter=",") writer.writerow(["A", "B", "C", "D", "E", "true_class"]) writer.writerows(train_data) # Features features = "-model-features A:float:1 B:float:1 C:float:1 D:float:1 E:float:1".split() model_dir = self.mktempdir() # Train the model await CLI.cli( "train", "-model", "tfdnnc", *features, "-model-predict", "true_class:int:1", "-model-directory", model_dir, "-model-classifications", "0", "1", "2", "3", "-model-clstype", "int", "-sources", "training_data=csv", "-source-filename", data_filename, ) # Assess accuracy await CLI.cli( "accuracy", "-model", "tfdnnc", *features, "-model-predict", "true_class:int:1", "-model-directory", model_dir, "-model-classifications", "0", "1", "2", "3", "-model-clstype", "int", "-sources", "test_data=csv", "-source-filename", data_filename, ) with contextlib.redirect_stdout(self.stdout): # Make prediction await CLI._main( "predict", "all", "-model", "tfdnnc", *features, "-model-predict", "true_class:int:1", "-model-directory", model_dir, "-model-classifications", "0", "1", "2", "3", "-model-clstype", "int", "-sources", "predict_data=csv", "-source-filename", data_filename, ) results = json.loads(self.stdout.getvalue()) self.assertTrue(isinstance(results, list)) self.assertTrue(results) results = results[0] self.assertIn("prediction", results) results = results["prediction"] self.assertIn("true_class", results) results = results["true_class"] self.assertIn("value", results) results = results["value"] self.assertIn(results, [0, 1, 2, 3]) class TestDNNR(AsyncTestCase): async def test_run(self): self.required_plugins("dffml-model-tensorflow") data_filename = self.mktempfile() + ".csv" X, y = make_regression( n_samples=10, n_features=6, n_targets=1, shuffle=True, random_state=2020, ) train_data = np.concatenate((X, y[:, None]), axis=1) with open(pathlib.Path(data_filename), "w+") as data_file: writer = csv.writer(data_file, delimiter=",") writer.writerow(["A", "B", "C", "D", "E", "F", "true_target"]) writer.writerows(train_data) # Features features = "-model-features A:float:1 B:float:1 C:float:1 D:float:1 E:float:1 F:float:1".split() model_dir = self.mktempdir() # Train the model await CLI.cli( "train", "-model", "tfdnnr", *features, "-model-predict", "true_target:float:1", "-model-directory", model_dir, "-sources", "training_data=csv", "-source-filename", data_filename, ) # Assess accuracy await CLI.cli( "accuracy", "-model", "tfdnnr", *features, "-model-predict", "true_target:float:1", "-model-directory", model_dir, "-sources", "test_data=csv", "-source-filename", data_filename, ) with contextlib.redirect_stdout(self.stdout): # Make prediction await CLI._main( "predict", "all", "-model", "tfdnnr", *features, "-model-predict", "true_target:float:1", "-model-directory", model_dir, "-sources", "predict_data=csv", "-source-filename", data_filename, ) results = json.loads(self.stdout.getvalue()) self.assertTrue(isinstance(results, list)) self.assertTrue(results) results = results[0] self.assertIn("prediction", results) results = results["prediction"] self.assertIn("true_target", results) results = results["true_target"] self.assertIn("value", results) results = results["value"] self.assertTrue(results is not None)
30.124378
104
0.475145
553
6,055
5.084991
0.216998
0.079659
0.059744
0.051209
0.818634
0.805121
0.805121
0.805121
0.771693
0.771693
0
0.014946
0.403303
6,055
200
105
30.275
0.763355
0.038646
0
0.801136
0
0.011364
0.189459
0.018946
0
0
0
0
0.068182
1
0
false
0
0.045455
0
0.056818
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
587ba3b486555009a27eb2a6f1b6d057de0766d8
8,925
py
Python
cudnn_layers.py
hutomadotAI/Research-Experiments
ae354930a164dee96b2f7cb32f19a70eb85db887
[ "Apache-2.0" ]
2
2019-06-01T15:15:44.000Z
2019-09-04T15:04:45.000Z
cudnn_layers.py
hutomadotAI/Research-Experiments
ae354930a164dee96b2f7cb32f19a70eb85db887
[ "Apache-2.0" ]
null
null
null
cudnn_layers.py
hutomadotAI/Research-Experiments
ae354930a164dee96b2f7cb32f19a70eb85db887
[ "Apache-2.0" ]
1
2019-09-04T15:04:49.000Z
2019-09-04T15:04:49.000Z
import tensorflow as tf from layers import dropout, _last_relevant class GRU: def __init__(self, num_layers, num_units, batch_size, input_size, keep_prob=1.0, is_train=None, seed=3435, scope=None): self.num_layers = num_layers self.grus = [] self.inits = [] self.dropout_mask = [] for layer in range(num_layers): input_size_ = input_size if layer == 0 else num_units gru = tf.contrib.cudnn_rnn.CudnnGRU(1, num_units, seed=seed) init = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) mask = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) self.grus.append(gru) self.inits.append(init) self.dropout_mask.append(mask) def __call__(self, inputs, seq_len, concat_layers=True, use_last=False, scope='gru'): outputs = [tf.transpose(inputs, [1, 0, 2])] for layer in range(self.num_layers): gru = self.grus[layer] init = self.inits[layer] mask = self.dropout_mask[layer] with tf.variable_scope("{}_{}".format(scope, layer)): out, _ = gru(outputs[-1] * mask, initial_state=(init, )) outputs.append(out) if concat_layers: res = tf.concat(outputs[1:], axis=2) else: res = outputs[-1] res = tf.transpose(res, [1, 0, 2]) if use_last: last = _last_relevant(res, seq_len) return last, res else: return res class BiGRU: def __init__(self, num_layers, num_units, batch_size, input_size, keep_prob=1.0, is_train=None, seed=3435, scope=None): self.num_layers = num_layers self.grus = [] self.inits = [] self.dropout_mask = [] for layer in range(num_layers): input_size_ = input_size if layer == 0 else 2 * num_units gru_fw = tf.contrib.cudnn_rnn.CudnnGRU(1, num_units, seed=seed) gru_bw = tf.contrib.cudnn_rnn.CudnnGRU(1, num_units, seed=seed) init_fw = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) init_bw = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) mask_fw = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) mask_bw = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) self.grus.append((gru_fw, gru_bw, )) self.inits.append((init_fw, init_bw, )) self.dropout_mask.append((mask_fw, mask_bw, )) def __call__(self, inputs, seq_len, concat_layers=True, use_last=False, scope='gru'): outputs = [tf.transpose(inputs, [1, 0, 2])] for layer in range(self.num_layers): gru_fw, gru_bw = self.grus[layer] init_fw, init_bw = self.inits[layer] mask_fw, mask_bw = self.dropout_mask[layer] with tf.variable_scope("fw_{}_{}".format(scope, layer)): out_fw, _ = gru_fw( outputs[-1] * mask_fw, initial_state=(init_fw, )) with tf.variable_scope("bw_{}_{}".format(scope, layer)): inputs_bw = tf.reverse_sequence( outputs[-1] * mask_bw, seq_lengths=seq_len, seq_axis=0, batch_axis=1) out_bw, _ = gru_bw(inputs_bw, initial_state=(init_bw, )) out_bw = tf.reverse_sequence( out_bw, seq_lengths=seq_len, seq_axis=0, batch_axis=1) outputs.append(tf.concat([out_fw, out_bw], axis=2)) if concat_layers: res = tf.concat(outputs[1:], axis=2) else: res = outputs[-1] res = tf.transpose(res, [1, 0, 2]) if use_last: last = _last_relevant(res, seq_len) return last, res else: return res class LSTM: def __init__(self, num_layers, num_units, batch_size, input_size, keep_prob=1.0, is_train=None, seed=3435, scope=None): self.num_layers = num_layers self.lstms = [] self.inits = [] self.inits2 = [] self.dropout_mask = [] for layer in range(num_layers): input_size_ = input_size if layer == 0 else num_units lstm = tf.contrib.cudnn_rnn.CudnnLSTM(1, num_units, seed=seed) init = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) init2 = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) mask = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) self.lstms.append(lstm) self.inits.append(init) self.inits2.append(init2) self.dropout_mask.append(mask) def __call__(self, inputs, seq_len, concat_layers=True, use_last=False, scope='lstm'): outputs = [tf.transpose(inputs, [1, 0, 2])] for layer in range(self.num_layers): lstm = self.lstms[layer] init = self.inits[layer] init2 = self.inits2[layer] mask = self.dropout_mask[layer] with tf.variable_scope("{}_{}".format(scope, layer)): out, _ = lstm(outputs[-1] * mask, initial_state=(init, init2)) outputs.append(out) if concat_layers: res = tf.concat(outputs[1:], axis=2) else: res = outputs[-1] res = tf.transpose(res, [1, 0, 2]) if use_last: last = _last_relevant(res, seq_len) return last, res else: return res class BiLSTM: def __init__(self, num_layers, num_units, batch_size, input_size, keep_prob=1.0, is_train=None, seed=3435, scope=None): self.num_layers = num_layers self.lstms = [] self.inits = [] self.inits2 = [] self.dropout_mask = [] for layer in range(num_layers): input_size_ = input_size if layer == 0 else 2 * num_units lstm_fw = tf.contrib.cudnn_rnn.CudnnLSTM(1, num_units, seed=seed) lstm_bw = tf.contrib.cudnn_rnn.CudnnLSTM(1, num_units, seed=seed) init_fw = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) init_fw2 = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) init_bw = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) init_bw2 = tf.tile(tf.Variable( tf.zeros([1, 1, num_units])), [1, batch_size, 1]) mask_fw = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) mask_bw = dropout(tf.ones([1, batch_size, input_size_], dtype=tf.float32), keep_prob=keep_prob, is_train=is_train, mode=None) self.lstms.append((lstm_fw, lstm_bw,)) self.inits.append((init_fw, init_bw,)) self.inits2.append((init_fw2, init_bw2)) self.dropout_mask.append((mask_fw, mask_bw,)) def __call__(self, inputs, seq_len, concat_layers=True, use_last=False, scope='lstm'): outputs = [tf.transpose(inputs, [1, 0, 2])] for layer in range(self.num_layers): lstm_fw, lstm_bw = self.lstms[layer] init_fw, init_bw = self.inits[layer] init_fw2, init_bw2 = self.inits2[layer] mask_fw, mask_bw = self.dropout_mask[layer] with tf.variable_scope("fw_{}_{}".format(scope, layer)): out_fw, _ = lstm_fw( outputs[-1] * mask_fw, initial_state=(init_fw, init_fw2)) with tf.variable_scope("bw_{}_{}".format(scope, layer)): inputs_bw = tf.reverse_sequence( outputs[-1] * mask_bw, seq_lengths=seq_len, seq_axis=0, batch_axis=1) out_bw, _ = lstm_bw(inputs_bw, initial_state=(init_bw, init_bw2)) out_bw = tf.reverse_sequence( out_bw, seq_lengths=seq_len, seq_axis=0, batch_axis=1) outputs.append(tf.concat([out_fw, out_bw], axis=2)) if concat_layers: res = tf.concat(outputs[1:], axis=2) else: res = outputs[-1] res = tf.transpose(res, [1, 0, 2]) if use_last: last = _last_relevant(res, seq_len) return last, res else: return res
44.402985
90
0.561793
1,198
8,925
3.913189
0.069282
0.039249
0.028797
0.038396
0.951792
0.918302
0.906357
0.894411
0.882253
0.854522
0
0.026127
0.313838
8,925
200
91
44.625
0.739386
0
0
0.807692
0
0
0.006275
0
0
0
0
0
0
1
0.043956
false
0
0.010989
0
0.120879
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
588f8a021419e95a288c479ad9010702eca8ebe2
870
py
Python
test/it/test_nexus.py
uk-gov-mirror/hmrc.service-manager
6d6fcc4a1d25d094e7d0c798fc4219cf20a6f234
[ "Apache-2.0" ]
52
2015-02-04T21:09:11.000Z
2022-02-23T15:48:06.000Z
test/it/test_nexus.py
uk-gov-mirror/hmrc.service-manager
6d6fcc4a1d25d094e7d0c798fc4219cf20a6f234
[ "Apache-2.0" ]
57
2015-01-08T10:17:16.000Z
2021-11-18T14:56:51.000Z
test/it/test_nexus.py
uk-gov-mirror/hmrc.service-manager
6d6fcc4a1d25d094e7d0c798fc4219cf20a6f234
[ "Apache-2.0" ]
50
2015-02-02T16:12:13.000Z
2021-11-13T09:19:32.000Z
from .testbase import TestBase class TestNexus(TestBase): def test_nexus_zip(self): self.startFakeNexus() context = self.createContext() servicetostart = "PLAY_NEXUS_END_TO_END_TEST" self.start_service_and_wait(context, servicetostart) self.assertIsNotNone(context.get_service(servicetostart).status()) context.kill(servicetostart, True) self.assertEqual(context.get_service(servicetostart).status(), []) def test_nexus_tgz(self): self.startFakeNexus() context = self.createContext() servicetostart = "PLAY_NEXUS_TGZ_TEST" self.start_service_and_wait(context, servicetostart) self.assertIsNotNone(context.get_service(servicetostart).status()) context.kill(servicetostart, True) self.assertEqual(context.get_service(servicetostart).status(), [])
36.25
74
0.711494
89
870
6.707865
0.314607
0.067002
0.113903
0.207705
0.850921
0.850921
0.850921
0.850921
0.850921
0.619765
0
0
0.187356
870
23
75
37.826087
0.844413
0
0
0.666667
0
0
0.051724
0.029885
0
0
0
0
0.222222
1
0.111111
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
5898485290fe3505441048991e1e1cbaa70febf4
126
py
Python
tests/test_util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
1
2022-03-17T06:26:20.000Z
2022-03-17T06:26:20.000Z
tests/test_util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
null
null
null
tests/test_util.py
eikendev/gitool
9bfa248093d4ee3caf25fde1a59f4f0fc66994af
[ "MIT" ]
null
null
null
from gitool.util import * def test_list_properties(): assert list_properties(["ahead", "behind"]) == "ahead and behind"
21
69
0.706349
16
126
5.375
0.75
0.325581
0
0
0
0
0
0
0
0
0
0
0.150794
126
5
70
25.2
0.803738
0
0
0
0
0
0.214286
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
3f8d1c8ff6289735dd304bca7a2e02066ccb2c6f
4,661
py
Python
tests/loop_tool/actions_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
tests/loop_tool/actions_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
tests/loop_tool/actions_test.py
lipovsek/CompilerGym
444b82fdf304949e6b8cea23c61f6477b419e3a1
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Integrations tests for the loop_tool CompilerGym environment.""" import loop_tool_py as lt import pytest from flaky import flaky import compiler_gym from tests.test_main import main @flaky @pytest.mark.parametrize("backend", lt.backends()) @pytest.mark.timeout(600) def test_basic(backend): with compiler_gym.make("loop_tool-v0") as env: env.observation_space = "flops" env.reset( benchmark=env.datasets.benchmark( uri=f"benchmark://loop_tool-{backend}-v0/1024" ), action_space="simple", ) env.step(0) env.step(1) env.step(0) env.step(1) env.step(1) env.step(0) env.step(1) env.step(0) o = env.step(1) print(o) @flaky @pytest.mark.parametrize("backend", lt.backends()) @pytest.mark.timeout(600) def test_rand(backend): with compiler_gym.make("loop_tool-v0") as env: env.observation_space = "flops" env.reset( benchmark=env.datasets.benchmark( uri=f"benchmark://loop_tool-{backend}-v0/128" ), action_space="simple", ) best = 0 for i in range(10): a = env.action_space.sample() o = env.step(a) flops = o[0] if flops > best: best = flops print(best) @flaky @pytest.mark.parametrize("backend", lt.backends()) @pytest.mark.timeout(600) def test_induced_remainder(backend): with compiler_gym.make("loop_tool-v0") as env: env.observation_space = "loop_tree" # reset env.reset( benchmark=env.datasets.benchmark( uri=f"benchmark://loop_tool-{backend}-v0/1024" ), action_space="simple", ) # action toggle_mode env.step(0) # action up env.step(1) # action toggle_mode env.step(0) # action up env.step(1) # action up o = env.step(1) expected = f""" for a in 341 r 1 : L0 {'cpu_parallel ' if backend=='cpu' else ''}[thread] for a' in 3 : L1 for a'' in 1 : L2 %0[a] <- read() for a'' in 1 : L4 %1[a] <- read() for a'' in 1 : L6 %2[a] <- add(%0, %1) for a'' in 1 : L8 %3[a] <- write(%2) """ lines = o[0].strip().split("\n") out = "\n".join(line.rstrip() for line in lines) assert out == expected.strip(), f"{out} \n vs \n {expected.strip()}" @flaky @pytest.mark.parametrize("backend", lt.backends()) @pytest.mark.timeout(600) def test_thread_removal(backend): with compiler_gym.make("loop_tool-v0") as env: env.observation_space = "loop_tree" # reset env.reset( benchmark=env.datasets.benchmark( uri=f"benchmark://loop_tool-{backend}-v0/1024" ), action_space="simple", ) # action toggle_thread o = env.step(3) expected = """ for a in 1024 : L0 for a' in 1 : L1 for a'' in 1 : L2 %0[a] <- read() for a'' in 1 : L4 %1[a] <- read() for a'' in 1 : L6 %2[a] <- add(%0, %1) for a'' in 1 : L8 %3[a] <- write(%2) """ lines = o[0].strip().split("\n") out = "\n".join(line.rstrip() for line in lines) assert out == expected.strip(), f"{out} \n vs \n {expected.strip()}" @flaky @pytest.mark.parametrize("backend", lt.backends()) @pytest.mark.timeout(600) def test_thread_addition(backend): with compiler_gym.make("loop_tool-v0") as env: env.observation_space = "loop_tree" # reset env.reset( benchmark=env.datasets.benchmark( uri=f"benchmark://loop_tool-{backend}-v0/1024" ), action_space="simple", ) # action toggle_mode env.step(0) # action up env.step(1) # action toggle_thread o = env.step(3) expected = f""" for a in 1024 : L0 {'cpu_parallel ' if backend=='cpu' else ''}[thread] for a' in 1 : L1 {'cpu_parallel ' if backend=='cpu' else ''}[thread] for a'' in 1 : L2 %0[a] <- read() for a'' in 1 : L4 %1[a] <- read() for a'' in 1 : L6 %2[a] <- add(%0, %1) for a'' in 1 : L8 %3[a] <- write(%2) """ lines = o[0].strip().split("\n") out = "\n".join(line.rstrip() for line in lines) assert out == expected.strip(), f"{out} \n vs \n {expected.strip()}" if __name__ == "__main__": main()
27.25731
76
0.54838
646
4,661
3.866873
0.176471
0.053243
0.043235
0.039231
0.810649
0.791833
0.791833
0.791833
0.773419
0.769816
0
0.04136
0.299721
4,661
170
77
27.417647
0.723958
0.083244
0
0.755396
0
0
0.291627
0.045626
0
0
0
0
0.021583
1
0.035971
false
0
0.035971
0
0.071942
0.014388
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3fc643d335938ddd79317f8255a3fc65749fcdb7
84
py
Python
tests/test_version.py
mwouts/world_bank_data
79fc0c429c3f64c7a9bea2b90951c1c1e73b7b3d
[ "MIT" ]
91
2019-04-07T06:52:37.000Z
2022-03-24T09:02:24.000Z
tests/test_version.py
mwouts/world_bank_data
79fc0c429c3f64c7a9bea2b90951c1c1e73b7b3d
[ "MIT" ]
16
2019-04-08T12:17:17.000Z
2020-12-17T12:51:52.000Z
tests/test_version.py
mwouts/world_bank_data
79fc0c429c3f64c7a9bea2b90951c1c1e73b7b3d
[ "MIT" ]
29
2019-06-02T04:40:37.000Z
2022-02-06T21:52:46.000Z
import world_bank_data def test_version(): assert world_bank_data.__version__
14
38
0.809524
12
84
4.916667
0.666667
0.305085
0.440678
0
0
0
0
0
0
0
0
0
0.142857
84
5
39
16.8
0.819444
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
8
b74926d3ad5547dd716f74156647160c1e631e33
11,344
py
Python
Testing/run_tests.py
kchandra423/Segregation-Analyzer
4f2f3d3f9b0d11ac8f7b1ef400936b067c73edae
[ "MIT" ]
null
null
null
Testing/run_tests.py
kchandra423/Segregation-Analyzer
4f2f3d3f9b0d11ac8f7b1ef400936b067c73edae
[ "MIT" ]
null
null
null
Testing/run_tests.py
kchandra423/Segregation-Analyzer
4f2f3d3f9b0d11ac8f7b1ef400936b067c73edae
[ "MIT" ]
null
null
null
def test_divergence(): thing = {"NAME": "Yakutat City and Borough, Alaska", "state": "02", "county": "282", "BROWN": 55.0, "POP": 649.0, "Sub_Areas": [ {"state": "02", "county": "282", "tract": "000100", "BROWN": 55.0, "POP": 649.0, "Sub_Areas": [ {"state": "02", "county": "282", "tract": "000100", "block group": "1", "BROWN": 55.0, "POP": 649.0, "Valid": True, "Divergence": 0.0}] # county_tracts = {"NAME": "St. Clair County, Alabama", "state": "01", "county": "115", "BROWN": 10551.0, # "POP": 87989.0, # "Sub_Areas": [{"state": "01", "county": "115", "tract": "040103", "BROWN": 1123.0, "POP": 9311.0}, # {"state": "01", "county": "115", "tract": "040104", "BROWN": 678.0, "POP": 4955.0}, # {"state": "01", "county": "115", "tract": "040105", "BROWN": 813.0, "POP": 4996.0}, # {"state": "01", "county": "115", "tract": "040106", "BROWN": 628.0, "POP": 6942.0}, # {"state": "01", "county": "115", "tract": "040204", "BROWN": 442.0, "POP": 7009.0}, # {"state": "01", "county": "115", "tract": "040205", "BROWN": 250.0, "POP": 5989.0}, # {"state": "01", "county": "115", "tract": "040401", "BROWN": 837.0, "POP": 5301.0}, # {"state": "01", "county": "115", "tract": "040402", "BROWN": 309.0, "POP": 3597.0}, # {"state": "01", "county": "115", "tract": "040501", "BROWN": 693.0, "POP": 11271.0}, # {"state": "01", "county": "115", "tract": "040300", "BROWN": 273.0, "POP": 5328.0}, # {"state": "01", "county": "115", "tract": "040201", "BROWN": 355.0, "POP": 6143.0}, # {"state": "01", "county": "115", "tract": "040502", "BROWN": 3035.0, "POP": 10775.0}, # {"state": "01", "county": "115", "tract": "040203", "BROWN": 1115.0, "POP": 6372.0}]} # county_blocks = {"NAME": "St. Clair County, Alabama", "state": "01", "county": "115", "BROWN": 10551.0, # "POP": 87989.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040103", "BROWN": 1123.0, "POP": 9311.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040103", "block group": "2", "BROWN": 618.0, "POP": 5228.0}, # {"state": "01", "county": "115", "tract": "040103", "block group": "1", "BROWN": 505.0, # "POP": 4083.0}]}, {"state": "01", "county": "115", "tract": "040104", "BROWN": 678.0, "POP": 4955.0, # "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040104", "block group": "2", # "BROWN": 351.0, "POP": 2872.0}, # {"state": "01", "county": "115", "tract": "040104", "block group": "1", # "BROWN": 327.0, "POP": 2083.0}]}, # {"state": "01", "county": "115", "tract": "040105", "BROWN": 813.0, "POP": 4996.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040105", "block group": "2", "BROWN": 222.0, "POP": 1768.0}, # {"state": "01", "county": "115", "tract": "040105", "block group": "1", "BROWN": 591.0, # "POP": 3228.0}]}, {"state": "01", "county": "115", "tract": "040106", "BROWN": 628.0, "POP": 6942.0, # "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040106", "block group": "1", # "BROWN": 487.0, "POP": 2311.0}, # {"state": "01", "county": "115", "tract": "040106", "block group": "2", # "BROWN": 141.0, "POP": 3437.0}, # {"state": "01", "county": "115", "tract": "040106", "block group": "3", # "BROWN": 0.0, "POP": 1194.0}]}, # {"state": "01", "county": "115", "tract": "040204", "BROWN": 442.0, "POP": 7009.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040204", "block group": "1", "BROWN": 387.0, "POP": 4775.0}, # {"state": "01", "county": "115", "tract": "040204", "block group": "2", "BROWN": 49.0, "POP": 1499.0}, # {"state": "01", "county": "115", "tract": "040204", "block group": "3", "BROWN": 6.0, "POP": 735.0}]}, # {"state": "01", "county": "115", "tract": "040205", "BROWN": 250.0, "POP": 5989.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040205", "block group": "1", "BROWN": 32.0, "POP": 1556.0}, # {"state": "01", "county": "115", "tract": "040205", "block group": "3", "BROWN": 197.0, "POP": 2910.0}, # {"state": "01", "county": "115", "tract": "040205", "block group": "2", "BROWN": 21.0, "POP": 1523.0}]}, # {"state": "01", "county": "115", "tract": "040401", "BROWN": 837.0, "POP": 5301.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040401", "block group": "2", "BROWN": 510.0, "POP": 1421.0}, # {"state": "01", "county": "115", "tract": "040401", "block group": "3", "BROWN": 277.0, "POP": 2512.0}, # {"state": "01", "county": "115", "tract": "040401", "block group": "1", "BROWN": 50.0, "POP": 1368.0}]}, # {"state": "01", "county": "115", "tract": "040402", "BROWN": 309.0, "POP": 3597.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040402", "block group": "2", "BROWN": 132.0, "POP": 996.0}, # {"state": "01", "county": "115", "tract": "040402", "block group": "3", "BROWN": 122.0, "POP": 836.0}, # {"state": "01", "county": "115", "tract": "040402", "block group": "1", "BROWN": 55.0, "POP": 1765.0}]}, # {"state": "01", "county": "115", "tract": "040501", "BROWN": 693.0, "POP": 11271.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040501", "block group": "1", "BROWN": 37.0, "POP": 3701.0}, # {"state": "01", "county": "115", "tract": "040501", "block group": "4", "BROWN": 444.0, "POP": 4165.0}, # {"state": "01", "county": "115", "tract": "040501", "block group": "3", "BROWN": 173.0, "POP": 627.0}, # {"state": "01", "county": "115", "tract": "040501", "block group": "2", "BROWN": 39.0, "POP": 2778.0}]}, # {"state": "01", "county": "115", "tract": "040300", "BROWN": 273.0, "POP": 5328.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040300", "block group": "2", "BROWN": 155.0, "POP": 1124.0}, # {"state": "01", "county": "115", "tract": "040300", "block group": "3", "BROWN": 18.0, "POP": 2716.0}, # {"state": "01", "county": "115", "tract": "040300", "block group": "1", "BROWN": 100.0, # "POP": 1488.0}]}, {"state": "01", "county": "115", "tract": "040201", "BROWN": 355.0, "POP": 6143.0, # "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040201", "block group": "1", # "BROWN": 352.0, "POP": 1417.0}, # {"state": "01", "county": "115", "tract": "040201", "block group": "3", # "BROWN": 0.0, "POP": 1384.0}, # {"state": "01", "county": "115", "tract": "040201", "block group": "4", # "BROWN": 0.0, "POP": 1740.0}, # {"state": "01", "county": "115", "tract": "040201", "block group": "2", # "BROWN": 3.0, "POP": 1602.0}]}, # {"state": "01", "county": "115", "tract": "040502", "BROWN": 3035.0, "POP": 10775.0, "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040502", "block group": "3", "BROWN": 1074.0, "POP": 3383.0}, # {"state": "01", "county": "115", "tract": "040502", "block group": "4", "BROWN": 113.0, "POP": 1893.0}, # {"state": "01", "county": "115", "tract": "040502", "block group": "1", "BROWN": 1508.0, "POP": 3458.0}, # {"state": "01", "county": "115", "tract": "040502", "block group": "2", "BROWN": 340.0, # "POP": 2041.0}]}, {"state": "01", "county": "115", "tract": "040203", "BROWN": 1115.0, "POP": 6372.0, # "Sub_Areas": [ # {"state": "01", "county": "115", "tract": "040203", "block group": "1", # "BROWN": 471.0, "POP": 2881.0}, # {"state": "01", "county": "115", "tract": "040203", "block group": "3", # "BROWN": 601.0, "POP": 1837.0}, # {"state": "01", "county": "115", "tract": "040203", "block group": "2", # "BROWN": 43.0, "POP": 1654.0}]}]} # print(calc_divergence(county_blocks)) # pprint.pprint(county_blocks) # print(calc_iso(county_blocks)) # print(calc_iso(county_tracts)) # print(calc_divergence(county_tracts)) test_divergence()
112.316832
139
0.346968
1,043
11,344
3.744966
0.149569
0.071685
0.22299
0.27445
0.790835
0.790835
0.77573
0.760881
0.591654
0.358935
0
0.217854
0.428244
11,344
100
140
113.44
0.384366
0
0
0
0
0
0.069888
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
1
1
0
1
1
1
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
9
b75ed7673b67df994c72425019c02f6d63270be6
11,720
py
Python
code/protonet/datasets.py
koava36/certrob-fewshot
bc9f04e1bb10f9b3fede1dc8148881be592faef8
[ "MIT" ]
null
null
null
code/protonet/datasets.py
koava36/certrob-fewshot
bc9f04e1bb10f9b3fede1dc8148881be592faef8
[ "MIT" ]
null
null
null
code/protonet/datasets.py
koava36/certrob-fewshot
bc9f04e1bb10f9b3fede1dc8148881be592faef8
[ "MIT" ]
null
null
null
import os.path as osp import PIL from PIL import Image import numpy as np import torch from torch.utils.data import Dataset from torchvision import transforms from tqdm.notebook import tqdm import os THIS_PATH = osp.dirname(__file__) ROOT_PATH1 = osp.abspath(osp.join(THIS_PATH, '..', '..', '..')) ROOT_PATH2 = osp.abspath(osp.join(THIS_PATH, '..', '..')) class AddGaussianNoise(object): def __init__(self, mean=0., std=1.): self.std = std self.mean = mean def __call__(self, tensor): return tensor + torch.randn_like(tensor) * self.std + self.mean def __repr__(self): return self.__class__.__name__ + '(mean={0}, std={1})'.format(self.mean, self.std) class CUB(Dataset): def __init__(self, setname, args, augment=False): self.IMAGE_PATH = args.dataset_root if args.splits_root is None: self.SPLIT_PATH = osp.join(args.dataset_root, 'splits') else: self.SPLIT_PATH = args.splits_root self.CACHE_PATH = osp.join(ROOT_PATH2, '.cache/') im_size = args.orig_imsize txt_path = osp.join(self.SPLIT_PATH, setname + '.csv') lines = [x.strip() for x in open(txt_path, 'r').readlines()][1:] cache_path = osp.join(self.CACHE_PATH, "{}.{}.{}.pt".format(self.__class__.__name__, setname, im_size) ) self.use_im_cache = ( im_size != -1 ) # not using cache if self.use_im_cache: if not osp.exists(cache_path): print('* Cache miss... Preprocessing {}...'.format(setname)) resize_ = identity if im_size < 0 else transforms.Resize(im_size) data, label = self.parse_csv(txt_path) self.data = [ resize_(Image.open(path).convert('RGB')) for path in data ] self.label = label print('* Dump cache from {}'.format(cache_path)) torch.save({'data': self.data, 'label': self.label }, cache_path) else: print('* Load cache from {}'.format(cache_path)) cache = torch.load(cache_path) self.data = cache['data'] self.label = cache['label'] else: self.data, self.label = self.parse_csv(txt_path) self.num_class = np.unique(np.array(self.label)).shape[0] image_size = 84 transforms_list = [ transforms.Resize(84), transforms.CenterCrop(image_size), transforms.ToTensor(), ] # Transformation if setname == 'train' and augment: self.transform = transforms.Compose( transforms_list + [transforms.RandomApply([AddGaussianNoise(0., args.sigma)], p=0.3), transforms.Normalize(np.array([104 / 255.0, 117 / 255.0, 128 / 255.0]), np.array([1.0/255, 1.0/255, 1.0/255]))] ) else: self.transform = transforms.Compose(transforms_list + [transforms.Normalize(np.array([104 / 255.0, 117 / 255.0, 128 / 255.0]), np.array([1.0/255, 1.0/255, 1.0/255]))]) def parse_csv(self, txt_path): data = [] label = [] lb = -1 self.wnids = [] lines = [x.strip() for x in open(txt_path, 'r').readlines()][1:] for l in lines: context = l.split(',') name = context[0] wnid = context[1] path = osp.join(self.IMAGE_PATH, name) if wnid not in self.wnids: self.wnids.append(wnid) lb += 1 data.append(path) label.append(lb) return data, label def __len__(self): return len(self.data) def __getitem__(self, i): data, label = self.data[i], self.label[i] if self.use_im_cache: image = self.transform(data) else: image = self.transform(Image.open(data).convert('RGB')) return image, label class MiniImageNet(Dataset): """ Usage: """ def __init__(self, setname, args, augment=False): self.IMAGE_PATH = args.dataset_root if args.splits_root is None: self.SPLIT_PATH = osp.join(args.dataset_root, 'splits') else: self.SPLIT_PATH = args.splits_root self.CACHE_PATH = osp.join(ROOT_PATH2, '.cache/') im_size = args.orig_imsize txt_path = osp.join(self.SPLIT_PATH, setname + '.txt') folder_path = osp.join(self.IMAGE_PATH) cache_path = osp.join(self.CACHE_PATH, "{}.{}.{}.pt".format(self.__class__.__name__, setname, im_size) ) self.use_im_cache = ( im_size != -1 ) # not using cache if self.use_im_cache: if not osp.exists(cache_path): print('* Cache miss... Preprocessing {}...'.format(setname)) resize_ = identity if im_size < 0 else transforms.Resize(im_size) data, label = self.parse_csv(csv_path, setname) self.data = [ resize_(Image.open(path).convert('RGB')) for path in data ] self.label = label print('* Dump cache from {}'.format(cache_path)) torch.save({'data': self.data, 'label': self.label }, cache_path) else: print('* Load cache from {}'.format(cache_path)) cache = torch.load(cache_path) self.data = cache['data'] self.label = cache['label'] else: self.data, self.label = self.parse_folders(txt_path, folder_path) self.num_class = len(set(self.label)) image_size = 84 transforms_list = [ transforms.Resize(84), transforms.CenterCrop(image_size), transforms.ToTensor(), ] # Transformation if setname == 'train' and augment: self.transform = transforms.Compose( transforms_list + [transforms.RandomApply([AddGaussianNoise(0., args.sigma)], p=0.3), transforms.Normalize(np.array([0.485, 0.456, 0.406]), np.array([0.229, 0.224, 0.225]))] ) else: self.transform = transforms.Compose(transforms_list + [transforms.Normalize(np.array([0.485, 0.456, 0.406]), np.array([0.229, 0.224, 0.225]))]) def parse_folders(self, txt_path, folder_path): data = [] label = [] lb = -1 self.class_names = [] lines = [x.strip() for x in open(txt_path, 'r').readlines()][1:] for l in lines: class_name = l path = osp.join(folder_path, class_name) if class_name not in self.class_names: self.class_names.append(class_name) lb += 1 #data.append(path) images = os.listdir(path) data += [osp.join(path, image) for image in images] label += [lb] * len(images) return data, label def __len__(self): return len(self.data) def __getitem__(self, i): data, label = self.data[i], self.label[i] if self.use_im_cache: image = self.transform(data) else: image = self.transform(Image.open(data).convert('RGB')) return image, label class CifarFS(Dataset): def __init__(self, setname, args, augment=False): # if dataset_dir is None: # self.IMAGE_PATH = '../../raid/data/datasets/cifar100/cifar-100-python/cifar-fs' # self.SPLIT_PATH = '../../raid/data/datasets/cifar100/cifar-100-python/cifar-fs-splits' # self.CACHE_PATH = osp.join(ROOT_PATH2, '.cache/') self.IMAGE_PATH = args.dataset_root if args.splits_root is None: self.SPLIT_PATH = osp.join(args.dataset_root, 'splits') else: self.SPLIT_PATH = args.splits_root self.CACHE_PATH = osp.join(ROOT_PATH2, '.cache/') im_size = args.orig_imsize txt_path = osp.join(self.SPLIT_PATH, setname + '.txt') folder_path = osp.join(self.IMAGE_PATH, setname) cache_path = osp.join(self.CACHE_PATH, "{}.{}.{}.pt".format(self.__class__.__name__, setname, im_size) ) self.use_im_cache = ( im_size != -1 ) # not using cache if self.use_im_cache: if not osp.exists(cache_path): print('* Cache miss... Preprocessing {}...'.format(setname)) resize_ = identity if im_size < 0 else transforms.Resize(im_size) data, label = self.parse_csv(txt_path) self.data = [ resize_(Image.open(path).convert('RGB')) for path in data ] self.label = label print('* Dump cache from {}'.format(cache_path)) torch.save({'data': self.data, 'label': self.label }, cache_path) else: print('* Load cache from {}'.format(cache_path)) cache = torch.load(cache_path) self.data = cache['data'] self.label = cache['label'] else: self.data, self.label = self.parse_folders(txt_path, folder_path) self.num_class = np.unique(np.array(self.label)).shape[0] image_size = 84 transforms_list = [ transforms.Resize(84), transforms.CenterCrop(image_size), transforms.ToTensor(), ] # Transformation if setname == 'train' and augment: self.transform = transforms.Compose( transforms_list + [transforms.RandomApply([AddGaussianNoise(0., args.sigma)], p=0.3), transforms.Normalize(np.array([0.4914, 0.4822, 0.4465]), np.array([0.2023, 0.1994, 0.2010]))] ) else: self.transform = transforms.Compose(transforms_list + [transforms.Normalize(np.array([0.4914, 0.4822, 0.4465]), np.array([0.2023, 0.1994, 0.2010]))]) #self.transform = transforms.Compose(transforms_list) def parse_folders(self, txt_path, folder_path): data = [] label = [] lb = -1 self.class_names = [] lines = [x.strip() for x in open(txt_path, 'r').readlines()][1:] for l in lines: class_name = l path = osp.join(folder_path, class_name) if class_name not in self.class_names: self.class_names.append(class_name) lb += 1 #data.append(path) images = os.listdir(path) data += [osp.join(path, image) for image in images] label += [lb] * len(images) return data, label def __len__(self): return len(self.data) def __getitem__(self, i): data, label = self.data[i], self.label[i] if self.use_im_cache: image = self.transform(data) else: image = self.transform(Image.open(data).convert('RGB')) return image, label def identity(x): return x
37.928803
138
0.525085
1,352
11,720
4.361686
0.108728
0.038155
0.033576
0.022893
0.889096
0.886213
0.862812
0.861794
0.847889
0.847889
0
0.031982
0.351706
11,720
308
139
38.051948
0.744143
0.0407
0
0.746781
0
0
0.038311
0
0
0
0
0
0
1
0.06867
false
0
0.038627
0.025751
0.175966
0.038627
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b774600ceccc9ac2c0d8fe2c3647f68a443da1ed
300
py
Python
tools/Polygraphy/polygraphy/tools/debug/subtool/__init__.py
KaliberAI/TensorRT
34a167558058bb801176430d37d38a46328ab0d2
[ "Apache-2.0" ]
5,249
2019-06-17T17:20:34.000Z
2022-03-31T17:56:05.000Z
tools/Polygraphy/polygraphy/tools/debug/subtool/__init__.py
KaliberAI/TensorRT
34a167558058bb801176430d37d38a46328ab0d2
[ "Apache-2.0" ]
1,721
2019-06-17T18:13:29.000Z
2022-03-31T16:09:53.000Z
tools/Polygraphy/polygraphy/tools/debug/subtool/__init__.py
KaliberAI/TensorRT
34a167558058bb801176430d37d38a46328ab0d2
[ "Apache-2.0" ]
1,414
2019-06-18T04:01:17.000Z
2022-03-31T09:16:53.000Z
from polygraphy.tools.debug.subtool.diff_tactics import DiffTactics from polygraphy.tools.debug.subtool.build import Build from polygraphy.tools.debug.subtool.precision import Precision from polygraphy.tools.debug.subtool.reduce import Reduce from polygraphy.tools.debug.subtool.repeat import Repeat
50
67
0.866667
41
300
6.317073
0.317073
0.27027
0.366795
0.46332
0.598456
0
0
0
0
0
0
0
0.066667
300
5
68
60
0.925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
b7cf37f210c20cb65f837358671d8bb3ba7a8091
20,912
py
Python
python/dlxapi/api/spreadsheet_api.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
python/dlxapi/api/spreadsheet_api.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
1
2020-08-20T17:31:43.000Z
2020-08-20T17:31:43.000Z
python/dlxapi/api/spreadsheet_api.py
dlens/dlxapi
189a6519240ce625d7a9cdb89e305a335d2aa045
[ "MIT" ]
null
null
null
# coding: utf-8 """ Decision Lens API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from dlxapi.api_client import ApiClient class SpreadsheetApi(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def create_spreadsheet(self, file, **kwargs): # noqa: E501 """create_spreadsheet # noqa: E501 Creates spreadsheet from file upload. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_spreadsheet(file, async_req=True) >>> result = thread.get() :param async_req bool :param file file: xls or xlsx file upload (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_spreadsheet_with_http_info(file, **kwargs) # noqa: E501 else: (data) = self.create_spreadsheet_with_http_info(file, **kwargs) # noqa: E501 return data def create_spreadsheet_with_http_info(self, file, **kwargs): # noqa: E501 """create_spreadsheet # noqa: E501 Creates spreadsheet from file upload. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_spreadsheet_with_http_info(file, async_req=True) >>> result = thread.get() :param async_req bool :param file file: xls or xlsx file upload (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ all_params = ['file'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_spreadsheet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'file' is set if self.api_client.client_side_validation and ('file' not in params or params['file'] is None): # noqa: E501 raise ValueError("Missing the required parameter `file` when calling `create_spreadsheet`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} if 'file' in params: local_var_files['file'] = params['file'] # noqa: E501 body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['multipart/form-data']) # noqa: E501 # Authentication setting auth_settings = ['OAuth2'] # noqa: E501 return self.api_client.call_api( '/spreadsheet', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Spreadsheet', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def create_spreadsheet_for_kloudless_file(self, kloudless_file, **kwargs): # noqa: E501 """create_spreadsheet_for_kloudless_file # noqa: E501 Creates spreadsheet from kloudless file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_spreadsheet_for_kloudless_file(kloudless_file, async_req=True) >>> result = thread.get() :param async_req bool :param KloudlessFile kloudless_file: kloudless file (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_spreadsheet_for_kloudless_file_with_http_info(kloudless_file, **kwargs) # noqa: E501 else: (data) = self.create_spreadsheet_for_kloudless_file_with_http_info(kloudless_file, **kwargs) # noqa: E501 return data def create_spreadsheet_for_kloudless_file_with_http_info(self, kloudless_file, **kwargs): # noqa: E501 """create_spreadsheet_for_kloudless_file # noqa: E501 Creates spreadsheet from kloudless file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_spreadsheet_for_kloudless_file_with_http_info(kloudless_file, async_req=True) >>> result = thread.get() :param async_req bool :param KloudlessFile kloudless_file: kloudless file (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ all_params = ['kloudless_file'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method create_spreadsheet_for_kloudless_file" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'kloudless_file' is set if self.api_client.client_side_validation and ('kloudless_file' not in params or params['kloudless_file'] is None): # noqa: E501 raise ValueError("Missing the required parameter `kloudless_file` when calling `create_spreadsheet_for_kloudless_file`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'kloudless_file' in params: body_params = params['kloudless_file'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['OAuth2'] # noqa: E501 return self.api_client.call_api( '/spreadsheet/kloudless', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Spreadsheet', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def delete_spreadsheet(self, id, **kwargs): # noqa: E501 """Delete spreadsheet and mappings # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_spreadsheet(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.delete_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 return data def delete_spreadsheet_with_http_info(self, id, **kwargs): # noqa: E501 """Delete spreadsheet and mappings # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_spreadsheet_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method delete_spreadsheet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if self.api_client.client_side_validation and ('id' not in params or params['id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `id` when calling `delete_spreadsheet`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['OAuth2'] # noqa: E501 return self.api_client.call_api( '/spreadsheet/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_mappings_for_spreadsheet(self, id, **kwargs): # noqa: E501 """get_mappings_for_spreadsheet # noqa: E501 Get mappings for spreadsheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_mappings_for_spreadsheet(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :param str sheet_name: :param object import_type: Whether import PROJECT or COST data. Defaults to PROJECT :param str expand: JSON string containing an array expand specifications for fields. An expand specification must have a path and includes optional properties match, unique, allPossible, limit, offset, orderBy. :return: Mappings If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_mappings_for_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_mappings_for_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 return data def get_mappings_for_spreadsheet_with_http_info(self, id, **kwargs): # noqa: E501 """get_mappings_for_spreadsheet # noqa: E501 Get mappings for spreadsheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_mappings_for_spreadsheet_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :param str sheet_name: :param object import_type: Whether import PROJECT or COST data. Defaults to PROJECT :param str expand: JSON string containing an array expand specifications for fields. An expand specification must have a path and includes optional properties match, unique, allPossible, limit, offset, orderBy. :return: Mappings If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'sheet_name', 'import_type', 'expand'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_mappings_for_spreadsheet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if self.api_client.client_side_validation and ('id' not in params or params['id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `id` when calling `get_mappings_for_spreadsheet`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] if 'sheet_name' in params: query_params.append(('sheetName', params['sheet_name'])) # noqa: E501 if 'import_type' in params: query_params.append(('importType', params['import_type'])) # noqa: E501 if 'expand' in params: query_params.append(('expand', params['expand'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['OAuth2'] # noqa: E501 return self.api_client.call_api( '/spreadsheet/{id}/mappings', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Mappings', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_spreadsheet(self, id, **kwargs): # noqa: E501 """get_spreadsheet # noqa: E501 Get spreadsheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_spreadsheet(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.get_spreadsheet_with_http_info(id, **kwargs) # noqa: E501 return data def get_spreadsheet_with_http_info(self, id, **kwargs): # noqa: E501 """get_spreadsheet # noqa: E501 Get spreadsheet # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_spreadsheet_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: spreadsheet id (required) :return: Spreadsheet If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_spreadsheet" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if self.api_client.client_side_validation and ('id' not in params or params['id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `id` when calling `get_spreadsheet`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['OAuth2'] # noqa: E501 return self.api_client.call_api( '/spreadsheet/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Spreadsheet', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
39.606061
219
0.610272
2,365
20,912
5.145877
0.078647
0.052588
0.023007
0.029581
0.933443
0.919145
0.90986
0.894166
0.891865
0.88373
0
0.017332
0.30198
20,912
527
220
39.681214
0.816401
0.334353
0
0.752688
1
0
0.170488
0.039931
0
0
0
0
0
1
0.039427
false
0
0.02509
0
0.121864
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
4d59ff55a017fcf8414021a1312bd28d14575a86
5,551
py
Python
asana/resources/gen/project_briefs.py
maany/python-asana
a29f59e7f35461bde836126bbf3629dac1a642ab
[ "MIT" ]
null
null
null
asana/resources/gen/project_briefs.py
maany/python-asana
a29f59e7f35461bde836126bbf3629dac1a642ab
[ "MIT" ]
null
null
null
asana/resources/gen/project_briefs.py
maany/python-asana
a29f59e7f35461bde836126bbf3629dac1a642ab
[ "MIT" ]
null
null
null
# coding=utf-8 class _ProjectBriefs: def __init__(self, client=None): self.client = client def create_project_brief(self, project_gid, params=None, **options): """Create a project brief :param str project_gid: (required) Globally unique identifier for the project. :param Object params: Parameters for the request :param **options - opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. - opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. :return: Object """ if params is None: params = {} path = "/projects/{project_gid}/project_briefs".replace("{project_gid}", project_gid) return self.client.post(path, params, **options) def delete_project_brief(self, project_brief_gid, params=None, **options): """Delete a project brief :param str project_brief_gid: (required) Globally unique identifier for the project brief. :param Object params: Parameters for the request :param **options - opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. - opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. :return: Object """ if params is None: params = {} path = "/project_briefs/{project_brief_gid}".replace("{project_brief_gid}", project_brief_gid) return self.client.delete(path, params, **options) def get_project_brief(self, project_brief_gid, params=None, **options): """Get a project brief :param str project_brief_gid: (required) Globally unique identifier for the project brief. :param Object params: Parameters for the request :param **options - opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. - opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. :return: Object """ if params is None: params = {} path = "/project_briefs/{project_brief_gid}".replace("{project_brief_gid}", project_brief_gid) return self.client.get(path, params, **options) def update_project_brief(self, project_brief_gid, params=None, **options): """Update a project brief :param str project_brief_gid: (required) Globally unique identifier for the project brief. :param Object params: Parameters for the request :param **options - opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options. - opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging. :return: Object """ if params is None: params = {} path = "/project_briefs/{project_brief_gid}".replace("{project_brief_gid}", project_brief_gid) return self.client.put(path, params, **options)
89.532258
517
0.723653
792
5,551
4.996212
0.147727
0.078848
0.056861
0.02325
0.919131
0.919131
0.912055
0.912055
0.899924
0.863533
0
0.00023
0.215096
5,551
61
518
91
0.907964
0.725995
0
0.478261
0
0
0.167453
0.112421
0
0
0
0
0
1
0.217391
false
0
0
0
0.434783
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
4d9ed58c971360fbe29b675798bbc68c496ca09b
28,692
py
Python
silver/tests/api/test_invoice.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
222
2017-01-15T10:30:57.000Z
2022-03-08T20:34:46.000Z
silver/tests/api/test_invoice.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
141
2017-01-11T10:56:49.000Z
2021-10-12T11:51:00.000Z
silver/tests/api/test_invoice.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
76
2017-01-10T13:50:27.000Z
2022-03-25T21:37:00.000Z
# Copyright (c) 2019 Presslabs SRL # # 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 __future__ import absolute_import import json from datetime import timedelta from decimal import Decimal from uuid import UUID import pytest from six.moves import range from factory.django import mute_signals from freezegun import freeze_time from rest_framework import status from rest_framework.reverse import reverse from django.db.models.signals import pre_save from django.utils import timezone from django.conf import settings from silver.models import Invoice, Transaction, DocumentEntry from silver.tests.api.specs.document_entry import spec_document_entry, document_entry_definition from silver.tests.api.specs.invoice import spec_invoice, invoice_definition from silver.fixtures.factories import ( CustomerFactory, ProviderFactory, InvoiceFactory, SubscriptionFactory, TransactionFactory, PaymentMethodFactory ) from silver.tests.utils import build_absolute_test_url def test_post_invoice_without_invoice_entries(authenticated_api_client, customer, provider): SubscriptionFactory.create() url = reverse('invoice-list') provider_url = build_absolute_test_url(reverse('provider-detail', [provider.pk])) customer_url = build_absolute_test_url(reverse('customer-detail', [customer.pk])) request_data = { 'provider': provider_url, 'customer': customer_url, 'series': None, 'number': None, 'currency': 'RON', 'invoice_entries': [] } response = authenticated_api_client.post(url, data=request_data, format='json') assert response.status_code == status.HTTP_201_CREATED, response.data invoice = Invoice.objects.get(id=response.data['id']) invoice_definition.check_response(invoice, response.data, request_data) def test_post_invoice_with_invoice_entries(authenticated_api_client): customer = CustomerFactory.create() provider = ProviderFactory.create() SubscriptionFactory.create() url = reverse('invoice-list') provider_url = build_absolute_test_url(reverse('provider-detail', [provider.pk])) customer_url = build_absolute_test_url(reverse('customer-detail', [customer.pk])) request_data = { 'provider': provider_url, 'customer': customer_url, 'series': None, 'number': None, 'currency': 'RON', 'transaction_xe_rate': 1, 'invoice_entries': [{ "description": "Page views", "unit_price": 10.0, "quantity": 20}] } response = authenticated_api_client.post(url, data=request_data, format='json') assert response.status_code == status.HTTP_201_CREATED, response.data invoice = Invoice.objects.get(id=response.data['id']) invoice_definition.check_response(invoice, response.data, request_data) assert response.data['invoice_entries'] # content already checked in previous assert @pytest.mark.parametrize('transaction_currency', ['RON', 'USD']) def test_post_invoice_with_invoice_entries_without_transaction_xe_rate( transaction_currency, authenticated_api_client ): customer = CustomerFactory.create() provider = ProviderFactory.create() SubscriptionFactory.create() url = reverse('invoice-list') provider_url = build_absolute_test_url(reverse('provider-detail', [provider.pk])) customer_url = build_absolute_test_url(reverse('customer-detail', [customer.pk])) request_data = { 'provider': provider_url, 'customer': customer_url, 'series': None, 'number': None, 'currency': 'RON', 'transaction_currency': transaction_currency, 'invoice_entries': [{ "description": "Page views", "unit_price": 10.0, "quantity": 20}] } response = authenticated_api_client.post(url, data=request_data, format='json') assert response.status_code == status.HTTP_201_CREATED, response.data invoice = Invoice.objects.get(id=response.data['id']) invoice_definition.check_response(invoice, response.data, request_data) assert response.data['invoice_entries'] # content already checked in previous assert def test_list_invoices(authenticated_api_client, two_pages_of_invoices): """Tests invoice listing as well as pagination""" assert len(two_pages_of_invoices) == settings.API_PAGE_SIZE * 2 > 2 url = reverse('invoice-list') response = authenticated_api_client.get(url) assert response.status_code == status.HTTP_200_OK, response.data assert len(response.data) == settings.API_PAGE_SIZE for invoice_data in response.data: invoice = Invoice.objects.get(id=invoice_data['id']) assert invoice_data == spec_invoice(invoice) response = authenticated_api_client.get(url + '?page=2') assert response.status_code == status.HTTP_200_OK, response.data assert len(response.data) == settings.API_PAGE_SIZE for invoice_data in response.data: invoice = Invoice.objects.get(id=invoice_data['id']) assert invoice_data == spec_invoice(invoice) @freeze_time('2019-11-10') def test_get_invoice(authenticated_api_client, settings, issued_invoice): invoice = issued_invoice customer = issued_invoice.customer issued_invoice.generate_pdf() with mute_signals(pre_save): [ TransactionFactory.create( state=state, invoice=issued_invoice, payment_method=PaymentMethodFactory(customer=customer) ) for state in Transaction.States.as_list() if state not in [Transaction.States.Canceled, Transaction.States.Refunded, Transaction.States.Failed] ] url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url, format='json') assert response.status_code == status.HTTP_200_OK, response.data # Cast IDs to UUID so the comparison check doesn't fail data = response.data data['transactions'][0]['id'] = UUID(data['transactions'][0]['id']) data['transactions'][1]['id'] = UUID(data['transactions'][1]['id']) data['transactions'][2]['id'] = UUID(data['transactions'][2]['id']) invoice_definition.check_response(invoice, response_data=response.data) def test_delete_invoice(authenticated_api_client): url = reverse('invoice-detail', kwargs={'pk': 1}) response = authenticated_api_client.delete(url) assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED assert response.data == {"detail": 'Method "DELETE" not allowed.'} def test_add_single_invoice_entry(authenticated_api_client, invoice): url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') invoice = Invoice.objects.all()[0] total = Decimal(200.0) * Decimal(1 + invoice.sales_tax_percent / 100) assert response.status_code == status.HTTP_201_CREATED, response.data entry = DocumentEntry.objects.get(id=response.data['id']) document_entry_definition.check_response(entry, response.data, request_data) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data['invoice_entries'] assert invoice_entries == [spec_document_entry(entry)] def test_try_to_get_invoice_entries(authenticated_api_client, invoice): url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) response = authenticated_api_client.get(url) assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED assert response.data == {"detail": 'Method "GET" not allowed.'} def test_add_multiple_invoice_entries(authenticated_api_client, invoice): url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": '20.0', } entries_count = 10 for cnt in range(entries_count): response = authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') assert response.status_code == status.HTTP_201_CREATED, response.data entry = DocumentEntry.objects.get(id=response.data['id']) document_entry_definition.check_response(entry, response.data, request_data) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data.get('invoice_entries', None) assert len(invoice_entries) == entries_count def test_delete_invoice_entry(authenticated_api_client): invoice = InvoiceFactory.create() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } entries_count = 10 for cnt in range(entries_count): authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') url = reverse('invoice-entry-update', kwargs={'document_pk': invoice.pk, 'entry_pk': list(invoice._entries)[0].pk}) response = authenticated_api_client.delete(url) assert response.status_code == status.HTTP_204_NO_CONTENT url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data.get('invoice_entries', None) assert len(invoice_entries) == entries_count - 1 def test_add_invoice_entry_in_issued_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN msg = 'Invoice entries can be added only when the invoice is in draft state.' assert response.data == {'detail': msg} url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data['invoice_entries'] assert invoice_entries == [] def test_add_invoice_entry_in_canceled_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() invoice.cancel() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN msg = 'Invoice entries can be added only when the invoice is in draft state.' assert response.data == {'detail': msg} url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data.get('invoice_entries', None) assert len(invoice_entries) == 0 def test_add_invoice_entry_in_paid_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() invoice.pay() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) request_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = authenticated_api_client.post(url, data=json.dumps(request_data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN msg = 'Invoice entries can be added only when the invoice is in draft state.' assert response.data == {'detail': msg} url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = authenticated_api_client.get(url) invoice_entries = response.data.get('invoice_entries', None) assert len(invoice_entries) == 0 def test_edit_invoice_in_issued_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = authenticated_api_client.patch(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_400_BAD_REQUEST assert response.data == { 'non_field_errors': ['You cannot edit the document once it is in issued state.'] } def test_edit_invoice_in_canceled_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() invoice.cancel() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = authenticated_api_client.patch(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_400_BAD_REQUEST assert response.data == { 'non_field_errors': ['You cannot edit the document once it is in canceled state.'] } def test_edit_invoice_in_paid_state(authenticated_api_client): invoice = InvoiceFactory.create() invoice.issue() invoice.pay() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = authenticated_api_client.patch(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_400_BAD_REQUEST assert response.data == { 'non_field_errors': ['You cannot edit the document once it is in paid state.'] } def test_issue_invoice_with_default_dates(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'state': 'issued' } assert response.status_code == status.HTTP_200_OK assert all(item in response.data.items() for item in mandatory_content.items()) assert response.data.get('archived_provider', {}) != {} assert response.data.get('archived_customer', {}) != {} def test_issue_invoice_with_custom_issue_date(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued', 'issue_date': '2014-01-01'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': '2014-01-01', 'due_date': due_date.strftime('%Y-%m-%d'), 'state': 'issued' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) assert response.data.get('archived_provider', {}) != {} assert response.data.get('archived_customer', {}) != {} def test_issue_invoice_with_custom_issue_date_and_due_date(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'issued', 'issue_date': '2014-01-01', 'due_date': '2014-01-20' } response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK mandatory_content = { 'issue_date': '2014-01-01', 'due_date': '2014-01-20', 'state': 'issued' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) assert response.data.get('archived_provider', {}) != {} assert response.data.get('archived_customer', {}) != {} def test_issue_invoice_when_in_issued_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be issued only if it is in draft state.' } def test_issue_invoice_when_in_paid_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be issued only if it is in draft state.' } def test_pay_invoice_with_default_dates(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'paid_date': timezone.now().date().strftime('%Y-%m-%d'), 'state': 'paid' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) def test_pay_invoice_with_provided_date(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'paid', 'paid_date': '2014-05-05' } response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'paid_date': '2014-05-05', 'state': 'paid' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) def test_pay_invoice_when_in_draft_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be paid only if it is in issued state.' } def test_pay_invoice_when_in_paid_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be paid only if it is in issued state.' } def test_cancel_invoice_with_default_dates(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'cancel_date': timezone.now().date().strftime('%Y-%m-%d'), 'state': 'canceled' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) def test_cancel_invoice_with_provided_date(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'canceled', 'cancel_date': '2014-10-10' } response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=settings.SILVER_DEFAULT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'cancel_date': '2014-10-10', 'state': 'canceled' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in mandatory_content.items()) def test_cancel_invoice_in_draft_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_cancel_invoice_in_canceled_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.cancel() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_cancel_invoice_in_paid_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_illegal_state_change_when_in_draft_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'} def test_illegal_state_change_when_in_issued_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'} def test_illegal_state_change_when_in_paid_state(authenticated_api_client): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = authenticated_api_client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'}
38.878049
96
0.678621
3,362
28,692
5.573171
0.078227
0.06319
0.086887
0.052516
0.877622
0.864333
0.849869
0.842611
0.839569
0.831136
0
0.012596
0.203088
28,692
737
97
38.930801
0.806866
0.025721
0
0.743728
0
0
0.140622
0
0
0
0
0
0.15233
1
0.05914
false
0
0.03405
0
0.09319
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4dc4dee4c44fd2373c5bdc641e412fee57a4defd
1,794
py
Python
cities_light/migrations/0002_auto_20191001_0605.py
b-dev/django-cities-light
b42d3363dfabd662c9d0878b15b0dde748fec38e
[ "MIT" ]
null
null
null
cities_light/migrations/0002_auto_20191001_0605.py
b-dev/django-cities-light
b42d3363dfabd662c9d0878b15b0dde748fec38e
[ "MIT" ]
null
null
null
cities_light/migrations/0002_auto_20191001_0605.py
b-dev/django-cities-light
b42d3363dfabd662c9d0878b15b0dde748fec38e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-10-01 06:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cities_light', '0001_initial'), ] operations = [ migrations.AlterField( model_name='city', name='default_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Default language'), ), migrations.AlterField( model_name='citytranslation', name='source_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Source language'), ), migrations.AlterField( model_name='country', name='default_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Default language'), ), migrations.AlterField( model_name='countrytranslation', name='source_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Source language'), ), migrations.AlterField( model_name='region', name='default_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Default language'), ), migrations.AlterField( model_name='regiontranslation', name='source_language', field=models.CharField(choices=[('en', 'English'), ('ru', 'Russian')], default='en', max_length=2, verbose_name='Source language'), ), ]
40.772727
144
0.590858
178
1,794
5.808989
0.258427
0.116054
0.145068
0.168279
0.766925
0.766925
0.766925
0.766925
0.766925
0.766925
0
0.018437
0.244147
1,794
43
145
41.72093
0.7441
0.025084
0
0.648649
1
0
0.227247
0
0
0
0
0
0
1
0
false
0
0.027027
0
0.108108
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
12881f338156f09c31e9f9596aa461b688b08003
56
py
Python
daemons/sentry/__init__.py
dekoder/LogESP
fa45523b4ad96004583cbf722645afc3f63c9a6d
[ "MIT" ]
130
2018-04-18T08:51:41.000Z
2022-03-24T18:15:01.000Z
daemons/sentry/__init__.py
Seabreg/LogESP
fa45523b4ad96004583cbf722645afc3f63c9a6d
[ "MIT" ]
14
2018-04-02T19:59:25.000Z
2021-06-10T17:30:18.000Z
daemons/sentry/__init__.py
Seabreg/LogESP
fa45523b4ad96004583cbf722645afc3f63c9a6d
[ "MIT" ]
55
2018-04-18T08:51:50.000Z
2022-03-05T02:55:17.000Z
import daemons.sentry.core import daemons.sentry.rules
14
27
0.839286
8
56
5.875
0.625
0.553191
0.808511
0
0
0
0
0
0
0
0
0
0.089286
56
3
28
18.666667
0.921569
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
12a555f7716887769478410b5c02f2d8d65b9d5b
126
py
Python
ivy/array/math.py
saurbhc/ivy
20b327b4fab543b26ad5a18acf4deddd6e3c804b
[ "Apache-2.0" ]
161
2021-01-20T22:11:13.000Z
2022-01-09T09:46:33.000Z
ivy/array/math.py
saurbhc/ivy
20b327b4fab543b26ad5a18acf4deddd6e3c804b
[ "Apache-2.0" ]
4
2021-11-10T17:04:36.000Z
2021-11-26T06:40:43.000Z
ivy/array/math.py
saurbhc/ivy
20b327b4fab543b26ad5a18acf4deddd6e3c804b
[ "Apache-2.0" ]
8
2021-02-17T20:56:33.000Z
2022-01-09T16:45:40.000Z
# global import abc # ToDo: implement all math methods here as public class methods class ArrayWithMath(abc.ABC): pass
14
63
0.746032
18
126
5.222222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.198413
126
8
64
15.75
0.930693
0.539683
0
0
0
0
0
0
0
0
0
0.125
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
1
0
0
0
1
1
1
0
1
0
0
7
12e13fb8ccb4f78d5e8de77626bf5996d27531b2
188
py
Python
i3-workflow/models/workspace.py
lukasvdberk/i3GroupStart
db4d34bc83e3bdff27e21fe9fa65b148c9b1fc68
[ "MIT" ]
5
2021-07-05T20:38:24.000Z
2022-02-28T03:37:53.000Z
i3-workflow/models/workspace.py
lukasvdberk/i3GroupStart
db4d34bc83e3bdff27e21fe9fa65b148c9b1fc68
[ "MIT" ]
null
null
null
i3-workflow/models/workspace.py
lukasvdberk/i3GroupStart
db4d34bc83e3bdff27e21fe9fa65b148c9b1fc68
[ "MIT" ]
null
null
null
class Workspace: def __init__(self, name: str): self.name = name def set_name(self, name: str): self.name = name def get_name(self): return self.name
18.8
34
0.590426
26
188
4.038462
0.384615
0.380952
0.209524
0.285714
0.495238
0.495238
0.495238
0
0
0
0
0
0.308511
188
9
35
20.888889
0.807692
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0
0.142857
0.714286
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
8
423d2ce3bde39691cdd9ea7391cd638a59779f76
29,767
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/addremove/igmp/nxos/addremove.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/addremove/igmp/nxos/addremove.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/addremove/igmp/nxos/addremove.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
'''NXOS Implementation for Igmp add-remove triggers''' # python from functools import partial # import pyats from pyats import aetest from pyats.utils.objects import Not, NotExists # Genie Libs from genie.libs.sdk.libs.utils.mapping import Mapping from genie.libs.sdk.triggers.addremove.addremove import TriggerAddRemove from genie.libs.sdk.libs.utils.triggeractions import configure_add_attributes from genie.libs.conf.igmp.igmp_group import IgmpGroup # Which key to exclude for Igmp Ops comparison igmp_exclude = ['maker', 'elapsed_time', 'discontinuity_time', 'keepalive', 'total', 'up_time', 'expire', 'remote', 'last_message_received', 'num_of_comparison', 'rpf_failure', 'total_accept_count', 'total_reject_count', 'notification'] # Which key to exclude for Interface Ops comparison interface_exclude = ['maker', 'last_change','in_rate','in_rate_pkts', 'out_rate', 'out_rate_pkts', 'in_octets', 'in_pkts', 'in_unicast_pkts', 'out_octets', 'out_pkts', 'out_unicast_pkts', 'out_multicast_pkts', 'in_multicast_pkts', 'last_clear', 'in_broadcast_pkts', 'out_broadcast_pkts', 'bandwidth', 'load_interval', 'port_speed', 'in_crc_errors', 'in_discards', 'unnumbered', '(Tunnel.*)', 'accounting'] class TriggerAddRemoveIgmpEnable(TriggerAddRemove): """Apply the Igmp interface enable, add remove added Igmp interface enable""" __description__ = """Apply the Igmp interface enable, add remove added Igmp interface enable. trigger_datafile: Mandatory: timeout: max_time (`int`): Maximum wait time for the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 method (`str`): Method to recover the device configuration, Support methods: 'checkpoint': Rollback the configuration by checkpoint (nxos), archive file (iosxe), load the saved running-config file on disk (iosxr) Optional: tgn_timeout (`int`): Maximum wait time for all traffic threads to be restored to the reference rate, in second. Default: 60 tgn_delay (`int`): Wait time between each poll to verify if traffic is resumed, in second. Default: 10 timeout_recovery: Buffer recovery timeout make sure devices are recovered at the end of the trigger execution. Used when previous timeouts have been exhausted. max_time (`int`): Maximum wait time for the last step of the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 static: The keys below are dynamically learnt by default. However, they can also be set to a custom value when provided in the trigger datafile. vrf: `str` interface: `str` (e.g) interface: '(?P<interface>Ethernet1*)' (Regex supported) OR interface: 'Ethernet1/1/1' (Specific value) steps: 1. Learn Igmp Ops/Conf object and store the Igmp interface enable, learn Interface ops to get interface with ip address and not same to the existing igmp interface. 2. Save the current device configurations through "method" which user uses 3. Add the configuration of interface as igmp originator-id with Igmp Conf object 4. Verify the igmp interface enable from step 3 has configured 5. Remove the igmp interface enable configurations. 6. Recover the device configurations to the one in step 2 7. Learn Igmp Ops again and verify it is the same as the Ops in step 1 """ @aetest.setup def verify_prerequisite(self, uut, abstract, steps, timeout): # learn existing igmp interfaces super().verify_prerequisite(uut, abstract, steps, timeout) igmp_keys = self.mapping.keys # learn interafce ops to get ipv4 up interfaces self.mapping.requirements = {} self.mapping.requirements['ops.interface.interface.Interface'] = \ {'requirements':[['info', '(?P<interface>^(?!mgmt).*)', 'ipv4', '(?P<ip>.*)', 'ip', '(?P<address>.*)'], ['info', '(?P<interface>.*)', 'vrf', '(?P<add_igmp_intf_vrf>.*)']], 'all_keys': True, 'kwargs':{'attributes': [ 'info[(.*)][ipv4][(.*)][ip]', 'info[(.*)][vrf]']}, 'exclude': interface_exclude} super().verify_prerequisite(uut, abstract, steps, timeout) intf_keys = self.mapping.keys # find interface with steps.start("Extracting ipv4 interfaces " "which are not igmp interfaces") as step: add_keys = {} for item in intf_keys: if all(item['interface'] not in \ i['interface'] for i in igmp_keys): # attach the add value to mapping keys add_keys.update({'add_igmp_intf': item['interface'], 'add_igmp_intf_vrf': item['add_igmp_intf_vrf']}) break if not add_keys: step.skipped('Could not find up ipv4 interface which is ' 'not existed igmp interface') self.skipped('Could not find up ipv4 interface which is ' 'not existed igmp interface', goto=['next_tc']) self.mapping.keys = [add_keys] # Mapping of Information between Ops and Conf # Also permit to dictate which key to verify mapping = Mapping(requirements={'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)']], 'kwargs':{'attributes': [ 'info[vrfs][(.*)][interfaces]']}, 'exclude': igmp_exclude}}, config_info={'conf.igmp.Igmp':{ 'requirements':[ ['device_attr', '{uut}', 'vrf_attr', '(?P<add_igmp_intf_vrf>.*)', 'interface_attr', '(?P<add_igmp_intf>.*)', 'enable', True]], 'verify_conf':False, 'kwargs':{}}}, verify_ops={'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<add_igmp_intf_vrf>.*)', 'interfaces', '(?P<add_igmp_intf>.*)', 'enable', True]], 'kwargs':{'attributes': ['info[vrfs][(.*)][interfaces]']}, 'exclude': igmp_exclude}}, num_values={'vrf': 'all', 'interface': 'all'}) class TriggerAddRemoveIgmpVersion(TriggerAddRemove): """Apply Igmp interface version, and remove added Igmp interface version""" __description__ = """Apply Igmp interface version, and remove added Igmp interface version. trigger_datafile: Mandatory: timeout: max_time (`int`): Maximum wait time for the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 method (`str`): Method to recover the device configuration, Support methods: 'checkpoint': Rollback the configuration by checkpoint (nxos), archive file (iosxe), load the saved running-config file on disk (iosxr) Optional: tgn_timeout (`int`): Maximum wait time for all traffic threads to be restored to the reference rate, in second. Default: 60 tgn_delay (`int`): Wait time between each poll to verify if traffic is resumed, in second. Default: 10 timeout_recovery: Buffer recovery timeout make sure devices are recovered at the end of the trigger execution. Used when previous timeouts have been exhausted. max_time (`int`): Maximum wait time for the last step of the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 static: The keys below are dynamically learnt by default. However, they can also be set to a custom value when provided in the trigger datafile. vrf: `str` interface: `str` (e.g) interface: '(?P<interface>Ethernet1*)' (Regex supported) OR interface: 'Ethernet1/1/1' (Specific value) steps: 1. Learn Igmp Ops object and store the Igmp which interface version is default value. 2. Save the current device configurations through "method" which user uses 3. Add the configuration of igmp interface version with Igmp Conf object 4. Verify the igmp interface version from step 3 has configured 5. Remove the igmp interface version configurations. 6. Recover the device configurations to the one in step 2 7. Learn Igmp Ops again and verify it is the same as the Ops in step 1 """ ADD_VERSION = 3 # Mapping of Information between Ops and Conf # Also permit to dictate which key to verify mapping = Mapping(requirements={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'enable', True], ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'version', '(?P<version>2)']], 'all_keys': True, 'kwargs':{'attributes': [ 'info[vrfs][(.*)]']}, 'exclude': igmp_exclude}}, config_info={'conf.igmp.Igmp':{ 'requirements':[ ['device_attr', '{uut}', 'vrf_attr', '(?P<vrf>.*)', 'interface_attr', '(?P<interface>.*)', 'version', ADD_VERSION]], 'verify_conf':False, 'kwargs':{}}}, verify_ops={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'version', ADD_VERSION]], 'kwargs':{'attributes': [ 'info[vrfs][(.*)]']}, 'exclude': igmp_exclude}}, num_values={'vrf': 1, 'interface': 1}) class TriggerAddRemoveIgmpJoinGroup(TriggerAddRemove): """Apply the Igmp interface join-group, and remove added Igmp interface join-group""" __description__ = """Apply the Igmp peer(s) sa-filter out, and remove added Igmp peer(s) sa-filter out. trigger_datafile: Mandatory: timeout: max_time (`int`): Maximum wait time for the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 method (`str`): Method to recover the device configuration, Support methods: 'checkpoint': Rollback the configuration by checkpoint (nxos), archive file (iosxe), load the saved running-config file on disk (iosxr) Optional: add_igmp_group: Trigger yaml file customized add imgp join-group. tgn_timeout (`int`): Maximum wait time for all traffic threads to be restored to the reference rate, in second. Default: 60 tgn_delay (`int`): Wait time between each poll to verify if traffic is resumed, in second. Default: 10 timeout_recovery: Buffer recovery timeout make sure devices are recovered at the end of the trigger execution. Used when previous timeouts have been exhausted. max_time (`int`): Maximum wait time for the last step of the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 static: The keys below are dynamically learnt by default. However, they can also be set to a custom value when provided in the trigger datafile. vrf: `str` join_group: `str` group: `str` interface: `str` (e.g) interface: '(?P<interface>Ethernet1*)' (Regex supported) OR interface: 'Ethernet1/1/1' (Specific value) steps: 1. Learn Igmp Ops object and store the Igmp interface(s) which does not have added join-group. 2. Save the current device configurations through "method" which user uses 3. Add the configuration of igmp interface join-group with Igmp Conf object 4. Verify the igmp interface join-group from step 3 has configured 5. Remove the igmp interface join-group configurations. 6. Recover the device configurations to the one in step 2 7. Learn Igmp Ops again and verify it is the same as the Ops in step 1 """ ADD_JOIN_GROUP = '234.1.1.2 *' @aetest.setup def verify_prerequisite(self, uut, abstract, steps, timeout, add_igmp_group=None): self.timeout = timeout try: self.pre_snap = self.mapping.learn_ops(device=uut, abstract=abstract, steps=steps, timeout=timeout) except Exception as e: self.errored("Section failed due to: '{e}'".format(e=e)) # nothing in the static groups, # then learn if any groups to have some vrf interface value if any(not item for item in self.mapping.keys): self.mapping.requirements['ops.igmp.igmp.Igmp']['requirements'] = \ [['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'group', '(?P<group>.*)', '(?P<dummy>.*)']] # incase there is nothing learned try: self.pre_snap = self.mapping.learn_ops(device=uut, abstract=abstract, steps=steps, timeout=timeout) except Exception as e: self.errored("Section failed due to: '{e}'".format(e=e)) if any(not item for item in self.mapping.keys): self.skipped('Cannot learn the feature', goto=['next_tc']) with steps.start("Check if added group %s not in the " "existing groups" % self.ADD_JOIN_GROUP) as step: # learn igmp ops to have existing igmp interfaces if any(self.ADD_JOIN_GROUP in \ item.get('join_group', '') for item in self.mapping.keys): if add_igmp_group: self.ADD_JOIN_GROUP = add_igmp_group else: self.skipped('Could not find join_group does not ' 'include the added group %s' % self.ADD_JOIN_GROUP, goto=['next_tc']) # attach the add value to mapping keys [item.update({'add_igmp_group': self.ADD_JOIN_GROUP.split()[0], 'add_igmp_source': self.ADD_JOIN_GROUP.split()[1], 'add_igmp_group_key': self.ADD_JOIN_GROUP}) for item in self.mapping.keys] step.passed('Will add group %s' % self.ADD_JOIN_GROUP) # Mapping of Information between Ops and Conf # Also permit to dictate which key to verify mapping = Mapping(requirements={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'join_group', '(?P<join_group>.*)', 'group', '(?P<group>.*)']], 'all_keys': True, 'kwargs':{'attributes': [ 'info[vrfs][(.*)][interfaces][(.*)][join_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][static_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][group][(.*)]']}, 'exclude': igmp_exclude}}, config_info={'conf.igmp.Igmp':{ 'requirements':[ [partial(configure_add_attributes, # callable configuration add_obj=IgmpGroup, base=[['device_attr', '{uut}', 'vrf_attr', '(?P<vrf>.*)', 'interface_attr', '(?P<interface>.*)']], add_attribute=[['join_group', '(?P<add_igmp_group>.*)'], ['join_group_source_addr', '(?P<add_igmp_source>.*)'],], add_method='add_groups', )]], 'verify_conf':False, 'kwargs':{}}}, verify_ops={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'join_group', '(?P<add_igmp_group_key>.*)', 'group', '(?P<add_igmp_group>.*)'], ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'join_group', '(?P<add_igmp_group_key>.*)', 'source', '(?P<add_igmp_source>.*)'], ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'group', '(?P<add_igmp_group>.*)', 'last_reporter', '([\w\.]+)']], 'kwargs':{'attributes': [ 'info[vrfs][(.*)][interfaces][(.*)][join_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][static_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][group][(.*)]']}, 'exclude': igmp_exclude}}, num_values={'vrf': 1, 'interface': 1, 'join_group': 1, 'group': 1, 'source': 1}) class TriggerAddRemoveIgmpStaticGroup(TriggerAddRemove): """Apply the Igmp interface static-group, and remove added Igmp interface static-group""" __description__ = """Apply the Igmp interface static-group, and remove added Igmp interface static-group. trigger_datafile: Mandatory: timeout: max_time (`int`): Maximum wait time for the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 method (`str`): Method to recover the device configuration, Support methods: 'checkpoint': Rollback the configuration by checkpoint (nxos), archive file (iosxe), load the saved running-config file on disk (iosxr) Optional: tgn_timeout (`int`): Maximum wait time for all traffic threads to be restored to the reference rate, in second. Default: 60 tgn_delay (`int`): Wait time between each poll to verify if traffic is resumed, in second. Default: 10 timeout_recovery: Buffer recovery timeout make sure devices are recovered at the end of the trigger execution. Used when previous timeouts have been exhausted. max_time (`int`): Maximum wait time for the last step of the trigger, in second. Default: 180 interval (`int`): Wait time between iteration when looping is needed, in second. Default: 15 static: The keys below are dynamically learnt by default. However, they can also be set to a custom value when provided in the trigger datafile. vrf: `str` static_group: `str` group: `str` interface: `str` (e.g) interface: '(?P<interface>Ethernet1*)' (Regex supported) OR interface: 'Ethernet1/1/1' (Specific value) steps: 1. Learn Igmp Ops object and store the Igmp interface(s) which does not have added static-group. 2. Save the current device configurations through "method" which user uses 3. Add the configuration of igmp interface static-group with Igmp Conf object 4. Verify the igmp interface static-group from step 3 has configured 5. Remove the igmp interface static-group configurations. 6. Recover the device configurations to the one in step 2 7. Learn Igmp Ops again and verify it is the same as the Ops in step 1 """ ADD_STATIC_GROUP = '234.1.1.2 *' @aetest.setup def verify_prerequisite(self, uut, abstract, steps, timeout, add_igmp_group=None): self.timeout = timeout try: self.pre_snap = self.mapping.learn_ops(device=uut, abstract=abstract, steps=steps, timeout=timeout) except Exception as e: self.errored("Section failed due to: '{e}'".format(e=e)) # nothing in the static groups, # then learn if any groups to have some vrf interface value if any(not item for item in self.mapping.keys): self.mapping.requirements['ops.igmp.igmp.Igmp']['requirements'] = \ [['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'group', '(?P<group>.*)', '(?P<dummy>.*)']] # incase there is nothing learned try: self.pre_snap = self.mapping.learn_ops(device=uut, abstract=abstract, steps=steps, timeout=timeout) except Exception as e: self.errored("Section failed due to: '{e}'".format(e=e)) if any(not item for item in self.mapping.keys): self.skipped('Cannot learn the feature', goto=['next_tc']) with steps.start("Check if added group %s not in the " "existing groups" % self.ADD_STATIC_GROUP) as step: # learn igmp ops to have existing igmp interfaces if any(self.ADD_STATIC_GROUP in \ item.get('static_group', '') for item in self.mapping.keys): if add_igmp_group: self.ADD_STATIC_GROUP = add_igmp_group else: self.skipped('Could not find static_group does not ' 'include the added group %s' % self.ADD_STATIC_GROUP, goto=['next_tc']) # attach the add value to mapping keys [item.update({'add_igmp_group': self.ADD_STATIC_GROUP.split()[0], 'add_igmp_source': self.ADD_STATIC_GROUP.split()[1], 'add_igmp_group_key': self.ADD_STATIC_GROUP}) for item in self.mapping.keys] step.passed('Will add group %s' % self.ADD_STATIC_GROUP) # Mapping of Information between Ops and Conf # Also permit to dictate which key to verify mapping = Mapping(requirements={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'static_group', '(?P<static_group>.*)', 'group', '(?P<group>.*)']], 'all_keys': True, 'kwargs':{'attributes': [ 'info[vrfs][(.*)][interfaces][(.*)][join_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][static_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][group][(.*)]']}, 'exclude': igmp_exclude}}, config_info={'conf.igmp.Igmp':{ 'requirements':[ [partial(configure_add_attributes, # callable configuration add_obj=IgmpGroup, base=[['device_attr', '{uut}', 'vrf_attr', '(?P<vrf>.*)', 'interface_attr', '(?P<interface>.*)']], add_attribute=[['static_group', '(?P<add_igmp_group>.*)'], ['static_group_source_addr', '(?P<add_igmp_source>.*)'],], add_method='add_groups', )]], 'verify_conf':False, 'kwargs':{}}}, verify_ops={ 'ops.igmp.igmp.Igmp':{ 'requirements':[\ ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'static_group', '(?P<add_igmp_group_key>.*)', 'group', '(?P<add_igmp_group>.*)'], ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'static_group', '(?P<add_igmp_group_key>.*)', 'source', '(?P<add_igmp_source>.*)'], ['info', 'vrfs', '(?P<vrf>.*)', 'interfaces', '(?P<interface>.*)', 'group', '(?P<add_igmp_group>.*)', 'last_reporter', '([\w\.]+)']], 'kwargs':{'attributes': [ 'info[vrfs][(.*)][interfaces][(.*)][join_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][static_group][(.*)]', 'info[vrfs][(.*)][interfaces][(.*)][group][(.*)]']}, 'exclude': igmp_exclude}}, num_values={'vrf': 1, 'interface': 1, 'static_group': 1, 'group': 1, 'source': 1})
54.71875
124
0.472167
2,834
29,767
4.84686
0.105152
0.017836
0.026209
0.012231
0.856945
0.837507
0.812536
0.797903
0.782324
0.768564
0
0.008564
0.419424
29,767
543
125
54.819521
0.786252
0.047502
0
0.713964
0
0.004505
0.557723
0.048518
0
0
0
0
0
1
0.006757
false
0.004505
0.015766
0
0.056306
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4257621f850c4c78ccd69b54d926fcbccce9e65d
131
py
Python
tests/test-cases/typeinfer_basecase/case16/file1.py
SMAT-Lab/Scalpel
1022200043f2d9e8c24256821b863997ab34dd49
[ "Apache-2.0" ]
102
2021-12-15T09:08:48.000Z
2022-03-24T15:15:25.000Z
tests/test-cases/typeinfer_basecase/case16/file1.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
11
2021-12-04T11:48:31.000Z
2022-03-21T09:21:45.000Z
tests/test-cases/typeinfer_basecase/case16/file1.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
11
2021-12-04T11:47:41.000Z
2022-02-06T09:04:39.000Z
from file2 import imported_function class MyClass: @staticmethod def class_method(): return imported_function()
14.555556
35
0.717557
14
131
6.5
0.785714
0.351648
0
0
0
0
0
0
0
0
0
0.009901
0.229008
131
8
36
16.375
0.891089
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
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
1
1
0
0
7
425ca3661a1d2218fd98a26735168fee60fc5b1d
4,907
py
Python
boundary_iou/lvis_instance_api/colormap.py
bowenc0221/boundary-iou-api
37d25586a677b043ed585f10e5c42d4e80176ea9
[ "BSD-2-Clause-FreeBSD" ]
153
2021-03-30T20:32:19.000Z
2022-03-30T03:28:59.000Z
boundary_iou/lvis_instance_api/colormap.py
xuwenlong0315/boundary-iou-api
37d25586a677b043ed585f10e5c42d4e80176ea9
[ "BSD-2-Clause-FreeBSD" ]
8
2021-04-05T04:13:50.000Z
2021-12-26T23:49:50.000Z
boundary_iou/lvis_instance_api/colormap.py
xuwenlong0315/boundary-iou-api
37d25586a677b043ed585f10e5c42d4e80176ea9
[ "BSD-2-Clause-FreeBSD" ]
14
2021-04-04T23:16:32.000Z
2022-03-13T07:29:08.000Z
# Copyright (c) 2019, Agrim Gupta and Ross Girshick # All rights reserved. """An awesome colormap for really neat visualizations. Taken from detectron.""" import numpy as np def colormap(rgb=False): color_list = np.array( [ 0.000, 0.447, 0.741, 0.850, 0.325, 0.098, 0.929, 0.694, 0.125, 0.494, 0.184, 0.556, 0.466, 0.674, 0.188, 0.301, 0.745, 0.933, 0.635, 0.078, 0.184, 0.300, 0.300, 0.300, 0.600, 0.600, 0.600, 1.000, 0.000, 0.000, 1.000, 0.500, 0.000, 0.749, 0.749, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000, 1.000, 0.667, 0.000, 1.000, 0.333, 0.333, 0.000, 0.333, 0.667, 0.000, 0.333, 1.000, 0.000, 0.667, 0.333, 0.000, 0.667, 0.667, 0.000, 0.667, 1.000, 0.000, 1.000, 0.333, 0.000, 1.000, 0.667, 0.000, 1.000, 1.000, 0.000, 0.000, 0.333, 0.500, 0.000, 0.667, 0.500, 0.000, 1.000, 0.500, 0.333, 0.000, 0.500, 0.333, 0.333, 0.500, 0.333, 0.667, 0.500, 0.333, 1.000, 0.500, 0.667, 0.000, 0.500, 0.667, 0.333, 0.500, 0.667, 0.667, 0.500, 0.667, 1.000, 0.500, 1.000, 0.000, 0.500, 1.000, 0.333, 0.500, 1.000, 0.667, 0.500, 1.000, 1.000, 0.500, 0.000, 0.333, 1.000, 0.000, 0.667, 1.000, 0.000, 1.000, 1.000, 0.333, 0.000, 1.000, 0.333, 0.333, 1.000, 0.333, 0.667, 1.000, 0.333, 1.000, 1.000, 0.667, 0.000, 1.000, 0.667, 0.333, 1.000, 0.667, 0.667, 1.000, 0.667, 1.000, 1.000, 1.000, 0.000, 1.000, 1.000, 0.333, 1.000, 1.000, 0.667, 1.000, 0.167, 0.000, 0.000, 0.333, 0.000, 0.000, 0.500, 0.000, 0.000, 0.667, 0.000, 0.000, 0.833, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000, 0.167, 0.000, 0.000, 0.333, 0.000, 0.000, 0.500, 0.000, 0.000, 0.667, 0.000, 0.000, 0.833, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000, 0.167, 0.000, 0.000, 0.333, 0.000, 0.000, 0.500, 0.000, 0.000, 0.667, 0.000, 0.000, 0.833, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000, 0.143, 0.143, 0.143, 0.286, 0.286, 0.286, 0.429, 0.429, 0.429, 0.571, 0.571, 0.571, 0.714, 0.714, 0.714, 0.857, 0.857, 0.857, 1.000, 1.000, 1.000, ] ).astype(np.float32) color_list = color_list.reshape((-1, 3)) * 255 if not rgb: color_list = color_list[:, ::-1] return color_list
19.318898
79
0.246383
529
4,907
2.274102
0.141777
0.295927
0.228595
0.192851
0.694098
0.519535
0.446384
0.423109
0.371571
0.371571
0
0.555234
0.647646
4,907
253
80
19.395257
0.140544
0.02955
0
0.88664
0
0
0
0
0
0
0
0
0
1
0.004049
false
0
0.004049
0
0.012146
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c439fc2b941fa65eac2eac326b32d7cb05029871
7,453
py
Python
vpy.py
sheride/equation-learner
ab0debe45f981f7f8fad4eae1aa5502a2b62e87a
[ "MIT" ]
4
2019-08-06T02:17:12.000Z
2020-03-07T17:20:41.000Z
vpy.py
sheride/equation_learner
ab0debe45f981f7f8fad4eae1aa5502a2b62e87a
[ "MIT" ]
1
2019-07-30T20:46:53.000Z
2019-07-31T04:10:56.000Z
vpy.py
sheride/equation_learner
ab0debe45f981f7f8fad4eae1aa5502a2b62e87a
[ "MIT" ]
1
2020-10-20T23:19:45.000Z
2020-10-20T23:19:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 18 16:03:21 2019 @author: elijahsheridan """ from . import ode import vpython as vp from vpython import vector as vec from vpython.no_notebook import stop_server import numpy as np from scipy.integrate import solve_ivp def justOne(func, x0, tEnd=10, deltat=0.005): """ Double pendulum simulation via VPython given an R^4 -> R^4 differential equation (allows the testing of various such ODEs) Adapted from https://trinket.io/glowscript/9bdab2cf88 Arguments func: python function, R^4 -> R^4 system of ODEs x0: list with 4 elements, initial condition to integrate from in the form [theta1, omega1, theta2, omega2] tEnd: time to integrate until deltat: spacing between sampled functional values (note: not the step the integrator uses) """ # constants t = 0 theta1, omega1, theta2, omega2 = x0 L1 = 1 L2 = 1 vp.canvas(width=1400, height=750, background=vp.color.white, range=1.75, autoscale=False, userpan=False, userspin=False, userzoom=False) # create the ceiling, masses, and strings ceiling = vp.box(pos=vec(0, 1, 0), size=vec(0.1, 0.05, 0.1), color=vp.color.gray(0.5)) rball1 = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1), ceiling.pos.y-L1*vp.cos(theta1), 0), radius=0.05, color=vp.color.orange) rball1.color = vp.color.black rball1.radius = 0.05 rball2 = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1)+L2*vp.sin(theta2), ceiling.pos.y-L1*vp.cos(theta1)-L2*vp.cos(theta2), 0), radius=0.05, color=vp.color.black, make_trail=True, interval=10, retain=15) rball2.color = vp.color.black rball2.radius = 0.05 rstring1 = vp.cylinder(pos=ceiling.pos, axis=rball1.pos-ceiling.pos, color=vp.color.gray(0.5), radius=0.008) rstring2 = vp.cylinder(pos=rball1.pos, axis=rball2.pos-rball1.pos, color=vp.color.gray(0.5), radius=0.008) # generating simulation data actualSol = solve_ivp(func, [0, tEnd], x0, t_eval=np.linspace(0, tEnd, int(tEnd/deltat))) # calculation loop while t < tEnd / deltat: vp.rate(1/deltat) rball1.pos = vec(vp.sin(actualSol.y[0][t]), -vp.cos(actualSol.y[0][t]), 0) + ceiling.pos rstring1.axis = rball1.pos - ceiling.pos rball2.pos = rball1.pos + vec(vp.sin(actualSol.y[2][t]), -vp.cos(actualSol.y[2][t]), 0) rstring2.axis = rball2.pos - rball1.pos rstring2.pos = rball1.pos t = t + 1 stop_server() def simulateDoublePendula(models, func, x0, tEnd=10, deltat=0.005): """ Multiple double pendulum simulation via VPython given an R^4 -> R^4 differential equation (true double pendulum ODEs) and set of trained models Adapted from https://trinket.io/glowscript/9bdab2cf88 Arguments models: list of trained EQL/EQL-div models func: python function, R^4 -> R^4 system of ODEs x0: list with 4 elements, initial condition to integrate from in the form [theta1, omega1, theta2, omega2] tEnd: time to integrate until deltat: spacing between sampled functional values (note: not the step the integrator uses) """ t = 0 theta1, omega1, theta2, omega2 = x0 L1 = 1 L2 = 1 vp.canvas(width=1400, height=750, background=vp.color.white, range=1.75, autoscale=False, userpan=False, userspin=False, userzoom=False) # create the ceiling, masses, and strings ceiling = vp.box(pos=vec(0, 1, 0), size=vec(0.1, 0.05, 0.1), color=vp.color.gray(0.5)) # real double pendulum rball1 = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1), ceiling.pos.y-L1*vp.cos(theta1), 0), radius=0.05, color=vp.color.orange) rball1.color = vp.color.black rball1.radius = 0.05 rball2 = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1)+L2*vp.sin(theta2), ceiling.pos.y-L1*vp.cos(theta1)-L2*vp.cos(theta2), 0), radius=0.05, color=vp.color.black, make_trail=True, interval=10, retain=15) rball2.color = vp.color.black rball2.radius = 0.05 rstring1 = vp.cylinder(pos=ceiling.pos, axis=rball1.pos-ceiling.pos, color=vp.color.gray(0.5), radius=0.008) rstring2 = vp.cylinder(pos=rball1.pos, axis=rball2.pos-rball1.pos, color=vp.color.gray(0.5), radius=0.008) # double pendulums based on learned equations balls = [None for i in range(len(models) * 2)] strings = [None for i in range(len(models) * 2)] colors = [vec(240/255, 133/255, 33/255), vec(110/255, 0, 95/255), vec(0, 129/255, 131/255)] for i in range(0, len(balls), 2): balls[i] = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1), ceiling.pos.y-L1*vp.cos(theta1), 0), radius=0.05, color=colors[int(i/2)]) balls[i].color = colors[int(i/2)] balls[i].radius = 0.05 balls[i+1] = vp.sphere( pos=vec(ceiling.pos.x+L1*vp.sin(theta1)+L2*vp.sin(theta2), ceiling.pos.y-L1*vp.cos(theta1)-L2*vp.cos(theta2), 0), radius=0.05, color=colors[int(i/2)], make_trail=True, interval=10, retain=15) balls[i+1].color = colors[int(i/2)] balls[i+1].radius = 0.05 strings[i] = vp.cylinder(pos=ceiling.pos, axis=balls[i].pos-ceiling.pos, color=vp.color.gray(0.5), radius=0.008) strings[i+1] = vp.cylinder(pos=balls[i].pos, axis=balls[i+1].pos-balls[i].pos, color=vp.color.gray(0.5), radius=0.008) # generating simulation data actualSol, modelsSol = ode.odeSolve(models, func, x0, [0, tEnd], deltat) # calculation loop while t < tEnd / deltat: vp.rate(1/deltat) rball1.pos = vec(vp.sin(actualSol.y[0][t]), -vp.cos(actualSol.y[0][t]), 0) + ceiling.pos rstring1.axis = rball1.pos - ceiling.pos rball2.pos = rball1.pos + vec(vp.sin(actualSol.y[2][t]), -vp.cos(actualSol.y[2][t]), 0) rstring2.axis = rball2.pos - rball1.pos rstring2.pos = rball1.pos for i in range(0, len(balls), 2): balls[i].pos = vec(vp.sin(modelsSol[int(i/2)].y[0][t]), -vp.cos(modelsSol[int(i/2)].y[0][t]), 0) + ceiling.pos strings[i].axis = balls[i].pos - ceiling.pos balls[i+1].pos = (balls[i].pos + vec(vp.sin(modelsSol[int(i/2)].y[2][t]), -vp.cos(modelsSol[int(i/2)].y[2][t]), 0)) strings[i+1].axis = balls[i+1].pos - balls[i].pos strings[i+1].pos = balls[i].pos t = t + 1 stop_server()
37.265
79
0.551992
1,054
7,453
3.893738
0.177419
0.05848
0.046784
0.031189
0.834552
0.834552
0.80848
0.774123
0.714912
0.709552
0
0.074435
0.311418
7,453
199
80
37.452261
0.725253
0.18932
0
0.706349
0
0
0
0
0
0
0
0
0
1
0.015873
false
0
0.047619
0
0.063492
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c4607b665ac7abc9ebd00442b15f19b03aeb61df
5,153
py
Python
test/solution_tests/CHK/handlers/test_checkout_handler.py
DPNT-Sourcecode/CHK-jfwz01
08541ba5ead6a9d02ca37eef49a661ba04ac2a25
[ "Apache-2.0" ]
null
null
null
test/solution_tests/CHK/handlers/test_checkout_handler.py
DPNT-Sourcecode/CHK-jfwz01
08541ba5ead6a9d02ca37eef49a661ba04ac2a25
[ "Apache-2.0" ]
null
null
null
test/solution_tests/CHK/handlers/test_checkout_handler.py
DPNT-Sourcecode/CHK-jfwz01
08541ba5ead6a9d02ca37eef49a661ba04ac2a25
[ "Apache-2.0" ]
null
null
null
from lib.solutions.CHK.handlers.checkout_handler import CheckoutHandler from lib.solutions.CHK.models.stock_keeping_unit import StockKeepUnit from lib.solutions.CHK.models.special_offer import SpecialOffer from lib.solutions.CHK.models.supermarket import SuperMarket class TestCheckoutHandler: def test_calculate_empty_input(self): """ Tests the checkout handler calculate function with an empty input Since it's empty it should return 0. """ special_offers_item_a = [SpecialOffer(3, 130, None), SpecialOffer(5, 200, None)] special_offers_item_b = [SpecialOffer(2, 45, None)] item_a = StockKeepUnit('A', 50, special_offers_item_a) item_b = StockKeepUnit('B', 30, special_offers_item_b) item_c = StockKeepUnit('C', 20, []) item_d = StockKeepUnit('D', 15, []) special_offers_item_e = [SpecialOffer(2, 0, item_b)] item_e = StockKeepUnit('E', 40, special_offers_item_e) mock_supermarket = SuperMarket([item_a, item_b, item_c, item_d, item_e]) mock_input = '' expected_return_value = 0 returned_value = CheckoutHandler.calculate(mock_input, mock_supermarket) assert expected_return_value == returned_value def test_calculate_invalid_input_only_numbers(self): """ Tests the checkout handler calculate function with only numbers input. Since it's invalid it should return -1 """ special_offers_item_a = [SpecialOffer(3, 130, None), SpecialOffer(5, 200, None)] special_offers_item_b = [SpecialOffer(2, 45, None)] item_a = StockKeepUnit('A', 50, special_offers_item_a) item_b = StockKeepUnit('B', 30, special_offers_item_b) item_c = StockKeepUnit('C', 20, []) item_d = StockKeepUnit('D', 15, []) special_offers_item_e = [SpecialOffer(2, 0, item_b)] item_e = StockKeepUnit('E', 40, special_offers_item_e) mock_supermarket = SuperMarket([item_a, item_b, item_c, item_d, item_e]) mock_input = '123' expected_return_value = -1 returned_value = CheckoutHandler.calculate(mock_input, mock_supermarket) assert expected_return_value == returned_value def test_calculate_invalid_input_lowercases(self): """ Tests the checkout handler calculate function with lowercase letters. Since it's invalid it should return -1. """ special_offers_item_a = [SpecialOffer(3, 130, None), SpecialOffer(5, 200, None)] special_offers_item_b = [SpecialOffer(2, 45, None)] item_a = StockKeepUnit('A', 50, special_offers_item_a) item_b = StockKeepUnit('B', 30, special_offers_item_b) item_c = StockKeepUnit('C', 20, []) item_d = StockKeepUnit('D', 15, []) special_offers_item_e = [SpecialOffer(2, 0, item_b)] item_e = StockKeepUnit('E', 40, special_offers_item_e) mock_supermarket = SuperMarket([item_a, item_b, item_c, item_d, item_e]) mock_input = 'ABCDa' expected_return_value = -1 returned_value = CheckoutHandler.calculate(mock_input, mock_supermarket) assert expected_return_value == returned_value def test_calculate_valid_input_single_item(self): """ Tests the checkout handler calculate function a single item in the input. For the mock input provided it should return 50. """ special_offers_item_a = [SpecialOffer(3, 130, None), SpecialOffer(5, 200, None)] special_offers_item_b = [SpecialOffer(2, 45, None)] item_a = StockKeepUnit('A', 50, special_offers_item_a) item_b = StockKeepUnit('B', 30, special_offers_item_b) item_c = StockKeepUnit('C', 20, []) item_d = StockKeepUnit('D', 15, []) special_offers_item_e = [SpecialOffer(2, 0, item_b)] item_e = StockKeepUnit('E', 40, special_offers_item_e) mock_supermarket = SuperMarket([item_a, item_b, item_c, item_d, item_e]) mock_input = 'A' expected_return_value = 50 returned_value = CheckoutHandler.calculate(mock_input, mock_supermarket) assert expected_return_value == returned_value def test_calculate_valid_input_multiple_items(self): """ Tests the checkout handler calculate function a multiple items in the input. For the mock input provided it should return 130+45+20=195. """ special_offers_item_a = [SpecialOffer(3, 130, None), SpecialOffer(5, 200, None)] special_offers_item_b = [SpecialOffer(2, 45, None)] item_a = StockKeepUnit('A', 50, special_offers_item_a) item_b = StockKeepUnit('B', 30, special_offers_item_b) item_c = StockKeepUnit('C', 20, []) item_d = StockKeepUnit('D', 15, []) special_offers_item_e = [SpecialOffer(2, 0, item_b)] item_e = StockKeepUnit('E', 40, special_offers_item_e) mock_supermarket = SuperMarket([item_a, item_b, item_c, item_d, item_e]) mock_input = 'AAABBC' expected_return_value = 195 returned_value = CheckoutHandler.calculate(mock_input, mock_supermarket) assert expected_return_value == returned_value
46.008929
88
0.682515
672
5,153
4.904762
0.11756
0.118325
0.154733
0.054612
0.868629
0.845267
0.845267
0.845267
0.774272
0.774272
0
0.035057
0.219484
5,153
111
89
46.423423
0.784436
0.113914
0
0.76
0
0
0.008989
0
0
0
0
0
0.066667
1
0.066667
false
0
0.053333
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
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
674bdd9f33c78322fb3eba8d7da034fecbe320fc
17,413
py
Python
iiif_api_services/tests/test_user_permission.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
4
2019-12-08T18:39:37.000Z
2021-11-09T19:35:44.000Z
iiif_api_services/tests/test_user_permission.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
2
2020-06-05T16:45:31.000Z
2021-06-10T17:30:00.000Z
iiif_api_services/tests/test_user_permission.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
1
2019-12-08T18:45:52.000Z
2019-12-08T18:45:52.000Z
from test_addons import APIMongoTestCase from rest_framework import status from rest_framework_jwt.settings import api_settings from django.conf import settings from iiif_api_services.models.User import User import os import json from iiif_api_services.models.CollectionModel import Collection from iiif_api_services.models.ManifestModel import Manifest from iiif_api_services.models.SequenceModel import Sequence from iiif_api_services.models.RangeModel import Range from iiif_api_services.models.CanvasModel import Canvas from iiif_api_services.models.AnnotationModel import Annotation from iiif_api_services.models.AnnotationListModel import AnnotationList from iiif_api_services.models.RangeModel import Range MANIFEST_FULL = os.path.join(os.path.dirname(__file__), 'testData', 'permission', 'manifestFull.json') COLLECTION_MEDIUM = os.path.join(os.path.dirname(__file__), 'testData', 'collection', 'collectionMedium.json') class User_Staff_Test_POST_Permission(APIMongoTestCase): def setUp(self): self.user = User.create_user('user1', 'test@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) def test_to_verify_objects_are_created_with_staff_usernames(self): self.assertEqual(User.objects.get(username='user1').user_permissions, []) data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1"]) self.assertEqual(AnnotationList.objects[0].ownedBy, ["user1"]) class User_Staff_Test_PUT_PERMISSION(APIMongoTestCase): def setUp(self): self.user = User.create_user('user1', 'test@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) def test_to_verify_another_staff_cannot_update_an_object_not_owned(self): data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.user = User.create_user('user2', 'test2@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) response = self.client.put('/book1/sequence/s0', {"sequence": data}) if settings.QUEUE_PUT_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseCode"], status.HTTP_401_UNAUTHORIZED) self.assertEqual(response.data["responseBody"]["error"], "You don't have the necessary permission to perform this action. Please contact your admin.") def test_to_verify_an_admin_can_update_any_object(self): data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.user = User.create_user('admin', 'admin@mail.com', 'adminpassword', True) jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) data = {"sequence": {"@id": settings.IIIF_BASE_URL + "/book1/sequence/newSequenceName"}} response = self.client.put('/book1/sequence/s0', data) if settings.QUEUE_PUT_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseBody"]["@id"], settings.IIIF_BASE_URL + "/book1/sequence/newSequenceName") class User_Staff_Test_DELETE_PERMISSION(APIMongoTestCase): def setUp(self): self.user = User.create_user('user1', 'test@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) def test_to_verify_object_can_be_deleted_in_staff_user_permissions(self): data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.delete('/book1/sequence/s0') if settings.QUEUE_DELETE_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseCode"], status.HTTP_204_NO_CONTENT) def test_to_verify_another_staff_cannot_delete_an_object_not_owned(self): data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.user = User.create_user('user2', 'test2@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) response = self.client.delete('/book1/sequence/s0') if settings.QUEUE_DELETE_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseCode"], status.HTTP_401_UNAUTHORIZED) self.assertEqual(response.data["responseBody"]["error"], "You don't have the necessary permission to perform this action. Please contact your admin.") def test_to_verify_an_admin_can_delete_any_object(self): data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.user = User.create_user('admin', 'admin@mail.com', 'adminpassword', True) jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) response = self.client.delete('/book1/sequence/s0', data) if settings.QUEUE_DELETE_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseCode"], status.HTTP_204_NO_CONTENT) class Test_Admin_Update_Staff_Permission(APIMongoTestCase): def setUp(self): self.user = User.create_user('user1', 'test@mail.com', 'user1password') jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) data = {"manifest": json.loads(open(MANIFEST_FULL).read())} response = self.client.post('/book1/manifest', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes self.user = User.create_user('admin', 'admin@mail.com', 'adminpassword', True) jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER payload = jwt_payload_handler(self.user) token = jwt_encode_handler(payload) self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token) def test_an_admin_can_update_a_nested_manifest_user_permissions(self): self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1"]) self.assertEqual(Range.objects[0].ownedBy, ["user1"]) data = {"collections": [], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": "NEWSTAFF", "action": "ADD"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(Manifest.objects[0].ownedBy, ["user1", "NEWSTAFF"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1", "NEWSTAFF"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1", "NEWSTAFF"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1", "NEWSTAFF"]) self.assertEqual(Range.objects[0].ownedBy, ["user1", "NEWSTAFF"]) def test_an_admin_can_update_a_nested_collection_user_permissions(self): data = {"collection": json.loads(open(COLLECTION_MEDIUM).read())} response = self.client.post('/collections', data) if settings.QUEUE_POST_ENABLED: while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes response = self.client.get(response.data["status"]) self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED) self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Manifest.objects[1].ownedBy, []) self.assertEqual(Manifest.objects[2].ownedBy, []) self.assertEqual(Collection.objects[0].ownedBy, []) self.assertEqual(Collection.objects[1].ownedBy, []) self.assertEqual(Collection.objects[2].ownedBy, []) data = {"collections": [settings.IIIF_BASE_URL+"/collections/book1"], "manifests":[], "username": "NEWSTAFF", "action": "ADD"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(Manifest.objects[0].ownedBy, ["user1", "NEWSTAFF"]) self.assertEqual(Manifest.objects[1].ownedBy, ["NEWSTAFF"]) self.assertEqual(Manifest.objects[2].ownedBy, ["NEWSTAFF"]) self.assertEqual(Collection.objects[0].ownedBy, ["NEWSTAFF"]) self.assertEqual(Collection.objects[1].ownedBy, ["NEWSTAFF"]) self.assertEqual(Collection.objects[2].ownedBy, ["NEWSTAFF"]) def test_an_admin_cannot_update_a_nested_manifest_user_permissions_with_validation_errors(self): self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1"]) self.assertEqual(Range.objects[0].ownedBy, ["user1"]) data = {"manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": "NEWSTAFF", "action": "SOMETHING"} self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1"]) self.assertEqual(Range.objects[0].ownedBy, ["user1"]) def test_an_admin_can_remove_a_nested_manifest_user_permissions(self): self.assertEqual(Manifest.objects[0].ownedBy, ["user1"]) self.assertEqual(Canvas.objects[0].ownedBy, ["user1"]) self.assertEqual(Sequence.objects[0].ownedBy, ["user1"]) self.assertEqual(Annotation.objects[0].ownedBy, ["user1"]) self.assertEqual(Range.objects[0].ownedBy, ["user1"]) data = {"collections": [], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": "user1", "action": "REMOVE"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(Manifest.objects[0].ownedBy, []) self.assertEqual(Canvas.objects[0].ownedBy, []) self.assertEqual(Sequence.objects[0].ownedBy, []) self.assertEqual(Annotation.objects[0].ownedBy, []) self.assertEqual(Range.objects[0].ownedBy, []) def test_an_update_user_permissions_with_username_missing_error(self): data = {"collections": ["somecollectionID"], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "action": "REMOVE"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_422_UNPROCESSABLE_ENTITY) self.assertEqual(response.data["error"], "username field is required") def test_an_update_user_permissions_with_non_exisinting_collection(self): data = {"collections": ["somecollectionID"], "manifests":[], "username": "user1", "action": "REMOVE"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(response.data["error"], "Collection with @id 'somecollectionID' does not exist.") def test_an_update_user_permissions_with_non_exisinting_manifest(self): data = {"collections": [], "manifests":["somemanifestID"], "username": "user1", "action": "REMOVE"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(response.data["error"], "Manifest with @id 'somemanifestID' does not exist.") def test_an_update_user_permissions_with_username_validation_error(self): data = {"collections": ["somecollectionID"], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": ["user1"], "action": "REMOVE"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_422_UNPROCESSABLE_ENTITY) self.assertEqual(response.data["error"], "username must be a string.") def test_an_update_user_permissions_with_action_missing_error(self): data = {"collections": ["somecollectionID"], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": "user1"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_422_UNPROCESSABLE_ENTITY) self.assertEqual(response.data["error"], "action field is required. Possible values are 'ADD' and 'REMOVE'.") def test_an_update_user_permissions_with_action_validation_error(self): data = {"collections": ["somecollectionID"], "manifests":[settings.IIIF_BASE_URL+'/book1/manifest'], "username": "user1", "action": "INVALID"} response = self.client.put('/auth/admin/updatePermission', data) self.assertEqual(response.status_code, status.HTTP_422_UNPROCESSABLE_ENTITY) self.assertEqual(response.data["error"], "Allowed values for action are 'ADD' and 'REMOVE'.")
63.09058
158
0.717854
2,073
17,413
5.795466
0.086348
0.088647
0.048693
0.053271
0.902697
0.877393
0.829199
0.80531
0.769019
0.757616
0
0.014136
0.154999
17,413
275
159
63.32
0.802365
0.028312
0
0.665272
0
0
0.153437
0.019815
0
0
0
0
0.297071
1
0.083682
false
0.09205
0.062762
0
0.16318
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
1
0
0
0
0
0
7
675d43f66e0bed96056a0aafea168999c27258fc
5,591
py
Python
tests/api/test-tport.py
arienchen/pytibrv
9c198805bc9ac217e9a7f730d3c2dba32bf77336
[ "BSD-3-Clause" ]
12
2017-03-17T15:02:02.000Z
2021-11-05T08:48:20.000Z
tests/api/test-tport.py
arienchen/pytibrv
9c198805bc9ac217e9a7f730d3c2dba32bf77336
[ "BSD-3-Clause" ]
null
null
null
tests/api/test-tport.py
arienchen/pytibrv
9c198805bc9ac217e9a7f730d3c2dba32bf77336
[ "BSD-3-Clause" ]
6
2019-10-04T23:12:25.000Z
2021-08-02T21:39:41.000Z
from pytibrv.api import * from pytibrv.status import * from pytibrv.tport import * from pytibrv.msg import * import unittest class TransportTest(unittest.TestCase): @classmethod def setUpClass(cls): status = tibrv_Open() assert status == TIBRV_OK, tibrvStatus_GetText(status) @classmethod def tearDownClass(cls): tibrv_Close() def test_create_default(self): status, tx = tibrvTransport_Create(None, None, None) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, sz = tibrvTransport_GetService(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual('', sz) status, sz = tibrvTransport_GetNetwork(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual('', sz) status, sz = tibrvTransport_GetDaemon(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual('7500', sz) status, sz = tibrvTransport_GetDescription(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertIsNone(sz) status = tibrvTransport_Destroy(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) # transport destroyed # should return TIBRV_INVALID_TRANSPORT status, sz = tibrvTransport_GetService(tx) self.assertEqual(TIBRV_INVALID_TRANSPORT, status) status, sz = tibrvTransport_GetNetwork(tx) self.assertEqual(TIBRV_INVALID_TRANSPORT, status) status, sz = tibrvTransport_GetDaemon(tx) self.assertEqual(TIBRV_INVALID_TRANSPORT, status) status, sz = tibrvTransport_GetDescription(tx) self.assertEqual(TIBRV_INVALID_TRANSPORT, status) def test_create(self): service = '12345' network = ';225.1.1.1' daemon = '2000' status, tx = tibrvTransport_Create(service, network, daemon) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, sz = tibrvTransport_GetService(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual(service, sz) status, sz = tibrvTransport_GetNetwork(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual(network, sz) status, sz = tibrvTransport_GetDaemon(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual(daemon, sz) status = tibrvTransport_SetDescription(tx, 'TEST') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, sz = tibrvTransport_GetDescription(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual('TEST', sz) status, subj = tibrvTransport_CreateInbox(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertIsNotNone(subj) status = tibrvTransport_RequestReliability(tx, 100) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvTransport_Destroy(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) def test_send(self): status, tx = tibrvTransport_Create(None, None, None) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, msg = tibrvMsg_Create() self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_UpdateString(msg, 'DATA', 'TEST') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_SetSendSubject(msg, 'TEST.A') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvTransport_Send(tx, msg) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_SetReplySubject(msg, 'TEST.ACK') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_SetSendSubject(msg, 'TEST.B') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvTransport_Send(tx, msg) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_Destroy(msg) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvTransport_Destroy(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) def test_request(self): status, tx = tibrvTransport_Create(None, None, None) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, msg = tibrvMsg_Create() self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_UpdateString(msg, 'DATA', 'TEST') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvMsg_SetSendSubject(msg, 'TEST.A') self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status, ack = tibrvTransport_SendRequest(tx, msg, 1.0) #self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) self.assertEqual(TIBRV_TIMEOUT, status, tibrvStatus_GetText(status)) self.assertIsNone(ack) status = tibrvMsg_Destroy(msg) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) status = tibrvTransport_Destroy(tx) self.assertEqual(TIBRV_OK, status, tibrvStatus_GetText(status)) if __name__ == "__main__": unittest.main(verbosity=2)
36.542484
76
0.699338
594
5,591
6.36532
0.126263
0.174557
0.195715
0.261835
0.810368
0.810368
0.795028
0.789209
0.775721
0.766199
0
0.005628
0.205509
5,591
152
77
36.782895
0.845565
0.021463
0
0.653846
0
0
0.014816
0
0
0
0
0
0.451923
1
0.057692
false
0
0.048077
0
0.115385
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
9
677c27f3eb660f9ba30bd5695e14345a7ddc6228
214
py
Python
xsugar/__init__.py
edmundsj/xsugar
08596f500b043661b9fc807803319ee8f5d6de54
[ "MIT" ]
null
null
null
xsugar/__init__.py
edmundsj/xsugar
08596f500b043661b9fc807803319ee8f5d6de54
[ "MIT" ]
40
2021-03-21T16:08:34.000Z
2021-05-28T01:52:07.000Z
xsugar/__init__.py
edmundsj/xsugar
08596f500b043661b9fc807803319ee8f5d6de54
[ "MIT" ]
null
null
null
import pint ureg = pint.get_application_registry() from xsugar.source.conditions import * from xsugar.source.processing import * from xsugar.source.experiments import Experiment from xsugar.test.shorthand import *
30.571429
48
0.831776
28
214
6.285714
0.535714
0.227273
0.272727
0.25
0
0
0
0
0
0
0
0
0.098131
214
6
49
35.666667
0.911917
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
7
678f101b83418e6aaf803d62ec4a68daeec97e88
781
py
Python
pymoo/usage/misc/usage_nds.py
rohitdwivedula/pymoo
a33dfda43bdd0ba99af606b42a9d33ba0c7aabd3
[ "Apache-2.0" ]
2
2021-09-11T06:43:49.000Z
2021-11-10T13:36:09.000Z
pymoo/usage/misc/usage_nds.py
rohitdwivedula/pymoo
a33dfda43bdd0ba99af606b42a9d33ba0c7aabd3
[ "Apache-2.0" ]
3
2021-09-21T14:04:47.000Z
2022-03-07T13:46:09.000Z
pymoo/usage/misc/usage_nds.py
rohitdwivedula/pymoo
a33dfda43bdd0ba99af606b42a9d33ba0c7aabd3
[ "Apache-2.0" ]
3
2021-10-09T02:47:26.000Z
2022-02-10T07:02:37.000Z
from timeit import timeit import numpy as np from pymoo.util.nds.non_dominated_sorting import NonDominatedSorting F = np.random.random((10000, 5)) nds = NonDominatedSorting(method="fast_non_dominated_sort").do(F, only_non_dominated_front=True) print("Fast Non-Dominated Sorting") print("result", np.sort(nds)) print("time", timeit("NonDominatedSorting(method='fast_non_dominated_sort').do(F, only_non_dominated_front=True)", number=10, globals=globals())) nds = NonDominatedSorting(method='efficient_non_dominated_sort').do(F, only_non_dominated_front=True) print("Fast Non-Dominated Sorting") print("result", np.sort(nds)) print("time", timeit("NonDominatedSorting(method='efficient_non_dominated_sort').do(F, only_non_dominated_front=True)", number=10, globals=globals()))
41.105263
150
0.796415
111
781
5.369369
0.279279
0.221477
0.107383
0.120805
0.791946
0.791946
0.791946
0.791946
0.791946
0.791946
0
0.01368
0.06402
781
18
151
43.388889
0.801642
0
0
0.333333
0
0
0.394872
0.3
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
0
0
0
null
1
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7
67a6f69f11cf3f00b71c3e710f10424510ada439
166
py
Python
listeners/events/__init__.py
slack-samples/bolt-python-starter-template
103bc032e8f158694dbb839beb35545685889525
[ "MIT" ]
1
2022-03-29T16:13:25.000Z
2022-03-29T16:13:25.000Z
listeners/events/__init__.py
slack-samples/bolt-python-starter-template
103bc032e8f158694dbb839beb35545685889525
[ "MIT" ]
null
null
null
listeners/events/__init__.py
slack-samples/bolt-python-starter-template
103bc032e8f158694dbb839beb35545685889525
[ "MIT" ]
null
null
null
from slack_bolt import App from .app_home_opened import app_home_opened_callback def register(app: App): app.event("app_home_opened")(app_home_opened_callback)
23.714286
58
0.819277
27
166
4.62963
0.407407
0.224
0.416
0.336
0
0
0
0
0
0
0
0
0.108434
166
6
59
27.666667
0.844595
0
0
0
0
0
0.090361
0
0
0
0
0
0
1
0.25
false
0
0.5
0
0.75
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
8
67bb82432b652720d0e696edf2d424ed3014bdc0
2,748
py
Python
flatland/database/population/connector/name_spec_instances.py
erik-soederholm/flatland-model-diagram-editor
088e27cded9eca2cacba2c6168c03caf4b43ef72
[ "MIT" ]
10
2021-01-03T16:47:34.000Z
2022-03-30T18:47:07.000Z
flatland/database/population/connector/name_spec_instances.py
modelint/flatland-model-diagram-editor
088e27cded9eca2cacba2c6168c03caf4b43ef72
[ "MIT" ]
91
2021-01-09T02:14:13.000Z
2022-02-24T10:24:10.000Z
flatland/database/population/connector/name_spec_instances.py
erik-soederholm/flatland-model-diagram-editor
088e27cded9eca2cacba2c6168c03caf4b43ef72
[ "MIT" ]
1
2021-01-13T22:13:19.000Z
2021-01-13T22:13:19.000Z
""" name_spec_instances.py """ population = [ # Connector location names {'Connector location': 'binary association', 'Diagram type': 'class', 'Notation': 'Starr', 'Vertical axis buffer': 6, 'Horizontal axis buffer': 6, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'generalization', 'Diagram type': 'class', 'Notation': 'Starr', 'Vertical axis buffer': 13, 'Horizontal axis buffer': 16, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'binary association', 'Diagram type': 'class', 'Notation': 'xUML', 'Vertical axis buffer': 11, 'Horizontal axis buffer': 11, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'generalization', 'Diagram type': 'class', 'Notation': 'xUML', 'Vertical axis buffer': 11, 'Horizontal axis buffer': 11, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'binary association', 'Diagram type': 'class', 'Notation': 'Shlaer-Mellor', 'Vertical axis buffer': 11, 'Horizontal axis buffer': 11, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'generalization', 'Diagram type': 'class', 'Notation': 'Shlaer-Mellor', 'Vertical axis buffer': 11, 'Horizontal axis buffer': 11, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Rxx', 'Optional': False}, {'Connector location': 'transition', 'Diagram type': 'state machine', 'Notation': 'xUML', 'Vertical axis buffer': 6, 'Horizontal axis buffer': 6, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Event XX', 'Optional': False}, {'Connector location': 'initial transition', 'Diagram type': 'state machine', 'Notation': 'xUML', 'Vertical axis buffer': 6, 'Horizontal axis buffer': 6, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Event XX', 'Optional': False}, {'Connector location': 'deletion transition', 'Diagram type': 'state machine', 'Notation': 'xUML', 'Vertical axis buffer': 6, 'Horizontal axis buffer': 6, 'Vertical end buffer': 11, 'Horizontal end buffer': 20, 'Default name': 'Event XX', 'Optional': False}, # Connector location names {'Connector location': 'class mult', 'Diagram type': 'class', 'Notation': 'Starr', 'Vertical axis buffer': 8, 'Horizontal axis buffer': 8, 'Vertical end buffer': 10, 'Horizontal end buffer': 10, 'Default name': 'xx', 'Optional': False}, ]
62.454545
118
0.656114
315
2,748
5.71746
0.136508
0.111049
0.129928
0.094947
0.908384
0.883953
0.883953
0.883953
0.810106
0.810106
0
0.030742
0.171397
2,748
44
119
62.454545
0.760211
0.026565
0
0.53125
0
0
0.649419
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c05184d6bd366375937521c85e9e68cc43afecbf
139
py
Python
dark_proteome_visualization/handlers/generic.py
Zethson/dark-proteome-visualization
fef978e967c8c655f13c9d7bdc4b0ea6722c1702
[ "MIT" ]
2
2019-01-12T19:59:56.000Z
2019-01-19T08:48:33.000Z
dark_proteome_visualization/handlers/generic.py
Zethson/dark-proteome-visualization
fef978e967c8c655f13c9d7bdc4b0ea6722c1702
[ "MIT" ]
23
2018-12-18T21:04:17.000Z
2019-01-23T19:16:15.000Z
dark_proteome_visualization/handlers/generic.py
Zethson/dark-proteome-visualization
fef978e967c8c655f13c9d7bdc4b0ea6722c1702
[ "MIT" ]
1
2019-01-12T21:08:04.000Z
2019-01-12T21:08:04.000Z
from flask import render_template from ..app import app @app.route("/generic") def generic(): return render_template("generic.html")
17.375
42
0.741007
19
139
5.315789
0.578947
0.277228
0
0
0
0
0
0
0
0
0
0
0.136691
139
7
43
19.857143
0.841667
0
0
0
0
0
0.143885
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
7
fbe454c8a54b2bc141f2eefebcfc9d54524c688c
100
py
Python
users/util.py
matej2/hribi-scraper
23d184e3ce5b17fdba9bd38e5817cdf5041cc45c
[ "MIT" ]
null
null
null
users/util.py
matej2/hribi-scraper
23d184e3ce5b17fdba9bd38e5817cdf5041cc45c
[ "MIT" ]
null
null
null
users/util.py
matej2/hribi-scraper
23d184e3ce5b17fdba9bd38e5817cdf5041cc45c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User def print_stats(): print(len(User.objects.all()))
16.666667
43
0.73
15
100
4.8
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.13
100
5
44
20
0.827586
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0.666667
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
1
0
7
fbf118f55e0a8505dfa2976ccaa12c95530a3cd8
88
py
Python
LargeScale/data_handler/__init__.py
lywang3081/AFEC
6d87301cc8291b1779905871e3001471b2b44d8c
[ "MIT" ]
9
2021-11-12T00:53:16.000Z
2022-01-28T21:27:48.000Z
LargeScale/data_handler/__init__.py
lywang3081/AFEC
6d87301cc8291b1779905871e3001471b2b44d8c
[ "MIT" ]
1
2021-11-15T20:28:40.000Z
2021-11-16T01:02:21.000Z
LargeScale/data_handler/__init__.py
lywang3081/AFEC
6d87301cc8291b1779905871e3001471b2b44d8c
[ "MIT" ]
1
2022-01-12T03:08:58.000Z
2022-01-12T03:08:58.000Z
from data_handler.dataset_factory import * from data_handler.incremental_loader import *
44
45
0.875
12
88
6.083333
0.666667
0.219178
0.410959
0
0
0
0
0
0
0
0
0
0.079545
88
2
45
44
0.901235
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
222ffbc71ea6b2e33c3ab1dc0c359f71d2aa52dd
21,212
py
Python
kmip/tests/unit/core/messages/payloads/test_get_usage_allocation.py
ondrap/PyKMIP
c8ea17d8faf827e0f9d004972835128a1a71569f
[ "Apache-2.0" ]
179
2015-03-20T06:08:59.000Z
2022-03-14T02:24:38.000Z
kmip/tests/unit/core/messages/payloads/test_get_usage_allocation.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
600
2015-04-08T14:14:48.000Z
2022-03-28T13:49:47.000Z
kmip/tests/unit/core/messages/payloads/test_get_usage_allocation.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
131
2015-03-30T12:51:49.000Z
2022-03-23T04:34:34.000Z
# Copyright (c) 2017 The Johns Hopkins University/Applied Physics Laboratory # 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 testtools from kmip.core import utils from kmip.core.messages import payloads class TestGetUsageAllocationRequestPayload(testtools.TestCase): """ Test suite for the GetUsageAllocation request payload. """ def setUp(self): super(TestGetUsageAllocationRequestPayload, self).setUp() # Encoding obtained from the KMIP 1.1 testing document, Section 5.1. # # This encoding matches the following set of values: # Request Payload # Unique Identifier - 2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6 # Usage Limits Count - 500 self.full_encoding = utils.BytearrayStream( b'\x42\x00\x79\x01\x00\x00\x00\x40' b'\x42\x00\x94\x07\x00\x00\x00\x24' b'\x32\x63\x32\x33\x32\x31\x37\x65\x2D\x66\x35\x33\x63\x2D\x34\x62' b'\x64\x66\x2D\x61\x64\x30\x61\x2D\x35\x38\x61\x33\x31\x66\x64\x33' b'\x64\x34\x62\x36\x00\x00\x00\x00' b'\x42\x00\x96\x03\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x01\xF4' ) # This encoding matches the following set of values: # Request Payload # Usage Limits Count - 500 self.partial_encoding = utils.BytearrayStream( b'\x42\x00\x79\x01\x00\x00\x00\x10' b'\x42\x00\x96\x03\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x01\xF4' ) self.empty_encoding = utils.BytearrayStream( b'\x42\x00\x79\x01\x00\x00\x00\x00' ) def tearDown(self): super(TestGetUsageAllocationRequestPayload, self).tearDown() def test_init(self): """ Test that a GetUsageAllocation request payload can be constructed with no arguments. """ payload = payloads.GetUsageAllocationRequestPayload() self.assertEqual(None, payload.unique_identifier) self.assertEqual(None, payload.usage_limits_count) def test_init_with_args(self): """ Test that a GetUsageAllocation request payload can be constructed with valid values. """ payload = payloads.GetUsageAllocationRequestPayload( unique_identifier='00000000-1111-2222-3333-444444444444', usage_limits_count=10 ) self.assertEqual( '00000000-1111-2222-3333-444444444444', payload.unique_identifier ) self.assertEqual(10, payload.usage_limits_count) def test_invalid_unique_identifier(self): """ Test that a TypeError is raised when an invalid value is used to set the unique identifier of a GetUsageAllocation request payload. """ kwargs = {'unique_identifier': 0} self.assertRaisesRegex( TypeError, "Unique identifier must be a string.", payloads.GetUsageAllocationRequestPayload, **kwargs ) payload = payloads.GetUsageAllocationRequestPayload() args = (payload, 'unique_identifier', 0) self.assertRaisesRegex( TypeError, "Unique identifier must be a string.", setattr, *args ) def test_invalid_usage_limits_count(self): """ Test that a TypeError is raised when an invalid value is used to set the usage limits count of a GetUsageAllocation request payload. """ kwargs = {'usage_limits_count': 'invalid'} self.assertRaisesRegex( TypeError, "Usage limits count must be an integer.", payloads.GetUsageAllocationRequestPayload, **kwargs ) payload = payloads.GetUsageAllocationRequestPayload() args = (payload, 'usage_limits_count', 'invalid') self.assertRaisesRegex( TypeError, "Usage limits count must be an integer.", setattr, *args ) def test_read(self): """ Test that a GetUsageAllocation request payload can be read from a data stream. """ payload = payloads.GetUsageAllocationRequestPayload() self.assertEqual(None, payload.unique_identifier) self.assertEqual(None, payload.usage_limits_count) payload.read(self.full_encoding) self.assertEqual( '2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6', payload.unique_identifier ) self.assertEqual(500, payload.usage_limits_count) def test_read_partial(self): """ Test that a GetUsageAllocation request payload can be read from a partial data stream. """ payload = payloads.GetUsageAllocationRequestPayload() self.assertEqual(None, payload.unique_identifier) self.assertEqual(None, payload.usage_limits_count) payload.read(self.partial_encoding) self.assertEqual(None, payload.unique_identifier) self.assertEqual(500, payload.usage_limits_count) def test_read_empty(self): """ Test that a GetUsageAllocation request payload can be read from an empty data stream. """ payload = payloads.GetUsageAllocationRequestPayload() self.assertEqual(None, payload.unique_identifier) self.assertEqual(None, payload.usage_limits_count) payload.read(self.empty_encoding) self.assertEqual(None, payload.unique_identifier) self.assertEqual(None, payload.usage_limits_count) def test_write(self): """ Test that a GetUsageAllocation request payload can be written to a data stream. """ payload = payloads.GetUsageAllocationRequestPayload( unique_identifier='2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6', usage_limits_count=500 ) stream = utils.BytearrayStream() payload.write(stream) self.assertEqual(len(self.full_encoding), len(stream)) self.assertEqual(str(self.full_encoding), str(stream)) def test_write_partial(self): """ Test that a partial GetUsageAllocation request payload can be written to a data stream. """ payload = payloads.GetUsageAllocationRequestPayload( usage_limits_count=500 ) stream = utils.BytearrayStream() payload.write(stream) self.assertEqual(len(self.partial_encoding), len(stream)) self.assertEqual(str(self.partial_encoding), str(stream)) def test_write_empty(self): """ Test that an empty GetUsageAllocation request payload can be written to a data stream. """ payload = payloads.GetUsageAllocationRequestPayload() stream = utils.BytearrayStream() payload.write(stream) self.assertEqual(len(self.empty_encoding), len(stream)) self.assertEqual(str(self.empty_encoding), str(stream)) def test_equal_on_equal(self): """ Test that the equality operator returns True when comparing two GetUsageAllocation request payloads with the same data. """ a = payloads.GetUsageAllocationRequestPayload() b = payloads.GetUsageAllocationRequestPayload() self.assertTrue(a == b) self.assertTrue(b == a) a = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=200 ) b = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=200 ) self.assertTrue(a == b) self.assertTrue(b == a) def test_equal_on_not_equal_unique_identifier(self): """ Test that the equality operator returns False when comparing two GetUsageAllocation request payloads with different unique identifiers. """ a = payloads.GetUsageAllocationRequestPayload( unique_identifier='a' ) b = payloads.GetUsageAllocationRequestPayload( unique_identifier='b' ) self.assertFalse(a == b) self.assertFalse(b == a) def test_equal_on_not_equal_usage_limits_count(self): """ Test that the equality operator returns False when comparing two GetUsageAllocation request payloads with different usage limits counts. """ a = payloads.GetUsageAllocationRequestPayload( usage_limits_count=0 ) b = payloads.GetUsageAllocationRequestPayload( usage_limits_count=1 ) self.assertFalse(a == b) self.assertFalse(b == a) def test_equal_on_type_mismatch(self): """ Test that the equality operator returns False when comparing two GetUsageAllocation request payloads with different types. """ a = payloads.GetUsageAllocationRequestPayload() b = 'invalid' self.assertFalse(a == b) self.assertFalse(b == a) def test_not_equal_on_equal(self): """ Test that the inequality operator returns False when comparing two GetUsageAllocation request payloads with the same data. """ a = payloads.GetUsageAllocationRequestPayload() b = payloads.GetUsageAllocationRequestPayload() self.assertFalse(a != b) self.assertFalse(b != a) a = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=200 ) b = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=200 ) self.assertFalse(a != b) self.assertFalse(b != a) def test_not_equal_on_not_equal_unique_identifier(self): """ Test that the inequality operator returns True when comparing two GetUsageAllocation request payloads with different unique identifiers. """ a = payloads.GetUsageAllocationRequestPayload( unique_identifier='a' ) b = payloads.GetUsageAllocationRequestPayload( unique_identifier='b' ) self.assertTrue(a != b) self.assertTrue(b != a) def test_not_equal_on_not_equal_usage_limits_count(self): """ Test that the inequality operator returns True when comparing two GetUsageAllocation request payloads with different usage limits counts. """ a = payloads.GetUsageAllocationRequestPayload( usage_limits_count=0 ) b = payloads.GetUsageAllocationRequestPayload( usage_limits_count=1 ) self.assertTrue(a != b) self.assertTrue(b != a) def test_not_equal_on_type_mismatch(self): """ Test that the inequality operator returns True when comparing two GetUsageAllocation request payloads with different types. """ a = payloads.GetUsageAllocationRequestPayload() b = 'invalid' self.assertTrue(a != b) self.assertTrue(b != a) def test_repr(self): """ Test that repr can be applied to a GetUsageAllocation request payload. """ payload = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=1000 ) expected = ( "GetUsageAllocationRequestPayload(" "unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', " "usage_limits_count=1000)" ) observed = repr(payload) self.assertEqual(expected, observed) def test_str(self): """ Test that str can be applied to a GetUsageAllocation request payload. """ payload = payloads.GetUsageAllocationRequestPayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038', usage_limits_count=1000 ) expected = str({ 'unique_identifier': '49a1ca88-6bea-4fb2-b450-7e58802c3038', 'usage_limits_count': 1000 }) observed = str(payload) self.assertEqual(expected, observed) class TestGetUsageAllocationResponsePayload(testtools.TestCase): """ Test suite for the GetUsageAllocation response payload. """ def setUp(self): super(TestGetUsageAllocationResponsePayload, self).setUp() # Encoding obtained from the KMIP 1.1 testing document, Section 5.1. # # This encoding matches the following set of values: # Response Payload # Unique Identifier - 2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6 self.full_encoding = utils.BytearrayStream( b'\x42\x00\x7C\x01\x00\x00\x00\x30' b'\x42\x00\x94\x07\x00\x00\x00\x24' b'\x32\x63\x32\x33\x32\x31\x37\x65\x2D\x66\x35\x33\x63\x2D\x34\x62' b'\x64\x66\x2D\x61\x64\x30\x61\x2D\x35\x38\x61\x33\x31\x66\x64\x33' b'\x64\x34\x62\x36\x00\x00\x00\x00' ) self.empty_encoding = utils.BytearrayStream( b'\x42\x00\x7C\x01\x00\x00\x00\x00' ) def tearDown(self): super(TestGetUsageAllocationResponsePayload, self).tearDown() def test_init(self): """ Test that a GetUsageAllocation response payload can be constructed with no arguments. """ payload = payloads.GetUsageAllocationResponsePayload() self.assertEqual(None, payload.unique_identifier) def test_init_with_args(self): """ Test that a GetUsageAllocation response payload can be constructed with valid values. """ payload = payloads.GetUsageAllocationResponsePayload( unique_identifier='00000000-1111-2222-3333-444444444444' ) self.assertEqual( '00000000-1111-2222-3333-444444444444', payload.unique_identifier ) def test_invalid_unique_identifier(self): """ Test that a TypeError is raised when an invalid value is used to set the unique identifier of a GetUsageAllocation response payload. """ kwargs = {'unique_identifier': 0} self.assertRaisesRegex( TypeError, "Unique identifier must be a string.", payloads.GetUsageAllocationResponsePayload, **kwargs ) payload = payloads.GetUsageAllocationResponsePayload() args = (payload, 'unique_identifier', 0) self.assertRaisesRegex( TypeError, "Unique identifier must be a string.", setattr, *args ) def test_read(self): """ Test that a GetUsageAllocation response payload can be read from a data stream. """ payload = payloads.GetUsageAllocationResponsePayload() self.assertEqual(None, payload.unique_identifier) payload.read(self.full_encoding) self.assertEqual( '2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6', payload.unique_identifier ) def test_read_empty(self): """ Test that a GetUsageAllocation response payload can be read from an empty data stream. """ payload = payloads.GetUsageAllocationResponsePayload() self.assertEqual(None, payload.unique_identifier) payload.read(self.empty_encoding) self.assertEqual(None, payload.unique_identifier) def test_write(self): """ Test that a GetUsageAllocation response payload can be written to a data stream. """ payload = payloads.GetUsageAllocationResponsePayload( unique_identifier='2c23217e-f53c-4bdf-ad0a-58a31fd3d4b6' ) stream = utils.BytearrayStream() payload.write(stream) self.assertEqual(len(self.full_encoding), len(stream)) self.assertEqual(str(self.full_encoding), str(stream)) def test_write_empty(self): """ Test that an empty GetUsageAllocation response payload can be written to a data stream. """ payload = payloads.GetUsageAllocationResponsePayload() stream = utils.BytearrayStream() payload.write(stream) self.assertEqual(len(self.empty_encoding), len(stream)) self.assertEqual(str(self.empty_encoding), str(stream)) def test_equal_on_equal(self): """ Test that the equality operator returns True when comparing two GetUsageAllocation response payloads with the same data. """ a = payloads.GetUsageAllocationResponsePayload() b = payloads.GetUsageAllocationResponsePayload() self.assertTrue(a == b) self.assertTrue(b == a) a = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) b = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) self.assertTrue(a == b) self.assertTrue(b == a) def test_equal_on_not_equal_unique_identifier(self): """ Test that the equality operator returns False when comparing two GetUsageAllocation response payloads with different unique identifiers. """ a = payloads.GetUsageAllocationResponsePayload( unique_identifier='a' ) b = payloads.GetUsageAllocationResponsePayload( unique_identifier='b' ) self.assertFalse(a == b) self.assertFalse(b == a) def test_equal_on_type_mismatch(self): """ Test that the equality operator returns False when comparing two GetUsageAllocation response payloads with different types. """ a = payloads.GetUsageAllocationResponsePayload() b = 'invalid' self.assertFalse(a == b) self.assertFalse(b == a) def test_not_equal_on_equal(self): """ Test that the inequality operator returns False when comparing two GetUsageAllocation response payloads with the same data. """ a = payloads.GetUsageAllocationResponsePayload() b = payloads.GetUsageAllocationResponsePayload() self.assertFalse(a != b) self.assertFalse(b != a) a = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) b = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) self.assertFalse(a != b) self.assertFalse(b != a) def test_not_equal_on_not_equal_unique_identifier(self): """ Test that the inequality operator returns True when comparing two GetUsageAllocation response payloads with different unique identifiers. """ a = payloads.GetUsageAllocationResponsePayload( unique_identifier='a' ) b = payloads.GetUsageAllocationResponsePayload( unique_identifier='b' ) self.assertTrue(a != b) self.assertTrue(b != a) def test_not_equal_on_type_mismatch(self): """ Test that the inequality operator returns True when comparing two GetUsageAllocation response payloads with different types. """ a = payloads.GetUsageAllocationResponsePayload() b = 'invalid' self.assertTrue(a != b) self.assertTrue(b != a) def test_repr(self): """ Test that repr can be applied to a GetUsageAllocation response payload. """ payload = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) expected = ( "GetUsageAllocationResponsePayload(" "unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038')" ) observed = repr(payload) self.assertEqual(expected, observed) def test_str(self): """ Test that str can be applied to a GetUsageAllocation response payload """ payload = payloads.GetUsageAllocationResponsePayload( unique_identifier='49a1ca88-6bea-4fb2-b450-7e58802c3038' ) expected = str({ 'unique_identifier': '49a1ca88-6bea-4fb2-b450-7e58802c3038' }) observed = str(payload) self.assertEqual(expected, observed)
33.404724
79
0.638884
2,155
21,212
6.183295
0.100696
0.072045
0.03152
0.033621
0.924278
0.910919
0.90439
0.876998
0.84818
0.822814
0
0.06297
0.278286
21,212
634
80
33.457413
0.807434
0.231803
0
0.759104
0
0.016807
0.137777
0.109918
0
0
0
0
0.218487
1
0.109244
false
0
0.008403
0
0.123249
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2240237140042f8a4ea8f708a58df2c40435d3fe
1,712
py
Python
tests/test_timer.py
benoitc/pyuv
51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18
[ "MIT" ]
1
2020-01-21T11:10:38.000Z
2020-01-21T11:10:38.000Z
tests/test_timer.py
benoitc/pyuv
51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18
[ "MIT" ]
null
null
null
tests/test_timer.py
benoitc/pyuv
51a2f8687e3b6cd54af5ce81aabfc00b7fe40a18
[ "MIT" ]
null
null
null
from common import unittest2 import pyuv class TimerTest(unittest2.TestCase): def test_timer1(self): self.timer_cb_called = 0 def timer_cb(timer): self.timer_cb_called += 1 timer.stop() timer.close() loop = pyuv.Loop.default_loop() timer = pyuv.Timer(loop) timer.start(timer_cb, 0.1, 0) loop.run() self.assertEqual(self.timer_cb_called, 1) def test_timer_never(self): self.timer_cb_called = 0 def timer_cb(timer): self.timer_cb_called += 1 timer.stop() timer.close() loop = pyuv.Loop.default_loop() timer = pyuv.Timer(loop) timer.start(timer_cb, 0.1, 0) timer.close() loop.run() self.assertEqual(self.timer_cb_called, 0) def test_timer_ref1(self): self.timer_cb_called = 0 def timer_cb(timer): self.timer_cb_called += 1 timer.stop() timer.close() loop = pyuv.Loop.default_loop() self.timer = pyuv.Timer(loop) loop.run() self.assertEqual(self.timer_cb_called, 0) def test_timer_ref2(self): self.timer_cb_called = 0 def timer_cb(timer): self.timer_cb_called += 1 timer.stop() timer.close() loop = pyuv.Loop.default_loop() self.timer = pyuv.Timer(loop) self.timer.start(timer_cb, 0.1, 0) self.timer.unref() loop.run() self.assertEqual(self.timer_cb_called, 0) self.timer.ref() loop.run() self.assertEqual(self.timer_cb_called, 1) if __name__ == '__main__': unittest2.main(verbosity=2)
26.75
49
0.573014
221
1,712
4.20362
0.153846
0.1507
0.153929
0.23789
0.809473
0.809473
0.809473
0.787944
0.787944
0.658773
0
0.024786
0.316589
1,712
63
50
27.174603
0.769231
0
0
0.773585
0
0
0.004678
0
0
0
0
0
0.09434
1
0.150943
false
0
0.037736
0
0.207547
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
224d4e1d5bb5c8e913207e66c71d3299c7402062
86
py
Python
configuration/jupyter_notebook_config.py
amakhno/skynet-jupyter
c1b851ed469c4a4e07da8d029812f66c919a58f6
[ "MIT" ]
null
null
null
configuration/jupyter_notebook_config.py
amakhno/skynet-jupyter
c1b851ed469c4a4e07da8d029812f66c919a58f6
[ "MIT" ]
null
null
null
configuration/jupyter_notebook_config.py
amakhno/skynet-jupyter
c1b851ed469c4a4e07da8d029812f66c919a58f6
[ "MIT" ]
null
null
null
c.NotebookApp.password = 'sha1:6bdfe47a95d8:4879d03389ed2d4d3fda8e173d85bc9a08aa0a2a'
43
85
0.883721
6
86
12.666667
1
0
0
0
0
0
0
0
0
0
0
0.361446
0.034884
86
1
86
86
0.554217
0
0
0
0
0
0.674419
0.674419
0
0
0
0
0
1
0
true
1
0
0
0
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
1
0
0
0
0
0
8
97e3563795043bb3732d2ad9b28363322cb33b1d
5,252
py
Python
tests/test_wrappers_consoleprinter.py
mgates/yamlpath
319585620abfab199f3e15c87e0a2dc2c900aa1d
[ "ISC" ]
null
null
null
tests/test_wrappers_consoleprinter.py
mgates/yamlpath
319585620abfab199f3e15c87e0a2dc2c900aa1d
[ "ISC" ]
null
null
null
tests/test_wrappers_consoleprinter.py
mgates/yamlpath
319585620abfab199f3e15c87e0a2dc2c900aa1d
[ "ISC" ]
null
null
null
import pytest from types import SimpleNamespace from ruamel.yaml.scalarstring import PlainScalarString from yamlpath.wrappers import ConsolePrinter class Test_wrappers_ConsolePrinter(): def test_info_noisy(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) logger.info("Test") console = capsys.readouterr() assert console.out == "Test\n" def test_info_quiet(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=False) logger = ConsolePrinter(args) logger.info("Test") console = capsys.readouterr() assert not console.out def test_verbose_off(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) logger.verbose("Test") console = capsys.readouterr() assert not console.out def test_verbose_noisy(self, capsys): args = SimpleNamespace(verbose=True, quiet=False, debug=False) logger = ConsolePrinter(args) logger.verbose("Test") console = capsys.readouterr() assert console.out == "Test\n" def test_verbose_quiet(self, capsys): args = SimpleNamespace(verbose=True, quiet=True, debug=False) logger = ConsolePrinter(args) logger.verbose("Test") console = capsys.readouterr() assert not console.out def test_debug_off(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) logger.debug("Test") console = capsys.readouterr() assert not console.out def test_debug_noisy(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=True) logger = ConsolePrinter(args) anchoredkey = PlainScalarString("TestKey", anchor="KeyAnchor") anchoredval = PlainScalarString("TestVal", anchor="Anchor") logger.debug(anchoredval) console = capsys.readouterr() assert "\n".join([ "DEBUG: TestVal; &Anchor", ]) + "\n" == console.out logger.debug(["test", anchoredval]) console = capsys.readouterr() assert "\n".join([ "DEBUG: [0]=test", "DEBUG: [1]=TestVal; &Anchor", ]) + "\n" == console.out logger.debug({"ichi": 1, anchoredkey: anchoredval}) console = capsys.readouterr() assert "\n".join([ "DEBUG: [ichi]=>1", "DEBUG: [TestKey; &KeyAnchor]=>TestVal; &Anchor", ]) + "\n" == console.out def test_debug_quiet(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=True) logger = ConsolePrinter(args) logger.debug("Test") console = capsys.readouterr() assert not console.out def test_warning_noisy(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) logger.warning("Test") console = capsys.readouterr() assert console.out == "WARNING: Test\n" def test_warning_quiet(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=False) logger = ConsolePrinter(args) logger.warning("Test") console = capsys.readouterr() assert not console.out def test_error_noisy_nonexit(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) logger.error("Test") console = capsys.readouterr() assert console.err == "ERROR: Test\n" def test_error_quiet_nonexit(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=False) logger = ConsolePrinter(args) logger.error("Test") console = capsys.readouterr() assert console.err == "ERROR: Test\n" def test_error_noisy_exit(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) with pytest.raises(SystemExit): logger.error("Test", 27) console = capsys.readouterr() assert console.err == "ERROR: Test\n" def test_error_quiet_exit(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=False) logger = ConsolePrinter(args) with pytest.raises(SystemExit): logger.error("Test", 27) console = capsys.readouterr() assert console.err == "ERROR: Test\n" def test_critical_noisy(self, capsys): args = SimpleNamespace(verbose=False, quiet=False, debug=False) logger = ConsolePrinter(args) with pytest.raises(SystemExit): logger.critical("Test") console = capsys.readouterr() assert console.err == "CRITICAL: Test\n" def test_critical_quiet(self, capsys): args = SimpleNamespace(verbose=False, quiet=True, debug=False) logger = ConsolePrinter(args) with pytest.raises(SystemExit): logger.critical("Test") console = capsys.readouterr() assert console.err == "CRITICAL: Test\n"
36.472222
71
0.628332
549
5,252
5.941712
0.096539
0.071735
0.126916
0.160025
0.878296
0.850399
0.847333
0.798283
0.742796
0.742796
0
0.002049
0.256664
5,252
143
72
36.727273
0.833504
0
0
0.702479
0
0
0.068355
0.003998
0
0
0
0
0.14876
1
0.132231
false
0
0.033058
0
0.173554
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
3f7437478e520c9c14a6bf6bc761b8f7b6ccb20a
50,769
py
Python
tests/test_index.py
DerThorsten/conda-build
729c0cea03677dae0e2e15b7ec6d98619b5d4401
[ "BSD-3-Clause" ]
null
null
null
tests/test_index.py
DerThorsten/conda-build
729c0cea03677dae0e2e15b7ec6d98619b5d4401
[ "BSD-3-Clause" ]
null
null
null
tests/test_index.py
DerThorsten/conda-build
729c0cea03677dae0e2e15b7ec6d98619b5d4401
[ "BSD-3-Clause" ]
null
null
null
import json from logging import getLogger import os from os.path import dirname, isdir, join, isfile import requests import shutil import tarfile import pytest from unittest import mock import conda_package_handling.api from conda_build import api from conda_build.conda_interface import context import conda_build.index from conda_build.utils import copy_into, rm_rf from conda_build.conda_interface import subdir from conda_build.conda_interface import conda_47 from .utils import metadata_dir, archive_dir log = getLogger(__name__) # NOTE: The recipes for test packages used in this module are at https://github.com/kalefranz/conda-test-packages def download(url, local_path): # NOTE: The tests in this module download packages from the conda-test channel. # These packages are small, and could easily be included in the conda-build git # repository once their use stabilizes. if not isdir(dirname(local_path)): os.makedirs(dirname(local_path)) r = requests.get(url, stream=True) with open(local_path, 'wb') as f: shutil.copyfileobj(r.raw, f) return local_path def test_index_on_single_subdir_1(testing_workdir): test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2' download(test_package_url, test_package_path) conda_build.index.update_index(testing_workdir, channel_name='test-channel') # ####################################### # tests for osx-64 subdir # ####################################### assert isfile(join(testing_workdir, 'osx-64', 'index.html')) assert isfile(join(testing_workdir, 'osx-64', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json.bz2')) with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) with open(join(testing_workdir, 'osx-64', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'osx-64', }, "packages": { "conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "37861df8111170f5eed4bff27868df59", "name": "conda-index-pkg-a", "sha256": "459f3e9b2178fa33bdc4e6267326405329d1c1ab982273d9a1c0a5084a1ddc30", "size": 8733, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "packages.conda": {}, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # ####################################### # tests for full channel # ####################################### with open(join(testing_workdir, 'channeldata.json')) as fh: actual_channeldata_json = json.loads(fh.read()) expected_channeldata_json = { "channeldata_version": 1, "packages": { "conda-index-pkg-a": { "description": "Description field for conda-index-pkg-a. Actually, this is just the python description. " "Python is a widely used high-level, general-purpose, interpreted, dynamic " "programming language. Its design philosophy emphasizes code " "readability, and its syntax allows programmers to express concepts in " "fewer lines of code than would be possible in languages such as C++ or " "Java. The language provides constructs intended to enable clear programs " "on both a small and large scale.", "dev_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/meta.yaml", "doc_source_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/README.md", "doc_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a", "home": "https://anaconda.org/conda-test/conda-index-pkg-a", "license": "BSD", "source_git_url": "https://github.com/kalefranz/conda-test-packages.git", "subdirs": [ "osx-64", ], "summary": "Summary field for conda-index-pkg-a", "version": "1.0", "activate.d": False, "deactivate.d": False, "post_link": True, "pre_link": False, "pre_unlink": False, "binary_prefix": False, "text_prefix": True, "run_exports": {}, 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'keywords': None, 'recipe_origin': None, 'source_url': None, 'tags': None, 'timestamp': 1508520039, } }, "subdirs": [ "noarch", "osx-64" ] } assert actual_channeldata_json == expected_channeldata_json def test_file_index_on_single_subdir_1(testing_workdir): test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2' download(test_package_url, test_package_path) conda_build.index.update_index(testing_workdir, channel_name='test-channel') # ####################################### # tests for osx-64 subdir # ####################################### assert isfile(join(testing_workdir, 'osx-64', 'index.html')) assert isfile(join(testing_workdir, 'osx-64', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json.bz2')) with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) assert actual_repodata_json with open(join(testing_workdir, 'osx-64', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'osx-64', }, "packages": { "conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "37861df8111170f5eed4bff27868df59", "name": "conda-index-pkg-a", "sha256": "459f3e9b2178fa33bdc4e6267326405329d1c1ab982273d9a1c0a5084a1ddc30", "size": 8733, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "packages.conda": {}, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # download two packages here, put them both in the same subdir test_package_path = join(testing_workdir, 'osx-64', 'fly-2.5.2-0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/fly-2.5.2-0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'osx-64', 'nano-2.4.1-0-tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/nano-2.4.1-0.tar.bz2' download(test_package_url, test_package_path) # only tell index to index one of them and then assert that it was added p = os.path.join(testing_workdir, 'index_file') with open(os.path.join(testing_workdir, 'index_file'), 'a+') as fh: fh.write("osx-64/fly-2.5.2-0.tar.bz2\n") conda_build.index.update_index(testing_workdir, channel_name='test-channel', index_file=p) updated_packages = expected_repodata_json.get('packages') updated_packages['fly-2.5.2-0.tar.bz2'] = { "build": "0", "build_number": 0, "depends": [], "license": "Apache", "md5": "2e84ee54415a5021db050bd5fa5438b2", "name": "fly", "sha256": "79dec46aaa827ffde1bc069f740697b0d126f485ed9cb4c3db201f720601d346", "size": 5382961, "subdir": "osx-64", "version": "2.5.2" } expected_repodata_json['packages'] = updated_packages with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) assert actual_repodata_json with open(join(testing_workdir, 'osx-64', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) assert actual_pkg_repodata_json assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # ####################################### # tests for full channel # ####################################### with open(join(testing_workdir, 'channeldata.json')) as fh: actual_channeldata_json = json.loads(fh.read()) expected_channeldata_json = { "channeldata_version": 1, "packages": { "conda-index-pkg-a": { "description": "Description field for conda-index-pkg-a. Actually, this is just the python description. " "Python is a widely used high-level, general-purpose, interpreted, dynamic " "programming language. Its design philosophy emphasizes code " "readability, and its syntax allows programmers to express concepts in " "fewer lines of code than would be possible in languages such as C++ or " "Java. The language provides constructs intended to enable clear programs " "on both a small and large scale.", "dev_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/meta.yaml", "doc_source_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/README.md", "doc_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a", "home": "https://anaconda.org/conda-test/conda-index-pkg-a", "license": "BSD", "source_git_url": "https://github.com/kalefranz/conda-test-packages.git", "subdirs": [ "osx-64", ], "summary": "Summary field for conda-index-pkg-a", "version": "1.0", "activate.d": False, "deactivate.d": False, "post_link": True, "pre_link": False, "pre_unlink": False, "binary_prefix": False, "text_prefix": True, "run_exports": {}, 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'keywords': None, 'recipe_origin': None, 'source_url': None, 'tags': None, 'timestamp': 1508520039, }, "fly": { 'activate.d': False, 'binary_prefix': False, 'deactivate.d': False, 'description': 'A command line interface that runs a build in a container with ATC.', 'dev_url': None, 'doc_source_url': None, 'doc_url': None, 'home': 'https://github.com/concourse/fly', 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'keywords': None, 'license': 'Apache', 'post_link': False, 'pre_link': False, 'pre_unlink': False, 'recipe_origin': None, 'run_exports': {}, 'source_git_url': '/Users/scastellarin/projects/fly-package/https:/github.com/concourse/concourse.git', 'source_url': None, 'subdirs': [ 'osx-64' ], 'summary': 'A command line interface that runs a build in a container with ATC.', 'tags': None, 'text_prefix': False, 'timestamp': 0, 'version': '2.5.2' } }, "subdirs": [ "noarch", "osx-64" ] } assert actual_channeldata_json == expected_channeldata_json def test_index_noarch_osx64_1(testing_workdir): test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'noarch', 'conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/noarch/conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2' download(test_package_url, test_package_path) conda_build.index.update_index(testing_workdir, channel_name='test-channel') # ####################################### # tests for osx-64 subdir # ####################################### assert isfile(join(testing_workdir, 'osx-64', 'index.html')) assert isfile(join(testing_workdir, 'osx-64', 'repodata.json')) # repodata is tested in test_index_on_single_subdir_1 assert isfile(join(testing_workdir, 'osx-64', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json.bz2')) # ####################################### # tests for noarch subdir # ####################################### assert isfile(join(testing_workdir, 'noarch', 'index.html')) assert isfile(join(testing_workdir, 'noarch', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'noarch', 'repodata_from_packages.json.bz2')) with open(join(testing_workdir, 'noarch', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) with open(join(testing_workdir, 'noarch', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'noarch', }, "packages": { "conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2": { "build": "pyhed9eced_1", "build_number": 1, "depends": [ "python" ], "license": "BSD", "md5": "56b5f6b7fb5583bccfc4489e7c657484", "name": "conda-index-pkg-a", "noarch": "python", "sha256": "7430743bffd4ac63aa063ae8518e668eac269c783374b589d8078bee5ed4cbc6", "size": 7882, "subdir": "noarch", "timestamp": 1508520204768, "version": "1.0", }, }, "packages.conda": {}, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # ####################################### # tests for full channel # ####################################### with open(join(testing_workdir, 'channeldata.json')) as fh: actual_channeldata_json = json.loads(fh.read()) expected_channeldata_json = { "channeldata_version": 1, "packages": { "conda-index-pkg-a": { "description": "Description field for conda-index-pkg-a. Actually, this is just the python description. " "Python is a widely used high-level, general-purpose, interpreted, dynamic " "programming language. Its design philosophy emphasizes code " "readability, and its syntax allows programmers to express concepts in " "fewer lines of code than would be possible in languages such as C++ or " "Java. The language provides constructs intended to enable clear programs " "on both a small and large scale.", "dev_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/meta.yaml", "doc_source_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/README.md", "doc_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a", "home": "https://anaconda.org/conda-test/conda-index-pkg-a", "license": "BSD", "source_git_url": "https://github.com/kalefranz/conda-test-packages.git", 'source_url': None, "subdirs": [ "noarch", "osx-64", ], "summary": "Summary field for conda-index-pkg-a. This is the python noarch version.", # <- tests that the higher noarch build number is the data collected "version": "1.0", "activate.d": False, "deactivate.d": False, "post_link": True, "pre_link": False, "pre_unlink": False, "binary_prefix": False, "text_prefix": True, "run_exports": {}, 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'tags': None, 'timestamp': 1508520039, 'keywords': None, 'recipe_origin': None, } }, "subdirs": [ "noarch", "osx-64", ] } assert actual_channeldata_json == expected_channeldata_json def test_file_index_noarch_osx64_1(testing_workdir): test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'noarch', 'conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/noarch/conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2' download(test_package_url, test_package_path) conda_build.index.update_index(testing_workdir, channel_name='test-channel') # ####################################### # tests for osx-64 subdir # ####################################### assert isfile(join(testing_workdir, 'osx-64', 'index.html')) assert isfile(join(testing_workdir, 'osx-64', 'repodata.json')) # repodata is tested in test_index_on_single_subdir_1 assert isfile(join(testing_workdir, 'osx-64', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json')) assert isfile(join(testing_workdir, 'osx-64', 'repodata_from_packages.json.bz2')) # ####################################### # tests for noarch subdir # ####################################### assert isfile(join(testing_workdir, 'noarch', 'index.html')) assert isfile(join(testing_workdir, 'noarch', 'repodata.json.bz2')) assert isfile(join(testing_workdir, 'noarch', 'repodata_from_packages.json.bz2')) with open(join(testing_workdir, 'noarch', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) with open(join(testing_workdir, 'noarch', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'noarch', }, "packages": { "conda-index-pkg-a-1.0-pyhed9eced_1.tar.bz2": { "build": "pyhed9eced_1", "build_number": 1, "depends": [ "python" ], "license": "BSD", "md5": "56b5f6b7fb5583bccfc4489e7c657484", "name": "conda-index-pkg-a", "noarch": "python", "sha256": "7430743bffd4ac63aa063ae8518e668eac269c783374b589d8078bee5ed4cbc6", "size": 7882, "subdir": "noarch", "timestamp": 1508520204768, "version": "1.0", }, }, "packages.conda": {}, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # download two packages per subdir here, put them both in the same subdir test_package_path = join(testing_workdir, 'osx-64', 'fly-2.5.2-0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/fly-2.5.2-0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'osx-64', 'nano-2.4.1-0-tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/nano-2.4.1-0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'noarch', 'spiffy-test-app-0.5-pyh6afbcc8_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/noarch/spiffy-test-app-0.5-pyh6afbcc8_0.tar.bz2' download(test_package_url, test_package_path) test_package_path = join(testing_workdir, 'noarch', 'flask-0.11.1-py_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/noarch/flask-0.11.1-py_0.tar.bz2' download(test_package_url, test_package_path) # only tell index to index one of them and then assert that it was added p = os.path.join(testing_workdir, 'index_file') with open(os.path.join(testing_workdir, 'index_file'), 'a+') as fh: fh.write("noarch/flask-0.11.1-py_0.tar.bz2\n") fh.write("osx/fly-2.5.2-0.tar.bz2\n") conda_build.index.update_index(testing_workdir, channel_name='test-channel', index_file=p) updated_packages = expected_repodata_json.get('packages') updated_packages['flask-0.11.1-py_0.tar.bz2'] = { 'build': 'py_0', 'build_number': 0, 'depends': [ 'click >=2.0', 'itsdangerous >=0.21', 'jinja2 >=2.4', 'python', 'werkzeug >=0.7' ], 'license': 'BSD', 'md5': '6b06127706cf0ba57c6e13258bb222e7', 'name': 'flask', 'noarch': 'python', 'sha256': '8353f3a4a4533ff0c6ce829b90980a01a577b3ac015ebd573fef308f2bfec5a8', 'size': 58062, 'subdir': 'noarch', 'version': '0.11.1' } expected_repodata_json['packages'] = updated_packages with open(join(testing_workdir, 'noarch', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) assert actual_repodata_json with open(join(testing_workdir, 'noarch', 'repodata_from_packages.json')) as fh: actual_pkg_repodata_json = json.loads(fh.read()) assert actual_pkg_repodata_json assert actual_repodata_json == expected_repodata_json assert actual_pkg_repodata_json == expected_repodata_json # ####################################### # tests for full channel # ####################################### with open(join(testing_workdir, 'channeldata.json')) as fh: actual_channeldata_json = json.loads(fh.read()) expected_channeldata_json = { "channeldata_version": 1, "packages": { "conda-index-pkg-a": { "description": "Description field for conda-index-pkg-a. Actually, this is just the python description. " "Python is a widely used high-level, general-purpose, interpreted, dynamic " "programming language. Its design philosophy emphasizes code " "readability, and its syntax allows programmers to express concepts in " "fewer lines of code than would be possible in languages such as C++ or " "Java. The language provides constructs intended to enable clear programs " "on both a small and large scale.", "dev_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/meta.yaml", "doc_source_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a/README.md", "doc_url": "https://github.com/kalefranz/conda-test-packages/blob/master/conda-index-pkg-a", "home": "https://anaconda.org/conda-test/conda-index-pkg-a", "license": "BSD", "source_git_url": "https://github.com/kalefranz/conda-test-packages.git", 'source_url': None, "subdirs": [ "noarch", "osx-64", ], "summary": "Summary field for conda-index-pkg-a. This is the python noarch version.", # <- tests that the higher noarch build number is the data collected "version": "1.0", "activate.d": False, "deactivate.d": False, "post_link": True, "pre_link": False, "pre_unlink": False, "binary_prefix": False, "text_prefix": True, "run_exports": {}, 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'tags': None, 'timestamp': 1508520204, 'keywords': None, 'recipe_origin': None, }, 'flask': { 'activate.d': False, 'binary_prefix': False, 'deactivate.d': False, 'description': "Flask is a microframework for Python based on Werkzeug and Jinja2. " "It's intended for getting started very quickly and was developed with best intentions in mind.", 'dev_url': 'https://github.com/mitsuhiko/flask', 'doc_source_url': None, 'doc_url': 'http://flask.pocoo.org/docs/0.10/', 'home': 'http://flask.pocoo.org/', 'icon_hash': None, 'icon_url': None, 'identifiers': None, 'keywords': None, 'license': 'BSD', 'post_link': False, 'pre_link': False, 'pre_unlink': False, 'recipe_origin': None, 'run_exports': {}, 'source_git_url': None, 'source_url': None, 'subdirs': [ 'noarch' ], 'summary': 'A microframework based on Werkzeug, Jinja2 and good intentions', 'tags': None, 'text_prefix': False, 'timestamp': 0, 'version': '0.11.1' } }, "subdirs": [ "noarch", "osx-64", ] } assert actual_channeldata_json == expected_channeldata_json def _build_test_index(workdir): pkgs = api.build(os.path.join(metadata_dir, "_index_hotfix_pkgs"), croot=workdir) for pkg in pkgs: conda_package_handling.api.transmute(pkg, '.conda') api.update_index(workdir) with open(os.path.join(workdir, subdir, 'repodata.json')) as f: original_metadata = json.load(f) pkg_list = original_metadata['packages'] assert "track_features_test-1.0-0.tar.bz2" in pkg_list assert pkg_list["track_features_test-1.0-0.tar.bz2"]["track_features"] == "dummy" assert "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkg_list assert pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["features"] == "dummy" assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "revoke_test-1.0-0.tar.bz2" in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "package_has_been_revoked" not in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "remove_test-1.0-0.tar.bz2" in pkg_list def test_gen_patch_py(testing_workdir): """ This is a channel-wide file that applies to many subdirs. It must have a function with this signature: def _patch_repodata(repodata, subdir): That function must return a dictionary of patch instructions, of the form: { "patch_instructions_version": 1, "packages": defaultdict(dict), "revoke": [], "remove": [], } revoke and remove are lists of filenames. remove makes the file not show up in the index (it may still be downloadable with a direct URL to the file). revoke makes packages uninstallable by adding an unsatisfiable dependency. This can be made installable by including a channel that has that package (to be created by @jjhelmus). packages is a dictionary, where keys are package filenames. Values are dictionaries similar to the contents of each package in repodata.json. Any values in provided in packages here overwrite the values in repodata.json. Any value set to None is removed. """ _build_test_index(testing_workdir) func = """ def _patch_repodata(repodata, subdir): pkgs = repodata["packages"] import fnmatch replacement_dict = {} if "track_features_test-1.0-0.tar.bz2" in pkgs: replacement_dict["track_features_test-1.0-0.tar.bz2"] = {"track_features": None} if "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkgs: replacement_dict["hotfix_depends_test-1.0-dummy_0.tar.bz2"] = { "depends": pkgs["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] + ["dummy"], "features": None} revoke_list = [pkg for pkg in pkgs if fnmatch.fnmatch(pkg, "revoke_test*")] remove_list = [pkg for pkg in pkgs if fnmatch.fnmatch(pkg, "remove_test*")] return { "patch_instructions_version": 1, "packages": replacement_dict, "revoke": revoke_list, "remove": remove_list, } """ patch_file = os.path.join(testing_workdir, 'repodata_patch.py') with open(patch_file, 'w') as f: f.write(func) # indexing a second time with the same patchset should keep the removals for i in (1, 2): conda_build.index.update_index(testing_workdir, patch_generator=patch_file, verbose=True) with open(os.path.join(testing_workdir, subdir, 'repodata.json')) as f: patched_metadata = json.load(f) pkg_list = patched_metadata['packages'] assert "track_features_test-1.0-0.tar.bz2" in pkg_list assert "track_features" not in pkg_list["track_features_test-1.0-0.tar.bz2"] print("pass %s track features ok" % i) assert "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkg_list assert "features" not in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"] assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "dummy" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] print("pass %s hotfix ok" % i) assert "revoke_test-1.0-0.tar.bz2" in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "package_has_been_revoked" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] print("pass %s revoke ok" % i) assert "remove_test-1.0-0.tar.bz2" not in pkg_list assert "remove_test-1.0-0.tar.bz2" in patched_metadata['removed'], "removed list not populated in run %d" % i print("pass %s remove ok" % i) with open(os.path.join(testing_workdir, subdir, 'repodata_from_packages.json')) as f: pkg_metadata = json.load(f) pkg_list = pkg_metadata['packages'] assert "track_features_test-1.0-0.tar.bz2" in pkg_list assert pkg_list["track_features_test-1.0-0.tar.bz2"]["track_features"] == "dummy" assert "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkg_list assert pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["features"] == "dummy" assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "revoke_test-1.0-0.tar.bz2" in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "package_has_been_revoked" not in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] def test_channel_patch_instructions_json(testing_workdir): _build_test_index(testing_workdir) replacement_dict = {} replacement_dict["track_features_test-1.0-0.tar.bz2"] = {"track_features": None} replacement_dict["hotfix_depends_test-1.0-dummy_0.tar.bz2"] = { "depends": ["zlib", "dummy"], "features": None} patch = { "patch_instructions_version": 1, "packages": replacement_dict, "revoke": ["revoke_test-1.0-0.tar.bz2"], "remove": ["remove_test-1.0-0.tar.bz2"], } with open(os.path.join(testing_workdir, subdir, 'patch_instructions.json'), 'w') as f: json.dump(patch, f) conda_build.index.update_index(testing_workdir) with open(os.path.join(testing_workdir, subdir, 'repodata.json')) as f: patched_metadata = json.load(f) formats = (('packages', '.tar.bz2'), ('packages.conda', '.conda')) for key, ext in formats: pkg_list = patched_metadata[key] assert "track_features_test-1.0-0" + ext in pkg_list assert "track_features" not in pkg_list["track_features_test-1.0-0" + ext] assert "hotfix_depends_test-1.0-dummy_0" + ext in pkg_list assert "features" not in pkg_list["hotfix_depends_test-1.0-dummy_0" + ext] assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0" + ext]["depends"] assert "dummy" in pkg_list["hotfix_depends_test-1.0-dummy_0" + ext]["depends"] assert "revoke_test-1.0-0" + ext in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0" + ext]["depends"] assert "package_has_been_revoked" in pkg_list["revoke_test-1.0-0" + ext]["depends"] assert "remove_test-1.0-0" + ext not in pkg_list with open(os.path.join(testing_workdir, subdir, 'repodata_from_packages.json')) as f: pkg_repodata = json.load(f) pkg_list = pkg_repodata[key] assert "track_features_test-1.0-0" + ext in pkg_list assert pkg_list["track_features_test-1.0-0" + ext]["track_features"] == "dummy" assert "hotfix_depends_test-1.0-dummy_0" + ext in pkg_list assert pkg_list["hotfix_depends_test-1.0-dummy_0" + ext]["features"] == "dummy" assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0" + ext]["depends"] assert "revoke_test-1.0-0" + ext in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0" + ext]["depends"] assert "package_has_been_revoked" not in pkg_list["revoke_test-1.0-0" + ext]["depends"] assert "remove_test-1.0-0" + ext in pkg_list def test_patch_from_tarball(testing_workdir): """This is how we expect external communities to provide patches to us. We can't let them just give us Python files for us to run, because of the security risk of arbitrary code execution.""" _build_test_index(testing_workdir) # our hotfix metadata can be generated any way you want. Hard-code this here, but in general, # people will use some python file to generate this. replacement_dict = {} replacement_dict["track_features_test-1.0-0.tar.bz2"] = {"track_features": None} replacement_dict["hotfix_depends_test-1.0-dummy_0.tar.bz2"] = { "depends": ["zlib", "dummy"], "features": None} patch = { "patch_instructions_version": 1, "packages": replacement_dict, "revoke": ["revoke_test-1.0-0.tar.bz2"], "remove": ["remove_test-1.0-0.tar.bz2"], } with open("patch_instructions.json", "w") as f: json.dump(patch, f) with tarfile.open("patch_archive.tar.bz2", "w:bz2") as archive: archive.add("patch_instructions.json", "%s/patch_instructions.json" % subdir) conda_build.index.update_index(testing_workdir, patch_generator="patch_archive.tar.bz2") with open(os.path.join(testing_workdir, subdir, 'repodata.json')) as f: patched_metadata = json.load(f) pkg_list = patched_metadata['packages'] assert "track_features_test-1.0-0.tar.bz2" in pkg_list assert "track_features" not in pkg_list["track_features_test-1.0-0.tar.bz2"] assert "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkg_list assert "features" not in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"] assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "dummy" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "revoke_test-1.0-0.tar.bz2" in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "package_has_been_revoked" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "remove_test-1.0-0.tar.bz2" not in pkg_list with open(os.path.join(testing_workdir, subdir, 'repodata_from_packages.json')) as f: pkg_repodata = json.load(f) pkg_list = pkg_repodata['packages'] assert "track_features_test-1.0-0.tar.bz2" in pkg_list assert pkg_list["track_features_test-1.0-0.tar.bz2"]["track_features"] == "dummy" assert "hotfix_depends_test-1.0-dummy_0.tar.bz2" in pkg_list assert pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["features"] == "dummy" assert "zlib" in pkg_list["hotfix_depends_test-1.0-dummy_0.tar.bz2"]["depends"] assert "revoke_test-1.0-0.tar.bz2" in pkg_list assert "zlib" in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "package_has_been_revoked" not in pkg_list["revoke_test-1.0-0.tar.bz2"]["depends"] assert "remove_test-1.0-0.tar.bz2" in pkg_list def test_index_of_removed_pkg(testing_metadata): out_files = api.build(testing_metadata) for f in out_files: os.remove(f) api.update_index(testing_metadata.config.croot) with open(os.path.join(testing_metadata.config.croot, subdir, 'repodata.json')) as f: repodata = json.load(f) assert not repodata['packages'] with open(os.path.join(testing_metadata.config.croot, subdir, 'repodata_from_packages.json')) as f: repodata = json.load(f) assert not repodata['packages'] def test_patch_instructions_with_missing_subdir(testing_workdir): os.makedirs('linux-64') os.makedirs('zos-z') api.update_index('.') # we use conda-forge's patch instructions because they don't have zos-z data, and that triggers an error pkg = "conda-forge-repodata-patches" url = "https://anaconda.org/conda-forge/{0}/20180828/download/noarch/{0}-20180828-0.tar.bz2".format(pkg) patch_instructions = download(url, os.path.join(os.getcwd(), "patches.tar.bz2")) api.update_index('.', patch_generator=patch_instructions) def test_stat_cache_used(testing_workdir, mocker): test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2') test_package_url = 'https://conda.anaconda.org/conda-test/osx-64/conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2' download(test_package_url, test_package_path) conda_build.index.update_index(testing_workdir, channel_name='test-channel') cph_extract = mocker.spy(conda_package_handling.api, 'extract') conda_build.index.update_index(testing_workdir, channel_name='test-channel') cph_extract.assert_not_called() def test_new_pkg_format_preferred(testing_workdir, mocker): """Test that in one pass, the .conda file is extracted before the .tar.bz2, and the .tar.bz2 uses the cache""" test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0') exts = ('.tar.bz2', '.conda') for ext in exts: copy_into(os.path.join(archive_dir, 'conda-index-pkg-a-1.0-py27h5e241af_0' + ext), test_package_path + ext) # mock the extract function, so that we can assert that it is not called # with the .tar.bz2, because the .conda should be preferred cph_extract = mocker.spy(conda_package_handling.api, 'extract') conda_build.index.update_index(testing_workdir, channel_name='test-channel', debug=True) # extract should get called once by default. Within a channel, we assume that a .tar.bz2 and .conda have the same contents. cph_extract.assert_called_once_with(test_package_path + '.conda', mock.ANY, 'info') with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'osx-64', }, "packages": { "conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "37861df8111170f5eed4bff27868df59", "name": "conda-index-pkg-a", "sha256": "459f3e9b2178fa33bdc4e6267326405329d1c1ab982273d9a1c0a5084a1ddc30", "size": 8733, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "packages.conda": { "conda-index-pkg-a-1.0-py27h5e241af_0.conda": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "4ed4b435f400dac1aabdc1fff06f78ff", "name": "conda-index-pkg-a", "sha256": "67b07b644105439515cc5c8c22c86939514cacf30c8c574cd70f5f1267a40f19", "size": 9296, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json # if we clear the stat cache, we force a re-examination. This re-examination will load files # from the cache. This has been a source of bugs in the past, where the wrong cached file # being loaded resulted in incorrect hashes/sizes for either the .tar.bz2 or .conda, depending # on which of those 2 existed in the cache. rm_rf(os.path.join(testing_workdir, 'osx-64', 'stat.json')) conda_build.index.update_index(testing_workdir, channel_name='test-channel', debug=True) with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) assert actual_repodata_json == expected_repodata_json def test_new_pkg_format_stat_cache_used(testing_workdir, mocker): # if we have old .tar.bz2 index cache stuff, assert that we pick up correct md5, sha26 and size for .conda test_package_path = join(testing_workdir, 'osx-64', 'conda-index-pkg-a-1.0-py27h5e241af_0') copy_into(os.path.join(archive_dir, 'conda-index-pkg-a-1.0-py27h5e241af_0' + '.tar.bz2'), test_package_path + '.tar.bz2') conda_build.index.update_index(testing_workdir, channel_name='test-channel') # mock the extract function, so that we can assert that it is not called, because the stat cache should exist # if this doesn't work, something about the stat cache is confused. It's a little convoluted, because # the index has keys for .tar.bz2's, but the stat cache comes from .conda files when they are available # because extracting them is much, much faster. copy_into(os.path.join(archive_dir, 'conda-index-pkg-a-1.0-py27h5e241af_0' + '.conda'), test_package_path + '.conda') cph_extract = mocker.spy(conda_package_handling.api, 'extract') conda_build.index.update_index(testing_workdir, channel_name='test-channel', debug=True) cph_extract.assert_not_called() with open(join(testing_workdir, 'osx-64', 'repodata.json')) as fh: actual_repodata_json = json.loads(fh.read()) expected_repodata_json = { "info": { 'subdir': 'osx-64', }, "packages": { "conda-index-pkg-a-1.0-py27h5e241af_0.tar.bz2": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "37861df8111170f5eed4bff27868df59", "name": "conda-index-pkg-a", "sha256": "459f3e9b2178fa33bdc4e6267326405329d1c1ab982273d9a1c0a5084a1ddc30", "size": 8733, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "packages.conda": { "conda-index-pkg-a-1.0-py27h5e241af_0.conda": { "build": "py27h5e241af_0", "build_number": 0, "depends": [ "python >=2.7,<2.8.0a0" ], "license": "BSD", "md5": "4ed4b435f400dac1aabdc1fff06f78ff", "name": "conda-index-pkg-a", "sha256": "67b07b644105439515cc5c8c22c86939514cacf30c8c574cd70f5f1267a40f19", "size": 9296, "subdir": "osx-64", "timestamp": 1508520039632, "version": "1.0", }, }, "removed": [], "repodata_version": 1, } assert actual_repodata_json == expected_repodata_json @pytest.mark.skipif(not hasattr(context, 'use_only_tar_bz2') or getattr(context, 'use_only_tar_bz2'), reason="conda is set to auto-disable .conda for old conda-build.") def test_current_index_reduces_space(): repodata = os.path.join(os.path.dirname(__file__), 'index_data', 'time_cut', 'repodata.json') with open(repodata) as f: repodata = json.load(f) assert len(repodata['packages']) == 7 assert len(repodata['packages.conda']) == 3 trimmed_repodata = conda_build.index._build_current_repodata("linux-64", repodata, None) tar_bz2_keys = {"two-because-satisfiability-1.2.11-h7b6447c_3.tar.bz2", "two-because-satisfiability-1.2.10-h7b6447c_3.tar.bz2", "depends-on-older-1.2.10-h7b6447c_3.tar.bz2", "ancient-package-1.2.10-h7b6447c_3.tar.bz2", "one-gets-filtered-1.3.10-h7b6447c_3.tar.bz2" } # conda 4.7 removes .tar.bz2 files in favor of .conda files if conda_47: tar_bz2_keys.remove("one-gets-filtered-1.3.10-h7b6447c_3.tar.bz2") # .conda files will replace .tar.bz2 files. Older packages that are necessary for satisfiability will remain assert set(trimmed_repodata['packages'].keys()) == tar_bz2_keys if conda_47: assert set(trimmed_repodata['packages.conda'].keys()) == {"one-gets-filtered-1.3.10-h7b6447c_3.conda"} # we can keep more than one version series using a collection of keys trimmed_repodata = conda_build.index._build_current_repodata("linux-64", repodata, {'one-gets-filtered': ['1.2', '1.3']}) if conda_47: assert set(trimmed_repodata['packages.conda'].keys()) == {"one-gets-filtered-1.2.11-h7b6447c_3.conda", "one-gets-filtered-1.3.10-h7b6447c_3.conda"} else: assert set(trimmed_repodata['packages'].keys()) == tar_bz2_keys | {"one-gets-filtered-1.2.11-h7b6447c_3.tar.bz2"} def test_current_index_version_keys_keep_older_packages(testing_workdir): pkg_dir = os.path.join(os.path.dirname(__file__), 'index_data', 'packages') # pass no version file api.update_index(pkg_dir) with open(os.path.join(pkg_dir, 'osx-64', 'current_repodata.json')) as f: repodata = json.load(f) # only the newest version is kept assert len(repodata['packages']) == 1 assert list(repodata['packages'].values())[0]['version'] == "2.0" # pass version file api.update_index(pkg_dir, current_index_versions=os.path.join(pkg_dir, 'versions.yml')) with open(os.path.join(pkg_dir, 'osx-64', 'current_repodata.json')) as f: repodata = json.load(f) assert len(repodata['packages']) == 2 # pass dict that is equivalent to version file api.update_index(pkg_dir, current_index_versions={'dummy-package': ["1.0"]}) with open(os.path.join(pkg_dir, 'osx-64', 'current_repodata.json')) as f: repodata = json.load(f) assert list(repodata['packages'].values())[0]['version'] == "1.0" def test_channeldata_picks_up_all_versions_of_run_exports(): pkg_dir = os.path.join(os.path.dirname(__file__), 'index_data', 'packages') api.update_index(pkg_dir) with open(os.path.join(pkg_dir, 'channeldata.json')) as f: repodata = json.load(f) run_exports = repodata['packages']['run_exports_versions']['run_exports'] assert len(run_exports) == 2 assert "1.0" in run_exports assert "2.0" in run_exports def test_index_invalid_packages(): pkg_dir = os.path.join(os.path.dirname(__file__), 'index_data', 'corrupt') api.update_index(pkg_dir) with open(os.path.join(pkg_dir, 'channeldata.json')) as f: repodata = json.load(f) assert len(repodata['packages']) == 0
45.410555
171
0.602986
6,312
50,769
4.658904
0.082383
0.025912
0.022138
0.029993
0.810657
0.790798
0.778998
0.768116
0.764478
0.751046
0
0.052618
0.255806
50,769
1,117
172
45.451209
0.725716
0.079261
0
0.719457
0
0.031674
0.382519
0.126597
0
0
0
0
0.14819
1
0.020362
false
0.004525
0.020362
0
0.042986
0.004525
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
58b1e0032786ab27017166dac82d3e20461c3550
2,477
py
Python
tests/python/test_simt.py
hikaru-sysu/taichi
73bd8451c306e87b0e159a4853d4b05f77c25458
[ "MIT" ]
null
null
null
tests/python/test_simt.py
hikaru-sysu/taichi
73bd8451c306e87b0e159a4853d4b05f77c25458
[ "MIT" ]
null
null
null
tests/python/test_simt.py
hikaru-sysu/taichi
73bd8451c306e87b0e159a4853d4b05f77c25458
[ "MIT" ]
null
null
null
import random from pytest import approx import taichi as ti from tests import test_utils @test_utils.test(arch=ti.cuda) def test_all_nonzero(): # TODO pass @test_utils.test(arch=ti.cuda) def test_any_nonzero(): # TODO pass @test_utils.test(arch=ti.cuda) def test_unique(): # TODO pass @test_utils.test(arch=ti.cuda) def test_ballot(): a = ti.field(dtype=ti.u32, shape=32) b = ti.field(dtype=ti.u32, shape=32) @ti.kernel def foo(): ti.loop_config(block_dim=32) for i in range(32): a[i] = ti.simt.warp.ballot(b[i]) key = 0 for i in range(32): b[i] = i % 2 key += b[i] * pow(2, i) foo() for i in range(32): assert a[i] == key @test_utils.test(arch=ti.cuda) def test_shfl_i32(): # TODO pass @test_utils.test(arch=ti.cuda) def test_shfl_up_i32(): # TODO pass @test_utils.test(arch=ti.cuda) def test_shfl_down_i32(): a = ti.field(dtype=ti.i32, shape=32) b = ti.field(dtype=ti.i32, shape=32) @ti.kernel def foo(): ti.loop_config(block_dim=32) for i in range(32): a[i] = ti.simt.warp.shfl_down_i32(ti.u32(0xFFFFFFFF), b[i], 1) for i in range(32): b[i] = i * i foo() for i in range(31): assert a[i] == b[i + 1] # TODO: make this test case stronger @test_utils.test(arch=ti.cuda) def test_shfl_up_i32(): a = ti.field(dtype=ti.i32, shape=32) @ti.kernel def foo(): ti.loop_config(block_dim=32) for i in range(32): a[i] = ti.simt.warp.shfl_up_i32(ti.u32(0xFFFFFFFF), a[i], 1) for i in range(32): a[i] = i * i foo() for i in range(1, 32): assert a[i] == (i - 1) * (i - 1) @test_utils.test(arch=ti.cuda) def test_shfl_up_f32(): a = ti.field(dtype=ti.f32, shape=32) @ti.kernel def foo(): ti.loop_config(block_dim=32) for i in range(32): a[i] = ti.simt.warp.shfl_up_f32(ti.u32(0xFFFFFFFF), a[i], 1) for i in range(32): a[i] = i * i * 0.9 foo() for i in range(1, 32): assert a[i] == approx((i - 1) * (i - 1) * 0.9, abs=1e-4) @test_utils.test(arch=ti.cuda) def test_match_any(): # TODO pass @test_utils.test(arch=ti.cuda) def test_match_all(): # TODO pass @test_utils.test(arch=ti.cuda) def test_active_mask(): # TODO pass @test_utils.test(arch=ti.cuda) def test_sync(): # TODO pass
17.321678
74
0.573678
430
2,477
3.176744
0.151163
0.09224
0.133236
0.161786
0.811859
0.798682
0.787701
0.754758
0.698389
0.622987
0
0.055525
0.272911
2,477
142
75
17.443662
0.702943
0.031893
0
0.609195
0
0
0
0
0
0
0.012568
0.007042
0.045977
1
0.195402
false
0.103448
0.045977
0
0.241379
0
0
0
0
null
0
0
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
58d20e7e4737d70644a25abb2183293e2b79d193
15,186
py
Python
blogs/views.py
bunnybunbun37204/Change-Agriculter-life-YSC
d02017b3d98b4a3f17b7ac036d0220df0e5faa67
[ "MIT" ]
null
null
null
blogs/views.py
bunnybunbun37204/Change-Agriculter-life-YSC
d02017b3d98b4a3f17b7ac036d0220df0e5faa67
[ "MIT" ]
null
null
null
blogs/views.py
bunnybunbun37204/Change-Agriculter-life-YSC
d02017b3d98b4a3f17b7ac036d0220df0e5faa67
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from .models import Data # Create your views here. def hello(request): return render(request,'index.html') def preindex(request): return render(request,'preindex.html') def foropen(request): return render(request,'foropen.html') def foropen2(request): return render(request,'foropen2.html') def foropen3(request): return render(request,'foropen3.html') def form(request): return render(request,'form.html') def form1_1(request): return render(request,'form1_1.html') def form2(request): return render(request,'form2.html') def form2_1(request): return render(request,'form2_1.html') def form3(request): return render(request,'form3.html') def form3_1(request): return render(request,'form3_1.html') def form4(request): return render(request,'form4.html') def select(request): return render(request,'select.html') def addBlog(request): nitrogen=int(request.GET['num1']) potasium=int(request.GET['num3']) phosphorus=int(request.GET['num2']) kilogram = int(request.GET['num4']) age = int(request.GET['num5']) if age in range(0,3): kilogram=round(kilogram*70*150/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/46,2) Mop = round(kilogram*potasium/60,2) elif age in range(3,7) : kilogram=round(kilogram*70*500/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/46,2) Mop = round(((kilogram*potasium/60)),2) elif age in range(7,16): kilogram=round(kilogram*70*700/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/46,2) Mop = round(((kilogram*potasium/60)),2) elif age in range(16,100): kilogram=round(kilogram*70) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/46,2) Mop = round(((kilogram*potasium/60)),2) else: kilogram=0 active_Phosphorus = 0 nitrogen_Phos = 0 nitrogen_nothave= 0 Urea = 0 Mop = 0 total = round(Urea+active_Phosphorus+Mop,2) element = round(kilogram-total,2) result = total+element cost_Urea = round(Urea*11.9,2) cost_DAP = round(active_Phosphorus*17.7,2) cost_MOP = round(Mop*10,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP,2) return render(request,'result.html', {'urea':Urea, 'dap': active_Phosphorus, 'mop': Mop, 'total':result, 'element':element, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Total':cost_Total }) def addBlog1_1(request): nitrogen=int(request.GET['num1']) potasium=int(request.GET['num3']) phosphorus=int(request.GET['num2']) kilogram = int(request.GET['num4']) age = int(request.GET['num5']) if age in range(0,3): kilogram=round(kilogram*70*150/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/21,2) Mop = round(kilogram*potasium/60,2) elif age in range(3,7) : kilogram=round(kilogram*70*500/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/21,2) Mop = round(((kilogram*potasium/60)),2) elif age in range(7,16): kilogram=round(kilogram*70*700/1000) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/21,2) Mop = round(((kilogram*potasium/60)),2) elif age in range(16,100): kilogram=round(kilogram*70) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/21,2) Mop = round(((kilogram*potasium/60)),2) else: kilogram=0 active_Phosphorus = 0 nitrogen_Phos = 0 nitrogen_nothave= 0 Urea = 0 Mop = 0 total = round(Urea+active_Phosphorus+Mop,2) element = round(kilogram-total,2) result = round(total+element,2) cost_Urea = round(Urea*7,2) cost_DAP = round(active_Phosphorus*17.7,2) cost_MOP = round(Mop*10,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP,2) return render(request,'result.html', {'urea':Urea, 'dap': active_Phosphorus, 'mop': Mop, 'total':result, 'element':element, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Total':cost_Total }) def addBlog2(request): area=int(request.GET['num1']) age=int(request.GET['num2']) if age in range(0,2): Kilo = round(area*0.3*22,2) Nitrogen = 20 Phosphorus = 11 Potasium = 11 Urea = round((0.34*Kilo),2) DAP = round((0.24 *Kilo),2) MOP = round(0.18 *Kilo,2) MgO = 0 total = round(Kilo,2) elif age in range(2,3): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.11*Kilo,2) DAP = round(0.10*Kilo,2) MOP = round((0.23+0.5)*Kilo,2) MgO = round(0.01*Kilo,2) total = Kilo*1 elif age in range(3,4): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.18*Kilo,2) DAP = round(0.16*Kilo,2) MOP = ((1.17)*Kilo) MgO = round(0.016*Kilo,2) total = round(Kilo*1.6,2) elif age in range(4,5): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.34*Kilo,2) DAP = round(0.29*Kilo,2) MOP = round(((2)*Kilo),2) MgO = round(0.03*Kilo,2) total = Kilo*3 elif age in range(5,6): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.46*Kilo,2) DAP = round(0.39*Kilo,2) MOP = round((2.67)*Kilo,2) MgO = round(0.04*Kilo,2) total = Kilo*4 elif age in range(6,30): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 14 Potasium = 21 Urea = round(0.37*Kilo,2) DAP = round(0.61*Kilo,2) MOP = round((2.20)*Kilo,2) MgO = round(0.04*Kilo,2) total = round(Kilo*3.5,2) result = round(total-(Urea+DAP+MOP+MgO),2) total=round((Urea+DAP+MOP+MgO+result),2) cost_Urea = round(Urea*11.9,2) cost_DAP = round(DAP*17.7,2) cost_MOP = round(MOP*10,2) cost_Mgo = round(MgO*8.9,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP+cost_Mgo,2) return render(request,'result2.html',{ 'Nitrogen':Nitrogen, 'Phosphorus':Phosphorus, 'Potasium':Potasium, 'Urea':Urea, 'DAP':DAP, 'MOP': MOP, 'MgO': MgO, 'total': total, 'element':result, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Mgo':cost_Mgo, 'cost_Total':cost_Total }) def addBlog2_1(request): area=int(request.GET['num1']) age=int(request.GET['num2']) if age in range(0,2): Kilo = round(area*0.3*22,2) Nitrogen = 20 Phosphorus = 11 Potasium = 11 Urea = round((0.75*Kilo),2) DAP = round((0.24 *Kilo),2) MOP = round(0.18 *Kilo,2) MgO = 0 total = round(Kilo,2) elif age in range(2,3): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.25*Kilo,2) DAP = round(0.10*Kilo,2) MOP = round((0.23+0.5)*Kilo,2) MgO = round(0.01*Kilo,2) total = Kilo*1 elif age in range(3,4): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.40*Kilo,2) DAP = round(0.16*Kilo,2) MOP = ((1.17)*Kilo) MgO = round(0.016*Kilo,2) total = round(Kilo*1.6,2) elif age in range(4,5): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(0.75*Kilo,2) DAP = round(0.29*Kilo,2) MOP = round(((2)*Kilo),2) MgO = round(0.03*Kilo,2) total = Kilo*3 elif age in range(5,6): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 9 Potasium = 20 Urea = round(1*Kilo,2) DAP = round(0.39*Kilo,2) MOP = round((2.67)*Kilo,2) MgO = round(0.04*Kilo,2) total = Kilo*4 elif age in range(6,30): Kilo = round(area*22,2) Nitrogen = 14 Phosphorus = 14 Potasium = 21 Urea = round(0.81*Kilo,2) DAP = round(0.61*Kilo,2) MOP = round((2.20)*Kilo,2) MgO = round(0.04*Kilo,2) total = round(Kilo*3.5,2) result = round(total-(Urea+DAP+MOP+MgO),2) total=round(Urea+DAP+MOP+MgO+result,2) cost_Urea = round(Urea*7,2) cost_DAP = round(DAP*17.7,2) cost_MOP = round(MOP*10,2) cost_Mgo = round(MgO*8.9,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP+cost_Mgo,2) return render(request,'result2.html',{ 'Nitrogen':Nitrogen, 'Phosphorus':Phosphorus, 'Potasium':Potasium, 'Urea':Urea, 'DAP':DAP, 'MOP': MOP, 'MgO': MgO, 'total': total, 'element':result, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Mgo':cost_Mgo, 'cost_Total':cost_Total }) def addCustom(request): nitrogen=int(request.GET['num1']) potasium=int(request.GET['num3']) phosphorus=int(request.GET['num2']) kilogram = int(request.GET['num4']) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/46,2) Mop = round(kilogram*potasium/60,2) total = round(Urea+active_Phosphorus+Mop,2) element = round(kilogram-total,2) result = round(total+element,2) cost_Urea = round(Urea*11.9,2) cost_DAP = round(active_Phosphorus*17.7,2) cost_MOP = round(Mop*10,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP,2) return render(request,'result.html', {'urea':Urea, 'dap': active_Phosphorus, 'mop': Mop, 'total':result, 'element':element, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Total':cost_Total }) def addCustom2(request): nitrogen=int(request.GET['num1']) potasium=int(request.GET['num3']) phosphorus=int(request.GET['num2']) kilogram = int(request.GET['num4']) active_Phosphorus = round(kilogram*phosphorus/46,2) nitrogen_Phos = round(18*active_Phosphorus/kilogram,2) nitrogen_nothave= round(nitrogen-nitrogen_Phos,2) Urea = round(kilogram*nitrogen_nothave/21,2) Mop = round(kilogram*potasium/60,2) total = round(Urea+active_Phosphorus+Mop,2) element = round(kilogram-total,2) result = round(total+element,2) cost_Urea = round(Urea*7,2) cost_DAP = round(active_Phosphorus*17.7,2) cost_MOP = round(Mop*10,2) cost_Total = round(cost_DAP+cost_Urea+cost_MOP,2) return render(request,'result.html', {'urea':Urea, 'dap': active_Phosphorus, 'mop': Mop, 'total':result, 'element':element, 'cost_Urea':cost_Urea, 'cost_DAP':cost_DAP, 'cost_MOP':cost_MOP, 'cost_Total':cost_Total }) def viewDev(request): return render(request,'viewDev.html') def optimizeFertilizer_open(request): return render(request,'viewratio.html') def openrubber(request): return render(request,'rubber.html') def openpalm(request): return render(request,'palm.html') def rubberResult(request): area = int(request.GET['area']) age = int(request.GET['age']) if age >= 7 and age<=15: #15-7-18 and 20-8-20 string1 = '15-7-18' string2 = '20-8-20' fstChemical = round(30.3*area,2) fstOrganic = round(4.7*area,2) scndChemical = round(16.5*area,2) scndOrganic = round(18.4*area,2) elif age>15: #21-7-18, 30-3-18 string1 = '21-7-18' string2 = '30-3-18' fstChemical = round(6.7*area,2) fstOrganic = round(42.27*area,2) scndChemical = round(6.7*area,2) scndOrganic = round(42.27*area,2) else: string1 = 'ไม่ทราบค่า' string2 = 'ไม่ทราบค่า' fstChemical = 0 fstOrganic = 0 scndChemical = 0 scndOrganic = 0 fstTotal = round(fstChemical+fstOrganic,2) scndTotal = round(scndChemical+scndOrganic,2) return render(request,'ratioResult.html', { 'fstchem':fstChemical, 'fstorg':fstOrganic, 'fsttotal':fstTotal, 'scndchem':scndChemical, 'scndorg':scndOrganic, 'scndtotal':scndTotal, 'str1':string1, 'str2':string2, }) def palmResult(request): area = int(request.GET['area']) age = int(request.GET['age']) if age >= 5 and age<=6: #14-9-20 string = '14-9-20' fstChemical = round(24.14*area,2) fstOrganic = round(4.21*area,2) elif age>6: #14-14-21 string = '14-14-21' fstChemical = round(97.63*area,2) fstOrganic = round(169.89*area,2) else: string = 'ไม่ทราบค่า' fstChemical = 0 fstOrganic = 0 fstTotal = round(fstChemical+fstOrganic,2) return render(request,'ratioResult1.html', { 'fstchem':fstChemical, 'fstorg':fstOrganic, 'fsttotal':fstTotal, 'str':string, })
33.973154
63
0.588832
2,051
15,186
4.27255
0.073135
0.026247
0.038571
0.050439
0.840009
0.810453
0.800525
0.7882
0.7882
0.779756
0
0.076002
0.273937
15,186
446
64
34.049327
0.718212
0.004807
0
0.778781
0
0
0.065625
0
0
0
0
0
0
1
0.056433
false
0
0.006772
0.038375
0.119639
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4519c36687649b66515590e3ad6aa196b838f0db
26,638
py
Python
sdk/python/pulumi_ucloud/ipsecvpn/vpn_gateway.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
4
2021-08-18T04:55:38.000Z
2021-09-08T07:59:24.000Z
sdk/python/pulumi_ucloud/ipsecvpn/vpn_gateway.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-28T17:59:37.000Z
2022-01-29T03:44:09.000Z
sdk/python/pulumi_ucloud/ipsecvpn/vpn_gateway.py
AaronFriel/pulumi-ucloud
199278786dddf46bdd370f3f805e30b279c63ff2
[ "ECL-2.0", "Apache-2.0" ]
2
2021-06-23T07:10:40.000Z
2021-06-23T09:25:12.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['VPNGatewayArgs', 'VPNGateway'] @pulumi.input_type class VPNGatewayArgs: def __init__(__self__, *, eip_id: pulumi.Input[str], grade: pulumi.Input[str], vpc_id: pulumi.Input[str], charge_type: Optional[pulumi.Input[str]] = None, duration: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, remark: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a VPNGateway resource. :param pulumi.Input[str] eip_id: The ID of eip associate to the VPN Gateway. :param pulumi.Input[str] grade: The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. :param pulumi.Input[str] vpc_id: The ID of VPC linked to the VPN Gateway. :param pulumi.Input[str] charge_type: The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). :param pulumi.Input[int] duration: The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). :param pulumi.Input[str] remark: The remarks of the VPN Gateway. (Default: `""`). :param pulumi.Input[str] tag: A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` """ pulumi.set(__self__, "eip_id", eip_id) pulumi.set(__self__, "grade", grade) pulumi.set(__self__, "vpc_id", vpc_id) if charge_type is not None: pulumi.set(__self__, "charge_type", charge_type) if duration is not None: pulumi.set(__self__, "duration", duration) if name is not None: pulumi.set(__self__, "name", name) if remark is not None: pulumi.set(__self__, "remark", remark) if tag is not None: pulumi.set(__self__, "tag", tag) @property @pulumi.getter(name="eipId") def eip_id(self) -> pulumi.Input[str]: """ The ID of eip associate to the VPN Gateway. """ return pulumi.get(self, "eip_id") @eip_id.setter def eip_id(self, value: pulumi.Input[str]): pulumi.set(self, "eip_id", value) @property @pulumi.getter def grade(self) -> pulumi.Input[str]: """ The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. """ return pulumi.get(self, "grade") @grade.setter def grade(self, value: pulumi.Input[str]): pulumi.set(self, "grade", value) @property @pulumi.getter(name="vpcId") def vpc_id(self) -> pulumi.Input[str]: """ The ID of VPC linked to the VPN Gateway. """ return pulumi.get(self, "vpc_id") @vpc_id.setter def vpc_id(self, value: pulumi.Input[str]): pulumi.set(self, "vpc_id", value) @property @pulumi.getter(name="chargeType") def charge_type(self) -> Optional[pulumi.Input[str]]: """ The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). """ return pulumi.get(self, "charge_type") @charge_type.setter def charge_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "charge_type", value) @property @pulumi.getter def duration(self) -> Optional[pulumi.Input[int]]: """ The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). """ return pulumi.get(self, "duration") @duration.setter def duration(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "duration", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def remark(self) -> Optional[pulumi.Input[str]]: """ The remarks of the VPN Gateway. (Default: `""`). """ return pulumi.get(self, "remark") @remark.setter def remark(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "remark", value) @property @pulumi.getter def tag(self) -> Optional[pulumi.Input[str]]: """ A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` """ return pulumi.get(self, "tag") @tag.setter def tag(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "tag", value) @pulumi.input_type class _VPNGatewayState: def __init__(__self__, *, charge_type: Optional[pulumi.Input[str]] = None, create_time: Optional[pulumi.Input[str]] = None, duration: Optional[pulumi.Input[int]] = None, eip_id: Optional[pulumi.Input[str]] = None, expire_time: Optional[pulumi.Input[str]] = None, grade: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, remark: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, vpc_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering VPNGateway resources. :param pulumi.Input[str] charge_type: The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). :param pulumi.Input[str] create_time: The creation time for VPN Gateway, formatted in RFC3339 time string. :param pulumi.Input[int] duration: The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). :param pulumi.Input[str] eip_id: The ID of eip associate to the VPN Gateway. :param pulumi.Input[str] expire_time: The expiration time for VPN Gateway, formatted in RFC3339 time string. :param pulumi.Input[str] grade: The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. :param pulumi.Input[str] remark: The remarks of the VPN Gateway. (Default: `""`). :param pulumi.Input[str] tag: A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` :param pulumi.Input[str] vpc_id: The ID of VPC linked to the VPN Gateway. """ if charge_type is not None: pulumi.set(__self__, "charge_type", charge_type) if create_time is not None: pulumi.set(__self__, "create_time", create_time) if duration is not None: pulumi.set(__self__, "duration", duration) if eip_id is not None: pulumi.set(__self__, "eip_id", eip_id) if expire_time is not None: pulumi.set(__self__, "expire_time", expire_time) if grade is not None: pulumi.set(__self__, "grade", grade) if name is not None: pulumi.set(__self__, "name", name) if remark is not None: pulumi.set(__self__, "remark", remark) if tag is not None: pulumi.set(__self__, "tag", tag) if vpc_id is not None: pulumi.set(__self__, "vpc_id", vpc_id) @property @pulumi.getter(name="chargeType") def charge_type(self) -> Optional[pulumi.Input[str]]: """ The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). """ return pulumi.get(self, "charge_type") @charge_type.setter def charge_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "charge_type", value) @property @pulumi.getter(name="createTime") def create_time(self) -> Optional[pulumi.Input[str]]: """ The creation time for VPN Gateway, formatted in RFC3339 time string. """ return pulumi.get(self, "create_time") @create_time.setter def create_time(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "create_time", value) @property @pulumi.getter def duration(self) -> Optional[pulumi.Input[int]]: """ The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). """ return pulumi.get(self, "duration") @duration.setter def duration(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "duration", value) @property @pulumi.getter(name="eipId") def eip_id(self) -> Optional[pulumi.Input[str]]: """ The ID of eip associate to the VPN Gateway. """ return pulumi.get(self, "eip_id") @eip_id.setter def eip_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "eip_id", value) @property @pulumi.getter(name="expireTime") def expire_time(self) -> Optional[pulumi.Input[str]]: """ The expiration time for VPN Gateway, formatted in RFC3339 time string. """ return pulumi.get(self, "expire_time") @expire_time.setter def expire_time(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "expire_time", value) @property @pulumi.getter def grade(self) -> Optional[pulumi.Input[str]]: """ The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. """ return pulumi.get(self, "grade") @grade.setter def grade(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "grade", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def remark(self) -> Optional[pulumi.Input[str]]: """ The remarks of the VPN Gateway. (Default: `""`). """ return pulumi.get(self, "remark") @remark.setter def remark(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "remark", value) @property @pulumi.getter def tag(self) -> Optional[pulumi.Input[str]]: """ A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` """ return pulumi.get(self, "tag") @tag.setter def tag(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "tag", value) @property @pulumi.getter(name="vpcId") def vpc_id(self) -> Optional[pulumi.Input[str]]: """ The ID of VPC linked to the VPN Gateway. """ return pulumi.get(self, "vpc_id") @vpc_id.setter def vpc_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vpc_id", value) class VPNGateway(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, charge_type: Optional[pulumi.Input[str]] = None, duration: Optional[pulumi.Input[int]] = None, eip_id: Optional[pulumi.Input[str]] = None, grade: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, remark: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, vpc_id: Optional[pulumi.Input[str]] = None, __props__=None): """ Provides a VPN Gateway resource. ## Example Usage ```python import pulumi import pulumi_ucloud as ucloud foo_vpc = ucloud.vpc.VPC("fooVPC", tag="tf-acc", cidr_blocks=["192.168.0.0/16"]) foo_eip = ucloud.unet.EIP("fooEIP", bandwidth=1, internet_type="bgp", charge_mode="bandwidth", tag="tf-acc") foo_vpn_gateway = ucloud.ipsecvpn.VPNGateway("fooVPNGateway", vpc_id=foo_vpc.id, grade="enhanced", eip_id=foo_eip.id, tag="tf-acc") ``` ## Import VPN Gateway can be imported using the `id`, e.g. ```sh $ pulumi import ucloud:ipsecvpn/vPNGateway:VPNGateway example vpngw-abc123456 ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] charge_type: The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). :param pulumi.Input[int] duration: The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). :param pulumi.Input[str] eip_id: The ID of eip associate to the VPN Gateway. :param pulumi.Input[str] grade: The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. :param pulumi.Input[str] remark: The remarks of the VPN Gateway. (Default: `""`). :param pulumi.Input[str] tag: A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` :param pulumi.Input[str] vpc_id: The ID of VPC linked to the VPN Gateway. """ ... @overload def __init__(__self__, resource_name: str, args: VPNGatewayArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a VPN Gateway resource. ## Example Usage ```python import pulumi import pulumi_ucloud as ucloud foo_vpc = ucloud.vpc.VPC("fooVPC", tag="tf-acc", cidr_blocks=["192.168.0.0/16"]) foo_eip = ucloud.unet.EIP("fooEIP", bandwidth=1, internet_type="bgp", charge_mode="bandwidth", tag="tf-acc") foo_vpn_gateway = ucloud.ipsecvpn.VPNGateway("fooVPNGateway", vpc_id=foo_vpc.id, grade="enhanced", eip_id=foo_eip.id, tag="tf-acc") ``` ## Import VPN Gateway can be imported using the `id`, e.g. ```sh $ pulumi import ucloud:ipsecvpn/vPNGateway:VPNGateway example vpngw-abc123456 ``` :param str resource_name: The name of the resource. :param VPNGatewayArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(VPNGatewayArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, charge_type: Optional[pulumi.Input[str]] = None, duration: Optional[pulumi.Input[int]] = None, eip_id: Optional[pulumi.Input[str]] = None, grade: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, remark: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, vpc_id: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = VPNGatewayArgs.__new__(VPNGatewayArgs) __props__.__dict__["charge_type"] = charge_type __props__.__dict__["duration"] = duration if eip_id is None and not opts.urn: raise TypeError("Missing required property 'eip_id'") __props__.__dict__["eip_id"] = eip_id if grade is None and not opts.urn: raise TypeError("Missing required property 'grade'") __props__.__dict__["grade"] = grade __props__.__dict__["name"] = name __props__.__dict__["remark"] = remark __props__.__dict__["tag"] = tag if vpc_id is None and not opts.urn: raise TypeError("Missing required property 'vpc_id'") __props__.__dict__["vpc_id"] = vpc_id __props__.__dict__["create_time"] = None __props__.__dict__["expire_time"] = None super(VPNGateway, __self__).__init__( 'ucloud:ipsecvpn/vPNGateway:VPNGateway', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, charge_type: Optional[pulumi.Input[str]] = None, create_time: Optional[pulumi.Input[str]] = None, duration: Optional[pulumi.Input[int]] = None, eip_id: Optional[pulumi.Input[str]] = None, expire_time: Optional[pulumi.Input[str]] = None, grade: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, remark: Optional[pulumi.Input[str]] = None, tag: Optional[pulumi.Input[str]] = None, vpc_id: Optional[pulumi.Input[str]] = None) -> 'VPNGateway': """ Get an existing VPNGateway resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] charge_type: The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). :param pulumi.Input[str] create_time: The creation time for VPN Gateway, formatted in RFC3339 time string. :param pulumi.Input[int] duration: The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). :param pulumi.Input[str] eip_id: The ID of eip associate to the VPN Gateway. :param pulumi.Input[str] expire_time: The expiration time for VPN Gateway, formatted in RFC3339 time string. :param pulumi.Input[str] grade: The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. :param pulumi.Input[str] remark: The remarks of the VPN Gateway. (Default: `""`). :param pulumi.Input[str] tag: A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` :param pulumi.Input[str] vpc_id: The ID of VPC linked to the VPN Gateway. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _VPNGatewayState.__new__(_VPNGatewayState) __props__.__dict__["charge_type"] = charge_type __props__.__dict__["create_time"] = create_time __props__.__dict__["duration"] = duration __props__.__dict__["eip_id"] = eip_id __props__.__dict__["expire_time"] = expire_time __props__.__dict__["grade"] = grade __props__.__dict__["name"] = name __props__.__dict__["remark"] = remark __props__.__dict__["tag"] = tag __props__.__dict__["vpc_id"] = vpc_id return VPNGateway(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="chargeType") def charge_type(self) -> pulumi.Output[str]: """ The charge type of VPN Gateway, possible values are: `year`, `month` and `dynamic` as pay by hour (specific permission required). (Default: `month`). """ return pulumi.get(self, "charge_type") @property @pulumi.getter(name="createTime") def create_time(self) -> pulumi.Output[str]: """ The creation time for VPN Gateway, formatted in RFC3339 time string. """ return pulumi.get(self, "create_time") @property @pulumi.getter def duration(self) -> pulumi.Output[Optional[int]]: """ The duration that you will buy the VPN Gateway (Default: `1`). The value is `0` when pay by month and the instance will be valid till the last day of that month. It is not required when `dynamic` (pay by hour). """ return pulumi.get(self, "duration") @property @pulumi.getter(name="eipId") def eip_id(self) -> pulumi.Output[str]: """ The ID of eip associate to the VPN Gateway. """ return pulumi.get(self, "eip_id") @property @pulumi.getter(name="expireTime") def expire_time(self) -> pulumi.Output[str]: """ The expiration time for VPN Gateway, formatted in RFC3339 time string. """ return pulumi.get(self, "expire_time") @property @pulumi.getter def grade(self) -> pulumi.Output[str]: """ The type of the VPN Gateway. Possible values: `standard`, `enhanced`. `standard` recommended application scenario: Applicable to services with bidirectional peak bandwidth of 1M~50M; `enhanced` recommended application scenario: Suitable for services with bidirectional peak bandwidths of 50M~100M. """ return pulumi.get(self, "grade") @property @pulumi.getter def name(self) -> pulumi.Output[str]: return pulumi.get(self, "name") @property @pulumi.getter def remark(self) -> pulumi.Output[str]: """ The remarks of the VPN Gateway. (Default: `""`). """ return pulumi.get(self, "remark") @property @pulumi.getter def tag(self) -> pulumi.Output[Optional[str]]: """ A tag assigned to VPN Gateway, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`). * `` """ return pulumi.get(self, "tag") @property @pulumi.getter(name="vpcId") def vpc_id(self) -> pulumi.Output[str]: """ The ID of VPC linked to the VPN Gateway. """ return pulumi.get(self, "vpc_id")
45.302721
337
0.628501
3,362
26,638
4.820048
0.067519
0.078741
0.087257
0.084172
0.888368
0.868683
0.848504
0.825671
0.817093
0.798149
0
0.007664
0.26038
26,638
587
338
45.379898
0.814841
0.419776
0
0.717791
1
0
0.07152
0.002641
0
0
0
0
0
1
0.162577
false
0.003067
0.015337
0.009202
0.276074
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
451c2c024d3bd862d2f07b87f081feaf91b47575
122
py
Python
src/GridCal/Engine/Simulations/NK/__init__.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/NK/__init__.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/NK/__init__.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
from GridCal.Engine.Simulations.NK.n_minus_k_driver import * from GridCal.Engine.Simulations.NK.n_minus_k_results import *
61
61
0.860656
20
122
4.95
0.55
0.222222
0.343434
0.565657
0.747475
0.747475
0.747475
0.747475
0
0
0
0
0.057377
122
2
61
61
0.86087
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
11
188e4c1516242c822156747166928a6799f44ec0
7,183
py
Python
server/routes.py
VIVelev/WorldCup-Prediction
c26f72d07700e6122ade708b456a2bcf7cea83e3
[ "MIT" ]
6
2018-06-03T18:51:47.000Z
2019-12-14T03:55:37.000Z
server/routes.py
VIVelev/WorldCup-Prediction
c26f72d07700e6122ade708b456a2bcf7cea83e3
[ "MIT" ]
null
null
null
server/routes.py
VIVelev/WorldCup-Prediction
c26f72d07700e6122ade708b456a2bcf7cea83e3
[ "MIT" ]
10
2018-06-04T12:20:00.000Z
2021-05-02T19:16:49.000Z
import pickle import datetime from flask import render_template, request from app import app from constants import country_codes from scraping import Match, get_next_day_matches import json with open("matches.b", "rb") as f: matches = pickle.load(f) results = json.load(open("results.json", "r")) @app.route('/', methods=["GET", "POST"]) def index(): colors = [] final_matches = [] dates = [] if request.method == "GET": for match in matches: if match.date >= datetime.date.today(): if match.date.strftime("%d.%m.%Y") not in dates: dates.append(match.date.strftime("%d.%m.%Y")) if match.prob_home > match.prob_away and match.prob_home > match.prob_draw: colors.append(["green", "red", "red"]) elif match.prob_draw > match.prob_away and match.prob_draw > match.prob_home: colors.append(["red", "green", "red"]) elif match.prob_away > match.prob_home and match.prob_away > match.prob_draw: colors.append(["red", "red", "green"]) else: colors.append(["red", "red", "red"]) final_matches.append(match) return render_template( "index.html", matches=final_matches, enumerate=enumerate, country_codes=country_codes, colors=colors, dates=dates ) else: want_date = request.form["dates"] if want_date != "": want_date = want_date.split(".") get_date = datetime.date(2018, int(want_date[1]), int(want_date[0])) else: if datetime.date.today() > datetime.date(2018, 6, 14): get_date = datetime.date.today() else: get_date = datetime.date(2018, 6, 14) for match in matches: if match.date >= datetime.date.today(): if match.date.strftime("%d.%m.%Y") not in dates: dates.append(match.date.strftime("%d.%m.%Y")) if match.date == get_date: if match.prob_home > match.prob_away and match.prob_home > match.prob_draw: colors.append(["green", "red", "red"]) elif match.prob_draw > match.prob_away and match.prob_draw > match.prob_home: colors.append(["red", "green", "red"]) elif match.prob_away > match.prob_home and match.prob_away > match.prob_draw: colors.append(["red", "red", "green"]) else: colors.append(["red", "red", "red"]) final_matches.append(match) return render_template( "index.html", matches=final_matches, enumerate=enumerate, country_codes=country_codes, colors=colors, dates=dates ) @app.route('/en', methods=["GET", "POST"]) def index_en(): colors = [] final_matches = [] dates = [] if request.method == "GET": for match in matches: if match.date >= datetime.date.today(): if match.date.strftime("%d.%m.%Y") not in dates: dates.append(match.date.strftime("%d.%m.%Y")) if match.prob_home > match.prob_away and match.prob_home > match.prob_draw: colors.append(["green", "red", "red"]) elif match.prob_draw > match.prob_away and match.prob_draw > match.prob_home: colors.append(["red", "green", "red"]) elif match.prob_away > match.prob_home and match.prob_away > match.prob_draw: colors.append(["red", "red", "green"]) else: colors.append(["red", "red", "red"]) final_matches.append(match) return render_template( "index_en.html", matches=final_matches, enumerate=enumerate, country_codes=country_codes, colors=colors, dates=dates ) else: want_date = request.form["dates"] if want_date != "": want_date = want_date.split(".") get_date = datetime.date(2018, int(want_date[1]), int(want_date[0])) else: if datetime.date.today() > datetime.date(2018, 6, 14): get_date = datetime.date.today() else: get_date = datetime.date(2018, 6, 14) for match in matches: if match.date >= datetime.date.today(): if match.date.strftime("%d.%m.%Y") not in dates: dates.append(match.date.strftime("%d.%m.%Y")) if match.date == get_date: if match.prob_home > match.prob_away and match.prob_home > match.prob_draw: colors.append(["green", "red", "red"]) elif match.prob_draw > match.prob_away and match.prob_draw > match.prob_home: colors.append(["red", "green", "red"]) elif match.prob_away > match.prob_home and match.prob_away > match.prob_draw: colors.append(["red", "red", "green"]) else: colors.append(["red", "red", "red"]) final_matches.append(match) return render_template( "index_en.html", matches=final_matches, enumerate=enumerate, country_codes=country_codes, colors=colors, dates=dates ) @app.route('/past') def past(): colors = [] final_matches = [] dates = [] for match in matches: if match.date < datetime.date.today(): if match.date.strftime("%d.%m.%Y") not in dates: dates.append(match.date.strftime("%d.%m.%Y")) if match.prob_home > match.prob_away and match.prob_home > match.prob_draw: colors.append(["green", "red", "red"]) elif match.prob_draw > match.prob_away and match.prob_draw > match.prob_home: colors.append(["red", "green", "red"]) elif match.prob_away > match.prob_home and match.prob_away > match.prob_draw: colors.append(["red", "red", "green"]) else: colors.append(["red", "red", "red"]) final_matches.append(match) return render_template( "past_matches.html", matches=final_matches, enumerate=enumerate, country_codes=country_codes, colors=colors, dates=dates, results=results ) @app.route('/information') def information(): return render_template('information.html') @app.route('/information_en') def information_en(): return render_template('information_en.html') @app.route('/matches') def matches_render(): return render_template('matches.html') @app.route('/matches_en') def matches_en(): return render_template('matches_en.html')
32.949541
98
0.533899
815
7,183
4.548466
0.088344
0.14567
0.070138
0.048557
0.847316
0.835446
0.835446
0.835446
0.835446
0.835446
0
0.008391
0.33635
7,183
217
99
33.101382
0.769247
0
0
0.778443
0
0
0.073228
0
0
0
0
0
0
1
0.041916
false
0
0.041916
0.023952
0.137725
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
189b0d773bfe54a4cd65aadeb1bf5b7308e35da0
7,942
py
Python
home/hairygael/GESTURES/gestureforlondon3.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/hairygael/GESTURES/gestureforlondon3.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/hairygael/GESTURES/gestureforlondon3.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
def gestureforlondon3(): #welcome i01.setHandSpeed("left", 0.60, 0.60, 0.60, 0.60, 0.60, 0.60) i01.setHandSpeed("right", 0.60, 0.80, 0.60, 0.60, 0.60, 0.60) i01.setArmSpeed("left", 0.60, 0.60, 0.60, 0.60) i01.setArmSpeed("right", 0.60, 0.60, 0.60, 0.60) i01.setHeadSpeed(0.90, 0.90) i01.moveHead(0,90,90,50,65) i01.moveArm("left",26,105,30,25) i01.moveArm("right",37,124,30,27) i01.moveHand("left",2,2,2,2,2,90) i01.moveHand("right",2,2,2,2,2,90) sleep(5) #welcome close hand i01.setHandSpeed("left", 0.95, 0.95, 0.95, 0.95, 0.95, 1.0) i01.setHandSpeed("right", 0.95, 0.95, 0.95, 0.95, 0.95, 1.0) i01.setArmSpeed("left", 0.60, 0.60, 0.60, 0.60) i01.setArmSpeed("right", 0.60, 0.60, 0.60, 0.60) i01.setHeadSpeed(0.90, 0.90) i01.moveHead(0,40,25,40,65) i01.moveArm("left",26,105,30,25) i01.moveArm("right",37,124,30,27) i01.moveHand("left",180,180,180,180,180,90) i01.moveHand("right",180,180,180,180,180,90) sleep(3) #put hands up i01.setHandSpeed("left", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0) i01.setHandSpeed("right", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.setHeadSpeed(0.9, 0.9) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(50,120,90,90,65) i01.moveArm("left",88,103,70,23) i01.moveArm("right",73,97,70,27) i01.moveHand("left",2,2,2,2,2,90) i01.moveHand("right",2,2,2,2,2,90) i01.moveTorso(90,90,90) sleep(2) #look hand right i01.setHandSpeed("left", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setHandSpeed("right", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.setHeadSpeed(0.9, 0.8) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(50,60,70,90,65) i01.moveArm("left",88,104,75,28) i01.moveArm("right",80,97,76,21) i01.moveHand("left",180,180,180,180,180,90) i01.moveHand("right",180,180,180,180,180,90) i01.moveTorso(90,90,90) sleep(1) #look stay i01.setHandSpeed("left", 0.95, 0.95, 0.95, 0.95, 0.95, 1.0) i01.setHandSpeed("right", 0.95, 0.95, 0.95, 0.95, 0.95, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.setHeadSpeed(0.9, 0.8) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(40,70,90,90,65) i01.moveArm("left",90,102,70,23) i01.moveArm("right",80,97,68,27) i01.moveHand("left",2,2,2,2,2,90) i01.moveHand("right",2,2,2,2,2,90) i01.moveTorso(90,90,90) sleep(2) #look left side turn both wrist i01.moveHead(50,120,140,90,65) i01.moveArm("left",88,103,70,28) i01.moveArm("right",75,97,76,21) i01.moveHand("left",180,180,180,180,180,10) i01.moveHand("right",180,180,180,180,180,170) i01.moveTorso(90,90,90) sleep(2) #close hands and turn both wrist i01.moveHead(50,50,60,90,65) i01.moveArm("left",88,103,75,28) i01.moveArm("right",80,97,76,21) i01.moveHand("left",180,180,180,180,180,170) i01.moveHand("right",180,180,180,180,180,10) i01.moveTorso(90,90,90) sleep(3) #dab left i01.setHandSpeed("left", 0.9, 0.9, 0.9, 0.9, 0.9, 1.0) i01.setHandSpeed("right", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.setHeadSpeed(0.9, 0.9) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(79,160,120,90,65) i01.moveArm("left",5,84,32,78) i01.moveArm("right",87,82,123,74) i01.moveHand("left",0,0,0,0,0,25) i01.moveHand("right",0,0,0,0,0,113) i01.moveTorso(90,90,90) sleep(6) #regroup right arm i01.setHandSpeed("left", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setHandSpeed("right", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.setHeadSpeed(0.8, 0.8) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(79,100,120,90,65) i01.moveArm("left",18,90,55,71) i01.moveArm("right",65,82,118,15) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",81,66,82,60,105,113) i01.moveTorso(90,90,90) sleep(1) #look right i01.setHandSpeed("left", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setHandSpeed("right", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setArmSpeed("left", 0.9, 0.9, 0.9, 0.9) i01.setArmSpeed("right", 0.9, 0.9, 0.9, 0.9) i01.setHeadSpeed(0.8, 0.8) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(60,50,70,90,65) i01.moveArm("left",18,90,54,69) i01.moveArm("right",65,82,118,13) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",180,180,180,180,180,113) i01.moveTorso(90,90,90) sleep(2) i01.moveHead(79,100) i01.moveArm("left",33,90,136,78) i01.moveArm("right",34,82,160,13) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",180,180,180,180,180,113) i01.moveTorso(90,90,90) sleep(2) #arm right up i01.moveHead(100,100) i01.moveArm("left",33,90,136,78) i01.moveArm("right",34,82,160,20) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",92,33,37,71,66,113) i01.moveTorso(90,90,90) sleep(3) i01.moveHead(110,120) i01.moveArm("left",33,140,136,78) i01.moveArm("right",34,82,170,30) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",92,33,37,71,66,113) i01.moveTorso(90,90,90) sleep(2) i01.moveHead(125,140) i01.moveArm("left",33,90,36,60) i01.moveArm("right",34,80,170,40) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",92,33,37,71,66,113) i01.moveTorso(90,90,90) sleep(2) #arm left up i01.moveHead(120,130,120,30,65) i01.moveArm("left",33,90,36,60) i01.moveArm("right",34,65,160,40) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",92,33,37,71,66,113) i01.moveTorso(90,90,90) sleep(2) i01.moveHead(79,100,90,90,65) i01.moveArm("left",18,84,54,69) i01.moveArm("right",65,78,118,13) i01.moveHand("left",92,33,37,71,66,30) i01.moveHand("right",180,180,180,180,180,113) i01.moveTorso(90,90,90) sleep(1) i01.moveHead(79,100) i01.moveArm("left",18,90,55,71) i01.moveArm("right",75,80,120,45) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",81,66,82,60,105,113) i01.moveTorso(90,90,90) sleep(1) i01.setHandSpeed("left", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setHandSpeed("right", 0.85, 0.85, 0.85, 0.85, 0.85, 1.0) i01.setArmSpeed("left", 1.0, 1.0, 1.0, 1.0) i01.setArmSpeed("right", 1.0, 1.0, 1.0, 0.85) i01.setHeadSpeed(0.9, 0.9) i01.setTorsoSpeed(1.0, 1.0, 1.0) i01.moveHead(79,160) i01.moveArm("left",24,90,32,74) i01.moveArm("right",87,82,123,74) i01.moveHand("left",0,0,0,0,0,25) i01.moveHand("right",0,0,0,0,0,113) i01.moveTorso(90,90,90) sleep(3) #dab right i01.moveHead(60,20) i01.moveArm("left",87,90,123,74) i01.moveArm("right",5,84,32,78) i01.moveHand("left",92,33,37,71,66,25) i01.moveHand("right",81,66,82,60,105,113) i01.moveTorso(90,90,90) sleep(6) #welcome i01.setHandSpeed("left", 0.80, 0.80, 0.80, 0.80, 0.80, 0.80) i01.setHandSpeed("right", 0.80, 0.80, 0.80, 0.80, 0.80, 0.80) i01.setArmSpeed("left", 0.80, 0.80, 0.80, 0.80) i01.setArmSpeed("right", 0.80, 0.80, 0.80, 0.80) i01.setHeadSpeed(0.90, 0.90) i01.moveHead(0,90,90,50,65) i01.moveArm("left",15,105,30,25) i01.moveArm("right",25,124,30,27) i01.moveHand("left",2,2,2,2,2,90) i01.moveHand("right",2,2,2,2,2,90) sleep(5)
38
66
0.588265
1,562
7,942
2.991037
0.065941
0.04024
0.037885
0.050514
0.901113
0.877568
0.831122
0.805437
0.766909
0.748288
0
0.323306
0.187988
7,942
209
67
38
0.401147
0.02896
0
0.692308
0
0
0.072125
0
0
0
0
0
0
1
0.005128
true
0
0
0
0.005128
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
9
18eb6765033ea96088aefab5b4a87b5806bc7799
681,727
py
Python
snapshot_array.py
valentinarodrigues/daily-problem-solver
38d92eaf2a2aee77b337b6a71edbf5f4691a1b17
[ "Unlicense" ]
null
null
null
snapshot_array.py
valentinarodrigues/daily-problem-solver
38d92eaf2a2aee77b337b6a71edbf5f4691a1b17
[ "Unlicense" ]
null
null
null
snapshot_array.py
valentinarodrigues/daily-problem-solver
38d92eaf2a2aee77b337b6a71edbf5f4691a1b17
[ "Unlicense" ]
null
null
null
from collections import defaultdict # class SnapshotArray: # def __init__(self, length: int): # # SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0. # self.snapshot = {} # self.snap_id = -1 # self.snapArray = [0] * length # def set(self, index: int, val: int) -> None: # # void set(index, val) sets the element at the given index to be equal to val. # if(index<=len(self.snapArray)): # self.snapArray[index] = val # def snap(self) -> int: # # int snap() takes a snapshot of the array and returns the snap_id: the total number of times we called snap() minus 1. # self.snap_id+=1 # self.snapshot[self.snap_id] = self.snapArray[:] # return self.snap_id # def get(self, index: int, snap_id: int) -> int: # # int get(index, snap_id) returns the value at the given index, at the time we took the snapshot with the given snap_id # if(snap_id in self.snapshot): # return self.snapshot[snap_id][index] # result = [] # # commands = ["SnapshotArray","set","set","set","snap","get","snap"] # # values = [[1],[0,4],[0,16],[0,13],[],[0,0],[]] # commands = ["SnapshotArray","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get","set","snap","get"] # values = [[50000],[0,49352],[],[0,0],[0,5373],[],[0,0],[0,23341],[],[0,0],[0,12771],[],[0,2],[0,25105],[],[0,1],[0,30872],[],[0,0],[0,7534],[],[0,1],[0,47533],[],[0,3],[0,15805],[],[0,6],[0,42124],[],[0,1],[0,45487],[],[0,8],[0,18544],[],[0,2],[0,24674],[],[0,10],[0,10428],[],[0,2],[0,39840],[],[0,9],[0,36421],[],[0,7],[0,15501],[],[0,16],[0,11959],[],[0,12],[0,15993],[],[0,0],[0,26121],[],[0,14],[0,41139],[],[0,10],[0,517],[],[0,7],[0,28927],[],[0,13],[0,46275],[],[0,23],[0,35660],[],[0,4],[0,37096],[],[0,3],[0,16702],[],[0,1],[0,40607],[],[0,14],[0,35873],[],[0,1],[0,8806],[],[0,6],[0,24591],[],[0,4],[0,5004],[],[0,17],[0,5428],[],[0,31],[0,38856],[],[0,33],[0,38285],[],[0,10],[0,40598],[],[0,7],[0,6156],[],[0,11],[0,35063],[],[0,4],[0,44527],[],[0,2],[0,38753],[],[0,27],[0,25687],[],[0,31],[0,27392],[],[0,29],[0,7487],[],[0,12],[0,27102],[],[0,27],[0,29424],[],[0,32],[0,34705],[],[0,14],[0,47212],[],[0,44],[0,14824],[],[0,22],[0,19351],[],[0,4],[0,27459],[],[0,40],[0,11745],[],[0,27],[0,30047],[],[0,5],[0,20908],[],[0,5],[0,17590],[],[0,32],[0,32816],[],[0,54],[0,34856],[],[0,50],[0,35864],[],[0,48],[0,22652],[],[0,12],[0,24705],[],[0,47],[0,23221],[],[0,2],[0,49018],[],[0,1],[0,14012],[],[0,31],[0,30863],[],[0,26],[0,48247],[],[0,60],[0,14793],[],[0,14],[0,18317],[],[0,23],[0,23241],[],[0,16],[0,8597],[],[0,19],[0,22857],[],[0,10],[0,34393],[],[0,53],[0,13844],[],[0,10],[0,28716],[],[0,19],[0,17013],[],[0,32],[0,22540],[],[0,61],[0,5183],[],[0,25],[0,414],[],[0,74],[0,48194],[],[0,36],[0,2659],[],[0,31],[0,724],[],[0,4],[0,4642],[],[0,22],[0,2508],[],[0,25],[0,42816],[],[0,77],[0,2721],[],[0,59],[0,11976],[],[0,32],[0,46230],[],[0,30],[0,27562],[],[0,59],[0,38930],[],[0,46],[0,2663],[],[0,23],[0,33402],[],[0,31],[0,26320],[],[0,63],[0,22837],[],[0,21],[0,36850],[],[0,38],[0,36982],[],[0,37],[0,13902],[],[0,79],[0,40497],[],[0,43],[0,18587],[],[0,43],[0,29784],[],[0,22],[0,31226],[],[0,42],[0,22828],[],[0,39],[0,12108],[],[0,0],[0,15699],[],[0,96],[0,32359],[],[0,15],[0,32712],[],[0,43],[0,9436],[],[0,46],[0,43157],[],[0,101],[0,23913],[],[0,74],[0,37788],[],[0,69],[0,10402],[],[0,3],[0,41784],[],[0,32],[0,6415],[],[0,72],[0,26428],[],[0,61],[0,25536],[],[0,24],[0,29661],[],[0,2],[0,23954],[],[0,0],[0,27917],[],[0,27],[0,40830],[],[0,104],[0,1820],[],[0,77],[0,45815],[],[0,80],[0,3243],[],[0,76],[0,3259],[],[0,18],[0,32561],[],[0,82],[0,1622],[],[0,70],[0,43891],[],[0,77],[0,32171],[],[0,27],[0,32144],[],[0,18],[0,41740],[],[0,30],[0,40905],[],[0,3],[0,29753],[],[0,42],[0,15094],[],[0,78],[0,12209],[],[0,127],[0,8802],[],[0,71],[0,33918],[],[0,40],[0,45909],[],[0,103],[0,10860],[],[0,58],[0,27992],[],[0,3],[0,38613],[],[0,100],[0,15248],[],[0,108],[0,20851],[],[0,60],[0,43262],[],[0,42],[0,39035],[],[0,102],[0,10077],[],[0,41],[0,7908],[],[0,86],[0,12572],[],[0,131],[0,10155],[],[0,35],[0,37845],[],[0,88],[0,21498],[],[0,0],[0,39778],[],[0,49],[0,26662],[],[0,47],[0,9525],[],[0,133],[0,24860],[],[0,107],[0,41278],[],[0,60],[0,32158],[],[0,13],[0,2480],[],[0,92],[0,49034],[],[0,145],[0,48061],[],[0,90],[0,22481],[],[0,111],[0,30773],[],[0,135],[0,45502],[],[0,105],[0,15393],[],[0,78],[0,36957],[],[0,116],[0,4091],[],[0,7],[0,10543],[],[0,31],[0,21019],[],[0,7],[0,34542],[],[0,49],[0,6575],[],[0,115],[0,39642],[],[0,104],[0,47268],[],[0,128],[0,16426],[],[0,122],[0,17263],[],[0,164],[0,3800],[],[0,92],[0,32596],[],[0,116],[0,12269],[],[0,74],[0,1809],[],[0,1],[0,49912],[],[0,15],[0,21097],[],[0,123],[0,25166],[],[0,71],[0,42408],[],[0,150],[0,9092],[],[0,156],[0,2096],[],[0,18],[0,5080],[],[0,61],[0,16453],[],[0,0],[0,10593],[],[0,98],[0,18201],[],[0,160],[0,12985],[],[0,20],[0,563],[],[0,84],[0,38266],[],[0,49],[0,3867],[],[0,53],[0,6232],[],[0,171],[0,609],[],[0,14],[0,42339],[],[0,32],[0,34579],[],[0,63],[0,23881],[],[0,188],[0,33194],[],[0,48],[0,28535],[],[0,126],[0,43523],[],[0,7],[0,6647],[],[0,188],[0,17555],[],[0,152],[0,15577],[],[0,127],[0,5378],[],[0,143],[0,40666],[],[0,32],[0,7476],[],[0,99],[0,29626],[],[0,149],[0,13198],[],[0,57],[0,29869],[],[0,170],[0,21059],[],[0,36],[0,37825],[],[0,122],[0,40579],[],[0,192],[0,4481],[],[0,165],[0,31192],[],[0,170],[0,1456],[],[0,172],[0,47263],[],[0,49],[0,16100],[],[0,153],[0,779],[],[0,71],[0,907],[],[0,117],[0,20535],[],[0,119],[0,787],[],[0,113],[0,41496],[],[0,195],[0,10748],[],[0,13],[0,40458],[],[0,103],[0,14251],[],[0,11],[0,46829],[],[0,24],[0,28600],[],[0,178],[0,47870],[],[0,8],[0,6166],[],[0,117],[0,48416],[],[0,103],[0,15561],[],[0,8],[0,19019],[],[0,79],[0,19034],[],[0,86],[0,12322],[],[0,107],[0,29786],[],[0,65],[0,37049],[],[0,158],[0,20585],[],[0,39],[0,6065],[],[0,147],[0,2643],[],[0,225],[0,34256],[],[0,146],[0,15193],[],[0,138],[0,11840],[],[0,138],[0,19678],[],[0,214],[0,48203],[],[0,183],[0,40979],[],[0,188],[0,48974],[],[0,26],[0,39500],[],[0,219],[0,25407],[],[0,211],[0,40032],[],[0,6],[0,40186],[],[0,117],[0,30445],[],[0,81],[0,29769],[],[0,145],[0,7389],[],[0,124],[0,9099],[],[0,165],[0,2563],[],[0,89],[0,29617],[],[0,240],[0,4925],[],[0,38],[0,19780],[],[0,79],[0,35546],[],[0,209],[0,6459],[],[0,171],[0,39824],[],[0,233],[0,17152],[],[0,69],[0,37326],[],[0,102],[0,28265],[],[0,180],[0,15207],[],[0,194],[0,46677],[],[0,191],[0,16245],[],[0,123],[0,46871],[],[0,149],[0,5510],[],[0,132],[0,18061],[],[0,240],[0,27570],[],[0,49],[0,1838],[],[0,247],[0,7760],[],[0,175],[0,20467],[],[0,98],[0,35954],[],[0,116],[0,9293],[],[0,77],[0,19503],[],[0,158],[0,40903],[],[0,123],[0,47225],[],[0,92],[0,19086],[],[0,219],[0,18452],[],[0,275],[0,28288],[],[0,179],[0,26735],[],[0,94],[0,34441],[],[0,97],[0,4389],[],[0,38],[0,17605],[],[0,181],[0,13859],[],[0,96],[0,6715],[],[0,197],[0,2034],[],[0,283],[0,13946],[],[0,245],[0,34675],[],[0,175],[0,26012],[],[0,156],[0,41040],[],[0,46],[0,12441],[],[0,27],[0,33840],[],[0,55],[0,37220],[],[0,238],[0,18809],[],[0,216],[0,1478],[],[0,245],[0,45431],[],[0,11],[0,22656],[],[0,156],[0,19791],[],[0,24],[0,32567],[],[0,214],[0,46805],[],[0,45],[0,45878],[],[0,244],[0,3181],[],[0,177],[0,49161],[],[0,198],[0,487],[],[0,238],[0,11345],[],[0,194],[0,13400],[],[0,289],[0,20726],[],[0,51],[0,13965],[],[0,253],[0,12667],[],[0,296],[0,29491],[],[0,220],[0,4895],[],[0,279],[0,44091],[],[0,300],[0,47997],[],[0,238],[0,17197],[],[0,157],[0,48601],[],[0,11],[0,38600],[],[0,188],[0,33096],[],[0,262],[0,11525],[],[0,289],[0,24923],[],[0,4],[0,40341],[],[0,73],[0,41766],[],[0,68],[0,6706],[],[0,179],[0,1220],[],[0,61],[0,39020],[],[0,186],[0,46964],[],[0,282],[0,15792],[],[0,320],[0,14768],[],[0,280],[0,35518],[],[0,2],[0,35053],[],[0,141],[0,3185],[],[0,303],[0,28805],[],[0,289],[0,43997],[],[0,288],[0,42146],[],[0,14],[0,12217],[],[0,91],[0,24335],[],[0,80],[0,39783],[],[0,61],[0,21609],[],[0,221],[0,23514],[],[0,289],[0,28923],[],[0,97],[0,2745],[],[0,229],[0,14243],[],[0,195],[0,29072],[],[0,108],[0,13516],[],[0,41],[0,41469],[],[0,99],[0,49244],[],[0,299],[0,2588],[],[0,83],[0,30817],[],[0,129],[0,38813],[],[0,256],[0,48510],[],[0,125],[0,34716],[],[0,7],[0,3603],[],[0,273],[0,2806],[],[0,131],[0,38747],[],[0,23],[0,41651],[],[0,119],[0,38065],[],[0,349],[0,33859],[],[0,142],[0,44826],[],[0,99],[0,11246],[],[0,167],[0,16849],[],[0,322],[0,18624],[],[0,335],[0,28721],[],[0,21],[0,20818],[],[0,35],[0,31262],[],[0,188],[0,28357],[],[0,217],[0,7817],[],[0,159],[0,25961],[],[0,27],[0,44475],[],[0,125],[0,45377],[],[0,365],[0,26668],[],[0,246],[0,16402],[],[0,175],[0,38345],[],[0,345],[0,32578],[],[0,133],[0,32110],[],[0,194],[0,21955],[],[0,198],[0,34185],[],[0,56],[0,19865],[],[0,188],[0,11356],[],[0,198],[0,25997],[],[0,213],[0,30939],[],[0,118],[0,36973],[],[0,80],[0,24464],[],[0,336],[0,12962],[],[0,110],[0,48367],[],[0,324],[0,2930],[],[0,127],[0,26085],[],[0,92],[0,34157],[],[0,146],[0,33008],[],[0,219],[0,2688],[],[0,352],[0,17546],[],[0,0],[0,45817],[],[0,357],[0,1564],[],[0,370],[0,12226],[],[0,11],[0,10275],[],[0,45],[0,15959],[],[0,232],[0,47046],[],[0,152],[0,1085],[],[0,281],[0,20370],[],[0,124],[0,47533],[],[0,343],[0,10371],[],[0,84],[0,6154],[],[0,323],[0,30533],[],[0,268],[0,38793],[],[0,118],[0,23595],[],[0,26],[0,16133],[],[0,97],[0,18423],[],[0,88],[0,12016],[],[0,10],[0,8858],[],[0,249],[0,7293],[],[0,72],[0,44163],[],[0,65],[0,44433],[],[0,214],[0,17708],[],[0,281],[0,30648],[],[0,404],[0,18170],[],[0,393],[0,28146],[],[0,334],[0,26031],[],[0,86],[0,16886],[],[0,79],[0,47130],[],[0,175],[0,36163],[],[0,3],[0,47191],[],[0,173],[0,3066],[],[0,87],[0,1683],[],[0,186],[0,3052],[],[0,244],[0,17739],[],[0,18],[0,29085],[],[0,314],[0,25326],[],[0,112],[0,23963],[],[0,410],[0,12058],[],[0,394],[0,17765],[],[0,12],[0,33757],[],[0,1],[0,37756],[],[0,87],[0,1024],[],[0,79],[0,15234],[],[0,68],[0,9273],[],[0,258],[0,49481],[],[0,172],[0,46456],[],[0,75],[0,22553],[],[0,333],[0,15855],[],[0,430],[0,36230],[],[0,105],[0,19250],[],[0,420],[0,35395],[],[0,163],[0,41939],[],[0,49],[0,32166],[],[0,133],[0,40412],[],[0,244],[0,32399],[],[0,380],[0,23163],[],[0,147],[0,33629],[],[0,385],[0,13092],[],[0,94],[0,40014],[],[0,218],[0,23365],[],[0,446],[0,25153],[],[0,93],[0,16248],[],[0,223],[0,28969],[],[0,224],[0,37641],[],[0,416],[0,1091],[],[0,101],[0,41625],[],[0,291],[0,20033],[],[0,51],[0,41161],[],[0,149],[0,4823],[],[0,33],[0,511],[],[0,194],[0,27530],[],[0,54],[0,18342],[],[0,368],[0,339],[],[0,6],[0,10328],[],[0,399],[0,30903],[],[0,285],[0,39776],[],[0,442],[0,49269],[],[0,96],[0,40782],[],[0,253],[0,2495],[],[0,82],[0,13803],[],[0,16],[0,885],[],[0,358],[0,42674],[],[0,442],[0,39935],[],[0,233],[0,26054],[],[0,136],[0,2449],[],[0,471],[0,45952],[],[0,359],[0,13516],[],[0,171],[0,36582],[],[0,450],[0,22693],[],[0,404],[0,24421],[],[0,331],[0,45199],[],[0,354],[0,34203],[],[0,366],[0,42573],[],[0,38],[0,29004],[],[0,241],[0,32751],[],[0,84],[0,16184],[],[0,288],[0,38490],[],[0,115],[0,4247],[],[0,193],[0,26224],[],[0,211],[0,14241],[],[0,5],[0,34416],[],[0,347],[0,2331],[],[0,336],[0,11948],[],[0,50],[0,39908],[],[0,366],[0,27233],[],[0,233],[0,19462],[],[0,71],[0,14916],[],[0,42],[0,4211],[],[0,60],[0,9167],[],[0,49],[0,46243],[],[0,279],[0,17255],[],[0,495],[0,25451],[],[0,116],[0,26526],[],[0,399],[0,43904],[],[0,410],[0,17130],[],[0,78],[0,35751],[],[0,370],[0,29804],[],[0,336],[0,31274],[],[0,252],[0,7953],[],[0,494],[0,16037],[],[0,104],[0,33712],[],[0,36],[0,4130],[],[0,169],[0,47691],[],[0,197],[0,11976],[],[0,127],[0,21812],[],[0,29],[0,30771],[],[0,2],[0,4547],[],[0,298],[0,49833],[],[0,218],[0,22621],[],[0,491],[0,33698],[],[0,491],[0,7664],[],[0,226],[0,28291],[],[0,144],[0,5452],[],[0,404],[0,23971],[],[0,329],[0,5099],[],[0,14],[0,45171],[],[0,502],[0,44969],[],[0,419],[0,19587],[],[0,369],[0,34514],[],[0,117],[0,29697],[],[0,209],[0,34017],[],[0,472],[0,6443],[],[0,323],[0,26493],[],[0,99],[0,27933],[],[0,33],[0,38683],[],[0,89],[0,19471],[],[0,443],[0,15235],[],[0,365],[0,6310],[],[0,213],[0,27990],[],[0,438],[0,18785],[],[0,57],[0,41108],[],[0,15],[0,28210],[],[0,299],[0,16937],[],[0,234],[0,30017],[],[0,407],[0,25394],[],[0,109],[0,335],[],[0,16],[0,30698],[],[0,537],[0,21231],[],[0,334],[0,28776],[],[0,110],[0,1333],[],[0,73],[0,5973],[],[0,132],[0,43533],[],[0,290],[0,35131],[],[0,36],[0,47453],[],[0,15],[0,44561],[],[0,11],[0,27006],[],[0,295],[0,476],[],[0,161],[0,43028],[],[0,158],[0,12269],[],[0,288],[0,10430],[],[0,505],[0,11165],[],[0,469],[0,15234],[],[0,345],[0,6042],[],[0,217],[0,32104],[],[0,58],[0,36038],[],[0,116],[0,30960],[],[0,106],[0,44148],[],[0,414],[0,14061],[],[0,445],[0,45098],[],[0,419],[0,30496],[],[0,463],[0,29453],[],[0,566],[0,22346],[],[0,16],[0,41174],[],[0,266],[0,45487],[],[0,88],[0,47170],[],[0,212],[0,37253],[],[0,265],[0,2043],[],[0,515],[0,35841],[],[0,353],[0,26617],[],[0,565],[0,13775],[],[0,180],[0,42219],[],[0,391],[0,38746],[],[0,285],[0,5432],[],[0,125],[0,15309],[],[0,180],[0,9517],[],[0,261],[0,1816],[],[0,203],[0,44396],[],[0,225],[0,49478],[],[0,584],[0,42379],[],[0,14],[0,29964],[],[0,418],[0,7979],[],[0,294],[0,3359],[],[0,315],[0,4477],[],[0,501],[0,4275],[],[0,572],[0,6557],[],[0,314],[0,2965],[],[0,157],[0,42032],[],[0,93],[0,11761],[],[0,550],[0,40893],[],[0,147],[0,6832],[],[0,547],[0,17380],[],[0,197],[0,36842],[],[0,290],[0,39244],[],[0,141],[0,44941],[],[0,306],[0,8512],[],[0,125],[0,591],[],[0,402],[0,41608],[],[0,36],[0,44301],[],[0,469],[0,37218],[],[0,115],[0,36539],[],[0,223],[0,15523],[],[0,542],[0,41678],[],[0,7],[0,45161],[],[0,312],[0,11533],[],[0,244],[0,39338],[],[0,543],[0,154],[],[0,356],[0,43755],[],[0,104],[0,27005],[],[0,102],[0,43101],[],[0,452],[0,3737],[],[0,589],[0,32623],[],[0,497],[0,41218],[],[0,234],[0,7829],[],[0,546],[0,11181],[],[0,556],[0,7669],[],[0,571],[0,18563],[],[0,294],[0,37114],[],[0,33],[0,2030],[],[0,349],[0,3553],[],[0,416],[0,1041],[],[0,68],[0,21627],[],[0,453],[0,29693],[],[0,264],[0,41492],[],[0,445],[0,8370],[],[0,54],[0,3468],[],[0,289],[0,44934],[],[0,538],[0,19788],[],[0,236],[0,2388],[],[0,159],[0,44453],[],[0,148],[0,39821],[],[0,327],[0,28382],[],[0,619],[0,2681],[],[0,14],[0,21603],[],[0,601],[0,49952],[],[0,251],[0,39906],[],[0,209],[0,13699],[],[0,631],[0,14583],[],[0,333],[0,14723],[],[0,522],[0,24990],[],[0,171],[0,5805],[],[0,485],[0,11192],[],[0,21],[0,41382],[],[0,203],[0,19539],[],[0,198],[0,22442],[],[0,153],[0,49036],[],[0,125],[0,40435],[],[0,0],[0,21268],[],[0,318],[0,26035],[],[0,248],[0,18962],[],[0,13],[0,42666],[],[0,637],[0,41375],[],[0,29],[0,45790],[],[0,277],[0,10688],[],[0,645],[0,34877],[],[0,236],[0,28185],[],[0,179],[0,11558],[],[0,115],[0,15310],[],[0,232],[0,1575],[],[0,337],[0,608],[],[0,306],[0,6586],[],[0,84],[0,45299],[],[0,277],[0,49122],[],[0,421],[0,8713],[],[0,86],[0,21006],[],[0,633],[0,38238],[],[0,139],[0,7912],[],[0,80],[0,8258],[],[0,282],[0,15844],[],[0,490],[0,38666],[],[0,325],[0,11167],[],[0,520],[0,16280],[],[0,110],[0,19256],[],[0,556],[0,16523],[],[0,404],[0,10680],[],[0,617],[0,28806],[],[0,36],[0,41378],[],[0,263],[0,46617],[],[0,520],[0,39411],[],[0,223],[0,32399],[],[0,260],[0,25193],[],[0,581],[0,166],[],[0,99],[0,3785],[],[0,298],[0,33192],[],[0,526],[0,26625],[],[0,88],[0,9849],[],[0,489],[0,49042],[],[0,314],[0,24225],[],[0,187],[0,43577],[],[0,232],[0,31408],[],[0,62],[0,43459],[],[0,120],[0,19187],[],[0,127],[0,45381],[],[0,112],[0,13299],[],[0,257],[0,35310],[],[0,544],[0,43507],[],[0,151],[0,3003],[],[0,248],[0,14228],[],[0,501],[0,4909],[],[0,402],[0,10742],[],[0,194],[0,23485],[],[0,636],[0,25808],[],[0,29],[0,12544],[],[0,74],[0,48113],[],[0,244],[0,42513],[],[0,459],[0,45186],[],[0,277],[0,43749],[],[0,160],[0,31153],[],[0,700],[0,1211],[],[0,68],[0,18383],[],[0,161],[0,46289],[],[0,400],[0,10052],[],[0,101],[0,3855],[],[0,466],[0,43044],[],[0,29],[0,38901],[],[0,301],[0,1646],[],[0,132],[0,39725],[],[0,526],[0,20069],[],[0,498],[0,37459],[],[0,234],[0,24966],[],[0,689],[0,42567],[],[0,525],[0,30015],[],[0,342],[0,38437],[],[0,140],[0,14612],[],[0,506],[0,1211],[],[0,43],[0,39267],[],[0,172],[0,35696],[],[0,492],[0,230],[],[0,631],[0,38135],[],[0,3],[0,1085],[],[0,634],[0,44895],[],[0,333],[0,7689],[],[0,127],[0,21704],[],[0,508],[0,27887],[],[0,555],[0,3199],[],[0,566],[0,13665],[],[0,599],[0,41088],[],[0,207],[0,41286],[],[0,5],[0,47867],[],[0,585],[0,25722],[],[0,618],[0,38776],[],[0,295],[0,26756],[],[0,469],[0,6655],[],[0,637],[0,2896],[],[0,40],[0,46354],[],[0,741],[0,31056],[],[0,209],[0,262],[],[0,752],[0,8984],[],[0,481],[0,25861],[],[0,102],[0,47800],[],[0,219],[0,26105],[],[0,565],[0,46916],[],[0,599],[0,23960],[],[0,413],[0,22848],[],[0,363],[0,13223],[],[0,265],[0,12955],[],[0,271],[0,40823],[],[0,237],[0,13881],[],[0,180],[0,48320],[],[0,53],[0,25669],[],[0,93],[0,23884],[],[0,165],[0,13700],[],[0,462],[0,19351],[],[0,66],[0,17390],[],[0,725],[0,23764],[],[0,644],[0,13694],[],[0,770],[0,48576],[],[0,758],[0,48410],[],[0,397],[0,9138],[],[0,765],[0,2928],[],[0,639],[0,38004],[],[0,46],[0,40278],[],[0,769],[0,48736],[],[0,561],[0,23298],[],[0,505],[0,49947],[],[0,745],[0,47177],[],[0,544],[0,34482],[],[0,144],[0,39055],[],[0,221],[0,6167],[],[0,109],[0,15166],[],[0,664],[0,4361],[],[0,309],[0,4399],[],[0,136],[0,24681],[],[0,464],[0,2596],[],[0,282],[0,38816],[],[0,416],[0,18027],[],[0,422],[0,32976],[],[0,728],[0,6403],[],[0,443],[0,31269],[],[0,551],[0,25181],[],[0,204],[0,8445],[],[0,765],[0,35949],[],[0,210],[0,22942],[],[0,381],[0,49336],[],[0,66],[0,45308],[],[0,167],[0,37802],[],[0,565],[0,37668],[],[0,90],[0,814],[],[0,661],[0,35014],[],[0,469],[0,40510],[],[0,759],[0,27490],[],[0,790],[0,47450],[],[0,786],[0,28907],[],[0,41],[0,7437],[],[0,510],[0,8792],[],[0,330],[0,46976],[],[0,696],[0,5593],[],[0,625],[0,45246],[],[0,664],[0,47346],[],[0,770],[0,36551],[],[0,244],[0,19986],[],[0,357],[0,35282],[],[0,69],[0,13072],[],[0,764],[0,46934],[],[0,242],[0,9693],[],[0,441],[0,11176],[],[0,188],[0,17615],[],[0,682],[0,2327],[],[0,48],[0,27977],[],[0,540],[0,37892],[],[0,787],[0,29473],[],[0,565],[0,16899],[],[0,291],[0,979],[],[0,808],[0,25449],[],[0,79],[0,5299],[],[0,117],[0,29426],[],[0,600],[0,7413],[],[0,312],[0,31771],[],[0,196],[0,29958],[],[0,278],[0,32037],[],[0,484],[0,27386],[],[0,101],[0,43106],[],[0,293],[0,8001],[],[0,636],[0,42304],[],[0,183],[0,22575],[],[0,490],[0,17113],[],[0,333],[0,32713],[],[0,788],[0,31273],[],[0,741],[0,1109],[],[0,455],[0,25797],[],[0,736],[0,22311],[],[0,637],[0,36981],[],[0,405],[0,18531],[],[0,115],[0,20219],[],[0,430],[0,43763],[],[0,628],[0,14367],[],[0,55],[0,9281],[],[0,645],[0,8145],[],[0,699],[0,38901],[],[0,152],[0,16527],[],[0,389],[0,25556],[],[0,656],[0,4470],[],[0,101],[0,5292],[],[0,606],[0,20186],[],[0,93],[0,40447],[],[0,104],[0,41202],[],[0,705],[0,10453],[],[0,523],[0,18172],[],[0,278],[0,39637],[],[0,256],[0,13872],[],[0,493],[0,18484],[],[0,495],[0,37086],[],[0,592],[0,46476],[],[0,43],[0,25269],[],[0,827],[0,45418],[],[0,448],[0,9289],[],[0,288],[0,27513],[],[0,642],[0,15868],[],[0,720],[0,41435],[],[0,850],[0,31580],[],[0,474],[0,47905],[],[0,778],[0,7918],[],[0,348],[0,48778],[],[0,83],[0,12824],[],[0,469],[0,34489],[],[0,459],[0,16981],[],[0,790],[0,9631],[],[0,220],[0,2511],[],[0,815],[0,38873],[],[0,228],[0,16779],[],[0,495],[0,12359],[],[0,733],[0,33663],[],[0,164],[0,16352],[],[0,146],[0,12464],[],[0,73],[0,45501],[],[0,386],[0,41493],[],[0,725],[0,6779],[],[0,749],[0,2926],[],[0,837],[0,37800],[],[0,859],[0,34317],[],[0,202],[0,9354],[],[0,716],[0,38536],[],[0,497],[0,6317],[],[0,194],[0,23082],[],[0,190],[0,42025],[],[0,785],[0,16188],[],[0,609],[0,10521],[],[0,603],[0,37649],[],[0,148],[0,12185],[],[0,64],[0,46974],[],[0,875],[0,22431],[],[0,614],[0,35125],[],[0,88],[0,47536],[],[0,216],[0,3286],[],[0,249],[0,46960],[],[0,890],[0,23559],[],[0,308],[0,34836],[],[0,674],[0,12126],[],[0,840],[0,19993],[],[0,157],[0,11175],[],[0,772],[0,45275],[],[0,574],[0,8463],[],[0,185],[0,41465],[],[0,675],[0,47118],[],[0,461],[0,8834],[],[0,135],[0,22085],[],[0,505],[0,49499],[],[0,576],[0,48551],[],[0,873],[0,18266],[],[0,321],[0,25886],[],[0,593],[0,12965],[],[0,385],[0,43187],[],[0,262],[0,49827],[],[0,75],[0,14371],[],[0,773],[0,44730],[],[0,95],[0,44805],[],[0,573],[0,46419],[],[0,867],[0,34156],[],[0,878],[0,1466],[],[0,48],[0,2729],[],[0,830],[0,27581],[],[0,123],[0,10429],[],[0,52],[0,21007],[],[0,192],[0,27535],[],[0,280],[0,38987],[],[0,539],[0,27004],[],[0,509],[0,23436],[],[0,208],[0,2518],[],[0,394],[0,5982],[],[0,10],[0,9527],[],[0,915],[0,8018],[],[0,476],[0,33470],[],[0,204],[0,11155],[],[0,692],[0,15578],[],[0,941],[0,30251],[],[0,34],[0,2363],[],[0,591],[0,21019],[],[0,87],[0,45064],[],[0,922],[0,46187],[],[0,753],[0,12866],[],[0,17],[0,21427],[],[0,52],[0,30166],[],[0,453],[0,44302],[],[0,940],[0,6342],[],[0,412],[0,4542],[],[0,647],[0,27537],[],[0,934],[0,7566],[],[0,829],[0,24167],[],[0,350],[0,38818],[],[0,428],[0,30359],[],[0,930],[0,48325],[],[0,448],[0,9801],[],[0,375],[0,28959],[],[0,225],[0,1975],[],[0,106],[0,13745],[],[0,905],[0,49731],[],[0,955],[0,31604],[],[0,467],[0,40422],[],[0,590],[0,28046],[],[0,292],[0,47683],[],[0,962],[0,49767],[],[0,764],[0,49476],[],[0,530],[0,20007],[],[0,727],[0,1989],[],[0,400],[0,36551],[],[0,516],[0,1497],[],[0,496],[0,43737],[],[0,120],[0,11356],[],[0,356],[0,30008],[],[0,760],[0,29841],[],[0,94],[0,234],[],[0,701],[0,8072],[],[0,387],[0,25837],[],[0,168],[0,34980],[],[0,554],[0,23341],[],[0,77],[0,24014],[],[0,485],[0,43790],[],[0,1],[0,36903],[],[0,251],[0,6434],[],[0,137],[0,8737],[],[0,75],[0,23420],[],[0,287],[0,15563],[],[0,627],[0,36331],[],[0,566],[0,10137],[],[0,98],[0,41041],[],[0,994],[0,11870],[],[0,594],[0,3289],[],[0,85],[0,5238],[],[0,747],[0,36843],[],[0,384],[0,49372],[],[0,162],[0,38518],[],[0,397],[0,37131],[],[0,15],[0,10899],[],[0,556],[0,1603],[],[0,323],[0,10453],[],[0,116],[0,40709],[],[0,199],[0,47707],[],[0,881],[0,5560],[],[0,905],[0,3747],[],[0,179],[0,10106],[],[0,205],[0,44682],[],[0,111],[0,4389],[],[0,306],[0,34721],[],[0,943],[0,33840],[],[0,793],[0,17672],[],[0,659],[0,17454],[],[0,726],[0,19481],[],[0,66],[0,41172],[],[0,393],[0,8735],[],[0,1009],[0,4917],[],[0,330],[0,6085],[],[0,676],[0,9872],[],[0,684],[0,14275],[],[0,305],[0,11111],[],[0,96],[0,30493],[],[0,723],[0,849],[],[0,654],[0,17578],[],[0,930],[0,306],[],[0,436],[0,29693],[],[0,649],[0,49087],[],[0,356],[0,23432],[],[0,454],[0,39399],[],[0,254],[0,3447],[],[0,88],[0,35986],[],[0,937],[0,43773],[],[0,869],[0,16259],[],[0,676],[0,16066],[],[0,252],[0,23230],[],[0,282],[0,27869],[],[0,327],[0,32685],[],[0,631],[0,27598],[],[0,285],[0,39987],[],[0,328],[0,30957],[],[0,916],[0,42394],[],[0,212],[0,254],[],[0,345],[0,36269],[],[0,53],[0,210],[],[0,339],[0,24433],[],[0,677],[0,49161],[],[0,76],[0,28014],[],[0,283],[0,6894],[],[0,215],[0,7949],[],[0,829],[0,46060],[],[0,282],[0,6325],[],[0,434],[0,4537],[],[0,40],[0,42081],[],[0,539],[0,22038],[],[0,430],[0,34556],[],[0,608],[0,25321],[],[0,234],[0,25226],[],[0,751],[0,16695],[],[0,15],[0,48469],[],[0,717],[0,46473],[],[0,176],[0,44230],[],[0,288],[0,37634],[],[0,957],[0,44647],[],[0,876],[0,4089],[],[0,1019],[0,28101],[],[0,293],[0,23926],[],[0,936],[0,37380],[],[0,607],[0,39167],[],[0,997],[0,21436],[],[0,64],[0,39651],[],[0,248],[0,33799],[],[0,930],[0,45033],[],[0,51],[0,37169],[],[0,752],[0,18341],[],[0,654],[0,8453],[],[0,217],[0,44077],[],[0,280],[0,36798],[],[0,745],[0,36152],[],[0,304],[0,27011],[],[0,63],[0,29787],[],[0,124],[0,47556],[],[0,778],[0,9773],[],[0,545],[0,22760],[],[0,72],[0,30168],[],[0,217],[0,17178],[],[0,92],[0,6834],[],[0,718],[0,22875],[],[0,15],[0,34303],[],[0,810],[0,10746],[],[0,827],[0,25114],[],[0,238],[0,5232],[],[0,792],[0,9110],[],[0,772],[0,43438],[],[0,671],[0,43798],[],[0,373],[0,42562],[],[0,674],[0,49456],[],[0,513],[0,31269],[],[0,465],[0,35124],[],[0,215],[0,5450],[],[0,942],[0,1120],[],[0,386],[0,45945],[],[0,633],[0,8247],[],[0,495],[0,44220],[],[0,502],[0,30818],[],[0,455],[0,40707],[],[0,770],[0,13908],[],[0,330],[0,28798],[],[0,367],[0,28682],[],[0,851],[0,48827],[],[0,975],[0,25434],[],[0,387],[0,9500],[],[0,482],[0,17638],[],[0,313],[0,34590],[],[0,924],[0,43761],[],[0,1095],[0,44899],[],[0,230],[0,22466],[],[0,1102],[0,26491],[],[0,658],[0,10320],[],[0,647],[0,15801],[],[0,64],[0,15433],[],[0,1078],[0,43048],[],[0,753],[0,25000],[],[0,865],[0,17967],[],[0,290],[0,23343],[],[0,543],[0,21526],[],[0,355],[0,35506],[],[0,913],[0,46549],[],[0,201],[0,6829],[],[0,295],[0,9187],[],[0,89],[0,13148],[],[0,1095],[0,47875],[],[0,426],[0,11965],[],[0,263],[0,4177],[],[0,1083],[0,2097],[],[0,916],[0,17384],[],[0,391],[0,28971],[],[0,124],[0,35122],[],[0,844],[0,1062],[],[0,536],[0,43599],[],[0,873],[0,36277],[],[0,688],[0,38415],[],[0,489],[0,17565],[],[0,962],[0,6432],[],[0,192],[0,21137],[],[0,768],[0,39951],[],[0,36],[0,9518],[],[0,15],[0,36500],[],[0,1042],[0,5459],[],[0,1091],[0,47918],[],[0,638],[0,38429],[],[0,241],[0,30832],[],[0,726],[0,44756],[],[0,254],[0,4693],[],[0,912],[0,42077],[],[0,839],[0,1784],[],[0,82],[0,9224],[],[0,296],[0,29940],[],[0,639],[0,5430],[],[0,870],[0,47665],[],[0,779],[0,33774],[],[0,879],[0,4999],[],[0,979],[0,44151],[],[0,130],[0,45281],[],[0,543],[0,14418],[],[0,959],[0,33708],[],[0,990],[0,30612],[],[0,1071],[0,25336],[],[0,258],[0,4693],[],[0,575],[0,39031],[],[0,759],[0,17152],[],[0,817],[0,19891],[],[0,614],[0,11392],[],[0,541],[0,18794],[],[0,334],[0,34591],[],[0,794],[0,18628],[],[0,176],[0,19030],[],[0,1037],[0,2693],[],[0,211],[0,33666],[],[0,270],[0,42501],[],[0,173],[0,16663],[],[0,906],[0,27769],[],[0,227],[0,18031],[],[0,1189],[0,12633],[],[0,70],[0,8934],[],[0,918],[0,42003],[],[0,440],[0,17461],[],[0,530],[0,7497],[],[0,677],[0,16975],[],[0,666],[0,12052],[],[0,523],[0,24374],[],[0,429],[0,16469],[],[0,828],[0,25867],[],[0,144],[0,17963],[],[0,846],[0,9732],[],[0,148],[0,10432],[],[0,803],[0,1079],[],[0,306],[0,42867],[],[0,842],[0,47840],[],[0,519],[0,6064],[],[0,905],[0,40375],[],[0,1080],[0,34205],[],[0,122],[0,154],[],[0,567],[0,39131],[],[0,196],[0,6154],[],[0,1130],[0,36992],[],[0,517],[0,22161],[],[0,1099],[0,37214],[],[0,38],[0,28111],[],[0,739],[0,15232],[],[0,852],[0,28859],[],[0,688],[0,34031],[],[0,471],[0,15319],[],[0,26],[0,35999],[],[0,1048],[0,40160],[],[0,319],[0,37088],[],[0,1121],[0,14993],[],[0,794],[0,37438],[],[0,192],[0,14050],[],[0,931],[0,31717],[],[0,224],[0,2360],[],[0,198],[0,9813],[],[0,916],[0,16038],[],[0,1001],[0,12911],[],[0,310],[0,43196],[],[0,19],[0,14772],[],[0,1130],[0,24269],[],[0,834],[0,30264],[],[0,1193],[0,36360],[],[0,789],[0,15067],[],[0,15],[0,30095],[],[0,374],[0,37960],[],[0,1036],[0,37616],[],[0,937],[0,47655],[],[0,807],[0,23319],[],[0,1145],[0,25786],[],[0,349],[0,6882],[],[0,181],[0,5053],[],[0,221],[0,8466],[],[0,731],[0,892],[],[0,1211],[0,13202],[],[0,784],[0,46968],[],[0,642],[0,46608],[],[0,817],[0,33910],[],[0,1233],[0,10154],[],[0,319],[0,28612],[],[0,710],[0,4868],[],[0,250],[0,18345],[],[0,654],[0,5041],[],[0,1255],[0,47220],[],[0,998],[0,8340],[],[0,961],[0,42241],[],[0,968],[0,36265],[],[0,317],[0,30581],[],[0,926],[0,18061],[],[0,466],[0,4182],[],[0,1223],[0,25791],[],[0,40],[0,30094],[],[0,1169],[0,43111],[],[0,595],[0,1972],[],[0,504],[0,45118],[],[0,353],[0,11530],[],[0,497],[0,36214],[],[0,704],[0,32213],[],[0,202],[0,35662],[],[0,897],[0,43327],[],[0,472],[0,49763],[],[0,1229],[0,676],[],[0,1009],[0,34244],[],[0,107],[0,48606],[],[0,82],[0,32790],[],[0,119],[0,5535],[],[0,620],[0,20783],[],[0,750],[0,41467],[],[0,419],[0,28762],[],[0,502],[0,8818],[],[0,833],[0,34173],[],[0,1205],[0,12278],[],[0,1174],[0,5119],[],[0,803],[0,46081],[],[0,646],[0,1317],[],[0,883],[0,49883],[],[0,1002],[0,33578],[],[0,1112],[0,41503],[],[0,19],[0,38378],[],[0,540],[0,36816],[],[0,1053],[0,40186],[],[0,1125],[0,26882],[],[0,677],[0,39858],[],[0,244],[0,20602],[],[0,457],[0,26921],[],[0,498],[0,11339],[],[0,1218],[0,35075],[],[0,555],[0,44755],[],[0,1251],[0,28229],[],[0,384],[0,32511],[],[0,591],[0,48808],[],[0,1172],[0,1320],[],[0,7],[0,8759],[],[0,413],[0,28889],[],[0,272],[0,6082],[],[0,54],[0,9822],[],[0,185],[0,48115],[],[0,741],[0,6486],[],[0,1301],[0,33336],[],[0,757],[0,37400],[],[0,1016],[0,15759],[],[0,1213],[0,7021],[],[0,756],[0,13244],[],[0,1316],[0,13654],[],[0,1203],[0,14700],[],[0,22],[0,35605],[],[0,395],[0,8803],[],[0,707],[0,14444],[],[0,839],[0,16428],[],[0,527],[0,42946],[],[0,617],[0,27031],[],[0,2],[0,36761],[],[0,800],[0,30835],[],[0,907],[0,39975],[],[0,1160],[0,49954],[],[0,880],[0,28100],[],[0,183],[0,10766],[],[0,1307],[0,29506],[],[0,1124],[0,45832],[],[0,650],[0,23585],[],[0,423],[0,33792],[],[0,1256],[0,41398],[],[0,146],[0,32154],[],[0,510],[0,22088],[],[0,135],[0,48947],[],[0,605],[0,19358],[],[0,1034],[0,41553],[],[0,883],[0,20888],[],[0,332],[0,32147],[],[0,466],[0,34002],[],[0,155],[0,44004],[],[0,1184],[0,36628],[],[0,440],[0,15999],[],[0,793],[0,14769],[],[0,930],[0,22238],[],[0,381],[0,746],[],[0,1157],[0,24793],[],[0,13],[0,23661],[],[0,1017],[0,27019],[],[0,519],[0,19571],[],[0,584],[0,32386],[],[0,1328],[0,40404],[],[0,161],[0,46522],[],[0,399],[0,19795],[],[0,1324],[0,29117],[],[0,62],[0,43877],[],[0,1244],[0,9080],[],[0,336],[0,43791],[],[0,1356],[0,14899],[],[0,372],[0,44711],[],[0,1345],[0,36869],[],[0,197],[0,17867],[],[0,1327],[0,38227],[],[0,434],[0,25465],[],[0,592],[0,12166],[],[0,875],[0,1206],[],[0,543],[0,2920],[],[0,1293],[0,41234],[],[0,1332],[0,40652],[],[0,861],[0,22273],[],[0,614],[0,4766],[],[0,206],[0,12944],[],[0,514],[0,48472],[],[0,299],[0,7713],[],[0,522],[0,15532],[],[0,576],[0,19395],[],[0,131],[0,15469],[],[0,374],[0,4672],[],[0,1269],[0,14715],[],[0,484],[0,47967],[],[0,988],[0,1553],[],[0,1116],[0,11739],[],[0,453],[0,44759],[],[0,1214],[0,18531],[],[0,921],[0,49719],[],[0,608],[0,32374],[],[0,1359],[0,45195],[],[0,1149],[0,8496],[],[0,449],[0,28720],[],[0,435],[0,21256],[],[0,330],[0,1584],[],[0,955],[0,48748],[],[0,1082],[0,39684],[],[0,315],[0,43091],[],[0,713],[0,915],[],[0,678],[0,30218],[],[0,280],[0,22238],[],[0,1361],[0,14686],[],[0,954],[0,24275],[],[0,1384],[0,44125],[],[0,224],[0,17518],[],[0,345],[0,43830],[],[0,660],[0,26250],[],[0,1112],[0,45675],[],[0,879],[0,20732],[],[0,867],[0,15857],[],[0,1286],[0,37534],[],[0,1017],[0,13522],[],[0,838],[0,25044],[],[0,343],[0,7472],[],[0,849],[0,42539],[],[0,1405],[0,29014],[],[0,199],[0,39655],[],[0,517],[0,6099],[],[0,823],[0,26731],[],[0,1086],[0,16716],[],[0,231],[0,14683],[],[0,244],[0,44485],[],[0,515],[0,26188],[],[0,1184],[0,13529],[],[0,29],[0,1446],[],[0,588],[0,35035],[],[0,311],[0,27676],[],[0,889],[0,1013],[],[0,467],[0,30702],[],[0,1121],[0,42575],[],[0,1171],[0,10941],[],[0,978],[0,28854],[],[0,635],[0,43118],[],[0,190],[0,26485],[],[0,242],[0,49504],[],[0,1304],[0,10577],[],[0,329],[0,4283],[],[0,1008],[0,35907],[],[0,800],[0,22270],[],[0,374],[0,21121],[],[0,375],[0,14557],[],[0,993],[0,8330],[],[0,1274],[0,16451],[],[0,1365],[0,39356],[],[0,1268],[0,43932],[],[0,653],[0,12244],[],[0,1349],[0,23744],[],[0,1370],[0,40145],[],[0,593],[0,11049],[],[0,1416],[0,16962],[],[0,137],[0,49680],[],[0,421],[0,22772],[],[0,1221],[0,8234],[],[0,1379],[0,36219],[],[0,247],[0,49786],[],[0,963],[0,10383],[],[0,931],[0,1193],[],[0,568],[0,8640],[],[0,1292],[0,18230],[],[0,743],[0,46889],[],[0,1109],[0,9555],[],[0,783],[0,20663],[],[0,908],[0,46550],[],[0,1339],[0,34939],[],[0,19],[0,29094],[],[0,981],[0,39538],[],[0,3],[0,18983],[],[0,516],[0,32036],[],[0,371],[0,6709],[],[0,931],[0,18396],[],[0,380],[0,3328],[],[0,1441],[0,32107],[],[0,371],[0,14950],[],[0,29],[0,39374],[],[0,558],[0,7875],[],[0,1309],[0,10130],[],[0,163],[0,39083],[],[0,1130],[0,1939],[],[0,279],[0,35311],[],[0,154],[0,36679],[],[0,980],[0,16521],[],[0,1276],[0,45868],[],[0,140],[0,41750],[],[0,72],[0,33725],[],[0,827],[0,6269],[],[0,337],[0,3206],[],[0,254],[0,11732],[],[0,248],[0,27521],[],[0,392],[0,27509],[],[0,1332],[0,34353],[],[0,295],[0,6584],[],[0,1078],[0,11621],[],[0,1240],[0,45333],[],[0,921],[0,14162],[],[0,383],[0,29029],[],[0,150],[0,20756],[],[0,1246],[0,28559],[],[0,1007],[0,26605],[],[0,204],[0,30257],[],[0,821],[0,49250],[],[0,767],[0,48261],[],[0,1466],[0,11685],[],[0,815],[0,41791],[],[0,1175],[0,21674],[],[0,1475],[0,6234],[],[0,831],[0,3294],[],[0,712],[0,2118],[],[0,149],[0,19824],[],[0,1390],[0,21707],[],[0,174],[0,45005],[],[0,1426],[0,29445],[],[0,754],[0,28962],[],[0,662],[0,11879],[],[0,957],[0,6297],[],[0,303],[0,12229],[],[0,983],[0,40791],[],[0,1377],[0,23101],[],[0,31],[0,5243],[],[0,1373],[0,907],[],[0,57],[0,17343],[],[0,639],[0,29424],[],[0,321],[0,18160],[],[0,876],[0,32813],[],[0,297],[0,1209],[],[0,251],[0,8766],[],[0,389],[0,24045],[],[0,330],[0,37534],[],[0,1420],[0,41756],[],[0,918],[0,12873],[],[0,11],[0,45791],[],[0,751],[0,29996],[],[0,226],[0,36240],[],[0,615],[0,11595],[],[0,1108],[0,4063],[],[0,532],[0,46021],[],[0,194],[0,20349],[],[0,8],[0,41435],[],[0,84],[0,1051],[],[0,273],[0,13766],[],[0,893],[0,27019],[],[0,455],[0,31468],[],[0,1373],[0,34666],[],[0,36],[0,5049],[],[0,1066],[0,39764],[],[0,642],[0,10741],[],[0,527],[0,42867],[],[0,910],[0,41956],[],[0,433],[0,33707],[],[0,915],[0,4980],[],[0,844],[0,20291],[],[0,651],[0,17459],[],[0,18],[0,4648],[],[0,447],[0,39814],[],[0,205],[0,31458],[],[0,7],[0,35264],[],[0,1024],[0,24272],[],[0,546],[0,18224],[],[0,285],[0,33994],[],[0,1241],[0,16025],[],[0,1319],[0,1665],[],[0,1067],[0,18812],[],[0,1338],[0,20006],[],[0,758],[0,25268],[],[0,275],[0,26215],[],[0,648],[0,25178],[],[0,677],[0,24806],[],[0,1080],[0,348],[],[0,133],[0,10517],[],[0,482],[0,2573],[],[0,292],[0,8985],[],[0,218],[0,15908],[],[0,352],[0,48535],[],[0,1503],[0,48138],[],[0,1105],[0,3668],[],[0,381],[0,16193],[],[0,160],[0,35628],[],[0,988],[0,16219],[],[0,816],[0,13113],[],[0,43],[0,29063],[],[0,897],[0,13976],[],[0,728],[0,22273],[],[0,1430],[0,16560],[],[0,1406],[0,46079],[],[0,190],[0,46300],[],[0,937],[0,24779],[],[0,910],[0,17278],[],[0,49],[0,15480],[],[0,936],[0,3818],[],[0,1316],[0,43633],[],[0,697],[0,12891],[],[0,1139],[0,41563],[],[0,1054],[0,16198],[],[0,1253],[0,6032],[],[0,538],[0,20677],[],[0,69],[0,31311],[],[0,1247],[0,20592],[],[0,998],[0,38366],[],[0,1215],[0,48012],[],[0,404],[0,46848],[],[0,865],[0,38556],[],[0,574],[0,45956],[],[0,617],[0,40289],[],[0,49],[0,46603],[],[0,576],[0,41332],[],[0,634],[0,24248],[],[0,341],[0,667],[],[0,1490],[0,44235],[],[0,408],[0,29269],[],[0,1476],[0,17998],[],[0,963],[0,28779],[],[0,833],[0,30952],[],[0,184],[0,5624],[],[0,477],[0,35931],[],[0,627],[0,62],[],[0,1285],[0,23686],[],[0,623],[0,34534],[],[0,1272],[0,1812],[],[0,359],[0,8332],[],[0,1175],[0,26514],[],[0,287],[0,27932],[],[0,553],[0,705],[],[0,1519],[0,46495],[],[0,1514],[0,34839],[],[0,1301],[0,7986],[],[0,1111],[0,3202],[],[0,544],[0,36648],[],[0,826],[0,47963],[],[0,475],[0,33439],[],[0,630],[0,46162],[],[0,841],[0,16635],[],[0,613],[0,26727],[],[0,1546],[0,19869],[],[0,949],[0,21909],[],[0,926],[0,47113],[],[0,697],[0,37300],[],[0,1122],[0,8860],[],[0,857],[0,1259],[],[0,916],[0,31402],[],[0,953],[0,6106],[],[0,921],[0,49215],[],[0,69],[0,5170],[],[0,666],[0,26607],[],[0,268],[0,9516],[],[0,11],[0,33190],[],[0,134],[0,10310],[],[0,627],[0,42894],[],[0,1439],[0,29416],[],[0,617],[0,12541],[],[0,1123],[0,9991],[],[0,786],[0,38547],[],[0,909],[0,47421],[],[0,1218],[0,29157],[],[0,917],[0,49410],[],[0,877],[0,23087],[],[0,661],[0,41368],[],[0,1026],[0,37631],[],[0,479],[0,30962],[],[0,1311],[0,34758],[],[0,1509],[0,16769],[],[0,1454],[0,20581],[],[0,76],[0,23864],[],[0,176],[0,24620],[],[0,1547],[0,32742],[],[0,971],[0,14859],[],[0,1056],[0,26003],[],[0,941],[0,42757],[],[0,404],[0,20905],[],[0,771],[0,46235],[],[0,564],[0,35243],[],[0,319],[0,38126],[],[0,1327],[0,42353],[],[0,270],[0,23647],[],[0,223],[0,3873],[],[0,1218],[0,17271],[],[0,833],[0,43552],[],[0,30],[0,17046],[],[0,1213],[0,21123],[],[0,1634],[0,15571],[],[0,725],[0,49230],[],[0,351],[0,20405],[],[0,60],[0,11014],[],[0,971],[0,33032],[],[0,995],[0,36035],[],[0,943],[0,44970],[],[0,178],[0,47990],[],[0,1550],[0,44954],[],[0,598],[0,48201],[],[0,328],[0,42258],[],[0,517],[0,25806],[],[0,645],[0,20787],[],[0,1413],[0,15674],[],[0,497],[0,14701],[],[0,388],[0,13574],[],[0,1187],[0,1211],[],[0,554],[0,22918],[],[0,798],[0,3505],[],[0,185],[0,37044],[],[0,87],[0,5276],[],[0,317],[0,9303],[],[0,965],[0,38842],[],[0,452],[0,40361],[],[0,223],[0,30017],[],[0,1074],[0,11571],[],[0,604],[0,41331],[],[0,687],[0,33579],[],[0,226],[0,48827],[],[0,1040],[0,4203],[],[0,732],[0,44621],[],[0,396],[0,14498],[],[0,290],[0,11679],[],[0,594],[0,39706],[],[0,479],[0,20480],[],[0,961],[0,18754],[],[0,1513],[0,28803],[],[0,1583],[0,72],[],[0,968],[0,9481],[],[0,895],[0,9994],[],[0,1324],[0,6549],[],[0,371],[0,25875],[],[0,1042],[0,35430],[],[0,57],[0,35417],[],[0,47],[0,9879],[],[0,265],[0,69],[],[0,657],[0,17362],[],[0,40],[0,3521],[],[0,1104],[0,2116],[],[0,1462],[0,49053],[],[0,290],[0,6986],[],[0,457],[0,36139],[],[0,642],[0,21671],[],[0,402],[0,16071],[],[0,72],[0,35661],[],[0,474],[0,30150],[],[0,576],[0,28638],[],[0,1271],[0,15234],[],[0,220],[0,36465],[],[0,1728],[0,12441],[],[0,85],[0,35188],[],[0,639],[0,45716],[],[0,235],[0,7359],[],[0,889],[0,48969],[],[0,817],[0,20376],[],[0,312],[0,44827],[],[0,1739],[0,6929],[],[0,877],[0,40156],[],[0,1071],[0,11180],[],[0,1418],[0,26467],[],[0,250],[0,38758],[],[0,418],[0,14283],[],[0,1534],[0,28847],[],[0,1201],[0,45046],[],[0,1216],[0,40810],[],[0,831],[0,34859],[],[0,1004],[0,37277],[],[0,245],[0,13661],[],[0,563],[0,39110],[],[0,366],[0,947],[],[0,529],[0,26173],[],[0,1049],[0,43095],[],[0,1483],[0,26723],[],[0,384],[0,17177],[],[0,355],[0,34147],[],[0,417],[0,44029],[],[0,1546],[0,14058],[],[0,742],[0,5687],[],[0,1719],[0,20333],[],[0,641],[0,30539],[],[0,1094],[0,49786],[],[0,1264],[0,34827],[],[0,1363],[0,47292],[],[0,606],[0,8066],[],[0,181],[0,46519],[],[0,786],[0,23077],[],[0,1564],[0,12716],[],[0,763],[0,14830],[],[0,365],[0,40715],[],[0,1464],[0,40302],[],[0,185],[0,32434],[],[0,305],[0,46414],[],[0,668],[0,41785],[],[0,309],[0,24067],[],[0,382],[0,18773],[],[0,396],[0,14073],[],[0,1209],[0,12096],[],[0,897],[0,6763],[],[0,1584],[0,31667],[],[0,1560],[0,37359],[],[0,998],[0,20587],[],[0,688],[0,42850],[],[0,701],[0,25284],[],[0,873],[0,30186],[],[0,776],[0,37984],[],[0,802],[0,42877],[],[0,711],[0,24937],[],[0,158],[0,34666],[],[0,1240],[0,31235],[],[0,621],[0,48623],[],[0,799],[0,27993],[],[0,1081],[0,45727],[],[0,1124],[0,5251],[],[0,642],[0,21657],[],[0,1036],[0,46909],[],[0,1428],[0,25025],[],[0,482],[0,2650],[],[0,1188],[0,25533],[],[0,983],[0,29453],[],[0,1684],[0,21230],[],[0,418],[0,29008],[],[0,54],[0,6470],[],[0,230],[0,37109],[],[0,1502],[0,41537],[],[0,1232],[0,48233],[],[0,624],[0,44594],[],[0,1535],[0,44199],[],[0,1792],[0,44063],[],[0,1275],[0,13280],[],[0,573],[0,27008],[],[0,957],[0,33017],[],[0,371],[0,7097],[],[0,829],[0,18956],[],[0,909],[0,14057],[],[0,660],[0,21061],[],[0,944],[0,48894],[],[0,1007],[0,37216],[],[0,317],[0,2681],[],[0,273],[0,6720],[],[0,771],[0,36941],[],[0,612],[0,13370],[],[0,1016],[0,9799],[],[0,1680],[0,8841],[],[0,738],[0,37805],[],[0,142],[0,15994],[],[0,907],[0,15924],[],[0,1057],[0,15806],[],[0,355],[0,47007],[],[0,40],[0,11438],[],[0,1656],[0,19091],[],[0,903],[0,47313],[],[0,1624],[0,8163],[],[0,1776],[0,37311],[],[0,1836],[0,3246],[],[0,1763],[0,47418],[],[0,1138],[0,1501],[],[0,147],[0,20096],[],[0,966],[0,44906],[],[0,186],[0,47211],[],[0,616],[0,7780],[],[0,973],[0,30645],[],[0,1224],[0,30749],[],[0,1441],[0,37605],[],[0,1325],[0,47902],[],[0,488],[0,20822],[],[0,245],[0,15998],[],[0,412],[0,14604],[],[0,190],[0,29985],[],[0,623],[0,25473],[],[0,430],[0,34202],[],[0,1241],[0,48553],[],[0,804],[0,18703],[],[0,60],[0,23857],[],[0,1222],[0,42983],[],[0,1680],[0,20514],[],[0,1393],[0,12092],[],[0,1818],[0,12279],[],[0,1490],[0,16171],[],[0,481],[0,15068],[],[0,344],[0,20295],[],[0,543],[0,6675],[],[0,764],[0,2501],[],[0,1669],[0,32378],[],[0,244],[0,30882],[],[0,401],[0,17918],[],[0,61],[0,9316],[],[0,2],[0,48568],[],[0,1465],[0,3573],[],[0,1065],[0,40177],[],[0,512],[0,40662],[],[0,1019],[0,19390],[],[0,406],[0,27930],[],[0,1253],[0,14070],[],[0,432],[0,36573],[],[0,578],[0,26311],[],[0,18],[0,11571],[],[0,448],[0,44099],[],[0,317],[0,48290],[],[0,390],[0,5426],[],[0,429],[0,41829],[],[0,776],[0,7756],[],[0,1298],[0,31846],[],[0,371],[0,35868],[],[0,1294],[0,20200],[],[0,517],[0,46844],[],[0,433],[0,47509],[],[0,448],[0,15665],[],[0,818],[0,6872],[],[0,1065],[0,15697],[],[0,96],[0,3117],[],[0,1775],[0,19396],[],[0,1323],[0,8274],[],[0,1101],[0,27977],[],[0,1194],[0,25453],[],[0,928],[0,28651],[],[0,411],[0,6564],[],[0,831],[0,45867],[],[0,1292],[0,41449],[],[0,572],[0,33313],[],[0,1044],[0,27399],[],[0,875],[0,5197],[],[0,1320],[0,44373],[],[0,1194],[0,16567],[],[0,1704],[0,16592],[],[0,1745],[0,36588],[],[0,851],[0,42971],[],[0,637],[0,31936],[],[0,380],[0,12763],[],[0,1052],[0,48129],[],[0,208],[0,31293],[],[0,502],[0,17809],[],[0,960],[0,18773],[],[0,1234],[0,15108],[],[0,1310],[0,21214],[],[0,1299],[0,4025],[],[0,463],[0,35692],[],[0,1792],[0,35996],[],[0,10],[0,28213],[],[0,32],[0,46351],[],[0,506],[0,32970],[],[0,903],[0,18966],[],[0,508],[0,28601],[],[0,794],[0,25965],[],[0,1657],[0,41635],[],[0,891],[0,10829],[],[0,1192],[0,35678],[],[0,158],[0,44584],[],[0,530],[0,40615],[],[0,223],[0,14634],[],[0,842],[0,6490],[],[0,694],[0,4778],[],[0,278],[0,41371],[],[0,1492],[0,37751],[],[0,323],[0,20825],[],[0,1462],[0,49733],[],[0,1364],[0,12513],[],[0,1827],[0,13558],[],[0,503],[0,21401],[],[0,284],[0,957],[],[0,183],[0,40912],[],[0,1418],[0,32884],[],[0,797],[0,1552],[],[0,391],[0,48173],[],[0,1130],[0,179],[],[0,999],[0,11491],[],[0,1889],[0,12885],[],[0,1508],[0,34027],[],[0,1243],[0,49253],[],[0,1192],[0,49616],[],[0,179],[0,49850],[],[0,865],[0,41307],[],[0,850],[0,24945],[],[0,1181],[0,13535],[],[0,783],[0,35308],[],[0,496],[0,13946],[],[0,693],[0,23018],[],[0,448],[0,49850],[],[0,216],[0,29671],[],[0,1741],[0,48834],[],[0,862],[0,10683],[],[0,1070],[0,43305],[],[0,344],[0,28574],[],[0,482],[0,17720],[],[0,1284],[0,47905],[],[0,16],[0,2856],[],[0,1722],[0,32690],[],[0,922],[0,12134],[],[0,155],[0,20944],[],[0,1707],[0,43007],[],[0,709],[0,31532],[],[0,798],[0,3311],[],[0,461],[0,24733],[],[0,134],[0,3785],[],[0,1772],[0,29354],[],[0,714],[0,47304],[],[0,445],[0,4155],[],[0,1671],[0,38629],[],[0,1839],[0,3781],[],[0,1717],[0,46965],[],[0,1740],[0,24373],[],[0,657],[0,40680],[],[0,570],[0,41053],[],[0,620],[0,9423],[],[0,1727],[0,41936],[],[0,1410],[0,45122],[],[0,938],[0,42192],[],[0,1221],[0,1730],[],[0,875],[0,43016],[],[0,1570],[0,42011],[],[0,652],[0,45354],[],[0,507],[0,9556],[],[0,184],[0,2661],[],[0,1620],[0,33782],[],[0,851],[0,28809],[],[0,835],[0,44990],[],[0,1304],[0,11361],[],[0,762],[0,34472],[],[0,1154],[0,35842],[],[0,515],[0,2239],[],[0,432],[0,49725],[],[0,536],[0,44943],[],[0,1317],[0,25958],[],[0,268],[0,28557],[],[0,1206],[0,34473],[],[0,337],[0,24504],[],[0,1696],[0,42459],[],[0,1170],[0,18525],[],[0,1288],[0,45263],[],[0,1419],[0,26543],[],[0,250],[0,16755],[],[0,99],[0,31109],[],[0,1874],[0,13978],[],[0,1049],[0,30667],[],[0,561],[0,1089],[],[0,295],[0,2349],[],[0,250],[0,11929],[],[0,1363],[0,48262],[],[0,1884],[0,36209],[],[0,318],[0,14134],[],[0,1248],[0,15268],[],[0,2012],[0,42771],[],[0,356],[0,48971],[],[0,2025],[0,7009],[],[0,1237],[0,15208],[],[0,999],[0,30878],[],[0,245],[0,20225],[],[0,1462],[0,7442],[],[0,168],[0,11866],[],[0,954],[0,29946],[],[0,508],[0,44164],[],[0,515],[0,28439],[],[0,262],[0,39277],[],[0,519],[0,16532],[],[0,958],[0,1438],[],[0,841],[0,37366],[],[0,757],[0,32931],[],[0,1607],[0,34491],[],[0,1269],[0,32051],[],[0,636],[0,43676],[],[0,327],[0,14102],[],[0,1807],[0,40605],[],[0,1927],[0,22992],[],[0,312],[0,36766],[],[0,192],[0,9803],[],[0,1581],[0,20418],[],[0,729],[0,9869],[],[0,959],[0,40024],[],[0,1851],[0,9004],[],[0,2032],[0,40567],[],[0,1695],[0,30755],[],[0,1557],[0,6981],[],[0,1949],[0,30634],[],[0,1967],[0,10743],[],[0,193],[0,39327],[],[0,1565],[0,5373],[],[0,1630],[0,29010],[],[0,1686],[0,24973],[],[0,1874],[0,38746],[],[0,1658],[0,6078],[],[0,914],[0,4736],[],[0,1076],[0,40959],[],[0,1262],[0,3631],[],[0,1964],[0,4642],[],[0,1519],[0,41456],[],[0,346],[0,15143],[],[0,296],[0,39376],[],[0,487],[0,48238],[],[0,255],[0,6400],[],[0,1440],[0,27720],[],[0,635],[0,36380],[],[0,51],[0,34163],[],[0,1805],[0,11826],[],[0,1071],[0,49587],[],[0,1438],[0,33572],[],[0,1125],[0,39034],[],[0,1014],[0,15024],[],[0,1080],[0,508],[],[0,1025],[0,18430],[],[0,1168],[0,48909],[],[0,1452],[0,21486],[],[0,385],[0,47208],[],[0,99],[0,7191],[],[0,1572],[0,47687],[],[0,1961],[0,10685],[],[0,1910],[0,16162],[],[0,1689],[0,10493],[],[0,1575],[0,24262],[],[0,568],[0,31829],[],[0,230],[0,40907],[],[0,1179],[0,49046],[],[0,1945],[0,39307],[],[0,302],[0,30736],[],[0,360],[0,34213],[],[0,1993],[0,7116],[],[0,266],[0,27799],[],[0,667],[0,33117],[],[0,595],[0,34439],[],[0,346],[0,49434],[],[0,985],[0,48966],[],[0,2051],[0,43490],[],[0,860],[0,26086],[],[0,902],[0,34136],[],[0,644],[0,20781],[],[0,1886],[0,10120],[],[0,891],[0,11491],[],[0,1075],[0,43734],[],[0,1333],[0,35311],[],[0,73],[0,18927],[],[0,503],[0,17652],[],[0,507],[0,73],[],[0,920],[0,33507],[],[0,573],[0,30006],[],[0,866],[0,44567],[],[0,1465],[0,22876],[],[0,1582],[0,25115],[],[0,1178],[0,37447],[],[0,1320],[0,23707],[],[0,1667],[0,35747],[],[0,1487],[0,5981],[],[0,16],[0,5962],[],[0,1561],[0,22760],[],[0,795],[0,7347],[],[0,1127],[0,19375],[],[0,1010],[0,19217],[],[0,1079],[0,10729],[],[0,49],[0,1892],[],[0,1752],[0,24903],[],[0,2009],[0,35228],[],[0,1261],[0,1104],[],[0,502],[0,41064],[],[0,2008],[0,38810],[],[0,1281],[0,35828],[],[0,1946],[0,27446],[],[0,517],[0,40709],[],[0,1485],[0,18195],[],[0,1817],[0,18168],[],[0,729],[0,21846],[],[0,863],[0,40109],[],[0,35],[0,49639],[],[0,907],[0,28979],[],[0,1888],[0,41497],[],[0,214],[0,16557],[],[0,766],[0,7090],[],[0,1224],[0,45699],[],[0,1840],[0,45858],[],[0,1009],[0,14645],[],[0,743],[0,34435],[],[0,1335],[0,15038],[],[0,31],[0,42284],[],[0,1236],[0,49992],[],[0,1074],[0,18331],[],[0,1848],[0,5207],[],[0,1241],[0,8966],[],[0,8],[0,306],[],[0,1065],[0,26921],[],[0,142],[0,2192],[],[0,307],[0,7804],[],[0,918],[0,15613],[],[0,704],[0,25636],[],[0,471],[0,25047],[],[0,2005],[0,39118],[],[0,97],[0,10693],[],[0,1914],[0,17593],[],[0,323],[0,41178],[],[0,1922],[0,47998],[],[0,42],[0,34756],[],[0,1615],[0,43496],[],[0,1420],[0,31729],[],[0,802],[0,9405],[],[0,848],[0,4234],[],[0,934],[0,18760],[],[0,1963],[0,27516],[],[0,1518],[0,7358],[],[0,941],[0,18614],[],[0,1404],[0,17716],[],[0,1800],[0,32278],[],[0,1065],[0,11273],[],[0,375],[0,26160],[],[0,297],[0,16881],[],[0,798],[0,27086],[],[0,559],[0,14722],[],[0,331],[0,26541],[],[0,1844],[0,26226],[],[0,479],[0,37232],[],[0,522],[0,10274],[],[0,1465],[0,47251],[],[0,2133],[0,1869],[],[0,1401],[0,13780],[],[0,1083],[0,11325],[],[0,916],[0,47911],[],[0,1352],[0,39837],[],[0,258],[0,8018],[],[0,1257],[0,48729],[],[0,1680],[0,17330],[],[0,473],[0,32682],[],[0,2052],[0,6371],[],[0,1293],[0,36705],[],[0,2110],[0,44166],[],[0,1222],[0,37641],[],[0,1374],[0,46469],[],[0,1865],[0,45479],[],[0,2124],[0,26958],[],[0,1318],[0,28250],[],[0,859],[0,10828],[],[0,1339],[0,12791],[],[0,1902],[0,45510],[],[0,40],[0,7379],[],[0,296],[0,5815],[],[0,173],[0,44756],[],[0,418],[0,11949],[],[0,698],[0,44334],[],[0,1627],[0,46555],[],[0,1400],[0,37091],[],[0,984],[0,10228],[],[0,89],[0,47131],[],[0,1758],[0,41855],[],[0,1569],[0,2361],[],[0,927],[0,28626],[],[0,2173],[0,37294],[],[0,1670],[0,45566],[],[0,1916],[0,41883],[],[0,1002],[0,7292],[],[0,970],[0,4933],[],[0,982],[0,24256],[],[0,1356],[0,47398],[],[0,2068],[0,43362],[],[0,1240],[0,38894],[],[0,1755],[0,7250],[],[0,1752],[0,19831],[],[0,1188],[0,4625],[],[0,1657],[0,17693],[],[0,769],[0,172],[],[0,1429],[0,29907],[],[0,1673],[0,28509],[],[0,1825],[0,45209],[],[0,1171],[0,40428],[],[0,1686],[0,20854],[],[0,571],[0,15572],[],[0,440],[0,48834],[],[0,2066],[0,5312],[],[0,1991],[0,36188],[],[0,1107],[0,5536],[],[0,312],[0,48071],[],[0,1170],[0,1154],[],[0,591],[0,2689],[],[0,885],[0,42891],[],[0,1668],[0,19154],[],[0,1158],[0,16749],[],[0,699],[0,14135],[],[0,1177],[0,39563],[],[0,1616],[0,7751],[],[0,1409],[0,8237],[],[0,1027],[0,40777],[],[0,1626],[0,6177],[],[0,930],[0,43128],[],[0,1221],[0,17632],[],[0,796],[0,21592],[],[0,297],[0,35917],[],[0,1815],[0,29713],[],[0,299],[0,44603],[],[0,829],[0,48785],[],[0,2201],[0,18010],[],[0,1563],[0,43933],[],[0,1859],[0,9274],[],[0,1296],[0,39659],[],[0,1884],[0,2673],[],[0,861],[0,32301],[],[0,1389],[0,5262],[],[0,231],[0,46012],[],[0,1942],[0,12775],[],[0,1621],[0,23347],[],[0,292],[0,46276],[],[0,1038],[0,5177],[],[0,778],[0,48506],[],[0,50],[0,28091],[],[0,1486],[0,29071],[],[0,410],[0,47105],[],[0,1662],[0,6342],[],[0,987],[0,35727],[],[0,1389],[0,12807],[],[0,520],[0,11676],[],[0,2113],[0,42312],[],[0,870],[0,47166],[],[0,1971],[0,13706],[],[0,1668],[0,15994],[],[0,1193],[0,25286],[],[0,1678],[0,21623],[],[0,529],[0,36048],[],[0,863],[0,6142],[],[0,483],[0,1497],[],[0,70],[0,41629],[],[0,48],[0,3645],[],[0,291],[0,43575],[],[0,2015],[0,7289],[],[0,687],[0,49241],[],[0,1158],[0,19861],[],[0,1327],[0,31349],[],[0,734],[0,31564],[],[0,1844],[0,45460],[],[0,306],[0,47185],[],[0,1989],[0,42603],[],[0,991],[0,43450],[],[0,888],[0,35111],[],[0,142],[0,36192],[],[0,1339],[0,13540],[],[0,1796],[0,23813],[],[0,373],[0,29565],[],[0,515],[0,31956],[],[0,1117],[0,48606],[],[0,1380],[0,10838],[],[0,1377],[0,44156],[],[0,1044],[0,21228],[],[0,398],[0,44408],[],[0,1705],[0,35712],[],[0,1165],[0,33629],[],[0,2158],[0,28777],[],[0,2294],[0,31015],[],[0,1536],[0,7328],[],[0,1887],[0,21243],[],[0,1831],[0,21876],[],[0,1427],[0,14314],[],[0,242],[0,16809],[],[0,1311],[0,18675],[],[0,837],[0,16968],[],[0,907],[0,19291],[],[0,99],[0,12120],[],[0,1969],[0,24555],[],[0,1195],[0,7098],[],[0,22],[0,45007],[],[0,1115],[0,14268],[],[0,2194],[0,22924],[],[0,862],[0,25329],[],[0,270],[0,25743],[],[0,2127],[0,15478],[],[0,800],[0,14803],[],[0,862],[0,47927],[],[0,1641],[0,43396],[],[0,901],[0,33151],[],[0,1788],[0,24290],[],[0,1811],[0,480],[],[0,1408],[0,45202],[],[0,655],[0,24678],[],[0,1800],[0,25357],[],[0,1445],[0,47324],[],[0,1964],[0,13379],[],[0,106],[0,36988],[],[0,203],[0,20929],[],[0,881],[0,46840],[],[0,1000],[0,13882],[],[0,1495],[0,42542],[],[0,31],[0,1152],[],[0,2307],[0,35314],[],[0,427],[0,17859],[],[0,763],[0,46699],[],[0,1706],[0,25171],[],[0,788],[0,11902],[],[0,1467],[0,15237],[],[0,1723],[0,30927],[],[0,2223],[0,346],[],[0,309],[0,45116],[],[0,849],[0,36914],[],[0,926],[0,32684],[],[0,641],[0,2810],[],[0,2044],[0,29656],[],[0,1690],[0,15322],[],[0,1819],[0,3370],[],[0,2341],[0,49806],[],[0,1802],[0,1800],[],[0,47],[0,5036],[],[0,934],[0,31347],[],[0,1179],[0,24665],[],[0,98],[0,36713],[],[0,1556],[0,23384],[],[0,1394],[0,26368],[],[0,1690],[0,37222],[],[0,1636],[0,18993],[],[0,115],[0,28130],[],[0,775],[0,965],[],[0,1027],[0,6427],[],[0,1397],[0,22887],[],[0,1928],[0,49241],[],[0,998],[0,45560],[],[0,2345],[0,25571],[],[0,871],[0,26993],[],[0,2328],[0,10818],[],[0,813],[0,1247],[],[0,2148],[0,24362],[],[0,355],[0,42035],[],[0,1173],[0,49668],[],[0,616],[0,6792],[],[0,2298],[0,28482],[],[0,1886],[0,16156],[],[0,606],[0,49021],[],[0,1332],[0,5463],[],[0,1601],[0,36237],[],[0,1236],[0,19743],[],[0,1192],[0,7098],[],[0,1879],[0,40596],[],[0,1552],[0,2258],[],[0,140],[0,42410],[],[0,2204],[0,37643],[],[0,269],[0,38246],[],[0,561],[0,25947],[],[0,1336],[0,19510],[],[0,827],[0,988],[],[0,1929],[0,20614],[],[0,785],[0,31979],[],[0,2185],[0,18132],[],[0,2110],[0,11261],[],[0,579],[0,48671],[],[0,2164],[0,23258],[],[0,1376],[0,10823],[],[0,1852],[0,27616],[],[0,826],[0,49925],[],[0,44],[0,44686],[],[0,1782],[0,1083],[],[0,307],[0,45727],[],[0,2216],[0,40350],[],[0,2315],[0,19334],[],[0,2071],[0,47980],[],[0,1507],[0,20150],[],[0,2423],[0,38158],[],[0,649],[0,40895],[],[0,2324],[0,38488],[],[0,522],[0,35621],[],[0,1023],[0,9256],[],[0,281],[0,47965],[],[0,1218],[0,17984],[],[0,1656],[0,45176],[],[0,492],[0,47511],[],[0,952],[0,48361],[],[0,1499],[0,47469],[],[0,1152],[0,34823],[],[0,1850],[0,4920],[],[0,2214],[0,38363],[],[0,393],[0,32773],[],[0,1883],[0,3237],[],[0,147],[0,23213],[],[0,940],[0,12712],[],[0,1702],[0,23042],[],[0,636],[0,6088],[],[0,998],[0,15625],[],[0,345],[0,18511],[],[0,1417],[0,48692],[],[0,1660],[0,5675],[],[0,668],[0,15721],[],[0,1536],[0,48344],[],[0,1648],[0,7677],[],[0,1720],[0,21280],[],[0,1814],[0,2373],[],[0,884],[0,48219],[],[0,1531],[0,15659],[],[0,622],[0,21453],[],[0,1983],[0,37656],[],[0,656],[0,29015],[],[0,1757],[0,4206],[],[0,1626],[0,3108],[],[0,2451],[0,33614],[],[0,2004],[0,29235],[],[0,2068],[0,39799],[],[0,1362],[0,40502],[],[0,1676],[0,11818],[],[0,349],[0,33995],[],[0,2167],[0,7144],[],[0,2354],[0,42695],[],[0,2225],[0,24036],[],[0,537],[0,6509],[],[0,900],[0,40360],[],[0,1425],[0,10158],[],[0,2094],[0,14048],[],[0,2104],[0,8119],[],[0,730],[0,7933],[],[0,609],[0,24642],[],[0,930],[0,31594],[],[0,433],[0,1459],[],[0,203],[0,36766],[],[0,2334],[0,7867],[],[0,1597],[0,7325],[],[0,2266],[0,19386],[],[0,204],[0,48554],[],[0,1304],[0,26724],[],[0,925],[0,35557],[],[0,1933],[0,48206],[],[0,1638],[0,9890],[],[0,857],[0,8009],[],[0,2010],[0,32111],[],[0,1550],[0,40604],[],[0,1400],[0,3442],[],[0,1084],[0,27525],[],[0,582],[0,20014],[],[0,586],[0,38990],[],[0,687],[0,24242],[],[0,458],[0,27991],[],[0,1851],[0,17812],[],[0,2001],[0,18694],[],[0,717],[0,10507],[],[0,1138],[0,29954],[],[0,95],[0,4700],[],[0,1707],[0,6037],[],[0,833],[0,35407],[],[0,794],[0,15933],[],[0,1927],[0,26635],[],[0,1479],[0,46517],[],[0,2314],[0,18188],[],[0,1873],[0,37845],[],[0,448],[0,350],[],[0,1661],[0,45288],[],[0,2005],[0,40378],[],[0,2089],[0,30640],[],[0,2142],[0,41596],[],[0,1214],[0,6555],[],[0,2467],[0,31850],[],[0,355],[0,48011],[],[0,1318],[0,41316],[],[0,1468],[0,35290],[],[0,1916],[0,49798],[],[0,1007],[0,25196],[],[0,117],[0,45659],[],[0,1661],[0,29571],[],[0,2219],[0,3421],[],[0,538],[0,49368],[],[0,2344],[0,14191],[],[0,2108],[0,10715],[],[0,974],[0,36763],[],[0,1560],[0,33227],[],[0,436],[0,10754],[],[0,782],[0,21982],[],[0,675],[0,16846],[],[0,2314],[0,31911],[],[0,2523],[0,38165],[],[0,2464],[0,37184],[],[0,1571],[0,10306],[],[0,862],[0,43534],[],[0,44],[0,48682],[],[0,2068],[0,11909],[],[0,2151],[0,4712],[],[0,1043],[0,40082],[],[0,2172],[0,3126],[],[0,1083],[0,40148],[],[0,1043],[0,18678],[],[0,2415],[0,7138],[],[0,608],[0,31134],[],[0,1339],[0,17499],[],[0,496],[0,29209],[],[0,1967],[0,2247],[],[0,454],[0,23865],[],[0,1646],[0,15392],[],[0,1975],[0,7651],[],[0,407],[0,17471],[],[0,1235],[0,46213],[],[0,1569],[0,38843],[],[0,1900],[0,29704],[],[0,1256],[0,23112],[],[0,332],[0,33936],[],[0,1695],[0,42562],[],[0,1675],[0,2439],[],[0,402],[0,18708],[],[0,888],[0,7203],[],[0,2218],[0,37854],[],[0,2395],[0,44537],[],[0,2387],[0,17069],[],[0,2120],[0,23741],[],[0,2286],[0,40348],[],[0,317],[0,21961],[],[0,1413],[0,25677],[],[0,1869],[0,27297],[],[0,1581],[0,38110],[],[0,999],[0,15261],[],[0,42],[0,37554],[],[0,1398],[0,39151],[],[0,1093],[0,23881],[],[0,1788],[0,44336],[],[0,943],[0,39255],[],[0,1684],[0,6054],[],[0,1839],[0,41055],[],[0,1713],[0,8212],[],[0,2206],[0,27362],[],[0,2018],[0,29203],[],[0,2510],[0,9525],[],[0,2434],[0,40149],[],[0,1495],[0,48303],[],[0,66],[0,1577],[],[0,167],[0,2200],[],[0,873],[0,16707],[],[0,129],[0,32667],[],[0,747],[0,45274],[],[0,632],[0,30152],[],[0,1344],[0,46762],[],[0,1242],[0,47002],[],[0,2241],[0,12592],[],[0,217],[0,33226],[],[0,575],[0,6531],[],[0,1862],[0,4639],[],[0,192],[0,18050],[],[0,2288],[0,25099],[],[0,472],[0,20081],[],[0,1211],[0,19889],[],[0,593],[0,48263],[],[0,766],[0,47868],[],[0,2513],[0,35623],[],[0,2146],[0,49308],[],[0,1437],[0,49321],[],[0,1039],[0,17177],[],[0,807],[0,25843],[],[0,95],[0,39020],[],[0,1334],[0,8583],[],[0,342],[0,37537],[],[0,910],[0,31842],[],[0,2054],[0,21410],[],[0,2351],[0,17563],[],[0,1445],[0,36717],[],[0,136],[0,33267],[],[0,2452],[0,2917],[],[0,11],[0,2797],[],[0,277],[0,6349],[],[0,2261],[0,40344],[],[0,529],[0,20930],[],[0,1838],[0,1532],[],[0,1212],[0,31053],[],[0,643],[0,34894],[],[0,2250],[0,13424],[],[0,884],[0,25354],[],[0,2157],[0,14553],[],[0,2466],[0,28991],[],[0,2615],[0,22591],[],[0,1383],[0,34556],[],[0,1938],[0,26756],[],[0,1487],[0,49090],[],[0,1482],[0,45709],[],[0,848],[0,37932],[],[0,1566],[0,20541],[],[0,62],[0,44582],[],[0,1294],[0,43442],[],[0,2158],[0,14452],[],[0,1593],[0,41911],[],[0,1782],[0,41616],[],[0,1197],[0,8532],[],[0,222],[0,43520],[],[0,406],[0,32050],[],[0,876],[0,29782],[],[0,1197],[0,13182],[],[0,553],[0,5155],[],[0,1422],[0,14721],[],[0,2056],[0,40463],[],[0,999],[0,37964],[],[0,1987],[0,44572],[],[0,1889],[0,44189],[],[0,496],[0,49304],[],[0,763],[0,39014],[],[0,2106],[0,24490],[],[0,2422],[0,2024],[],[0,814],[0,10868],[],[0,95],[0,27065],[],[0,526],[0,13752],[],[0,1519],[0,39540],[],[0,297],[0,5906],[],[0,2337],[0,1546],[],[0,1380],[0,30885],[],[0,195],[0,20293],[],[0,2365],[0,37206],[],[0,1979],[0,30501],[],[0,1872],[0,26381],[],[0,557],[0,47094],[],[0,2035],[0,36770],[],[0,170],[0,11185],[],[0,1646],[0,34608],[],[0,1195],[0,28461],[],[0,289],[0,45024],[],[0,973],[0,26185],[],[0,157],[0,19533],[],[0,1534],[0,8681],[],[0,2117],[0,38703],[],[0,2589],[0,28938],[],[0,503],[0,19435],[],[0,2054],[0,20330],[],[0,1185],[0,32115],[],[0,1160],[0,19849],[],[0,1588],[0,26767],[],[0,585],[0,48485],[],[0,266],[0,46557],[],[0,2370],[0,20558],[],[0,1727],[0,1599],[],[0,1550],[0,9881],[],[0,1975],[0,26003],[],[0,1240],[0,19604],[],[0,2343],[0,39787],[],[0,2010],[0,33877],[],[0,1395],[0,27541],[],[0,754],[0,9177],[],[0,1340],[0,39325],[],[0,1758],[0,10585],[],[0,1559],[0,216],[],[0,2140],[0,10717],[],[0,1306],[0,26489],[],[0,2124],[0,2306],[],[0,387],[0,33193],[],[0,561],[0,44019],[],[0,2126],[0,46314],[],[0,2403],[0,24652],[],[0,2551],[0,16440],[],[0,2154],[0,36175],[],[0,787],[0,48781],[],[0,382],[0,35052],[],[0,686],[0,8129],[],[0,1854],[0,41195],[],[0,1564],[0,22268],[],[0,2178],[0,49382],[],[0,2158],[0,28882],[],[0,1569],[0,7673],[],[0,1026],[0,15341],[],[0,2479],[0,28027],[],[0,723],[0,39293],[],[0,1807],[0,14239],[],[0,406],[0,29568],[],[0,248],[0,18624],[],[0,876],[0,14652],[],[0,1951],[0,10104],[],[0,1239],[0,1425],[],[0,79],[0,39857],[],[0,166],[0,23038],[],[0,2663],[0,48272],[],[0,2724],[0,8242],[],[0,1643],[0,34205],[],[0,1508],[0,3872],[],[0,1625],[0,23589],[],[0,2706],[0,34044],[],[0,2635],[0,34389],[],[0,1418],[0,43813],[],[0,2059],[0,49015],[],[0,1387],[0,34435],[],[0,2453],[0,41461],[],[0,948],[0,43184],[],[0,286],[0,377],[],[0,22],[0,45575],[],[0,2553],[0,31862],[],[0,2044],[0,26309],[],[0,1355],[0,35735],[],[0,1020],[0,1174],[],[0,2182],[0,35866],[],[0,1889],[0,14388],[],[0,2686],[0,44281],[],[0,2011],[0,942],[],[0,2487],[0,25265],[],[0,1883],[0,44833],[],[0,1470],[0,3353],[],[0,693],[0,18862],[],[0,1975],[0,7751],[],[0,513],[0,28441],[],[0,2244],[0,26340],[],[0,485],[0,39726],[],[0,1011],[0,31767],[],[0,1412],[0,16079],[],[0,784],[0,35009],[],[0,1104],[0,31219],[],[0,703],[0,45573],[],[0,2686],[0,37701],[],[0,1450],[0,14889],[],[0,726],[0,48316],[],[0,2571],[0,34661],[],[0,2380],[0,17890],[],[0,1610],[0,23828],[],[0,2046],[0,48221],[],[0,1415],[0,30053],[],[0,2210],[0,26554],[],[0,1068],[0,38605],[],[0,2065],[0,6866],[],[0,1158],[0,37118],[],[0,2014],[0,49790],[],[0,128],[0,36507],[],[0,524],[0,2607],[],[0,801],[0,37042],[],[0,2513],[0,22757],[],[0,44],[0,3690],[],[0,2615],[0,42428],[],[0,1461],[0,9949],[],[0,2524],[0,13053],[],[0,1600],[0,36301],[],[0,2219],[0,586],[],[0,1560],[0,14160],[],[0,1630],[0,24396],[],[0,117],[0,49846],[],[0,2155],[0,34037],[],[0,2573],[0,29621],[],[0,489],[0,48502],[],[0,146],[0,2773],[],[0,1789],[0,16589],[],[0,1536],[0,16575],[],[0,1095],[0,35296],[],[0,1734],[0,46881],[],[0,940],[0,20929],[],[0,2668],[0,45314],[],[0,313],[0,39649],[],[0,2206],[0,12855],[],[0,1985],[0,49863],[],[0,588],[0,38428],[],[0,2695],[0,10302],[],[0,1440],[0,49201],[],[0,1403],[0,31097],[],[0,1918],[0,21178],[],[0,2244],[0,10040],[],[0,321],[0,36570],[],[0,1522],[0,19461],[],[0,1122],[0,20858],[],[0,1007],[0,48008],[],[0,1483],[0,35823],[],[0,821],[0,7317],[],[0,1109],[0,36488],[],[0,2002],[0,30576],[],[0,645],[0,36498],[],[0,151],[0,13148],[],[0,827],[0,3942],[],[0,1801],[0,29627],[],[0,896],[0,43065],[],[0,2607],[0,11958],[],[0,1539],[0,45235],[],[0,614],[0,4941],[],[0,1880],[0,40425],[],[0,290],[0,34275],[],[0,2048],[0,11504],[],[0,831],[0,33385],[],[0,921],[0,1549],[],[0,342],[0,5213],[],[0,2215],[0,27413],[],[0,554],[0,14640],[],[0,1650],[0,8380],[],[0,1412],[0,33770],[],[0,1727],[0,29402],[],[0,629],[0,40719],[],[0,764],[0,42407],[],[0,605],[0,37079],[],[0,645],[0,44767],[],[0,2511],[0,38976],[],[0,1888],[0,35989],[],[0,271],[0,15441],[],[0,2110],[0,25130],[],[0,1703],[0,8863],[],[0,145],[0,36529],[],[0,1727],[0,591],[],[0,328],[0,25358],[],[0,1900],[0,40638],[],[0,519],[0,48669],[],[0,2601],[0,468],[],[0,1127],[0,42927],[],[0,86],[0,39105],[],[0,1710],[0,41340],[],[0,2482],[0,32337],[],[0,2367],[0,29669],[],[0,161],[0,25881],[],[0,1959],[0,42169],[],[0,525],[0,33163],[],[0,106],[0,43086],[],[0,792],[0,28398],[],[0,2244],[0,38647],[],[0,371],[0,37613],[],[0,460],[0,45965],[],[0,1535],[0,20522],[],[0,1102],[0,13938],[],[0,292],[0,7610],[],[0,2363],[0,27269],[],[0,1468],[0,8005],[],[0,2471],[0,46817],[],[0,1859],[0,9857],[],[0,1882],[0,49369],[],[0,1798],[0,30022],[],[0,1477],[0,17602],[],[0,2815],[0,47251],[],[0,73],[0,22631],[],[0,607],[0,35364],[],[0,399],[0,27485],[],[0,1994],[0,29186],[],[0,869],[0,26105],[],[0,1927],[0,40198],[],[0,976],[0,28113],[],[0,1050],[0,5226],[],[0,1620],[0,10693],[],[0,910],[0,24829],[],[0,2630],[0,47686],[],[0,2750],[0,13792],[],[0,1324],[0,4630],[],[0,478],[0,49608],[],[0,1429],[0,18779],[],[0,1705],[0,37589],[],[0,2665],[0,36372],[],[0,495],[0,21908],[],[0,2193],[0,4055],[],[0,160],[0,40361],[],[0,1053],[0,43234],[],[0,158],[0,46929],[],[0,1760],[0,11978],[],[0,2838],[0,16482],[],[0,1275],[0,19379],[],[0,1986],[0,36496],[],[0,2027],[0,15932],[],[0,207],[0,2557],[],[0,2570],[0,270],[],[0,1088],[0,39403],[],[0,712],[0,2013],[],[0,646],[0,1845],[],[0,807],[0,13734],[],[0,1437],[0,13301],[],[0,682],[0,48286],[],[0,1884],[0,11406],[],[0,1472],[0,33251],[],[0,2493],[0,447],[],[0,1821],[0,10186],[],[0,710],[0,35058],[],[0,368],[0,46327],[],[0,2089],[0,13978],[],[0,619],[0,35021],[],[0,1644],[0,9993],[],[0,338],[0,40543],[],[0,1070],[0,39072],[],[0,1454],[0,46190],[],[0,655],[0,33891],[],[0,1525],[0,9846],[],[0,2705],[0,8460],[],[0,2764],[0,48717],[],[0,161],[0,38774],[],[0,1585],[0,10901],[],[0,2127],[0,29387],[],[0,1083],[0,30230],[],[0,2780],[0,37935],[],[0,1241],[0,28520],[],[0,1774],[0,39178],[],[0,2460],[0,13263],[],[0,2070],[0,23107],[],[0,2081],[0,44850],[],[0,149],[0,33],[],[0,1379],[0,4325],[],[0,1109],[0,19220],[],[0,666],[0,1502],[],[0,290],[0,22084],[],[0,1002],[0,246],[],[0,1750],[0,41069],[],[0,1333],[0,49864],[],[0,2103],[0,25720],[],[0,2461],[0,28888],[],[0,978],[0,31818],[],[0,1589],[0,27013],[],[0,713],[0,37753],[],[0,2176],[0,17757],[],[0,991],[0,42646],[],[0,587],[0,19760],[],[0,1141],[0,28495],[],[0,314],[0,45577],[],[0,1163],[0,33009],[],[0,2590],[0,42358],[],[0,223],[0,35266],[],[0,2500],[0,17005],[],[0,603],[0,48332],[],[0,883],[0,48500],[],[0,1499],[0,16087],[],[0,1345],[0,32457],[],[0,1002],[0,524],[],[0,2845],[0,19764],[],[0,1182],[0,24753],[],[0,1149],[0,39080],[],[0,1392],[0,29659],[],[0,1861],[0,7621],[],[0,2324],[0,42086],[],[0,492],[0,21673],[],[0,2102],[0,49987],[],[0,1883],[0,44887],[],[0,2242],[0,16764],[],[0,865],[0,13055],[],[0,2350],[0,23140],[],[0,13],[0,38612],[],[0,18],[0,27338],[],[0,1758],[0,32543],[],[0,375],[0,8238],[],[0,619],[0,4496],[],[0,2151],[0,37668],[],[0,1367],[0,5083],[],[0,699],[0,18449],[],[0,2433],[0,19319],[],[0,83],[0,33522],[],[0,440],[0,2670],[],[0,2324],[0,782],[],[0,2367],[0,42261],[],[0,1067],[0,1044],[],[0,632],[0,41921],[],[0,1200],[0,16925],[],[0,304],[0,29692],[],[0,710],[0,28637],[],[0,772],[0,540],[],[0,2032],[0,17701],[],[0,2641],[0,46604],[],[0,2073],[0,12929],[],[0,2536],[0,20014],[],[0,1333],[0,22775],[],[0,2745],[0,21492],[],[0,122],[0,44350],[],[0,1052],[0,14673],[],[0,1282],[0,27442],[],[0,125],[0,5481],[],[0,1051],[0,41764],[],[0,1063],[0,36633],[],[0,1147],[0,19094],[],[0,1163],[0,31916],[],[0,2671],[0,48509],[],[0,1385],[0,35960],[],[0,2820],[0,49678],[],[0,705],[0,23496],[],[0,2309],[0,21296],[],[0,2087],[0,16402],[],[0,2580],[0,35236],[],[0,398],[0,32111],[],[0,838],[0,16229],[],[0,2288],[0,1510],[],[0,1792],[0,19585],[],[0,2848],[0,21844],[],[0,2616],[0,14329],[],[0,1501],[0,26163],[],[0,451],[0,45414],[],[0,2348],[0,4818],[],[0,1659],[0,33322],[],[0,2293],[0,11180],[],[0,2852],[0,30763],[],[0,1008],[0,24754],[],[0,2316],[0,38590],[],[0,1132],[0,8480],[],[0,152],[0,38206],[],[0,2309],[0,31409],[],[0,2752],[0,17755],[],[0,1533],[0,35282],[],[0,682],[0,48678],[],[0,444],[0,30013],[],[0,2826],[0,12184],[],[0,1497],[0,37365],[],[0,2164],[0,3515],[],[0,1103],[0,26989],[],[0,1766],[0,39507],[],[0,1847],[0,36867],[],[0,1973],[0,13299],[],[0,174],[0,26838],[],[0,1830],[0,35912],[],[0,1279],[0,9762],[],[0,1620],[0,36973],[],[0,1494],[0,45044],[],[0,323],[0,13126],[],[0,39],[0,40006],[],[0,1446],[0,14970],[],[0,2687],[0,42908],[],[0,1938],[0,46116],[],[0,1284],[0,29167],[],[0,1265],[0,46040],[],[0,2230],[0,26869],[],[0,289],[0,44820],[],[0,1562],[0,16806],[],[0,2150],[0,25477],[],[0,1390],[0,35769],[],[0,104],[0,33984],[],[0,1564],[0,37433],[],[0,2875],[0,41560],[],[0,39],[0,22561],[],[0,1078],[0,15740],[],[0,2868],[0,37381],[],[0,1798],[0,1925],[],[0,353],[0,21516],[],[0,2757],[0,44163],[],[0,1441],[0,8143],[],[0,1511],[0,37194],[],[0,124],[0,21969],[],[0,2381],[0,32718],[],[0,2910],[0,20933],[],[0,2190],[0,36332],[],[0,457],[0,18800],[],[0,1703],[0,29295],[],[0,2],[0,32674],[],[0,1656],[0,48798],[],[0,1006],[0,15410],[],[0,1612],[0,23708],[],[0,493],[0,24352],[],[0,323],[0,26278],[],[0,1793],[0,38785],[],[0,1284],[0,45315],[],[0,588],[0,37168],[],[0,1750],[0,12516],[],[0,53],[0,8257],[],[0,229],[0,24475],[],[0,2088],[0,24657],[],[0,2008],[0,35336],[],[0,2122],[0,1382],[],[0,2396],[0,42205],[],[0,396],[0,8816],[],[0,2019],[0,6983],[],[0,126],[0,46301],[],[0,1968],[0,13393],[],[0,2007],[0,19904],[],[0,1193],[0,5436],[],[0,2896],[0,21943],[],[0,2173],[0,46035],[],[0,2006],[0,35298],[],[0,2011],[0,4625],[],[0,1015],[0,44387],[],[0,984],[0,12639],[],[0,1156],[0,4613],[],[0,1294],[0,42505],[],[0,1874],[0,26226],[],[0,1548],[0,30153],[],[0,955],[0,40348],[],[0,1869],[0,27125],[],[0,657],[0,37975],[],[0,2859],[0,19202],[],[0,859],[0,37387],[],[0,436],[0,6556],[],[0,2857],[0,5085],[],[0,217],[0,46273],[],[0,3063],[0,17485],[],[0,2190],[0,28134],[],[0,658],[0,27388],[],[0,1275],[0,1690],[],[0,1041],[0,49494],[],[0,811],[0,11105],[],[0,240],[0,40822],[],[0,1583],[0,39970],[],[0,2067],[0,5463],[],[0,1623],[0,4291],[],[0,555],[0,44405],[],[0,2869],[0,29452],[],[0,1279],[0,22728],[],[0,2760],[0,8673],[],[0,3097],[0,21429],[],[0,1491],[0,13581],[],[0,141],[0,31340],[],[0,2393],[0,5199],[],[0,980],[0,12766],[],[0,437],[0,36527],[],[0,1957],[0,3301],[],[0,402],[0,19651],[],[0,1890],[0,31443],[],[0,2118],[0,44035],[],[0,2655],[0,46301],[],[0,2049],[0,42084],[],[0,1474],[0,15273],[],[0,1395],[0,3478],[],[0,546],[0,21540],[],[0,162],[0,13994],[],[0,2056],[0,44421],[],[0,2125],[0,12798],[],[0,1279],[0,36593],[],[0,495],[0,49697],[],[0,827],[0,44819],[],[0,3065],[0,26677],[],[0,2405],[0,9443],[],[0,1736],[0,23016],[],[0,2412],[0,31450],[],[0,2376],[0,15895],[],[0,1238],[0,16477],[],[0,2221],[0,11648],[],[0,3106],[0,38289],[],[0,2385],[0,6173],[],[0,1853],[0,25521],[],[0,1030],[0,32231],[],[0,2682],[0,33696],[],[0,355],[0,41827],[],[0,2984],[0,40753],[],[0,2625],[0,38645],[],[0,2469],[0,48294],[],[0,1092],[0,26821],[],[0,1897],[0,17413],[],[0,803],[0,16538],[],[0,1085],[0,2242],[],[0,2948],[0,23046],[],[0,91],[0,29359],[],[0,2647],[0,49150],[],[0,140],[0,28765],[],[0,2623],[0,8614],[],[0,2964],[0,38738],[],[0,1547],[0,18669],[],[0,716],[0,35023],[],[0,823],[0,38300],[],[0,473],[0,25127],[],[0,2542],[0,241],[],[0,964],[0,28829],[],[0,807],[0,13070],[],[0,1053],[0,31597],[],[0,2904],[0,19447],[],[0,1951],[0,13508],[],[0,2933],[0,21554],[],[0,1228],[0,2300],[],[0,229],[0,3969],[],[0,985],[0,11812],[],[0,822],[0,3313],[],[0,1261],[0,49688],[],[0,237],[0,9516],[],[0,489],[0,28525],[],[0,2132],[0,46273],[],[0,883],[0,38114],[],[0,780],[0,12966],[],[0,157],[0,41767],[],[0,873],[0,29027],[],[0,310],[0,26393],[],[0,2945],[0,13468],[],[0,1921],[0,9302],[],[0,1057],[0,16681],[],[0,877],[0,20169],[],[0,1427],[0,4755],[],[0,1619],[0,8971],[],[0,1834],[0,35450],[],[0,1151],[0,40260],[],[0,2932],[0,3427],[],[0,1414],[0,41978],[],[0,901],[0,1652],[],[0,1457],[0,46856],[],[0,338],[0,43082],[],[0,1609],[0,25532],[],[0,597],[0,42481],[],[0,2485],[0,41291],[],[0,1840],[0,48022],[],[0,2146],[0,9123],[],[0,1263],[0,42905],[],[0,2272],[0,29789],[],[0,1009],[0,6434],[],[0,2969],[0,13390],[],[0,2922],[0,22450],[],[0,2258],[0,5663],[],[0,421],[0,31254],[],[0,1610],[0,30889],[],[0,2122],[0,15680],[],[0,1678],[0,1847],[],[0,2823],[0,7316],[],[0,593],[0,6850],[],[0,41],[0,42585],[],[0,2475],[0,13361],[],[0,998],[0,32558],[],[0,2260],[0,7977],[],[0,2688],[0,40614],[],[0,2164],[0,1594],[],[0,162],[0,4951],[],[0,2263],[0,31272],[],[0,875],[0,20192],[],[0,651],[0,12985],[],[0,2265],[0,32676],[],[0,522],[0,8085],[],[0,2887],[0,47627],[],[0,1056],[0,3244],[],[0,1097],[0,8702],[],[0,1033],[0,22938],[],[0,3168],[0,3968],[],[0,138],[0,11274],[],[0,1610],[0,48303],[],[0,743],[0,40089],[],[0,975],[0,46615],[],[0,1641],[0,28185],[],[0,1994],[0,9009],[],[0,1977],[0,11934],[],[0,986],[0,15357],[],[0,1146],[0,26563],[],[0,755],[0,634],[],[0,416],[0,2964],[],[0,2220],[0,17954],[],[0,1671],[0,17985],[],[0,2157],[0,45718],[],[0,2481],[0,11085],[],[0,1191],[0,7306],[],[0,3012],[0,18375],[],[0,1840],[0,652],[],[0,2190],[0,39902],[],[0,1616],[0,27320],[],[0,525],[0,43968],[],[0,1067],[0,35304],[],[0,211],[0,4658],[],[0,221],[0,28816],[],[0,3157],[0,35203],[],[0,939],[0,7984],[],[0,938],[0,2893],[],[0,2170],[0,6264],[],[0,1995],[0,5898],[],[0,3166],[0,5804],[],[0,2248],[0,33748],[],[0,2210],[0,17812],[],[0,2105],[0,9464],[],[0,1363],[0,30886],[],[0,2704],[0,38868],[],[0,2368],[0,40081],[],[0,189],[0,35715],[],[0,1397],[0,41441],[],[0,951],[0,23576],[],[0,525],[0,20677],[],[0,3030],[0,10351],[],[0,613],[0,20660],[],[0,2433],[0,8374],[],[0,2919],[0,2094],[],[0,1550],[0,4322],[],[0,618],[0,30370],[],[0,3064],[0,1448],[],[0,1989],[0,8123],[],[0,1512],[0,42160],[],[0,369],[0,29217],[],[0,2832],[0,29606],[],[0,1147],[0,21151],[],[0,1943],[0,14528],[],[0,2949],[0,32455],[],[0,772],[0,39208],[],[0,3046],[0,18188],[],[0,1438],[0,26161],[],[0,2220],[0,32209],[],[0,621],[0,4278],[],[0,712],[0,6046],[],[0,1588],[0,7064],[],[0,3111],[0,15746],[],[0,2145],[0,29290],[],[0,1730],[0,33116],[],[0,194],[0,25317],[],[0,3146],[0,47909],[],[0,968],[0,9569],[],[0,1678],[0,23217],[],[0,2194],[0,6310],[],[0,2610],[0,32548],[],[0,1931],[0,29415],[],[0,2213],[0,44299],[],[0,2198],[0,37254],[],[0,3051],[0,2104],[],[0,393],[0,18050],[],[0,790],[0,41432],[],[0,1200],[0,32290],[],[0,2149],[0,4111],[],[0,2645],[0,32654],[],[0,2008],[0,39896],[],[0,164],[0,35158],[],[0,1793],[0,48259],[],[0,2906],[0,19017],[],[0,246],[0,43926],[],[0,2740],[0,21045],[],[0,344],[0,3700],[],[0,1317],[0,15446],[],[0,2507],[0,15039],[],[0,1305],[0,35332],[],[0,1624],[0,49176],[],[0,733],[0,36157],[],[0,909],[0,6596],[],[0,130],[0,19181],[],[0,452],[0,45382],[],[0,3129],[0,29435],[],[0,1406],[0,26138],[],[0,1157],[0,25063],[],[0,1913],[0,41659],[],[0,601],[0,44163],[],[0,1370],[0,44993],[],[0,916],[0,34275],[],[0,561],[0,38325],[],[0,429],[0,20657],[],[0,681],[0,48831],[],[0,1801],[0,8641],[],[0,1388],[0,4714],[],[0,897],[0,6099],[],[0,2952],[0,42689],[],[0,1690],[0,34614],[],[0,641],[0,609],[],[0,673],[0,20880],[],[0,2118],[0,13258],[],[0,522],[0,33863],[],[0,1167],[0,32530],[],[0,2692],[0,13373],[],[0,1112],[0,39750],[],[0,760],[0,12403],[],[0,438],[0,42721],[],[0,1698],[0,38173],[],[0,2776],[0,11199],[],[0,878],[0,17094],[],[0,2021],[0,16566],[],[0,3221],[0,19233],[],[0,155],[0,49735],[],[0,1131],[0,31564],[],[0,235],[0,14691],[],[0,1632],[0,37504],[],[0,1184],[0,43519],[],[0,3109],[0,43335],[],[0,1960],[0,28742],[],[0,1020],[0,5777],[],[0,97],[0,17094],[],[0,2402],[0,26336],[],[0,1596],[0,46409],[],[0,1319],[0,27003],[],[0,859],[0,19450],[],[0,717],[0,35164],[],[0,2355],[0,21215],[],[0,861],[0,14523],[],[0,3056],[0,16597],[],[0,1785],[0,27224],[],[0,1790],[0,16738],[],[0,1574],[0,16904],[],[0,663],[0,37676],[],[0,28],[0,39829],[],[0,1346],[0,14999],[],[0,338],[0,49139],[],[0,885],[0,17804],[],[0,173],[0,48802],[],[0,1031],[0,952],[],[0,160],[0,18570],[],[0,1361],[0,24069],[],[0,546],[0,33202],[],[0,253],[0,15028],[],[0,551],[0,22453],[],[0,1312],[0,23243],[],[0,1247],[0,35006],[],[0,1254],[0,5471],[],[0,1289],[0,28404],[],[0,1004],[0,22490],[],[0,2393],[0,24468],[],[0,971],[0,7088],[],[0,1591],[0,34514],[],[0,1052],[0,2767],[],[0,1422],[0,43358],[],[0,2267],[0,37423],[],[0,1857],[0,1869],[],[0,2071],[0,24124],[],[0,0],[0,31476],[],[0,2137],[0,27437],[],[0,199],[0,38698],[],[0,2498],[0,17964],[],[0,2228],[0,47083],[],[0,2710],[0,25685],[],[0,811],[0,47041],[],[0,3177],[0,39014],[],[0,3369],[0,1652],[],[0,279],[0,15929],[],[0,313],[0,1965],[],[0,2889],[0,42083],[],[0,1412],[0,25934],[],[0,474],[0,46594],[],[0,742],[0,36860],[],[0,700],[0,21265],[],[0,1604],[0,26811],[],[0,2630],[0,49354],[],[0,468],[0,31856],[],[0,2294],[0,28555],[],[0,1339],[0,30129],[],[0,1357],[0,9778],[],[0,335],[0,7040],[],[0,831],[0,48431],[],[0,871],[0,15071],[],[0,2079],[0,25962],[],[0,1824],[0,30015],[],[0,94],[0,11335],[],[0,3112],[0,11697],[],[0,3208],[0,33684],[],[0,2825],[0,21729],[],[0,885],[0,7788],[],[0,2305],[0,29021],[],[0,3397],[0,36626],[],[0,153],[0,29874],[],[0,3096],[0,6339],[],[0,2840],[0,38372],[],[0,335],[0,49835],[],[0,1960],[0,22135],[],[0,1980],[0,8857],[],[0,2449],[0,44601],[],[0,2393],[0,13280],[],[0,3158],[0,11901],[],[0,338],[0,35585],[],[0,2291],[0,10538],[],[0,2612],[0,31875],[],[0,3249],[0,44837],[],[0,2217],[0,10130],[],[0,3403],[0,14298],[],[0,1483],[0,7454],[],[0,3320],[0,22150],[],[0,2013],[0,45151],[],[0,652],[0,35523],[],[0,560],[0,7388],[],[0,3199],[0,20300],[],[0,1171],[0,9987],[],[0,499],[0,25216],[],[0,2081],[0,456],[],[0,1305],[0,10903],[],[0,566],[0,41306],[],[0,2432],[0,19911],[],[0,1938],[0,30602],[],[0,1374],[0,29477],[],[0,910],[0,27478],[],[0,2466],[0,5346],[],[0,2017],[0,22931],[],[0,155],[0,10597],[],[0,2879],[0,31719],[],[0,2246],[0,40446],[],[0,1136],[0,11033],[],[0,2475],[0,21056],[],[0,597],[0,10209],[],[0,899],[0,9445],[],[0,404],[0,4886],[],[0,2966],[0,22861],[],[0,1074],[0,42664],[],[0,1262],[0,5122],[],[0,3287],[0,24462],[],[0,1101],[0,3523],[],[0,2773],[0,40402],[],[0,3435],[0,47205],[],[0,1631],[0,16798],[],[0,1230],[0,36617],[],[0,654],[0,18793],[],[0,432],[0,11289],[],[0,2828],[0,8448],[],[0,1485],[0,23890],[],[0,2131],[0,7840],[],[0,2328],[0,49010],[],[0,2462],[0,28387],[],[0,1806],[0,3239],[],[0,3228],[0,42658],[],[0,91],[0,8842],[],[0,2831],[0,31713],[],[0,3329],[0,24407],[],[0,2283],[0,41442],[],[0,2073],[0,11976],[],[0,665],[0,30715],[],[0,2810],[0,34284],[],[0,914],[0,18742],[],[0,1856],[0,31425],[],[0,24],[0,11397],[],[0,2305],[0,38174],[],[0,3334],[0,40143],[],[0,3357],[0,11548],[],[0,2064],[0,5907],[],[0,2132],[0,12299],[],[0,2428],[0,36754],[],[0,1719],[0,2313],[],[0,1525],[0,4710],[],[0,1936],[0,41856],[],[0,3243],[0,6868],[],[0,2040],[0,9796],[],[0,3085],[0,30333],[],[0,297],[0,38761],[],[0,927],[0,28201],[],[0,1225],[0,43529],[],[0,2505],[0,8041],[],[0,726],[0,10149],[],[0,2821],[0,13962],[],[0,1409],[0,720],[],[0,3358],[0,4047],[],[0,1615],[0,4466],[],[0,2421],[0,31460],[],[0,1887],[0,31212],[],[0,2300],[0,19834],[],[0,931],[0,46389],[],[0,757],[0,24242],[],[0,2689],[0,14420],[],[0,2286],[0,989],[],[0,2960],[0,43030],[],[0,2699],[0,41767],[],[0,2931],[0,44504],[],[0,2557],[0,4520],[],[0,3192],[0,8758],[],[0,2305],[0,49523],[],[0,1398],[0,9230],[],[0,3542],[0,28375],[],[0,785],[0,10856],[],[0,2064],[0,26237],[],[0,94],[0,15336],[],[0,3164],[0,4200],[],[0,2779],[0,34010],[],[0,236],[0,20812],[],[0,1656],[0,45608],[],[0,1914],[0,27233],[],[0,1397],[0,43624],[],[0,663],[0,35570],[],[0,3378],[0,40900],[],[0,1459],[0,23832],[],[0,2196],[0,47002],[],[0,540],[0,2841],[],[0,3353],[0,1737],[],[0,527],[0,25333],[],[0,3297],[0,38990],[],[0,2757],[0,11131],[],[0,2370],[0,6688],[],[0,521],[0,6480],[],[0,1712],[0,23079],[],[0,2710],[0,39565],[],[0,254],[0,23592],[],[0,1676],[0,44061],[],[0,588],[0,9613],[],[0,3123],[0,27556],[],[0,2313],[0,31684],[],[0,432],[0,37277],[],[0,873],[0,42922],[],[0,1604],[0,18603],[],[0,3231],[0,34779],[],[0,1543],[0,24540],[],[0,3342],[0,42959],[],[0,1159],[0,43160],[],[0,436],[0,35947],[],[0,2894],[0,15879],[],[0,2605],[0,29730],[],[0,507],[0,42291],[],[0,1252],[0,25747],[],[0,3568],[0,23362],[],[0,996],[0,3971],[],[0,1838],[0,40425],[],[0,301],[0,20982],[],[0,3121],[0,41299],[],[0,1101],[0,27859],[],[0,2454],[0,35427],[],[0,2764],[0,17173],[],[0,231],[0,49347],[],[0,1166],[0,6183],[],[0,2482],[0,9484],[],[0,613],[0,2784],[],[0,1372],[0,20348],[],[0,2224],[0,4380],[],[0,2689],[0,22837],[],[0,1898],[0,32769],[],[0,2198],[0,23124],[],[0,2737],[0,18401],[],[0,3506],[0,22153],[],[0,1029],[0,32135],[],[0,3034],[0,43465],[],[0,201],[0,21596],[],[0,2691],[0,48387],[],[0,3342],[0,1005],[],[0,2167],[0,37108],[],[0,2268],[0,30729],[],[0,203],[0,33960],[],[0,2659],[0,13813],[],[0,2806],[0,18846],[],[0,1715],[0,11602],[],[0,2271],[0,5188],[],[0,2098],[0,16696],[],[0,848],[0,28743],[],[0,1967],[0,11612],[],[0,1748],[0,35800],[],[0,3095],[0,3647],[],[0,6],[0,21750],[],[0,1143],[0,44946],[],[0,1280],[0,42557],[],[0,3453],[0,44672],[],[0,1087],[0,8856],[],[0,355],[0,17269],[],[0,3286],[0,27295],[],[0,911],[0,37191],[],[0,156],[0,16631],[],[0,3331],[0,13275],[],[0,2761],[0,31524],[],[0,2113],[0,39184],[],[0,2132],[0,15827],[],[0,1251],[0,6001],[],[0,2783],[0,1437],[],[0,779],[0,12802],[],[0,2285],[0,45954],[],[0,2125],[0,1664],[],[0,3308],[0,40946],[],[0,1571],[0,2630],[],[0,3500],[0,24852],[],[0,2135],[0,33563],[],[0,3150],[0,1606],[],[0,465],[0,41040],[],[0,2576],[0,30979],[],[0,2267],[0,6443],[],[0,726],[0,7292],[],[0,3635],[0,15692],[],[0,3488],[0,1685],[],[0,1068],[0,23437],[],[0,1436],[0,16416],[],[0,1456],[0,18101],[],[0,3000],[0,12248],[],[0,2800],[0,42968],[],[0,276],[0,13314],[],[0,296],[0,31179],[],[0,106],[0,20789],[],[0,2161],[0,731],[],[0,3171],[0,34673],[],[0,900],[0,15546],[],[0,385],[0,17770],[],[0,3440],[0,38618],[],[0,862],[0,34333],[],[0,3568],[0,3205],[],[0,453],[0,26953],[],[0,2768],[0,6407],[],[0,3488],[0,13845],[],[0,2122],[0,16059],[],[0,3182],[0,26476],[],[0,2259],[0,8415],[],[0,3628],[0,5558],[],[0,2647],[0,41331],[],[0,2914],[0,2972],[],[0,1604],[0,48484],[],[0,1667],[0,14976],[],[0,2065],[0,20878],[],[0,1753],[0,38477],[],[0,161],[0,45841],[],[0,3166],[0,41060],[],[0,2883],[0,22986],[],[0,2116],[0,42108],[],[0,957],[0,681],[],[0,1832],[0,31998],[],[0,3370],[0,37785],[],[0,539],[0,47074],[],[0,3099],[0,5795],[],[0,1626],[0,29265],[],[0,3196],[0,8539],[],[0,135],[0,15412],[],[0,2000],[0,32302],[],[0,2759],[0,1596],[],[0,3098],[0,47541],[],[0,1919],[0,12675],[],[0,3329],[0,24699],[],[0,2951],[0,30074],[],[0,3418],[0,45153],[],[0,1465],[0,12637],[],[0,340],[0,37470],[],[0,2043],[0,46791],[],[0,2172],[0,21625],[],[0,2229],[0,7537],[],[0,3633],[0,43143],[],[0,2740],[0,31003],[],[0,3155],[0,31212],[],[0,2531],[0,6037],[],[0,589],[0,27803],[],[0,1386],[0,6453],[],[0,2080],[0,15339],[],[0,416],[0,25903],[],[0,3416],[0,929],[],[0,3340],[0,40431],[],[0,1397],[0,44937],[],[0,2042],[0,19798],[],[0,2194],[0,8736],[],[0,978],[0,27080],[],[0,18],[0,34987],[],[0,889],[0,27897],[],[0,883],[0,25250],[],[0,2420],[0,31179],[],[0,1954],[0,44950],[],[0,2953],[0,13967],[],[0,1108],[0,27029],[],[0,2196],[0,7520],[],[0,2266],[0,19106],[],[0,3695],[0,44990],[],[0,1315],[0,416],[],[0,592],[0,23102],[],[0,569],[0,23131],[],[0,1027],[0,11862],[],[0,595],[0,12479],[],[0,2422],[0,22055],[],[0,865],[0,30547],[],[0,3432],[0,3951],[],[0,2703],[0,25964],[],[0,2194],[0,44064],[],[0,3482],[0,26212],[],[0,466],[0,41770],[],[0,667],[0,36490],[],[0,864],[0,4876],[],[0,3067],[0,3992],[],[0,1871],[0,29967],[],[0,180],[0,3548],[],[0,1067],[0,28511],[],[0,3277],[0,7164],[],[0,124],[0,64],[],[0,3669],[0,8596],[],[0,2071],[0,17870],[],[0,729],[0,37024],[],[0,554],[0,23173],[],[0,3547],[0,8142],[],[0,1512],[0,13394],[],[0,2577],[0,36589],[],[0,3178],[0,25495],[],[0,3055],[0,19139],[],[0,3644],[0,16924],[],[0,241],[0,592],[],[0,2130],[0,17101],[],[0,1413],[0,22203],[],[0,2177],[0,18057],[],[0,1800],[0,12566],[],[0,3088],[0,2900],[],[0,3315],[0,24943],[],[0,665],[0,14279],[],[0,2452],[0,7554],[],[0,3653],[0,31033],[],[0,3258],[0,44704],[],[0,3324],[0,6059],[],[0,2363],[0,43040],[],[0,2702],[0,16117],[],[0,2291],[0,390],[],[0,2274],[0,46088],[],[0,1484],[0,38867],[],[0,231],[0,25411],[],[0,91],[0,4981],[],[0,785],[0,6586],[],[0,127],[0,2454],[],[0,2701],[0,4382],[],[0,2425],[0,11086],[],[0,1794],[0,7830],[],[0,2708],[0,14776],[],[0,1653],[0,7792],[],[0,82],[0,27227],[],[0,4],[0,2568],[],[0,984],[0,49901],[],[0,2085],[0,23483],[],[0,608],[0,30030],[],[0,1724],[0,34660],[],[0,2267],[0,8216],[],[0,1768],[0,1543],[],[0,2425],[0,5644],[],[0,2892],[0,30896],[],[0,1116],[0,47376],[],[0,2851],[0,9429],[],[0,1066],[0,40031],[],[0,996],[0,8750],[],[0,998],[0,10060],[],[0,844],[0,8991],[],[0,711],[0,47621],[],[0,1738],[0,16709],[],[0,2109],[0,40405],[],[0,889],[0,29576],[],[0,3186],[0,21791],[],[0,1959],[0,29963],[],[0,991],[0,17016],[],[0,3057],[0,31009],[],[0,2577],[0,12227],[],[0,1168],[0,30824],[],[0,727],[0,44670],[],[0,3572],[0,5949],[],[0,90],[0,19336],[],[0,1178],[0,4998],[],[0,2977],[0,46567],[],[0,1928],[0,46031],[],[0,3695],[0,13009],[],[0,3070],[0,32729],[],[0,1214],[0,43072],[],[0,701],[0,27237],[],[0,1811],[0,6071],[],[0,1232],[0,16893],[],[0,2486],[0,24412],[],[0,3704],[0,4745],[],[0,1862],[0,5080],[],[0,2973],[0,47734],[],[0,1113],[0,5216],[],[0,2404],[0,5959],[],[0,431],[0,7697],[],[0,1308],[0,24167],[],[0,653],[0,20683],[],[0,2525],[0,1061],[],[0,1097],[0,32722],[],[0,766],[0,4033],[],[0,2120],[0,15636],[],[0,184],[0,35930],[],[0,2697],[0,8231],[],[0,153],[0,6645],[],[0,3762],[0,39635],[],[0,1465],[0,16417],[],[0,1591],[0,15998],[],[0,2994],[0,18562],[],[0,3330],[0,10915],[],[0,1537],[0,39153],[],[0,2990],[0,27940],[],[0,3475],[0,17809],[],[0,1596],[0,6515],[],[0,3778],[0,26897],[],[0,3011],[0,48795],[],[0,726],[0,4584],[],[0,2120],[0,15128],[],[0,685],[0,5469],[],[0,2781],[0,977],[],[0,2681],[0,25474],[],[0,2665],[0,29048],[],[0,2379],[0,40403],[],[0,2587],[0,20537],[],[0,32],[0,46636],[],[0,3293],[0,3124],[],[0,3272],[0,32676],[],[0,917],[0,12424],[],[0,1263],[0,41294],[],[0,1959],[0,12081],[],[0,2771],[0,19667],[],[0,3275],[0,36027],[],[0,3265],[0,34938],[],[0,669],[0,5536],[],[0,2295],[0,16627],[],[0,2836],[0,23826],[],[0,151],[0,10567],[],[0,3200],[0,32619],[],[0,1877],[0,22760],[],[0,3588],[0,38192],[],[0,1041],[0,11528],[],[0,883],[0,19830],[],[0,3125],[0,28831],[],[0,2661],[0,35813],[],[0,1182],[0,21220],[],[0,1363],[0,31925],[],[0,2407],[0,45368],[],[0,142],[0,39290],[],[0,3106],[0,48370],[],[0,2040],[0,9697],[],[0,348],[0,3606],[],[0,194],[0,10514],[],[0,481],[0,9568],[],[0,574],[0,38672],[],[0,159],[0,46098],[],[0,2738],[0,32528],[],[0,2078],[0,14021],[],[0,2893],[0,20451],[],[0,2684],[0,14378],[],[0,3674],[0,27887],[],[0,929],[0,1067],[],[0,3409],[0,8608],[],[0,1992],[0,39667],[],[0,2755],[0,25117],[],[0,3551],[0,36259],[],[0,1987],[0,16272],[],[0,1165],[0,4850],[],[0,2748],[0,48377],[],[0,1390],[0,44397],[],[0,2503],[0,22206],[],[0,2449],[0,32066],[],[0,3076],[0,8727],[],[0,2400],[0,44075],[],[0,1107],[0,17656],[],[0,2454],[0,25512],[],[0,21],[0,3614],[],[0,1387],[0,42592],[],[0,3157],[0,19902],[],[0,845],[0,6346],[],[0,748],[0,41151],[],[0,3096],[0,30040],[],[0,315],[0,12875],[],[0,3297],[0,7156],[],[0,380],[0,21728],[],[0,636],[0,17997],[],[0,3756],[0,31763],[],[0,2756],[0,31542],[],[0,2000],[0,13666],[],[0,2285],[0,4378],[],[0,3895],[0,27082],[],[0,1967],[0,29473],[],[0,989],[0,7948],[],[0,1488],[0,30966],[],[0,1186],[0,25021],[],[0,3205],[0,19362],[],[0,331],[0,18279],[],[0,3484],[0,14895],[],[0,1313],[0,3716],[],[0,1101],[0,22566],[],[0,1685],[0,33971],[],[0,2690],[0,22366],[],[0,678],[0,19700],[],[0,3198],[0,15243],[],[0,3131],[0,8771],[],[0,2253],[0,29495],[],[0,300],[0,37267],[],[0,26],[0,45232],[],[0,1003],[0,10872],[],[0,855],[0,10896],[],[0,2476],[0,1821],[],[0,2176],[0,15222],[],[0,974],[0,32153],[],[0,652],[0,13847],[],[0,1490],[0,36797],[],[0,3813],[0,14458],[],[0,1336],[0,13983],[],[0,3214],[0,7662],[],[0,2304],[0,21471],[],[0,3821],[0,18631],[],[0,3132],[0,35207],[],[0,671],[0,828],[],[0,2644],[0,44754],[],[0,2301],[0,43520],[],[0,2562],[0,17283],[],[0,3429],[0,25509],[],[0,284],[0,48798],[],[0,1163],[0,16283],[],[0,2912],[0,30876],[],[0,2541],[0,27273],[],[0,1984],[0,24571],[],[0,557],[0,27043],[],[0,354],[0,18324],[],[0,888],[0,3210],[],[0,2996],[0,20509],[],[0,1210],[0,22086],[],[0,1410],[0,4828],[],[0,2933],[0,11345],[],[0,1236],[0,40255],[],[0,2620],[0,13687],[],[0,3956],[0,18821],[],[0,3319],[0,40905],[],[0,750],[0,45154],[],[0,758],[0,27218],[],[0,1456],[0,41962],[],[0,2293],[0,48593],[],[0,1394],[0,28415],[],[0,2087],[0,30549],[],[0,1137],[0,19734],[],[0,747],[0,12723],[],[0,990],[0,45925],[],[0,1339],[0,49395],[],[0,585],[0,7481],[],[0,1146],[0,13330],[],[0,2131],[0,11057],[],[0,1419],[0,26733],[],[0,3412],[0,5548],[],[0,1406],[0,17603],[],[0,2530],[0,38234],[],[0,2707],[0,29918],[],[0,151],[0,10634],[],[0,2495],[0,22339],[],[0,3672],[0,14683],[],[0,371],[0,141],[],[0,2536],[0,4387],[],[0,212],[0,19338],[],[0,1289],[0,6386],[],[0,531],[0,1942],[],[0,1773],[0,29710],[],[0,223],[0,45256],[],[0,2393],[0,22749],[],[0,1802],[0,7751],[],[0,1204],[0,5689],[],[0,1878],[0,37246],[],[0,250],[0,18148],[],[0,1827],[0,5178],[],[0,717],[0,42142],[],[0,1130],[0,32933],[],[0,1600],[0,13814],[],[0,1613],[0,29047],[],[0,1935],[0,11250],[],[0,280],[0,27829],[],[0,3208],[0,9769],[],[0,691],[0,7844],[],[0,46],[0,19635],[],[0,710],[0,38605],[],[0,2574],[0,38702],[],[0,500],[0,40547],[],[0,339],[0,9523],[],[0,1628],[0,16342],[],[0,420],[0,34929],[],[0,1103],[0,11704],[],[0,823],[0,37714],[],[0,2819],[0,20227],[],[0,1227],[0,9600],[],[0,459],[0,30682],[],[0,1402],[0,45558],[],[0,946],[0,37351],[],[0,2879],[0,39868],[],[0,21],[0,3739],[],[0,3049],[0,27681],[],[0,1089],[0,49653],[],[0,381],[0,2456],[],[0,2572],[0,38289],[],[0,1202],[0,4738],[],[0,354],[0,40532],[],[0,154],[0,10603],[],[0,1061],[0,39613],[],[0,1044],[0,41241],[],[0,3378],[0,5575],[],[0,2741],[0,5062],[],[0,167],[0,26151],[],[0,1957],[0,18009],[],[0,1733],[0,24373],[],[0,682],[0,1451],[],[0,3935],[0,9230],[],[0,3014],[0,15129],[],[0,2375],[0,34241],[],[0,2870],[0,4769],[],[0,2740],[0,22872],[],[0,842],[0,43827],[],[0,2803],[0,6860],[],[0,1802],[0,25351],[],[0,697],[0,34903],[],[0,609],[0,27389],[],[0,3237],[0,48985],[],[0,1131],[0,40960],[],[0,1491],[0,36402],[],[0,3701],[0,37126],[],[0,920],[0,2297],[],[0,2416],[0,14175],[],[0,1893],[0,24353],[],[0,1548],[0,42050],[],[0,2823],[0,35748],[],[0,118],[0,39306],[],[0,1763],[0,40379],[],[0,3709],[0,14805],[],[0,1481],[0,13688],[],[0,3206],[0,25026],[],[0,1564],[0,39620],[],[0,561],[0,20285],[],[0,1558],[0,43218],[],[0,1596],[0,5495],[],[0,369],[0,11451],[],[0,875],[0,14939],[],[0,3689],[0,30806],[],[0,1394],[0,43358],[],[0,2771],[0,42000],[],[0,2686],[0,15922],[],[0,1583],[0,9986],[],[0,577],[0,26485],[],[0,2319],[0,18818],[],[0,1354],[0,7765],[],[0,1909],[0,18118],[],[0,2878],[0,26638],[],[0,1100],[0,25572],[],[0,3526],[0,40357],[],[0,801],[0,26031],[],[0,739],[0,19627],[],[0,1980],[0,19324],[],[0,2806],[0,2670],[],[0,3618],[0,619],[],[0,2505],[0,7167],[],[0,1823],[0,32577],[],[0,2394],[0,41616],[],[0,1999],[0,6204],[],[0,1495],[0,37172],[],[0,3652],[0,47457],[],[0,3203],[0,31140],[],[0,539],[0,35127],[],[0,171],[0,6048],[],[0,3530],[0,44597],[],[0,2222],[0,23016],[],[0,2195],[0,43105],[],[0,121],[0,2077],[],[0,870],[0,38926],[],[0,3253],[0,37325],[],[0,880],[0,6545],[],[0,91],[0,43539],[],[0,865],[0,38337],[],[0,3479],[0,1014],[],[0,881],[0,24056],[],[0,637],[0,18302],[],[0,1271],[0,38661],[],[0,2816],[0,17748],[],[0,770],[0,11899],[],[0,2448],[0,43601],[],[0,1546],[0,42701],[],[0,426],[0,14194],[],[0,549],[0,8078],[],[0,2363],[0,36193],[],[0,3030],[0,13461],[],[0,3903],[0,31163],[],[0,1886],[0,40103],[],[0,2971],[0,44862],[],[0,1645],[0,45013],[],[0,2758],[0,9886],[],[0,227],[0,40173],[],[0,3453],[0,7118],[],[0,3973],[0,30952],[],[0,2428],[0,29063],[],[0,2156],[0,9405],[],[0,2918],[0,4785],[],[0,538],[0,42537],[],[0,3602],[0,5043],[],[0,1771],[0,9555],[],[0,2871],[0,6050],[],[0,3835],[0,42960],[],[0,1341],[0,49555],[],[0,2458],[0,43257],[],[0,4071],[0,37592],[],[0,1962],[0,6137],[],[0,2005],[0,37056],[],[0,3974],[0,26177],[],[0,1459],[0,15843],[],[0,2561],[0,45181],[],[0,1744],[0,39571],[],[0,2276],[0,26658],[],[0,3760],[0,34654],[],[0,3298],[0,37706],[],[0,77],[0,8808],[],[0,1698],[0,48332],[],[0,349],[0,28723],[],[0,3678],[0,33427],[],[0,364],[0,6294],[],[0,2820],[0,16141],[],[0,2178],[0,15397],[],[0,1265],[0,30692],[],[0,3258],[0,17436],[],[0,2949],[0,16107],[],[0,3490],[0,37806],[],[0,1204],[0,2455],[],[0,2012],[0,28262],[],[0,3927],[0,13621],[],[0,2698],[0,49493],[],[0,3030],[0,43147],[],[0,70],[0,9149],[],[0,3786],[0,27287],[],[0,1423],[0,45782],[],[0,844],[0,3313],[],[0,1428],[0,34387],[],[0,1859],[0,30753],[],[0,3801],[0,17332],[],[0,2589],[0,24917],[],[0,3083],[0,43433],[],[0,838],[0,28559],[],[0,2019],[0,4437],[],[0,1132],[0,48003],[],[0,124],[0,23216],[],[0,3788],[0,36893],[],[0,1660],[0,7439],[],[0,1909],[0,11749],[],[0,3522],[0,26139],[],[0,69],[0,8199],[],[0,2512],[0,14060],[],[0,3219],[0,34587],[],[0,1321],[0,11657],[],[0,2889],[0,29780],[],[0,3365],[0,22881],[],[0,2451],[0,27940],[],[0,421],[0,17499],[],[0,1533],[0,42303],[],[0,3200],[0,21054],[],[0,2668],[0,4200],[],[0,3472],[0,39616],[],[0,475],[0,11795],[],[0,145],[0,3795],[],[0,1426],[0,5608],[],[0,2451],[0,10752],[],[0,3841],[0,19345],[],[0,3704],[0,35628],[],[0,3436],[0,14839],[],[0,3433],[0,32720],[],[0,4156],[0,34753],[],[0,1016],[0,43528],[],[0,2180],[0,31830],[],[0,2767],[0,43723],[],[0,3912],[0,11749],[],[0,2521],[0,14291],[],[0,772],[0,33392],[],[0,523],[0,3490],[],[0,335],[0,12430],[],[0,1126],[0,23492],[],[0,1671],[0,46204],[],[0,173],[0,40366],[],[0,3308],[0,40200],[],[0,3783],[0,13555],[],[0,1513],[0,21253],[],[0,3776],[0,21425],[],[0,3264],[0,44041],[],[0,2952],[0,27478],[],[0,2138],[0,12357],[],[0,438],[0,43728],[],[0,3316],[0,28160],[],[0,1102],[0,12550],[],[0,1620],[0,15325],[],[0,3501],[0,30416],[],[0,2878],[0,12663],[],[0,4042],[0,14438],[],[0,984],[0,4484],[],[0,1101],[0,3275],[],[0,3316],[0,42922],[],[0,3622],[0,36696],[],[0,1811],[0,22407],[],[0,2651],[0,851],[],[0,74],[0,37052],[],[0,1803],[0,20583],[],[0,1789],[0,40294],[],[0,3773],[0,40472],[],[0,1975],[0,3717],[],[0,521],[0,44829],[],[0,3317],[0,44477],[],[0,2603],[0,19184],[],[0,2275],[0,26638],[],[0,3452],[0,36830],[],[0,100],[0,35882],[],[0,1239],[0,44999],[],[0,1949],[0,30966],[],[0,3983],[0,17420],[],[0,3680],[0,48364],[],[0,2713],[0,46773],[],[0,1742],[0,32858],[],[0,3224],[0,30374],[],[0,1194],[0,18463],[],[0,1499],[0,26978],[],[0,3727],[0,20547],[],[0,1866],[0,23468],[],[0,2776],[0,11399],[],[0,2291],[0,17902],[],[0,1643],[0,45013],[],[0,138],[0,25323],[],[0,1651],[0,26141],[],[0,3416],[0,35039],[],[0,1100],[0,39195],[],[0,774],[0,27187],[],[0,2376],[0,27780],[],[0,2048],[0,25753],[],[0,1402],[0,19382],[],[0,2697],[0,16245],[],[0,3943],[0,48946],[],[0,216],[0,32035],[],[0,3981],[0,18841],[],[0,3061],[0,36910],[],[0,3994],[0,26197],[],[0,944],[0,24514],[],[0,2522],[0,7588],[],[0,1474],[0,9186],[],[0,2383],[0,41732],[],[0,4226],[0,20786],[],[0,3862],[0,11314],[],[0,2023],[0,31604],[],[0,985],[0,3948],[],[0,165],[0,20943],[],[0,3328],[0,3756],[],[0,1375],[0,27235],[],[0,771],[0,25854],[],[0,2712],[0,34573],[],[0,3605],[0,11925],[],[0,3748],[0,45739],[],[0,3738],[0,5976],[],[0,3888],[0,7491],[],[0,1390],[0,77],[],[0,1988],[0,28270],[],[0,846],[0,10058],[],[0,2539],[0,16343],[],[0,748],[0,44898],[],[0,2494],[0,32734],[],[0,2609],[0,15184],[],[0,3333],[0,45899],[],[0,4124],[0,28931],[],[0,3948],[0,851],[],[0,2424],[0,11874],[],[0,3974],[0,13004],[],[0,3747],[0,18685],[],[0,3585],[0,44256],[],[0,1741],[0,20151],[],[0,1121],[0,36272],[],[0,535],[0,42019],[],[0,3],[0,45136],[],[0,2862],[0,2818],[],[0,739],[0,19585],[],[0,232],[0,36878],[],[0,2157],[0,40609],[],[0,4114],[0,19958],[],[0,4091],[0,17679],[],[0,734],[0,45733],[],[0,3287],[0,47567],[],[0,3924],[0,39660],[],[0,3565],[0,1027],[],[0,1792],[0,30388],[],[0,2497],[0,47838],[],[0,3468],[0,30339],[],[0,4164],[0,42419],[],[0,436],[0,25260],[],[0,1216],[0,33448],[],[0,3155],[0,11237],[],[0,1447],[0,18046],[],[0,1750],[0,18779],[],[0,2562],[0,5287],[],[0,2505],[0,46488],[],[0,2494],[0,4819],[],[0,3202],[0,1842],[],[0,2065],[0,25855],[],[0,1529],[0,31378],[],[0,3958],[0,20716],[],[0,226],[0,49567],[],[0,1305],[0,1368],[],[0,2947],[0,21894],[],[0,3001],[0,34588],[],[0,1866],[0,3615],[],[0,2751],[0,33719],[],[0,2981],[0,27034],[],[0,728],[0,22950],[],[0,3708],[0,47684],[],[0,3040],[0,8461],[],[0,1731],[0,39170],[],[0,3777],[0,6519],[],[0,1370],[0,571],[],[0,4018],[0,5702],[],[0,3249],[0,37286],[],[0,1023],[0,39341],[],[0,494],[0,44190],[],[0,1044],[0,10665],[],[0,1359],[0,38802],[],[0,2629],[0,34162],[],[0,3031],[0,20008],[],[0,2386],[0,24797],[],[0,1633],[0,36519],[],[0,4272],[0,48606],[],[0,2595],[0,40581],[],[0,2125],[0,1327],[],[0,2051],[0,31527],[],[0,3610],[0,5024],[],[0,2657],[0,35866],[],[0,551],[0,16514],[],[0,2442],[0,15716],[],[0,2190],[0,29233],[],[0,3579],[0,26921],[],[0,2693],[0,18269],[],[0,2269],[0,45121],[],[0,3803],[0,34240],[],[0,4177],[0,35023],[],[0,2011],[0,43970],[],[0,2755],[0,26678],[],[0,983],[0,11580],[],[0,3315],[0,17807],[],[0,2963],[0,26015],[],[0,2583],[0,27636],[],[0,1466],[0,8066],[],[0,4125],[0,19385],[],[0,1026],[0,21674],[],[0,2121],[0,41545],[],[0,3164],[0,5305],[],[0,1604],[0,6365],[],[0,70],[0,36462],[],[0,287],[0,44722],[],[0,1461],[0,22470],[],[0,694],[0,17177],[],[0,208],[0,21616],[],[0,921],[0,30446],[],[0,3222],[0,29340],[],[0,3468],[0,41096],[],[0,1362],[0,43668],[],[0,1266],[0,21930],[],[0,1284],[0,48904],[],[0,4033],[0,36892],[],[0,1781],[0,22306],[],[0,3317],[0,14314],[],[0,2429],[0,48813],[],[0,4023],[0,19091],[],[0,3660],[0,30806],[],[0,2286],[0,43796],[],[0,2818],[0,49361],[],[0,2821],[0,30897],[],[0,2109],[0,30188],[],[0,3398],[0,13269],[],[0,4411],[0,44331],[],[0,1600],[0,45351],[],[0,835],[0,28820],[],[0,2661],[0,12647],[],[0,800],[0,46992],[],[0,2501],[0,17881],[],[0,3894],[0,27737],[],[0,996],[0,36798],[],[0,2134],[0,23583],[],[0,3286],[0,36310],[],[0,1396],[0,37549],[],[0,2026],[0,32668],[],[0,3122],[0,44058],[],[0,3994],[0,24149],[],[0,4379],[0,35385],[],[0,2669],[0,34616],[],[0,1633],[0,45268],[],[0,2391],[0,49439],[],[0,1871],[0,26835],[],[0,219],[0,20354],[],[0,2407],[0,31253],[],[0,1987],[0,28574],[],[0,1948],[0,6653],[],[0,3026],[0,16046],[],[0,2677],[0,39386],[],[0,910],[0,28118],[],[0,918],[0,17761],[],[0,1650],[0,29198],[],[0,4440],[0,377],[],[0,3200],[0,14757],[],[0,2825],[0,30445],[],[0,2799],[0,3658],[],[0,4379],[0,11025],[],[0,2468],[0,26582],[],[0,3711],[0,7149],[],[0,418],[0,34212],[],[0,219],[0,39101],[],[0,2687],[0,11641],[],[0,1278],[0,6872],[],[0,3688],[0,29885],[],[0,4288],[0,22553],[],[0,2649],[0,34224],[],[0,3784],[0,20515],[],[0,6],[0,35108],[],[0,1606],[0,16019],[],[0,3915],[0,16658],[],[0,3891],[0,43924],[],[0,3146],[0,15647],[],[0,3780],[0,8584],[],[0,1960],[0,3148],[],[0,963],[0,23147],[],[0,3450],[0,40536],[],[0,3662],[0,13100],[],[0,1817],[0,5539],[],[0,794],[0,25166],[],[0,1459],[0,22616],[],[0,3693],[0,49928],[],[0,2400],[0,47967],[],[0,2462],[0,17566],[],[0,2539],[0,21528],[],[0,148],[0,32215],[],[0,3102],[0,38235],[],[0,1079],[0,27511],[],[0,1714],[0,3799],[],[0,961],[0,7483],[],[0,2313],[0,8932],[],[0,1350],[0,21375],[],[0,3646],[0,3483],[],[0,3815],[0,9414],[],[0,370],[0,22832],[],[0,1283],[0,14318],[],[0,1160],[0,13088],[],[0,2151],[0,46819],[],[0,3247],[0,33798],[],[0,3913],[0,20954],[],[0,3],[0,49881],[],[0,1055],[0,542],[],[0,2245],[0,7005],[],[0,683],[0,27725],[],[0,2854],[0,12748],[],[0,1349],[0,44251],[],[0,2235],[0,26428],[],[0,3731],[0,43404],[],[0,3937],[0,3525],[],[0,2162],[0,15634],[],[0,324],[0,30085],[],[0,4497],[0,16499],[],[0,1783],[0,21537],[],[0,1152],[0,25501],[],[0,524],[0,39998],[],[0,36],[0,32213],[],[0,934],[0,26009],[],[0,203],[0,6113],[],[0,1816],[0,2796],[],[0,4183],[0,33415],[],[0,4366],[0,25829],[],[0,4209],[0,675],[],[0,900],[0,4025],[],[0,4191],[0,10843],[],[0,2700],[0,10005],[],[0,3488],[0,16554],[],[0,1125],[0,16897],[],[0,1482],[0,4413],[],[0,3974],[0,9125],[],[0,197],[0,48796],[],[0,3953],[0,48474],[],[0,184],[0,30446],[],[0,3974],[0,33083],[],[0,933],[0,41869],[],[0,995],[0,36904],[],[0,1035],[0,41777],[],[0,2586],[0,870],[],[0,2338],[0,6073],[],[0,346],[0,22876],[],[0,4028],[0,41266],[],[0,1176],[0,38985],[],[0,1370],[0,14221],[],[0,707],[0,3213],[],[0,865],[0,47786],[],[0,3322],[0,35939],[],[0,1256],[0,16953],[],[0,3965],[0,8697],[],[0,3360],[0,12514],[],[0,2972],[0,8027],[],[0,761],[0,13588],[],[0,2540],[0,49447],[],[0,1723],[0,11825],[],[0,2319],[0,40209],[],[0,2060],[0,35232],[],[0,2451],[0,8652],[],[0,3366],[0,26787],[],[0,1293],[0,17575],[],[0,255],[0,38450],[],[0,3664],[0,16656],[],[0,1289],[0,1148],[],[0,3529],[0,5763],[],[0,1541],[0,284],[],[0,574],[0,28282],[],[0,3685],[0,32386],[],[0,2584],[0,3470],[],[0,1645],[0,49244],[],[0,4208],[0,40455],[],[0,4013],[0,27938],[],[0,147],[0,3583],[],[0,2194],[0,9069],[],[0,1089],[0,34147],[],[0,2656],[0,24905],[],[0,844],[0,17865],[],[0,206],[0,33956],[],[0,283],[0,377],[],[0,1970],[0,30002],[],[0,63],[0,27060],[],[0,4119],[0,43952],[],[0,1569],[0,16845],[],[0,765],[0,7837],[],[0,384],[0,43313],[],[0,2115],[0,12414],[],[0,3669],[0,32361],[],[0,2494],[0,42998],[],[0,1012],[0,28831],[],[0,1556],[0,49529],[],[0,3680],[0,46971],[],[0,3328],[0,807],[],[0,1245],[0,42767],[],[0,3421],[0,100],[],[0,18],[0,18332],[],[0,1204],[0,19804],[],[0,3300],[0,19521],[],[0,4324],[0,8760],[],[0,1728],[0,36496],[],[0,1834],[0,12034],[],[0,2444],[0,48773],[],[0,3728],[0,1339],[],[0,4379],[0,12640],[],[0,719],[0,9907],[],[0,922],[0,43296],[],[0,667],[0,11938],[],[0,4118],[0,45810],[],[0,3435],[0,30478],[],[0,4317],[0,41377],[],[0,1286],[0,44189],[],[0,2957],[0,5069],[],[0,1858],[0,36884],[],[0,251],[0,5091],[],[0,3574],[0,32814],[],[0,4176],[0,24117],[],[0,1831],[0,15679],[],[0,1132],[0,25170],[],[0,4483],[0,35254],[],[0,2419],[0,48157],[],[0,193],[0,31922],[],[0,2774],[0,16701],[],[0,2960],[0,44828],[],[0,3603],[0,4635],[],[0,4096],[0,18159],[],[0,501],[0,17602],[],[0,4486],[0,27484],[],[0,2708],[0,37784],[],[0,4317],[0,6700],[],[0,815],[0,8509],[],[0,29],[0,37508],[],[0,311],[0,35459],[],[0,2957],[0,37927],[],[0,3927],[0,12788],[],[0,1310],[0,25654],[],[0,2178],[0,17587],[],[0,635],[0,1740],[],[0,3749],[0,9825],[],[0,2284],[0,22452],[],[0,4129],[0,38833],[],[0,2001],[0,2533],[],[0,967],[0,9819],[],[0,2386],[0,17983],[],[0,3814],[0,38700],[],[0,2510],[0,41563],[],[0,4299],[0,14643],[],[0,1034],[0,23542],[],[0,1419],[0,32805],[],[0,2630],[0,18075],[],[0,2687],[0,35909],[],[0,1889],[0,3718],[],[0,3994],[0,30031],[],[0,151],[0,33844],[],[0,234],[0,36319],[],[0,2068],[0,17028],[],[0,3514],[0,17929],[],[0,763],[0,27936],[],[0,3460],[0,41806],[],[0,1797],[0,15066],[],[0,3900],[0,4525],[],[0,257],[0,46849],[],[0,4006],[0,31719],[],[0,2377],[0,41276],[],[0,622],[0,18072],[],[0,3013],[0,16714],[],[0,1018],[0,17934],[],[0,1737],[0,32093],[],[0,2377],[0,4932],[],[0,4290],[0,16006],[],[0,2858],[0,26204],[],[0,716],[0,14351],[],[0,351],[0,48730],[],[0,3578],[0,9199],[],[0,1634],[0,19156],[],[0,831],[0,28957],[],[0,1159],[0,18480],[],[0,2138],[0,19619],[],[0,2200],[0,39244],[],[0,4125],[0,38269],[],[0,1042],[0,28621],[],[0,1149],[0,44235],[],[0,1342],[0,3328],[],[0,2679],[0,36794],[],[0,1452],[0,18327],[],[0,2350],[0,39087],[],[0,2606],[0,44488],[],[0,2916],[0,139],[],[0,284],[0,3596],[],[0,26],[0,13085],[],[0,3904],[0,22553],[],[0,781],[0,717],[],[0,2129],[0,43782],[],[0,2414],[0,2613],[],[0,539],[0,39740],[],[0,47],[0,19178],[],[0,686],[0,40887],[],[0,556],[0,1002],[],[0,1286],[0,35389],[],[0,943],[0,22572],[],[0,4301],[0,19989],[],[0,2594],[0,22412],[],[0,2945],[0,17406],[],[0,4046],[0,26848],[],[0,2781],[0,20423],[],[0,1624],[0,38872],[],[0,4535],[0,39847],[],[0,4164],[0,27549],[],[0,3975],[0,7686],[],[0,3576],[0,40094],[],[0,1745],[0,39469],[],[0,4313],[0,6985],[],[0,4142],[0,43687],[],[0,3526],[0,24454],[],[0,1331],[0,20286],[],[0,2830],[0,19874],[],[0,3397],[0,11847],[],[0,1387],[0,14645],[],[0,3179],[0,10894],[],[0,1601],[0,33310],[],[0,3019],[0,36731],[],[0,1373],[0,49063],[],[0,2438],[0,20247],[],[0,2081],[0,43490],[],[0,2825],[0,12589],[],[0,2703],[0,23308],[],[0,866],[0,6850],[],[0,2474],[0,21745],[],[0,1657],[0,20169],[],[0,1549],[0,45205],[],[0,1579],[0,34083],[],[0,2397],[0,35506],[],[0,3027],[0,1810],[],[0,3808],[0,15604],[],[0,3935],[0,13431],[],[0,4533],[0,15250],[],[0,3412],[0,12955],[],[0,4621],[0,852],[],[0,167],[0,1840],[],[0,1381],[0,9582],[],[0,2665],[0,41245],[],[0,2158],[0,9871],[],[0,1886],[0,5163],[],[0,4075],[0,25253],[],[0,4639],[0,19006],[],[0,1092],[0,35256],[],[0,2591],[0,22604],[],[0,4327],[0,40893],[],[0,435],[0,18284],[],[0,2026],[0,10365],[],[0,3267],[0,42322],[],[0,1618],[0,48460],[],[0,1724],[0,42576],[],[0,937],[0,40493],[],[0,466],[0,24146],[],[0,1023],[0,29724],[],[0,4303],[0,49853],[],[0,4196],[0,21102],[],[0,4041],[0,27813],[],[0,1630],[0,3468],[],[0,1800],[0,4965],[],[0,3871],[0,39849],[],[0,3287],[0,19269],[],[0,373],[0,42969],[],[0,2290],[0,24329],[],[0,3808],[0,41255],[],[0,1917],[0,4401],[],[0,2601],[0,8423],[],[0,2529],[0,13612],[],[0,4363],[0,28854],[],[0,2747],[0,27585],[],[0,997],[0,4951],[],[0,3631],[0,14033],[],[0,2016],[0,24800],[],[0,3895],[0,11379],[],[0,2183],[0,46840],[],[0,2884],[0,40031],[],[0,1227],[0,40356],[],[0,840],[0,8534],[],[0,2322],[0,42518],[],[0,350],[0,33728],[],[0,876],[0,18951],[],[0,4511],[0,44436],[],[0,3819],[0,25298],[],[0,3840],[0,46083],[],[0,4046],[0,35546],[],[0,1357],[0,47975],[],[0,2615],[0,15741],[],[0,1973],[0,43140],[],[0,4645],[0,3853],[],[0,2385],[0,44024],[],[0,2040],[0,44060],[],[0,573],[0,27315],[],[0,2405],[0,45001],[],[0,2769],[0,32594],[],[0,664],[0,4720],[],[0,1950],[0,36430],[],[0,3637],[0,15497],[],[0,3730],[0,22221],[],[0,2011],[0,6747],[],[0,1638],[0,7173],[],[0,4685],[0,2406],[],[0,3574],[0,34221],[],[0,3997],[0,23143],[],[0,1447],[0,37016],[],[0,2200],[0,39834],[],[0,2119],[0,15661],[],[0,701],[0,3270],[],[0,2492],[0,17536],[],[0,471],[0,31017],[],[0,4583],[0,1251],[],[0,2855],[0,1941],[],[0,1636],[0,6900],[],[0,251],[0,36325],[],[0,30],[0,24886],[],[0,4115],[0,24436],[],[0,730],[0,6850],[],[0,2476],[0,24252],[],[0,4660],[0,44936],[],[0,4150],[0,38049],[],[0,3267],[0,11688],[],[0,3809],[0,28668],[],[0,3351],[0,8748],[],[0,1832],[0,25748],[],[0,3367],[0,41788],[],[0,475],[0,16123],[],[0,1640],[0,32838],[],[0,3796],[0,7160],[],[0,4257],[0,3866],[],[0,192],[0,43907],[],[0,1380],[0,45526],[],[0,3540],[0,28757],[],[0,2695],[0,5226],[],[0,1333],[0,40042],[],[0,3613],[0,26591],[],[0,805],[0,918],[],[0,2100],[0,34440],[],[0,3531],[0,836],[],[0,138],[0,11043],[],[0,2190],[0,18048],[],[0,2074],[0,6779],[],[0,1030],[0,39934],[],[0,238],[0,28409],[],[0,1335],[0,23001],[],[0,4361],[0,25682],[],[0,4330],[0,287],[],[0,693],[0,34583],[],[0,1893],[0,27050],[],[0,1315],[0,32350],[],[0,391],[0,17528],[],[0,2263],[0,45367],[],[0,2273],[0,38566],[],[0,872],[0,29332],[],[0,1607],[0,42643],[],[0,3808],[0,35975],[],[0,642],[0,45784],[],[0,3320],[0,44731],[],[0,3528],[0,5746],[],[0,927],[0,10646],[],[0,2151],[0,385],[],[0,458],[0,40150],[],[0,3218],[0,6096],[],[0,461],[0,2839],[],[0,1819],[0,20399],[],[0,2517],[0,501],[],[0,3784],[0,26879],[],[0,4434],[0,49532],[],[0,1532],[0,32726],[],[0,2560],[0,10865],[],[0,1190],[0,30333],[],[0,844],[0,43955],[],[0,1760],[0,47451],[],[0,4013],[0,35625],[],[0,2040],[0,36088],[],[0,4357],[0,49198],[],[0,1327],[0,41437],[],[0,4286],[0,39023],[],[0,3149],[0,17873],[],[0,4539],[0,25698],[],[0,3113],[0,49678],[],[0,1621],[0,212],[],[0,4604],[0,5612],[],[0,3111],[0,38951],[],[0,4103],[0,47740],[],[0,2966],[0,38635],[],[0,3583],[0,30680],[],[0,4257],[0,49702],[],[0,1649],[0,11701],[],[0,383],[0,12563],[],[0,3216],[0,15246],[],[0,2],[0,26875],[],[0,3308],[0,10961],[],[0,2253],[0,34375],[],[0,4097],[0,23139],[],[0,3829],[0,14683],[],[0,531],[0,23260],[],[0,1527],[0,10341],[],[0,4791],[0,577],[],[0,1717],[0,16362],[],[0,1765],[0,38886],[],[0,2972],[0,7746],[],[0,823],[0,35554],[],[0,1596],[0,47723],[],[0,1966],[0,38168],[],[0,2499],[0,7518],[],[0,1497],[0,32146],[],[0,3922],[0,15753],[],[0,1635],[0,20069],[],[0,4111],[0,2154],[],[0,4733],[0,41747],[],[0,1841],[0,22052],[],[0,4318],[0,21905],[],[0,258],[0,21198],[],[0,3419],[0,18004],[],[0,1542],[0,40310],[],[0,2079],[0,46818],[],[0,3532],[0,17183],[],[0,3276],[0,21355],[],[0,2739],[0,26930],[],[0,4506],[0,48693],[],[0,3007],[0,39849],[],[0,4235],[0,44264],[],[0,3276],[0,9082],[],[0,3575],[0,397],[],[0,2597],[0,31050],[],[0,1133],[0,35457],[],[0,2117],[0,10935],[],[0,4435],[0,33392],[],[0,3819],[0,38201],[],[0,4865],[0,32979],[],[0,729],[0,10192],[],[0,3742],[0,40244],[],[0,1801],[0,25914],[],[0,197],[0,635],[],[0,4330],[0,24160],[],[0,2537],[0,1040],[],[0,4432],[0,40288],[],[0,414],[0,8535],[],[0,205],[0,38373],[],[0,1995],[0,42390],[],[0,2963],[0,43887],[],[0,3091],[0,29833],[],[0,3676],[0,19298],[],[0,557],[0,36493],[],[0,2464],[0,9264],[],[0,2647],[0,44442],[],[0,59],[0,37002],[],[0,4828],[0,2922],[],[0,3387],[0,39144],[],[0,4768],[0,28395],[],[0,70],[0,41787],[],[0,1324],[0,47641],[],[0,84],[0,21090],[],[0,3739],[0,37778],[],[0,1376],[0,5695],[],[0,799],[0,24522],[],[0,3651],[0,37065],[],[0,4846],[0,30780],[],[0,2910],[0,47946],[],[0,4228],[0,11741],[],[0,4638],[0,44610],[],[0,1748],[0,21609],[],[0,2697],[0,45664],[],[0,4316],[0,20646],[],[0,3386],[0,10400],[],[0,1707],[0,7283],[],[0,2234],[0,15689],[],[0,872],[0,27074],[],[0,146],[0,21372],[],[0,709],[0,19644],[],[0,3631],[0,40342],[],[0,2314],[0,45031],[],[0,4276],[0,26301],[],[0,3388],[0,17112],[],[0,3473],[0,36933],[],[0,3025],[0,19293],[],[0,1189],[0,21873],[],[0,3155],[0,37468],[],[0,2552],[0,44297],[],[0,3439],[0,38514],[],[0,1191],[0,45832],[],[0,4002],[0,43308],[],[0,1408],[0,28194],[],[0,1726],[0,46875],[],[0,1525],[0,31166],[],[0,2109],[0,125],[],[0,1913],[0,48643],[],[0,3698],[0,16416],[],[0,284],[0,14955],[],[0,2892],[0,22650],[],[0,1680],[0,42772],[],[0,556],[0,29391],[],[0,1421],[0,11663],[],[0,1523],[0,14988],[],[0,1553],[0,44762],[],[0,3578],[0,35169],[],[0,3936],[0,19536],[],[0,774],[0,2505],[],[0,4543],[0,31921],[],[0,3802],[0,24957],[],[0,3126],[0,27129],[],[0,1676],[0,27238],[],[0,3546],[0,4903],[],[0,1299],[0,49978],[],[0,741],[0,19746],[],[0,3303],[0,36519],[],[0,1327],[0,38063],[],[0,2293],[0,10156],[],[0,3691],[0,5372],[],[0,253],[0,24208],[],[0,3095],[0,24779],[],[0,557],[0,3705],[],[0,3195],[0,42547],[],[0,44],[0,48779],[],[0,2128],[0,24617],[],[0,1999],[0,6275],[],[0,4300],[0,26796],[],[0,2472],[0,31571],[],[0,576],[0,3863],[],[0,3934],[0,13949],[],[0,1068],[0,47809],[],[0,4999],[0,27582],[],[0,1532],[0,34975],[],[0,1519],[0,17440],[],[0,4080],[0,48314],[],[0,4954],[0,24959],[],[0,4659],[0,46243],[],[0,3216],[0,18796],[],[0,3833],[0,6819],[],[0,614],[0,21834],[],[0,4447],[0,4109],[],[0,3460],[0,1225],[],[0,2181],[0,16064],[],[0,4897],[0,47747],[],[0,4845],[0,44175],[],[0,3286],[0,35787],[],[0,4716],[0,4372],[],[0,3074],[0,340],[],[0,1614],[0,6711],[],[0,727],[0,24010],[],[0,3062],[0,35278],[],[0,1407],[0,4468],[],[0,2092],[0,6868],[],[0,3586],[0,2748],[],[0,565],[0,1201],[],[0,4471],[0,42119],[],[0,4182],[0,4211],[],[0,1087],[0,5908],[],[0,4906],[0,14246],[],[0,3005],[0,8067],[],[0,848],[0,25845],[],[0,1191],[0,9639],[],[0,4721],[0,42783],[],[0,4362],[0,40352],[],[0,920],[0,36500],[],[0,595],[0,12671],[],[0,1109],[0,44114],[],[0,4891],[0,47654],[],[0,2831],[0,659],[],[0,201],[0,38131],[],[0,4734],[0,31307],[],[0,2897],[0,12102],[],[0,1202],[0,24173],[],[0,3062],[0,7084],[],[0,1418],[0,43397],[],[0,1483],[0,46922],[],[0,1991],[0,8056],[],[0,3117],[0,17340],[],[0,3143],[0,2746],[],[0,1282],[0,35662],[],[0,981],[0,23316],[],[0,2777],[0,48532],[],[0,472],[0,33949],[],[0,3794],[0,21072],[],[0,3422],[0,40808],[],[0,1756],[0,33857],[],[0,3574],[0,42596],[],[0,50],[0,5359],[],[0,2969],[0,40779],[],[0,3594],[0,25916],[],[0,2372],[0,20111],[],[0,2354],[0,8053],[],[0,1646],[0,35167],[],[0,1629],[0,43253],[],[0,472],[0,23482],[],[0,2479],[0,25034],[],[0,3589],[0,6485],[],[0,1511],[0,8891],[],[0,5032],[0,49015],[],[0,940],[0,38822],[],[0,1139],[0,5648],[],[0,1340],[0,43165],[],[0,3180],[0,14296],[],[0,613],[0,3295],[],[0,2871],[0,46087],[],[0,1287],[0,25888],[],[0,2976],[0,13570],[],[0,351],[0,34541],[],[0,2120],[0,2850],[],[0,3705],[0,33667],[],[0,1078],[0,19559],[],[0,4335],[0,38684],[],[0,3714],[0,3329],[],[0,186],[0,47439],[],[0,3063],[0,25268],[],[0,2002],[0,17582],[],[0,71],[0,9626],[],[0,4277],[0,46625],[],[0,3116],[0,36914],[],[0,933],[0,1708],[],[0,2990],[0,10510],[],[0,508],[0,34240],[],[0,3107],[0,11753],[],[0,4677],[0,36451],[],[0,2845],[0,28170],[],[0,4484],[0,46578],[],[0,1385],[0,17961],[],[0,1862],[0,1522],[],[0,3412],[0,43342],[],[0,3740],[0,37424],[],[0,23],[0,1181],[],[0,874],[0,15028],[],[0,3842],[0,10468],[],[0,3174],[0,15182],[],[0,1006],[0,38847],[],[0,4358],[0,3103],[],[0,744],[0,7110],[],[0,596],[0,49982],[],[0,1803],[0,12874],[],[0,3617],[0,15287],[],[0,2715],[0,10409],[],[0,3801],[0,40259],[],[0,2754],[0,12435],[],[0,2325],[0,26600],[],[0,4377],[0,6933],[],[0,2938],[0,12396],[],[0,4942],[0,42786],[],[0,4260],[0,35627],[],[0,3691],[0,26714],[],[0,4740],[0,828],[],[0,2856],[0,5100],[],[0,5014],[0,24950],[],[0,3085],[0,9397],[],[0,5020],[0,18284],[],[0,1374],[0,24230],[],[0,1717],[0,24169],[],[0,165],[0,36454],[],[0,3861],[0,41665],[],[0,4577],[0,19646],[],[0,4455],[0,16090],[],[0,1682],[0,13257],[],[0,5098],[0,4928],[],[0,4128],[0,18883],[],[0,2092],[0,35434],[],[0,3833],[0,43177],[],[0,3203],[0,17808],[],[0,2807],[0,9948],[],[0,145],[0,14386],[],[0,1103],[0,25814],[],[0,1027],[0,16753],[],[0,3402],[0,319],[],[0,3299],[0,32052],[],[0,4337],[0,18573],[],[0,580],[0,49753],[],[0,2019],[0,45185],[],[0,5117],[0,23714],[],[0,4661],[0,8619],[],[0,711],[0,27726],[],[0,3531],[0,2613],[],[0,1907],[0,14740],[],[0,568],[0,28404],[],[0,5118],[0,45620],[],[0,2685],[0,21852],[],[0,2073],[0,30903],[],[0,471],[0,33441],[],[0,4155],[0,5646],[],[0,1877],[0,37112],[],[0,1086],[0,20336],[],[0,2080],[0,34129],[],[0,4296],[0,14627],[],[0,3440],[0,44822],[],[0,237],[0,20163],[],[0,294],[0,18905],[],[0,3688],[0,19188],[],[0,1168],[0,4717],[],[0,5155],[0,46017],[],[0,3635],[0,24289],[],[0,4364],[0,43906],[],[0,3055],[0,25082],[],[0,211],[0,33750],[],[0,217],[0,15505],[],[0,4118],[0,43663],[],[0,4947],[0,11641],[],[0,1025],[0,4328],[],[0,3791],[0,46673],[],[0,4901],[0,13670],[],[0,3455],[0,36864],[],[0,4050],[0,47307],[],[0,882],[0,19373],[],[0,376],[0,31032],[],[0,1995],[0,2297],[],[0,1092],[0,9151],[],[0,4655],[0,20110],[],[0,4349],[0,3615],[],[0,4264],[0,33901],[],[0,92],[0,34234],[],[0,2072],[0,48123],[],[0,1302],[0,21840],[],[0,2501],[0,411],[],[0,4978],[0,3447],[],[0,4590],[0,44945],[],[0,4986],[0,18174],[],[0,417],[0,7101],[],[0,475],[0,44007],[],[0,1797],[0,40491],[],[0,3949],[0,30839],[],[0,116],[0,2209],[],[0,1314],[0,4945],[],[0,3854],[0,28114],[],[0,4715],[0,40790],[],[0,1075],[0,45688],[],[0,2629],[0,31887],[],[0,2000],[0,21751],[],[0,2841],[0,950],[],[0,4644],[0,6968],[],[0,816],[0,45516],[],[0,708],[0,5247],[],[0,994],[0,46898],[],[0,843],[0,10750],[],[0,1787],[0,20585],[],[0,3562],[0,25736],[],[0,4195],[0,7843],[],[0,4892],[0,28094],[],[0,1623],[0,38495],[],[0,3770],[0,18863],[],[0,4732],[0,13690],[],[0,4578],[0,578],[],[0,4310],[0,13853],[],[0,1820],[0,23494],[],[0,2161],[0,7808],[],[0,2845],[0,12107],[],[0,2552],[0,46439],[],[0,3199],[0,9164],[],[0,731],[0,32542],[],[0,244],[0,45127],[],[0,1224],[0,49361],[],[0,4486],[0,2021],[],[0,3887],[0,18931],[],[0,3288],[0,25952],[],[0,4628],[0,32636],[],[0,831],[0,9404],[],[0,1829],[0,3155],[],[0,1373],[0,47580],[],[0,2932],[0,9200],[],[0,1701],[0,26611],[],[0,256],[0,49318],[],[0,3114],[0,42750],[],[0,1695],[0,2779],[],[0,3433],[0,11753],[],[0,4099],[0,42472],[],[0,1914],[0,180],[],[0,1036],[0,17532],[],[0,744],[0,17978],[],[0,4195],[0,17702],[],[0,806],[0,16570],[],[0,3916],[0,32522],[],[0,3400],[0,42520],[],[0,3852],[0,26208],[],[0,4908],[0,47686],[],[0,3634],[0,33926],[],[0,2758],[0,11536],[],[0,61],[0,46630],[],[0,4620],[0,38999],[],[0,4465],[0,34640],[],[0,1170],[0,22187],[],[0,13],[0,17357],[],[0,3652],[0,17485],[],[0,5126],[0,46910],[],[0,2460],[0,28100],[],[0,58],[0,27627],[],[0,3282],[0,43140],[],[0,2920],[0,46810],[],[0,376],[0,49595],[],[0,1019],[0,35452],[],[0,4208],[0,46694],[],[0,1632],[0,43020],[],[0,4347],[0,45730],[],[0,1901],[0,17265],[],[0,2053],[0,6819],[],[0,1799],[0,4217],[],[0,1629],[0,9564],[],[0,4709],[0,11541],[],[0,1548],[0,32574],[],[0,252],[0,48537],[],[0,1196],[0,46939],[],[0,7],[0,23349],[],[0,2969],[0,11191],[],[0,3624],[0,3516],[],[0,4777],[0,1007],[],[0,3973],[0,34412],[],[0,1029],[0,25769],[],[0,4067],[0,9819],[],[0,671],[0,34029],[],[0,1104],[0,28097],[],[0,3030],[0,45709],[],[0,184],[0,7326],[],[0,2825],[0,41997],[],[0,1546],[0,36549],[],[0,2781],[0,24235],[],[0,1482],[0,17087],[],[0,4905],[0,1844],[],[0,2819],[0,40250],[],[0,1030],[0,49032],[],[0,4418],[0,47491],[],[0,3135],[0,42731],[],[0,729],[0,1666],[],[0,756],[0,3046],[],[0,4762],[0,28453],[],[0,1806],[0,39823],[],[0,1243],[0,239],[],[0,1124],[0,41655],[],[0,1698],[0,23412],[],[0,1628],[0,14793],[],[0,3928],[0,8142],[],[0,4881],[0,29019],[],[0,2860],[0,40418],[],[0,4972],[0,9889],[],[0,2071],[0,29588],[],[0,3715],[0,44840],[],[0,4325],[0,7293],[],[0,5120],[0,34734],[],[0,679],[0,10042],[],[0,2959],[0,32219],[],[0,5289],[0,34937],[],[0,4135],[0,18359],[],[0,4408],[0,1154],[],[0,2349],[0,46907],[],[0,4054],[0,4334],[],[0,4018],[0,26975],[],[0,1218],[0,31138],[],[0,5059],[0,14418],[],[0,479],[0,4882],[],[0,1330],[0,17397],[],[0,454],[0,19968],[],[0,5236],[0,23374],[],[0,2501],[0,2531],[],[0,808],[0,49529],[],[0,574],[0,37447],[],[0,3165],[0,11495],[],[0,2700],[0,41353],[],[0,3524],[0,3370],[],[0,1097],[0,2768],[],[0,1505],[0,30122],[],[0,2140],[0,28011],[],[0,581],[0,24780],[],[0,5279],[0,9827],[],[0,2257],[0,47413],[],[0,287],[0,14045],[],[0,4906],[0,34443],[],[0,4750],[0,39006],[],[0,997],[0,20433],[],[0,70],[0,34192],[],[0,5024],[0,35750],[],[0,434],[0,38353],[],[0,5127],[0,19492],[],[0,1444],[0,45230],[],[0,1900],[0,46785],[],[0,4311],[0,17675],[],[0,1881],[0,49285],[],[0,3026],[0,4830],[],[0,4586],[0,44255],[],[0,1264],[0,354],[],[0,3245],[0,43208],[],[0,2583],[0,44825],[],[0,2278],[0,45691],[],[0,4460],[0,19603],[],[0,4468],[0,40989],[],[0,232],[0,17984],[],[0,1364],[0,9964],[],[0,4226],[0,13627],[],[0,5090],[0,42997],[],[0,730],[0,25625],[],[0,5122],[0,48757],[],[0,1646],[0,34617],[],[0,1981],[0,2707],[],[0,3659],[0,3155],[],[0,687],[0,33011],[],[0,4204],[0,7798],[],[0,3471],[0,6837],[],[0,1289],[0,15563],[],[0,202],[0,37156],[],[0,488],[0,23779],[],[0,4870],[0,32928],[],[0,4932],[0,8925],[],[0,2409],[0,2687],[],[0,4055],[0,39732],[],[0,3432],[0,10454],[],[0,2995],[0,24129],[],[0,3001],[0,44047],[],[0,4586],[0,48547],[],[0,2217],[0,34104],[],[0,3067],[0,2388],[],[0,4178],[0,16052],[],[0,2905],[0,20689],[],[0,3118],[0,14227],[],[0,4326],[0,39802],[],[0,2634],[0,15335],[],[0,900],[0,895],[],[0,4510],[0,2974],[],[0,177],[0,43911],[],[0,252],[0,22344],[],[0,2448],[0,6657],[],[0,3885],[0,6738],[],[0,4050],[0,21855],[],[0,2523],[0,24644],[],[0,941],[0,2678],[],[0,4762],[0,26473],[],[0,5284],[0,37060],[],[0,362],[0,19717],[],[0,3544],[0,40741],[],[0,3779],[0,49969],[],[0,4647],[0,48742],[],[0,732],[0,16859],[],[0,3482],[0,44966],[],[0,3837],[0,49768],[],[0,2229],[0,47767],[],[0,720],[0,35628],[],[0,821],[0,12310],[],[0,3496],[0,38104],[],[0,611],[0,41888],[],[0,3129],[0,40595],[],[0,3546],[0,48316],[],[0,5083],[0,7149],[],[0,2274],[0,21331],[],[0,3535],[0,17179],[],[0,2085],[0,35350],[],[0,3829],[0,48606],[],[0,3378],[0,18723],[],[0,3336],[0,49234],[],[0,1375],[0,13281],[],[0,2716],[0,7806],[],[0,3355],[0,22695],[],[0,3176],[0,17783],[],[0,2177],[0,17406],[],[0,1190],[0,48611],[],[0,229],[0,11216],[],[0,4784],[0,6899],[],[0,2117],[0,48183],[],[0,1317],[0,2920],[],[0,5299],[0,27002],[],[0,1085],[0,32559],[],[0,4915],[0,46778],[],[0,2302],[0,17219],[],[0,5143],[0,15587],[],[0,1732],[0,4659],[],[0,467],[0,48752],[],[0,2843],[0,46657],[],[0,1909],[0,3231],[],[0,2814],[0,13599],[],[0,1034],[0,31837],[],[0,4719],[0,20167],[],[0,1028],[0,46121],[],[0,1926],[0,27661],[],[0,221],[0,45401],[],[0,3944],[0,4380],[],[0,4904],[0,15362],[],[0,1020],[0,22015],[],[0,361],[0,43688],[],[0,4593],[0,35223],[],[0,1144],[0,42501],[],[0,4035],[0,20775],[],[0,943],[0,42805],[],[0,116],[0,31737],[],[0,4652],[0,48755],[],[0,4157],[0,27892],[],[0,3946],[0,18269],[],[0,2884],[0,28407],[],[0,4454],[0,38671],[],[0,2481],[0,39458],[],[0,1748],[0,6364],[],[0,3046],[0,43138],[],[0,481],[0,3773],[],[0,3503],[0,48689],[],[0,5157],[0,35811],[],[0,2355],[0,35178],[],[0,4836],[0,12821],[],[0,3238],[0,10055],[],[0,2378],[0,25726],[],[0,1034],[0,3240],[],[0,276],[0,7765],[],[0,3864],[0,12105],[],[0,415],[0,7240],[],[0,2830],[0,31020],[],[0,5128],[0,16708],[],[0,3513],[0,18742],[],[0,5229],[0,45006],[],[0,1896],[0,20941],[],[0,2936],[0,4944],[],[0,5254],[0,13178],[],[0,4235],[0,20382],[],[0,5016],[0,20718],[],[0,376],[0,8260],[],[0,299],[0,4616],[],[0,1770],[0,7546],[],[0,959],[0,2424],[],[0,549],[0,29354],[],[0,1502],[0,24214],[],[0,2163],[0,40881],[],[0,1259],[0,4196],[],[0,4667],[0,45042],[],[0,3750],[0,10558],[],[0,5477],[0,11913],[],[0,4848],[0,40559],[],[0,4005],[0,5838],[],[0,2647],[0,7707],[],[0,4840],[0,21191],[],[0,1813],[0,4365],[],[0,2246],[0,4971],[],[0,2537],[0,6275],[],[0,4105],[0,5852],[],[0,900],[0,6280],[],[0,1538],[0,14346],[],[0,1234],[0,13240],[],[0,4745],[0,32918],[],[0,1987],[0,14058],[],[0,3208],[0,7491],[],[0,850],[0,42802],[],[0,4948],[0,13783],[],[0,2134],[0,43565],[],[0,2532],[0,32144],[],[0,2408],[0,34611],[],[0,506],[0,20683],[],[0,1208],[0,11087],[],[0,2737],[0,23478],[],[0,497],[0,43141],[],[0,1429],[0,39180],[],[0,2278],[0,27349],[],[0,4408],[0,10951],[],[0,3313],[0,31224],[],[0,4877],[0,41213],[],[0,5224],[0,9437],[],[0,4234],[0,22177],[],[0,1309],[0,8042],[],[0,4707],[0,10493],[],[0,410],[0,48979],[],[0,1152],[0,28068],[],[0,3416],[0,21086],[],[0,1028],[0,5656],[],[0,532],[0,3751],[],[0,1250],[0,6213],[],[0,3426],[0,10912],[],[0,1076],[0,43080],[],[0,3104],[0,31482],[],[0,4934],[0,15827],[],[0,2560],[0,12254],[],[0,1433],[0,25692],[],[0,2150],[0,7258],[],[0,2562],[0,16822],[],[0,2199],[0,49466],[],[0,5301],[0,45187],[],[0,2715],[0,10215],[],[0,1419],[0,36648],[],[0,5412],[0,46827],[],[0,2773],[0,14043],[],[0,5308],[0,42197],[],[0,1255],[0,23605],[],[0,1225],[0,37198],[],[0,3350],[0,29098],[],[0,132],[0,15870],[],[0,1481],[0,15904],[],[0,3447],[0,5238],[],[0,691],[0,33727],[],[0,1949],[0,39706],[],[0,5350],[0,49169],[],[0,5005],[0,41824],[],[0,2979],[0,45370],[],[0,703],[0,13209],[],[0,2198],[0,2820],[],[0,5003],[0,19525],[],[0,5220],[0,48192],[],[0,1713],[0,46167],[],[0,3888],[0,2679],[],[0,295],[0,22874],[],[0,705],[0,6287],[],[0,3464],[0,28233],[],[0,1507],[0,36709],[],[0,3872],[0,46753],[],[0,4061],[0,2989],[],[0,4241],[0,37704],[],[0,3720],[0,32741],[],[0,3623],[0,48197],[],[0,1872],[0,16812],[],[0,4211],[0,35178],[],[0,5464],[0,28411],[],[0,3969],[0,19311],[],[0,4931],[0,4349],[],[0,1965],[0,34540],[],[0,5197],[0,30566],[],[0,1010],[0,20857],[],[0,1164],[0,12724],[],[0,1407],[0,17256],[],[0,2662],[0,35502],[],[0,2035],[0,19695],[],[0,503],[0,3711],[],[0,2906],[0,25353],[],[0,5487],[0,47495],[],[0,1106],[0,33310],[],[0,3002],[0,12821],[],[0,607],[0,1408],[],[0,3351],[0,24066],[],[0,1531],[0,38095],[],[0,2519],[0,45818],[],[0,4230],[0,29638],[],[0,554],[0,205],[],[0,4573],[0,41149],[],[0,1162],[0,14280],[],[0,3290],[0,17609],[],[0,3910],[0,6317],[],[0,2429],[0,23919],[],[0,3137],[0,15961],[],[0,5366],[0,27674],[],[0,311],[0,48285],[],[0,4869],[0,47562],[],[0,812],[0,30270],[],[0,2241],[0,3905],[],[0,425],[0,45409],[],[0,3089],[0,29067],[],[0,4461],[0,45359],[],[0,3157],[0,23806],[],[0,2741],[0,7688],[],[0,3268],[0,37385],[],[0,2562],[0,573],[],[0,670],[0,37449],[],[0,1510],[0,12232],[],[0,5195],[0,16807],[],[0,443],[0,28428],[],[0,5265],[0,12478],[],[0,23],[0,49872],[],[0,33],[0,13147],[],[0,1462],[0,46518],[],[0,3988],[0,31805],[],[0,9],[0,49162],[],[0,4372],[0,34438],[],[0,1053],[0,16660],[],[0,4542],[0,38250],[],[0,5601],[0,38683],[],[0,724],[0,33518],[],[0,3183],[0,22929],[],[0,5537],[0,6753],[],[0,1711],[0,14393],[],[0,5608],[0,48070],[],[0,1743],[0,12652],[],[0,3027],[0,14739],[],[0,2176],[0,5676],[],[0,865],[0,12229],[],[0,2278],[0,6643],[],[0,1461],[0,23611],[],[0,1543],[0,45445],[],[0,2176],[0,11512],[],[0,4058],[0,23197],[],[0,517],[0,29671],[],[0,1363],[0,45331],[],[0,1806],[0,17625],[],[0,5417],[0,30812],[],[0,1268],[0,1626],[],[0,2816],[0,48487],[],[0,158],[0,26969],[],[0,1683],[0,36991],[],[0,3684],[0,44983],[],[0,2641],[0,18274],[],[0,2171],[0,43236],[],[0,4832],[0,300],[],[0,4438],[0,16050],[],[0,1079],[0,46067],[],[0,2647],[0,25321],[],[0,1799],[0,43651],[],[0,2661],[0,37279],[],[0,3750],[0,37868],[],[0,1973],[0,45845],[],[0,960],[0,29885],[],[0,2204],[0,20293],[],[0,3827],[0,17031],[],[0,3649],[0,43043],[],[0,3712],[0,37177],[],[0,4096],[0,1954],[],[0,3233],[0,46566],[],[0,4312],[0,33660],[],[0,1853],[0,17835],[],[0,49],[0,29983],[],[0,4466],[0,46850],[],[0,5109],[0,28528],[],[0,3488],[0,4114],[],[0,537],[0,13608],[],[0,2413],[0,18869],[],[0,1948],[0,23267],[],[0,2867],[0,30900],[],[0,2871],[0,23145],[],[0,2660],[0,3661],[],[0,3883],[0,33025],[],[0,3966],[0,39307],[],[0,3344],[0,35121],[],[0,2982],[0,38711],[],[0,3872],[0,30679],[],[0,3682],[0,27024],[],[0,1724],[0,28354],[],[0,2653],[0,32458],[],[0,275],[0,29234],[],[0,948],[0,15656],[],[0,2113],[0,3275],[],[0,2969],[0,16435],[],[0,5039],[0,25775],[],[0,572],[0,8496],[],[0,3094],[0,39197],[],[0,2807],[0,46576],[],[0,3694],[0,10511],[],[0,5473],[0,7214],[],[0,5497],[0,43892],[],[0,2439],[0,27092],[],[0,246],[0,8067],[],[0,5675],[0,1211],[],[0,3671],[0,21317],[],[0,1784],[0,15938],[],[0,5553],[0,40713],[],[0,3823],[0,36817],[],[0,4550],[0,12732],[],[0,119],[0,12726],[],[0,2653],[0,47440],[],[0,303],[0,35119],[],[0,764],[0,5662],[],[0,5155],[0,47939],[],[0,2762],[0,24968],[],[0,2272],[0,27283],[],[0,3839],[0,44507],[],[0,2328],[0,3206],[],[0,3834],[0,42038],[],[0,3978],[0,18422],[],[0,1977],[0,40322],[],[0,4303],[0,8440],[],[0,2576],[0,24430],[],[0,797],[0,37823],[],[0,2836],[0,46247],[],[0,3737],[0,11679],[],[0,2954],[0,35519],[],[0,3643],[0,31555],[],[0,17],[0,28389],[],[0,260],[0,10857],[],[0,5144],[0,22199],[],[0,1613],[0,32863],[],[0,530],[0,26808],[],[0,3334],[0,17092],[],[0,2436],[0,37016],[],[0,4656],[0,33169],[],[0,1633],[0,37122],[],[0,1099],[0,33445],[],[0,2736],[0,25552],[],[0,3772],[0,36775],[],[0,2975],[0,27114],[],[0,2644],[0,25387],[],[0,5335],[0,46049],[],[0,2472],[0,47662],[],[0,4446],[0,16843],[],[0,2001],[0,20235],[],[0,4529],[0,16326],[],[0,2382],[0,38163],[],[0,1703],[0,49416],[],[0,4281],[0,25200],[],[0,95],[0,35020],[],[0,3886],[0,44307],[],[0,5615],[0,37788],[],[0,5586],[0,44754],[],[0,5071],[0,49235],[],[0,3173],[0,4013],[],[0,5248],[0,11446],[],[0,3800],[0,33741],[],[0,1111],[0,38267],[],[0,3127],[0,27504],[],[0,263],[0,43002],[],[0,5636],[0,1475],[],[0,4777],[0,29856],[],[0,4566],[0,28577],[],[0,4379],[0,13114],[],[0,2848],[0,35381],[],[0,2038],[0,31541],[],[0,1714],[0,39008],[],[0,869],[0,21332],[],[0,1794],[0,24671],[],[0,4308],[0,24590],[],[0,250],[0,48636],[],[0,926],[0,48263],[],[0,1893],[0,15313],[],[0,3879],[0,33135],[],[0,1661],[0,33639],[],[0,4024],[0,38753],[],[0,5273],[0,4208],[],[0,3951],[0,20794],[],[0,1798],[0,4297],[],[0,5532],[0,32415],[],[0,354],[0,43184],[],[0,4576],[0,28110],[],[0,2599],[0,41187],[],[0,1082],[0,11114],[],[0,2369],[0,17414],[],[0,1624],[0,35560],[],[0,3539],[0,30552],[],[0,1090],[0,37364],[],[0,594],[0,31358],[],[0,760],[0,38824],[],[0,3986],[0,1937],[],[0,2176],[0,5793],[],[0,553],[0,22790],[],[0,1497],[0,12694],[],[0,4948],[0,38430],[],[0,3640],[0,7707],[],[0,1394],[0,48090],[],[0,631],[0,42481],[],[0,5197],[0,41461],[],[0,408],[0,38082],[],[0,290],[0,40745],[],[0,3292],[0,3728],[],[0,3768],[0,16393],[],[0,4269],[0,4051],[],[0,303],[0,6461],[],[0,545],[0,11829],[],[0,1703],[0,951],[],[0,438],[0,26608],[],[0,1970],[0,44622],[],[0,4800],[0,41893],[],[0,2305],[0,5981],[],[0,4962],[0,12870],[],[0,1353],[0,11861],[],[0,59],[0,46106],[],[0,1299],[0,30325],[],[0,4637],[0,32230],[],[0,4062],[0,10896],[],[0,11],[0,12382],[],[0,4572],[0,12730],[],[0,1639],[0,47576],[],[0,4255],[0,2138],[],[0,180],[0,14344],[],[0,3825],[0,38616],[],[0,3160],[0,22164],[],[0,694],[0,21003],[],[0,2107],[0,15119],[],[0,407],[0,8043],[],[0,2168],[0,19682],[],[0,4121],[0,27319],[],[0,2811],[0,26254],[],[0,105],[0,117],[],[0,2324],[0,33468],[],[0,5438],[0,23064],[],[0,269],[0,20505],[],[0,1331],[0,18441],[],[0,1002],[0,6808],[],[0,3494],[0,13093],[],[0,4988],[0,18528],[],[0,1706],[0,8213],[],[0,3418],[0,6852],[],[0,4094],[0,7481],[],[0,1856],[0,48844],[],[0,483],[0,30613],[],[0,1926],[0,20485],[],[0,5444],[0,28919],[],[0,1216],[0,21961],[],[0,2419],[0,34963],[],[0,5757],[0,13859],[],[0,5142],[0,966],[],[0,3996],[0,22173],[],[0,4088],[0,27360],[],[0,4819],[0,33061],[],[0,4930],[0,33018],[],[0,4647],[0,20291],[],[0,2698],[0,18539],[],[0,4713],[0,39433],[],[0,3041],[0,28898],[],[0,2112],[0,16289],[],[0,669],[0,13057],[],[0,905],[0,7039],[],[0,1780],[0,44394],[],[0,3518],[0,17278],[],[0,5598],[0,47295],[],[0,756],[0,17655],[],[0,4],[0,36871],[],[0,5833],[0,28622],[],[0,5345],[0,14440],[],[0,87],[0,7824],[],[0,2744],[0,41216],[],[0,3984],[0,44941],[],[0,979],[0,37458],[],[0,3939],[0,27703],[],[0,5078],[0,49758],[],[0,1113],[0,26733],[],[0,3186],[0,15221],[],[0,1525],[0,30432],[],[0,1332],[0,32097],[],[0,727],[0,17544],[],[0,5705],[0,22186],[],[0,1178],[0,34485],[],[0,5589],[0,43575],[],[0,2971],[0,26396],[],[0,214],[0,27879],[],[0,5064],[0,11486],[],[0,559],[0,48165],[],[0,2435],[0,29203],[],[0,519],[0,45095],[],[0,804],[0,48719],[],[0,869],[0,48737],[],[0,5286],[0,32644],[],[0,4198],[0,30912],[],[0,3389],[0,24979],[],[0,4566],[0,8401],[],[0,3226],[0,43067],[],[0,2186],[0,17235],[],[0,2932],[0,30077],[],[0,3336],[0,26522],[],[0,1804],[0,12715],[],[0,4174],[0,612],[],[0,24],[0,40732],[],[0,1292],[0,17420],[],[0,1470],[0,25484],[],[0,2088],[0,27238],[],[0,4099],[0,47001],[],[0,3001],[0,36413],[],[0,1538],[0,43341],[],[0,4357],[0,11907],[],[0,3070],[0,19372],[],[0,4411],[0,33840],[],[0,5573],[0,9740],[],[0,1299],[0,30230],[],[0,1321],[0,48242],[],[0,341],[0,19749],[],[0,2915],[0,37372],[],[0,5752],[0,31309],[],[0,3054],[0,1156],[],[0,5857],[0,46552],[],[0,1562],[0,35330],[],[0,1244],[0,25322],[],[0,3708],[0,45949],[],[0,969],[0,33506],[],[0,517],[0,5259],[],[0,2772],[0,5015],[],[0,1037],[0,43616],[],[0,1511],[0,27030],[],[0,559],[0,3508],[],[0,5181],[0,1607],[],[0,4400],[0,759],[],[0,4491],[0,36969],[],[0,2985],[0,16816],[],[0,1808],[0,31433],[],[0,528],[0,449],[],[0,2672],[0,30767],[],[0,1236],[0,28963],[],[0,2889],[0,45144],[],[0,2115],[0,8730],[],[0,907],[0,44733],[],[0,1549],[0,36107],[],[0,2955],[0,44502],[],[0,19],[0,38008],[],[0,4397],[0,39280],[],[0,5745],[0,23665],[],[0,4023],[0,37182],[],[0,2475],[0,3204],[],[0,4272],[0,5878],[],[0,1800],[0,30451],[],[0,349],[0,27926],[],[0,5405],[0,8456],[],[0,1380],[0,13696],[],[0,5655],[0,14573],[],[0,2464],[0,42472],[],[0,1067],[0,38875],[],[0,1948],[0,9280],[],[0,2650],[0,17926],[],[0,308],[0,31840],[],[0,3747],[0,29251],[],[0,5747],[0,17868],[],[0,889],[0,26854],[],[0,3516],[0,37165],[],[0,2036],[0,15317],[],[0,31],[0,10041],[],[0,3952],[0,6301],[],[0,4446],[0,15741],[],[0,3023],[0,23786],[],[0,2590],[0,21414],[],[0,3716],[0,42687],[],[0,5924],[0,19970],[],[0,3177],[0,19796],[],[0,5388],[0,27615],[],[0,4689],[0,28108],[],[0,3121],[0,23829],[],[0,2883],[0,26699],[],[0,1450],[0,6181],[],[0,5223],[0,26197],[],[0,1920],[0,10071],[],[0,5392],[0,18269],[],[0,4648],[0,11942],[],[0,3204],[0,47715],[],[0,2420],[0,11953],[],[0,4033],[0,1381],[],[0,161],[0,44562],[],[0,1747],[0,13621],[],[0,3832],[0,7833],[],[0,2640],[0,18876],[],[0,5708],[0,25903],[],[0,3761],[0,2170],[],[0,5845],[0,40468],[],[0,1344],[0,39151],[],[0,3079],[0,22338],[],[0,4319],[0,39577],[],[0,2751],[0,10418],[],[0,3152],[0,14980],[],[0,1206],[0,6868],[],[0,374],[0,36963],[],[0,2739],[0,31228],[],[0,952],[0,4726],[],[0,2760],[0,12280],[],[0,963],[0,40284],[],[0,1698],[0,36928],[],[0,5873],[0,4448],[],[0,1087],[0,49896],[],[0,3855],[0,12160],[],[0,2258],[0,29814],[],[0,3409],[0,11863],[],[0,2922],[0,33221],[],[0,3461],[0,4159],[],[0,5579],[0,21975],[],[0,4027],[0,2955],[],[0,2794],[0,34174],[],[0,2325],[0,22840],[],[0,3013],[0,43516],[],[0,1130],[0,1220],[],[0,1162],[0,682],[],[0,4010],[0,22137],[],[0,3683],[0,10878],[],[0,2757],[0,48203],[],[0,1872],[0,28535],[],[0,529],[0,40869],[],[0,1161],[0,32467],[],[0,4277],[0,38198],[],[0,3553],[0,9120],[],[0,11],[0,34576],[],[0,1878],[0,18274],[],[0,1335],[0,25597],[],[0,4262],[0,28719],[],[0,3687],[0,9607],[],[0,3517],[0,3319],[],[0,4003],[0,17096],[],[0,1069],[0,24653],[],[0,4282],[0,3932],[],[0,4546],[0,28518],[],[0,1339],[0,20706],[],[0,5700],[0,15294],[],[0,5084],[0,24523],[],[0,52],[0,25386],[],[0,4132],[0,27108],[],[0,2109],[0,30857],[],[0,2710],[0,24827],[],[0,5330],[0,6135],[],[0,5],[0,46703],[],[0,4702],[0,2399],[],[0,720],[0,27192],[],[0,3308],[0,15130],[],[0,2429],[0,29670],[],[0,2581],[0,28506],[],[0,2362],[0,15791],[],[0,332],[0,43027],[],[0,2519],[0,48011],[],[0,3629],[0,21263],[],[0,5603],[0,39314],[],[0,1776],[0,27117],[],[0,3280],[0,37470],[],[0,480],[0,3120],[],[0,1622],[0,3224],[],[0,4937],[0,37913],[],[0,5406],[0,43035],[],[0,4450],[0,15270],[],[0,1680],[0,29476],[],[0,5759],[0,24781],[],[0,5287],[0,41286],[],[0,1360],[0,10327],[],[0,750],[0,44534],[],[0,1030],[0,19960],[],[0,748],[0,7131],[],[0,1],[0,6796],[],[0,3265],[0,4063],[],[0,3266],[0,2005],[],[0,218],[0,18359],[],[0,3058],[0,20322],[],[0,4333],[0,2618],[],[0,1210],[0,32387],[],[0,5981],[0,26449],[],[0,4930],[0,20713],[],[0,4145],[0,49051],[],[0,6004],[0,23911],[],[0,5168],[0,17995],[],[0,483],[0,13028],[],[0,2686],[0,47828],[],[0,2310],[0,5728],[],[0,3628],[0,5158],[],[0,1541],[0,40512],[],[0,5197],[0,15872],[],[0,1226],[0,1845],[],[0,228],[0,31159],[],[0,2554],[0,43976],[],[0,5945],[0,7658],[],[0,2017],[0,32720],[],[0,2917],[0,23214],[],[0,3355],[0,39740],[],[0,5494],[0,44073],[],[0,150],[0,46935],[],[0,3303],[0,7524],[],[0,417],[0,34673],[],[0,870],[0,4047],[],[0,656],[0,41821],[],[0,5667],[0,35969],[],[0,2933],[0,9180],[],[0,2080],[0,6769],[],[0,1684],[0,31264],[],[0,5799],[0,41402],[],[0,499],[0,7734],[],[0,3483],[0,48684],[],[0,461],[0,46309],[],[0,3157],[0,33206],[],[0,202],[0,48865],[],[0,4568],[0,41382],[],[0,4296],[0,41786],[],[0,5424],[0,5988],[],[0,2545],[0,42956],[],[0,1368],[0,44381],[],[0,5610],[0,22531],[],[0,4956],[0,23959],[],[0,892],[0,2335],[],[0,2731],[0,44903],[],[0,3107],[0,35995],[],[0,3726],[0,34282],[],[0,1862],[0,36643],[],[0,3092],[0,10048],[],[0,3226],[0,22308],[],[0,1309],[0,49974],[],[0,2184],[0,45806],[],[0,3208],[0,12345],[],[0,3382],[0,16184],[],[0,384],[0,45503],[],[0,295],[0,45922],[],[0,1303],[0,38128],[],[0,1070],[0,27271],[],[0,2399],[0,43653],[],[0,2860],[0,1473],[],[0,3994],[0,46748],[],[0,5382],[0,2847],[],[0,4055],[0,18214],[],[0,2218],[0,11997],[],[0,5581],[0,45210],[],[0,5932],[0,6606],[],[0,4130],[0,16906],[],[0,1601],[0,13644],[],[0,3853],[0,10480],[],[0,455],[0,34721],[],[0,5704],[0,22345],[],[0,1932],[0,5223],[],[0,2876],[0,19142],[],[0,4312],[0,24081],[],[0,472],[0,42014],[],[0,4130],[0,32425],[],[0,2282],[0,43547],[],[0,959],[0,30500],[],[0,939],[0,2467],[],[0,5557],[0,15679],[],[0,1760],[0,23033],[],[0,1042],[0,6391],[],[0,5836],[0,48337],[],[0,5970],[0,43789],[],[0,4691],[0,37143],[],[0,1601],[0,30477],[],[0,3878],[0,27594],[],[0,5110],[0,32980],[],[0,1088],[0,33137],[],[0,2550],[0,8949],[],[0,3780],[0,3953],[],[0,3210],[0,37366],[],[0,2823],[0,35235],[],[0,5779],[0,34694],[],[0,3847],[0,32758],[],[0,2944],[0,46235],[],[0,839],[0,44732],[],[0,867],[0,33276],[],[0,4855],[0,3362],[],[0,6146],[0,11359],[],[0,2828],[0,42467],[],[0,1589],[0,10175],[],[0,5305],[0,15953],[],[0,325],[0,14043],[],[0,2722],[0,11575],[],[0,3345],[0,2571],[],[0,935],[0,41576],[],[0,2394],[0,23805],[],[0,4902],[0,26060],[],[0,1021],[0,22815],[],[0,3665],[0,5266],[],[0,5583],[0,23335],[],[0,2249],[0,8128],[],[0,776],[0,22870],[],[0,2357],[0,27781],[],[0,280],[0,21640],[],[0,4215],[0,24888],[],[0,2704],[0,9189],[],[0,261],[0,33019],[],[0,4293],[0,45941],[],[0,3516],[0,45346],[],[0,4462],[0,11311],[],[0,4832],[0,28590],[],[0,5832],[0,31937],[],[0,5121],[0,12674],[],[0,4728],[0,46259],[],[0,537],[0,44958],[],[0,4127],[0,42214],[],[0,3374],[0,2520],[],[0,5040],[0,2459],[],[0,364],[0,38514],[],[0,4604],[0,17361],[],[0,3050],[0,38952],[],[0,2014],[0,8493],[],[0,5529],[0,10881],[],[0,4735],[0,18823],[],[0,2686],[0,47491],[],[0,6022],[0,6166],[],[0,3776],[0,10746],[],[0,6041],[0,40546],[],[0,6102],[0,21829],[],[0,5201],[0,13593],[],[0,6166],[0,15783],[],[0,1462],[0,7182],[],[0,2780],[0,4040],[],[0,502],[0,14679],[],[0,4917],[0,4018],[],[0,6058],[0,27205],[],[0,2874],[0,35174],[],[0,5385],[0,20451],[],[0,2826],[0,17899],[],[0,5739],[0,20566],[],[0,5847],[0,5353],[],[0,1666],[0,17320],[],[0,5719],[0,5484],[],[0,575],[0,21350],[],[0,1355],[0,46971],[],[0,3453],[0,20476],[],[0,2556],[0,14753],[],[0,2939],[0,11290],[],[0,4251],[0,14333],[],[0,1202],[0,26973],[],[0,146],[0,11674],[],[0,2884],[0,34596],[],[0,5136],[0,5710],[],[0,4130],[0,8738],[],[0,2910],[0,7081],[],[0,1171],[0,41988],[],[0,1974],[0,32573],[],[0,988],[0,21454],[],[0,867],[0,25144],[],[0,4126],[0,7429],[],[0,979],[0,8142],[],[0,1923],[0,49473],[],[0,4727],[0,43132],[],[0,743],[0,14534],[],[0,4730],[0,27945],[],[0,4022],[0,6109],[],[0,966],[0,20733],[],[0,5794],[0,6336],[],[0,1502],[0,2730],[],[0,1530],[0,40032],[],[0,3032],[0,41930],[],[0,622],[0,17120],[],[0,1542],[0,3688],[],[0,3356],[0,878],[],[0,4500],[0,45043],[],[0,1848],[0,39052],[],[0,1724],[0,39478],[],[0,595],[0,37337],[],[0,2051],[0,22225],[],[0,5570],[0,7984],[],[0,3620],[0,41856],[],[0,5573],[0,16923],[],[0,2765],[0,42900],[],[0,1558],[0,23749],[],[0,3029],[0,35266],[],[0,5037],[0,43359],[],[0,769],[0,49260],[],[0,4339],[0,37633],[],[0,61],[0,9244],[],[0,978],[0,31267],[],[0,20],[0,10846],[],[0,1473],[0,15451],[],[0,1587],[0,31377],[],[0,5696],[0,21837],[],[0,705],[0,15218],[],[0,5080],[0,642],[],[0,4931],[0,3273],[],[0,3117],[0,33208],[],[0,2974],[0,21989],[],[0,5228],[0,29951],[],[0,5911],[0,18388],[],[0,4420],[0,9180],[],[0,2772],[0,33320],[],[0,3400],[0,24423],[],[0,655],[0,7671],[],[0,1257],[0,10082],[],[0,5625],[0,2767],[],[0,1670],[0,3372],[],[0,5555],[0,21252],[],[0,1909],[0,13666],[],[0,5996],[0,33712],[],[0,742],[0,26241],[],[0,5210],[0,16779],[],[0,1876],[0,1375],[],[0,4058],[0,971],[],[0,2721],[0,1148],[],[0,1047],[0,29722],[],[0,5939],[0,22332],[],[0,4686],[0,46204],[],[0,2540],[0,24752],[],[0,4726],[0,7438],[],[0,405],[0,15588],[],[0,4132],[0,36900],[],[0,5601],[0,35419],[],[0,3284],[0,13492],[],[0,1283],[0,23053],[],[0,5669],[0,14791],[],[0,1928],[0,19196],[],[0,5640],[0,25528],[],[0,4898],[0,5126],[],[0,5861],[0,33225],[],[0,2253],[0,39441],[],[0,2457],[0,26678],[],[0,560],[0,44417],[],[0,1361],[0,39917],[],[0,4873],[0,14289],[],[0,6270],[0,20774],[],[0,5419],[0,48761],[],[0,2453],[0,10991],[],[0,4746],[0,24428],[],[0,228],[0,4149],[],[0,5581],[0,32531],[],[0,5017],[0,22984],[],[0,4638],[0,3528],[],[0,5684],[0,40338],[],[0,1533],[0,38317],[],[0,6143],[0,48685],[],[0,3930],[0,33754],[],[0,4598],[0,33103],[],[0,2553],[0,14766],[],[0,5477],[0,28325],[],[0,4030],[0,1579],[],[0,22],[0,29109],[],[0,3807],[0,43168],[],[0,4577],[0,44729],[],[0,6229],[0,26061],[],[0,703],[0,28330],[],[0,1506],[0,43030],[],[0,351],[0,42445],[],[0,4628],[0,43174],[],[0,6241],[0,49234],[],[0,2492],[0,946],[],[0,1863],[0,24155],[],[0,3402],[0,13976],[],[0,4295],[0,2307],[],[0,4412],[0,38249],[],[0,551],[0,31156],[],[0,2533],[0,12590],[],[0,3032],[0,15624],[],[0,3829],[0,25223],[],[0,245],[0,5760],[],[0,5888],[0,43092],[],[0,5483],[0,47664],[],[0,4474],[0,15518],[],[0,178],[0,35699],[],[0,4405],[0,14055],[],[0,3927],[0,9424],[],[0,717],[0,48000],[],[0,5061],[0,48646],[],[0,849],[0,34591],[],[0,6251],[0,45767],[],[0,2443],[0,49054],[],[0,1898],[0,14322],[],[0,1640],[0,13973],[],[0,362],[0,37126],[],[0,4769],[0,1635],[],[0,3080],[0,49821],[],[0,1208],[0,46816],[],[0,878],[0,21473],[],[0,5750],[0,19331],[],[0,691],[0,22255],[],[0,5619],[0,38298],[],[0,1479],[0,1004],[],[0,1426],[0,43684],[],[0,2843],[0,4731],[],[0,4246],[0,47760],[],[0,3151],[0,29760],[],[0,3941],[0,27399],[],[0,3524],[0,15972],[],[0,5995],[0,28596],[],[0,5626],[0,21652],[],[0,4299],[0,20337],[],[0,2348],[0,25554],[],[0,5218],[0,17117],[],[0,2769],[0,33025],[],[0,872],[0,19166],[],[0,5137],[0,29330],[],[0,4267],[0,46041],[],[0,4231],[0,41167],[],[0,2285],[0,6490],[],[0,3578],[0,33771],[],[0,310],[0,33671],[],[0,2960],[0,26116],[],[0,6040],[0,16569],[],[0,5167],[0,19081],[],[0,3012],[0,29542],[],[0,2593],[0,31850],[],[0,5444],[0,8545],[],[0,5223],[0,6684],[],[0,6396],[0,3230],[],[0,4761],[0,21458],[],[0,4739],[0,6739],[],[0,1713],[0,40082],[],[0,5316],[0,6439],[],[0,2395],[0,35529],[],[0,2797],[0,29694],[],[0,5181],[0,22283],[],[0,962],[0,19717],[],[0,1144],[0,16012],[],[0,5846],[0,35710],[],[0,3648],[0,23185],[],[0,1445],[0,48142],[],[0,2228],[0,17283],[],[0,4280],[0,19205],[],[0,4141],[0,21032],[],[0,2941],[0,27655],[],[0,3338],[0,42386],[],[0,225],[0,43325],[],[0,605],[0,33401],[],[0,4558],[0,14429],[],[0,5944],[0,30931],[],[0,2523],[0,6594],[],[0,1001],[0,13936],[],[0,5581],[0,14589],[],[0,2286],[0,29066],[],[0,4876],[0,35606],[],[0,257],[0,6461],[],[0,3537],[0,34926],[],[0,2315],[0,33598],[],[0,3160],[0,19145],[],[0,5055],[0,45573],[],[0,1444],[0,20245],[],[0,6197],[0,48513],[],[0,3283],[0,19209],[],[0,3657],[0,40878],[],[0,935],[0,25765],[],[0,2945],[0,49339],[],[0,3523],[0,6990],[],[0,419],[0,47227],[],[0,4840],[0,44116],[],[0,1702],[0,37125],[],[0,1702],[0,1154],[],[0,5807],[0,34346],[],[0,2867],[0,24721],[],[0,1411],[0,38088],[],[0,6036],[0,40578],[],[0,644],[0,48112],[],[0,3441],[0,6043],[],[0,4657],[0,27475],[],[0,1655],[0,33314],[],[0,4759],[0,22001],[],[0,6004],[0,27650],[],[0,2222],[0,48397],[],[0,3576],[0,16544],[],[0,4758],[0,22664],[],[0,3837],[0,43627],[],[0,4905],[0,31364],[],[0,3737],[0,1111],[],[0,568],[0,5650],[],[0,1564],[0,26402],[],[0,3660],[0,21144],[],[0,232],[0,38288],[],[0,4799],[0,25640],[],[0,3076],[0,6902],[],[0,2393],[0,20921],[],[0,4617],[0,24014],[],[0,3522],[0,17889],[],[0,5680],[0,18657],[],[0,1707],[0,28207],[],[0,2484],[0,29034],[],[0,2481],[0,4981],[],[0,2618],[0,5295],[],[0,4832],[0,19497],[],[0,1440],[0,36526],[],[0,1926],[0,22465],[],[0,2232],[0,14718],[],[0,4326],[0,21077],[],[0,6226],[0,11490],[],[0,5911],[0,14282],[],[0,6224],[0,38223],[],[0,3587],[0,31116],[],[0,3417],[0,5381],[],[0,810],[0,4832],[],[0,560],[0,13120],[],[0,3186],[0,39524],[],[0,804],[0,3470],[],[0,733],[0,14953],[],[0,3236],[0,30908],[],[0,1890],[0,34125],[],[0,2346],[0,47232],[],[0,2240],[0,23547],[],[0,5042],[0,29127],[],[0,848],[0,39276],[],[0,5030],[0,28435],[],[0,1175],[0,37638],[],[0,915],[0,40579],[],[0,3878],[0,39456],[],[0,6307],[0,25770],[],[0,796],[0,2089],[],[0,5467],[0,31918],[],[0,5944],[0,3322],[],[0,3612],[0,6691],[],[0,5107],[0,36037],[],[0,4106],[0,20375],[],[0,24],[0,6084],[],[0,4363],[0,17901],[],[0,740],[0,19083],[],[0,2722],[0,4605],[],[0,4872],[0,42261],[],[0,4804],[0,8035],[],[0,6430],[0,10535],[],[0,3410],[0,7422],[],[0,2388],[0,6062],[],[0,3749],[0,22016],[],[0,1460],[0,23141],[],[0,823],[0,28826],[],[0,3122],[0,44043],[],[0,4748],[0,45822],[],[0,6324],[0,35923],[],[0,3027],[0,23680],[],[0,6019],[0,16933],[],[0,3524],[0,32320],[],[0,3258],[0,47612],[],[0,4713],[0,7856],[],[0,5163],[0,37440],[],[0,781],[0,497],[],[0,3638],[0,30462],[],[0,5908],[0,38420],[],[0,1247],[0,15831],[],[0,1984],[0,41831],[],[0,5226],[0,5929],[],[0,2769],[0,35010],[],[0,6132],[0,42451],[],[0,775],[0,11194],[],[0,1027],[0,33545],[],[0,5225],[0,1912],[],[0,5429],[0,12500],[],[0,2504],[0,12399],[],[0,3936],[0,19649],[],[0,3731],[0,9678],[],[0,6467],[0,17455],[],[0,1533],[0,12204],[],[0,5543],[0,16550],[],[0,2675],[0,22576],[],[0,1358],[0,33552],[],[0,3161],[0,8032],[],[0,5698],[0,29390],[],[0,1642],[0,34151],[],[0,859],[0,24288],[],[0,6006],[0,29122],[],[0,941],[0,45921],[],[0,3228],[0,30337],[],[0,6340],[0,17835],[],[0,864],[0,45051],[],[0,3424],[0,19876],[],[0,6185],[0,11497],[],[0,93],[0,21428],[],[0,6100],[0,23969],[],[0,5084],[0,36171],[],[0,2382],[0,10468],[],[0,86],[0,27778],[],[0,2217],[0,11643],[],[0,2269],[0,33286],[],[0,4592],[0,29847],[],[0,5766],[0,7532],[],[0,5476],[0,32085],[],[0,6214],[0,43357],[],[0,2765],[0,23132],[],[0,2689],[0,21140],[],[0,4051],[0,49814],[],[0,4306],[0,23520],[],[0,81],[0,6621],[],[0,655],[0,42142],[],[0,5043],[0,33570],[],[0,2707],[0,24691],[],[0,3356],[0,19559],[],[0,6344],[0,33017],[],[0,787],[0,34497],[],[0,1485],[0,25418],[],[0,2726],[0,5362],[],[0,1833],[0,20102],[],[0,2998],[0,39062],[],[0,2611],[0,9355],[],[0,1082],[0,21703],[],[0,4591],[0,15875],[],[0,5254],[0,25557],[],[0,686],[0,31500],[],[0,3848],[0,4957],[],[0,2383],[0,4366],[],[0,3543],[0,15876],[],[0,3931],[0,17013],[],[0,1245],[0,11653],[],[0,3790],[0,46403],[],[0,5836],[0,1502],[],[0,2534],[0,20389],[],[0,1266],[0,41386],[],[0,2706],[0,45227],[],[0,4290],[0,48409],[],[0,539],[0,17900],[],[0,3016],[0,15981],[],[0,5990],[0,38389],[],[0,3886],[0,45976],[],[0,3704],[0,27647],[],[0,1688],[0,28070],[],[0,4024],[0,10363],[],[0,2890],[0,40230],[],[0,5257],[0,48155],[],[0,6101],[0,12387],[],[0,2609],[0,10436],[],[0,2246],[0,18937],[],[0,6053],[0,6521],[],[0,1210],[0,33158],[],[0,915],[0,7266],[],[0,4067],[0,17942],[],[0,6098],[0,32019],[],[0,658],[0,25598],[],[0,3282],[0,44082],[],[0,6325],[0,17720],[],[0,4825],[0,17503],[],[0,4865],[0,30472],[],[0,3405],[0,48910],[],[0,5905],[0,30443],[],[0,5104],[0,7999],[],[0,1511],[0,42688],[],[0,5692],[0,21321],[],[0,852],[0,5997],[],[0,4769],[0,3109],[],[0,1849],[0,13677],[],[0,4516],[0,26807],[],[0,3964],[0,35574],[],[0,711],[0,6439],[],[0,4409],[0,41273],[],[0,685],[0,12366],[],[0,1022],[0,11934],[],[0,242],[0,27289],[],[0,870],[0,20970],[],[0,5182],[0,42728],[],[0,518],[0,48842],[],[0,270],[0,15577],[],[0,5115],[0,17629],[],[0,3793],[0,42174],[],[0,2384],[0,25373],[],[0,2399],[0,324],[],[0,1291],[0,10220],[],[0,2004],[0,48430],[],[0,5143],[0,23940],[],[0,1610],[0,40027],[],[0,1637],[0,33715],[],[0,1733],[0,39111],[],[0,6512],[0,13698],[],[0,4676],[0,48326],[],[0,5260],[0,17883],[],[0,5993],[0,14494],[],[0,1645],[0,25528],[],[0,1167],[0,8727],[],[0,46],[0,29696],[],[0,6074],[0,45119],[],[0,1467],[0,41803],[],[0,1636],[0,15253],[],[0,5405],[0,45537],[],[0,5180],[0,18656],[],[0,3248],[0,43893],[],[0,2596],[0,38535],[],[0,5814],[0,1829],[],[0,5743],[0,25010],[],[0,2539],[0,21829],[],[0,6430],[0,35762],[],[0,2123],[0,42596],[],[0,3085],[0,46554],[],[0,1462],[0,4600],[],[0,6598],[0,48306],[],[0,1751],[0,29234],[],[0,4971],[0,38566],[],[0,5970],[0,15408],[],[0,1925],[0,34151],[],[0,3160],[0,31952],[],[0,3892],[0,5130],[],[0,409],[0,4530],[],[0,610],[0,13322],[],[0,2860],[0,3097],[],[0,336],[0,6910],[],[0,608],[0,32158],[],[0,5404],[0,12677],[],[0,117],[0,40690],[],[0,41],[0,31296],[],[0,5635],[0,17170],[],[0,138],[0,6360],[],[0,2270],[0,7527],[],[0,5632],[0,896],[],[0,6303],[0,33692],[],[0,2574],[0,34989],[],[0,2257],[0,8757],[],[0,4814],[0,2759],[],[0,5064],[0,23807],[],[0,5791],[0,22666],[],[0,5877],[0,1704],[],[0,3750],[0,45166],[],[0,3670],[0,23219],[],[0,6019],[0,13730],[],[0,2007],[0,30272],[],[0,3850],[0,27570],[],[0,2073],[0,13361],[],[0,1972],[0,19917],[],[0,4183],[0,24489],[],[0,973],[0,20879],[],[0,1221],[0,45812],[],[0,4905],[0,3334],[],[0,4757],[0,17852],[],[0,6437],[0,27026],[],[0,28],[0,4116],[],[0,2424],[0,21234],[],[0,1021],[0,25903],[],[0,5694],[0,47404],[],[0,6574],[0,14101],[],[0,340],[0,12459],[],[0,903],[0,11359],[],[0,4709],[0,44587],[],[0,2511],[0,15884],[],[0,782],[0,5795],[],[0,6594],[0,16795],[],[0,5143],[0,18977],[],[0,4556],[0,35148],[],[0,4962],[0,35542],[],[0,4588],[0,42621],[],[0,6703],[0,48811],[],[0,6085],[0,17667],[],[0,1765],[0,40723],[],[0,3585],[0,19916],[],[0,1493],[0,11501],[],[0,2169],[0,47038],[],[0,6295],[0,16286],[],[0,6025],[0,2925],[],[0,4383],[0,8989],[],[0,2835],[0,4108],[],[0,3577],[0,2276],[],[0,3600],[0,7605],[],[0,5496],[0,34714],[],[0,2359],[0,32665],[],[0,4830],[0,42806],[],[0,2356],[0,26063],[],[0,1075],[0,25225],[],[0,1090],[0,21815],[],[0,338],[0,47773],[],[0,6186],[0,29740],[],[0,5317],[0,43165],[],[0,4632],[0,44048],[],[0,6467],[0,42597],[],[0,5879],[0,39005],[],[0,6494],[0,31834],[],[0,3197],[0,39593],[],[0,3684],[0,35744],[],[0,713],[0,16643],[],[0,5545],[0,24228],[],[0,3328],[0,4425],[],[0,1606],[0,36767],[],[0,1164],[0,49151],[],[0,669],[0,34360],[],[0,5637],[0,6126],[],[0,4227],[0,18757],[],[0,1675],[0,23002],[],[0,5070],[0,33486],[],[0,640],[0,21801],[],[0,4613],[0,5483],[],[0,2681],[0,25421],[],[0,2877],[0,29501],[],[0,176],[0,35935],[],[0,3235],[0,38119],[],[0,5682],[0,25653],[],[0,1712],[0,19611],[],[0,4362],[0,657],[],[0,4843],[0,47437],[],[0,2321],[0,37435],[],[0,314],[0,2770],[],[0,837],[0,42476],[],[0,2195],[0,24255],[],[0,5641],[0,43496],[],[0,4869],[0,23558],[],[0,3917],[0,37573],[],[0,3833],[0,41546],[],[0,5136],[0,48263],[],[0,5052],[0,33750],[],[0,28],[0,38137],[],[0,6244],[0,20174],[],[0,3338],[0,43504],[],[0,1862],[0,24820],[],[0,2295],[0,15172],[],[0,3122],[0,42099],[],[0,5379],[0,48907],[],[0,3591],[0,45460],[],[0,2359],[0,891],[],[0,3175],[0,36675],[],[0,4392],[0,39568],[],[0,2946],[0,11924],[],[0,1397],[0,40784],[],[0,1575],[0,27517],[],[0,3520],[0,43596],[],[0,6349],[0,35804],[],[0,683],[0,40457],[],[0,4236],[0,2101],[],[0,4332],[0,8417],[],[0,3576],[0,15277],[],[0,4282],[0,8353],[],[0,338],[0,22511],[],[0,239],[0,19654],[],[0,5345],[0,14166],[],[0,4487],[0,31069],[],[0,323],[0,22715],[],[0,5214],[0,18742],[],[0,1186],[0,3133],[],[0,2278],[0,20243],[],[0,1469],[0,4744],[],[0,2629],[0,23689],[],[0,4087],[0,47690],[],[0,5858],[0,4182],[],[0,4868],[0,49763],[],[0,2979],[0,17281],[],[0,930],[0,12700],[],[0,5294],[0,29767],[],[0,3637],[0,1178],[],[0,877],[0,14616],[],[0,3216],[0,12994],[],[0,2168],[0,19695],[],[0,5967],[0,18616],[],[0,3733],[0,9832],[],[0,1502],[0,6583],[],[0,2632],[0,19595],[],[0,3825],[0,1666],[],[0,177],[0,20115],[],[0,4072],[0,27961],[],[0,2165],[0,32987],[],[0,5793],[0,27354],[],[0,4294],[0,10181],[],[0,188],[0,25927],[],[0,4274],[0,39900],[],[0,4209],[0,37063],[],[0,5409],[0,46440],[],[0,6056],[0,32130],[],[0,2398],[0,26849],[],[0,1617],[0,46714],[],[0,1399],[0,25170],[],[0,3529],[0,37057],[],[0,6572],[0,21358],[],[0,3268],[0,3431],[],[0,4246],[0,44430],[],[0,2048],[0,26250],[],[0,4805],[0,29891],[],[0,1261],[0,41262],[],[0,2281],[0,43095],[],[0,4097],[0,43663],[],[0,867],[0,12869],[],[0,4489],[0,24399],[],[0,1057],[0,8821],[],[0,3462],[0,16289],[],[0,3234],[0,14612],[],[0,4014],[0,26755],[],[0,4108],[0,49053],[],[0,5607],[0,1872],[],[0,3634],[0,33757],[],[0,6194],[0,32286],[],[0,1520],[0,33919],[],[0,2739],[0,31364],[],[0,5596],[0,16776],[],[0,3427],[0,33875],[],[0,6056],[0,26210],[],[0,1554],[0,29751],[],[0,5921],[0,49901],[],[0,5260],[0,40522],[],[0,6088],[0,34835],[],[0,6815],[0,9923],[],[0,1640],[0,3049],[],[0,360],[0,3434],[],[0,5539],[0,19609],[],[0,2569],[0,14912],[],[0,2590],[0,30655],[],[0,5211],[0,35288],[],[0,1333],[0,20215],[],[0,6303],[0,18015],[],[0,1240],[0,12509],[],[0,3287],[0,29114],[],[0,2961],[0,39960],[],[0,2321],[0,30398],[],[0,794],[0,24276],[],[0,6186],[0,15844],[],[0,4030],[0,20123],[],[0,4354],[0,2119],[],[0,2839],[0,13195],[],[0,919],[0,38076],[],[0,1111],[0,5120],[],[0,5867],[0,9671],[],[0,2574],[0,27138],[],[0,5527],[0,23055],[],[0,3932],[0,24379],[],[0,2669],[0,12080],[],[0,5175],[0,33298],[],[0,1064],[0,47826],[],[0,1188],[0,25412],[],[0,2120],[0,317],[],[0,4069],[0,47715],[],[0,638],[0,11648],[],[0,5352],[0,29731],[],[0,1878],[0,10934],[],[0,1387],[0,29683],[],[0,2495],[0,49687],[],[0,2475],[0,8817],[],[0,84],[0,13037],[],[0,6013],[0,12772],[],[0,479],[0,13792],[],[0,6474],[0,14260],[],[0,2836],[0,2692],[],[0,3217],[0,33782],[],[0,4666],[0,10436],[],[0,4814],[0,24063],[],[0,3661],[0,4109],[],[0,4249],[0,30338],[],[0,1556],[0,37112],[],[0,2067],[0,21554],[],[0,2904],[0,42842],[],[0,6403],[0,19584],[],[0,6728],[0,26342],[],[0,2343],[0,20150],[],[0,4962],[0,44457],[],[0,2890],[0,45231],[],[0,6687],[0,37219],[],[0,5824],[0,35485],[],[0,6596],[0,32588],[],[0,6489],[0,26662],[],[0,1040],[0,29796],[],[0,3197],[0,5988],[],[0,4050],[0,10264],[],[0,1291],[0,15227],[],[0,5098],[0,4009],[],[0,294],[0,5975],[],[0,4876],[0,46748],[],[0,3011],[0,38465],[],[0,2202],[0,19525],[],[0,2644],[0,38953],[],[0,4554],[0,46709],[],[0,628],[0,32148],[],[0,6501],[0,12803],[],[0,483],[0,3437],[],[0,4915],[0,5759],[],[0,2193],[0,35696],[],[0,964],[0,26536],[],[0,982],[0,10369],[],[0,2515],[0,36993],[],[0,4266],[0,4442],[],[0,6495],[0,34928],[],[0,5851],[0,32273],[],[0,5280],[0,44589],[],[0,99],[0,6869],[],[0,4032],[0,18620],[],[0,4433],[0,27394],[],[0,1229],[0,46748],[],[0,6180],[0,11210],[],[0,1203],[0,7018],[],[0,4498],[0,48184],[],[0,6111],[0,18668],[],[0,487],[0,41200],[],[0,6734],[0,6643],[],[0,948],[0,17381],[],[0,6480],[0,27083],[],[0,6272],[0,12374],[],[0,5742],[0,30901],[],[0,2451],[0,43412],[],[0,6814],[0,47678],[],[0,5722],[0,4528],[],[0,1084],[0,26707],[],[0,6490],[0,9162],[],[0,5395],[0,10135],[],[0,1124],[0,27542],[],[0,2638],[0,14227],[],[0,3414],[0,8141],[],[0,3936],[0,13191],[],[0,2281],[0,15541],[],[0,3165],[0,16860],[],[0,3665],[0,48367],[],[0,944],[0,43421],[],[0,2554],[0,23338],[],[0,6440],[0,27971],[],[0,5869],[0,257],[],[0,5298],[0,42888],[],[0,1399],[0,11180],[],[0,4169],[0,26950],[],[0,3360],[0,10005],[],[0,6977],[0,16044],[],[0,2107],[0,17888],[],[0,3783],[0,44757],[],[0,3619],[0,34463],[],[0,6305],[0,18928],[],[0,5493],[0,33457],[],[0,1722],[0,47756],[],[0,2138],[0,38925],[],[0,3104],[0,11953],[],[0,2792],[0,15965],[],[0,6744],[0,17209],[],[0,6143],[0,39009],[],[0,5566],[0,45429],[],[0,984],[0,39178],[],[0,4950],[0,12425],[],[0,6483],[0,30482],[],[0,288],[0,29382],[],[0,5007],[0,43840],[],[0,6310],[0,49178],[],[0,2616],[0,10736],[],[0,3195],[0,7935],[],[0,4241],[0,32947],[],[0,2267],[0,1221],[],[0,6047],[0,18474],[],[0,5818],[0,37806],[],[0,4912],[0,27399],[],[0,2077],[0,35650],[],[0,5279],[0,39782],[],[0,381],[0,13350],[],[0,3848],[0,9504],[],[0,1234],[0,13597],[],[0,3070],[0,6151],[],[0,4948],[0,8725],[],[0,6487],[0,24741],[],[0,4350],[0,47508],[],[0,4963],[0,11870],[],[0,5053],[0,13723],[],[0,395],[0,43716],[],[0,7017],[0,14785],[],[0,1347],[0,37266],[],[0,747],[0,42864],[],[0,1043],[0,47426],[],[0,5316],[0,17374],[],[0,4690],[0,26389],[],[0,3393],[0,5110],[],[0,4385],[0,33131],[],[0,2186],[0,8155],[],[0,2774],[0,44190],[],[0,1065],[0,27316],[],[0,3740],[0,23919],[],[0,5282],[0,29924],[],[0,651],[0,9151],[],[0,6870],[0,24406],[],[0,5433],[0,44125],[],[0,6405],[0,29722],[],[0,6862],[0,17274],[],[0,5623],[0,29851],[],[0,3648],[0,29837],[],[0,4922],[0,27542],[],[0,5916],[0,8604],[],[0,5167],[0,29479],[],[0,13],[0,46276],[],[0,3340],[0,41880],[],[0,4119],[0,46032],[],[0,5782],[0,6833],[],[0,5082],[0,5869],[],[0,4612],[0,9656],[],[0,4024],[0,32797],[],[0,3109],[0,1966],[],[0,6966],[0,24659],[],[0,6592],[0,2249],[],[0,3114],[0,49892],[],[0,6190],[0,19319],[],[0,4507],[0,25873],[],[0,4058],[0,14191],[],[0,6276],[0,30926],[],[0,4267],[0,31956],[],[0,5508],[0,25071],[],[0,4373],[0,40801],[],[0,5902],[0,10509],[],[0,6697],[0,1885],[],[0,2414],[0,18621],[],[0,5411],[0,36418],[],[0,1977],[0,29307],[],[0,6851],[0,24768],[],[0,499],[0,18636],[],[0,2541],[0,27445],[],[0,5992],[0,48970],[],[0,95],[0,38624],[],[0,3530],[0,14097],[],[0,4732],[0,34793],[],[0,5936],[0,6835],[],[0,2713],[0,25937],[],[0,5778],[0,7826],[],[0,3395],[0,36110],[],[0,11],[0,2206],[],[0,2179],[0,38467],[],[0,2353],[0,30005],[],[0,5452],[0,6733],[],[0,2973],[0,10142],[],[0,5317],[0,46005],[],[0,6030],[0,23105],[],[0,1033],[0,45252],[],[0,5318],[0,1852],[],[0,3710],[0,16216],[],[0,1718],[0,26878],[],[0,4750],[0,37489],[],[0,4385],[0,31348],[],[0,5746],[0,46382],[],[0,6110],[0,34656],[],[0,1440],[0,45022],[],[0,3708],[0,27418],[],[0,5742],[0,39299],[],[0,4475],[0,20145],[],[0,421],[0,17675],[],[0,5963],[0,21611],[],[0,5679],[0,46806],[],[0,1768],[0,43195],[],[0,4953],[0,23859],[],[0,6476],[0,2254],[],[0,5490],[0,30324],[],[0,693],[0,19038],[],[0,6892],[0,29236],[],[0,2754],[0,3278],[],[0,912],[0,43774],[],[0,1901],[0,34653],[],[0,3012],[0,19791],[],[0,4261],[0,45631],[],[0,5722],[0,16073],[],[0,5718],[0,7592],[],[0,2406],[0,42952],[],[0,2952],[0,1264],[],[0,5230],[0,28345],[],[0,4597],[0,37444],[],[0,791],[0,44674],[],[0,647],[0,38830],[],[0,6139],[0,8827],[],[0,1452],[0,43511],[],[0,223],[0,33111],[],[0,1133],[0,21135],[],[0,2603],[0,21211],[],[0,2940],[0,3040],[],[0,2348],[0,6212],[],[0,5258],[0,35906],[],[0,4880],[0,14595],[],[0,3100],[0,741],[],[0,5233],[0,48267],[],[0,4398],[0,29537],[],[0,4034],[0,28123],[],[0,1978],[0,41870],[],[0,4230],[0,18394],[],[0,4614],[0,6909],[],[0,4557],[0,27722],[],[0,3955],[0,6516],[],[0,5627],[0,29900],[],[0,3895],[0,16348],[],[0,617],[0,3106],[],[0,6191],[0,22079],[],[0,4500],[0,30575],[],[0,892],[0,45508],[],[0,2209],[0,6460],[],[0,1351],[0,29726],[],[0,4116],[0,36671],[],[0,3604],[0,26112],[],[0,1174],[0,14214],[],[0,6814],[0,22870],[],[0,5498],[0,48166],[],[0,1555],[0,23567],[],[0,1175],[0,22627],[],[0,6186],[0,27812],[],[0,1405],[0,2845],[],[0,2207],[0,25789],[],[0,1484],[0,20804],[],[0,3640],[0,34276],[],[0,4209],[0,29549],[],[0,2076],[0,36610],[],[0,4959],[0,29126],[],[0,1503],[0,29120],[],[0,5582],[0,27791],[],[0,2736],[0,32176],[],[0,3217],[0,45873],[],[0,2616],[0,29406],[],[0,268],[0,22959],[],[0,2859],[0,16859],[],[0,435],[0,35705],[],[0,1066],[0,38331],[],[0,347],[0,22718],[],[0,1291],[0,8298],[],[0,2896],[0,37119],[],[0,2034],[0,24001],[],[0,6570],[0,5509],[],[0,5551],[0,14348],[],[0,5744],[0,1295],[],[0,3745],[0,800],[],[0,1339],[0,37030],[],[0,2414],[0,7034],[],[0,5742],[0,21558],[],[0,4216],[0,42222],[],[0,2342],[0,16500],[],[0,2482],[0,43214],[],[0,6275],[0,21860],[],[0,198],[0,49107],[],[0,6487],[0,31673],[],[0,5015],[0,33859],[],[0,5303],[0,47576],[],[0,3559],[0,13158],[],[0,6641],[0,2645],[],[0,5506],[0,26558],[],[0,411],[0,8128],[],[0,5887],[0,40298],[],[0,4537],[0,42112],[],[0,586],[0,14449],[],[0,3351],[0,25039],[],[0,2168],[0,31209],[],[0,4157],[0,29617],[],[0,4587],[0,10811],[],[0,6302],[0,2073],[],[0,1785],[0,7089],[],[0,1604],[0,31525],[],[0,1178],[0,5196],[],[0,2743],[0,36731],[],[0,4036],[0,17602],[],[0,5824],[0,7405],[],[0,3029],[0,36023],[],[0,4076],[0,14857],[],[0,3795],[0,18144],[],[0,4000],[0,41494],[],[0,693],[0,19071],[],[0,7128],[0,34580],[],[0,4525],[0,2132],[],[0,6226],[0,42921],[],[0,625],[0,24757],[],[0,4461],[0,33190],[],[0,3060],[0,33548],[],[0,1234],[0,8090],[],[0,2169],[0,48615],[],[0,6933],[0,27219],[],[0,2112],[0,47666],[],[0,4712],[0,45621],[],[0,1165],[0,9319],[],[0,4432],[0,39091],[],[0,6668],[0,12856],[],[0,563],[0,2183],[],[0,6896],[0,223],[],[0,90],[0,42639],[],[0,1818],[0,540],[],[0,2170],[0,46739],[],[0,3975],[0,39335],[],[0,6591],[0,49615],[],[0,3789],[0,16785],[],[0,5078],[0,44181],[],[0,4253],[0,6715],[],[0,3910],[0,9682],[],[0,3763],[0,44264],[],[0,2426],[0,13827],[],[0,1723],[0,21906],[],[0,6122],[0,31458],[],[0,2346],[0,43083],[],[0,3723],[0,5849],[],[0,438],[0,31121],[],[0,447],[0,45226],[],[0,3236],[0,33600],[],[0,169],[0,33164],[],[0,5459],[0,32174],[],[0,7190],[0,35715],[],[0,6991],[0,42717],[],[0,4176],[0,18761],[],[0,6977],[0,46922],[],[0,3742],[0,19147],[],[0,3255],[0,15607],[],[0,1851],[0,40671],[],[0,5207],[0,46131],[],[0,2311],[0,35606],[],[0,4288],[0,13970],[],[0,3378],[0,29620],[],[0,763],[0,45708],[],[0,6777],[0,26269],[],[0,2896],[0,47876],[],[0,4805],[0,28662],[],[0,2783],[0,43719],[],[0,2656],[0,1617],[],[0,5155],[0,13934],[],[0,4472],[0,27489],[],[0,7156],[0,11575],[],[0,6621],[0,34502],[],[0,6607],[0,35453],[],[0,1702],[0,25962],[],[0,5993],[0,19598],[],[0,992],[0,38310],[],[0,7263],[0,21405],[],[0,6496],[0,34860],[],[0,3860],[0,37095],[],[0,5903],[0,45146],[],[0,4238],[0,10962],[],[0,5454],[0,24733],[],[0,3943],[0,14666],[],[0,4115],[0,43019],[],[0,5175],[0,30611],[],[0,3322],[0,16802],[],[0,1556],[0,15193],[],[0,3604],[0,41115],[],[0,4794],[0,8581],[],[0,960],[0,38361],[],[0,2908],[0,11186],[],[0,100],[0,47281],[],[0,1493],[0,33988],[],[0,3646],[0,10127],[],[0,4708],[0,18507],[],[0,746],[0,7788],[],[0,2299],[0,45900],[],[0,1408],[0,46154],[],[0,5857],[0,19584],[],[0,6695],[0,32904],[],[0,5066],[0,49670],[],[0,3095],[0,43698],[],[0,6561],[0,43013],[],[0,2031],[0,36634],[],[0,3070],[0,17271],[],[0,6889],[0,20300],[],[0,5417],[0,35272],[],[0,984],[0,27346],[],[0,683],[0,15725],[],[0,4769],[0,14583],[],[0,448],[0,18814],[],[0,1173],[0,15828],[],[0,4589],[0,44215],[],[0,7184],[0,14245],[],[0,527],[0,27812],[],[0,1040],[0,45008],[],[0,3049],[0,3016],[],[0,6761],[0,23601],[],[0,5748],[0,1444],[],[0,6914],[0,48114],[],[0,2083],[0,9569],[],[0,6876],[0,47598],[],[0,3395],[0,14213],[],[0,2240],[0,33459],[],[0,2879],[0,24454],[],[0,2412],[0,48008],[],[0,858],[0,9518],[],[0,4954],[0,48560],[],[0,2309],[0,27557],[],[0,5595],[0,38778],[],[0,6379],[0,43484],[],[0,136],[0,48904],[],[0,3170],[0,15588],[],[0,18],[0,25203],[],[0,2604],[0,35336],[],[0,6148],[0,30452],[],[0,4003],[0,1804],[],[0,5163],[0,45579],[],[0,647],[0,17715],[],[0,4576],[0,29800],[],[0,5588],[0,34393],[],[0,3850],[0,33148],[],[0,540],[0,34170],[],[0,48],[0,14000],[],[0,7115],[0,34332],[],[0,4797],[0,14194],[],[0,435],[0,46120],[],[0,2398],[0,37568],[],[0,3603],[0,23942],[],[0,714],[0,31437],[],[0,2728],[0,23632],[],[0,1016],[0,22343],[],[0,7274],[0,18686],[],[0,7333],[0,48690],[],[0,6537],[0,47544],[],[0,1244],[0,49503],[],[0,985],[0,39993],[],[0,3547],[0,4914],[],[0,5120],[0,25626],[],[0,3968],[0,8026],[],[0,4812],[0,36429],[],[0,2975],[0,48489],[],[0,2744],[0,7776],[],[0,77],[0,6724],[],[0,1878],[0,2570],[],[0,2074],[0,46458],[],[0,1408],[0,26005],[],[0,3797],[0,42096],[],[0,5662],[0,12880],[],[0,3538],[0,38418],[],[0,1508],[0,6597],[],[0,3960],[0,41221],[],[0,4262],[0,24428],[],[0,680],[0,38861],[],[0,5382],[0,41733],[],[0,4717],[0,35008],[],[0,1188],[0,40779],[],[0,4373],[0,28620],[],[0,5022],[0,20789],[],[0,6873],[0,46706],[],[0,3162],[0,4753],[],[0,6235],[0,12527],[],[0,5179],[0,11336],[],[0,5823],[0,27998],[],[0,6358],[0,3394],[],[0,1324],[0,1829],[],[0,2904],[0,9153],[],[0,4041],[0,42103],[],[0,6303],[0,30887],[],[0,6526],[0,20879],[],[0,3594],[0,5316],[],[0,4884],[0,28661],[],[0,3280],[0,15119],[],[0,1038],[0,42292],[],[0,1541],[0,21257],[],[0,5087],[0,29218],[],[0,3862],[0,5626],[],[0,5762],[0,36860],[],[0,7291],[0,37327],[],[0,3429],[0,41472],[],[0,4186],[0,2628],[],[0,412],[0,46082],[],[0,2044],[0,4165],[],[0,1504],[0,25286],[],[0,161],[0,14120],[],[0,2760],[0,25187],[],[0,3759],[0,48679],[],[0,2369],[0,14365],[],[0,3453],[0,36437],[],[0,4886],[0,24812],[],[0,3312],[0,24792],[],[0,1511],[0,13636],[],[0,6397],[0,32268],[],[0,3352],[0,36773],[],[0,3229],[0,48768],[],[0,2216],[0,8187],[],[0,1226],[0,46381],[],[0,6922],[0,36000],[],[0,6643],[0,34748],[],[0,3884],[0,17704],[],[0,2365],[0,41231],[],[0,6148],[0,24384],[],[0,5486],[0,10291],[],[0,3432],[0,39742],[],[0,3683],[0,3603],[],[0,4217],[0,26870],[],[0,1381],[0,30147],[],[0,1141],[0,25871],[],[0,5127],[0,5027],[],[0,4102],[0,18817],[],[0,5285],[0,9819],[],[0,1415],[0,45005],[],[0,2962],[0,25146],[],[0,6992],[0,12282],[],[0,7118],[0,5824],[],[0,1719],[0,16817],[],[0,4164],[0,16490],[],[0,3051],[0,15827],[],[0,1604],[0,28847],[],[0,1699],[0,23525],[],[0,6396],[0,25535],[],[0,4102],[0,40004],[],[0,851],[0,24689],[],[0,7051],[0,29853],[],[0,2292],[0,38619],[],[0,3989],[0,11547],[],[0,5643],[0,32212],[],[0,5202],[0,28475],[],[0,750],[0,23287],[],[0,977],[0,19707],[],[0,2501],[0,16469],[],[0,6978],[0,4986],[],[0,7021],[0,6811],[],[0,2773],[0,49179],[],[0,2905],[0,46350],[],[0,4565],[0,194],[],[0,4112],[0,21091],[],[0,1193],[0,32988],[],[0,7322],[0,30998],[],[0,3261],[0,33029],[],[0,4416],[0,29383],[],[0,551],[0,30713],[],[0,4001],[0,44249],[],[0,4644],[0,25208],[],[0,4955],[0,18652],[],[0,3770],[0,24094],[],[0,5710],[0,32979],[],[0,7041],[0,25057],[],[0,5206],[0,47818],[],[0,4252],[0,14148],[],[0,192],[0,13927],[],[0,6997],[0,20365],[],[0,2363],[0,41310],[],[0,1970],[0,11966],[],[0,4400],[0,32823],[],[0,2837],[0,17753],[],[0,1774],[0,21863],[],[0,5988],[0,5067],[],[0,6114],[0,45983],[],[0,6683],[0,8697],[],[0,6432],[0,13875],[],[0,4421],[0,42320],[],[0,2571],[0,18231],[],[0,2274],[0,43409],[],[0,2484],[0,49455],[],[0,6829],[0,24647],[],[0,3533],[0,26243],[],[0,5527],[0,20839],[],[0,5283],[0,11977],[],[0,5457],[0,13863],[],[0,6757],[0,25503],[],[0,2414],[0,15298],[],[0,3206],[0,15052],[],[0,1853],[0,22413],[],[0,1215],[0,22828],[],[0,4979],[0,35586],[],[0,2747],[0,35243],[],[0,3414],[0,44577],[],[0,1633],[0,1540],[],[0,7037],[0,44595],[],[0,1673],[0,13910],[],[0,3871],[0,42456],[],[0,2842],[0,33293],[],[0,398],[0,19386],[],[0,4245],[0,47490],[],[0,2555],[0,42017],[],[0,3184],[0,1313],[],[0,1426],[0,16609],[],[0,3767],[0,48534],[],[0,5033],[0,27611],[],[0,3287],[0,19206],[],[0,5394],[0,43120],[],[0,771],[0,29514],[],[0,6767],[0,8496],[],[0,3661],[0,39076],[],[0,1012],[0,28471],[],[0,2178],[0,18371],[],[0,40],[0,37148],[],[0,2261],[0,16985],[],[0,5114],[0,16651],[],[0,1483],[0,47299],[],[0,1298],[0,44064],[],[0,4011],[0,38811],[],[0,6611],[0,31418],[],[0,4039],[0,18268],[],[0,879],[0,36699],[],[0,2921],[0,6688],[],[0,4173],[0,2205],[],[0,563],[0,47485],[],[0,532],[0,46950],[],[0,2599],[0,26564],[],[0,5448],[0,23023],[],[0,5931],[0,39426],[],[0,6370],[0,1174],[],[0,5609],[0,21261],[],[0,3505],[0,27559],[],[0,2038],[0,39584],[],[0,7425],[0,10028],[],[0,7249],[0,36532],[],[0,2717],[0,26253],[],[0,689],[0,20364],[],[0,7388],[0,26366],[],[0,2249],[0,17110],[],[0,7404],[0,47685],[],[0,170],[0,33612],[],[0,1308],[0,6566],[],[0,5254],[0,27766],[],[0,2001],[0,29315],[],[0,4738],[0,12207],[],[0,2396],[0,32712],[],[0,2134],[0,47685],[],[0,3027],[0,34213],[],[0,6333],[0,22915],[],[0,2694],[0,42026],[],[0,635],[0,39331],[],[0,5037],[0,9736],[],[0,4216],[0,36201],[],[0,6438],[0,31632],[],[0,4754],[0,47668],[],[0,827],[0,2825],[],[0,3632],[0,24019],[],[0,916],[0,27922],[],[0,2994],[0,13604],[],[0,7420],[0,3936],[],[0,3183],[0,28202],[],[0,5977],[0,42071],[],[0,671],[0,10037],[],[0,4373],[0,28018],[],[0,3166],[0,4424],[],[0,4141],[0,39565],[],[0,216],[0,5290],[],[0,1948],[0,45045],[],[0,7405],[0,8280],[],[0,7539],[0,7507],[],[0,144],[0,49862],[],[0,580],[0,19503],[],[0,5019],[0,36878],[],[0,5734],[0,11373],[],[0,4312],[0,38299],[],[0,6952],[0,37935],[],[0,2116],[0,17376],[],[0,6466],[0,29717],[],[0,1633],[0,22534],[],[0,5586],[0,6261],[],[0,1866],[0,16649],[],[0,3966],[0,33957],[],[0,1513],[0,15440],[],[0,484],[0,26985],[],[0,6167],[0,43642],[],[0,4155],[0,9255],[],[0,5164],[0,40625],[],[0,3396],[0,32304],[],[0,5878],[0,45574],[],[0,7103],[0,18690],[],[0,717],[0,1834],[],[0,7198],[0,5076],[],[0,7533],[0,1464],[],[0,5993],[0,8057],[],[0,6806],[0,39566],[],[0,6877],[0,29709],[],[0,5334],[0,20303],[],[0,7150],[0,19956],[],[0,5805],[0,3393],[],[0,5657],[0,43248],[],[0,5503],[0,45679],[],[0,2867],[0,31727],[],[0,7070],[0,2070],[],[0,54],[0,7173],[],[0,6491],[0,31569],[],[0,6373],[0,37138],[],[0,101],[0,17192],[],[0,3647],[0,29272],[],[0,6087],[0,37055],[],[0,7286],[0,14475],[],[0,3381],[0,3474],[],[0,3031],[0,44263],[],[0,6912],[0,18711],[],[0,2059],[0,2599],[],[0,7302],[0,26853],[],[0,5809],[0,8524],[],[0,6918],[0,47451],[],[0,5062],[0,49649],[],[0,6203],[0,38384],[],[0,182],[0,9695],[],[0,2884],[0,43775],[],[0,6529],[0,12328],[],[0,1322],[0,44315],[],[0,6823],[0,25881],[],[0,4053],[0,12134],[],[0,530],[0,33320],[],[0,5433],[0,14116],[],[0,727],[0,35155],[],[0,4137],[0,48329],[],[0,1557],[0,37282],[],[0,1592],[0,34993],[],[0,977],[0,18909],[],[0,641],[0,24610],[],[0,2693],[0,25654],[],[0,7165],[0,21085],[],[0,3656],[0,4641],[],[0,6678],[0,25986],[],[0,7190],[0,17026],[],[0,1287],[0,5005],[],[0,388],[0,30022],[],[0,1501],[0,11411],[],[0,4874],[0,35811],[],[0,2130],[0,18276],[],[0,4883],[0,37624],[],[0,1112],[0,43839],[],[0,3828],[0,37397],[],[0,544],[0,5838],[],[0,3502],[0,17146],[],[0,6903],[0,20027],[],[0,5418],[0,16707],[],[0,6448],[0,49781],[],[0,2890],[0,41400],[],[0,4312],[0,42371],[],[0,187],[0,11688],[],[0,691],[0,36216],[],[0,137],[0,13654],[],[0,1719],[0,38822],[],[0,7126],[0,39001],[],[0,6194],[0,34206],[],[0,1739],[0,25690],[],[0,4277],[0,30994],[],[0,302],[0,37664],[],[0,6845],[0,9835],[],[0,5516],[0,29958],[],[0,1238],[0,32113],[],[0,734],[0,21286],[],[0,4010],[0,28401],[],[0,433],[0,33387],[],[0,5749],[0,46578],[],[0,6551],[0,4089],[],[0,2497],[0,37047],[],[0,6174],[0,4179],[],[0,3720],[0,35496],[],[0,7241],[0,22099],[],[0,1053],[0,45800],[],[0,3086],[0,8889],[],[0,7403],[0,10908],[],[0,2541],[0,27699],[],[0,5792],[0,23659],[],[0,5270],[0,10639],[],[0,7317],[0,31286],[],[0,1599],[0,24739],[],[0,6707],[0,4560],[],[0,3940],[0,26929],[],[0,7037],[0,2185],[],[0,3849],[0,35164],[],[0,1526],[0,28958],[],[0,2797],[0,3367],[],[0,3472],[0,23991],[],[0,626],[0,2011],[],[0,1602],[0,39227],[],[0,1379],[0,6125],[],[0,2356],[0,27684],[],[0,3801],[0,7795],[],[0,3699],[0,42345],[],[0,6280],[0,47993],[],[0,3657],[0,38266],[],[0,1686],[0,19329],[],[0,1970],[0,46249],[],[0,6654],[0,37370],[],[0,7520],[0,5831],[],[0,3752],[0,40295],[],[0,7246],[0,27130],[],[0,4382],[0,46358],[],[0,3031],[0,21301],[],[0,6331],[0,31833],[],[0,192],[0,3067],[],[0,3821],[0,45276],[],[0,4500],[0,29830],[],[0,4771],[0,16827],[],[0,470],[0,9442],[],[0,7132],[0,31271],[],[0,5622],[0,6798],[],[0,5482],[0,29782],[],[0,1386],[0,7632],[],[0,2083],[0,4217],[],[0,1456],[0,17981],[],[0,5431],[0,31691],[],[0,4700],[0,42702],[],[0,3322],[0,39157],[],[0,3080],[0,4840],[],[0,5574],[0,14320],[],[0,2305],[0,44628],[],[0,4510],[0,42746],[],[0,6517],[0,33079],[],[0,1288],[0,16007],[],[0,1963],[0,49033],[],[0,1512],[0,36949],[],[0,3338],[0,4132],[],[0,753],[0,21482],[],[0,7016],[0,22],[],[0,2557],[0,19687],[],[0,3887],[0,33046],[],[0,424],[0,37409],[],[0,6278],[0,33418],[],[0,5586],[0,41019],[],[0,4249],[0,49263],[],[0,48],[0,32512],[],[0,3634],[0,14712],[],[0,7432],[0,33520],[],[0,904],[0,11963],[],[0,7075],[0,1167],[],[0,4144],[0,33737],[],[0,4152],[0,48079],[],[0,2643],[0,26791],[],[0,3729],[0,17468],[],[0,2979],[0,38908],[],[0,6222],[0,16438],[],[0,1136],[0,6527],[],[0,2860],[0,13248],[],[0,1509],[0,28527],[],[0,2375],[0,24620],[],[0,1405],[0,38276],[],[0,7388],[0,41479],[],[0,1828],[0,6321],[],[0,5411],[0,9139],[],[0,2177],[0,948],[],[0,4319],[0,11856],[],[0,7715],[0,25764],[],[0,3600],[0,38830],[],[0,1604],[0,30430],[],[0,2625],[0,11922],[],[0,3386],[0,34463],[],[0,2666],[0,40204],[],[0,2996],[0,6772],[],[0,2739],[0,21221],[],[0,898],[0,14628],[],[0,545],[0,44451],[],[0,1859],[0,19523],[],[0,757],[0,20193],[],[0,2395],[0,46406],[],[0,2218],[0,39779],[],[0,4715],[0,11857],[],[0,7363],[0,42502],[],[0,5178],[0,43789],[],[0,1307],[0,29101],[],[0,2104],[0,13101],[],[0,2811],[0,45451],[],[0,5685],[0,22905],[],[0,5849],[0,6242],[],[0,3813],[0,18139],[],[0,3099],[0,3210],[],[0,7367],[0,18799],[],[0,323],[0,46480],[],[0,7693],[0,3290],[],[0,6341],[0,2514],[],[0,3959],[0,27853],[],[0,1217],[0,43476],[],[0,3024],[0,28130],[],[0,6940],[0,41485],[],[0,7556],[0,12677],[],[0,3101],[0,34690],[],[0,2634],[0,7102],[],[0,4185],[0,20472],[],[0,6540],[0,9208],[],[0,7231],[0,2754],[],[0,4987],[0,49542],[],[0,726],[0,9675],[],[0,1791],[0,21965],[],[0,2053],[0,16431],[],[0,4959],[0,5436],[],[0,5390],[0,16070],[],[0,3085],[0,19610],[],[0,2507],[0,14508],[],[0,1143],[0,11731],[],[0,1131],[0,38439],[],[0,7711],[0,37834],[],[0,2542],[0,10657],[],[0,790],[0,34021],[],[0,4941],[0,3075],[],[0,7274],[0,3494],[],[0,141],[0,14179],[],[0,214],[0,5520],[],[0,319],[0,29762],[],[0,465],[0,43052],[],[0,2336],[0,1564],[],[0,6181],[0,10127],[],[0,5232],[0,14102],[],[0,5863],[0,7357],[],[0,7240],[0,36226],[],[0,7731],[0,33102],[],[0,3115],[0,43438],[],[0,130],[0,34744],[],[0,3391],[0,37409],[],[0,4060],[0,33827],[],[0,6597],[0,41179],[],[0,7399],[0,16950],[],[0,1890],[0,9216],[],[0,4696],[0,29572],[],[0,7801],[0,23045],[],[0,2235],[0,10515],[],[0,2499],[0,12457],[],[0,158],[0,2180],[],[0,3969],[0,48781],[],[0,4831],[0,2684],[],[0,4645],[0,21970],[],[0,1774],[0,48045],[],[0,240],[0,17316],[],[0,4699],[0,22313],[],[0,1145],[0,10604],[],[0,3926],[0,11700],[],[0,6037],[0,24759],[],[0,1132],[0,47450],[],[0,4821],[0,44831],[],[0,3654],[0,33040],[],[0,1227],[0,25872],[],[0,171],[0,33412],[],[0,1187],[0,6799],[],[0,6247],[0,33677],[],[0,373],[0,22153],[],[0,5887],[0,6987],[],[0,3423],[0,49040],[],[0,2621],[0,25743],[],[0,7268],[0,24359],[],[0,6560],[0,28428],[],[0,7186],[0,31378],[],[0,4137],[0,23215],[],[0,4352],[0,33369],[],[0,7041],[0,18578],[],[0,6406],[0,31630],[],[0,3943],[0,39983],[],[0,3092],[0,13609],[],[0,2921],[0,49716],[],[0,2856],[0,39285],[],[0,4844],[0,3591],[],[0,3721],[0,11368],[],[0,7769],[0,13397],[],[0,75],[0,28677],[],[0,1703],[0,38910],[],[0,2031],[0,30419],[],[0,1425],[0,21114],[],[0,3250],[0,32043],[],[0,3704],[0,6456],[],[0,4430],[0,10681],[],[0,5843],[0,29344],[],[0,7799],[0,15087],[],[0,4919],[0,15991],[],[0,5063],[0,44128],[],[0,4660],[0,44248],[],[0,7201],[0,43967],[],[0,7710],[0,1942],[],[0,2661],[0,36949],[],[0,2017],[0,34480],[],[0,970],[0,19776],[],[0,1829],[0,37031],[],[0,629],[0,46126],[],[0,5584],[0,19729],[],[0,7557],[0,26389],[],[0,5779],[0,42244],[],[0,6128],[0,40746],[],[0,3611],[0,35334],[],[0,2941],[0,42926],[],[0,2082],[0,32272],[],[0,6648],[0,9461],[],[0,465],[0,24059],[],[0,7342],[0,4810],[],[0,6424],[0,39388],[],[0,2599],[0,45233],[],[0,3429],[0,12621],[],[0,6121],[0,28183],[],[0,1857],[0,45548],[],[0,2068],[0,23460],[],[0,2249],[0,26633],[],[0,2881],[0,4854],[],[0,1076],[0,21264],[],[0,4294],[0,28012],[],[0,861],[0,7489],[],[0,696],[0,44305],[],[0,3986],[0,47355],[],[0,7537],[0,47708],[],[0,7727],[0,686],[],[0,7289],[0,23288],[],[0,112],[0,5549],[],[0,562],[0,40814],[],[0,4400],[0,9121],[],[0,5943],[0,42687],[],[0,4993],[0,29451],[],[0,7279],[0,20783],[],[0,3754],[0,38336],[],[0,1578],[0,31472],[],[0,78],[0,6868],[],[0,1769],[0,13341],[],[0,5551],[0,1578],[],[0,1296],[0,349],[],[0,2667],[0,48372],[],[0,4452],[0,11340],[],[0,583],[0,10163],[],[0,1666],[0,14052],[],[0,2741],[0,14326],[],[0,677],[0,26256],[],[0,5665],[0,23825],[],[0,1229],[0,553],[],[0,6115],[0,31010],[],[0,7388],[0,30646],[],[0,7280],[0,24023],[],[0,6859],[0,15781],[],[0,4472],[0,3770],[],[0,7213],[0,35645],[],[0,7275],[0,40525],[],[0,5154],[0,38801],[],[0,1225],[0,31756],[],[0,431],[0,5895],[],[0,3590],[0,27199],[],[0,4190],[0,10794],[],[0,1790],[0,34590],[],[0,6524],[0,7328],[],[0,3247],[0,28119],[],[0,5579],[0,2680],[],[0,6394],[0,30403],[],[0,3705],[0,38224],[],[0,7492],[0,42176],[],[0,7758],[0,10295],[],[0,6959],[0,1834],[],[0,6774],[0,2808],[],[0,150],[0,2042],[],[0,2709],[0,36203],[],[0,1691],[0,29375],[],[0,1869],[0,43686],[],[0,6350],[0,4257],[],[0,6916],[0,30589],[],[0,652],[0,38357],[],[0,523],[0,42931],[],[0,3597],[0,40431],[],[0,4319],[0,42944],[],[0,1991],[0,7330],[],[0,5521],[0,49225],[],[0,516],[0,28971],[],[0,7610],[0,31138],[],[0,2161],[0,35952],[],[0,5929],[0,40439],[],[0,891],[0,27265],[],[0,6065],[0,49752],[],[0,169],[0,35334],[],[0,6923],[0,4025],[],[0,6944],[0,17464],[],[0,7799],[0,48516],[],[0,2799],[0,24339],[],[0,7056],[0,24030],[],[0,486],[0,15652],[],[0,3568],[0,48540],[],[0,1146],[0,6485],[],[0,544],[0,14861],[],[0,5991],[0,35203],[],[0,7830],[0,47807],[],[0,3687],[0,13392],[],[0,5551],[0,38346],[],[0,3708],[0,39605],[],[0,3432],[0,49890],[],[0,4584],[0,42923],[],[0,547],[0,49105],[],[0,209],[0,23168],[],[0,2837],[0,20935],[],[0,5025],[0,47314],[],[0,7344],[0,9479],[],[0,2965],[0,36619],[],[0,2744],[0,47847],[],[0,2362],[0,8553],[],[0,3285],[0,19098],[],[0,6624],[0,20073],[],[0,6961],[0,33744],[],[0,644],[0,41872],[],[0,3038],[0,19144],[],[0,4784],[0,30823],[],[0,7695],[0,10410],[],[0,5866],[0,18229],[],[0,2126],[0,24667],[],[0,3890],[0,9311],[],[0,3878],[0,48065],[],[0,2256],[0,4733],[],[0,7552],[0,13580],[],[0,5583],[0,20788],[],[0,7984],[0,35013],[],[0,6966],[0,29273],[],[0,774],[0,20118],[],[0,933],[0,40402],[],[0,2426],[0,12361],[],[0,4365],[0,6067],[],[0,4886],[0,36421],[],[0,5110],[0,41078],[],[0,6946],[0,28195],[],[0,5778],[0,33119],[],[0,5154],[0,49991],[],[0,6696],[0,21596],[],[0,3251],[0,20383],[],[0,7560],[0,26933],[],[0,5731],[0,39075],[],[0,8017],[0,20085],[],[0,3996],[0,1953],[],[0,632],[0,17371],[],[0,5938],[0,39929],[],[0,3783],[0,31189],[],[0,3283],[0,25652],[],[0,3387],[0,18190],[],[0,4540],[0,3120],[],[0,6696],[0,26762],[],[0,1704],[0,13536],[],[0,2679],[0,30295],[],[0,5933],[0,29089],[],[0,547],[0,21968],[],[0,4751],[0,1324],[],[0,2319],[0,33371],[],[0,3965],[0,41546],[],[0,5289],[0,37917],[],[0,1099],[0,15887],[],[0,6899],[0,29564],[],[0,1944],[0,47722],[],[0,1337],[0,46456],[],[0,7053],[0,49073],[],[0,3253],[0,31136],[],[0,3745],[0,5902],[],[0,7534],[0,4414],[],[0,2871],[0,1035],[],[0,742],[0,39651],[],[0,7871],[0,9956],[],[0,7421],[0,30081],[],[0,4060],[0,23658],[],[0,3618],[0,14479],[],[0,4127],[0,14333],[],[0,6433],[0,501],[],[0,1630],[0,9280],[],[0,519],[0,45445],[],[0,4923],[0,35693],[],[0,4868],[0,29197],[],[0,169],[0,7825],[],[0,3018],[0,20844],[],[0,594],[0,40386],[],[0,1159],[0,7408],[],[0,6518],[0,12090],[],[0,1171],[0,2008],[],[0,7019],[0,44532],[],[0,7709],[0,19780],[],[0,1568],[0,21669],[],[0,4637],[0,9520],[],[0,2150],[0,43209],[],[0,2025],[0,49474],[],[0,7204],[0,30154],[],[0,1590],[0,4303],[],[0,3643],[0,4225],[],[0,169],[0,15413],[],[0,6794],[0,30437],[],[0,3220],[0,44662],[],[0,1674],[0,16847],[],[0,5036],[0,23990],[],[0,1234],[0,26780],[],[0,4155],[0,48448],[],[0,1651],[0,15642],[],[0,6609],[0,25497],[],[0,2832],[0,10755],[],[0,30],[0,25254],[],[0,2858],[0,16374],[],[0,5197],[0,31506],[],[0,2470],[0,4460],[],[0,705],[0,30852],[],[0,85],[0,13711],[],[0,1052],[0,40360],[],[0,6516],[0,36902],[],[0,6563],[0,6815],[],[0,5112],[0,43935],[],[0,3322],[0,47205],[],[0,5220],[0,1376],[],[0,3943],[0,16026],[],[0,2414],[0,29247],[],[0,5358],[0,18842],[],[0,2160],[0,21095],[],[0,3303],[0,43508],[],[0,166],[0,16305],[],[0,1694],[0,17005],[],[0,3467],[0,47651],[],[0,7807],[0,2526],[],[0,6437],[0,34976],[],[0,4682],[0,44887],[],[0,2714],[0,37458],[],[0,5099],[0,36572],[],[0,2051],[0,49477],[],[0,5712],[0,19039],[],[0,2667],[0,47050],[],[0,4750],[0,42724],[],[0,352],[0,31541],[],[0,3491],[0,43601],[],[0,2802],[0,44038],[],[0,563],[0,32271],[],[0,2495],[0,43719],[],[0,2710],[0,3255],[],[0,7790],[0,15927],[],[0,6310],[0,46596],[],[0,4647],[0,16938],[],[0,1115],[0,35185],[],[0,7320],[0,4331],[],[0,7210],[0,41368],[],[0,5392],[0,15777],[],[0,2860],[0,28648],[],[0,5011],[0,16379],[],[0,2473],[0,30034],[],[0,7779],[0,12384],[],[0,5990],[0,16506],[],[0,4545],[0,346],[],[0,5723],[0,39708],[],[0,6290],[0,25074],[],[0,1308],[0,38746],[],[0,2960],[0,43852],[],[0,3845],[0,44882],[],[0,553],[0,28690],[],[0,4782],[0,19877],[],[0,2795],[0,18994],[],[0,2114],[0,42902],[],[0,101],[0,42350],[],[0,6894],[0,23324],[],[0,7192],[0,40088],[],[0,2687],[0,32081],[],[0,4511],[0,13352],[],[0,4422],[0,19569],[],[0,4522],[0,24689],[],[0,811],[0,6960],[],[0,6866],[0,8670],[],[0,2839],[0,47544],[],[0,2898],[0,40961],[],[0,4209],[0,28861],[],[0,2162],[0,39782],[],[0,6259],[0,25388],[],[0,1458],[0,33514],[],[0,6989],[0,32737],[],[0,2291],[0,36319],[],[0,8097],[0,39893],[],[0,596],[0,39372],[],[0,3026],[0,29186],[],[0,7007],[0,34463],[],[0,6163],[0,35637],[],[0,2307],[0,20724],[],[0,3172],[0,5119],[],[0,3939],[0,9704],[],[0,5953],[0,49703],[],[0,7366],[0,7410],[],[0,2450],[0,20282],[],[0,3691],[0,15735],[],[0,7749],[0,13429],[],[0,4355],[0,39530],[],[0,7326],[0,35664],[],[0,7167],[0,34006],[],[0,4263],[0,28971],[],[0,6068],[0,30308],[],[0,8003],[0,38896],[],[0,3923],[0,44547],[],[0,986],[0,9056],[],[0,2774],[0,940],[],[0,5810],[0,43390],[],[0,1351],[0,7324],[],[0,2278],[0,33466],[],[0,6007],[0,9960],[],[0,979],[0,24579],[],[0,3184],[0,7718],[],[0,5084],[0,35508],[],[0,6048],[0,20829],[],[0,344],[0,19268],[],[0,4628],[0,41832],[],[0,1652],[0,38121],[],[0,4527],[0,16951],[],[0,7688],[0,45782],[],[0,7427],[0,40659],[],[0,6262],[0,27955],[],[0,4962],[0,14840],[],[0,4592],[0,47704],[],[0,5858],[0,7373],[],[0,5238],[0,47639],[],[0,2353],[0,31586],[],[0,950],[0,27209],[],[0,1997],[0,39784],[],[0,4959],[0,28909],[],[0,7560],[0,41954],[],[0,8070],[0,27989],[],[0,5245],[0,20790],[],[0,3439],[0,14856],[],[0,7769],[0,14000],[],[0,5968],[0,26907],[],[0,525],[0,504],[],[0,2616],[0,18360],[],[0,6480],[0,1199],[],[0,2625],[0,6072],[],[0,4243],[0,37584],[],[0,970],[0,8809],[],[0,1323],[0,7972],[],[0,7132],[0,4458],[],[0,3305],[0,34865],[],[0,1422],[0,25582],[],[0,5366],[0,19557],[],[0,5833],[0,47488],[],[0,2399],[0,43031],[],[0,5476],[0,27422],[],[0,3041],[0,41627],[],[0,3180],[0,8618],[],[0,6287],[0,7059],[],[0,6951],[0,22946],[],[0,2795],[0,17552],[],[0,6030],[0,25820],[],[0,2935],[0,24811],[],[0,3427],[0,17401],[],[0,2838],[0,49095],[],[0,2861],[0,11147],[],[0,2317],[0,7707],[],[0,1875],[0,29051],[],[0,2142],[0,26602],[],[0,2202],[0,39738],[],[0,4665],[0,14808],[],[0,4049],[0,12201],[],[0,4637],[0,6972],[],[0,393],[0,21627],[],[0,5314],[0,2737],[],[0,4960],[0,20387],[],[0,7201],[0,31705],[],[0,5580],[0,6698],[],[0,2933],[0,42145],[],[0,2490],[0,9335],[],[0,3468],[0,20077],[],[0,3146],[0,42422],[],[0,2212],[0,15499],[],[0,1313],[0,28469],[],[0,6831],[0,42965],[],[0,3122],[0,35572],[],[0,5661],[0,25709],[],[0,774],[0,31016],[],[0,487],[0,25063],[],[0,6732],[0,16760],[],[0,246],[0,39140],[],[0,7535],[0,12888],[],[0,5855],[0,8924],[],[0,172],[0,19382],[],[0,905],[0,32451],[],[0,4292],[0,12861],[],[0,6042],[0,22125],[],[0,3370],[0,20186],[],[0,4074],[0,22678],[],[0,7883],[0,48355],[],[0,7214],[0,42868],[],[0,7835],[0,40972],[],[0,5635],[0,23005],[],[0,7837],[0,31720],[],[0,4444],[0,46186],[],[0,7321],[0,16953],[],[0,6362],[0,5627],[],[0,170],[0,41490],[],[0,2654],[0,37168],[],[0,1253],[0,13611],[],[0,5744],[0,29879],[],[0,7430],[0,33316],[],[0,8232],[0,32031],[],[0,6900],[0,6648],[],[0,1127],[0,17393],[],[0,834],[0,10306],[],[0,7503],[0,38167],[],[0,95],[0,4757],[],[0,728],[0,47504],[],[0,5442],[0,8342],[],[0,6764],[0,34133],[],[0,2130],[0,1435],[],[0,5385],[0,40127],[],[0,7004],[0,11956],[],[0,1613],[0,28751],[],[0,8142],[0,43224],[],[0,55],[0,40426],[],[0,7663],[0,48876],[],[0,2209],[0,38865],[],[0,1606],[0,12299],[],[0,1136],[0,20754],[],[0,4971],[0,9128],[],[0,2710],[0,17524],[],[0,7415],[0,49408],[],[0,3719],[0,25505],[],[0,5410],[0,26479],[],[0,3433],[0,43842],[],[0,3537],[0,34427],[],[0,6095],[0,26332],[],[0,3554],[0,38939],[],[0,5441],[0,40774],[],[0,7542],[0,11570],[],[0,6627],[0,37495],[],[0,391],[0,47535],[],[0,1376],[0,47219],[],[0,949],[0,17013],[],[0,6050],[0,12897],[],[0,2633],[0,48856],[],[0,3993],[0,19067],[],[0,6883],[0,47326],[],[0,267],[0,43824],[],[0,1172],[0,17710],[],[0,963],[0,25352],[],[0,4850],[0,16039],[],[0,5567],[0,47670],[],[0,4800],[0,49027],[],[0,2689],[0,36206],[],[0,4845],[0,7683],[],[0,264],[0,41476],[],[0,4837],[0,18462],[],[0,8197],[0,26192],[],[0,7699],[0,2396],[],[0,5219],[0,9245],[],[0,7317],[0,14062],[],[0,2306],[0,6987],[],[0,3505],[0,45137],[],[0,4235],[0,16295],[],[0,173],[0,3074],[],[0,5713],[0,49735],[],[0,5202],[0,33450],[],[0,6606],[0,13136],[],[0,3936],[0,27142],[],[0,1076],[0,15120],[],[0,4257],[0,2243],[],[0,5311],[0,13151],[],[0,7210],[0,2625],[],[0,1538],[0,90],[],[0,189],[0,24172],[],[0,5172],[0,21227],[],[0,7462],[0,8505],[],[0,7717],[0,32659],[],[0,5187],[0,30609],[],[0,8169],[0,42290],[],[0,5304],[0,12404],[],[0,6406],[0,45543],[],[0,374],[0,7993],[],[0,7844],[0,45568],[],[0,538],[0,40902],[],[0,1864],[0,4389],[],[0,4930],[0,31504],[],[0,7713],[0,35780],[],[0,6647],[0,1039],[],[0,954],[0,29791],[],[0,6037],[0,34687],[],[0,1316],[0,25513],[],[0,3788],[0,39840],[],[0,859],[0,27354],[],[0,8327],[0,38856],[],[0,7646],[0,38767],[],[0,2854],[0,23482],[],[0,5229],[0,29046],[],[0,4619],[0,1604],[],[0,729],[0,22489],[],[0,2935],[0,48376],[],[0,1249],[0,694],[],[0,1954],[0,44777],[],[0,6557],[0,26247],[],[0,7991],[0,22522],[],[0,6328],[0,22992],[],[0,4446],[0,13698],[],[0,2886],[0,12063],[],[0,6135],[0,22194],[],[0,7050],[0,13730],[],[0,7412],[0,1284],[],[0,66],[0,40860],[],[0,3441],[0,10348],[],[0,1590],[0,7521],[],[0,1676],[0,19700],[],[0,6048],[0,8894],[],[0,5434],[0,7986],[],[0,2142],[0,49515],[],[0,7824],[0,4614],[],[0,1805],[0,2269],[],[0,8235],[0,8380],[],[0,5066],[0,27953],[],[0,4118],[0,17092],[],[0,4023],[0,8775],[],[0,1817],[0,13831],[],[0,5753],[0,14722],[],[0,1810],[0,36571],[],[0,6779],[0,35259],[],[0,3231],[0,16661],[],[0,4573],[0,6780],[],[0,2614],[0,30181],[],[0,4072],[0,32783],[],[0,2586],[0,8458],[],[0,5392],[0,32487],[],[0,4389],[0,28684],[],[0,1627],[0,49297],[],[0,218],[0,40621],[],[0,4731],[0,35476],[],[0,8300],[0,6546],[],[0,502],[0,34113],[],[0,8223],[0,26401],[],[0,791],[0,35657],[],[0,2232],[0,23263],[],[0,2172],[0,10921],[],[0,5174],[0,43514],[],[0,8092],[0,10337],[],[0,7303],[0,32556],[],[0,6892],[0,11479],[],[0,5051],[0,16177],[],[0,1079],[0,20882],[],[0,4814],[0,46150],[],[0,4783],[0,25784],[],[0,4295],[0,36309],[],[0,6496],[0,47849],[],[0,6552],[0,42079],[],[0,4316],[0,13913],[],[0,7446],[0,33318],[],[0,2354],[0,22511],[],[0,7618],[0,43165],[],[0,3159],[0,9717],[],[0,4495],[0,1088],[],[0,3691],[0,13048],[],[0,96],[0,27420],[],[0,6145],[0,34084],[],[0,5668],[0,23558],[],[0,621],[0,6721],[],[0,3420],[0,12019],[],[0,1503],[0,25822],[],[0,6245],[0,42319],[],[0,6704],[0,10262],[],[0,4315],[0,25679],[],[0,849],[0,10],[],[0,135],[0,22408],[],[0,7816],[0,38373],[],[0,1686],[0,33602],[],[0,4664],[0,30093],[],[0,1670],[0,25325],[],[0,7891],[0,15300],[],[0,7355],[0,7953],[],[0,7590],[0,38721],[],[0,4555],[0,40619],[],[0,5825],[0,32122],[],[0,5206],[0,23944],[],[0,7786],[0,34683],[],[0,2495],[0,25289],[],[0,5889],[0,4220],[],[0,950],[0,9707],[],[0,3800],[0,12469],[],[0,3519],[0,5777],[],[0,3802],[0,37688],[],[0,429],[0,6061],[],[0,3003],[0,3446],[],[0,4218],[0,34081],[],[0,6520],[0,32976],[],[0,1857],[0,28399],[],[0,4133],[0,2557],[],[0,4907],[0,40981],[],[0,2842],[0,19771],[],[0,7052],[0,10502],[],[0,8172],[0,34523],[],[0,8137],[0,28437],[],[0,4841],[0,3180],[],[0,1450],[0,47466],[],[0,3747],[0,10693],[],[0,1676],[0,42703],[],[0,6233],[0,37814],[],[0,4321],[0,40520],[],[0,6136],[0,36531],[],[0,5481],[0,44081],[],[0,7778],[0,28889],[],[0,482],[0,42069],[],[0,7322],[0,18487],[],[0,8215],[0,19177],[],[0,5555],[0,48830],[],[0,123],[0,2859],[],[0,1603],[0,27778],[],[0,7998],[0,33354],[],[0,4832],[0,44212],[],[0,8465],[0,23974],[],[0,2528],[0,30183],[],[0,1942],[0,5358],[],[0,7813],[0,28583],[],[0,2681],[0,16496],[],[0,1671],[0,7506],[],[0,37],[0,14658],[],[0,2950],[0,45861],[],[0,1810],[0,23572],[],[0,2416],[0,45524],[],[0,306],[0,19133],[],[0,4501],[0,43742],[],[0,4184],[0,25534],[],[0,23],[0,14109],[],[0,6876],[0,1914],[],[0,3971],[0,11722],[],[0,4632],[0,16224],[],[0,5721],[0,1735],[],[0,3718],[0,42874],[],[0,1895],[0,10551],[],[0,4733],[0,42828],[],[0,691],[0,12596],[],[0,6257],[0,36714],[],[0,788],[0,18614],[],[0,1127],[0,22467],[],[0,7912],[0,35549],[],[0,1506],[0,19779],[],[0,3670],[0,4543],[],[0,4458],[0,31739],[],[0,8504],[0,31285],[],[0,6517],[0,33228],[],[0,1342],[0,30690],[],[0,439],[0,47449],[],[0,4343],[0,32312],[],[0,4818],[0,2081],[],[0,6624],[0,35028],[],[0,29],[0,47467],[],[0,4672],[0,18592],[],[0,1829],[0,42013],[],[0,6530],[0,37352],[],[0,607],[0,26934],[],[0,590],[0,32385],[],[0,783],[0,49665],[],[0,7073],[0,7507],[],[0,7385],[0,44859],[],[0,8132],[0,7839],[],[0,5767],[0,27590],[],[0,602],[0,23847],[],[0,2231],[0,21200],[],[0,3216],[0,18778],[],[0,8055],[0,45038],[],[0,1895],[0,14447],[],[0,7537],[0,38158],[],[0,5482],[0,26817],[],[0,4107],[0,26589],[],[0,1839],[0,47396],[],[0,3576],[0,36030],[],[0,3999],[0,13714],[],[0,2135],[0,22153],[],[0,4412],[0,46978],[],[0,2470],[0,34009],[],[0,3737],[0,17280],[],[0,5269],[0,47004],[],[0,2631],[0,35861],[],[0,6720],[0,19658],[],[0,2922],[0,510],[],[0,5053],[0,9718],[],[0,2816],[0,8877],[],[0,8326],[0,6961],[],[0,7324],[0,12733],[],[0,4904],[0,7813],[],[0,5987],[0,7471],[],[0,4055],[0,10151],[],[0,206],[0,42472],[],[0,2538],[0,32946],[],[0,8049],[0,29003],[],[0,8221],[0,34436],[],[0,195],[0,28991],[],[0,814],[0,25233],[],[0,5274],[0,49589],[],[0,3664],[0,47411],[],[0,1881],[0,28161],[],[0,6070],[0,2922],[],[0,2331],[0,44101],[],[0,2219],[0,15780],[],[0,2415],[0,17381],[],[0,4549],[0,32223],[],[0,1053],[0,8071],[],[0,6337],[0,15249],[],[0,7456],[0,33223],[],[0,6985],[0,44865],[],[0,7896],[0,7604],[],[0,2867],[0,2124],[],[0,4859],[0,36397],[],[0,1984],[0,12078],[],[0,4026],[0,23537],[],[0,3770],[0,21705],[],[0,1039],[0,48986],[],[0,5296],[0,3941],[],[0,3432],[0,46636],[],[0,411],[0,37226],[],[0,7364],[0,20837],[],[0,2674],[0,8178],[],[0,803],[0,2587],[],[0,1217],[0,36942],[],[0,7691],[0,14478],[],[0,4115],[0,48395],[],[0,2637],[0,30433],[],[0,1810],[0,19981],[],[0,7183],[0,8026],[],[0,1964],[0,49030],[],[0,6847],[0,3690],[],[0,1170],[0,11356],[],[0,3628],[0,49718],[],[0,2857],[0,1073],[],[0,709],[0,15004],[],[0,7996],[0,20811],[],[0,8531],[0,31083],[],[0,4920],[0,16690],[],[0,1042],[0,40461],[],[0,5982],[0,12097],[],[0,2709],[0,8196],[],[0,7661],[0,34284],[],[0,7051],[0,41956],[],[0,3880],[0,25609],[],[0,2302],[0,48739],[],[0,1519],[0,47925],[],[0,36],[0,41940],[],[0,4045],[0,10808],[],[0,5355],[0,7027],[],[0,7666],[0,20686],[],[0,6731],[0,35124],[],[0,5079],[0,47067],[],[0,2952],[0,36513],[],[0,2021],[0,46463],[],[0,8504],[0,2524],[],[0,56],[0,9342],[],[0,7610],[0,14085],[],[0,451],[0,21045],[],[0,1099],[0,45828],[],[0,5040],[0,6033],[],[0,7156],[0,5730],[],[0,4554],[0,25253],[],[0,7863],[0,8580],[],[0,2183],[0,14016],[],[0,7334],[0,27441],[],[0,7250],[0,16553],[],[0,7345],[0,22856],[],[0,7797],[0,45929],[],[0,1389],[0,10256],[],[0,8586],[0,9855],[],[0,1774],[0,17441],[],[0,3785],[0,29901],[],[0,3915],[0,7108],[],[0,486],[0,20611],[],[0,3027],[0,35891],[],[0,7125],[0,29495],[],[0,8119],[0,12075],[],[0,6075],[0,20150],[],[0,660],[0,10788],[],[0,1298],[0,25305],[],[0,8598],[0,26818],[],[0,3502],[0,27422],[],[0,6690],[0,22635],[],[0,6303],[0,42285],[],[0,3984],[0,1474],[],[0,525],[0,4643],[],[0,7946],[0,4263],[],[0,6044],[0,41429],[],[0,2978],[0,23878],[],[0,3744],[0,24478],[],[0,7961],[0,24323],[],[0,8025],[0,15544],[],[0,2694],[0,6062],[],[0,6842],[0,18087],[],[0,3226],[0,4372],[],[0,16],[0,3684],[],[0,238],[0,15377],[],[0,7753],[0,1439],[],[0,6114],[0,12698],[],[0,6765],[0,28965],[],[0,2517],[0,7015],[],[0,750],[0,26915],[],[0,3237],[0,6897],[],[0,8083],[0,39471],[],[0,4009],[0,40738],[],[0,6302],[0,37078],[],[0,316],[0,42511],[],[0,8431],[0,44879],[],[0,4059],[0,48233],[],[0,3537],[0,49640],[],[0,460],[0,18329],[],[0,7463],[0,9181],[],[0,8411],[0,25257],[],[0,8360],[0,6306],[],[0,8106],[0,12148],[],[0,5800],[0,19525],[],[0,1547],[0,884],[],[0,5733],[0,46703],[],[0,3847],[0,35295],[],[0,674],[0,24913],[],[0,4113],[0,37534],[],[0,7],[0,32247],[],[0,827],[0,26970],[],[0,656],[0,33583],[],[0,5907],[0,23726],[],[0,441],[0,48496],[],[0,7339],[0,16391],[],[0,1017],[0,39522],[],[0,8367],[0,4304],[],[0,1630],[0,16756],[],[0,3259],[0,22986],[],[0,5388],[0,10971],[],[0,7077],[0,12155],[],[0,8447],[0,6186],[],[0,4712],[0,37148],[],[0,7658],[0,22454],[],[0,5763],[0,9394],[],[0,6591],[0,17700],[],[0,1191],[0,20251],[],[0,6415],[0,25435],[],[0,2150],[0,25679],[],[0,1633],[0,17821],[],[0,7441],[0,38121],[],[0,112],[0,33348],[],[0,7616],[0,19601],[],[0,6959],[0,47521],[],[0,7427],[0,7074],[],[0,5396],[0,16802],[],[0,6681],[0,25632],[],[0,6788],[0,30477],[],[0,1696],[0,38931],[],[0,1193],[0,12343],[],[0,979],[0,47401],[],[0,6689],[0,15850],[],[0,1324],[0,6891],[],[0,7241],[0,41603],[],[0,3441],[0,8081],[],[0,7340],[0,21587],[],[0,3030],[0,41916],[],[0,1103],[0,37134],[],[0,498],[0,49940],[],[0,102],[0,29673],[],[0,4961],[0,26857],[],[0,2486],[0,38814],[],[0,3751],[0,32379],[],[0,7974],[0,47066],[],[0,5086],[0,47589],[],[0,7599],[0,35821],[],[0,1055],[0,23040],[],[0,3206],[0,20301],[],[0,5227],[0,48601],[],[0,2620],[0,481],[],[0,4942],[0,8358],[],[0,247],[0,9424],[],[0,1774],[0,12991],[],[0,3095],[0,45081],[],[0,3750],[0,34997],[],[0,3766],[0,13487],[],[0,8526],[0,44215],[],[0,7243],[0,29254],[],[0,2215],[0,4661],[],[0,5582],[0,44918],[],[0,7146],[0,16578],[],[0,8286],[0,1626],[],[0,2950],[0,19767],[],[0,8195],[0,38287],[],[0,3847],[0,27015],[],[0,833],[0,22915],[],[0,4161],[0,40667],[],[0,6778],[0,15601],[],[0,4667],[0,15848],[],[0,7115],[0,2300],[],[0,8145],[0,30612],[],[0,5798],[0,13475],[],[0,4687],[0,38664],[],[0,3269],[0,30080],[],[0,7991],[0,47655],[],[0,6772],[0,40509],[],[0,8094],[0,2687],[],[0,8413],[0,34339],[],[0,6239],[0,33229],[],[0,6197],[0,46526],[],[0,7520],[0,20808],[],[0,2807],[0,33071],[],[0,1518],[0,7541],[],[0,10],[0,23504],[],[0,7616],[0,27495],[],[0,2231],[0,48175],[],[0,5886],[0,29796],[],[0,3070],[0,20870],[],[0,2251],[0,28497],[],[0,5697],[0,16705],[],[0,6946],[0,1468],[],[0,4178],[0,29387],[],[0,5570],[0,3031],[],[0,2020],[0,29033],[],[0,619],[0,47947],[],[0,3085],[0,40095],[],[0,10],[0,32540],[],[0,5728],[0,49786],[],[0,6069],[0,5094],[],[0,6222],[0,18874],[],[0,141],[0,29019],[],[0,5476],[0,10090],[],[0,7773],[0,38872],[],[0,995],[0,11871],[],[0,4842],[0,15619],[],[0,5643],[0,9359],[],[0,4787],[0,34745],[],[0,1811],[0,3401],[],[0,4178],[0,35354],[],[0,2555],[0,49399],[],[0,7482],[0,14524],[],[0,7548],[0,33050],[],[0,4175],[0,19914],[],[0,6613],[0,30015],[],[0,8319],[0,5226],[],[0,2245],[0,47786],[],[0,3220],[0,796],[],[0,5420],[0,49051],[],[0,787],[0,12933],[],[0,4457],[0,20100],[],[0,2013],[0,1315],[],[0,8084],[0,2191],[],[0,5656],[0,12748],[],[0,5327],[0,27021],[],[0,7533],[0,17340],[],[0,8571],[0,3591],[],[0,238],[0,41588],[],[0,2633],[0,38382],[],[0,8043],[0,31372],[],[0,6669],[0,10204],[],[0,660],[0,39180],[],[0,7982],[0,22287],[],[0,8456],[0,33359],[],[0,4636],[0,39135],[],[0,7828],[0,17615],[],[0,4992],[0,6767],[],[0,2953],[0,35436],[],[0,1964],[0,41967],[],[0,8578],[0,13324],[],[0,354],[0,27121],[],[0,6130],[0,19400],[],[0,2785],[0,12326],[],[0,4114],[0,20025],[],[0,2224],[0,33611],[],[0,5029],[0,942],[],[0,3900],[0,35732],[],[0,7884],[0,43660],[],[0,6304],[0,40523],[],[0,874],[0,39506],[],[0,7336],[0,12108],[],[0,4939],[0,30428],[],[0,1151],[0,16846],[],[0,5611],[0,18347],[],[0,1857],[0,39145],[],[0,907],[0,42010],[],[0,1501],[0,6459],[],[0,2671],[0,15976],[],[0,7650],[0,5443],[],[0,3260],[0,32576],[],[0,3312],[0,30295],[],[0,8268],[0,31305],[],[0,3673],[0,48549],[],[0,6855],[0,3464],[],[0,5777],[0,15339],[],[0,558],[0,19216],[],[0,7716],[0,13254],[],[0,1883],[0,41742],[],[0,6533],[0,9124],[],[0,6907],[0,13248],[],[0,8779],[0,864],[],[0,7889],[0,32939],[],[0,4527],[0,24480],[],[0,3860],[0,8743],[],[0,7886],[0,19961],[],[0,7987],[0,28054],[],[0,4398],[0,29700],[],[0,3161],[0,21403],[],[0,5154],[0,22608],[],[0,225],[0,11369],[],[0,6726],[0,46997],[],[0,7901],[0,24856],[],[0,1327],[0,30321],[],[0,4805],[0,48790],[],[0,396],[0,38142],[],[0,2996],[0,49980],[],[0,6739],[0,17209],[],[0,8734],[0,13703],[],[0,2925],[0,24418],[],[0,5788],[0,22646],[],[0,2029],[0,43656],[],[0,3163],[0,5223],[],[0,2663],[0,9339],[],[0,2991],[0,27303],[],[0,6350],[0,42464],[],[0,4469],[0,8874],[],[0,6538],[0,35002],[],[0,3430],[0,26777],[],[0,8671],[0,28051],[],[0,3265],[0,12318],[],[0,1091],[0,5451],[],[0,4298],[0,24053],[],[0,8144],[0,46072],[],[0,816],[0,27715],[],[0,8651],[0,2820],[],[0,395],[0,7961],[],[0,1664],[0,25225],[],[0,1659],[0,43433],[],[0,3193],[0,4540],[],[0,7983],[0,33739],[],[0,8414],[0,28633],[],[0,7416],[0,30023],[],[0,4588],[0,10430],[],[0,4273],[0,10386],[],[0,1851],[0,25661],[],[0,7455],[0,33273],[],[0,1200],[0,29895],[],[0,8824],[0,23930],[],[0,1344],[0,16847],[],[0,3044],[0,5519],[],[0,6857],[0,36986],[],[0,2141],[0,30909],[],[0,5585],[0,49434],[],[0,68],[0,28658],[],[0,414],[0,34138],[],[0,5884],[0,16556],[],[0,6359],[0,43341],[],[0,7795],[0,42948],[],[0,8785],[0,24956],[],[0,3843],[0,39528],[],[0,5660],[0,29321],[],[0,7604],[0,39221],[],[0,1151],[0,37908],[],[0,8046],[0,24778],[],[0,202],[0,7770],[],[0,4536],[0,46924],[],[0,350],[0,30326],[],[0,5628],[0,25301],[],[0,8314],[0,36334],[],[0,8429],[0,49647],[],[0,1079],[0,20069],[],[0,3930],[0,4162],[],[0,6520],[0,33244],[],[0,8182],[0,33585],[],[0,7095],[0,46047],[],[0,4901],[0,19141],[],[0,460],[0,866],[],[0,1455],[0,26764],[],[0,5069],[0,4597],[],[0,6647],[0,17361],[],[0,617],[0,16765],[],[0,1721],[0,11726],[],[0,2027],[0,45165],[],[0,3596],[0,3979],[],[0,5007],[0,45016],[],[0,3812],[0,32400],[],[0,1949],[0,41394],[],[0,6187],[0,18637],[],[0,6041],[0,28509],[],[0,3296],[0,2923],[],[0,4993],[0,9362],[],[0,1153],[0,31903],[],[0,3946],[0,42578],[],[0,2438],[0,6809],[],[0,3460],[0,31397],[],[0,3166],[0,15281],[],[0,6826],[0,35800],[],[0,6715],[0,26699],[],[0,8870],[0,34744],[],[0,1803],[0,32405],[],[0,1286],[0,15470],[],[0,6709],[0,40147],[],[0,8530],[0,25183],[],[0,6366],[0,30001],[],[0,8736],[0,11178],[],[0,3800],[0,31854],[],[0,5015],[0,39482],[],[0,4056],[0,46725],[],[0,3830],[0,26825],[],[0,7956],[0,49382],[],[0,133],[0,39033],[],[0,906],[0,12097],[],[0,7064],[0,48731],[],[0,548],[0,46711],[],[0,8298],[0,23966],[],[0,6816],[0,46119],[],[0,3887],[0,25636],[],[0,3519],[0,27153],[],[0,2394],[0,2051],[],[0,8734],[0,32787],[],[0,6555],[0,13167],[],[0,2234],[0,25135],[],[0,337],[0,28918],[],[0,8848],[0,42063],[],[0,2717],[0,29864],[],[0,4435],[0,13955],[],[0,2285],[0,31691],[],[0,2461],[0,24151],[],[0,5170],[0,5249],[],[0,8679],[0,672],[],[0,7347],[0,43045],[],[0,8995],[0,27306],[],[0,7983],[0,42465],[],[0,3217],[0,17928],[],[0,5111],[0,3380],[],[0,4869],[0,31014],[],[0,3341],[0,14240],[],[0,7559],[0,12717],[],[0,5843],[0,9322],[],[0,452],[0,27791],[],[0,5243],[0,4139],[],[0,8229],[0,42209],[],[0,7723],[0,45646],[],[0,5177],[0,17654],[],[0,2642],[0,33456],[],[0,5653],[0,40946],[],[0,3942],[0,5422],[],[0,8862],[0,23328],[],[0,4675],[0,40551],[],[0,511],[0,12063],[],[0,3233],[0,886],[],[0,2021],[0,11324],[],[0,7948],[0,19464],[],[0,6531],[0,48359],[],[0,3907],[0,4111],[],[0,6258],[0,17705],[],[0,8294],[0,12786],[],[0,6675],[0,21985],[],[0,6390],[0,42595],[],[0,5389],[0,27779],[],[0,3153],[0,1431],[],[0,5873],[0,39063],[],[0,445],[0,14115],[],[0,2378],[0,3069],[],[0,6871],[0,41093],[],[0,4551],[0,25748],[],[0,1237],[0,47069],[],[0,6259],[0,41058],[],[0,7759],[0,29619],[],[0,5259],[0,19428],[],[0,8059],[0,31239],[],[0,8398],[0,42475],[],[0,8820],[0,38275],[],[0,9],[0,44330],[],[0,4203],[0,22184],[],[0,7334],[0,9149],[],[0,3129],[0,3912],[],[0,1825],[0,44388],[],[0,7597],[0,40633],[],[0,517],[0,12677],[],[0,7447],[0,21497],[],[0,2762],[0,41639],[],[0,73],[0,46450],[],[0,1268],[0,16640],[],[0,6403],[0,38854],[],[0,6420],[0,37366],[],[0,4463],[0,26101],[],[0,7823],[0,24257],[],[0,512],[0,41950],[],[0,8440],[0,10166],[],[0,6870],[0,42781],[],[0,7904],[0,48644],[],[0,1720],[0,14319],[],[0,7808],[0,398],[],[0,5540],[0,49439],[],[0,2361],[0,30545],[],[0,4946],[0,2107],[],[0,7729],[0,42221],[],[0,1522],[0,34676],[],[0,5625],[0,25539],[],[0,134],[0,34362],[],[0,3026],[0,31174],[],[0,4523],[0,16828],[],[0,4751],[0,41668],[],[0,7724],[0,30887],[],[0,8649],[0,30941],[],[0,1245],[0,39901],[],[0,3524],[0,35107],[],[0,431],[0,28753],[],[0,6579],[0,48528],[],[0,8281],[0,402],[],[0,152],[0,29574],[],[0,4284],[0,36654],[],[0,1430],[0,11376],[],[0,8936],[0,13561],[],[0,5825],[0,48279],[],[0,2988],[0,14856],[],[0,949],[0,46015],[],[0,2761],[0,26162],[],[0,2732],[0,31271],[],[0,8960],[0,36904],[],[0,828],[0,8240],[],[0,2429],[0,845],[],[0,1101],[0,25446],[],[0,1320],[0,49717],[],[0,1424],[0,4397],[],[0,6746],[0,42852],[],[0,3058],[0,37780],[],[0,964],[0,13629],[],[0,1479],[0,41047],[],[0,8488],[0,19527],[],[0,1435],[0,16413],[],[0,665],[0,20880],[],[0,5752],[0,22197],[],[0,6614],[0,40686],[],[0,8139],[0,11892],[],[0,6409],[0,35469],[],[0,7587],[0,42344],[],[0,7179],[0,42288],[],[0,2234],[0,43062],[],[0,9051],[0,2188],[],[0,4917],[0,13192],[],[0,1661],[0,33930],[],[0,3491],[0,16445],[],[0,3193],[0,49416],[],[0,817],[0,45596],[],[0,910],[0,41572],[],[0,7862],[0,23758],[],[0,2100],[0,24497],[],[0,2916],[0,101],[],[0,7649],[0,29671],[],[0,2220],[0,12681],[],[0,6390],[0,29685],[],[0,29],[0,32456],[],[0,5457],[0,46251],[],[0,1984],[0,28489],[],[0,4731],[0,27103],[],[0,25],[0,30484],[],[0,5999],[0,18748],[],[0,5112],[0,6749],[],[0,7369],[0,36038],[],[0,2644],[0,45096],[],[0,4895],[0,49380],[],[0,5298],[0,21172],[],[0,6782],[0,44508],[],[0,534],[0,11734],[],[0,6843],[0,11021],[],[0,6303],[0,25102],[],[0,1086],[0,42390],[],[0,2519],[0,11387],[],[0,2119],[0,6192],[],[0,8021],[0,17303],[],[0,5833],[0,5984],[],[0,2959],[0,13133],[],[0,8929],[0,46698],[],[0,4989],[0,49771],[],[0,5886],[0,2969],[],[0,2703],[0,43248],[],[0,2581],[0,12799],[],[0,3723],[0,14079],[],[0,1775],[0,19032],[],[0,4233],[0,15317],[],[0,8422],[0,34662],[],[0,5174],[0,12586],[],[0,5107],[0,33299],[],[0,8468],[0,3446],[],[0,6165],[0,21574],[],[0,6952],[0,24705],[],[0,2833],[0,4001],[],[0,6069],[0,12658],[],[0,5281],[0,20161],[],[0,293],[0,6777],[],[0,2976],[0,47498],[],[0,3131],[0,22205],[],[0,8912],[0,30779],[],[0,7756],[0,21846],[],[0,7449],[0,8026],[],[0,6538],[0,44404],[],[0,7876],[0,5561],[],[0,6035],[0,48095],[],[0,4060],[0,16371],[],[0,2029],[0,49143],[],[0,2170],[0,30707],[],[0,4879],[0,25325],[],[0,4016],[0,26131],[],[0,800],[0,21267],[],[0,4536],[0,32381],[],[0,8808],[0,11470],[],[0,978],[0,15401],[],[0,5005],[0,27475],[],[0,282],[0,23826],[],[0,1044],[0,48608],[],[0,3720],[0,12598],[],[0,8244],[0,20605],[],[0,4336],[0,22052],[],[0,6888],[0,45464],[],[0,3273],[0,7195],[],[0,6231],[0,39791],[],[0,5970],[0,17420],[],[0,4063],[0,38803],[],[0,5356],[0,2574],[],[0,1956],[0,11969],[],[0,9072],[0,144],[],[0,5997],[0,25437],[],[0,7931],[0,14987],[],[0,4737],[0,5368],[],[0,1430],[0,41394],[],[0,3188],[0,10216],[],[0,843],[0,18927],[],[0,1809],[0,49643],[],[0,3536],[0,17909],[],[0,6941],[0,7348],[],[0,6786],[0,5008],[],[0,8294],[0,1100],[],[0,3270],[0,31826],[],[0,5265],[0,35288],[],[0,286],[0,9208],[],[0,521],[0,28080],[],[0,8495],[0,36428],[],[0,2057],[0,47916],[],[0,7158],[0,29630],[],[0,5025],[0,44844],[],[0,2456],[0,22443],[],[0,3631],[0,42528],[],[0,8207],[0,35121],[],[0,6940],[0,41898],[],[0,7457],[0,23879],[],[0,3677],[0,34461],[],[0,7019],[0,33076],[],[0,5968],[0,6071],[],[0,6563],[0,28512],[],[0,7343],[0,44001],[],[0,8529],[0,3569],[],[0,1624],[0,20544],[],[0,206],[0,5759],[],[0,8075],[0,41494],[],[0,3471],[0,2575],[],[0,263],[0,34284],[],[0,6647],[0,2608],[],[0,4714],[0,4338],[],[0,4375],[0,27010],[],[0,1477],[0,37646],[],[0,7524],[0,48564],[],[0,3341],[0,3549],[],[0,1560],[0,13018],[],[0,5172],[0,38834],[],[0,3529],[0,20985],[],[0,6833],[0,15585],[],[0,8373],[0,34332],[],[0,6299],[0,8258],[],[0,2484],[0,16829],[],[0,5748],[0,19163],[],[0,614],[0,2509],[],[0,477],[0,16],[],[0,1142],[0,27241],[],[0,9217],[0,1159],[],[0,875],[0,5277],[],[0,69],[0,4468],[],[0,6500],[0,9135],[],[0,8135],[0,3921],[],[0,7486],[0,16903],[],[0,689],[0,30904],[],[0,1319],[0,32553],[],[0,4439],[0,3472],[],[0,3617],[0,32198],[],[0,4395],[0,44774],[],[0,8526],[0,9653],[],[0,6215],[0,40474],[],[0,6680],[0,9137],[],[0,6314],[0,37647],[],[0,372],[0,15698],[],[0,7009],[0,32584],[],[0,5890],[0,10273],[],[0,7270],[0,37304],[],[0,5218],[0,19513],[],[0,5316],[0,44714],[],[0,3148],[0,16304],[],[0,8833],[0,17592],[],[0,5643],[0,44934],[],[0,2596],[0,14968],[],[0,911],[0,21249],[],[0,1235],[0,5262],[],[0,7576],[0,21988],[],[0,4235],[0,10486],[],[0,1853],[0,2112],[],[0,8540],[0,8680],[],[0,1135],[0,35039],[],[0,7690],[0,31964],[],[0,8648],[0,8298],[],[0,2208],[0,33577],[],[0,8713],[0,43953],[],[0,621],[0,21089],[],[0,2172],[0,30938],[],[0,7101],[0,31995],[],[0,8432],[0,47859],[],[0,7016],[0,16324],[],[0,3052],[0,21476],[],[0,7562],[0,9224],[],[0,713],[0,38414],[],[0,347],[0,15032],[],[0,1383],[0,20506],[],[0,6654],[0,27499],[],[0,2820],[0,21444],[],[0,8831],[0,38429],[],[0,3555],[0,2689],[],[0,2498],[0,11695],[],[0,7332],[0,23732],[],[0,633],[0,2597],[],[0,8998],[0,31334],[],[0,6497],[0,40268],[],[0,2327],[0,44727],[],[0,9052],[0,39517],[],[0,5838],[0,256],[],[0,6355],[0,11878],[],[0,6547],[0,24464],[],[0,3882],[0,956],[],[0,2495],[0,31642],[],[0,5214],[0,4853],[],[0,5007],[0,1622],[],[0,7452],[0,35420],[],[0,8708],[0,48206],[],[0,7789],[0,20618],[],[0,2482],[0,7664],[],[0,1060],[0,1611],[],[0,6981],[0,19962],[],[0,6893],[0,28463],[],[0,4871],[0,26439],[],[0,2231],[0,12039],[],[0,1976],[0,48628],[],[0,3643],[0,10552],[],[0,6329],[0,600],[],[0,4112],[0,29709],[],[0,6351],[0,11382],[],[0,6830],[0,37643],[],[0,7209],[0,3003],[],[0,1567],[0,34972],[],[0,378],[0,7016],[],[0,304],[0,30158],[],[0,682],[0,49913],[],[0,6871],[0,29860],[],[0,2019],[0,6930],[],[0,546],[0,24776],[],[0,5659],[0,22200],[],[0,7686],[0,883],[],[0,7875],[0,22449],[],[0,7680],[0,401],[],[0,5005],[0,22013],[],[0,3649],[0,32477],[],[0,5754],[0,40274],[],[0,5664],[0,36487],[],[0,5720],[0,34527],[],[0,1383],[0,33571],[],[0,4186],[0,16777],[],[0,6853],[0,26572],[],[0,7646],[0,25657],[],[0,8122],[0,30213],[],[0,1311],[0,28718],[],[0,1885],[0,32306],[],[0,6364],[0,45688],[],[0,5206],[0,14835],[],[0,3371],[0,21401],[],[0,3854],[0,34293],[],[0,641],[0,6250],[],[0,2791],[0,28781],[],[0,5452],[0,11468],[],[0,4057],[0,37138],[],[0,5980],[0,44369],[],[0,4840],[0,44454],[],[0,5634],[0,45007],[],[0,4248],[0,1593],[],[0,4850],[0,43829],[],[0,8079],[0,19613],[],[0,225],[0,30531],[],[0,6053],[0,38752],[],[0,4893],[0,36177],[],[0,2247],[0,25921],[],[0,5357],[0,5875],[],[0,4654],[0,29299],[],[0,426],[0,15735],[],[0,2842],[0,18131],[],[0,7421],[0,9534],[],[0,1370],[0,5119],[],[0,299],[0,48533],[],[0,3361],[0,3782],[],[0,8056],[0,47235],[],[0,6121],[0,40784],[],[0,5269],[0,35567],[],[0,5396],[0,25230],[],[0,6568],[0,8554],[],[0,5734],[0,7863],[],[0,6465],[0,33925],[],[0,234],[0,28844],[],[0,577],[0,11170],[],[0,7778],[0,27768],[],[0,1831],[0,26774],[],[0,6232],[0,41978],[],[0,7635],[0,3282],[],[0,4823],[0,2942],[],[0,4752],[0,43292],[],[0,8813],[0,25964],[],[0,4881],[0,391],[],[0,1942],[0,13170],[],[0,3409],[0,18673],[],[0,3642],[0,38777],[],[0,4424],[0,24667],[],[0,1204],[0,22577],[],[0,5774],[0,35430],[],[0,4053],[0,46590],[],[0,7242],[0,37821],[],[0,5841],[0,10591],[],[0,1158],[0,2616],[],[0,8816],[0,32372],[],[0,1607],[0,32430],[],[0,7890],[0,613],[],[0,7170],[0,9353],[],[0,8416],[0,35543],[],[0,3318],[0,40670],[],[0,502],[0,20072],[],[0,1987],[0,9658],[],[0,2834],[0,34110],[],[0,1354],[0,45745],[],[0,2315],[0,2304],[],[0,8271],[0,23500],[],[0,8294],[0,42658],[],[0,4580],[0,38747],[],[0,5142],[0,30642],[],[0,5741],[0,25165],[],[0,1877],[0,49386],[],[0,8744],[0,28364],[],[0,9211],[0,35346],[],[0,4234],[0,41584],[],[0,1094],[0,27724],[],[0,9062],[0,6041],[],[0,2765],[0,680],[],[0,68],[0,11821],[],[0,9146],[0,301],[],[0,3744],[0,35175],[],[0,3554],[0,8788],[],[0,2067],[0,3285],[],[0,1947],[0,26944],[],[0,7157],[0,48992],[],[0,7410],[0,47408],[],[0,9168],[0,5885],[],[0,5415],[0,39535],[],[0,9397],[0,8068],[],[0,4197],[0,19278],[],[0,1837],[0,16724],[],[0,8293],[0,38463],[],[0,3102],[0,47745],[],[0,6077],[0,41510],[],[0,5396],[0,47180],[],[0,2118],[0,1436],[],[0,2033],[0,13571],[],[0,7985],[0,18441],[],[0,1991],[0,7653],[],[0,5805],[0,7344],[],[0,5749],[0,11627],[],[0,4886],[0,38229],[],[0,1291],[0,36713],[],[0,3081],[0,26348],[],[0,3816],[0,43490],[],[0,3661],[0,10465],[],[0,5755],[0,38375],[],[0,4381],[0,35239],[],[0,8819],[0,23909],[],[0,6508],[0,49695],[],[0,8197],[0,47233],[],[0,6964],[0,5069],[],[0,2156],[0,20014],[],[0,4214],[0,15100],[],[0,3982],[0,1307],[],[0,1070],[0,24330],[],[0,6372],[0,7874],[],[0,4523],[0,37978],[],[0,6984],[0,14614],[],[0,3175],[0,24670],[],[0,1557],[0,46454],[],[0,1571],[0,12612],[],[0,3778],[0,43548],[],[0,3060],[0,25704],[],[0,1635],[0,49885],[],[0,2055],[0,40589],[],[0,8135],[0,18738],[],[0,7753],[0,45885],[],[0,6354],[0,4064],[],[0,1152],[0,12023],[],[0,6370],[0,22937],[],[0,4817],[0,30056],[],[0,4108],[0,7518],[],[0,9374],[0,37949],[],[0,9096],[0,21981],[],[0,1863],[0,23105],[],[0,5781],[0,49595],[],[0,99],[0,45859],[],[0,2596],[0,28606],[],[0,8545],[0,12802],[],[0,5203],[0,32859],[],[0,8544],[0,32303],[],[0,601],[0,22295],[],[0,1126],[0,1321],[],[0,9017],[0,7572],[],[0,3001],[0,34434],[],[0,8520],[0,40703],[],[0,74],[0,37566],[],[0,3487],[0,1930],[],[0,3562],[0,6993],[],[0,652],[0,32592],[],[0,7796],[0,19648],[],[0,4276],[0,27128],[],[0,6793],[0,43235],[],[0,190],[0,17144],[],[0,7962],[0,29205],[],[0,571],[0,27894],[],[0,3392],[0,49858],[],[0,5962],[0,20526],[],[0,6487],[0,18650],[],[0,7378],[0,8992],[],[0,2341],[0,6222],[],[0,5059],[0,22376],[],[0,3797],[0,22409],[],[0,6855],[0,140],[],[0,4473],[0,30089],[],[0,1521],[0,34777],[],[0,5863],[0,2715],[],[0,8901],[0,30417],[],[0,5936],[0,12793],[],[0,3021],[0,7219],[],[0,8634],[0,35747],[],[0,5262],[0,29067],[],[0,8016],[0,7664],[],[0,8682],[0,6204],[],[0,4218],[0,30251],[],[0,826],[0,23641],[],[0,5451],[0,44007],[],[0,9076],[0,33126],[],[0,1023],[0,12229],[],[0,6388],[0,32243],[],[0,2320],[0,27570],[],[0,7968],[0,8414],[],[0,4639],[0,35463],[],[0,2047],[0,43618],[],[0,2302],[0,27207],[],[0,7704],[0,36585],[],[0,5998],[0,7266],[],[0,3639],[0,46837],[],[0,5978],[0,42850],[],[0,2737],[0,13535],[],[0,7878],[0,35549],[],[0,259],[0,4953],[],[0,4706],[0,2495],[],[0,5676],[0,12928],[],[0,4063],[0,8080],[],[0,4264],[0,17951],[],[0,6219],[0,2191],[],[0,8915],[0,41078],[],[0,5200],[0,35340],[],[0,4391],[0,840],[],[0,8549],[0,2167],[],[0,1994],[0,32380],[],[0,8753],[0,44188],[],[0,7103],[0,29347],[],[0,8129],[0,48339],[],[0,8131],[0,24012],[],[0,7494],[0,5636],[],[0,1183],[0,38461],[],[0,6088],[0,30588],[],[0,7080],[0,44358],[],[0,5557],[0,25787],[],[0,8533],[0,48709],[],[0,1105],[0,44460],[],[0,5835],[0,38038],[],[0,8955],[0,31885],[],[0,6933],[0,38046],[],[0,3504],[0,17301],[],[0,3151],[0,33342],[],[0,3155],[0,31680],[],[0,5214],[0,15661],[],[0,2561],[0,44383],[],[0,1166],[0,7278],[],[0,4646],[0,323],[],[0,4942],[0,7021],[],[0,4364],[0,34087],[],[0,1292],[0,17150],[],[0,4860],[0,30593],[],[0,3004],[0,11005],[],[0,3365],[0,23420],[],[0,4190],[0,9645],[],[0,7937],[0,45065],[],[0,6129],[0,30822],[],[0,87],[0,1208],[],[0,577],[0,36020],[],[0,1740],[0,27549],[],[0,5107],[0,13274],[],[0,8519],[0,15827],[],[0,3319],[0,30346],[],[0,5003],[0,26159],[],[0,4788],[0,8890],[],[0,5744],[0,3874],[],[0,6373],[0,41137],[],[0,7985],[0,43149],[],[0,1609],[0,46408],[],[0,4038],[0,16676],[],[0,6547],[0,35893],[],[0,4965],[0,17854],[],[0,6832],[0,6954],[],[0,7498],[0,16022],[],[0,8417],[0,3510],[],[0,2923],[0,13446],[],[0,1433],[0,28692],[],[0,5638],[0,8446],[],[0,3154],[0,17076],[],[0,8961],[0,30188],[],[0,5668],[0,6767],[],[0,2164],[0,28237],[],[0,9595],[0,10126],[],[0,9098],[0,13786],[],[0,3599],[0,42884],[],[0,6955],[0,34742],[],[0,5037],[0,40287],[],[0,8285],[0,25589],[],[0,3114],[0,30717],[],[0,324],[0,36289],[],[0,6908],[0,45828],[],[0,6038],[0,3852],[],[0,7376],[0,44550],[],[0,2537],[0,17146],[],[0,9056],[0,3302],[],[0,8201],[0,13307],[],[0,6664],[0,34005],[],[0,8820],[0,27098],[],[0,9546],[0,23671],[],[0,4416],[0,33616],[],[0,132],[0,7885],[],[0,8931],[0,49447],[],[0,4028],[0,40370],[],[0,8708],[0,24910],[],[0,2919],[0,3103],[],[0,6299],[0,21535],[],[0,2248],[0,6002],[],[0,5308],[0,20727],[],[0,8764],[0,38804],[],[0,4486],[0,2355],[],[0,2266],[0,19678],[],[0,9564],[0,39512],[],[0,4824],[0,15996],[],[0,9476],[0,12339],[],[0,2201],[0,4508],[],[0,3237],[0,7251],[],[0,2548],[0,5014],[],[0,6021],[0,42872],[],[0,3615],[0,21115],[],[0,5831],[0,11714],[],[0,3539],[0,47692],[],[0,7459],[0,9606],[],[0,1074],[0,35477],[],[0,8729],[0,38225],[],[0,2242],[0,8095],[],[0,5419],[0,24138],[],[0,7276],[0,36224],[],[0,2895],[0,45788],[],[0,4225],[0,40149],[],[0,6619],[0,42750],[],[0,5372],[0,4227],[],[0,3054],[0,8544],[],[0,7775],[0,9335],[],[0,2004],[0,17390],[],[0,9355],[0,9887],[],[0,9314],[0,1179],[],[0,1109],[0,12536],[],[0,8794],[0,34558],[],[0,9557],[0,32027],[],[0,3824],[0,24093],[],[0,5709],[0,44687],[],[0,407],[0,32076],[],[0,424],[0,17981],[],[0,4123],[0,47039],[],[0,4538],[0,32227],[],[0,9237],[0,8896],[],[0,1423],[0,43461],[],[0,9023],[0,40554],[],[0,7329],[0,46626],[],[0,1908],[0,13212],[],[0,4471],[0,23958],[],[0,5750],[0,45798],[],[0,5895],[0,8465],[],[0,7546],[0,4904],[],[0,221],[0,4937],[],[0,9135],[0,14422],[],[0,3042],[0,45727],[],[0,6655],[0,11176],[],[0,3479],[0,16179],[],[0,524],[0,6121],[],[0,5120],[0,2410],[],[0,8567],[0,21381],[],[0,6107],[0,10477],[],[0,1806],[0,22621],[],[0,6238],[0,8525],[],[0,4429],[0,20025],[],[0,2466],[0,46465],[],[0,3581],[0,30343],[],[0,8261],[0,2073],[],[0,6305],[0,14949],[],[0,4081],[0,36238],[],[0,7553],[0,8427],[],[0,2273],[0,37815],[],[0,5295],[0,614],[],[0,7043],[0,4108],[],[0,8689],[0,13511],[],[0,1649],[0,21486],[],[0,7595],[0,48670],[],[0,3508],[0,48067],[],[0,996],[0,16811],[],[0,3033],[0,34065],[],[0,5567],[0,22690],[],[0,5875],[0,23913],[],[0,6974],[0,27785],[],[0,23],[0,43835],[],[0,5060],[0,33414],[],[0,7960],[0,48676],[],[0,4806],[0,33443],[],[0,8432],[0,1881],[],[0,4422],[0,29971],[],[0,6387],[0,47984],[],[0,3843],[0,20880],[],[0,8904],[0,29030],[],[0,4256],[0,45640],[],[0,4474],[0,512],[],[0,81],[0,30790],[],[0,5624],[0,9697],[],[0,3037],[0,10811],[],[0,1218],[0,38017],[],[0,2442],[0,41281],[],[0,5402],[0,10246],[],[0,6706],[0,48379],[],[0,4989],[0,41290],[],[0,6632],[0,12208],[],[0,7086],[0,17868],[],[0,9537],[0,17258],[],[0,5697],[0,12988],[],[0,1222],[0,30783],[],[0,1099],[0,20945],[],[0,3906],[0,25296],[],[0,8466],[0,48724],[],[0,8579],[0,14763],[],[0,5842],[0,16028],[],[0,4050],[0,41099],[],[0,6294],[0,19774],[],[0,702],[0,47648],[],[0,3206],[0,44361],[],[0,8565],[0,20531],[],[0,2222],[0,27582],[],[0,8789],[0,30490],[],[0,2131],[0,37647],[],[0,9453],[0,24221],[],[0,4503],[0,21780],[],[0,2553],[0,43555],[],[0,9609],[0,39937],[],[0,632],[0,34182],[],[0,5687],[0,40226],[],[0,3910],[0,33113],[],[0,1089],[0,39877],[],[0,4708],[0,3193],[],[0,5223],[0,28998],[],[0,3618],[0,38523],[],[0,7667],[0,42611],[],[0,1319],[0,23527],[],[0,6399],[0,49453],[],[0,8012],[0,7023],[],[0,9091],[0,33481],[],[0,8043],[0,46957],[],[0,3080],[0,32343],[],[0,3683],[0,48733],[],[0,7619],[0,32167],[],[0,5350],[0,26893],[],[0,36],[0,30142],[],[0,2749],[0,7875],[],[0,9198],[0,26739],[],[0,4037],[0,38793],[],[0,4065],[0,1437],[],[0,4541],[0,7624],[],[0,7547],[0,35420],[],[0,5031],[0,40478],[],[0,3035],[0,11301],[],[0,329],[0,3251],[],[0,9432],[0,38322],[],[0,6986],[0,5996],[],[0,1965],[0,14590],[],[0,9155],[0,37297],[],[0,1508],[0,39598],[],[0,9457],[0,40470],[],[0,703],[0,43584],[],[0,9744],[0,47327],[],[0,8968],[0,1009],[],[0,3643],[0,33339],[],[0,2267],[0,46954],[],[0,6298],[0,18788],[],[0,866],[0,15863],[],[0,8009],[0,18100],[],[0,1981],[0,35957],[],[0,8753],[0,41295],[],[0,3126],[0,34353],[],[0,7787],[0,12860],[],[0,8123],[0,48501],[],[0,6301],[0,19410],[],[0,1787],[0,10317],[],[0,753],[0,26479],[],[0,197],[0,24011],[],[0,8769],[0,15403],[],[0,2254],[0,18924],[],[0,573],[0,27568],[],[0,4557],[0,14611],[],[0,7988],[0,41067],[],[0,4266],[0,13846],[],[0,5150],[0,43835],[],[0,3167],[0,32574],[],[0,8583],[0,19951],[],[0,8239],[0,49875],[],[0,6424],[0,26323],[],[0,4230],[0,24616],[],[0,4821],[0,14549],[],[0,627],[0,39465],[],[0,8951],[0,41659],[],[0,1881],[0,25738],[],[0,6627],[0,35252],[],[0,5032],[0,237],[],[0,8058],[0,5799],[],[0,7387],[0,30116],[],[0,8463],[0,19125],[],[0,7799],[0,38886],[],[0,5340],[0,6360],[],[0,253],[0,17320],[],[0,3852],[0,19911],[],[0,6928],[0,12180],[],[0,5397],[0,13409],[],[0,2377],[0,11731],[],[0,7924],[0,46245],[],[0,2775],[0,25145],[],[0,1017],[0,36339],[],[0,4903],[0,24505],[],[0,2450],[0,29313],[],[0,5229],[0,3090],[],[0,7870],[0,19900],[],[0,4367],[0,45471],[],[0,6252],[0,35586],[],[0,2474],[0,45515],[],[0,8166],[0,24171],[],[0,7697],[0,22031],[],[0,279],[0,30108],[],[0,1308],[0,8348],[],[0,5365],[0,36622],[],[0,7819],[0,27431],[],[0,6600],[0,33071],[],[0,7798],[0,48476],[],[0,338],[0,26492],[],[0,2793],[0,42818],[],[0,2122],[0,29047],[],[0,7934],[0,41641],[],[0,369],[0,49796],[],[0,2696],[0,42647],[],[0,1425],[0,13176],[],[0,2980],[0,15901],[],[0,5036],[0,217],[],[0,4977],[0,25559],[],[0,8260],[0,46263],[],[0,1323],[0,31100],[],[0,4269],[0,18401],[],[0,1378],[0,47648],[],[0,6273],[0,22425],[],[0,6787],[0,36595],[],[0,7965],[0,47468],[],[0,5958],[0,34782],[],[0,1607],[0,29368],[],[0,5077],[0,9286],[],[0,1410],[0,27799],[],[0,4778],[0,47210],[],[0,6959],[0,16979],[],[0,4973],[0,2725],[],[0,51],[0,1836],[],[0,6769],[0,4493],[],[0,4369],[0,1465],[],[0,7250],[0,31903],[],[0,1583],[0,2523],[],[0,2088],[0,37634],[],[0,7222],[0,3331],[],[0,9561],[0,48028],[],[0,3639],[0,2608],[],[0,9798],[0,26226],[],[0,6801],[0,27956],[],[0,2848],[0,13653],[],[0,4123],[0,33572],[],[0,8700],[0,12576],[],[0,9546],[0,7109],[],[0,5619],[0,32748],[],[0,7741],[0,27576],[],[0,2262],[0,28746],[],[0,2123],[0,10117],[],[0,4959],[0,1365],[],[0,2025],[0,24887],[],[0,6211],[0,31172],[],[0,7318],[0,5715],[],[0,7852],[0,34194],[],[0,8047],[0,18670],[],[0,2425],[0,34199],[],[0,3366],[0,20871],[],[0,709],[0,27216],[],[0,7090],[0,38484],[],[0,5101],[0,25038],[],[0,7569],[0,34014],[],[0,1882],[0,42854],[],[0,8265],[0,21115],[],[0,1907],[0,15482],[],[0,926],[0,5198],[],[0,9734],[0,4412],[],[0,7137],[0,34044],[],[0,5268],[0,2407],[],[0,8824],[0,14300],[],[0,8475],[0,20082],[],[0,6809],[0,3009],[],[0,5503],[0,2866],[],[0,8674],[0,31807],[],[0,1728],[0,16338],[],[0,6447],[0,47972],[],[0,2809],[0,34393],[],[0,5453],[0,32402],[],[0,3906],[0,3677],[],[0,8323],[0,3242],[],[0,1933],[0,41390],[],[0,7166],[0,33002],[],[0,1842],[0,5687],[],[0,496],[0,8887],[],[0,3308],[0,46952],[],[0,712],[0,21794],[],[0,9421],[0,20417],[],[0,8125],[0,24936],[],[0,4695],[0,31108],[],[0,2020],[0,30815],[],[0,5547],[0,8487],[],[0,7292],[0,6846],[],[0,6628],[0,30800],[],[0,2867],[0,18408],[],[0,3578],[0,30896],[],[0,2546],[0,39601],[],[0,9097],[0,25986],[],[0,2546],[0,39656],[],[0,3038],[0,10045],[],[0,4587],[0,49515],[],[0,349],[0,10788],[],[0,5877],[0,41830],[],[0,3983],[0,18653],[],[0,4112],[0,2397],[],[0,2011],[0,45712],[],[0,4713],[0,47592],[],[0,8505],[0,21098],[],[0,990],[0,27073],[],[0,60],[0,36972],[],[0,5611],[0,21771],[],[0,8760],[0,22616],[],[0,5498],[0,30898],[],[0,7190],[0,21138],[],[0,302],[0,1296],[],[0,5755],[0,9093],[],[0,881],[0,8467],[],[0,5622],[0,28143],[],[0,2662],[0,111],[],[0,9820],[0,14705],[],[0,1475],[0,38074],[],[0,4380],[0,40143],[],[0,4688],[0,38335],[],[0,5992],[0,31458],[],[0,5701],[0,26239],[],[0,7641],[0,17984],[],[0,4397],[0,1033],[],[0,4851],[0,48552],[],[0,2859],[0,4241],[],[0,2484],[0,626],[],[0,4871],[0,13707],[],[0,9518],[0,10747],[],[0,2390],[0,24693],[],[0,6255],[0,4688],[],[0,1245],[0,4623],[],[0,6285],[0,49513],[],[0,4236],[0,26549],[],[0,4437],[0,30302],[],[0,4005],[0,2662],[],[0,8010],[0,27163],[],[0,8204],[0,7231],[],[0,4792],[0,43637],[],[0,1656],[0,6981],[],[0,6714],[0,46065],[],[0,8797],[0,39593],[],[0,2848],[0,18283],[],[0,6356],[0,17746],[],[0,856],[0,45905],[],[0,4934],[0,5780],[],[0,4590],[0,43204],[],[0,630],[0,35497],[],[0,3603],[0,35415],[],[0,3296],[0,29935],[],[0,9771],[0,43452],[],[0,3360],[0,12399],[],[0,2532],[0,11621],[],[0,1946],[0,6958],[],[0,8807],[0,33671],[],[0,6479],[0,48392],[],[0,1885],[0,45400],[],[0,5139],[0,15265],[],[0,6910],[0,45921],[],[0,4767],[0,5442],[],[0,6545],[0,42156],[],[0,9479],[0,25804],[],[0,6891],[0,25943],[],[0,9032],[0,29055],[],[0,8466],[0,21925],[],[0,3303],[0,34360],[],[0,2979],[0,1798],[],[0,4318],[0,668],[],[0,4509],[0,33617],[],[0,502],[0,41417],[],[0,2081],[0,5966],[],[0,8083],[0,17482],[],[0,6734],[0,27343],[],[0,8755],[0,6061],[],[0,5623],[0,20542],[],[0,8392],[0,5670],[],[0,341],[0,27741],[],[0,5603],[0,1187],[],[0,5394],[0,20135],[],[0,1580],[0,47420],[],[0,3515],[0,35733],[],[0,3984],[0,25579],[],[0,4110],[0,27980],[],[0,7359],[0,40910],[],[0,2901],[0,17890],[],[0,683],[0,11759],[],[0,597],[0,6120],[],[0,9002],[0,38050],[],[0,3049],[0,20222],[],[0,7507],[0,22874],[],[0,340],[0,49387],[],[0,693],[0,47824],[],[0,5187],[0,23173],[],[0,7101],[0,38866],[],[0,9207],[0,34208],[],[0,3817],[0,2701],[],[0,4169],[0,4884],[],[0,5822],[0,10949],[],[0,8485],[0,28647],[],[0,4092],[0,33771],[],[0,9902],[0,4219],[],[0,5557],[0,41426],[],[0,7031],[0,35363],[],[0,9744],[0,45211],[],[0,8191],[0,34312],[],[0,1707],[0,25380],[],[0,612],[0,25901],[],[0,2185],[0,6452],[],[0,143],[0,36458],[],[0,8210],[0,34287],[],[0,8208],[0,47301],[],[0,6864],[0,10141],[],[0,7535],[0,3115],[],[0,8294],[0,25845],[],[0,3251],[0,527],[],[0,4687],[0,8295],[],[0,8231],[0,21007],[],[0,9962],[0,26642],[],[0,3211],[0,17777],[],[0,2271],[0,25688],[],[0,7874],[0,9724],[],[0,1066],[0,483],[],[0,4022],[0,10664],[],[0,7989],[0,19034],[],[0,8402],[0,12313],[],[0,7702],[0,39985],[],[0,10001],[0,47430],[],[0,4565],[0,4048],[],[0,2528],[0,49984],[],[0,2079],[0,37495],[],[0,7631],[0,7322],[],[0,6090],[0,42164],[],[0,5878],[0,28074],[],[0,2488],[0,15787],[],[0,2689],[0,24104],[],[0,7666],[0,48121],[],[0,1583],[0,37981],[],[0,3102],[0,25939],[],[0,8262],[0,7783],[],[0,2071],[0,12216],[],[0,6022],[0,23543],[],[0,1839],[0,41299],[],[0,2535],[0,4736],[],[0,8755],[0,28243],[],[0,5094],[0,16993],[],[0,318],[0,846],[],[0,7565],[0,20121],[],[0,602],[0,49019],[],[0,9821],[0,49755],[],[0,1739],[0,5936],[],[0,9929],[0,24547],[],[0,4465],[0,34106],[],[0,9488],[0,49504],[],[0,5279],[0,5805],[],[0,78],[0,27831],[],[0,7351],[0,40841],[],[0,243],[0,23328],[],[0,8519],[0,10647],[],[0,8536],[0,6344],[],[0,2411],[0,23558],[],[0,6932],[0,40112],[],[0,229],[0,7773],[],[0,7182],[0,36090],[],[0,643],[0,12124],[],[0,4722],[0,15616],[],[0,5374],[0,9982],[],[0,9529],[0,46198],[],[0,9993],[0,5519],[],[0,2257],[0,29022],[],[0,7382],[0,32035],[],[0,1822],[0,46928],[],[0,1404],[0,48367],[],[0,2267],[0,1636],[],[0,4670],[0,48352],[],[0,3888],[0,46888],[],[0,1287],[0,2427],[],[0,5190],[0,43539],[],[0,5674],[0,14082],[],[0,6902],[0,7061],[],[0,7599],[0,43937],[],[0,1141],[0,41114],[],[0,6819],[0,29243],[],[0,4435],[0,28557],[],[0,9398],[0,28626],[],[0,4060],[0,6762],[],[0,7597],[0,44745],[],[0,791],[0,19504],[],[0,8568],[0,33149],[],[0,6286],[0,48727],[],[0,9470],[0,10164],[],[0,9771],[0,24957],[],[0,7],[0,26083],[],[0,211],[0,19008],[],[0,5189],[0,38322],[],[0,9885],[0,11618],[],[0,6445],[0,28579],[],[0,6508],[0,8390],[],[0,455],[0,43084],[],[0,2944],[0,18070],[],[0,1453],[0,2443],[],[0,4269],[0,34605],[],[0,1115],[0,30045],[],[0,2907],[0,32357],[],[0,1069],[0,30791],[],[0,5796],[0,41161],[],[0,2704],[0,46867],[],[0,3404],[0,28155],[],[0,1845],[0,18353],[],[0,1481],[0,18189],[],[0,5253],[0,27379],[],[0,4483],[0,34883],[],[0,2147],[0,15036],[],[0,1568],[0,41218],[],[0,6276],[0,29486],[],[0,9709],[0,41828],[],[0,2157],[0,11538],[],[0,885],[0,47877],[],[0,1224],[0,7563],[],[0,4092],[0,813],[],[0,2250],[0,46238],[],[0,6012],[0,43508],[],[0,7787],[0,10865],[],[0,2676],[0,2733],[],[0,4177],[0,46022],[],[0,135],[0,11590],[],[0,7163],[0,45746],[],[0,3988],[0,4513],[],[0,10004],[0,22754],[],[0,707],[0,3018],[],[0,2314],[0,10135],[],[0,4020],[0,7902],[],[0,9732],[0,33239],[],[0,2700],[0,12577],[],[0,6697],[0,36233],[],[0,3905],[0,18857],[],[0,9493],[0,9971],[],[0,3032],[0,20969],[],[0,3300],[0,10048],[],[0,7627],[0,10267],[],[0,8386],[0,11020],[],[0,9349],[0,30164],[],[0,6432],[0,43855],[],[0,7913],[0,30643],[],[0,7806],[0,4481],[],[0,2764],[0,44396],[],[0,776],[0,36258],[],[0,3893],[0,43114],[],[0,5755],[0,46005],[],[0,3557],[0,19144],[],[0,3633],[0,38191],[],[0,8436],[0,16064],[],[0,10059],[0,4663],[],[0,1060],[0,14972],[],[0,761],[0,14107],[],[0,8820],[0,18767],[],[0,8506],[0,44445],[],[0,6409],[0,10460],[],[0,694],[0,31556],[],[0,3212],[0,29266],[],[0,6922],[0,9146],[],[0,6520],[0,165],[],[0,6473],[0,2996],[],[0,4264],[0,39791],[],[0,665],[0,17498],[],[0,5930],[0,3702],[],[0,2003],[0,45912],[],[0,5644],[0,46268],[],[0,7271],[0,24379],[],[0,1390],[0,34523],[],[0,5430],[0,13186],[],[0,7991],[0,28630],[],[0,9337],[0,39901],[],[0,1922],[0,6735],[],[0,4633],[0,4912],[],[0,8705],[0,35594],[],[0,799],[0,28652],[],[0,6776],[0,49456],[],[0,3992],[0,33235],[],[0,6003],[0,40933],[],[0,9284],[0,48336],[],[0,8866],[0,38945],[],[0,3787],[0,16266],[],[0,4507],[0,22992],[],[0,772],[0,10476],[],[0,1449],[0,13770],[],[0,8212],[0,4913],[],[0,1592],[0,36078],[],[0,1856],[0,21455],[],[0,1421],[0,36338],[],[0,8886],[0,20000],[],[0,10078],[0,40495],[],[0,10080],[0,49794],[],[0,2662],[0,48531],[],[0,3884],[0,9931],[],[0,4528],[0,12745],[],[0,6424],[0,34453],[],[0,4550],[0,22107],[],[0,3929],[0,23222],[],[0,10062],[0,25302],[],[0,4510],[0,35059],[],[0,3616],[0,30868],[],[0,3635],[0,20292],[],[0,8830],[0,25452],[],[0,3142],[0,49326],[],[0,9046],[0,43061],[],[0,9173],[0,40702],[],[0,1593],[0,27761],[],[0,8005],[0,6955],[],[0,3254],[0,22110],[],[0,8655],[0,8975],[],[0,507],[0,19213],[],[0,2027],[0,29088],[],[0,3128],[0,39502],[],[0,355],[0,29482],[],[0,1398],[0,2566],[],[0,10113],[0,32660],[],[0,1530],[0,3627],[],[0,3428],[0,9167],[],[0,2718],[0,33411],[],[0,275],[0,9621],[],[0,8683],[0,35800],[],[0,7539],[0,8573],[],[0,9352],[0,6858],[],[0,8345],[0,49605],[],[0,2408],[0,36526],[],[0,7628],[0,2591],[],[0,4978],[0,5995],[],[0,6903],[0,14246],[],[0,6297],[0,4098],[],[0,7534],[0,37630],[],[0,7651],[0,15101],[],[0,8856],[0,16401],[],[0,8604],[0,9413],[],[0,7000],[0,26434],[],[0,1209],[0,3075],[],[0,3202],[0,13976],[],[0,8680],[0,5769],[],[0,6766],[0,41281],[],[0,1266],[0,12483],[],[0,2620],[0,27599],[],[0,2218],[0,45085],[],[0,4967],[0,9409],[],[0,2063],[0,15942],[],[0,6583],[0,2246],[],[0,219],[0,31038],[],[0,1024],[0,31684],[],[0,8474],[0,28399],[],[0,4083],[0,8897],[],[0,2926],[0,2491],[],[0,4056],[0,24395],[],[0,795],[0,49868],[],[0,4038],[0,43787],[],[0,7247],[0,36086],[],[0,4589],[0,36161],[],[0,1677],[0,30833],[],[0,8575],[0,4540],[],[0,273],[0,6290],[],[0,8394],[0,1308],[],[0,7920],[0,28094],[],[0,1518],[0,29424],[],[0,9275],[0,43192],[],[0,2558],[0,16303],[],[0,6935],[0,7977],[],[0,2977],[0,37432],[],[0,1904],[0,35343],[],[0,3214],[0,32724],[],[0,4993],[0,8966],[],[0,5460],[0,20294],[],[0,2660],[0,30268],[],[0,7649],[0,6734],[],[0,7318],[0,45073],[],[0,9560],[0,12111],[],[0,4673],[0,17630],[],[0,8351],[0,39116],[],[0,4116],[0,46136],[],[0,5154],[0,44078],[],[0,390],[0,35400],[],[0,5197],[0,1154],[],[0,286],[0,6924],[],[0,3908],[0,28450],[],[0,3080],[0,4956],[],[0,8682],[0,15341],[],[0,962],[0,45239],[],[0,896],[0,29015],[],[0,3448],[0,35406],[],[0,8649],[0,7022],[],[0,6121],[0,44646],[],[0,9679],[0,43747],[],[0,5921],[0,20169],[],[0,6519],[0,4656],[],[0,8999],[0,10777],[],[0,1657],[0,35111],[],[0,9032],[0,49779],[],[0,1190],[0,12095],[],[0,645],[0,16389],[],[0,7892],[0,44433],[],[0,5213],[0,11900],[],[0,8441],[0,10377],[],[0,4406],[0,48171],[],[0,4385],[0,42299],[],[0,8941],[0,15079],[],[0,6327],[0,6537],[],[0,9857],[0,21340],[],[0,827],[0,9566],[],[0,3564],[0,34053],[],[0,8432],[0,15938],[],[0,10031],[0,23465],[],[0,674],[0,26703],[],[0,3729],[0,5244],[],[0,5880],[0,44466],[],[0,7788],[0,46183],[],[0,1643],[0,30099],[],[0,9957],[0,20907],[],[0,1165],[0,12718],[],[0,999],[0,18328],[],[0,5705],[0,42285],[],[0,3217],[0,8746],[],[0,9131],[0,9416],[],[0,9872],[0,1636],[],[0,3832],[0,14145],[],[0,1733],[0,47069],[],[0,4953],[0,39973],[],[0,8903],[0,32005],[],[0,7795],[0,47963],[],[0,5920],[0,44762],[],[0,1637],[0,42778],[],[0,10296],[0,10215],[],[0,7173],[0,24854],[],[0,5512],[0,46428],[],[0,8328],[0,30179],[],[0,8448],[0,15905],[],[0,5154],[0,2041],[],[0,3013],[0,17337],[],[0,872],[0,42329],[],[0,2370],[0,29349],[],[0,1002],[0,15699],[],[0,273],[0,481],[],[0,3815],[0,3005],[],[0,705],[0,48349],[],[0,9161],[0,7972],[],[0,3647],[0,13895],[],[0,8400],[0,32432],[],[0,3751],[0,40735],[],[0,8694],[0,46720],[],[0,1083],[0,46375],[],[0,4495],[0,16838],[],[0,977],[0,20799],[],[0,5610],[0,17885],[],[0,3186],[0,13830],[],[0,5686],[0,24348],[],[0,1817],[0,14153],[],[0,1148],[0,24824],[],[0,6352],[0,2202],[],[0,3294],[0,317],[],[0,7740],[0,33624],[],[0,7984],[0,3866],[],[0,6572],[0,2112],[],[0,5376],[0,3538],[],[0,8192],[0,12735],[],[0,4961],[0,38445],[],[0,6231],[0,21358],[],[0,5162],[0,28929],[],[0,577],[0,5728],[],[0,5720],[0,39071],[],[0,7248],[0,1927],[],[0,6085],[0,35867],[],[0,5824],[0,3819],[],[0,1945],[0,43883],[],[0,5055],[0,26077],[],[0,4529],[0,26804],[],[0,7443],[0,23720],[],[0,76],[0,30182],[],[0,9411],[0,39791],[],[0,3468],[0,6453],[],[0,1051],[0,15049],[],[0,8418],[0,34256],[],[0,2805],[0,17853],[],[0,5866],[0,48463],[],[0,3906],[0,44419],[],[0,8941],[0,20679],[],[0,1075],[0,48483],[],[0,3523],[0,48711],[],[0,8120],[0,3507],[],[0,7833],[0,1081],[],[0,9918],[0,26875],[],[0,7811],[0,45425],[],[0,7085],[0,1336],[],[0,7789],[0,38345],[],[0,7888],[0,29590],[],[0,9641],[0,5702],[],[0,5904],[0,9561],[],[0,3465],[0,48615],[],[0,4500],[0,6731],[],[0,8267],[0,15909],[],[0,9371],[0,13984],[],[0,2566],[0,21898],[],[0,1653],[0,11761],[],[0,5547],[0,18317],[],[0,9586],[0,16151],[],[0,5319],[0,2268],[],[0,9441],[0,1604],[],[0,9439],[0,6190],[],[0,946],[0,40195],[],[0,6639],[0,42312],[],[0,8667],[0,20026],[],[0,1783],[0,436],[],[0,10051],[0,4055],[],[0,6529],[0,37136],[],[0,10252],[0,5735],[],[0,8789],[0,38343],[],[0,7938],[0,48195],[],[0,9318],[0,49635],[],[0,9778],[0,28580],[],[0,7182],[0,49521],[],[0,1872],[0,10244],[],[0,8351],[0,18084],[],[0,3984],[0,39409],[],[0,3204],[0,24495],[],[0,975],[0,12570],[],[0,7063],[0,28324],[],[0,7554],[0,6778],[],[0,561],[0,10635],[],[0,9457],[0,5563],[],[0,6355],[0,19544],[],[0,7420],[0,23042],[],[0,57],[0,47889],[],[0,6617],[0,2688],[],[0,3212],[0,38017],[],[0,1423],[0,7073],[],[0,10161],[0,6998],[],[0,6833],[0,37451],[],[0,5588],[0,25318],[],[0,2876],[0,22404],[],[0,1606],[0,39182],[],[0,2151],[0,30187],[],[0,7290],[0,40701],[],[0,10319],[0,38918],[],[0,5662],[0,16117],[],[0,6714],[0,22987],[],[0,8735],[0,6668],[],[0,2052],[0,28408],[],[0,8542],[0,41327],[],[0,6492],[0,23820],[],[0,7640],[0,12189],[],[0,9353],[0,33181],[],[0,4963],[0,24431],[],[0,8807],[0,17613],[],[0,7056],[0,24665],[],[0,7636],[0,518],[],[0,605],[0,10546],[],[0,9561],[0,13140],[],[0,4919],[0,1457],[],[0,4468],[0,4674],[],[0,3388],[0,47230],[],[0,4946],[0,30811],[],[0,10043],[0,23817],[],[0,7647],[0,36182],[],[0,223],[0,43390],[],[0,2848],[0,46559],[],[0,7367],[0,44314],[],[0,7980],[0,43882],[],[0,6602],[0,5707],[],[0,389],[0,34360],[],[0,5878],[0,7620],[],[0,6054],[0,48376],[],[0,5387],[0,39502],[],[0,7912],[0,21588],[],[0,2212],[0,5931],[],[0,635],[0,2405],[],[0,7239],[0,43120],[],[0,8349],[0,33343],[],[0,2526],[0,29462],[],[0,8553],[0,36747],[],[0,5716],[0,33780],[],[0,10265],[0,20665],[],[0,3338],[0,29852],[],[0,3087],[0,35149],[],[0,6815],[0,265],[],[0,6762],[0,249],[],[0,6381],[0,3716],[],[0,8652],[0,14753],[],[0,5556],[0,6343],[],[0,3940],[0,44645],[],[0,5887],[0,43484],[],[0,7367],[0,17782],[],[0,7079],[0,29944],[],[0,194],[0,4540],[],[0,5440],[0,34660],[],[0,3488],[0,14624],[],[0,363],[0,35207],[],[0,3280],[0,14676],[],[0,5744],[0,19171],[],[0,7799],[0,3810],[],[0,3901],[0,13023],[],[0,2285],[0,14440],[],[0,83],[0,9602],[],[0,8288],[0,41023],[],[0,7965],[0,29742],[],[0,3744],[0,7370],[],[0,7628],[0,26017],[],[0,6962],[0,39093],[],[0,824],[0,16498],[],[0,2207],[0,43341],[],[0,1267],[0,32356],[],[0,1243],[0,16435],[],[0,8268],[0,7433],[],[0,4972],[0,42294],[],[0,5267],[0,34294],[],[0,6651],[0,9170],[],[0,5339],[0,478],[],[0,513],[0,18896],[],[0,2413],[0,3999],[],[0,8169],[0,45147],[],[0,905],[0,31300],[],[0,5470],[0,27882],[],[0,961],[0,30933],[],[0,6828],[0,547],[],[0,9057],[0,30195],[],[0,3934],[0,9819],[],[0,4716],[0,20209],[],[0,1068],[0,9756],[],[0,4083],[0,41501],[],[0,6060],[0,41632],[],[0,4281],[0,27175],[],[0,8916],[0,45792],[],[0,7536],[0,40971],[],[0,10245],[0,6440],[],[0,3065],[0,19592],[],[0,2415],[0,12483],[],[0,9040],[0,46899],[],[0,3504],[0,12099],[],[0,7537],[0,46083],[],[0,10046],[0,37853],[],[0,4504],[0,18785],[],[0,10370],[0,48599],[],[0,9751],[0,26206],[],[0,7982],[0,29362],[],[0,4486],[0,11477],[],[0,7635],[0,30642],[],[0,5793],[0,11945],[],[0,3036],[0,7415],[],[0,9294],[0,25761],[],[0,6101],[0,927],[],[0,6963],[0,22456],[],[0,5405],[0,25261],[],[0,4830],[0,34586],[],[0,9034],[0,31470],[],[0,1755],[0,11730],[],[0,9361],[0,39012],[],[0,9826],[0,16827],[],[0,6121],[0,14519],[],[0,7935],[0,6753],[],[0,6823],[0,46834],[],[0,1738],[0,30746],[],[0,8932],[0,26382],[],[0,4197],[0,725],[],[0,4399],[0,44509],[],[0,7608],[0,49849],[],[0,4962],[0,9055],[],[0,4437],[0,23652],[],[0,1108],[0,37923],[],[0,3447],[0,18003],[],[0,7682],[0,24357],[],[0,907],[0,17704],[],[0,1344],[0,35592],[],[0,997],[0,9929],[],[0,4032],[0,3479],[],[0,9351],[0,32569],[],[0,3473],[0,17046],[],[0,4059],[0,16225],[],[0,8833],[0,11812],[],[0,5539],[0,3971],[],[0,1572],[0,27422],[],[0,9550],[0,11591],[],[0,7995],[0,735],[],[0,9758],[0,6211],[],[0,5650],[0,15561],[],[0,4708],[0,8256],[],[0,6149],[0,12245],[],[0,3616],[0,518],[],[0,4311],[0,1848],[],[0,9805],[0,32534],[],[0,314],[0,39099],[],[0,3710],[0,49246],[],[0,5124],[0,40597],[],[0,5025],[0,28153],[],[0,2507],[0,20755],[],[0,237],[0,13070],[],[0,2394],[0,49520],[],[0,6096],[0,41725],[],[0,4429],[0,34093],[],[0,7725],[0,16614],[],[0,4790],[0,7443],[],[0,7091],[0,49203],[],[0,3677],[0,28598],[],[0,6582],[0,18182],[],[0,2381],[0,10500],[],[0,4891],[0,29417],[],[0,1528],[0,21628],[],[0,3344],[0,8132],[],[0,951],[0,10008],[],[0,2325],[0,41926],[],[0,2025],[0,4311],[],[0,5829],[0,31318],[],[0,341],[0,31352],[],[0,1604],[0,26346],[],[0,8534],[0,25043],[],[0,7709],[0,42875],[],[0,2958],[0,14372],[],[0,1128],[0,11176],[],[0,9915],[0,18019],[],[0,8158],[0,6342],[],[0,9148],[0,43919],[],[0,2846],[0,7708],[],[0,6114],[0,8809],[],[0,10025],[0,2021],[],[0,6729],[0,14872],[],[0,230],[0,30911],[],[0,3539],[0,48646],[],[0,8647],[0,17217],[],[0,254],[0,1919],[],[0,857],[0,41872],[],[0,2504],[0,3705],[],[0,3599],[0,37164],[],[0,6387],[0,16099],[],[0,10026],[0,15490],[],[0,755],[0,44426],[],[0,1614],[0,22762],[],[0,9191],[0,9654],[],[0,248],[0,5928],[],[0,1784],[0,8483],[],[0,10268],[0,779],[],[0,9884],[0,44056],[],[0,3668],[0,2466],[],[0,9135],[0,47127],[],[0,5765],[0,31163],[],[0,5526],[0,254],[],[0,8257],[0,22649],[],[0,2884],[0,38921],[],[0,3381],[0,4113],[],[0,1999],[0,3453],[],[0,7858],[0,30842],[],[0,4405],[0,1609],[],[0,4117],[0,21627],[],[0,3467],[0,21902],[],[0,8212],[0,7050],[],[0,3690],[0,21168],[],[0,9014],[0,8218],[],[0,9676],[0,36519],[],[0,4159],[0,37785],[],[0,3232],[0,323],[],[0,10572],[0,21947],[],[0,8847],[0,41744],[],[0,4552],[0,48718],[],[0,2252],[0,41146],[],[0,1957],[0,49959],[],[0,10525],[0,34453],[],[0,8351],[0,23853],[],[0,2599],[0,34574],[],[0,2396],[0,16226],[],[0,9457],[0,19516],[],[0,3884],[0,44341],[],[0,7872],[0,43033],[],[0,4933],[0,3897],[],[0,8621],[0,37496],[],[0,7841],[0,42343],[],[0,3896],[0,25749],[],[0,5947],[0,28308],[],[0,755],[0,8138],[],[0,2556],[0,33740],[],[0,5202],[0,3431],[],[0,2216],[0,30574],[],[0,2057],[0,38428],[],[0,3322],[0,48363],[],[0,9417],[0,34244],[],[0,5003],[0,35451],[],[0,470],[0,24041],[],[0,3847],[0,29150],[],[0,7239],[0,31639],[],[0,1014],[0,12689],[],[0,3361],[0,48730],[],[0,1424],[0,12461],[],[0,1151],[0,6005],[],[0,7005],[0,4145],[],[0,2309],[0,7175],[],[0,7311],[0,27034],[],[0,4945],[0,28024],[],[0,6455],[0,8184],[],[0,5208],[0,42390],[],[0,1191],[0,31511],[],[0,8060],[0,44697],[],[0,1254],[0,39854],[],[0,8099],[0,17292],[],[0,9281],[0,30838],[],[0,8573],[0,17152],[],[0,4822],[0,31451],[],[0,6308],[0,12462],[],[0,6948],[0,29653],[],[0,3806],[0,31126],[],[0,3522],[0,17747],[],[0,8204],[0,20448],[],[0,3233],[0,30654],[],[0,7886],[0,5533],[],[0,3152],[0,9387],[],[0,8914],[0,13669],[],[0,5186],[0,22524],[],[0,9361],[0,8623],[],[0,10144],[0,22673],[],[0,4052],[0,10106],[],[0,3832],[0,19256],[],[0,1851],[0,38725],[],[0,5289],[0,13427],[],[0,10089],[0,49078],[],[0,3602],[0,16773],[],[0,468],[0,30140],[],[0,6178],[0,26516],[],[0,3855],[0,22321],[],[0,1291],[0,48740],[],[0,8434],[0,3451],[],[0,7229],[0,31031],[],[0,10153],[0,19454],[],[0,8456],[0,33586],[],[0,9260],[0,39887],[],[0,3538],[0,31841],[],[0,10080],[0,2386],[],[0,10261],[0,21881],[],[0,6398],[0,35547],[],[0,10583],[0,3283],[],[0,10179],[0,39205],[],[0,10717],[0,1799],[],[0,10237],[0,31037],[],[0,7186],[0,35308],[],[0,2699],[0,14372],[],[0,5243],[0,3474],[],[0,3310],[0,11874],[],[0,9086],[0,42550],[],[0,8468],[0,25096],[],[0,3316],[0,27485],[],[0,6715],[0,25040],[],[0,289],[0,40744],[],[0,9616],[0,23804],[],[0,4024],[0,3079],[],[0,8540],[0,30450],[],[0,3616],[0,27706],[],[0,9579],[0,39683],[],[0,4267],[0,2869],[],[0,4489],[0,23204],[],[0,8357],[0,11209],[],[0,4282],[0,4640],[],[0,9808],[0,13830],[],[0,3929],[0,37017],[],[0,8013],[0,40772],[],[0,9006],[0,22214],[],[0,300],[0,33959],[],[0,10636],[0,43026],[],[0,6811],[0,3174],[],[0,4166],[0,544],[],[0,89],[0,16095],[],[0,7391],[0,25732],[],[0,10133],[0,13027],[],[0,2451],[0,23145],[],[0,2855],[0,5229],[],[0,4674],[0,38612],[],[0,5622],[0,9215],[],[0,431],[0,43034],[],[0,4135],[0,1180],[],[0,5965],[0,16301],[],[0,9971],[0,15781],[],[0,3820],[0,24497],[],[0,6023],[0,29374],[],[0,51],[0,31643],[],[0,740],[0,47149],[],[0,2644],[0,20993],[],[0,3257],[0,38145],[],[0,93],[0,27018],[],[0,7177],[0,30819],[],[0,8353],[0,455],[],[0,10179],[0,19494],[],[0,10264],[0,29260],[],[0,10633],[0,11856],[],[0,1005],[0,13023],[],[0,5833],[0,13794],[],[0,5697],[0,18832],[],[0,7941],[0,41513],[],[0,2827],[0,46882],[],[0,9498],[0,10280],[],[0,5608],[0,1722],[],[0,10133],[0,25005],[],[0,3417],[0,15823],[],[0,1617],[0,11095],[],[0,2398],[0,38093],[],[0,10656],[0,11890],[],[0,3031],[0,8294],[],[0,6051],[0,18387],[],[0,1489],[0,6837],[],[0,8448],[0,39886],[],[0,5197],[0,10433],[],[0,9439],[0,31649],[],[0,9146],[0,12599],[],[0,8488],[0,25390],[],[0,1377],[0,36232],[],[0,1327],[0,5630],[],[0,10389],[0,17496],[],[0,3721],[0,27149],[],[0,5502],[0,24853],[],[0,6157],[0,41881],[],[0,2402],[0,45164],[],[0,3936],[0,44421],[],[0,5219],[0,12686],[],[0,3578],[0,42594],[],[0,3804],[0,13787],[],[0,2863],[0,8767],[],[0,111],[0,41758],[],[0,10339],[0,25099],[],[0,7365],[0,2600],[],[0,6429],[0,14000],[],[0,6689],[0,3029],[],[0,5133],[0,25653],[],[0,7338],[0,43036],[],[0,6621],[0,4276],[],[0,4790],[0,20406],[],[0,8762],[0,45009],[],[0,8401],[0,15641],[],[0,4329],[0,44515],[],[0,5297],[0,15017],[],[0,3473],[0,20938],[],[0,7419],[0,18019],[],[0,9800],[0,9153],[],[0,8365],[0,16851],[],[0,1881],[0,42126],[],[0,9909],[0,23847],[],[0,2423],[0,42763],[],[0,6826],[0,19369],[],[0,5687],[0,30894],[],[0,4579],[0,30441],[],[0,1968],[0,27105],[],[0,424],[0,48100],[],[0,839],[0,20722],[],[0,9648],[0,31501],[],[0,805],[0,36672],[],[0,8592],[0,5159],[],[0,9695],[0,45297],[],[0,1275],[0,28672],[],[0,422],[0,21848],[],[0,1202],[0,49574],[],[0,2867],[0,34316],[],[0,5496],[0,33093],[],[0,6114],[0,35794],[],[0,10237],[0,30707],[],[0,4940],[0,26716],[],[0,6927],[0,35474],[],[0,1635],[0,21238],[],[0,8957],[0,45271],[],[0,4840],[0,25321],[],[0,1808],[0,25645],[],[0,5696],[0,15483],[],[0,5232],[0,33093],[],[0,7923],[0,9077],[],[0,5690],[0,8417],[],[0,10481],[0,33545],[],[0,9798],[0,18379],[],[0,4687],[0,48877],[],[0,10137],[0,2608],[],[0,7011],[0,14493],[],[0,1876],[0,23736],[],[0,6131],[0,11278],[],[0,8546],[0,24674],[],[0,5547],[0,21504],[],[0,5417],[0,23085],[],[0,2362],[0,28298],[],[0,7279],[0,36611],[],[0,2572],[0,21776],[],[0,4956],[0,22415],[],[0,5960],[0,42121],[],[0,1611],[0,4457],[],[0,4178],[0,31519],[],[0,3579],[0,48595],[],[0,7524],[0,43515],[],[0,183],[0,18562],[],[0,9356],[0,22232],[],[0,9553],[0,13108],[],[0,6112],[0,994],[],[0,4366],[0,25870],[],[0,9035],[0,18494],[],[0,1112],[0,429],[],[0,6273],[0,21893],[],[0,5304],[0,38951],[],[0,10494],[0,27249],[],[0,3573],[0,17577],[],[0,5514],[0,46915],[],[0,9680],[0,6585],[],[0,5634],[0,37280],[],[0,6226],[0,10211],[],[0,10411],[0,33533],[],[0,8860],[0,21823],[],[0,5475],[0,36731],[],[0,972],[0,2913],[],[0,7739],[0,21559],[],[0,4299],[0,8533],[],[0,7554],[0,27140],[],[0,370],[0,22680],[],[0,10073],[0,13018],[],[0,2923],[0,32512],[],[0,9964],[0,15140],[],[0,3313],[0,31598],[],[0,3521],[0,3314],[],[0,9129],[0,11737],[],[0,9882],[0,8436],[],[0,8894],[0,45458],[],[0,9472],[0,12836],[],[0,4167],[0,24733],[],[0,4656],[0,11964],[],[0,721],[0,38984],[],[0,3939],[0,8330],[],[0,3730],[0,39208],[],[0,5131],[0,45829],[],[0,3188],[0,8961],[],[0,1728],[0,13817],[],[0,3875],[0,35501],[],[0,6498],[0,2325],[],[0,9954],[0,17675],[],[0,9900],[0,48328],[],[0,2951],[0,40725],[],[0,4867],[0,26351],[],[0,4431],[0,21170],[],[0,5024],[0,1728],[],[0,4024],[0,18396],[],[0,10857],[0,43566],[],[0,4872],[0,17529],[],[0,5000],[0,16389],[],[0,9813],[0,33372],[],[0,5434],[0,11451],[],[0,8979],[0,43333],[],[0,8695],[0,36729],[],[0,6930],[0,40917],[],[0,6410],[0,38536],[],[0,1796],[0,26724],[],[0,280],[0,32568],[],[0,9293],[0,25114],[],[0,6340],[0,40639],[],[0,8504],[0,37003],[],[0,8203],[0,41891],[],[0,1769],[0,29744],[],[0,1529],[0,20049],[],[0,935],[0,8123],[],[0,10643],[0,22743],[],[0,8483],[0,43313],[],[0,4459],[0,20035],[],[0,1102],[0,18801],[],[0,7506],[0,25361],[],[0,5319],[0,48902],[],[0,8405],[0,5750],[],[0,3389],[0,41222],[],[0,643],[0,49486],[],[0,6988],[0,24177],[],[0,3603],[0,1070],[],[0,2353],[0,38446],[],[0,6742],[0,49597],[],[0,5731],[0,1429],[],[0,10826],[0,46821],[],[0,5647],[0,3705],[],[0,6873],[0,45735],[],[0,4555],[0,23224],[],[0,9714],[0,1065],[],[0,2061],[0,39671],[],[0,10283],[0,25707],[],[0,9537],[0,1630],[],[0,1333],[0,46595],[],[0,5708],[0,28134],[],[0,428],[0,38408],[],[0,5041],[0,24607],[],[0,3264],[0,9607],[],[0,9960],[0,47525],[],[0,744],[0,3363],[],[0,2898],[0,29904],[],[0,6175],[0,14644],[],[0,2822],[0,7325],[],[0,3251],[0,47789],[],[0,10312],[0,20898],[],[0,9707],[0,22988],[],[0,9823],[0,1233],[],[0,8555],[0,1591],[],[0,10230],[0,6215],[],[0,232],[0,33733],[],[0,7245],[0,42510],[],[0,5294],[0,29011],[],[0,8520],[0,35534],[],[0,7319],[0,24683],[],[0,1416],[0,12183],[],[0,10243],[0,48291],[],[0,3618],[0,38169],[],[0,565],[0,37777],[],[0,2712],[0,41337],[],[0,2600],[0,43242],[],[0,8163],[0,18915],[],[0,10776],[0,38200],[],[0,5159],[0,3112],[],[0,5244],[0,16088],[],[0,871],[0,17907],[],[0,8275],[0,3803],[],[0,6782],[0,16188],[],[0,45],[0,4004],[],[0,6362],[0,24676],[],[0,6862],[0,1372],[],[0,2796],[0,41024],[],[0,9297],[0,30878],[],[0,8891],[0,28669],[],[0,2537],[0,7980],[],[0,3414],[0,13061],[],[0,2049],[0,40102],[],[0,3241],[0,23670],[],[0,2541],[0,46862],[],[0,5775],[0,45105],[],[0,5627],[0,39228],[],[0,6758],[0,6743],[],[0,9137],[0,43316],[],[0,5566],[0,42862],[],[0,1099],[0,32289],[],[0,2184],[0,46561],[],[0,5945],[0,14036],[],[0,3680],[0,32467],[],[0,4192],[0,3226],[],[0,6246],[0,24439],[],[0,9824],[0,46451],[],[0,9060],[0,16883],[],[0,5652],[0,19725],[],[0,8132],[0,18630],[],[0,133],[0,45090],[],[0,10057],[0,28807],[],[0,8298],[0,27175],[],[0,1194],[0,21950],[],[0,726],[0,13905],[],[0,3215],[0,43669],[],[0,2184],[0,5689],[],[0,2217],[0,3607],[],[0,2792],[0,27173],[],[0,4405],[0,32300],[],[0,2415],[0,45078],[],[0,615],[0,31582],[],[0,5741],[0,7899],[],[0,10057],[0,28759],[],[0,8302],[0,19596],[],[0,3794],[0,4842],[],[0,10529],[0,27171],[],[0,10714],[0,9404],[],[0,143],[0,1633],[],[0,687],[0,21017],[],[0,4817],[0,26518],[],[0,7108],[0,33143],[],[0,4759],[0,47606],[],[0,819],[0,9794],[],[0,4635],[0,23262],[],[0,6365],[0,1310],[],[0,6628],[0,718],[],[0,3912],[0,23391],[],[0,10299],[0,40394],[],[0,4576],[0,43116],[],[0,5025],[0,25569],[],[0,5499],[0,25449],[],[0,8772],[0,12323],[],[0,1132],[0,3405],[],[0,1852],[0,49164],[],[0,2000],[0,5765],[],[0,10011],[0,22032],[],[0,5934],[0,1968],[],[0,1888],[0,3140],[],[0,5833],[0,37678],[],[0,5600],[0,2434],[],[0,4980],[0,7814],[],[0,172],[0,5876],[],[0,6318],[0,8226],[],[0,9941],[0,21552],[],[0,3924],[0,6538],[],[0,5809],[0,15122],[],[0,4122],[0,35548],[],[0,5998],[0,1353],[],[0,4970],[0,9282],[],[0,4446],[0,31571],[],[0,7081],[0,20424],[],[0,8522],[0,3090],[],[0,6424],[0,2493],[],[0,9457],[0,39056],[],[0,8851],[0,11228],[],[0,2239],[0,6567],[],[0,8090],[0,37155],[],[0,4310],[0,29771],[],[0,5952],[0,11034],[],[0,1114],[0,16533],[],[0,4425],[0,2810],[],[0,7242],[0,14568],[],[0,5020],[0,19920],[],[0,3019],[0,12433],[],[0,12],[0,4783],[],[0,6065],[0,20315],[],[0,3362],[0,20799],[],[0,2071],[0,17486],[],[0,3163],[0,41130],[],[0,869],[0,47448],[],[0,7359],[0,6349],[],[0,10157],[0,14261],[],[0,4663],[0,27047],[],[0,3413],[0,7102],[],[0,6321],[0,30878],[],[0,3403],[0,9892],[],[0,6415],[0,36828],[],[0,9041],[0,35446],[],[0,1077],[0,34409],[],[0,5890],[0,22999],[],[0,5909],[0,8476],[],[0,7358],[0,10864],[],[0,5199],[0,12174],[],[0,3184],[0,40397],[],[0,2266],[0,35431],[],[0,9487],[0,48207],[],[0,2481],[0,19783],[],[0,9756],[0,15383],[],[0,4819],[0,626],[],[0,5069],[0,2098],[],[0,10820],[0,23296],[],[0,2724],[0,12815],[],[0,1503],[0,4519],[],[0,769],[0,11315],[],[0,1275],[0,49740],[],[0,9766],[0,44456],[],[0,6380],[0,32425],[],[0,2001],[0,32041],[],[0,3410],[0,37533],[],[0,7627],[0,43369],[],[0,5652],[0,20693],[],[0,2964],[0,19074],[],[0,678],[0,1950],[],[0,3132],[0,25766],[],[0,2842],[0,2605],[],[0,1613],[0,42902],[],[0,4648],[0,392],[],[0,5290],[0,49860],[],[0,3738],[0,19447],[],[0,9925],[0,5089],[],[0,3247],[0,13317],[],[0,4760],[0,1907],[],[0,161],[0,47445],[],[0,2494],[0,21213],[],[0,9303],[0,46991],[],[0,2685],[0,15567],[],[0,2609],[0,10544],[],[0,9017],[0,16923],[],[0,5907],[0,37191],[],[0,4285],[0,9341],[],[0,2658],[0,31517],[],[0,2984],[0,4934],[],[0,9182],[0,45413],[],[0,4423],[0,33614],[],[0,4582],[0,40889],[],[0,3446],[0,22797],[],[0,2310],[0,10788],[],[0,9152],[0,23518],[],[0,8671],[0,34064],[],[0,2402],[0,29085],[],[0,762],[0,15286],[],[0,7418],[0,25395],[],[0,997],[0,49040],[],[0,7271],[0,32999],[],[0,3209],[0,17858],[],[0,7400],[0,7230],[],[0,7767],[0,10626],[],[0,7784],[0,2662],[],[0,2115],[0,28288],[],[0,8429],[0,11997],[],[0,3256],[0,20796],[],[0,7146],[0,28060],[],[0,2460],[0,20486],[],[0,929],[0,46792],[],[0,8899],[0,36678],[],[0,5054],[0,41390],[],[0,10993],[0,35578],[],[0,7431],[0,31603],[],[0,193],[0,24028],[],[0,4907],[0,4687],[],[0,2503],[0,3758],[],[0,7472],[0,11598],[],[0,1840],[0,43838],[],[0,452],[0,1700],[],[0,9039],[0,48531],[],[0,3727],[0,13599],[],[0,4005],[0,23142],[],[0,3710],[0,25334],[],[0,11093],[0,3339],[],[0,2567],[0,2962],[],[0,7942],[0,44131],[],[0,6586],[0,36841],[],[0,3756],[0,32413],[],[0,9152],[0,37734],[],[0,52],[0,48881],[],[0,515],[0,9651],[],[0,9159],[0,11616],[],[0,3160],[0,18530],[],[0,4912],[0,29336],[],[0,10695],[0,9098],[],[0,10146],[0,27807],[],[0,809],[0,8277],[],[0,4443],[0,1045],[],[0,2777],[0,4762],[],[0,4433],[0,36286],[],[0,1756],[0,43621],[],[0,9731],[0,47103],[],[0,4147],[0,21253],[],[0,1922],[0,8503],[],[0,8988],[0,7276],[],[0,9189],[0,34370],[],[0,7950],[0,25592],[],[0,798],[0,27458],[],[0,1836],[0,38393],[],[0,1614],[0,4681],[],[0,2756],[0,16783],[],[0,1170],[0,40788],[],[0,5272],[0,26709],[],[0,2459],[0,18999],[],[0,7650],[0,45261],[],[0,7061],[0,41962],[],[0,3354],[0,41837],[],[0,6777],[0,13619],[],[0,1894],[0,9543],[],[0,6879],[0,22576],[],[0,6690],[0,38812],[],[0,9176],[0,45736],[],[0,8795],[0,48174],[],[0,7340],[0,25981],[],[0,1388],[0,13097],[],[0,2864],[0,37718],[],[0,7694],[0,32921],[],[0,8296],[0,43454],[],[0,10987],[0,6718],[],[0,6781],[0,19363],[],[0,8609],[0,46163],[],[0,5778],[0,10945],[],[0,6764],[0,38141],[],[0,4343],[0,22082],[],[0,9806],[0,47933],[],[0,1232],[0,7876],[],[0,10685],[0,17086],[],[0,9490],[0,16394],[],[0,7810],[0,4188],[],[0,4764],[0,19435],[],[0,2976],[0,12301],[],[0,4334],[0,3034],[],[0,3945],[0,37363],[],[0,867],[0,12421],[],[0,6529],[0,48699],[],[0,2079],[0,40514],[],[0,5168],[0,48426],[],[0,10507],[0,24914],[],[0,4619],[0,49500],[],[0,436],[0,24147],[],[0,9788],[0,27220],[],[0,3978],[0,38072],[],[0,31],[0,9848],[],[0,8195],[0,49235],[],[0,10914],[0,17979],[],[0,8565],[0,39981],[],[0,5186],[0,17456],[],[0,2228],[0,49363],[],[0,9921],[0,43640],[],[0,5421],[0,46270],[],[0,10918],[0,15094],[],[0,5273],[0,29482],[],[0,2715],[0,23223],[],[0,10711],[0,13787],[],[0,313],[0,7859],[],[0,6839],[0,23155],[],[0,769],[0,42208],[],[0,196],[0,43156],[],[0,7234],[0,32296],[],[0,7603],[0,7740],[],[0,8156],[0,23565],[],[0,9540],[0,31063],[],[0,4924],[0,8586],[],[0,8296],[0,26561],[],[0,3973],[0,41834],[],[0,8632],[0,36991],[],[0,2360],[0,3385],[],[0,2184],[0,18827],[],[0,8476],[0,16163],[],[0,5458],[0,33819],[],[0,2573],[0,2031],[],[0,2529],[0,6084],[],[0,8293],[0,31838],[],[0,4758],[0,36628],[],[0,746],[0,14229],[],[0,6510],[0,31280],[],[0,6982],[0,15455],[],[0,8867],[0,31891],[],[0,6894],[0,19800],[],[0,5465],[0,22717],[],[0,2767],[0,33808],[],[0,7365],[0,14592],[],[0,7306],[0,15691],[],[0,5699],[0,49411],[],[0,8840],[0,23232],[],[0,3142],[0,1932],[],[0,4451],[0,1518],[],[0,4334],[0,28292],[],[0,6062],[0,28061],[],[0,1597],[0,25644],[],[0,11296],[0,45600],[],[0,4411],[0,40800],[],[0,2698],[0,28215],[],[0,6802],[0,35467],[],[0,1502],[0,639],[],[0,469],[0,27211],[],[0,279],[0,41170],[],[0,8457],[0,9460],[],[0,9082],[0,16359],[],[0,1497],[0,39066],[],[0,1478],[0,29228],[],[0,10677],[0,1114],[],[0,1382],[0,7552],[],[0,8749],[0,47191],[],[0,4000],[0,7282],[],[0,3831],[0,704],[],[0,2489],[0,1957],[],[0,5666],[0,16182],[],[0,9548],[0,16904],[],[0,10698],[0,26691],[],[0,8395],[0,6969],[],[0,3328],[0,30321],[],[0,9253],[0,38670],[],[0,8785],[0,21559],[],[0,5595],[0,34933],[],[0,10045],[0,13180],[],[0,1301],[0,16537],[],[0,7232],[0,42819],[],[0,3010],[0,12464],[],[0,5442],[0,39993],[],[0,4532],[0,22846],[],[0,5481],[0,32103],[],[0,156],[0,7799],[],[0,3205],[0,14238],[],[0,3832],[0,32849],[],[0,7826],[0,49005],[],[0,2265],[0,24685],[],[0,8535],[0,14174],[],[0,11195],[0,17015],[],[0,8698],[0,30821],[],[0,7761],[0,15004],[],[0,8474],[0,33385],[],[0,9753],[0,24153],[],[0,1398],[0,10209],[],[0,3398],[0,27859],[],[0,5998],[0,1465],[],[0,3745],[0,2071],[],[0,5676],[0,49128],[],[0,11045],[0,34412],[],[0,2207],[0,41689],[],[0,10709],[0,37006],[],[0,5714],[0,10459],[],[0,1865],[0,9048],[],[0,2825],[0,48931],[],[0,9454],[0,27631],[],[0,8401],[0,48025],[],[0,6103],[0,32420],[],[0,266],[0,30537],[],[0,5752],[0,14818],[],[0,9919],[0,22800],[],[0,8946],[0,15051],[],[0,3181],[0,29818],[],[0,7826],[0,43610],[],[0,6795],[0,36423],[],[0,6828],[0,28218],[],[0,10636],[0,1844],[],[0,6037],[0,9485],[],[0,8029],[0,45009],[],[0,2378],[0,19745],[],[0,7281],[0,43432],[],[0,6493],[0,46789],[],[0,3954],[0,5552],[],[0,2699],[0,37551],[],[0,7191],[0,38095],[],[0,10526],[0,16964],[],[0,1338],[0,40485],[],[0,1662],[0,36115],[],[0,759],[0,27517],[],[0,78],[0,4270],[],[0,6940],[0,49250],[],[0,5703],[0,8869],[],[0,2461],[0,8035],[],[0,358],[0,10375],[],[0,6656],[0,46515],[],[0,4056],[0,38064],[],[0,1945],[0,29680],[],[0,1597],[0,5931],[],[0,10533],[0,1446],[],[0,4760],[0,1061],[],[0,8933],[0,9678],[],[0,3730],[0,37378],[],[0,10214],[0,35576],[],[0,6778],[0,10501],[],[0,6840],[0,35664],[],[0,7918],[0,32910],[],[0,7994],[0,33445],[],[0,9624],[0,46283],[],[0,7960],[0,18028],[],[0,5332],[0,24119],[],[0,5712],[0,35324],[],[0,9365],[0,2316],[],[0,6321],[0,11249],[],[0,6531],[0,18812],[],[0,7343],[0,24948],[],[0,10966],[0,28142],[],[0,3928],[0,36676],[],[0,7715],[0,7244],[],[0,10050],[0,30110],[],[0,284],[0,43484],[],[0,161],[0,40876],[],[0,11003],[0,38192],[],[0,603],[0,11030],[],[0,10896],[0,42179],[],[0,10393],[0,9241],[],[0,6129],[0,33651],[],[0,914],[0,22113],[],[0,1837],[0,32236],[],[0,8936],[0,19456],[],[0,10690],[0,23905],[],[0,9689],[0,23109],[],[0,441],[0,18953],[],[0,10016],[0,47342],[],[0,6844],[0,8117],[],[0,9367],[0,21581],[],[0,4567],[0,49636],[],[0,5473],[0,21042],[],[0,7460],[0,24869],[],[0,5584],[0,42457],[],[0,11035],[0,22257],[],[0,9855],[0,5692],[],[0,8097],[0,26615],[],[0,10375],[0,5696],[],[0,6556],[0,20655],[],[0,6198],[0,17401],[],[0,2939],[0,31761],[],[0,1458],[0,42307],[],[0,7912],[0,5879],[],[0,802],[0,6278],[],[0,2665],[0,3727],[],[0,2074],[0,5271],[],[0,7703],[0,18197],[],[0,45],[0,40156],[],[0,5873],[0,23715],[],[0,9460],[0,46283],[],[0,7232],[0,7767],[],[0,9515],[0,4216],[],[0,9143],[0,32126],[],[0,2896],[0,7730],[],[0,10210],[0,1811],[],[0,3798],[0,16895],[],[0,7936],[0,34454],[],[0,8121],[0,18635],[],[0,3853],[0,43661],[],[0,904],[0,1244],[],[0,3727],[0,27954],[],[0,10140],[0,49421],[],[0,7504],[0,7665],[],[0,5416],[0,20580],[],[0,3963],[0,18575],[],[0,7997],[0,15396],[],[0,6628],[0,41729],[],[0,5541],[0,28079],[],[0,1072],[0,15342],[],[0,10260],[0,133],[],[0,7220],[0,11579],[],[0,6792],[0,7008],[],[0,1940],[0,3261],[],[0,11150],[0,24126],[],[0,8028],[0,33318],[],[0,670],[0,9839],[],[0,1596],[0,46196],[],[0,804],[0,40977],[],[0,9063],[0,19917],[],[0,9136],[0,10545],[],[0,10260],[0,29922],[],[0,2592],[0,29813],[],[0,2820],[0,48455],[],[0,2229],[0,48812],[],[0,393],[0,35665],[],[0,2143],[0,2751],[],[0,9872],[0,31695],[],[0,10337],[0,27399],[],[0,2894],[0,33064],[],[0,10024],[0,42099],[],[0,3669],[0,35333],[],[0,6790],[0,21251],[],[0,6740],[0,13654],[],[0,10934],[0,28744],[],[0,4703],[0,44118],[],[0,322],[0,13797],[],[0,10042],[0,18906],[],[0,4481],[0,34221],[],[0,6998],[0,29654],[],[0,8816],[0,32026],[],[0,9472],[0,12920],[],[0,1033],[0,25250],[],[0,8051],[0,49821],[],[0,9704],[0,26857],[],[0,3515],[0,16317],[],[0,8752],[0,39073],[],[0,8862],[0,1967],[],[0,688],[0,48385],[],[0,5385],[0,20852],[],[0,524],[0,2177],[],[0,1308],[0,34841],[],[0,6219],[0,13512],[],[0,8380],[0,23710],[],[0,8613],[0,16306],[],[0,6978],[0,21472],[],[0,2948],[0,34952],[],[0,9807],[0,39427],[],[0,8371],[0,20417],[],[0,4330],[0,46094],[],[0,3997],[0,17448],[],[0,2162],[0,33375],[],[0,2653],[0,24611],[],[0,9594],[0,25359],[],[0,10719],[0,21341],[],[0,8542],[0,5506],[],[0,7086],[0,5402],[],[0,10783],[0,7234],[],[0,6032],[0,467],[],[0,10610],[0,30251],[],[0,1855],[0,31333],[],[0,5161],[0,18382],[],[0,742],[0,7612],[],[0,305],[0,5560],[],[0,1081],[0,6293],[],[0,2336],[0,24571],[],[0,10516],[0,47890],[],[0,3270],[0,30197],[],[0,1423],[0,8651],[],[0,185],[0,24473],[],[0,2692],[0,49950],[],[0,4052],[0,35647],[],[0,8210],[0,39701],[],[0,10596],[0,21334],[],[0,1555],[0,11847],[],[0,9512],[0,22252],[],[0,9261],[0,19207],[],[0,9899],[0,5464],[],[0,736],[0,10256],[],[0,4837],[0,40138],[],[0,2724],[0,45961],[],[0,7463],[0,33603],[],[0,5327],[0,8312],[],[0,9559],[0,42493],[],[0,8816],[0,44533],[],[0,9609],[0,41514],[],[0,3971],[0,10066],[],[0,5403],[0,14359],[],[0,813],[0,31724],[],[0,8114],[0,13655],[],[0,3551],[0,46380],[],[0,11020],[0,40085],[],[0,6687],[0,44369],[],[0,4438],[0,12727],[],[0,4821],[0,34737],[],[0,2937],[0,12067],[],[0,3542],[0,26537],[],[0,10840],[0,1237],[],[0,9440],[0,41649],[],[0,2936],[0,41320],[],[0,4189],[0,16218],[],[0,11409],[0,29775],[],[0,4234],[0,21577],[],[0,5761],[0,3519],[],[0,7380],[0,37427],[],[0,4094],[0,8646],[],[0,10263],[0,31567],[],[0,3716],[0,14914],[],[0,8633],[0,12946],[],[0,11262],[0,28425],[],[0,10807],[0,40060],[],[0,664],[0,761],[],[0,5912],[0,20941],[],[0,4286],[0,4253],[],[0,11601],[0,1957],[],[0,10187],[0,20932],[],[0,7245],[0,14008],[],[0,2124],[0,2561],[],[0,11120],[0,2964],[],[0,9511],[0,41593],[],[0,188],[0,27079],[],[0,4164],[0,1834],[],[0,9173],[0,17056],[],[0,6587],[0,6519],[],[0,8476],[0,13918],[],[0,6933],[0,8393],[],[0,627],[0,7346],[],[0,3736],[0,21557],[],[0,4734],[0,1224],[],[0,315],[0,15323],[],[0,755],[0,5157],[],[0,6671],[0,5551],[],[0,285],[0,1064],[],[0,3613],[0,23284],[],[0,4260],[0,4352],[],[0,583],[0,11690],[],[0,10106],[0,22349],[],[0,8305],[0,36096],[],[0,9148],[0,36259],[],[0,1511],[0,4638],[],[0,9544],[0,31837],[],[0,4983],[0,3667],[],[0,5910],[0,21917],[],[0,5885],[0,4566],[],[0,8671],[0,8469],[],[0,2705],[0,48944],[],[0,9816],[0,6928],[],[0,579],[0,46668],[],[0,8549],[0,1852],[],[0,5135],[0,19841],[],[0,1202],[0,11257],[],[0,7848],[0,22922],[],[0,3005],[0,2704],[],[0,2693],[0,37594],[],[0,610],[0,8897],[],[0,4931],[0,29091],[],[0,6635],[0,47702],[],[0,9979],[0,34100],[],[0,10868],[0,6744],[],[0,5315],[0,39899],[],[0,4059],[0,44315],[],[0,169],[0,17835],[],[0,1566],[0,48052],[],[0,10398],[0,47714],[],[0,9750],[0,34603],[],[0,7996],[0,43065],[],[0,749],[0,29881],[],[0,6800],[0,17429],[],[0,8976],[0,17958],[],[0,6140],[0,6954],[],[0,6710],[0,46080],[],[0,2492],[0,33426],[],[0,6361],[0,35751],[],[0,2451],[0,7050],[],[0,2729],[0,31959],[],[0,2153],[0,9576],[],[0,3744],[0,16633],[],[0,2546],[0,32151],[],[0,11105],[0,41505],[],[0,1913],[0,38747],[],[0,3472],[0,35761],[],[0,4641],[0,31767],[],[0,2394],[0,41083],[],[0,6216],[0,46050],[],[0,5551],[0,37180],[],[0,4862],[0,5901],[],[0,8651],[0,38610],[],[0,7044],[0,28178],[],[0,11415],[0,3341],[],[0,2990],[0,12694],[],[0,70],[0,32101],[],[0,1071],[0,28965],[],[0,8143],[0,15943],[],[0,2685],[0,21751],[],[0,10230],[0,12663],[],[0,4231],[0,46316],[],[0,4138],[0,34115],[],[0,5765],[0,42649],[],[0,1058],[0,41145],[],[0,10433],[0,32860],[],[0,7106],[0,21079],[],[0,11642],[0,22855],[],[0,816],[0,44092],[],[0,4031],[0,4288],[],[0,9786],[0,38562],[],[0,7644],[0,15884],[],[0,7269],[0,34579],[],[0,945],[0,4134],[],[0,3297],[0,21489],[],[0,4026],[0,15781],[],[0,9552],[0,41886],[],[0,510],[0,7009],[],[0,8747],[0,38323],[],[0,1466],[0,33117],[],[0,5131],[0,43959],[],[0,4206],[0,2276],[],[0,8916],[0,44877],[],[0,9661],[0,10136],[],[0,3992],[0,40569],[],[0,4193],[0,36734],[],[0,429],[0,2659],[],[0,311],[0,37721],[],[0,10827],[0,34779],[],[0,2654],[0,11761],[],[0,9999],[0,23802],[],[0,5246],[0,28756],[],[0,10547],[0,644],[],[0,2542],[0,34131],[],[0,10976],[0,19605],[],[0,7492],[0,34211],[],[0,2527],[0,18948],[],[0,1909],[0,25248],[],[0,6412],[0,23093],[],[0,1359],[0,2646],[],[0,9305],[0,44160],[],[0,10658],[0,45364],[],[0,2979],[0,5188],[],[0,7768],[0,35645],[],[0,6074],[0,2675],[],[0,529],[0,30156],[],[0,338],[0,46262],[],[0,684],[0,20995],[],[0,10773],[0,14223],[],[0,7618],[0,41327],[],[0,2022],[0,25362],[],[0,4587],[0,24521],[],[0,10839],[0,16554],[],[0,9915],[0,17837],[],[0,6602],[0,36374],[],[0,5750],[0,32595],[],[0,3310],[0,45711],[],[0,2872],[0,4876],[],[0,3260],[0,14808],[],[0,4439],[0,5213],[],[0,3086],[0,14538],[],[0,9753],[0,35332],[],[0,11042],[0,667],[],[0,2940],[0,11535],[],[0,1643],[0,33008],[],[0,6190],[0,15527],[],[0,8713],[0,2836],[],[0,3191],[0,45646],[],[0,5504],[0,27303],[],[0,5187],[0,13589],[],[0,10158],[0,18239],[],[0,6923],[0,33728],[],[0,6702],[0,49533],[],[0,1605],[0,10935],[],[0,8315],[0,31799],[],[0,5197],[0,39820],[],[0,481],[0,36068],[],[0,2582],[0,12984],[],[0,11709],[0,6893],[],[0,6750],[0,13187],[],[0,4517],[0,21528],[],[0,1967],[0,28783],[],[0,373],[0,28557],[],[0,4134],[0,34054],[],[0,9395],[0,27218],[],[0,2598],[0,29252],[],[0,11153],[0,37547],[],[0,8536],[0,34160],[],[0,10918],[0,44995],[],[0,10916],[0,15058],[],[0,9569],[0,39660],[],[0,3581],[0,5693],[],[0,11037],[0,45631],[],[0,1284],[0,14429],[],[0,11484],[0,381],[],[0,5958],[0,48570],[],[0,1253],[0,11332],[],[0,3737],[0,31442],[],[0,5868],[0,43542],[],[0,1969],[0,28328],[],[0,8776],[0,27271],[],[0,1531],[0,28506],[],[0,5427],[0,11283],[],[0,4525],[0,39974],[],[0,6130],[0,762],[],[0,4362],[0,16930],[],[0,265],[0,18530],[],[0,7108],[0,46997],[],[0,10548],[0,9325],[],[0,11396],[0,47848],[],[0,3809],[0,28091],[],[0,6839],[0,37897],[],[0,2217],[0,47503],[],[0,4264],[0,21004],[],[0,2803],[0,9936],[],[0,4733],[0,15311],[],[0,1471],[0,30332],[],[0,9125],[0,7918],[],[0,7636],[0,43828],[],[0,7006],[0,14608],[],[0,4360],[0,2107],[],[0,7265],[0,35694],[],[0,7550],[0,10049],[],[0,10582],[0,19406],[],[0,10047],[0,3649],[],[0,5035],[0,20055],[],[0,6480],[0,1997],[],[0,9867],[0,23398],[],[0,5707],[0,2458],[],[0,77],[0,49214],[],[0,9049],[0,46426],[],[0,8535],[0,22409],[],[0,1676],[0,4567],[],[0,3149],[0,47460],[],[0,8599],[0,35252],[],[0,11804],[0,8054],[],[0,10006],[0,16153],[],[0,8403],[0,14289],[],[0,11568],[0,44739],[],[0,7967],[0,37879],[],[0,6490],[0,2308],[],[0,4298],[0,39730],[],[0,5435],[0,15410],[],[0,4771],[0,1674],[],[0,11435],[0,31559],[],[0,1480],[0,37791],[],[0,7945],[0,24534],[],[0,4266],[0,44901],[],[0,5363],[0,3395],[],[0,3068],[0,9128],[],[0,7100],[0,31994],[],[0,579],[0,37424],[],[0,274],[0,43098],[],[0,4830],[0,27223],[],[0,176],[0,3924],[],[0,8484],[0,43151],[],[0,4172],[0,7733],[],[0,7396],[0,42825],[],[0,6496],[0,21168],[],[0,427],[0,3050],[],[0,8557],[0,18995],[],[0,10655],[0,48099],[],[0,1680],[0,38206],[],[0,11273],[0,33103],[],[0,6920],[0,42257],[],[0,6607],[0,4927],[],[0,8734],[0,18909],[],[0,6376],[0,11599],[],[0,7015],[0,14870],[],[0,9913],[0,28625],[],[0,5056],[0,20914],[],[0,4619],[0,32223],[],[0,236],[0,49452],[],[0,9621],[0,17269],[],[0,5369],[0,44903],[],[0,4033],[0,7863],[],[0,10378],[0,14236],[],[0,6142],[0,33865],[],[0,5548],[0,487],[],[0,7531],[0,637],[],[0,1647],[0,45083],[],[0,1038],[0,47138],[],[0,4489],[0,242],[],[0,10571],[0,47457],[],[0,4259],[0,16140],[],[0,1521],[0,22306],[],[0,6042],[0,10352],[],[0,7635],[0,49812],[],[0,7736],[0,7398],[],[0,10999],[0,8700],[],[0,794],[0,10984],[],[0,8645],[0,39932],[],[0,10785],[0,45459],[],[0,2653],[0,25681],[],[0,11463],[0,46265],[],[0,1658],[0,38537],[],[0,510],[0,19727],[],[0,1550],[0,10616],[],[0,10394],[0,31898],[],[0,8833],[0,37883],[],[0,4561],[0,35300],[],[0,2577],[0,21017],[],[0,7846],[0,27480],[],[0,5363],[0,40836],[],[0,1774],[0,831],[],[0,5981],[0,34684],[],[0,5920],[0,40678],[],[0,6440],[0,12222],[],[0,6674],[0,40868],[],[0,1671],[0,48844],[],[0,10884],[0,21639],[],[0,5341],[0,17664],[],[0,6266],[0,29393],[],[0,10301],[0,47995],[],[0,2192],[0,6548],[],[0,927],[0,37577],[],[0,4632],[0,19720],[],[0,6819],[0,46036],[],[0,4822],[0,45217],[],[0,6079],[0,22857],[],[0,8570],[0,37547],[],[0,11259],[0,25202],[],[0,3110],[0,18239],[],[0,8398],[0,7823],[],[0,4323],[0,12718],[],[0,4177],[0,10284],[],[0,5348],[0,2494],[],[0,9847],[0,1078],[],[0,8115],[0,584],[],[0,8650],[0,25061],[],[0,1378],[0,26977],[],[0,9317],[0,33135],[],[0,355],[0,5336],[],[0,715],[0,5167],[],[0,114],[0,23093],[],[0,8533],[0,41463],[],[0,10470],[0,12319],[],[0,5521],[0,12483],[],[0,527],[0,29496],[],[0,7681],[0,48597],[],[0,7056],[0,44530],[],[0,10847],[0,24252],[],[0,2648],[0,26180],[],[0,133],[0,21223],[],[0,9911],[0,29216],[],[0,9705],[0,48017],[],[0,11010],[0,28667],[],[0,302],[0,42927],[],[0,936],[0,46403],[],[0,6670],[0,34348],[],[0,10476],[0,23712],[],[0,7686],[0,15750],[],[0,8428],[0,25429],[],[0,9317],[0,30185],[],[0,6164],[0,32788],[],[0,5208],[0,31656],[],[0,10653],[0,13848],[],[0,6916],[0,40731],[],[0,5033],[0,26613],[],[0,6654],[0,23377],[],[0,7412],[0,17680],[],[0,2294],[0,24289],[],[0,10451],[0,4706],[],[0,8394],[0,30953],[],[0,6163],[0,43434],[],[0,10436],[0,199],[],[0,46],[0,46190],[],[0,6404],[0,41935],[],[0,1602],[0,11883],[],[0,7228],[0,41869],[],[0,9448],[0,26174],[],[0,8253],[0,36227],[],[0,4448],[0,32712],[],[0,7831],[0,7055],[],[0,8602],[0,33409],[],[0,11500],[0,38761],[],[0,6679],[0,3292],[],[0,2443],[0,49851],[],[0,11737],[0,30469],[],[0,2828],[0,16652],[],[0,2479],[0,18015],[],[0,7550],[0,10231],[],[0,5727],[0,9225],[],[0,11379],[0,37082],[],[0,5637],[0,16366],[],[0,4435],[0,3627],[],[0,6497],[0,16196],[],[0,6127],[0,19132],[],[0,10976],[0,5805],[],[0,9481],[0,4568],[],[0,7812],[0,36345],[],[0,6691],[0,46344],[],[0,11153],[0,6662],[],[0,10266],[0,37467],[],[0,9083],[0,28433],[],[0,2932],[0,23711],[],[0,7206],[0,14065],[],[0,7899],[0,206],[],[0,11143],[0,47946],[],[0,5454],[0,4520],[],[0,5818],[0,46983],[],[0,3192],[0,1158],[],[0,11078],[0,21423],[],[0,4932],[0,44073],[],[0,6204],[0,43399],[],[0,701],[0,26874],[],[0,7193],[0,19742],[],[0,9692],[0,22069],[],[0,5136],[0,1145],[],[0,5072],[0,9312],[],[0,8127],[0,34760],[],[0,2457],[0,6064],[],[0,6591],[0,32818],[],[0,11835],[0,24086],[],[0,4951],[0,12501],[],[0,3726],[0,24242],[],[0,6083],[0,32517],[],[0,11058],[0,29780],[],[0,11328],[0,22398],[],[0,7234],[0,4447],[],[0,2567],[0,5031],[],[0,5328],[0,38770],[],[0,4790],[0,13479],[],[0,8544],[0,31306],[],[0,6010],[0,2176],[],[0,4300],[0,43594],[],[0,633],[0,3703],[],[0,436],[0,26147],[],[0,7453],[0,39439],[],[0,4338],[0,9669],[],[0,7772],[0,49455],[],[0,70],[0,40840],[],[0,2838],[0,45864],[],[0,9926],[0,19553],[],[0,11329],[0,18733],[],[0,7214],[0,23015],[],[0,9539],[0,20644],[],[0,3143],[0,8137],[],[0,3183],[0,39247],[],[0,3096],[0,204],[],[0,7129],[0,25808],[],[0,554],[0,20185],[],[0,11262],[0,46279],[],[0,1620],[0,27420],[],[0,1239],[0,7427],[],[0,2511],[0,1985],[],[0,9429],[0,15938],[],[0,10774],[0,16071],[],[0,3234],[0,33215],[],[0,1974],[0,43371],[],[0,10743],[0,7631],[],[0,6700],[0,20334],[],[0,6699],[0,48442],[],[0,1907],[0,44118],[],[0,3424],[0,25002],[],[0,4209],[0,44784],[],[0,8935],[0,16035],[],[0,4706],[0,755],[],[0,8493],[0,13236],[],[0,3012],[0,28756],[],[0,8920],[0,47179],[],[0,4794],[0,42886],[],[0,1736],[0,24249],[],[0,4667],[0,37847],[],[0,497],[0,26372],[],[0,8426],[0,5148],[],[0,10736],[0,2770],[],[0,6878],[0,10616],[],[0,1187],[0,2075],[],[0,4534],[0,15900],[],[0,8132],[0,21345],[],[0,9004],[0,8540],[],[0,3725],[0,16134],[],[0,1235],[0,49340],[],[0,11160],[0,7252],[],[0,5307],[0,31401],[],[0,2467],[0,18440],[],[0,8868],[0,37921],[],[0,2484],[0,23496],[],[0,5445],[0,33227],[],[0,9876],[0,40466],[],[0,4697],[0,1056],[],[0,2870],[0,4568],[],[0,4746],[0,12789],[],[0,917],[0,34048],[],[0,8015],[0,12981],[],[0,969],[0,18731],[],[0,2859],[0,41354],[],[0,11694],[0,43380],[],[0,6006],[0,18705],[],[0,2538],[0,33568],[],[0,7355],[0,20434],[],[0,11400],[0,34961],[],[0,7673],[0,21985],[],[0,4746],[0,44932],[],[0,3291],[0,20007],[],[0,4876],[0,16186],[],[0,5380],[0,40211],[],[0,1074],[0,48963],[],[0,10007],[0,33670],[],[0,4000],[0,47728],[],[0,9093],[0,4194],[],[0,3975],[0,18750],[],[0,5053],[0,41376],[],[0,5973],[0,39808],[],[0,3611],[0,6630],[],[0,10215],[0,33801],[],[0,6203],[0,23438],[],[0,11255],[0,4977],[],[0,8270],[0,21256],[],[0,7416],[0,26576],[],[0,9321],[0,30490],[],[0,12064],[0,40051],[],[0,11535],[0,45884],[],[0,1265],[0,16329],[],[0,2977],[0,3335],[],[0,3695],[0,16324],[],[0,5065],[0,17145],[],[0,1152],[0,37504],[],[0,4855],[0,26042],[],[0,3523],[0,13891],[],[0,8911],[0,12155],[],[0,974],[0,14324],[],[0,153],[0,4196],[],[0,2403],[0,14130],[],[0,11099],[0,8786],[],[0,6387],[0,42061],[],[0,4014],[0,23601],[],[0,12032],[0,27757],[],[0,5413],[0,40391],[],[0,9341],[0,12367],[],[0,5072],[0,43662],[],[0,9959],[0,18833],[],[0,9528],[0,18807],[],[0,9663],[0,33084],[],[0,10298],[0,3112],[],[0,9180],[0,599],[],[0,7358],[0,22441],[],[0,11384],[0,28590],[],[0,9233],[0,4434],[],[0,10093],[0,24904],[],[0,7245],[0,7447],[],[0,5088],[0,30273],[],[0,6763],[0,14153],[],[0,2018],[0,37048],[],[0,3166],[0,41653],[],[0,1053],[0,37659],[],[0,11654],[0,47002],[],[0,11942],[0,52],[],[0,6765],[0,6255],[],[0,7989],[0,32520],[],[0,10898],[0,31113],[],[0,10865],[0,31399],[],[0,5433],[0,8747],[],[0,268],[0,19923],[],[0,2191],[0,27833],[],[0,9234],[0,23202],[],[0,3663],[0,14342],[],[0,11101],[0,33634],[],[0,11018],[0,36815],[],[0,5769],[0,32422],[],[0,8339],[0,47521],[],[0,11305],[0,48292],[],[0,7070],[0,4651],[],[0,9575],[0,11517],[],[0,2795],[0,48568],[],[0,5980],[0,49359],[],[0,8657],[0,6006],[],[0,11914],[0,4202],[],[0,3231],[0,38953],[],[0,4929],[0,13808],[],[0,9818],[0,22378],[],[0,5491],[0,14168],[],[0,8101],[0,16789],[],[0,11344],[0,42207],[],[0,6037],[0,43715],[],[0,5194],[0,44059],[],[0,9077],[0,44046],[],[0,5778],[0,34891],[],[0,394],[0,38729],[],[0,337],[0,26678],[],[0,98],[0,20106],[],[0,641],[0,18472],[],[0,3154],[0,8076],[],[0,4853],[0,34600],[],[0,2116],[0,38878],[],[0,59],[0,16870],[],[0,10846],[0,13955],[],[0,9843],[0,2575],[],[0,7166],[0,12655],[],[0,1722],[0,28414],[],[0,7464],[0,29518],[],[0,8449],[0,34182],[],[0,11529],[0,47239],[],[0,5143],[0,25884],[],[0,10782],[0,9527],[],[0,5217],[0,13033],[],[0,2681],[0,37480],[],[0,12108],[0,44214],[],[0,3389],[0,28365],[],[0,8966],[0,19212],[],[0,5538],[0,25538],[],[0,1269],[0,7594],[],[0,12037],[0,9883],[],[0,4757],[0,33937],[],[0,316],[0,41031],[],[0,1230],[0,45012],[],[0,8520],[0,22472],[],[0,7281],[0,16682],[],[0,5930],[0,13023],[],[0,1843],[0,30035],[],[0,9986],[0,34109],[],[0,7763],[0,29786],[],[0,10074],[0,3255],[],[0,94],[0,13843],[],[0,5973],[0,14409],[],[0,3742],[0,9081],[],[0,11758],[0,6822],[],[0,2676],[0,30866],[],[0,11562],[0,7543],[],[0,7225],[0,39792],[],[0,1713],[0,5672],[],[0,9615],[0,49838],[],[0,9900],[0,48758],[],[0,6211],[0,20669],[],[0,4236],[0,23576],[],[0,5333],[0,4376],[],[0,53],[0,33883],[],[0,10845],[0,15615],[],[0,8037],[0,23942],[],[0,1167],[0,3373],[],[0,10305],[0,25135],[],[0,10515],[0,27137],[],[0,3817],[0,23105],[],[0,1322],[0,1934],[],[0,2932],[0,5598],[],[0,5885],[0,45036],[],[0,608],[0,39634],[],[0,624],[0,40851],[],[0,8559],[0,49464],[],[0,5367],[0,47847],[],[0,525],[0,40600],[],[0,4845],[0,18098],[],[0,8823],[0,19294],[],[0,2083],[0,18744],[],[0,782],[0,37007],[],[0,5224],[0,14783],[],[0,10095],[0,8623],[],[0,10790],[0,14666],[],[0,4706],[0,49653],[],[0,2166],[0,46508],[],[0,2672],[0,41131],[],[0,7740],[0,48875],[],[0,3060],[0,41141],[],[0,6504],[0,14297],[],[0,2672],[0,1600],[],[0,11484],[0,35176],[],[0,303],[0,1641],[],[0,5075],[0,47985],[],[0,6493],[0,42298],[],[0,7773],[0,30995],[],[0,280],[0,30710],[],[0,7492],[0,36593],[],[0,8528],[0,19469],[],[0,4876],[0,38741],[],[0,10096],[0,17909],[],[0,8998],[0,32959],[],[0,760],[0,2622],[],[0,7294],[0,29932],[],[0,10724],[0,28939],[],[0,6197],[0,23521],[],[0,3651],[0,4991],[],[0,668],[0,32224],[],[0,6021],[0,8549],[],[0,5372],[0,27731],[],[0,11122],[0,21405],[],[0,893],[0,37501],[],[0,7763],[0,34068],[],[0,9683],[0,40503],[],[0,322],[0,25565],[],[0,10441],[0,42519],[],[0,1920],[0,2886],[],[0,6735],[0,33165],[],[0,7441],[0,31500],[],[0,8687],[0,47633],[],[0,4238],[0,46111],[],[0,4326],[0,48811],[],[0,1158],[0,49560],[],[0,7405],[0,49404],[],[0,8478],[0,32507],[],[0,7950],[0,6371],[],[0,5531],[0,22879],[],[0,1942],[0,6475],[],[0,6617],[0,11277],[],[0,5341],[0,48073],[],[0,8731],[0,46076],[],[0,8690],[0,15742],[],[0,7245],[0,5590],[],[0,2950],[0,25106],[],[0,4639],[0,12120],[],[0,10086],[0,5301],[],[0,9144],[0,12767],[],[0,8454],[0,36210],[],[0,6985],[0,45765],[],[0,7703],[0,31764],[],[0,7774],[0,8616],[],[0,11553],[0,3787],[],[0,8912],[0,31154],[],[0,1488],[0,11756],[],[0,1200],[0,8992],[],[0,7586],[0,8818],[],[0,8274],[0,14818],[],[0,5768],[0,47829],[],[0,8614],[0,47648],[],[0,2835],[0,32781],[],[0,2366],[0,38860],[],[0,7712],[0,8207],[],[0,12119],[0,30475],[],[0,5113],[0,31628],[],[0,9701],[0,23742],[],[0,7353],[0,1331],[],[0,10722],[0,20824],[],[0,439],[0,34321],[],[0,11443],[0,24047],[],[0,6740],[0,25518],[],[0,12016],[0,49654],[],[0,11183],[0,16076],[],[0,6472],[0,18734],[],[0,11801],[0,4004],[],[0,12023],[0,24199],[],[0,11081],[0,49681],[],[0,7137],[0,26768],[],[0,10441],[0,34887],[],[0,5201],[0,23296],[],[0,8682],[0,8897],[],[0,4083],[0,5398],[],[0,3811],[0,5676],[],[0,2782],[0,22734],[],[0,443],[0,27599],[],[0,8486],[0,27554],[],[0,863],[0,23786],[],[0,341],[0,31444],[],[0,3622],[0,7644],[],[0,2010],[0,38761],[],[0,6430],[0,12642],[],[0,6642],[0,39092],[],[0,11760],[0,44379],[],[0,2183],[0,8592],[],[0,4684],[0,37856],[],[0,6323],[0,12945],[],[0,7426],[0,10869],[],[0,5841],[0,19460],[],[0,8267],[0,20604],[],[0,4215],[0,24825],[],[0,7708],[0,25629],[],[0,8641],[0,19022],[],[0,11984],[0,14821],[],[0,3702],[0,47222],[],[0,10116],[0,4032],[],[0,2188],[0,13720],[],[0,11250],[0,7866],[],[0,11609],[0,31391],[],[0,2676],[0,19608],[],[0,2386],[0,11632],[],[0,8134],[0,47616],[],[0,6378],[0,19623],[],[0,260],[0,42359],[],[0,1832],[0,9076],[],[0,5882],[0,26061],[],[0,6188],[0,13980],[],[0,8721],[0,15223],[],[0,5211],[0,7603],[],[0,4044],[0,25013],[],[0,11170],[0,15490],[],[0,12193],[0,20103],[],[0,5787],[0,2647],[],[0,2729],[0,8649],[],[0,4683],[0,10043],[],[0,6336],[0,47115],[],[0,715],[0,19943],[],[0,5531],[0,34069],[],[0,4598],[0,35537],[],[0,9787],[0,26182],[],[0,11735],[0,32085],[],[0,9645],[0,8242],[],[0,8794],[0,19530],[],[0,3260],[0,45888],[],[0,4679],[0,48318],[],[0,2042],[0,8798],[],[0,3352],[0,37709],[],[0,3226],[0,10699],[],[0,2870],[0,31925],[],[0,11739],[0,22369],[],[0,9346],[0,29551],[],[0,1975],[0,17619],[],[0,2654],[0,13122],[],[0,1125],[0,11809],[],[0,2573],[0,27143],[],[0,5154],[0,23537],[],[0,3341],[0,46194],[],[0,2582],[0,16856],[],[0,10031],[0,20441],[],[0,3945],[0,33624],[],[0,7280],[0,22097],[],[0,9198],[0,24637],[],[0,6667],[0,16228],[],[0,7624],[0,4114],[],[0,2812],[0,14937],[],[0,7682],[0,40019],[],[0,7710],[0,6721],[],[0,6115],[0,48181],[],[0,10612],[0,27190],[],[0,4715],[0,3239],[],[0,4749],[0,12325],[],[0,2506],[0,3620],[],[0,5688],[0,2667],[],[0,5920],[0,37638],[],[0,9542],[0,27587],[],[0,906],[0,5259],[],[0,8839],[0,3099],[],[0,9451],[0,41863],[],[0,6420],[0,42098],[],[0,7641],[0,7157],[],[0,3915],[0,37639],[],[0,10679],[0,6988],[],[0,7520],[0,11335],[],[0,8367],[0,5100],[],[0,11384],[0,17697],[],[0,5835],[0,17493],[],[0,9737],[0,19391],[],[0,10250],[0,24403],[],[0,6001],[0,11127],[],[0,11869],[0,12016],[],[0,2151],[0,11315],[],[0,8031],[0,36677],[],[0,3559],[0,34939],[],[0,1449],[0,32443],[],[0,3504],[0,45747],[],[0,8169],[0,26870],[],[0,7728],[0,44704],[],[0,11783],[0,20775],[],[0,5644],[0,36478],[],[0,9958],[0,2291],[],[0,5083],[0,1293],[],[0,4977],[0,27236],[],[0,7970],[0,38742],[],[0,7058],[0,7658],[],[0,4108],[0,23350],[],[0,6622],[0,22442],[],[0,3489],[0,36006],[],[0,5658],[0,27103],[],[0,6797],[0,5198],[],[0,6362],[0,23703],[],[0,4150],[0,49299],[],[0,3233],[0,21008],[],[0,3415],[0,29549],[],[0,3],[0,36048],[],[0,1959],[0,36281],[],[0,2574],[0,9814],[],[0,5323],[0,601],[],[0,11602],[0,7894],[],[0,70],[0,24465],[],[0,1301],[0,8669],[],[0,7087],[0,4347],[],[0,2064],[0,8712],[],[0,4942],[0,47248],[],[0,7281],[0,13562],[],[0,10345],[0,13535],[],[0,9419],[0,45794],[],[0,8303],[0,31590],[],[0,9126],[0,15191],[],[0,7761],[0,15866],[],[0,10285],[0,8962],[],[0,10748],[0,1451],[],[0,1651],[0,7072],[],[0,6599],[0,5013],[],[0,8359],[0,36253],[],[0,10140],[0,25768],[],[0,7675],[0,22157],[],[0,1372],[0,30280],[],[0,4451],[0,18820],[],[0,11657],[0,49978],[],[0,9776],[0,4304],[],[0,5599],[0,6692],[],[0,8504],[0,5272],[],[0,5035],[0,15471],[],[0,9474],[0,47839],[],[0,259],[0,28119],[],[0,4334],[0,15409],[],[0,8035],[0,36256],[],[0,8955],[0,47368],[],[0,8204],[0,38787],[],[0,6225],[0,7071],[],[0,3171],[0,10933],[],[0,7998],[0,43987],[],[0,4750],[0,35298],[],[0,10123],[0,42868],[],[0,6071],[0,8699],[],[0,10151],[0,14828],[],[0,2598],[0,40181],[],[0,2363],[0,38727],[],[0,6273],[0,33278],[],[0,8862],[0,20675],[],[0,3237],[0,25645],[],[0,97],[0,33087],[],[0,9729],[0,6318],[],[0,4411],[0,23257],[],[0,7358],[0,32446],[],[0,9898],[0,3231],[],[0,11737],[0,35838],[],[0,8087],[0,33911],[],[0,6714],[0,3479],[],[0,9387],[0,41810],[],[0,8919],[0,36924],[],[0,10281],[0,45210],[],[0,8741],[0,42399],[],[0,4692],[0,32418],[],[0,11875],[0,57],[],[0,7312],[0,42202],[],[0,5412],[0,30084],[],[0,10945],[0,39472],[],[0,991],[0,31729],[],[0,2831],[0,13150],[],[0,5888],[0,24865],[],[0,1719],[0,28238],[],[0,7080],[0,39412],[],[0,1800],[0,24140],[],[0,1675],[0,19597],[],[0,10775],[0,1200],[],[0,3600],[0,15185],[],[0,856],[0,24385],[],[0,1181],[0,44673],[],[0,8423],[0,45274],[],[0,751],[0,15874],[],[0,305],[0,13505],[],[0,1657],[0,6494],[],[0,3555],[0,32344],[],[0,7005],[0,31308],[],[0,1659],[0,17414],[],[0,10675],[0,34211],[],[0,12415],[0,10189],[],[0,400],[0,38133],[],[0,3312],[0,8849],[],[0,6276],[0,15646],[],[0,3417],[0,4738],[],[0,8559],[0,28646],[],[0,4871],[0,49228],[],[0,3618],[0,41091],[],[0,3492],[0,31740],[],[0,7646],[0,41705],[],[0,6441],[0,44416],[],[0,1145],[0,24006],[],[0,856],[0,6727],[],[0,7471],[0,2469],[],[0,6167],[0,35407],[],[0,6739],[0,3380],[],[0,6219],[0,21198],[],[0,6954],[0,33875],[],[0,4725],[0,18162],[],[0,520],[0,22430],[],[0,7354],[0,6609],[],[0,3771],[0,3395],[],[0,6182],[0,38880],[],[0,604],[0,15792],[],[0,8701],[0,38687],[],[0,7091],[0,31],[],[0,8192],[0,14712],[],[0,7785],[0,21908],[],[0,8759],[0,35390],[],[0,1353],[0,1229],[],[0,200],[0,22703],[],[0,6809],[0,18154],[],[0,2606],[0,25736],[],[0,5480],[0,37430],[],[0,9806],[0,44661],[],[0,38],[0,38662],[],[0,6819],[0,25354],[],[0,6521],[0,43903],[],[0,834],[0,30748],[],[0,82],[0,34494],[],[0,11951],[0,14232],[],[0,5869],[0,11692],[],[0,10423],[0,23004],[],[0,8188],[0,30143],[],[0,6820],[0,39622],[],[0,11325],[0,30102],[],[0,9962],[0,13940],[],[0,8665],[0,23671],[],[0,10447],[0,45101],[],[0,7890],[0,28333],[],[0,4533],[0,7133],[],[0,3610],[0,6467],[],[0,5260],[0,43012],[],[0,6252],[0,8074],[],[0,6231],[0,22860],[],[0,6740],[0,38281],[],[0,9453],[0,614],[],[0,8388],[0,2893],[],[0,9144],[0,11511],[],[0,5100],[0,6346],[],[0,5128],[0,15131],[],[0,6962],[0,17476],[],[0,9590],[0,16860],[],[0,8090],[0,46418],[],[0,3716],[0,9125],[],[0,446],[0,25562],[],[0,12425],[0,26363],[],[0,9115],[0,15181],[],[0,1814],[0,40999],[],[0,10942],[0,20595],[],[0,6451],[0,2494],[],[0,4740],[0,43130],[],[0,11299],[0,36368],[],[0,7870],[0,42829],[],[0,1314],[0,320],[],[0,2390],[0,44730],[],[0,7890],[0,26750],[],[0,8821],[0,32649],[],[0,6532],[0,3776],[],[0,12534],[0,7547],[],[0,4819],[0,5690],[],[0,10652],[0,12002],[],[0,246],[0,14843],[],[0,1878],[0,17724],[],[0,8949],[0,3173],[],[0,8233],[0,4189],[],[0,4925],[0,42348],[],[0,7592],[0,10581],[],[0,341],[0,9809],[],[0,3490],[0,17492],[],[0,6125],[0,9400],[],[0,3529],[0,38291],[],[0,10357],[0,38751],[],[0,7312],[0,18370],[],[0,2607],[0,30107],[],[0,6200],[0,16621],[],[0,7902],[0,38504],[],[0,11789],[0,48856],[],[0,6248],[0,39716],[],[0,7918],[0,14421],[],[0,6766],[0,35080],[],[0,1559],[0,46934],[],[0,251],[0,8142],[],[0,5983],[0,1786],[],[0,7833],[0,12279],[],[0,9311],[0,17144],[],[0,3362],[0,27487],[],[0,11553],[0,47683],[],[0,2433],[0,49778],[],[0,1690],[0,25501],[],[0,1128],[0,13051],[],[0,5488],[0,30731],[],[0,11998],[0,38290],[],[0,3659],[0,10460],[],[0,7015],[0,43909],[],[0,16],[0,25570],[],[0,5681],[0,37081],[],[0,7697],[0,13294],[],[0,11238],[0,24973],[],[0,3831],[0,29382],[],[0,5899],[0,34566],[],[0,10493],[0,46958],[],[0,9550],[0,40411],[],[0,11756],[0,19338],[],[0,7769],[0,20779],[],[0,4583],[0,40893],[],[0,2571],[0,46047],[],[0,11509],[0,25485],[],[0,4309],[0,35526],[],[0,1155],[0,11105],[],[0,3999],[0,4464],[],[0,6750],[0,32986],[],[0,4172],[0,15406],[],[0,12135],[0,5094],[],[0,1838],[0,2925],[],[0,11441],[0,36009],[],[0,12365],[0,35238],[],[0,3238],[0,27562],[],[0,3956],[0,17064],[],[0,4767],[0,36313],[],[0,6316],[0,39052],[],[0,5849],[0,2792],[],[0,9633],[0,4981],[],[0,2720],[0,19943],[],[0,10197],[0,11594],[],[0,893],[0,36693],[],[0,4233],[0,28723],[],[0,6805],[0,45826],[],[0,12626],[0,14583],[],[0,950],[0,33008],[],[0,2862],[0,9508],[],[0,5260],[0,13018],[],[0,317],[0,25276],[],[0,10115],[0,28726],[],[0,2073],[0,33067],[],[0,7984],[0,20899],[],[0,788],[0,30368],[],[0,6743],[0,45816],[],[0,6768],[0,16083],[],[0,4775],[0,19198],[],[0,7276],[0,25359],[],[0,12285],[0,17930],[],[0,7674],[0,29240],[],[0,8791],[0,5919],[],[0,2802],[0,2074],[],[0,4958],[0,13967],[],[0,11925],[0,41199],[],[0,3924],[0,34972],[],[0,3903],[0,10170],[],[0,6786],[0,21107],[],[0,6410],[0,21492],[],[0,10501],[0,33292],[],[0,1536],[0,21462],[],[0,7472],[0,23591],[],[0,5943],[0,34807],[],[0,6074],[0,35689],[],[0,427],[0,37102],[],[0,7926],[0,14142],[],[0,2879],[0,32711],[],[0,11423],[0,38537],[],[0,10606],[0,19615],[],[0,9613],[0,43061],[],[0,1887],[0,1264],[],[0,5004],[0,2256],[],[0,4440],[0,23878],[],[0,2533],[0,14666],[],[0,9595],[0,7911],[],[0,5680],[0,17914],[],[0,11590],[0,8316],[],[0,4933],[0,42432],[],[0,113],[0,18650],[],[0,8381],[0,32266],[],[0,9413],[0,7054],[],[0,5688],[0,46240],[],[0,11392],[0,29948],[],[0,1414],[0,47504],[],[0,993],[0,30868],[],[0,2971],[0,230],[],[0,9531],[0,23118],[],[0,198],[0,25258],[],[0,12587],[0,43166],[],[0,818],[0,42770],[],[0,1484],[0,15558],[],[0,10948],[0,10806],[],[0,12452],[0,22448],[],[0,10535],[0,12865],[],[0,3004],[0,9298],[],[0,312],[0,5811],[],[0,5436],[0,14978],[],[0,8384],[0,47809],[],[0,4362],[0,49305],[],[0,44],[0,15078],[],[0,7847],[0,24745],[],[0,5599],[0,22297],[],[0,6099],[0,41371],[],[0,2589],[0,10388],[],[0,9564],[0,46146],[],[0,6766],[0,31017],[],[0,2067],[0,18719],[],[0,172],[0,24055],[],[0,7433],[0,49435],[],[0,7156],[0,32313],[],[0,6596],[0,35416],[],[0,9571],[0,16405],[],[0,8124],[0,14448],[],[0,1069],[0,17445],[],[0,586],[0,6333],[],[0,9011],[0,45485],[],[0,7124],[0,3223],[],[0,9361],[0,10236],[],[0,7489],[0,5266],[],[0,4662],[0,13248],[],[0,11536],[0,11963],[],[0,11423],[0,14160],[],[0,2458],[0,10018],[],[0,7414],[0,4013],[],[0,12202],[0,27660],[],[0,1751],[0,12642],[],[0,10834],[0,8273],[],[0,2864],[0,19109],[],[0,9404],[0,40583],[],[0,2777],[0,27742],[],[0,12289],[0,49371],[],[0,1239],[0,29677],[],[0,3865],[0,25126],[],[0,10813],[0,5220],[],[0,120],[0,156],[],[0,2176],[0,24444],[],[0,347],[0,15911],[],[0,9240],[0,15297],[],[0,7852],[0,3572],[],[0,7511],[0,13031],[],[0,11976],[0,33050],[],[0,2416],[0,28693],[],[0,6641],[0,49783],[],[0,1867],[0,46016],[],[0,3240],[0,42400],[],[0,5118],[0,40018],[],[0,4120],[0,36913],[],[0,2593],[0,25805],[],[0,1566],[0,49773],[],[0,2871],[0,490],[],[0,5314],[0,5889],[],[0,5500],[0,1542],[],[0,2196],[0,43197],[],[0,2554],[0,49540],[],[0,2704],[0,42930],[],[0,611],[0,15174],[],[0,4968],[0,3988],[],[0,7905],[0,28010],[],[0,1522],[0,11856],[],[0,9687],[0,9144],[],[0,9386],[0,20899],[],[0,1967],[0,12315],[],[0,7250],[0,4449],[],[0,9577],[0,49884],[],[0,12098],[0,21527],[],[0,11443],[0,5762],[],[0,2092],[0,11118],[],[0,10067],[0,15679],[],[0,4685],[0,30062],[],[0,9685],[0,859],[],[0,11087],[0,2273],[],[0,2952],[0,487],[],[0,3761],[0,29599],[],[0,4991],[0,8786],[],[0,3275],[0,9537],[],[0,8515],[0,18848],[],[0,7974],[0,46911],[],[0,10989],[0,6223],[],[0,12809],[0,42071],[],[0,11512],[0,17889],[],[0,9059],[0,24430],[],[0,10390],[0,30636],[],[0,1538],[0,4454],[],[0,11572],[0,15801],[],[0,1523],[0,43402],[],[0,7819],[0,39596],[],[0,6706],[0,30996],[],[0,4238],[0,16750],[],[0,882],[0,25974],[],[0,1489],[0,28022],[],[0,9244],[0,10900],[],[0,3349],[0,39463],[],[0,5063],[0,48028],[],[0,12801],[0,13889],[],[0,2332],[0,28431],[],[0,4241],[0,22661],[],[0,470],[0,35849],[],[0,10786],[0,26353],[],[0,11664],[0,22363],[],[0,5912],[0,23652],[],[0,11953],[0,43264],[],[0,9650],[0,32502],[],[0,3048],[0,27789],[],[0,1797],[0,9377],[],[0,11547],[0,15840],[],[0,5789],[0,49893],[],[0,7441],[0,40318],[],[0,9432],[0,25412],[],[0,1078],[0,23145],[],[0,1769],[0,38503],[],[0,5463],[0,48705],[],[0,9416],[0,48914],[],[0,393],[0,20172],[],[0,9915],[0,11197],[],[0,6471],[0,13033],[],[0,10270],[0,39566],[],[0,3424],[0,18448],[],[0,10990],[0,37405],[],[0,12744],[0,30503],[],[0,8496],[0,24979],[],[0,2394],[0,36192],[],[0,8882],[0,12818],[],[0,12763],[0,29066],[],[0,9578],[0,37980],[],[0,4165],[0,14848],[],[0,11886],[0,47209],[],[0,3096],[0,36385],[],[0,8343],[0,1854],[],[0,9859],[0,43109],[],[0,11312],[0,17239],[],[0,11558],[0,7817],[],[0,1401],[0,11146],[],[0,8795],[0,8023],[],[0,1515],[0,20441],[],[0,1292],[0,25064],[],[0,1081],[0,26347],[],[0,5988],[0,48199],[],[0,3096],[0,31358],[],[0,5450],[0,9016],[],[0,1875],[0,26473],[],[0,1393],[0,30823],[],[0,6996],[0,17473],[],[0,9335],[0,29198],[],[0,3516],[0,26447],[],[0,8335],[0,19794],[],[0,6218],[0,39979],[],[0,2008],[0,12800],[],[0,12848],[0,49976],[],[0,2820],[0,27005],[],[0,5584],[0,9463],[],[0,233],[0,22710],[],[0,8476],[0,22297],[],[0,227],[0,26881],[],[0,2563],[0,20228],[],[0,1473],[0,28548],[],[0,8403],[0,22527],[],[0,9937],[0,24586],[],[0,9759],[0,40273],[],[0,3964],[0,26345],[],[0,6349],[0,38367],[],[0,2366],[0,34606],[],[0,669],[0,11368],[],[0,11955],[0,1390],[],[0,8580],[0,9316],[],[0,336],[0,44964],[],[0,7859],[0,5777],[],[0,6050],[0,8342],[],[0,5277],[0,29601],[],[0,10509],[0,6201],[],[0,1520],[0,1533],[],[0,6825],[0,17823],[],[0,9129],[0,23811],[],[0,8837],[0,24048],[],[0,2763],[0,13564],[],[0,8613],[0,20743],[],[0,2554],[0,39708],[],[0,8885],[0,49210],[],[0,11383],[0,22024],[],[0,4515],[0,24565],[],[0,2082],[0,29175],[],[0,9924],[0,705],[],[0,7203],[0,24262],[],[0,5250],[0,41609],[],[0,12267],[0,47770],[],[0,268],[0,47134],[],[0,4330],[0,10596],[],[0,12600],[0,44262],[],[0,9773],[0,36202],[],[0,11220],[0,37740],[],[0,8695],[0,49130],[],[0,377],[0,4714],[],[0,7346],[0,3231],[],[0,4953],[0,34134],[],[0,2787],[0,32497],[],[0,1208],[0,25172],[],[0,10893],[0,36526],[],[0,2819],[0,5703],[],[0,5937],[0,8102],[],[0,147],[0,33761],[],[0,4594],[0,37400],[],[0,6361],[0,15260],[],[0,9686],[0,18093],[],[0,6701],[0,37071],[],[0,6933],[0,16716],[],[0,9938],[0,2467],[],[0,8350],[0,10027],[],[0,11404],[0,18779],[],[0,3804],[0,37396],[],[0,12003],[0,16487],[],[0,611],[0,21923],[],[0,6261],[0,19113],[],[0,10067],[0,101],[],[0,7942],[0,47230],[],[0,9292],[0,38412],[],[0,2760],[0,34806],[],[0,2895],[0,32074],[],[0,10352],[0,35086],[],[0,7979],[0,36031],[],[0,11923],[0,41480],[],[0,12138],[0,45643],[],[0,6119],[0,46833],[],[0,7326],[0,998],[],[0,12517],[0,23865],[],[0,10240],[0,8718],[],[0,9802],[0,33093],[],[0,2540],[0,1705],[],[0,4267],[0,10967],[],[0,10674],[0,43168],[],[0,7911],[0,10434],[],[0,11069],[0,30466],[],[0,2309],[0,37589],[],[0,8635],[0,33654],[],[0,12116],[0,21811],[],[0,5890],[0,34002],[],[0,5713],[0,38652],[],[0,4685],[0,1809],[],[0,4592],[0,30592],[],[0,1627],[0,7122],[],[0,1825],[0,44093],[],[0,10299],[0,14216],[],[0,10631],[0,28325],[],[0,1461],[0,6227],[],[0,919],[0,200],[],[0,1904],[0,21615],[],[0,7709],[0,2773],[],[0,8166],[0,40701],[],[0,7063],[0,12149],[],[0,8892],[0,23590],[],[0,3904],[0,16129],[],[0,8693],[0,35230],[],[0,7901],[0,17602],[],[0,71],[0,37418],[],[0,1618],[0,49732],[],[0,9254],[0,43515],[],[0,3260],[0,42244],[],[0,8243],[0,1078],[],[0,11684],[0,30547],[],[0,7477],[0,5356],[],[0,4145],[0,20408],[],[0,2940],[0,13950],[],[0,941],[0,32303],[],[0,8295],[0,27742],[],[0,2724],[0,47706],[],[0,5527],[0,27209],[],[0,10378],[0,21313],[],[0,7479],[0,13349],[],[0,9165],[0,26703],[],[0,2920],[0,28310],[],[0,10971],[0,22712],[],[0,12775],[0,34587],[],[0,6700],[0,29616],[],[0,8638],[0,9462],[],[0,1572],[0,28378],[],[0,2920],[0,28144],[],[0,12085],[0,47566],[],[0,8857],[0,25280],[],[0,5705],[0,16353],[],[0,3396],[0,4214],[],[0,5933],[0,7587],[],[0,3491],[0,43175],[],[0,6368],[0,6315],[],[0,6473],[0,15680],[],[0,7135],[0,1051],[],[0,7490],[0,22787],[],[0,11844],[0,19753],[],[0,6628],[0,44745],[],[0,5246],[0,37043],[],[0,10569],[0,44928],[],[0,10355],[0,30445],[],[0,3016],[0,23371],[],[0,1403],[0,21276],[],[0,8588],[0,29935],[],[0,1127],[0,21921],[],[0,3659],[0,43258],[],[0,12481],[0,6604],[],[0,5889],[0,35971],[],[0,9666],[0,2004],[],[0,5800],[0,18692],[],[0,12598],[0,3724],[],[0,4140],[0,38172],[],[0,8938],[0,48114],[],[0,12762],[0,45080],[],[0,11739],[0,1351],[],[0,9504],[0,23795],[],[0,9139],[0,34595],[],[0,377],[0,47456],[],[0,283],[0,1183],[],[0,3842],[0,38272],[],[0,6777],[0,8797],[],[0,8448],[0,48179],[],[0,9736],[0,4090],[],[0,6560],[0,46410],[],[0,9570],[0,21665],[],[0,3207],[0,10676],[],[0,4815],[0,18954],[],[0,12917],[0,6717],[],[0,7058],[0,44094],[],[0,195],[0,9053],[],[0,13025],[0,24470],[],[0,1775],[0,41852],[],[0,1500],[0,38631],[],[0,9299],[0,15494],[],[0,3475],[0,38630],[],[0,3901],[0,18441],[],[0,11815],[0,36780],[],[0,4741],[0,46300],[],[0,12516],[0,7521],[],[0,11544],[0,47415],[],[0,4527],[0,14335],[],[0,11993],[0,38704],[],[0,1631],[0,28693],[],[0,12587],[0,28806],[],[0,3932],[0,3872],[],[0,2823],[0,49878],[],[0,3977],[0,20021],[],[0,3770],[0,25604],[],[0,4591],[0,41681],[],[0,5058],[0,24298],[],[0,5503],[0,20685],[],[0,10491],[0,7971],[],[0,7493],[0,29164],[],[0,2929],[0,46852],[],[0,6797],[0,20885],[],[0,6064],[0,42304],[],[0,1605],[0,5412],[],[0,3610],[0,17487],[],[0,11562],[0,5539],[],[0,11749],[0,42014],[],[0,6732],[0,38145],[],[0,8800],[0,26950],[],[0,6478],[0,29990],[],[0,9276],[0,48529],[],[0,8440],[0,8523],[],[0,10387],[0,26643],[],[0,1447],[0,4695],[],[0,11345],[0,21235],[],[0,6998],[0,5480],[],[0,7381],[0,28000],[],[0,736],[0,30975],[],[0,5140],[0,31719],[],[0,1397],[0,30331],[],[0,6852],[0,43646],[],[0,12269],[0,11809],[],[0,6964],[0,38286],[],[0,3179],[0,37906],[],[0,4185],[0,29325],[],[0,11793],[0,9348],[],[0,10940],[0,3716],[],[0,12424],[0,44747],[],[0,4918],[0,15124],[],[0,353],[0,10412],[],[0,11326],[0,13942],[],[0,4010],[0,34645],[],[0,9318],[0,26031],[],[0,10942],[0,13591],[],[0,10092],[0,15084],[],[0,157],[0,30728],[],[0,9142],[0,34925],[],[0,9741],[0,6668],[],[0,7106],[0,12984],[],[0,9747],[0,20271],[],[0,7714],[0,15888],[],[0,9281],[0,26550],[],[0,991],[0,39225],[],[0,524],[0,10599],[],[0,1602],[0,42181],[],[0,1590],[0,26820],[],[0,11646],[0,37115],[],[0,9645],[0,22530],[],[0,2941],[0,25751],[],[0,5861],[0,23907],[],[0,5511],[0,11093],[],[0,9912],[0,10259],[],[0,9765],[0,45778],[],[0,12074],[0,7095],[],[0,10934],[0,23868],[],[0,7728],[0,17127],[],[0,4875],[0,33195],[],[0,10101],[0,13815],[],[0,6917],[0,49254],[],[0,2007],[0,15964],[],[0,3835],[0,30704],[],[0,575],[0,12717],[],[0,11910],[0,40762],[],[0,9564],[0,19342],[],[0,2403],[0,35393],[],[0,9297],[0,21349],[],[0,11609],[0,41307],[],[0,11832],[0,22278],[],[0,547],[0,31782],[],[0,9121],[0,31939],[],[0,8238],[0,21777],[],[0,38],[0,48605],[],[0,7182],[0,42715],[],[0,11526],[0,23858],[],[0,10398],[0,22981],[],[0,3669],[0,39505],[],[0,4155],[0,38504],[],[0,10819],[0,39775],[],[0,12760],[0,3862],[],[0,811],[0,6876],[],[0,3255],[0,24572],[],[0,8864],[0,44058],[],[0,12562],[0,36871],[],[0,9947],[0,11709],[],[0,3061],[0,3973],[],[0,2795],[0,16597],[],[0,9486],[0,47625],[],[0,9557],[0,36586],[],[0,4416],[0,4002],[],[0,6961],[0,43106],[],[0,1499],[0,18128],[],[0,8775],[0,10815],[],[0,5086],[0,22222],[],[0,5985],[0,41309],[],[0,9490],[0,26529],[],[0,1036],[0,25953],[],[0,4983],[0,43324],[],[0,2164],[0,45558],[],[0,2196],[0,25565],[],[0,7765],[0,21308],[],[0,7585],[0,42382],[],[0,4710],[0,27563],[],[0,3106],[0,33969],[],[0,2824],[0,16311],[],[0,9779],[0,6286],[],[0,2462],[0,28545],[],[0,8295],[0,3658],[],[0,742],[0,36718],[],[0,4466],[0,42924],[],[0,4971],[0,35748],[],[0,11433],[0,12198],[],[0,12193],[0,39827],[],[0,11282],[0,23106],[],[0,1522],[0,8945],[],[0,7091],[0,20866],[],[0,6558],[0,47572],[],[0,1591],[0,34747],[],[0,5880],[0,19420],[],[0,1371],[0,13529],[],[0,8519],[0,21651],[],[0,8409],[0,35111],[],[0,2937],[0,20720],[],[0,7212],[0,18294],[],[0,7608],[0,29878],[],[0,9723],[0,33214],[],[0,470],[0,16553],[],[0,7761],[0,3190],[],[0,8291],[0,45752],[],[0,10656],[0,13680],[],[0,8957],[0,24412],[],[0,3506],[0,5654],[],[0,12685],[0,31477],[],[0,11432],[0,15658],[],[0,7127],[0,48051],[],[0,4576],[0,8043],[],[0,8154],[0,7075],[],[0,893],[0,48165],[],[0,9695],[0,33958],[],[0,5530],[0,48077],[],[0,3014],[0,39234],[],[0,579],[0,45108],[],[0,447],[0,46618],[],[0,6471],[0,11071],[],[0,8617],[0,24199],[],[0,131],[0,26874],[],[0,6187],[0,14573],[],[0,11564],[0,22671],[],[0,12126],[0,44791],[],[0,6736],[0,13008],[],[0,7726],[0,43674],[],[0,11258],[0,37952],[],[0,6584],[0,17727],[],[0,1138],[0,22551],[],[0,9328],[0,22634],[],[0,6833],[0,13385],[],[0,8407],[0,90],[],[0,3490],[0,13279],[],[0,12913],[0,14038],[],[0,7187],[0,2643],[],[0,2079],[0,30161],[],[0,2664],[0,32685],[],[0,1390],[0,36124],[],[0,5474],[0,6960],[],[0,9791],[0,6616],[],[0,118],[0,21184],[],[0,7296],[0,4987],[],[0,6898],[0,16460],[],[0,8976],[0,32313],[],[0,2588],[0,15476],[],[0,10213],[0,43081],[],[0,12478],[0,578],[],[0,9428],[0,16295],[],[0,7250],[0,9185],[],[0,7276],[0,47398],[],[0,12491],[0,25765],[],[0,6217],[0,31483],[],[0,10694],[0,18791],[],[0,2979],[0,41520],[],[0,4642],[0,3840],[],[0,5382],[0,35538],[],[0,10427],[0,5963],[],[0,2155],[0,24621],[],[0,7181],[0,10452],[],[0,9546],[0,36692],[],[0,1716],[0,30288],[],[0,512],[0,5792],[],[0,7606],[0,22290],[],[0,12463],[0,27495],[],[0,6631],[0,9904],[],[0,13113],[0,47176],[],[0,1389],[0,19885],[],[0,856],[0,17340],[],[0,7064],[0,36813],[],[0,7079],[0,36410],[],[0,8670],[0,30344],[],[0,12804],[0,21529],[],[0,11751],[0,195],[],[0,96],[0,10148],[],[0,3676],[0,38443],[],[0,10224],[0,13453],[],[0,2522],[0,22629],[],[0,963],[0,41777],[],[0,12601],[0,30284],[],[0,3114],[0,9476],[],[0,7557],[0,15917],[],[0,1391],[0,11229],[],[0,8993],[0,18781],[],[0,10693],[0,24834],[],[0,12895],[0,11240],[],[0,2968],[0,13948],[],[0,1465],[0,30307],[],[0,7587],[0,31663],[],[0,12792],[0,9218],[],[0,12662],[0,22065],[],[0,9401],[0,18276],[],[0,6040],[0,28667],[],[0,3362],[0,44236],[],[0,7938],[0,23090],[],[0,6065],[0,33770],[],[0,1878],[0,28046],[],[0,8971],[0,16598],[],[0,9986],[0,14596],[],[0,6254],[0,18466],[],[0,4952],[0,13037],[],[0,3711],[0,46563],[],[0,10294],[0,31090],[],[0,4446],[0,41903],[],[0,4920],[0,10595],[],[0,9202],[0,9380],[],[0,6229],[0,44716],[],[0,3003],[0,23202],[],[0,8020],[0,47282],[],[0,693],[0,25996],[],[0,3956],[0,2226],[],[0,3604],[0,41599],[],[0,12932],[0,22484],[],[0,1937],[0,41145],[],[0,2972],[0,37352],[],[0,8285],[0,17778],[],[0,3930],[0,12865],[],[0,2045],[0,11935],[],[0,11449],[0,19887],[],[0,4275],[0,6636],[],[0,11295],[0,43886],[],[0,841],[0,3500],[],[0,593],[0,23605],[],[0,3143],[0,23962],[],[0,345],[0,1189],[],[0,3250],[0,45817],[],[0,848],[0,6050],[],[0,129],[0,33549],[],[0,4412],[0,11602],[],[0,3991],[0,15199],[],[0,5491],[0,38047],[],[0,3421],[0,36835],[],[0,8340],[0,17374],[],[0,12535],[0,41008],[],[0,7288],[0,28430],[],[0,3523],[0,10538],[],[0,1496],[0,18507],[],[0,7803],[0,23077],[],[0,7387],[0,6251],[],[0,425],[0,15261],[],[0,3667],[0,26193],[],[0,7522],[0,42345],[],[0,3259],[0,5840],[],[0,11227],[0,45315],[],[0,9674],[0,31011],[],[0,6014],[0,23137],[],[0,1692],[0,14527],[],[0,1920],[0,49461],[],[0,173],[0,42945],[],[0,8350],[0,2473],[],[0,8380],[0,44526],[],[0,7983],[0,4015],[],[0,1245],[0,23567],[],[0,11182],[0,36781],[],[0,4847],[0,7431],[],[0,10401],[0,34325],[],[0,9904],[0,25679],[],[0,6633],[0,11902],[],[0,6851],[0,14460],[],[0,6449],[0,36753],[],[0,10123],[0,7135],[],[0,5568],[0,16235],[],[0,12734],[0,2438],[],[0,12747],[0,8120],[],[0,13035],[0,41073],[],[0,6310],[0,4755],[],[0,8745],[0,15139],[],[0,11292],[0,37020],[],[0,194],[0,32297],[],[0,11830],[0,14485],[],[0,2924],[0,4571],[],[0,228],[0,42178],[],[0,6650],[0,41525],[],[0,3111],[0,43524],[],[0,12036],[0,4283],[],[0,9757],[0,10076],[],[0,673],[0,44224],[],[0,3805],[0,47803],[],[0,13125],[0,44197],[],[0,1288],[0,24302],[],[0,11406],[0,10478],[],[0,9480],[0,36539],[],[0,13291],[0,35718],[],[0,8840],[0,21547],[],[0,10382],[0,17013],[],[0,8388],[0,44871],[],[0,3412],[0,38183],[],[0,12260],[0,17343],[],[0,1168],[0,37946],[],[0,4358],[0,45483],[],[0,10414],[0,7747],[],[0,11037],[0,6917],[],[0,4714],[0,45477],[],[0,12026],[0,41873],[],[0,8710],[0,14158],[],[0,12985],[0,49416],[],[0,2379],[0,14411],[],[0,10166],[0,46568],[],[0,10686],[0,8718],[],[0,3752],[0,21752],[],[0,7250],[0,20623],[],[0,11709],[0,4387],[],[0,3716],[0,34581],[],[0,420],[0,47956],[],[0,3579],[0,31656],[],[0,1308],[0,22025],[],[0,9290],[0,27974],[],[0,2186],[0,36583],[],[0,12540],[0,41010],[],[0,2184],[0,10813],[],[0,4176],[0,46774],[],[0,3669],[0,23759],[],[0,9100],[0,515],[],[0,5820],[0,14984],[],[0,4734],[0,6299],[],[0,11517],[0,28347],[],[0,5669],[0,48563],[],[0,3575],[0,10809],[],[0,1310],[0,27532],[],[0,10408],[0,32850],[],[0,12774],[0,1807],[],[0,2590],[0,28882],[],[0,3098],[0,28991],[],[0,333],[0,13224],[],[0,4535],[0,33985],[],[0,5607],[0,8667],[],[0,1422],[0,45813],[],[0,7313],[0,32823],[],[0,10551],[0,14852],[],[0,9500],[0,10802],[],[0,10229],[0,47975],[],[0,11775],[0,15658],[],[0,8984],[0,47311],[],[0,2416],[0,16143],[],[0,5301],[0,36430],[],[0,3443],[0,49047],[],[0,10854],[0,6395],[],[0,5929],[0,21756],[],[0,3903],[0,45649],[],[0,1043],[0,49651],[],[0,12282],[0,23897],[],[0,8156],[0,17068],[],[0,12846],[0,5346],[],[0,8800],[0,47971],[],[0,6729],[0,36255],[],[0,9281],[0,31070],[],[0,11155],[0,41434],[],[0,8621],[0,11672],[],[0,12238],[0,32419],[],[0,6586],[0,26924],[],[0,4793],[0,17313],[],[0,3258],[0,26119],[],[0,11761],[0,22465],[],[0,10672],[0,21932],[],[0,3174],[0,40030],[],[0,5761],[0,49978],[],[0,12462],[0,9578],[],[0,12373],[0,843],[],[0,4876],[0,34688],[],[0,5243],[0,16373],[],[0,7741],[0,26067],[],[0,7125],[0,37892],[],[0,6012],[0,10676],[],[0,3260],[0,14408],[],[0,1808],[0,29808],[],[0,4237],[0,48511],[],[0,6646],[0,25813],[],[0,2790],[0,41809],[],[0,9416],[0,22507],[],[0,9124],[0,14261],[],[0,7802],[0,20645],[],[0,12746],[0,46388],[],[0,3316],[0,2534],[],[0,6778],[0,9243],[],[0,5967],[0,12461],[],[0,1585],[0,23278],[],[0,5903],[0,21473],[],[0,371],[0,5885],[],[0,2833],[0,16790],[],[0,11857],[0,28969],[],[0,3995],[0,328],[],[0,11550],[0,26348],[],[0,9119],[0,41301],[],[0,1222],[0,49981],[],[0,6496],[0,21721],[],[0,8707],[0,46781],[],[0,12790],[0,25055],[],[0,6228],[0,6340],[],[0,223],[0,49151],[],[0,5369],[0,10616],[],[0,8643],[0,37942],[],[0,12194],[0,22154],[],[0,4360],[0,25370],[],[0,5243],[0,27226],[],[0,8452],[0,31566],[],[0,4806],[0,48174],[],[0,3926],[0,27218],[],[0,9251],[0,30071],[],[0,186],[0,36649],[],[0,7575],[0,38122],[],[0,1286],[0,2962],[],[0,12445],[0,23830],[],[0,9519],[0,20847],[],[0,1543],[0,2709],[],[0,4472],[0,44554],[],[0,12512],[0,11846],[],[0,8159],[0,555],[],[0,11488],[0,3757],[],[0,5455],[0,27675],[],[0,9146],[0,43963],[],[0,12415],[0,6307],[],[0,12943],[0,47407],[],[0,1572],[0,18585],[],[0,2477],[0,43732],[],[0,4424],[0,12707],[],[0,3485],[0,19680],[],[0,9120],[0,5178],[],[0,11792],[0,20669],[],[0,7607],[0,49822],[],[0,11478],[0,8041],[],[0,7246],[0,27631],[],[0,2401],[0,11531],[],[0,12732],[0,25024],[],[0,5047],[0,32937],[],[0,8529],[0,2183],[],[0,6318],[0,40557],[],[0,12440],[0,34],[],[0,2925],[0,49281],[],[0,12432],[0,4385],[],[0,6966],[0,47862],[],[0,9613],[0,36874],[],[0,12382],[0,42032],[],[0,7740],[0,19516],[],[0,11925],[0,18886],[],[0,12259],[0,27507],[],[0,1138],[0,16994],[],[0,11511],[0,2127],[],[0,8742],[0,12185],[],[0,8637],[0,26831],[],[0,4432],[0,43220],[],[0,6643],[0,10728],[],[0,2940],[0,27975],[],[0,10822],[0,21809],[],[0,1336],[0,18186],[],[0,8150],[0,43055],[],[0,7444],[0,17341],[],[0,12683],[0,31882],[],[0,6578],[0,5070],[],[0,3592],[0,34553],[],[0,7581],[0,37090],[],[0,7794],[0,508],[],[0,7373],[0,21635],[],[0,10013],[0,36921],[],[0,12945],[0,46271],[],[0,10859],[0,30688],[],[0,7929],[0,4840],[],[0,3719],[0,4280],[],[0,5299],[0,40307],[],[0,2179],[0,23800],[],[0,9274],[0,26266],[],[0,6786],[0,5413],[],[0,11962],[0,18425],[],[0,6952],[0,38259],[],[0,5082],[0,9725],[],[0,5803],[0,11002],[],[0,12960],[0,6765],[],[0,549],[0,19170],[],[0,5070],[0,10884],[],[0,7242],[0,36629],[],[0,6432],[0,20781],[],[0,3157],[0,14987],[],[0,7807],[0,31757],[],[0,12605],[0,24880],[],[0,6626],[0,37195],[],[0,4836],[0,41724],[],[0,6312],[0,10930],[],[0,10931],[0,42132],[],[0,4558],[0,14832],[],[0,9799],[0,29667],[],[0,10392],[0,14727],[],[0,9570],[0,43206],[],[0,4398],[0,41004],[],[0,10987],[0,29779],[],[0,3281],[0,39605],[],[0,10025],[0,16638],[],[0,512],[0,26125],[],[0,212],[0,8230],[],[0,4649],[0,29426],[],[0,8486],[0,34254],[],[0,10672],[0,20953],[],[0,716],[0,41426],[],[0,8927],[0,41868],[],[0,1380],[0,23345],[],[0,4111],[0,35453],[],[0,12567],[0,2403],[],[0,1647],[0,21712],[],[0,4011],[0,34424],[],[0,4653],[0,16964],[],[0,10909],[0,39800],[],[0,2453],[0,11659],[],[0,2439],[0,18794],[],[0,11238],[0,7010],[],[0,4640],[0,5756],[],[0,11255],[0,5358],[],[0,9216],[0,13271],[],[0,5184],[0,23502],[],[0,2039],[0,12037],[],[0,10306],[0,33235],[],[0,10957],[0,36429],[],[0,5831],[0,25900],[],[0,4385],[0,35496],[],[0,1756],[0,44982],[],[0,3608],[0,42098],[],[0,11621],[0,18938],[],[0,4388],[0,49502],[],[0,6588],[0,19595],[],[0,13011],[0,49459],[],[0,5571],[0,29323],[],[0,8256],[0,37821],[],[0,10153],[0,7916],[],[0,10753],[0,22052],[],[0,363],[0,4002],[],[0,1364],[0,32523],[],[0,7220],[0,21780],[],[0,7570],[0,14375],[],[0,1096],[0,44095],[],[0,3482],[0,3260],[],[0,13231],[0,8221],[],[0,1217],[0,716],[],[0,9675],[0,34020],[],[0,12518],[0,31068],[],[0,12054],[0,8314],[],[0,1909],[0,40729],[],[0,7166],[0,46319],[],[0,2519],[0,13143],[],[0,8245],[0,49409],[],[0,12767],[0,18839],[],[0,8507],[0,13619],[],[0,8105],[0,10257],[],[0,11989],[0,16935],[],[0,2783],[0,30157],[],[0,4547],[0,6030],[],[0,10610],[0,14746],[],[0,8817],[0,27644],[],[0,8631],[0,23618],[],[0,8938],[0,17267],[],[0,8518],[0,40922],[],[0,4595],[0,4455],[],[0,4191],[0,5779],[],[0,1919],[0,33166],[],[0,367],[0,44284],[],[0,7209],[0,22206],[],[0,9698],[0,36127],[],[0,10934],[0,41050],[],[0,2604],[0,23373],[],[0,11499],[0,9091],[],[0,6389],[0,44067],[],[0,11905],[0,18367],[],[0,5982],[0,34980],[],[0,6464],[0,10298],[],[0,3555],[0,6320],[],[0,12605],[0,45430],[],[0,2674],[0,11599],[],[0,3199],[0,13951],[],[0,7892],[0,16066],[],[0,2892],[0,4688],[],[0,1251],[0,2346],[],[0,6072],[0,31107],[],[0,13455],[0,19921],[],[0,7108],[0,31113],[],[0,7175],[0,6695],[],[0,3026],[0,45766],[],[0,4328],[0,38295],[],[0,764],[0,13789],[],[0,13675],[0,26314],[],[0,9348],[0,10836],[],[0,7771],[0,26892],[],[0,2028],[0,39537],[],[0,532],[0,31125],[],[0,2547],[0,31407],[],[0,8574],[0,37786],[],[0,8723],[0,44758],[],[0,11659],[0,35275],[],[0,9154],[0,25197],[],[0,9789],[0,13501],[],[0,8151],[0,4385],[],[0,4305],[0,14402],[],[0,1002],[0,2443],[],[0,7518],[0,32609],[],[0,11244],[0,1364],[],[0,5518],[0,20716],[],[0,12512],[0,49445],[],[0,11969],[0,48564],[],[0,12477],[0,31687],[],[0,10442],[0,10921],[],[0,13628],[0,25448],[],[0,6457],[0,9386],[],[0,4240],[0,43410],[],[0,11952],[0,4381],[],[0,220],[0,41086],[],[0,4698],[0,17910],[],[0,8941],[0,26552],[],[0,12273],[0,18813],[],[0,12393],[0,31470],[],[0,8913],[0,40330],[],[0,8066],[0,47264],[],[0,2209],[0,28356],[],[0,1588],[0,10498],[],[0,12992],[0,42760],[],[0,7222],[0,9718],[],[0,1111],[0,20722],[],[0,13618],[0,26133],[],[0,1592],[0,22505],[],[0,9022],[0,37543],[],[0,12872],[0,24818],[],[0,12945],[0,6328],[],[0,4128],[0,45302],[],[0,8096],[0,41377],[],[0,13197],[0,1297],[],[0,1683],[0,15376],[],[0,4867],[0,42384],[],[0,4992],[0,30160],[],[0,4979],[0,16003],[],[0,49],[0,33673],[],[0,1537],[0,42293],[],[0,4493],[0,31953],[],[0,3282],[0,5350],[],[0,8152],[0,31456],[],[0,8939],[0,44480],[],[0,4555],[0,774],[],[0,8552],[0,11047],[],[0,11511],[0,20807],[],[0,7241],[0,8747],[],[0,5938],[0,41446],[],[0,9192],[0,4889],[],[0,4348],[0,14740],[],[0,12812],[0,12122],[],[0,4099],[0,24620],[],[0,2663],[0,30889],[],[0,2731],[0,46449],[],[0,571],[0,48600],[],[0,8292],[0,19674],[],[0,5564],[0,13261],[],[0,11472],[0,45062],[],[0,3745],[0,1975],[],[0,4663],[0,7572],[],[0,6837],[0,22891],[],[0,4717],[0,5692],[],[0,4737],[0,19156],[],[0,1006],[0,14172],[],[0,8283],[0,20103],[],[0,6866],[0,11662],[],[0,2150],[0,35159],[],[0,3180],[0,43670],[],[0,7489],[0,40265],[],[0,2445],[0,24229],[],[0,9821],[0,15422],[],[0,1072],[0,35204],[],[0,1446],[0,30067],[],[0,10197],[0,32315],[],[0,2436],[0,25387],[],[0,2286],[0,7357],[],[0,2311],[0,27749],[],[0,3843],[0,40174],[],[0,1838],[0,27419],[],[0,11874],[0,1557],[],[0,1764],[0,49679],[],[0,8683],[0,37386],[],[0,4259],[0,35745],[],[0,12805],[0,29148],[],[0,2553],[0,7405],[],[0,13171],[0,16368],[],[0,7243],[0,49774],[],[0,5354],[0,4132],[],[0,1358],[0,11852],[],[0,11829],[0,43805],[],[0,628],[0,16102],[],[0,3627],[0,41914],[],[0,3616],[0,39851],[],[0,9732],[0,21324],[],[0,9297],[0,2497],[],[0,4663],[0,37925],[],[0,7296],[0,42394],[],[0,4867],[0,40146],[],[0,2441],[0,43866],[],[0,1625],[0,37651],[],[0,8164],[0,22088],[],[0,8511],[0,8745],[],[0,4242],[0,27832],[],[0,12049],[0,19277],[],[0,12388],[0,8896],[],[0,6476],[0,11073],[],[0,29],[0,15719],[],[0,10440],[0,3017],[],[0,12993],[0,38203],[],[0,5187],[0,10162],[],[0,4756],[0,43037],[],[0,4373],[0,35391],[],[0,12723],[0,5293],[],[0,5616],[0,29436],[],[0,8404],[0,18350],[],[0,10555],[0,27292],[],[0,8036],[0,20753],[],[0,8609],[0,39740],[],[0,4493],[0,49585],[],[0,13204],[0,47486],[],[0,12600],[0,36151],[],[0,13081],[0,7640],[],[0,11321],[0,13232],[],[0,2604],[0,42025],[],[0,13482],[0,14940],[],[0,9348],[0,30897],[],[0,4543],[0,13643],[],[0,5609],[0,26826],[],[0,1820],[0,43047],[],[0,13119],[0,30581],[],[0,11081],[0,16521],[],[0,2744],[0,33779],[],[0,7912],[0,33891],[],[0,11605],[0,31908],[],[0,12848],[0,30509],[],[0,6277],[0,6302],[],[0,2654],[0,15765],[],[0,8884],[0,20470],[],[0,4343],[0,17851],[],[0,4942],[0,40728],[],[0,12741],[0,4471],[],[0,3113],[0,39284],[],[0,8867],[0,44966],[],[0,12141],[0,26617],[],[0,4856],[0,39501],[],[0,3874],[0,13403],[],[0,788],[0,10605],[],[0,5855],[0,30562],[],[0,4036],[0,9268],[],[0,11366],[0,4990],[],[0,10867],[0,39009],[],[0,1060],[0,8516],[],[0,9230],[0,48231],[],[0,10598],[0,44834],[],[0,2095],[0,6154],[],[0,8266],[0,14351],[],[0,4820],[0,8551],[],[0,1039],[0,13288],[],[0,2687],[0,37493],[],[0,4910],[0,39973],[],[0,4475],[0,13451],[],[0,11004],[0,21282],[],[0,2465],[0,8292],[],[0,6405],[0,34247],[],[0,8204],[0,18948],[],[0,71],[0,42768],[],[0,3852],[0,32768],[],[0,373],[0,37282],[],[0,7561],[0,14855],[],[0,6234],[0,14432],[],[0,6373],[0,34615],[],[0,1812],[0,25711],[],[0,10368],[0,10712],[],[0,5420],[0,6111],[],[0,4779],[0,36743],[],[0,11816],[0,19374],[],[0,11757],[0,14733],[],[0,3981],[0,14707],[],[0,2550],[0,13201],[],[0,9526],[0,720],[],[0,9846],[0,24026],[],[0,7580],[0,25924],[],[0,2360],[0,32984],[],[0,9762],[0,18840],[],[0,4370],[0,2219],[],[0,7052],[0,31880],[],[0,511],[0,27915],[],[0,18],[0,41937],[],[0,53],[0,47503],[],[0,10553],[0,19429],[],[0,12534],[0,16949],[],[0,10596],[0,29625],[],[0,8789],[0,15967],[],[0,10185],[0,26748],[],[0,12750],[0,23777],[],[0,2602],[0,6172],[],[0,12184],[0,18916],[],[0,4580],[0,775],[],[0,7618],[0,26751],[],[0,2262],[0,30381],[],[0,10539],[0,24207],[],[0,4940],[0,49183],[],[0,12416],[0,20691],[],[0,12426],[0,46815],[],[0,8068],[0,18631],[],[0,5872],[0,22628],[],[0,11737],[0,42245],[],[0,1656],[0,21352],[],[0,9977],[0,16439],[],[0,9462],[0,48188],[],[0,1346],[0,46091],[],[0,12021],[0,3885],[],[0,576],[0,43963],[],[0,11909],[0,41830],[],[0,4982],[0,32233],[],[0,5523],[0,42648],[],[0,12477],[0,41139],[],[0,1071],[0,12982],[],[0,12352],[0,42931],[],[0,9706],[0,1785],[],[0,6797],[0,33493],[],[0,4380],[0,11426],[],[0,12579],[0,11578],[],[0,11979],[0,46671],[],[0,4648],[0,47561],[],[0,2601],[0,572],[],[0,237],[0,27631],[],[0,11462],[0,46130],[],[0,11004],[0,5198],[],[0,4137],[0,47977],[],[0,6909],[0,45957],[],[0,11456],[0,7096],[],[0,8089],[0,31106],[],[0,12018],[0,7060],[],[0,10380],[0,31189],[],[0,3206],[0,30932],[],[0,7063],[0,18268],[],[0,12595],[0,31581],[],[0,7171],[0,19721],[],[0,2847],[0,44461],[],[0,5470],[0,41962],[],[0,13368],[0,25274],[],[0,8754],[0,17599],[],[0,13834],[0,7499],[],[0,13737],[0,48729],[],[0,8304],[0,5726],[],[0,7703],[0,40816],[],[0,4311],[0,44438],[],[0,5843],[0,43689],[],[0,13275],[0,8485],[],[0,7593],[0,39951],[],[0,5639],[0,27707],[],[0,1392],[0,2591],[],[0,3001],[0,39096],[],[0,8910],[0,39703],[],[0,5760],[0,34813],[],[0,11078],[0,44170],[],[0,5072],[0,11035],[],[0,7279],[0,23848],[],[0,10213],[0,35202],[],[0,10870],[0,10570],[],[0,10827],[0,24310],[],[0,8315],[0,33925],[],[0,5672],[0,26493],[],[0,10546],[0,13506],[],[0,13279],[0,37445],[],[0,13221],[0,41807],[],[0,13531],[0,25990],[],[0,13038],[0,35792],[],[0,935],[0,47599],[],[0,6337],[0,40594],[],[0,4040],[0,28330],[],[0,13260],[0,44875],[],[0,8526],[0,35861],[],[0,8589],[0,48630],[],[0,3474],[0,27404],[],[0,387],[0,10681],[],[0,5482],[0,31709],[],[0,5291],[0,14486],[],[0,10555],[0,34812],[],[0,7314],[0,3123],[],[0,4885],[0,27015],[],[0,2468],[0,39661],[],[0,1124],[0,7024],[],[0,5855],[0,5637],[],[0,8358],[0,36700],[],[0,10225],[0,42262],[],[0,6108],[0,33765],[],[0,11619],[0,9737],[],[0,12065],[0,15668],[],[0,3171],[0,26553],[],[0,13619],[0,48930],[],[0,13044],[0,23771],[],[0,6193],[0,19129],[],[0,2945],[0,25084],[],[0,3355],[0,5186],[],[0,3961],[0,101],[],[0,12572],[0,29913],[],[0,6952],[0,20156],[],[0,8384],[0,27742],[],[0,11938],[0,30711],[],[0,13192],[0,26553],[],[0,704],[0,33687],[],[0,3343],[0,161],[],[0,3718],[0,5269],[],[0,3655],[0,27331],[],[0,7482],[0,21396],[],[0,6487],[0,31566],[],[0,8327],[0,19307],[],[0,2309],[0,6412],[],[0,7097],[0,18625],[],[0,1747],[0,7390],[],[0,5155],[0,35561],[],[0,12686],[0,15032],[],[0,6999],[0,31014],[],[0,10921],[0,17376],[],[0,13264],[0,36234],[],[0,13516],[0,11361],[],[0,10426],[0,16587],[],[0,8655],[0,15966],[],[0,1191],[0,42624],[],[0,5830],[0,20724],[],[0,3206],[0,29952],[],[0,13917],[0,32939],[],[0,405],[0,48858],[],[0,11307],[0,34293],[],[0,2955],[0,5136],[],[0,13944],[0,35569],[],[0,12873],[0,4915],[],[0,4743],[0,3642],[],[0,13084],[0,3855],[],[0,10755],[0,31463],[],[0,2649],[0,45923],[],[0,7330],[0,26699],[],[0,6475],[0,44061],[],[0,1151],[0,129],[],[0,1443],[0,37514],[],[0,4883],[0,48823],[],[0,8837],[0,49151],[],[0,12281],[0,8655],[],[0,12510],[0,33575],[],[0,3206],[0,13389],[],[0,734],[0,44341],[],[0,1092],[0,10523],[],[0,11556],[0,30036],[],[0,7916],[0,8824],[],[0,13666],[0,4166],[],[0,8017],[0,2029],[],[0,6168],[0,18340],[],[0,11476],[0,16169],[],[0,9736],[0,26413],[],[0,7448],[0,6948],[],[0,2340],[0,1880],[],[0,1958],[0,28196],[],[0,386],[0,40432],[],[0,8124],[0,30465],[],[0,3240],[0,28810],[],[0,957],[0,26885],[],[0,6999],[0,40632],[],[0,2364],[0,3409],[],[0,67],[0,18939],[],[0,11330],[0,14546],[],[0,13517],[0,37236],[],[0,13049],[0,17374],[],[0,2888],[0,41400],[],[0,11579],[0,27819],[],[0,6187],[0,33306],[],[0,5045],[0,15118],[],[0,13457],[0,28300],[],[0,7302],[0,25044],[],[0,8991],[0,12923],[],[0,5135],[0,43507],[],[0,2642],[0,40703],[],[0,328],[0,41749],[],[0,5974],[0,11794],[],[0,11373],[0,49860],[],[0,3955],[0,43497],[],[0,7572],[0,14513],[],[0,9714],[0,36726],[],[0,10564],[0,13353],[],[0,4067],[0,24889],[],[0,1265],[0,5338],[],[0,1515],[0,5565],[],[0,3728],[0,23818],[],[0,13741],[0,38296],[],[0,3308],[0,17654],[],[0,13402],[0,463],[],[0,5877],[0,6357],[],[0,10618],[0,15578],[],[0,11931],[0,23876],[],[0,2673],[0,29220],[],[0,2381],[0,15302],[],[0,3408],[0,11598],[],[0,3505],[0,5574],[],[0,6182],[0,37685],[],[0,10046],[0,21607],[],[0,4762],[0,37076],[],[0,11204],[0,23072],[],[0,4233],[0,30127],[],[0,6226],[0,7471],[],[0,9769],[0,2966],[],[0,13069],[0,21413],[],[0,4493],[0,39774],[],[0,2557],[0,22875],[],[0,8448],[0,44048],[],[0,6488],[0,23505],[],[0,180],[0,3871],[],[0,4750],[0,25133],[],[0,6017],[0,43123],[],[0,9589],[0,48040],[],[0,10803],[0,37920],[],[0,3085],[0,27025],[],[0,9127],[0,24909],[],[0,10248],[0,39386],[],[0,6879],[0,28470],[],[0,8438],[0,44634],[],[0,6010],[0,20337],[],[0,2271],[0,23972],[],[0,8441],[0,17776],[],[0,11951],[0,12694],[],[0,8841],[0,37402],[],[0,2758],[0,2621],[],[0,7944],[0,30117],[],[0,4689],[0,15503],[],[0,9298],[0,48608],[],[0,3193],[0,19468],[],[0,4783],[0,38667],[],[0,6242],[0,25753],[],[0,13080],[0,39986],[],[0,4829],[0,8896],[],[0,13383],[0,7501],[],[0,7676],[0,5235],[],[0,7490],[0,22411],[],[0,3150],[0,14661],[],[0,11236],[0,9284],[],[0,12724],[0,11889],[],[0,11059],[0,31219],[],[0,4463],[0,48028],[],[0,1902],[0,8361],[],[0,7865],[0,12551],[],[0,10189],[0,5743],[],[0,5048],[0,14094],[],[0,11759],[0,30512],[],[0,2259],[0,44373],[],[0,2012],[0,20105],[],[0,6223],[0,33930],[],[0,6684],[0,186],[],[0,9760],[0,42564],[],[0,1290],[0,44353],[],[0,971],[0,43522],[],[0,8321],[0,30420],[],[0,2869],[0,39639],[],[0,7154],[0,33310],[],[0,4896],[0,25130],[],[0,968],[0,32681],[],[0,2039],[0,47897],[],[0,7249],[0,45480],[],[0,1518],[0,38248],[],[0,11443],[0,24507],[],[0,5967],[0,22187],[],[0,2291],[0,33468],[],[0,3243],[0,45932],[],[0,5767],[0,35913],[],[0,25],[0,45823],[],[0,6649],[0,35848],[],[0,13464],[0,7722],[],[0,307],[0,39307],[],[0,12397],[0,19615],[],[0,9179],[0,1823],[],[0,2823],[0,3789],[],[0,2569],[0,5689],[],[0,7582],[0,7221],[],[0,9886],[0,49825],[],[0,6428],[0,15034],[],[0,942],[0,22065],[],[0,4013],[0,32596],[],[0,5172],[0,22822],[],[0,354],[0,5762],[],[0,13196],[0,48085],[],[0,4651],[0,4104],[],[0,11150],[0,37479],[],[0,4423],[0,28277],[],[0,12164],[0,23287],[],[0,9688],[0,22868],[],[0,3192],[0,46323],[],[0,6017],[0,3751],[],[0,8342],[0,28291],[],[0,1230],[0,46483],[],[0,7704],[0,31150],[],[0,13238],[0,21954],[],[0,424],[0,12555],[],[0,5589],[0,26352],[],[0,609],[0,36689],[],[0,3772],[0,4189],[],[0,9189],[0,40839],[],[0,7169],[0,46159],[],[0,10206],[0,18754],[],[0,4488],[0,8495],[],[0,6696],[0,47891],[],[0,5899],[0,10980],[],[0,3299],[0,29424],[],[0,9091],[0,4957],[],[0,5655],[0,17857],[],[0,8266],[0,23651],[],[0,3555],[0,11229],[],[0,6972],[0,37306],[],[0,2223],[0,31336],[],[0,4797],[0,7849],[],[0,4579],[0,12251],[],[0,2812],[0,19909],[],[0,9563],[0,27978],[],[0,2795],[0,88],[],[0,11335],[0,34038],[],[0,3800],[0,25263],[],[0,13574],[0,12661],[],[0,1595],[0,9562],[],[0,12579],[0,19853],[],[0,5679],[0,36753],[],[0,5106],[0,47296],[],[0,2116],[0,4434],[],[0,4123],[0,27017],[],[0,3711],[0,10235],[],[0,5233],[0,19109],[],[0,13025],[0,21618],[],[0,4],[0,31800],[],[0,10240],[0,21883],[],[0,6319],[0,13148],[],[0,2011],[0,3677],[],[0,11667],[0,46867],[],[0,4780],[0,11661],[],[0,1128],[0,47889],[],[0,11692],[0,8182],[],[0,63],[0,34911],[],[0,5344],[0,40831],[],[0,5329],[0,48079],[],[0,11468],[0,36184],[],[0,11216],[0,37866],[],[0,659],[0,6373],[],[0,6556],[0,6493],[],[0,12124],[0,13011],[],[0,1825],[0,30243],[],[0,7755],[0,42635],[],[0,5532],[0,11400],[],[0,12660],[0,45449],[],[0,5482],[0,7594],[],[0,12918],[0,12002],[],[0,2573],[0,42953],[],[0,3848],[0,18949],[],[0,11345],[0,1622],[],[0,677],[0,35452],[],[0,5955],[0,5733],[],[0,6305],[0,42911],[],[0,8628],[0,39953],[],[0,4012],[0,20746],[],[0,13888],[0,21067],[],[0,9812],[0,32837],[],[0,10053],[0,3342],[],[0,1121],[0,28988],[],[0,9448],[0,10998],[],[0,7831],[0,13023],[],[0,13303],[0,4931],[],[0,941],[0,14556],[],[0,12406],[0,22317],[],[0,6295],[0,23912],[],[0,7594],[0,5398],[],[0,4390],[0,2069],[],[0,7757],[0,26620],[],[0,1097],[0,37993],[],[0,2208],[0,37296],[],[0,2667],[0,49744],[],[0,8967],[0,46390],[],[0,2009],[0,29979],[],[0,12661],[0,32050],[],[0,3737],[0,11301],[],[0,9056],[0,19250],[],[0,7552],[0,40666],[],[0,11643],[0,18157],[],[0,7972],[0,3830],[],[0,4482],[0,27030],[],[0,3020],[0,28593],[],[0,583],[0,33890],[],[0,7289],[0,39008],[],[0,4194],[0,20960],[],[0,8798],[0,25323],[],[0,1537],[0,40738],[],[0,6513],[0,22545],[],[0,11071],[0,1459],[],[0,3310],[0,26601],[],[0,11343],[0,22933],[],[0,9365],[0,27769],[],[0,3539],[0,6400],[],[0,12766],[0,36637],[],[0,13346],[0,41319],[],[0,8305],[0,34598],[],[0,7711],[0,38564],[],[0,12289],[0,49749],[],[0,12020],[0,8667],[],[0,6694],[0,38087],[],[0,8898],[0,31966],[],[0,8948],[0,9510],[],[0,10995],[0,8040],[],[0,1365],[0,16093],[],[0,1278],[0,6075],[],[0,13681],[0,35815],[],[0,14196],[0,38727],[],[0,13508],[0,8865],[],[0,9379],[0,19683],[],[0,2901],[0,17497],[],[0,13235],[0,48842],[],[0,1367],[0,27178],[],[0,1775],[0,731],[],[0,5124],[0,23835],[],[0,216],[0,11105],[],[0,13588],[0,12086],[],[0,4672],[0,8097],[],[0,12751],[0,38519],[],[0,9192],[0,18498],[],[0,9366],[0,37860],[],[0,5018],[0,18914],[],[0,6224],[0,42819],[],[0,5397],[0,4875],[],[0,6612],[0,44733],[],[0,6641],[0,45447],[],[0,2067],[0,43545],[],[0,12974],[0,49052],[],[0,11130],[0,31327],[],[0,6583],[0,4637],[],[0,3977],[0,14526],[],[0,3854],[0,31512],[],[0,9919],[0,4087],[],[0,8256],[0,10774],[],[0,13312],[0,39354],[],[0,12650],[0,42044],[],[0,2383],[0,12632],[],[0,5154],[0,2847],[],[0,11116],[0,11565],[],[0,8536],[0,43190],[],[0,7834],[0,23970],[],[0,6444],[0,22359],[],[0,4616],[0,36217],[],[0,7667],[0,2814],[],[0,2805],[0,49808],[],[0,198],[0,28494],[],[0,1687],[0,10437],[],[0,1502],[0,19630],[],[0,12409],[0,48364],[],[0,13531],[0,46902],[],[0,7912],[0,27379],[],[0,10494],[0,47901],[],[0,5132],[0,3863],[],[0,1936],[0,22385],[],[0,12317],[0,22724],[],[0,8889],[0,7530],[],[0,14274],[0,28829],[],[0,4431],[0,47611],[],[0,12901],[0,47137],[],[0,7273],[0,8318],[],[0,2664],[0,22798],[],[0,10427],[0,30269],[],[0,10907],[0,22104],[],[0,3943],[0,10868],[],[0,1477],[0,14354],[],[0,8397],[0,43463],[],[0,6706],[0,39419],[],[0,2571],[0,47077],[],[0,3292],[0,29150],[],[0,823],[0,44738],[],[0,4486],[0,9148],[],[0,2167],[0,39935],[],[0,1848],[0,37941],[],[0,11372],[0,48814],[],[0,2469],[0,23548],[],[0,3773],[0,11090],[],[0,883],[0,2723],[],[0,10815],[0,41031],[],[0,7115],[0,37575],[],[0,12363],[0,34824],[],[0,5174],[0,4489],[],[0,5157],[0,41215],[],[0,2142],[0,7031],[],[0,14278],[0,26238],[],[0,13872],[0,3750],[],[0,666],[0,4519],[],[0,10737],[0,18188],[],[0,8172],[0,27797],[],[0,5428],[0,42200],[],[0,12865],[0,46308],[],[0,1555],[0,48951],[],[0,205],[0,7001],[],[0,3372],[0,24631],[],[0,3429],[0,10803],[],[0,3734],[0,17429],[],[0,9818],[0,13578],[],[0,8589],[0,35698],[],[0,1415],[0,5837],[],[0,929],[0,35584],[],[0,28],[0,8727],[],[0,7095],[0,18629],[],[0,13879],[0,28062],[],[0,12568],[0,27933],[],[0,3041],[0,13608],[],[0,145],[0,43217],[],[0,1573],[0,5312],[],[0,9361],[0,2561],[],[0,12068],[0,5966],[],[0,2237],[0,19808],[],[0,2091],[0,10368],[],[0,2874],[0,30745],[],[0,2020],[0,48185],[],[0,9819],[0,36283],[],[0,13211],[0,38812],[],[0,4796],[0,6649],[],[0,348],[0,6786],[],[0,4714],[0,36736],[],[0,710],[0,27176],[],[0,14114],[0,33514],[],[0,5153],[0,31245],[],[0,12255],[0,7935],[],[0,4974],[0,30650],[],[0,1082],[0,38001],[],[0,12784],[0,9864],[],[0,7614],[0,45537],[],[0,4503],[0,43870],[],[0,6600],[0,35530],[],[0,12405],[0,21665],[],[0,379],[0,148],[],[0,13014],[0,29234],[],[0,12853],[0,38359],[],[0,2738],[0,33442],[],[0,2228],[0,46707],[],[0,12631],[0,48800],[],[0,7671],[0,44313],[],[0,13171],[0,29391],[],[0,13846],[0,22909],[],[0,5547],[0,49294],[],[0,7085],[0,29393],[],[0,511],[0,32189],[],[0,11292],[0,261],[],[0,12178],[0,6308],[],[0,10960],[0,38213],[],[0,11112],[0,31728],[],[0,5903],[0,2278],[],[0,7991],[0,8608],[],[0,1451],[0,14958],[],[0,10932],[0,25248],[],[0,9187],[0,18596],[],[0,10108],[0,46788],[],[0,12632],[0,2261],[],[0,2600],[0,8694],[],[0,5674],[0,1147],[],[0,3376],[0,28026],[],[0,4168],[0,17444],[],[0,10176],[0,5869],[],[0,4774],[0,28106],[],[0,8927],[0,40630],[],[0,2159],[0,42785],[],[0,14070],[0,3281],[],[0,2624],[0,37815],[],[0,7812],[0,24557],[],[0,5798],[0,49195],[],[0,6983],[0,38819],[],[0,7331],[0,4777],[],[0,12477],[0,7434],[],[0,6070],[0,741],[],[0,7136],[0,36362],[],[0,11922],[0,23277],[],[0,9031],[0,31430],[],[0,5308],[0,8498],[],[0,3790],[0,24777],[],[0,4031],[0,16336],[],[0,9905],[0,35606],[],[0,9624],[0,36533],[],[0,10007],[0,23307],[],[0,9631],[0,47394],[],[0,13257],[0,18619],[],[0,10249],[0,24434],[],[0,11432],[0,28593],[],[0,13271],[0,19273],[],[0,11502],[0,2639],[],[0,6958],[0,20296],[],[0,1174],[0,24272],[],[0,5726],[0,36281],[],[0,8686],[0,26059],[],[0,4662],[0,9003],[],[0,4324],[0,11919],[],[0,9805],[0,2444],[],[0,13791],[0,17204],[],[0,3823],[0,49571],[],[0,11924],[0,13347],[],[0,5169],[0,20585],[],[0,6212],[0,7892],[],[0,1536],[0,44443],[],[0,10411],[0,42050],[],[0,5455],[0,24253],[],[0,1869],[0,41987],[],[0,10456],[0,44281],[],[0,4305],[0,5014],[],[0,10717],[0,18609],[],[0,8815],[0,44069],[],[0,10254],[0,712],[],[0,3601],[0,5732],[],[0,7053],[0,17404],[],[0,13499],[0,19753],[],[0,1241],[0,2428],[],[0,10844],[0,1513],[],[0,2839],[0,15906],[],[0,3440],[0,21528],[],[0,3000],[0,40208],[],[0,1163],[0,32545],[],[0,6454],[0,28269],[],[0,1741],[0,17900],[],[0,14150],[0,43666],[],[0,9113],[0,46401],[],[0,3225],[0,21498],[],[0,6828],[0,18634],[],[0,3169],[0,36830],[],[0,12100],[0,33078],[],[0,933],[0,38649],[],[0,13433],[0,20275],[],[0,230],[0,18806],[],[0,13112],[0,22587],[],[0,2866],[0,31854],[],[0,14397],[0,46407],[],[0,676],[0,45342],[],[0,10963],[0,16747],[],[0,2115],[0,23359],[],[0,9835],[0,37104],[],[0,6387],[0,1609],[],[0,6497],[0,15806],[],[0,7846],[0,48428],[],[0,12654],[0,42512],[],[0,354],[0,5978],[],[0,9083],[0,46345],[],[0,1124],[0,7352],[],[0,830],[0,5042],[],[0,12619],[0,16021],[],[0,4391],[0,6497],[],[0,12368],[0,23617],[],[0,8680],[0,48579],[],[0,3961],[0,32647],[],[0,642],[0,3867],[],[0,11515],[0,34934],[],[0,9139],[0,40352],[],[0,6523],[0,26076],[],[0,11544],[0,16723],[],[0,8013],[0,38946],[],[0,14466],[0,25376],[],[0,5960],[0,48656],[],[0,10046],[0,23774],[],[0,11566],[0,32568],[],[0,1704],[0,12683],[],[0,13870],[0,40447],[],[0,3908],[0,1649],[],[0,11871],[0,24802],[],[0,2677],[0,21579],[],[0,2767],[0,46169],[],[0,7501],[0,32803],[],[0,10010],[0,44908],[],[0,2893],[0,13925],[],[0,2724],[0,49367],[],[0,6414],[0,6952],[],[0,2625],[0,37286],[],[0,6343],[0,49508],[],[0,4660],[0,16198],[],[0,1761],[0,42044],[],[0,13431],[0,49728],[],[0,558],[0,45379],[],[0,5131],[0,47195],[],[0,14102],[0,49676],[],[0,12935],[0,48822],[],[0,10000],[0,3326],[],[0,5718],[0,38133],[],[0,3597],[0,8581],[],[0,2191],[0,14213],[],[0,12815],[0,27878],[],[0,10109],[0,30165],[],[0,8315],[0,49800],[],[0,10671],[0,2824],[],[0,4490],[0,12670],[],[0,14552],[0,23696],[],[0,1093],[0,818],[],[0,10983],[0,15205],[],[0,7070],[0,1501],[],[0,4772],[0,25738],[],[0,9641],[0,22296],[],[0,4150],[0,1100],[],[0,13798],[0,29963],[],[0,7986],[0,9391],[],[0,1274],[0,21123],[],[0,5577],[0,30835],[],[0,11901],[0,46952],[],[0,5471],[0,13550],[],[0,723],[0,17845],[],[0,166],[0,13898],[],[0,6978],[0,32910],[],[0,12109],[0,49847],[],[0,2959],[0,14330],[],[0,11558],[0,17648],[],[0,11487],[0,5502],[],[0,5297],[0,35798],[],[0,4060],[0,3112],[],[0,756],[0,2058],[],[0,10357],[0,18001],[],[0,818],[0,4501],[],[0,4682],[0,14138],[],[0,4930],[0,48495],[],[0,7600],[0,20023],[],[0,719],[0,43519],[],[0,1242],[0,28409],[],[0,9750],[0,12953],[],[0,6534],[0,30619],[],[0,7885],[0,44664],[],[0,78],[0,21240],[],[0,14010],[0,29178],[],[0,474],[0,47949],[],[0,720],[0,30998],[],[0,12624],[0,7758],[],[0,6877],[0,15166],[],[0,7119],[0,34785],[],[0,6987],[0,26410],[],[0,1509],[0,17311],[],[0,11438],[0,3300],[],[0,10364],[0,43975],[],[0,3404],[0,11586],[],[0,8091],[0,42952],[],[0,13543],[0,32290],[],[0,11963],[0,26943],[],[0,11903],[0,33327],[],[0,3321],[0,24959],[],[0,914],[0,14902],[],[0,1998],[0,12918],[],[0,8105],[0,23932],[],[0,5196],[0,32383],[],[0,7347],[0,39972],[],[0,10418],[0,18677],[],[0,5316],[0,9644],[],[0,11811],[0,3728],[],[0,14429],[0,531],[],[0,1326],[0,47999],[],[0,3339],[0,23571],[],[0,11222],[0,17450],[],[0,3946],[0,37555],[],[0,6693],[0,19493],[],[0,14130],[0,48201],[],[0,13611],[0,45692],[],[0,7399],[0,48446],[],[0,448],[0,3282],[],[0,5867],[0,46894],[],[0,14414],[0,19631],[],[0,6359],[0,432],[],[0,4103],[0,2005],[],[0,7654],[0,32125],[],[0,12008],[0,4584],[],[0,5855],[0,10859],[],[0,1117],[0,35147],[],[0,3021],[0,35494],[],[0,126],[0,34742],[],[0,8362],[0,43801],[],[0,11324],[0,27357],[],[0,1899],[0,10493],[],[0,10535],[0,38125],[],[0,8878],[0,47488],[],[0,14364],[0,44294],[],[0,4356],[0,38611],[],[0,5367],[0,8544],[],[0,9236],[0,10624],[],[0,4424],[0,12338],[],[0,3919],[0,10650],[],[0,7739],[0,5521],[],[0,2295],[0,47715],[],[0,13189],[0,8382],[],[0,2785],[0,7934],[],[0,10361],[0,12047],[],[0,11047],[0,39968],[],[0,6853],[0,37575],[],[0,7689],[0,23924],[],[0,11563],[0,32832],[],[0,1168],[0,38049],[],[0,3362],[0,36921],[],[0,13906],[0,46664],[],[0,12957],[0,37793],[],[0,1552],[0,20643],[],[0,20],[0,12918],[],[0,3925],[0,11676],[],[0,4642],[0,24156],[],[0,9338],[0,30223],[],[0,4004],[0,41933],[],[0,9324],[0,48280],[],[0,8557],[0,35180],[],[0,9589],[0,24304],[],[0,8391],[0,9117],[],[0,3459],[0,46094],[],[0,4737],[0,7660],[],[0,3201],[0,13444],[],[0,2582],[0,6799],[],[0,2159],[0,33286],[],[0,14069],[0,21616],[],[0,12539],[0,5873],[],[0,5050],[0,2898],[],[0,8480],[0,46131],[],[0,11506],[0,5542],[],[0,7043],[0,45188],[],[0,14182],[0,39108],[],[0,5458],[0,29915],[],[0,11652],[0,36734],[],[0,9942],[0,2245],[],[0,10989],[0,36621],[],[0,8388],[0,17478],[],[0,14569],[0,27015],[],[0,3388],[0,5305],[],[0,5788],[0,33971],[],[0,6368],[0,16171],[],[0,11656],[0,27940],[],[0,10414],[0,32247],[],[0,1214],[0,32546],[],[0,7373],[0,18878],[],[0,7791],[0,43002],[],[0,6621],[0,14228],[],[0,3025],[0,5612],[],[0,4335],[0,15065],[],[0,7869],[0,749],[],[0,4136],[0,22870],[],[0,6766],[0,34311],[],[0,11920],[0,1445],[],[0,4272],[0,22204],[],[0,4036],[0,13302],[],[0,13829],[0,37167],[],[0,8674],[0,47714],[],[0,12516],[0,6109],[],[0,5719],[0,29712],[],[0,9519],[0,3048],[],[0,8264],[0,5016],[],[0,2094],[0,21780],[],[0,14322],[0,2476],[],[0,13190],[0,37485],[],[0,11176],[0,4870],[],[0,7437],[0,44074],[],[0,2217],[0,23662],[],[0,10],[0,9474],[],[0,12511],[0,24503],[],[0,13419],[0,17459],[],[0,3909],[0,20099],[],[0,8405],[0,1100],[],[0,1826],[0,45945],[],[0,2352],[0,23437],[],[0,14215],[0,42533],[],[0,4778],[0,42094],[],[0,265],[0,14412],[],[0,1444],[0,32989],[],[0,4967],[0,24123],[],[0,11782],[0,25176],[],[0,2457],[0,11356],[],[0,6737],[0,47413],[],[0,3196],[0,23708],[],[0,12033],[0,8981],[],[0,2895],[0,19919],[],[0,14662],[0,9626],[],[0,10396],[0,32750],[],[0,991],[0,17275],[],[0,463],[0,20766],[],[0,323],[0,3541],[],[0,8136],[0,6412],[],[0,6151],[0,25749],[],[0,11041],[0,15544],[],[0,315],[0,30614],[],[0,3860],[0,26632],[],[0,8051],[0,36439],[],[0,12478],[0,13050],[],[0,11786],[0,25723],[],[0,2188],[0,32984],[],[0,14660],[0,44859],[],[0,5652],[0,45294],[],[0,5253],[0,2124],[],[0,13981],[0,8508],[],[0,12065],[0,23961],[],[0,10023],[0,28867],[],[0,13786],[0,41221],[],[0,14304],[0,17281],[],[0,8089],[0,32831],[],[0,963],[0,39706],[],[0,7369],[0,33165],[],[0,13183],[0,17469],[],[0,6741],[0,21921],[],[0,6544],[0,40845],[],[0,10901],[0,9718],[],[0,7610],[0,9823],[],[0,10035],[0,42210],[],[0,4602],[0,25823],[],[0,7093],[0,22956],[],[0,9132],[0,39367],[],[0,11154],[0,41548],[],[0,11296],[0,35368],[],[0,13979],[0,11171],[],[0,10175],[0,37450],[],[0,8344],[0,5269],[],[0,5891],[0,23044],[],[0,10162],[0,42353],[],[0,3294],[0,516],[],[0,10114],[0,9138],[],[0,7706],[0,1510],[],[0,14316],[0,29117],[],[0,11243],[0,2311],[],[0,2806],[0,11742],[],[0,7203],[0,7582],[],[0,465],[0,35264],[],[0,8110],[0,23871],[],[0,7249],[0,5251],[],[0,261],[0,9534],[],[0,13068],[0,5717],[],[0,13016],[0,25963],[],[0,3445],[0,9637],[],[0,4100],[0,12321],[],[0,8270],[0,49404],[],[0,4597],[0,7565],[],[0,8764],[0,20893],[],[0,9646],[0,10342],[],[0,400],[0,35130],[],[0,13365],[0,11041],[],[0,4456],[0,37271],[],[0,2393],[0,20193],[],[0,13135],[0,42723],[],[0,1827],[0,34880],[],[0,3628],[0,47111],[],[0,14602],[0,44520],[],[0,7656],[0,48782],[],[0,6240],[0,43757],[],[0,9091],[0,21002],[],[0,7687],[0,6069],[],[0,11004],[0,216],[],[0,8314],[0,48174],[],[0,4492],[0,27107],[],[0,9774],[0,5138],[],[0,12959],[0,26702],[],[0,3833],[0,24849],[],[0,14150],[0,6804],[],[0,8438],[0,33870],[],[0,14535],[0,21991],[],[0,11964],[0,38002],[],[0,3061],[0,8272],[],[0,3221],[0,23674],[],[0,6327],[0,5644],[],[0,4418],[0,39342],[],[0,1202],[0,7414],[],[0,2728],[0,21505],[],[0,9095],[0,40893],[],[0,7418],[0,47981],[],[0,7293],[0,38673],[],[0,9872],[0,39668],[],[0,10453],[0,31762],[],[0,5342],[0,118],[],[0,8179],[0,43933],[],[0,5319],[0,21609],[],[0,6714],[0,48756],[],[0,12114],[0,15778],[],[0,6849],[0,28462],[],[0,10604],[0,41435],[],[0,9514],[0,10896],[],[0,12199],[0,43152],[],[0,215],[0,28588],[],[0,549],[0,33096],[],[0,3835],[0,6061],[],[0,14722],[0,29356],[],[0,597],[0,22476],[],[0,5793],[0,8906],[],[0,183],[0,35854],[],[0,1350],[0,49115],[],[0,8683],[0,28746],[],[0,13317],[0,37285],[],[0,7639],[0,30643],[],[0,6327],[0,40295],[],[0,2867],[0,10002],[],[0,3953],[0,31961],[],[0,1793],[0,46955],[],[0,13713],[0,25983],[],[0,8952],[0,33578],[],[0,12230],[0,26246],[],[0,8121],[0,3473],[],[0,1139],[0,32565],[],[0,6088],[0,23186],[],[0,11335],[0,41531],[],[0,5787],[0,41556],[],[0,11289],[0,4757],[],[0,3313],[0,17738],[],[0,1723],[0,29947],[],[0,1717],[0,6170],[],[0,8884],[0,34260],[],[0,3369],[0,24723],[],[0,9891],[0,7287],[],[0,12695],[0,12485],[],[0,4575],[0,33678],[],[0,3341],[0,8503],[],[0,1196],[0,23061],[],[0,14588],[0,29739],[],[0,8423],[0,36191],[],[0,13015],[0,46094],[],[0,3350],[0,38421],[],[0,2933],[0,47410],[],[0,6735],[0,41985],[],[0,747],[0,3651],[],[0,3370],[0,12488],[],[0,3287],[0,24048],[],[0,11336],[0,9368],[],[0,13559],[0,12779],[],[0,4006],[0,36711],[],[0,6374],[0,40665],[],[0,12533],[0,47013],[],[0,8531],[0,127],[],[0,10433],[0,28493],[],[0,702],[0,35928],[],[0,5467],[0,17584],[],[0,5847],[0,14056],[],[0,1565],[0,24123],[],[0,10689],[0,33545],[],[0,7735],[0,21603],[],[0,2887],[0,37560],[],[0,220],[0,35679],[],[0,9423],[0,41266],[],[0,4799],[0,34928],[],[0,14637],[0,10197],[],[0,13658],[0,35277],[],[0,13970],[0,46763],[],[0,8608],[0,18480],[],[0,7184],[0,14709],[],[0,6156],[0,24414],[],[0,3363],[0,40812],[],[0,6197],[0,17420],[],[0,8868],[0,42843],[],[0,6905],[0,35602],[],[0,9832],[0,18356],[],[0,302],[0,14675],[],[0,423],[0,1001],[],[0,2711],[0,24248],[],[0,12179],[0,41459],[],[0,3783],[0,11864],[],[0,4158],[0,1258],[],[0,5739],[0,5809],[],[0,1104],[0,18882],[],[0,8635],[0,44171],[],[0,12753],[0,16715],[],[0,9433],[0,7580],[],[0,3425],[0,46289],[],[0,1022],[0,20241],[],[0,14068],[0,40830],[],[0,2693],[0,21353],[],[0,1921],[0,3432],[],[0,940],[0,16578],[],[0,4837],[0,38194],[],[0,7443],[0,41387],[],[0,1930],[0,8598],[],[0,7300],[0,9469],[],[0,2204],[0,11612],[],[0,9960],[0,18435],[],[0,13704],[0,11017],[],[0,10591],[0,48370],[],[0,1886],[0,26183],[],[0,14910],[0,44903],[],[0,5031],[0,2628],[],[0,2514],[0,40712],[],[0,7584],[0,32072],[],[0,2471],[0,42203],[],[0,7953],[0,2920],[],[0,3077],[0,19100],[],[0,14114],[0,11554],[],[0,3259],[0,48110],[],[0,2943],[0,49423],[],[0,9055],[0,23500],[],[0,3723],[0,34271],[],[0,8338],[0,27720],[],[0,8813],[0,39180],[],[0,12382],[0,38510],[],[0,4904],[0,25869],[],[0,6493],[0,24729],[],[0,1269],[0,7474],[],[0,1771],[0,9728],[],[0,2606],[0,21057],[],[0,924],[0,40064],[],[0,11732],[0,35283],[],[0,10257],[0,4376],[],[0,2992],[0,4640],[],[0,14741],[0,33777],[],[0,2600],[0,4911],[],[0,4540],[0,17932],[],[0,10951],[0,12239],[],[0,3602],[0,946],[],[0,14134],[0,7099],[],[0,11086],[0,13336],[],[0,7282],[0,31831],[],[0,5343],[0,33746],[],[0,1181],[0,12113],[],[0,4997],[0,38382],[],[0,11435],[0,27162],[],[0,8163],[0,7774],[],[0,13070],[0,4504],[],[0,6296],[0,29099],[],[0,7066],[0,9153],[],[0,5271],[0,40238],[],[0,1067],[0,5342],[],[0,7870],[0,8301],[],[0,13769],[0,7078],[],[0,14301],[0,28834],[],[0,9743],[0,38195],[],[0,14187],[0,13213],[],[0,5990],[0,36266],[],[0,8695],[0,13780],[],[0,5905],[0,11783],[],[0,13525],[0,20230],[],[0,7892],[0,4178],[],[0,1942],[0,28325],[],[0,13077],[0,44859],[],[0,14370],[0,18158],[],[0,11369],[0,24433],[],[0,14981],[0,41221],[],[0,1476],[0,17762],[],[0,14769],[0,10405],[],[0,5097],[0,48763],[],[0,10688],[0,16280],[],[0,14094],[0,28864],[],[0,13408],[0,28282],[],[0,6477],[0,32985],[],[0,5974],[0,38457],[],[0,12878],[0,2773],[],[0,7075],[0,42606],[],[0,4994],[0,32520],[],[0,8947],[0,46725],[],[0,5522],[0,13944],[],[0,6343],[0,45236],[],[0,11967],[0,31880],[],[0,1405],[0,21270],[],[0,2763],[0,8253],[],[0,8163],[0,18733],[],[0,5923],[0,29186],[],[0,8598],[0,1040],[],[0,2797],[0,42841],[],[0,12637],[0,35797],[],[0,4657],[0,33359],[],[0,11866],[0,210],[],[0,3609],[0,42947],[],[0,13449],[0,26737],[],[0,13131],[0,27633],[],[0,9910],[0,17557],[],[0,8264],[0,13849],[],[0,11550],[0,38752],[],[0,281],[0,36964],[],[0,8808],[0,14722],[],[0,11987],[0,1854],[],[0,3001],[0,1832],[],[0,1957],[0,16513],[],[0,5255],[0,11310],[],[0,2597],[0,18837],[],[0,626],[0,29610],[],[0,4366],[0,3117],[],[0,960],[0,25612],[],[0,9229],[0,42559],[],[0,1824],[0,30587],[],[0,5347],[0,18188],[],[0,7416],[0,12026],[],[0,4773],[0,36517],[],[0,10155],[0,31717],[],[0,7161],[0,479],[],[0,14351],[0,42714],[],[0,1937],[0,30741],[],[0,1781],[0,20519],[],[0,6200],[0,48751],[],[0,3703],[0,42923],[],[0,723],[0,39531],[],[0,6298],[0,39612],[],[0,14881],[0,43263],[],[0,12457],[0,48661],[],[0,13718],[0,32938],[],[0,5073],[0,1600],[],[0,14249],[0,32438],[],[0,12841],[0,33155],[],[0,5572],[0,39265],[],[0,14695],[0,4593],[],[0,1453],[0,37307],[],[0,14467],[0,23087],[],[0,11931],[0,48552],[],[0,12866],[0,36368],[],[0,4903],[0,27855],[],[0,12173],[0,21695],[],[0,967],[0,43744],[],[0,14104],[0,48860],[],[0,2957],[0,36570],[],[0,11423],[0,13312],[],[0,14817],[0,49718],[],[0,7832],[0,11135],[],[0,6208],[0,1683],[],[0,1479],[0,19254],[],[0,12092],[0,4457],[],[0,3559],[0,47861],[],[0,15014],[0,7759],[],[0,12880],[0,38620],[],[0,13463],[0,28093],[],[0,4312],[0,4506],[],[0,12037],[0,49640],[],[0,10655],[0,27037],[],[0,11101],[0,8606],[],[0,14130],[0,8967],[],[0,9227],[0,40154],[],[0,14270],[0,43912],[],[0,6498],[0,23981],[],[0,3630],[0,14253],[],[0,1095],[0,37554],[],[0,8996],[0,9225],[],[0,9686],[0,34932],[],[0,5606],[0,25163],[],[0,774],[0,43570],[],[0,2156],[0,24832],[],[0,4883],[0,8025],[],[0,8172],[0,8634],[],[0,1106],[0,49092],[],[0,1810],[0,32737],[],[0,1326],[0,31603],[],[0,13211],[0,33510],[],[0,13850],[0,30584],[],[0,3375],[0,25662],[],[0,4440],[0,32525],[],[0,1334],[0,29556],[],[0,8235],[0,44056],[],[0,4837],[0,19285],[],[0,708],[0,2007],[],[0,11465],[0,9965],[],[0,11323],[0,41965],[],[0,2509],[0,30845],[],[0,12733],[0,26178],[],[0,180],[0,21940],[],[0,9869],[0,431],[],[0,13422],[0,49589],[],[0,13441],[0,31654],[],[0,10948],[0,3461],[],[0,8603],[0,31566],[],[0,2168],[0,45013],[],[0,7293],[0,11575],[],[0,1188],[0,28997],[],[0,1767],[0,360],[],[0,3229],[0,45990],[],[0,14388],[0,7431],[],[0,2596],[0,10077],[],[0,11761],[0,20476],[],[0,369],[0,14034],[],[0,3727],[0,13130],[],[0,443],[0,32829],[],[0,6922],[0,14188],[],[0,5917],[0,36420],[],[0,8694],[0,36359],[],[0,5541],[0,29803],[],[0,3050],[0,4706],[],[0,1635],[0,44059],[],[0,11058],[0,24309],[],[0,13740],[0,5504],[],[0,8726],[0,8257],[],[0,9958],[0,49370],[],[0,1156],[0,22799],[],[0,6192],[0,5834],[],[0,11024],[0,34018],[],[0,13416],[0,12156],[],[0,5645],[0,39499],[],[0,3243],[0,8148],[],[0,2491],[0,27459],[],[0,11006],[0,15591],[],[0,15008],[0,7113],[],[0,14221],[0,24065],[],[0,5714],[0,9949],[],[0,128],[0,38097],[],[0,4659],[0,34109],[],[0,246],[0,25740],[],[0,6143],[0,29978],[],[0,1244],[0,27714],[],[0,4435],[0,9063],[],[0,13105],[0,34485],[],[0,4125],[0,6140],[],[0,8140],[0,15332],[],[0,2673],[0,15612],[],[0,1963],[0,19212],[],[0,9012],[0,41285],[],[0,5618],[0,44058],[],[0,2087],[0,39272],[],[0,1428],[0,19887],[],[0,7984],[0,36362],[],[0,5247],[0,45333],[],[0,2764],[0,694],[],[0,12580],[0,47660],[],[0,539],[0,18659],[],[0,13794],[0,33051],[],[0,6440],[0,33279],[],[0,15128],[0,13886],[],[0,276],[0,30179],[],[0,11491],[0,14547],[],[0,13147],[0,38264],[],[0,4248],[0,32552],[],[0,3396],[0,10242],[],[0,8109],[0,36534],[],[0,10784],[0,28599],[],[0,11108],[0,28197],[],[0,2592],[0,23316],[],[0,863],[0,45805],[],[0,6199],[0,39430],[],[0,5859],[0,23945],[],[0,1069],[0,4808],[],[0,6231],[0,25971],[],[0,3712],[0,38526],[],[0,11171],[0,47532],[],[0,9813],[0,14947],[],[0,12179],[0,12298],[],[0,2119],[0,49111],[],[0,12669],[0,20257],[],[0,14420],[0,43330],[],[0,6229],[0,39869],[],[0,4539],[0,17606],[],[0,12752],[0,35924],[],[0,10162],[0,44744],[],[0,4440],[0,19466],[],[0,8863],[0,44826],[],[0,13502],[0,40964],[],[0,12886],[0,19088],[],[0,444],[0,30287],[],[0,6409],[0,22086],[],[0,13574],[0,11039],[],[0,3014],[0,2096],[],[0,14619],[0,7197],[],[0,7019],[0,6749],[],[0,9589],[0,16527],[],[0,14722],[0,800],[],[0,12293],[0,1304],[],[0,3075],[0,20590],[],[0,12885],[0,38900],[],[0,5451],[0,16050],[],[0,10553],[0,47888],[],[0,3379],[0,452],[],[0,286],[0,32438],[],[0,1785],[0,20353],[],[0,10139],[0,49981],[],[0,11002],[0,26278],[],[0,13725],[0,4314],[],[0,3097],[0,21777],[],[0,10055],[0,34800],[],[0,10603],[0,20698],[],[0,5654],[0,45011],[],[0,13405],[0,43930],[],[0,12879],[0,25446],[],[0,2433],[0,5326],[],[0,10532],[0,49411],[],[0,1292],[0,14975],[],[0,2557],[0,97],[],[0,11651],[0,35755],[],[0,4019],[0,47456],[],[0,1255],[0,40622],[],[0,7745],[0,45585],[],[0,11658],[0,30653],[],[0,14106],[0,42463],[],[0,7756],[0,46719],[],[0,12769],[0,41557],[],[0,4047],[0,31111],[],[0,12208],[0,5540],[],[0,14352],[0,18319],[],[0,14193],[0,33959],[],[0,1421],[0,36335],[],[0,9352],[0,37825],[],[0,14814],[0,18467],[],[0,12559],[0,1128],[],[0,13306],[0,41317],[],[0,5362],[0,9781],[],[0,14856],[0,10289],[],[0,8074],[0,23039],[],[0,505],[0,17925],[],[0,3686],[0,13026],[],[0,14351],[0,48500],[],[0,12541],[0,26196],[],[0,1678],[0,37947],[],[0,15135],[0,21315],[],[0,15065],[0,29843],[],[0,2449],[0,47028],[],[0,10892],[0,23154],[],[0,12981],[0,19413],[],[0,12709],[0,18157],[],[0,13694],[0,17106],[],[0,4892],[0,24991],[],[0,4724],[0,4674],[],[0,5717],[0,29577],[],[0,2719],[0,40932],[],[0,15153],[0,39107],[],[0,12106],[0,21661],[],[0,9132],[0,8555],[],[0,8227],[0,34344],[],[0,12462],[0,15195],[],[0,3091],[0,27362],[],[0,5173],[0,49486],[],[0,1976],[0,39598],[],[0,7096],[0,27281],[],[0,1622],[0,9459],[],[0,12875],[0,2104],[],[0,6326],[0,33763],[],[0,2650],[0,49423],[],[0,8900],[0,2432],[],[0,10431],[0,13975],[],[0,9842],[0,25728],[],[0,5270],[0,35532],[],[0,8496],[0,39850],[],[0,2460],[0,17293],[],[0,4344],[0,16801],[],[0,3791],[0,24438],[],[0,5768],[0,46780],[],[0,5918],[0,10434],[],[0,8247],[0,9044],[],[0,4974],[0,45156],[],[0,6507],[0,46122],[],[0,2365],[0,37098],[],[0,10891],[0,13560],[],[0,1086],[0,21947],[],[0,7158],[0,47279],[],[0,3659],[0,48843],[],[0,6819],[0,32486],[],[0,6494],[0,18886],[],[0,14000],[0,36032],[],[0,7892],[0,1819],[],[0,5962],[0,9925],[],[0,6261],[0,28129],[],[0,6670],[0,31757],[],[0,6717],[0,8946],[],[0,12251],[0,20832],[],[0,13275],[0,11107],[],[0,5852],[0,3891],[],[0,2947],[0,7648],[],[0,9717],[0,36763],[],[0,9011],[0,16353],[],[0,1373],[0,49492],[],[0,9073],[0,15260],[],[0,12475],[0,23607],[],[0,7317],[0,8324],[],[0,1041],[0,21075],[],[0,5701],[0,47391],[],[0,7396],[0,8644],[],[0,2445],[0,47594],[],[0,14162],[0,21176],[],[0,4726],[0,9092],[],[0,13624],[0,26822],[],[0,8320],[0,44683],[],[0,4848],[0,36719],[],[0,6761],[0,24551],[],[0,4893],[0,29821],[],[0,1881],[0,29368],[],[0,4082],[0,32222],[],[0,2094],[0,28808],[],[0,9816],[0,23271],[],[0,9307],[0,49243],[],[0,2286],[0,7998],[],[0,4262],[0,47452],[],[0,2193],[0,39687],[],[0,5961],[0,34948],[],[0,3708],[0,11262],[],[0,14142],[0,36254],[],[0,12165],[0,44077],[],[0,9953],[0,23154],[],[0,10319],[0,584],[],[0,12206],[0,38709],[],[0,12393],[0,1355],[],[0,1710],[0,31158],[],[0,9602],[0,41532],[],[0,14951],[0,25323],[],[0,6982],[0,2148],[],[0,11730],[0,31339],[],[0,8823],[0,29947],[],[0,15159],[0,49499],[],[0,9382],[0,14247],[],[0,2473],[0,21139],[],[0,6721],[0,21300],[],[0,9264],[0,43299],[],[0,5803],[0,3244],[],[0,12769],[0,17672],[],[0,10258],[0,45646],[],[0,2091],[0,46763],[],[0,12861],[0,37876],[],[0,2487],[0,2601],[],[0,4661],[0,24507],[],[0,3286],[0,36335],[],[0,1220],[0,34837],[],[0,2149],[0,43282],[],[0,8589],[0,40863],[],[0,6175],[0,28179],[],[0,10707],[0,25668],[],[0,6391],[0,1619],[],[0,14706],[0,22055],[],[0,3885],[0,859],[],[0,13056],[0,31736],[],[0,1877],[0,1955],[],[0,12902],[0,47178],[],[0,8211],[0,33716],[],[0,5508],[0,21176],[],[0,3250],[0,24563],[],[0,12024],[0,8999],[],[0,4504],[0,11872],[],[0,13380],[0,43153],[],[0,11631],[0,45709],[],[0,10685],[0,19275],[],[0,4547],[0,17103],[],[0,4670],[0,16773],[],[0,1599],[0,5947],[],[0,3958],[0,15454],[],[0,14520],[0,5237],[],[0,14086],[0,43946],[],[0,7229],[0,2848],[],[0,7647],[0,13918],[],[0,11054],[0,11899],[],[0,7181],[0,36577],[],[0,6285],[0,23507],[],[0,13768],[0,9351],[],[0,1720],[0,21317],[],[0,7847],[0,23580],[],[0,3604],[0,9416],[],[0,13602],[0,23649],[],[0,15402],[0,34764],[],[0,14790],[0,36549],[],[0,630],[0,34812],[],[0,11307],[0,30809],[],[0,13217],[0,39857],[],[0,4312],[0,20876],[],[0,7698],[0,15286],[],[0,8733],[0,40332],[],[0,12829],[0,16195],[],[0,5292],[0,19401],[],[0,4296],[0,47432],[],[0,8356],[0,4333],[],[0,14051],[0,48773],[],[0,12089],[0,46352],[],[0,13834],[0,25762],[],[0,14355],[0,18214],[],[0,9658],[0,33416],[],[0,14458],[0,31775],[],[0,10235],[0,26640],[],[0,4246],[0,29946],[],[0,3694],[0,21228],[],[0,5487],[0,45452],[],[0,7856],[0,16303],[],[0,13600],[0,9374],[],[0,13378],[0,44247],[],[0,11935],[0,28737],[],[0,4705],[0,47202],[],[0,3625],[0,2289],[],[0,13415],[0,8171],[],[0,5020],[0,47759],[],[0,2157],[0,28545],[],[0,10535],[0,22920],[],[0,13891],[0,39703],[],[0,12279],[0,10253],[],[0,3170],[0,28700],[],[0,12186],[0,11050],[],[0,14065],[0,8438],[],[0,1357],[0,14330],[],[0,10215],[0,15067],[],[0,984],[0,10243],[],[0,1943],[0,48686],[],[0,13456],[0,20514],[],[0,10390],[0,34980],[],[0,4188],[0,17911],[],[0,2731],[0,48473],[],[0,10271],[0,5768],[],[0,10799],[0,43763],[],[0,3938],[0,38661],[],[0,1453],[0,31054],[],[0,14539],[0,36737],[],[0,13498],[0,15349],[],[0,5764],[0,22359],[],[0,5189],[0,5039],[],[0,10314],[0,29084],[],[0,9224],[0,3761],[],[0,13614],[0,37115],[],[0,12682],[0,3013],[],[0,3719],[0,35841],[],[0,2201],[0,12068],[],[0,6133],[0,17748],[],[0,13398],[0,47562],[],[0,14461],[0,4575],[],[0,7209],[0,41841],[],[0,13310],[0,12268],[],[0,3953],[0,39122],[],[0,4910],[0,16630],[],[0,11237],[0,14746],[],[0,4843],[0,29767],[],[0,4749],[0,38536],[],[0,415],[0,848],[],[0,12702],[0,47769],[],[0,14941],[0,47926],[],[0,11265],[0,20659],[],[0,2139],[0,35167],[],[0,7814],[0,40406],[],[0,5265],[0,33848],[],[0,4916],[0,16178],[],[0,7135],[0,12418],[],[0,14404],[0,24373],[],[0,10979],[0,37124],[],[0,14202],[0,36552],[],[0,13793],[0,21797],[],[0,1617],[0,15110],[],[0,1514],[0,29393],[],[0,705],[0,14352],[],[0,6679],[0,45648],[],[0,11094],[0,17954],[],[0,8789],[0,1636],[],[0,8521],[0,45936],[],[0,11496],[0,33600],[],[0,4343],[0,44919],[],[0,9898],[0,8685],[],[0,14039],[0,12327],[],[0,7592],[0,17],[],[0,13095],[0,12674],[],[0,10221],[0,29221],[],[0,1824],[0,40896],[],[0,274],[0,6594],[],[0,8937],[0,34074],[],[0,13721],[0,35951],[],[0,8057],[0,47854],[],[0,9522],[0,33903],[],[0,8336],[0,28048],[],[0,3864],[0,29662],[],[0,6954],[0,32054],[],[0,8325],[0,33038],[],[0,3954],[0,19153],[],[0,7275],[0,14525],[],[0,13222],[0,28606],[],[0,11056],[0,19784],[],[0,6737],[0,32399],[],[0,431],[0,38212],[],[0,9746],[0,29160],[],[0,4195],[0,27973],[],[0,1649],[0,9184],[],[0,6243],[0,26010],[],[0,3292],[0,17842],[],[0,4064],[0,47728],[],[0,11889],[0,44748],[],[0,7225],[0,28426],[],[0,15472],[0,10208],[],[0,10941],[0,26868],[],[0,3393],[0,5622],[],[0,3718],[0,36303],[],[0,2868],[0,2451],[],[0,10798],[0,15268],[],[0,7125],[0,41759],[],[0,15134],[0,49858],[],[0,795],[0,2962],[],[0,8930],[0,10744],[],[0,12744],[0,45507],[],[0,1592],[0,15711],[],[0,9856],[0,24015],[],[0,11254],[0,29454],[],[0,11942],[0,15018],[],[0,14845],[0,9873],[],[0,11455],[0,9088],[],[0,3408],[0,37135],[],[0,13735],[0,23966],[],[0,1030],[0,15024],[],[0,14149],[0,26308],[],[0,1760],[0,22661],[],[0,12793],[0,9754],[],[0,7914],[0,39761],[],[0,130],[0,87],[],[0,11901],[0,21051],[],[0,2051],[0,18554],[],[0,9039],[0,45057],[],[0,6321],[0,36480],[],[0,13352],[0,26896],[],[0,6400],[0,43918],[],[0,14270],[0,30733],[],[0,1231],[0,12014],[],[0,10770],[0,11676],[],[0,5722],[0,22407],[],[0,4818],[0,38123],[],[0,14830],[0,11457],[],[0,3903],[0,25627],[],[0,15080],[0,44295],[],[0,9109],[0,19862],[],[0,8116],[0,23963],[],[0,8280],[0,1952],[],[0,5378],[0,26863],[],[0,242],[0,49519],[],[0,8253],[0,11881],[],[0,2626],[0,24221],[],[0,9306],[0,38174],[],[0,14369],[0,34347],[],[0,11491],[0,39719],[],[0,13461],[0,502],[],[0,14828],[0,42190],[],[0,15009],[0,8737],[],[0,6556],[0,32218],[],[0,11164],[0,44394],[],[0,2649],[0,12601],[],[0,9677],[0,26067],[],[0,7693],[0,27241],[],[0,15108],[0,23701],[],[0,12929],[0,30384],[],[0,9350],[0,5336],[],[0,14037],[0,13684],[],[0,12452],[0,9058],[],[0,14760],[0,48114],[],[0,9829],[0,20429],[],[0,10187],[0,33150],[],[0,14619],[0,40034],[],[0,7953],[0,9657],[],[0,7498],[0,12717],[],[0,14695],[0,47078],[],[0,15042],[0,20345],[],[0,14280],[0,30153],[],[0,392],[0,43589],[],[0,6758],[0,31138],[],[0,9559],[0,31843],[],[0,7832],[0,4953],[],[0,13563],[0,48517],[],[0,9187],[0,39833],[],[0,10621],[0,41063],[],[0,312],[0,34789],[],[0,3188],[0,27904],[],[0,2345],[0,15168],[],[0,5905],[0,11545],[],[0,6730],[0,13297],[],[0,12488],[0,30129],[],[0,1805],[0,3098],[],[0,13146],[0,26684],[],[0,15360],[0,2091],[],[0,3870],[0,33221],[],[0,5203],[0,10687],[],[0,4698],[0,31247],[],[0,1119],[0,7023],[],[0,4893],[0,27122],[],[0,4562],[0,48421],[],[0,7728],[0,23765],[],[0,8507],[0,23441],[],[0,14615],[0,12532],[],[0,9600],[0,37080],[],[0,10518],[0,3365],[],[0,5813],[0,17570],[],[0,7384],[0,44618],[],[0,9884],[0,13754],[],[0,3826],[0,6669],[],[0,13026],[0,33344],[],[0,2723],[0,34144],[],[0,3765],[0,17835],[],[0,7997],[0,18378],[],[0,6956],[0,36428],[],[0,15550],[0,25228],[],[0,7073],[0,34136],[],[0,5444],[0,38202],[],[0,358],[0,28936],[],[0,1397],[0,37194],[],[0,8177],[0,37522],[],[0,10023],[0,44462],[],[0,59],[0,21837],[],[0,3453],[0,40766],[],[0,11340],[0,44654],[],[0,10955],[0,27689],[],[0,1630],[0,39811],[],[0,13063],[0,25614],[],[0,13855],[0,29999],[],[0,8945],[0,30457],[],[0,3495],[0,2624],[],[0,6974],[0,36191],[],[0,10674],[0,3799],[],[0,4358],[0,1354],[],[0,13656],[0,13136],[],[0,6627],[0,7045],[],[0,3690],[0,1957],[],[0,3060],[0,20753],[],[0,6309],[0,3866],[],[0,8573],[0,7067],[],[0,15322],[0,23958],[],[0,6261],[0,11181],[],[0,15496],[0,26527],[],[0,4384],[0,48105],[],[0,9228],[0,21348],[],[0,3460],[0,23229],[],[0,8385],[0,43183],[],[0,13601],[0,29562],[],[0,7893],[0,24910],[],[0,8728],[0,47036],[],[0,7657],[0,2209],[],[0,398],[0,38151],[],[0,1967],[0,7208],[],[0,10618],[0,11950],[],[0,71],[0,472],[],[0,7358],[0,21685],[],[0,8747],[0,11150],[],[0,12677],[0,16207],[],[0,14110],[0,14978],[],[0,5492],[0,28412],[],[0,1724],[0,48235],[],[0,12834],[0,31823],[],[0,14021],[0,29343],[],[0,1608],[0,22573],[],[0,6241],[0,39117],[],[0,11359],[0,30100],[],[0,12078],[0,8397],[],[0,9976],[0,12876],[],[0,5461],[0,16452],[],[0,14641],[0,47708],[],[0,12923],[0,3836],[],[0,86],[0,5161],[],[0,13345],[0,30941],[],[0,6087],[0,25462],[],[0,8174],[0,2322],[],[0,2606],[0,11339],[],[0,10301],[0,17926],[],[0,11258],[0,5148],[],[0,4751],[0,26472],[],[0,4440],[0,29103],[],[0,9978],[0,49257],[],[0,147],[0,27764],[],[0,10833],[0,22227],[],[0,7479],[0,3327],[],[0,2615],[0,42576],[],[0,4953],[0,45647],[],[0,6430],[0,3243],[],[0,12882],[0,19045],[],[0,10529],[0,4362],[],[0,3517],[0,35495],[],[0,11275],[0,27922],[],[0,10996],[0,7138],[],[0,11428],[0,348],[],[0,9943],[0,47567],[],[0,9719],[0,28842],[],[0,9607],[0,30932],[],[0,13940],[0,48054],[],[0,14788],[0,2472],[],[0,8581],[0,40444],[],[0,10517],[0,33217],[],[0,10373],[0,41200],[],[0,14591],[0,18340],[],[0,12524],[0,37802],[],[0,3767],[0,49639],[],[0,11160],[0,17120],[],[0,6631],[0,16279],[],[0,6920],[0,16502],[],[0,918],[0,4696],[],[0,15291],[0,28475],[],[0,2521],[0,29940],[],[0,7095],[0,6462],[],[0,11246],[0,35450],[],[0,5573],[0,27474],[],[0,1814],[0,42097],[],[0,7268],[0,25612],[],[0,405],[0,35217],[],[0,8867],[0,13996],[],[0,9187],[0,37963],[],[0,15408],[0,24310],[],[0,901],[0,5488],[],[0,3745],[0,22927],[],[0,13453],[0,30666],[],[0,12130],[0,29129],[],[0,1892],[0,23657],[],[0,15541],[0,10745],[],[0,8916],[0,23815],[],[0,7193],[0,48477],[],[0,7006],[0,7593],[],[0,7199],[0,27004],[],[0,557],[0,7947],[],[0,4830],[0,32033],[],[0,5494],[0,27460],[],[0,9131],[0,14501],[],[0,11276],[0,47503],[],[0,9793],[0,19988],[],[0,11370],[0,27431],[],[0,8851],[0,44576],[],[0,7809],[0,8236],[],[0,7814],[0,31241],[],[0,13166],[0,25680],[],[0,7595],[0,46792],[],[0,7985],[0,4374],[],[0,12651],[0,45536],[],[0,4628],[0,39499],[],[0,2444],[0,35013],[],[0,15091],[0,4684],[],[0,1882],[0,14671],[],[0,13307],[0,32614],[],[0,6144],[0,41729],[],[0,5639],[0,45073],[],[0,15443],[0,13871],[],[0,10705],[0,33928],[],[0,7722],[0,31264],[],[0,8516],[0,1838],[],[0,5928],[0,39503],[],[0,9978],[0,28747],[],[0,13021],[0,10193],[],[0,3417],[0,31990],[],[0,11830],[0,2956],[],[0,1211],[0,26140],[],[0,6392],[0,13095],[],[0,6206],[0,6761],[],[0,12384],[0,19501],[],[0,5782],[0,27780],[],[0,6348],[0,45529],[],[0,2727],[0,19550],[],[0,9104],[0,48779],[],[0,1588],[0,41465],[],[0,8622],[0,11150],[],[0,13592],[0,16769],[],[0,6838],[0,45550],[],[0,6379],[0,19391],[],[0,4679],[0,43029],[],[0,3200],[0,7200],[],[0,13151],[0,19355],[],[0,11293],[0,21183],[],[0,9840],[0,1680],[],[0,10401],[0,22972],[],[0,9981],[0,8696],[],[0,13979],[0,42287],[],[0,2862],[0,17150],[],[0,1668],[0,13964],[],[0,5842],[0,30093],[],[0,15591],[0,15754],[],[0,1526],[0,17437],[],[0,2798],[0,21950],[],[0,5213],[0,35689],[],[0,3460],[0,9563],[],[0,13758],[0,25134],[],[0,11822],[0,34885],[],[0,10010],[0,16182],[],[0,7957],[0,37752],[],[0,4143],[0,9996],[],[0,12467],[0,12518],[],[0,15294],[0,36753],[],[0,8251],[0,27338],[],[0,10683],[0,14889],[],[0,9154],[0,19188],[],[0,8472],[0,49034],[],[0,8193],[0,32504],[],[0,232],[0,24022],[],[0,13527],[0,7684],[],[0,14041],[0,42438],[],[0,10554],[0,49053],[],[0,9986],[0,47021],[],[0,7589],[0,45846],[],[0,8894],[0,35472],[],[0,6408],[0,13627],[],[0,12063],[0,33053],[],[0,2574],[0,9992],[],[0,542],[0,49529],[],[0,5237],[0,35724],[],[0,5603],[0,2065],[],[0,9767],[0,25109],[],[0,13211],[0,46791],[],[0,7583],[0,3979],[],[0,12500],[0,10547],[],[0,6538],[0,24960],[],[0,14446],[0,15981],[],[0,11407],[0,40196],[],[0,1340],[0,7274],[],[0,5086],[0,31491],[],[0,12804],[0,29208],[],[0,5449],[0,24764],[],[0,9794],[0,19648],[],[0,9298],[0,47167],[],[0,11105],[0,33461],[],[0,12283],[0,29779],[],[0,11562],[0,28318],[],[0,9658],[0,43828],[],[0,10825],[0,35880],[],[0,6849],[0,39187],[],[0,10972],[0,11694],[],[0,6192],[0,40812],[],[0,2159],[0,721],[],[0,10781],[0,36135],[],[0,9521],[0,40256],[],[0,2126],[0,15467],[],[0,15327],[0,21180],[],[0,12606],[0,23505],[],[0,11005],[0,2361],[],[0,2087],[0,39081],[],[0,6795],[0,49026],[],[0,13703],[0,11900],[],[0,8609],[0,9887],[],[0,9738],[0,23521],[],[0,4968],[0,24798],[],[0,7036],[0,42741],[],[0,14171],[0,34761],[],[0,6973],[0,43660],[],[0,2499],[0,29832],[],[0,7312],[0,8346],[],[0,1004],[0,14210],[],[0,6616],[0,14314],[],[0,6877],[0,20305],[],[0,4517],[0,37705],[],[0,8508],[0,719],[],[0,14825],[0,37179],[],[0,15060],[0,49692],[],[0,11923],[0,49380],[],[0,7416],[0,10951],[],[0,6468],[0,20056],[],[0,9497],[0,16928],[],[0,9525],[0,31978],[],[0,9608],[0,6608],[],[0,7724],[0,6550],[],[0,7956],[0,25654],[],[0,10691],[0,16924],[],[0,13232],[0,2941],[],[0,12835],[0,21012],[],[0,14324],[0,7104],[],[0,4515],[0,556],[],[0,1625],[0,48136],[],[0,2392],[0,12416],[],[0,4530],[0,13759],[],[0,2062],[0,38162],[],[0,8021],[0,41062],[],[0,2372],[0,11164],[],[0,5843],[0,11404],[],[0,5774],[0,47794],[],[0,7549],[0,13500],[],[0,5291],[0,37167],[],[0,2064],[0,14520],[],[0,7938],[0,30563],[],[0,9653],[0,48560],[],[0,14837],[0,17977],[],[0,8063],[0,46447],[],[0,4143],[0,2168],[],[0,12194],[0,38438],[],[0,42],[0,47155],[],[0,6167],[0,42819],[],[0,1363],[0,21098],[],[0,6150],[0,15148],[],[0,7875],[0,11215],[],[0,4614],[0,48609],[],[0,1143],[0,19115],[],[0,1755],[0,18766],[],[0,13174],[0,10575],[],[0,1291],[0,28286],[],[0,15835],[0,17352],[],[0,849],[0,10510],[],[0,13426],[0,20348],[],[0,11866],[0,16784],[],[0,9177],[0,21621],[],[0,2315],[0,36601],[],[0,8135],[0,2923],[],[0,6778],[0,6055],[],[0,8707],[0,3116],[],[0,9995],[0,41358],[],[0,12743],[0,39494],[],[0,3107],[0,26171],[],[0,15603],[0,36141],[],[0,12869],[0,9153],[],[0,5457],[0,47251],[],[0,6779],[0,19491],[],[0,1116],[0,31343],[],[0,135],[0,38237],[],[0,952],[0,28971],[],[0,11721],[0,6259],[],[0,943],[0,35020],[],[0,13297],[0,49173],[],[0,9079],[0,32355],[],[0,13026],[0,42993],[],[0,4897],[0,402],[],[0,11156],[0,3826],[],[0,13064],[0,18664],[],[0,5965],[0,36452],[],[0,9350],[0,24127],[],[0,5648],[0,28707],[],[0,3699],[0,46425],[],[0,10357],[0,1659],[],[0,9112],[0,41406],[],[0,4132],[0,8459],[],[0,1813],[0,23891],[],[0,8845],[0,46843],[],[0,11176],[0,31542],[],[0,13411],[0,12435],[],[0,11993],[0,49250],[],[0,6356],[0,22099],[],[0,10001],[0,32230],[],[0,11993],[0,34852],[],[0,7271],[0,9635],[],[0,10072],[0,13089],[],[0,8580],[0,48461],[],[0,13733],[0,42135],[],[0,9000],[0,40358],[],[0,10187],[0,45512],[],[0,14692],[0,24833],[],[0,8323],[0,9884],[],[0,11654],[0,12944],[],[0,3633],[0,25659],[],[0,7907],[0,27410],[],[0,5843],[0,11204],[],[0,8508],[0,32145],[],[0,13873],[0,39578],[],[0,8032],[0,48269],[],[0,1171],[0,31338],[],[0,8334],[0,44683],[],[0,7807],[0,34980],[],[0,490],[0,516],[],[0,13376],[0,21182],[],[0,13002],[0,33723],[],[0,8936],[0,33274],[],[0,113],[0,551],[],[0,10518],[0,10961],[],[0,791],[0,19183],[],[0,15472],[0,27840],[],[0,65],[0,6291],[],[0,9692],[0,29301],[],[0,864],[0,21178],[],[0,13028],[0,15992],[],[0,5515],[0,12162],[],[0,14957],[0,15543],[],[0,6167],[0,5687],[],[0,15733],[0,6288],[],[0,2129],[0,41602],[],[0,3682],[0,16662],[],[0,4976],[0,25291],[],[0,15105],[0,24625],[],[0,15861],[0,9092],[],[0,7042],[0,28924],[],[0,12276],[0,7248],[],[0,12963],[0,30655],[],[0,7818],[0,28533],[],[0,1716],[0,44169],[],[0,5964],[0,16903],[],[0,394],[0,47354],[],[0,13628],[0,49446],[],[0,9452],[0,45603],[],[0,11201],[0,45730],[],[0,12961],[0,38588],[],[0,5589],[0,40339],[],[0,9138],[0,20636],[],[0,7027],[0,11900],[],[0,6900],[0,18203],[],[0,4367],[0,25206],[],[0,3317],[0,25573],[],[0,11103],[0,16284],[],[0,1311],[0,22422],[],[0,11909],[0,33645],[],[0,4446],[0,28697],[],[0,15979],[0,18506],[],[0,8828],[0,6821],[],[0,10678],[0,44579],[],[0,15739],[0,18875],[],[0,5376],[0,33628],[],[0,1195],[0,25886],[],[0,11587],[0,44302],[],[0,7691],[0,11992],[],[0,10845],[0,24671],[],[0,3371],[0,16104],[],[0,11352],[0,8448],[],[0,129],[0,3084],[],[0,1573],[0,46290],[],[0,4237],[0,40643],[],[0,4897],[0,1024],[],[0,10535],[0,35206],[],[0,756],[0,48483],[],[0,3036],[0,7090],[],[0,7416],[0,21737],[],[0,1605],[0,32562],[],[0,10837],[0,17926],[],[0,15034],[0,42266],[],[0,4991],[0,23338],[],[0,15380],[0,35758],[],[0,4391],[0,15021],[],[0,3160],[0,5962],[],[0,14170],[0,48959],[],[0,13101],[0,42557],[],[0,4875],[0,36828],[],[0,5854],[0,46120],[],[0,9399],[0,48866],[],[0,11361],[0,35813],[],[0,11199],[0,27273],[],[0,12971],[0,30448],[],[0,13167],[0,35360],[],[0,11580],[0,3824],[],[0,1873],[0,14213],[],[0,12127],[0,22601],[],[0,10068],[0,45247],[],[0,13169],[0,20545],[],[0,5394],[0,10105],[],[0,229],[0,27449],[],[0,10797],[0,48945],[],[0,12377],[0,41059],[],[0,7700],[0,3733],[],[0,8475],[0,23765],[],[0,2340],[0,9477],[],[0,2514],[0,48771],[],[0,230],[0,27390],[],[0,2039],[0,5868],[],[0,14588],[0,25224],[],[0,13500],[0,44032],[],[0,932],[0,2849],[],[0,4776],[0,5873],[],[0,12777],[0,34484],[],[0,11088],[0,46848],[],[0,4406],[0,48643],[],[0,9315],[0,14032],[],[0,13417],[0,487],[],[0,9395],[0,15896],[],[0,292],[0,43807],[],[0,2024],[0,32896],[],[0,14136],[0,42707],[],[0,14205],[0,46128],[],[0,12534],[0,23653],[],[0,5198],[0,5978],[],[0,3407],[0,45673],[],[0,957],[0,5393],[],[0,9422],[0,19033],[],[0,12623],[0,38844],[],[0,12319],[0,35989],[],[0,826],[0,29277],[],[0,8531],[0,36528],[],[0,13254],[0,37190],[],[0,15209],[0,14278],[],[0,11454],[0,3591],[],[0,9438],[0,12837],[],[0,14747],[0,15463],[],[0,3354],[0,2124],[],[0,3161],[0,3156],[],[0,6128],[0,43892],[],[0,9976],[0,8717],[],[0,14285],[0,124],[],[0,11642],[0,7299],[],[0,10112],[0,21904],[],[0,11397],[0,38235],[],[0,4680],[0,18882],[],[0,15442],[0,3469],[],[0,2805],[0,11139],[],[0,3794],[0,28369],[],[0,13251],[0,4441],[],[0,3931],[0,35985],[],[0,11775],[0,9731],[],[0,6124],[0,39663],[],[0,13199],[0,3880],[],[0,894],[0,36792],[],[0,3902],[0,41090],[],[0,15676],[0,38922],[],[0,9448],[0,25308],[],[0,6581],[0,6599],[],[0,13553],[0,18035],[],[0,13858],[0,45819],[],[0,11943],[0,16526],[],[0,15564],[0,15559],[],[0,3311],[0,24937],[],[0,5306],[0,14848],[],[0,10914],[0,26816],[],[0,4635],[0,41524],[],[0,413],[0,12025],[],[0,7196],[0,20587],[],[0,2281],[0,583],[],[0,7673],[0,33713],[],[0,4355],[0,8533],[],[0,442],[0,15991],[],[0,6889],[0,16834],[],[0,781],[0,17352],[],[0,6099],[0,17281],[],[0,1592],[0,48158],[],[0,2158],[0,47943],[],[0,4441],[0,10262],[],[0,5359],[0,48554],[],[0,10539],[0,44642],[],[0,9725],[0,48086],[],[0,16031],[0,27351],[],[0,11513],[0,9731],[],[0,13911],[0,42286],[],[0,7058],[0,46020],[],[0,2716],[0,20860],[],[0,10839],[0,3556],[],[0,14979],[0,32338],[],[0,1575],[0,5306],[],[0,5548],[0,13602],[],[0,6999],[0,700],[],[0,562],[0,45838],[],[0,6075],[0,12294],[],[0,8659],[0,32346],[],[0,5492],[0,22539],[],[0,11071],[0,24369],[],[0,7789],[0,3504],[],[0,15986],[0,37381],[],[0,2624],[0,45679],[],[0,7159],[0,17353],[],[0,5606],[0,15375],[],[0,2735],[0,16683],[],[0,6975],[0,23226],[],[0,12214],[0,48595],[],[0,13498],[0,1117],[],[0,10529],[0,12531],[],[0,5195],[0,39645],[],[0,206],[0,2229],[],[0,8569],[0,40291],[],[0,8254],[0,44038],[],[0,14570],[0,3445],[],[0,4239],[0,48623],[],[0,4534],[0,5758],[],[0,435],[0,23749],[],[0,9255],[0,48458],[],[0,8288],[0,15885],[],[0,2839],[0,9028],[],[0,7467],[0,24670],[],[0,8790],[0,15378],[],[0,9020],[0,45494],[],[0,9138],[0,28678],[],[0,9203],[0,19879],[],[0,2445],[0,17232],[],[0,2787],[0,41506],[],[0,15976],[0,5588],[],[0,8058],[0,37377],[],[0,4805],[0,9224],[],[0,12973],[0,40552],[],[0,8460],[0,8387],[],[0,3673],[0,39559],[],[0,14108],[0,30649],[],[0,9801],[0,49339],[],[0,15281],[0,26533],[],[0,1140],[0,36757],[],[0,14510],[0,19094],[],[0,16040],[0,5108],[],[0,8895],[0,36909],[],[0,11645],[0,8067],[],[0,12282],[0,38913],[],[0,11482],[0,14748],[],[0,10870],[0,4862],[],[0,7984],[0,31855],[],[0,5022],[0,25477],[],[0,405],[0,18061],[],[0,5282],[0,43067],[],[0,1246],[0,7457],[],[0,7553],[0,16935],[],[0,1107],[0,35577],[],[0,3701],[0,26850],[],[0,4623],[0,13416],[],[0,14533],[0,1455],[],[0,14159],[0,35801],[],[0,6811],[0,29140],[],[0,6806],[0,15046],[],[0,1120],[0,41236],[],[0,2259],[0,43908],[],[0,15543],[0,36438],[],[0,1341],[0,18444],[],[0,2759],[0,33413],[],[0,8851],[0,43804],[],[0,14558],[0,20993],[],[0,8075],[0,40729],[],[0,15719],[0,22246],[],[0,2719],[0,11943],[],[0,14779],[0,35223],[],[0,4488],[0,2226],[],[0,5838],[0,21867],[],[0,14056],[0,43439],[],[0,4048],[0,3655],[],[0,8979],[0,18222],[],[0,2253],[0,26542],[],[0,1615],[0,9507],[],[0,2217],[0,48233],[],[0,6929],[0,40482],[],[0,16021],[0,6463],[],[0,16062],[0,29652],[],[0,3679],[0,36411],[],[0,1571],[0,36403],[],[0,11445],[0,47770],[],[0,14595],[0,43377],[],[0,1244],[0,19185],[],[0,5769],[0,15538],[],[0,5467],[0,46456],[],[0,503],[0,21337],[],[0,10909],[0,17448],[],[0,2365],[0,37271],[],[0,9727],[0,20024],[],[0,4818],[0,27413],[],[0,3748],[0,31536],[],[0,4436],[0,19503],[],[0,13946],[0,39337],[],[0,546],[0,36443],[],[0,4277],[0,29169],[],[0,16121],[0,26810],[],[0,8836],[0,12459],[],[0,16118],[0,44227],[],[0,13489],[0,46911],[],[0,2507],[0,30247],[],[0,3605],[0,35320],[],[0,2790],[0,36465],[],[0,8406],[0,5879],[],[0,791],[0,28713],[],[0,11427],[0,44059],[],[0,3428],[0,35474],[],[0,2618],[0,42726],[],[0,7352],[0,9866],[],[0,9570],[0,42829],[],[0,12536],[0,48233],[],[0,2934],[0,12874],[],[0,15017],[0,7181],[],[0,14224],[0,11591],[],[0,6857],[0,11594],[],[0,2801],[0,2235],[],[0,15313],[0,14533],[],[0,8079],[0,12041],[],[0,12031],[0,17441],[],[0,14683],[0,4530],[],[0,5823],[0,47207],[],[0,8477],[0,45700],[],[0,2268],[0,26884],[],[0,14405],[0,25133],[],[0,14150],[0,18085],[],[0,791],[0,49688],[],[0,5541],[0,33002],[],[0,1366],[0,6139],[],[0,8137],[0,37440],[],[0,10752],[0,27136],[],[0,647],[0,47752],[],[0,8271],[0,19880],[],[0,6445],[0,46413],[],[0,12115],[0,1676],[],[0,14590],[0,8831],[],[0,2886],[0,19520],[],[0,2347],[0,20559],[],[0,9076],[0,20849],[],[0,7849],[0,23823],[],[0,11778],[0,15282],[],[0,13121],[0,28272],[],[0,10288],[0,1729],[],[0,15908],[0,24176],[],[0,6221],[0,38731],[],[0,9465],[0,17103],[],[0,13792],[0,35837],[],[0,11288],[0,3822],[],[0,15829],[0,2963],[],[0,625],[0,9691],[],[0,7047],[0,32785],[],[0,13162],[0,38421],[],[0,911],[0,39891],[],[0,12667],[0,44592],[],[0,16111],[0,38025],[],[0,4321],[0,23074],[],[0,251],[0,24172],[],[0,6221],[0,3082],[],[0,1827],[0,26069],[],[0,4062],[0,35869],[],[0,6589],[0,7033],[],[0,11622],[0,22152],[],[0,14883],[0,26865],[],[0,8993],[0,32843],[],[0,12841],[0,11921],[],[0,6204],[0,13985],[],[0,3833],[0,42668],[],[0,10477],[0,45248],[],[0,10747],[0,7365],[],[0,11265],[0,17020],[],[0,4420],[0,42332],[],[0,11994],[0,43169],[],[0,2079],[0,10011],[],[0,4228],[0,16395],[],[0,6434],[0,38948],[],[0,10550],[0,21497],[],[0,4020],[0,36183],[],[0,16110],[0,43652],[],[0,53],[0,15078],[],[0,1823],[0,19011],[],[0,6618],[0,29108],[],[0,6842],[0,7246],[],[0,13293],[0,1296],[],[0,421],[0,28776],[],[0,2469],[0,33204],[],[0,4870],[0,30511],[],[0,12563],[0,20093],[],[0,4313],[0,30611],[],[0,6819],[0,48521],[],[0,14112],[0,38205],[],[0,12123],[0,44441],[],[0,9758],[0,47365],[],[0,10782],[0,17531],[],[0,3228],[0,46214],[],[0,4800],[0,24820],[],[0,7520],[0,14853],[],[0,2649],[0,13676],[],[0,5887],[0,7313],[],[0,7756],[0,1068],[],[0,14272],[0,37879],[],[0,623],[0,38929],[],[0,3179],[0,39624],[],[0,12481],[0,14719],[],[0,5564],[0,30230],[],[0,5575],[0,2803],[],[0,3465],[0,2926],[],[0,15028],[0,26306],[],[0,8822],[0,21044],[],[0,4523],[0,6777],[],[0,11605],[0,6572],[],[0,7503],[0,1439],[],[0,241],[0,3302],[],[0,6902],[0,19298],[],[0,8338],[0,33510],[],[0,7908],[0,39902],[],[0,11229],[0,3868],[],[0,5691],[0,6901],[],[0,3105],[0,19443],[],[0,9961],[0,36321],[],[0,10019],[0,9067],[],[0,1652],[0,3617],[],[0,13622],[0,22588],[],[0,5087],[0,45055],[],[0,4923],[0,46451],[],[0,12958],[0,19445],[],[0,15544],[0,39480],[],[0,1328],[0,11302],[],[0,9296],[0,29056],[],[0,13056],[0,10720],[],[0,13282],[0,6299],[],[0,6824],[0,6741],[],[0,14998],[0,10866],[],[0,3142],[0,33799],[],[0,4660],[0,6090],[],[0,1556],[0,18363],[],[0,3083],[0,32504],[],[0,7662],[0,19795],[],[0,451],[0,17323],[],[0,14964],[0,38924],[],[0,14863],[0,29816],[],[0,14758],[0,602],[],[0,10773],[0,6368],[],[0,15584],[0,28679],[],[0,3970],[0,34949],[],[0,13233],[0,7371],[],[0,3379],[0,14180],[],[0,9674],[0,36688],[],[0,7259],[0,33851],[],[0,2205],[0,30282],[],[0,2125],[0,44934],[],[0,108],[0,36406],[],[0,7019],[0,45708],[],[0,11822],[0,44894],[],[0,12137],[0,7336],[],[0,4579],[0,13818],[],[0,10024],[0,32062],[],[0,4639],[0,6884],[],[0,6349],[0,45765],[],[0,1725],[0,48716],[],[0,516],[0,39178],[],[0,10404],[0,23183],[],[0,4987],[0,936],[],[0,11594],[0,42876],[],[0,11702],[0,25561],[],[0,1394],[0,17863],[],[0,11200],[0,9554],[],[0,9629],[0,7136],[],[0,15081],[0,37615],[],[0,12932],[0,36719],[],[0,8369],[0,6871],[],[0,13156],[0,40862],[],[0,3805],[0,40584],[],[0,14557],[0,5697],[],[0,14129],[0,8607],[],[0,7381],[0,20491],[],[0,15498],[0,5132],[],[0,13866],[0,3264],[],[0,571],[0,24383],[],[0,4662],[0,32468],[],[0,407],[0,13147],[],[0,193],[0,44428],[],[0,12189],[0,22972],[],[0,7611],[0,41087],[],[0,3247],[0,37708],[],[0,16325],[0,22678],[],[0,14197],[0,12537],[],[0,5177],[0,15257],[],[0,813],[0,7598],[],[0,1709],[0,22341],[],[0,3287],[0,24848],[],[0,5331],[0,34979],[],[0,12881],[0,25398],[],[0,14510],[0,22929],[],[0,15785],[0,5006],[],[0,2627],[0,28706],[],[0,1691],[0,4701],[],[0,996],[0,28573],[],[0,12554],[0,7629],[],[0,9353],[0,720],[],[0,15313],[0,22377],[],[0,13579],[0,23222],[],[0,1964],[0,49421],[],[0,3101],[0,46701],[],[0,6090],[0,41532],[],[0,4534],[0,47736],[],[0,5397],[0,19545],[],[0,15550],[0,34498],[],[0,15880],[0,31670],[],[0,216],[0,45345],[],[0,10406],[0,37301],[],[0,5992],[0,34595],[],[0,7196],[0,13488],[],[0,7349],[0,13623],[],[0,544],[0,17051],[],[0,8421],[0,19724],[],[0,4995],[0,47820],[],[0,7562],[0,5411],[],[0,9568],[0,31946],[],[0,1794],[0,28243],[],[0,11403],[0,25146],[],[0,2478],[0,48604],[],[0,13974],[0,22249],[],[0,10544],[0,3015],[],[0,10560],[0,30504],[],[0,9255],[0,6842],[],[0,1017],[0,13839],[],[0,2416],[0,19125],[],[0,14272],[0,6484],[],[0,3953],[0,38219],[],[0,5304],[0,32859],[],[0,4365],[0,15010],[],[0,4405],[0,4096],[],[0,15650],[0,40920],[],[0,7769],[0,38358],[],[0,2185],[0,10474],[],[0,2998],[0,43247],[],[0,14932],[0,45357],[],[0,14443],[0,37075],[],[0,2234],[0,20348],[],[0,879],[0,47474],[],[0,4856],[0,46759],[],[0,3605],[0,48257],[],[0,8358],[0,38832],[],[0,398],[0,28846],[],[0,7403],[0,32326],[],[0,8109],[0,16399],[],[0,2812],[0,3797],[],[0,13563],[0,37885],[],[0,449],[0,49488],[],[0,575],[0,9973],[],[0,10081],[0,36093],[],[0,1778],[0,42830],[],[0,11805],[0,27444],[],[0,14058],[0,9771],[],[0,9526],[0,18765],[],[0,15173],[0,2031],[],[0,14200],[0,29968],[],[0,770],[0,7304],[],[0,6528],[0,34255],[],[0,8036],[0,31582],[],[0,588],[0,38433],[],[0,12548],[0,11045],[],[0,6050],[0,30564],[],[0,9580],[0,41436],[],[0,378],[0,37115],[],[0,403],[0,12240],[],[0,1858],[0,9384],[],[0,2319],[0,41341],[],[0,7785],[0,1901],[],[0,3944],[0,47954],[],[0,2443],[0,46832],[],[0,9926],[0,23670],[],[0,6767],[0,19259],[],[0,16067],[0,9094],[],[0,8861],[0,17761],[],[0,1162],[0,37885],[],[0,8997],[0,20895],[],[0,5848],[0,21190],[],[0,793],[0,8870],[],[0,7602],[0,11735],[],[0,2381],[0,38877],[],[0,335],[0,43876],[],[0,12967],[0,29986],[],[0,6005],[0,37503],[],[0,15892],[0,11092],[],[0,7534],[0,34508],[],[0,13549],[0,38909],[],[0,10805],[0,5894],[],[0,14294],[0,23082],[],[0,12752],[0,25496],[],[0,12341],[0,9747],[],[0,3558],[0,40364],[],[0,15108],[0,33668],[],[0,15046],[0,25828],[],[0,1566],[0,38931],[],[0,2165],[0,7109],[],[0,16228],[0,28924],[],[0,15795],[0,37583],[],[0,13759],[0,24214],[],[0,15162],[0,30999],[],[0,4466],[0,7009],[],[0,11966],[0,7854],[],[0,3778],[0,38118],[],[0,1971],[0,4431],[],[0,7660],[0,2272],[],[0,2022],[0,21439],[],[0,8508],[0,8632],[],[0,11230],[0,2207],[],[0,15012],[0,34877],[],[0,4801],[0,23241],[],[0,4469],[0,44948],[],[0,12047],[0,9457],[],[0,12767],[0,797],[],[0,9930],[0,9540],[],[0,5852],[0,23156],[],[0,6246],[0,36436],[],[0,15241],[0,21068],[],[0,13587],[0,29172],[],[0,7780],[0,28850],[],[0,5344],[0,42096],[],[0,4291],[0,43979],[],[0,990],[0,26883],[],[0,3782],[0,25953],[],[0,3407],[0,23779],[],[0,9514],[0,20387],[],[0,1015],[0,16494],[],[0,5665],[0,37589],[],[0,14719],[0,29714],[],[0,13274],[0,23342],[],[0,14987],[0,16894],[],[0,6386],[0,22961],[],[0,12395],[0,36151],[],[0,7065],[0,48839],[],[0,11064],[0,13899],[],[0,5130],[0,37591],[],[0,13516],[0,25500],[],[0,4835],[0,5316],[],[0,2387],[0,46539],[],[0,10185],[0,35493],[],[0,10297],[0,29735],[],[0,3228],[0,48456],[],[0,8872],[0,42666],[],[0,2820],[0,11133],[],[0,12360],[0,17787],[],[0,8769],[0,1356],[],[0,2424],[0,10505],[],[0,9820],[0,9616],[],[0,11361],[0,7535],[],[0,11311],[0,1848],[],[0,2893],[0,16417],[],[0,7626],[0,38428],[],[0,14912],[0,23413],[],[0,12906],[0,42295],[],[0,3284],[0,36287],[],[0,5977],[0,40422],[],[0,14370],[0,21361],[],[0,6927],[0,19755],[],[0,2799],[0,1114],[],[0,9407],[0,31878],[],[0,9806],[0,6448],[],[0,9901],[0,20526],[],[0,7252],[0,24305],[],[0,11642],[0,12983],[],[0,12698],[0,10627],[],[0,4331],[0,6021],[],[0,4224],[0,742],[],[0,9076],[0,12278],[],[0,12054],[0,45319],[],[0,5279],[0,34920],[],[0,4108],[0,8252],[],[0,7099],[0,38687],[],[0,10142],[0,35045],[],[0,5154],[0,37622],[],[0,9760],[0,37833],[],[0,5997],[0,46467],[],[0,9313],[0,802],[],[0,9236],[0,43401],[],[0,8455],[0,48323],[],[0,3704],[0,42028],[],[0,10258],[0,44073],[],[0,1288],[0,27259],[],[0,6163],[0,33984],[],[0,14918],[0,45687],[],[0,13643],[0,28712],[],[0,4988],[0,7215],[],[0,10668],[0,17809],[],[0,16481],[0,21251],[],[0,2089],[0,8919],[],[0,1092],[0,11276],[],[0,7900],[0,37278],[],[0,12520],[0,17536],[],[0,1193],[0,45456],[],[0,185],[0,12146],[],[0,4348],[0,31786],[],[0,13756],[0,2686],[],[0,1614],[0,2224],[],[0,12371],[0,11517],[],[0,902],[0,20952],[],[0,10571],[0,45116],[],[0,8713],[0,8298],[],[0,9737],[0,40559],[],[0,5020],[0,14386],[],[0,7674],[0,35903],[],[0,12555],[0,16908],[],[0,6814],[0,30424],[],[0,5929],[0,18641],[],[0,1992],[0,43751],[],[0,2488],[0,18790],[],[0,3868],[0,27962],[],[0,16123],[0,35933],[],[0,10346]] # for c,v in zip(commands, values): # if(c == "SnapshotArray"): # # initialize array # length = v[0] # obj = SnapshotArray(length) # result.append(None) # elif(c == "set"): # # set # index = v[0] # val = v[1] # result.append(obj.set(index,val)) # elif(c == "snap"): # result.append(obj.snap()) # elif(c == "get"): # index = v[0] # snap_id = v[1] # result.append(obj.get(index,snap_id)) # print(result) # # Your SnapshotArray object will be instantiated and called as such: # # obj = SnapshotArray(length) # # obj.set(index,val) # # param_2 = obj.snap() # # param_3 = obj.get(index,snap_id) # Implement a SnapshotArray that supports the following interface: # SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0. # void set(index, val) sets the element at the given index to be equal to val. # int snap() takes a snapshot of the array and returns the snap_id: the total number of times we called snap() minus 1. # int get(index, snap_id) returns the value at the given index, at the time we took the snapshot with the given snap_id # s # import bisect # class SnapshotArray(object): # def __init__(self, n): # self.mapping = defaultdict(list) # self.snap_count = 0 # def set(self, index, val): # self.mapping[index].append([self.snap_count, val]) # def snap(self): # self.snap_count+=1 # return self.snap_count-1 # def get(self, index, snap_id): # arr = self.mapping[index] # left, right, ans = 0, len(arr)-1, -1 # while(left<=right): # mid = (left+right)//2 # if(arr[mid][0] <= snap_id): # left = mid+1 # ans = mid # else: # right = mid-1 # if(ans == -1): # return 0 # return arr[ans][1] from collections import defaultdict class SnapshotArray: def __init__(self, length: int): # SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0. self.map = defaultdict(list) self.snapId = 0 def set(self, index: int, val: int) -> None: # void set(index, val) sets the element at the given index to be equal to val. self.map[index].append([self.snapId, val]) def snap(self) -> int: # int snap() takes a snapshot of the array and returns the snapId: the total number of times we called snap() minus 1. self.snapId+=1 return self.snapId - 1 def get(self, index: int, snapId: int) -> int: # int get(index, snapId) returns the value at the given index, at the time we took the snapshot with the given snapId searchList = self.map[index] left, right, ans = 0, len(searchList)-1, -1 while(left<=right): mid = (left+right)//2 if(searchList[mid][0] <= snapId): ans = mid left = mid + 1 else: right = mid-1 if(ans == -1): return 0 return searchList[ans][1] result = [] # commands = ["SnapshotArray","set","set","set","snap","get","snap"] # values = [[5],[0,4],[0,16],[0,13],[],[0,0],[]] commands = ["SnapshotArray","snap","snap","get","set","snap","set"] values = [[4],[],[],[3,1],[2,4],[],[1,4]] for c,v in zip(commands, values): if(c == "SnapshotArray"): # initialize array length = v[0] obj = SnapshotArray(length) result.append(None) elif(c == "set"): # set index = v[0] val = v[1] result.append(obj.set(index,val)) elif(c == "snap"): result.append(obj.snap()) elif(c == "get"): index = v[0] snap_id = v[1] result.append(obj.get(index,snap_id)) print(result)
4,701.565517
359,862
0.507822
117,386
681,727
2.948887
0.172457
0.33708
0.481514
0.674039
0.487861
0.487393
0.487272
0.487272
0.487272
0.487272
0
0.259598
0.002134
681,727
145
359,863
4,701.565517
0.249255
0.997644
0
0.095238
0
0
0.037773
0
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.214286
0.02381
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
1
1
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e1371d3086781ae186a4261a2e05e62e92a2b81d
4,478
py
Python
web_scrapper/db.py
simonirang1992/jsong-investment
563c1fa217eba70333d487cde7424f63468ebf6c
[ "Apache-2.0" ]
null
null
null
web_scrapper/db.py
simonirang1992/jsong-investment
563c1fa217eba70333d487cde7424f63468ebf6c
[ "Apache-2.0" ]
null
null
null
web_scrapper/db.py
simonirang1992/jsong-investment
563c1fa217eba70333d487cde7424f63468ebf6c
[ "Apache-2.0" ]
null
null
null
from pymysql import connect, err, sys, cursors, MySQLError from logger import writelog from config import getconf import sys from pymysql import connect, err, sys, cursors, MySQLError from config import getconf import sys from decimal import * def dictreturn(query): getcontext().prec = 6 dict={} try: cn = getconf('db') if not cn: writelog('[CRITICAL] Unable to Read Database Configuration File!', 'selectdb', 'query') sys.exit('Database Configuration Not Found --- Exiting...') conn = connect( host = cn[0], port = int(cn[1]), user= cn[2], passwd = cn[3], db = cn[4]) cursor = conn.cursor() cursor.execute(query) desc = cursor.description nlist = len(desc) colname = [] table = [] for col in desc: table.append([]) dict = {} data = cursor.fetchall() for value in data: for i in range(0,nlist): try: val = Decimal(value[i]) except: val = value[i] table[i].append(val) c = 0 for col in desc: dict[col[0]] = table[c] c = c + 1 except MySQLError as e: p = [] p.append(query) print (p) cursor.close() conn.close() sys.exit('MySQL Exception Found --- Exiting...') except Warning as e: p = [] p.append(query) errmsg = '[CRITICAL] MYSQL Warning Detected' + str(e) pass cursor.close() conn.close() return dict def selectdb(query): out=[] try: cn = getconf('db') if not cn: writelog('[CRITICAL] Unable to Read Database Configuration File!', 'selectdb', 'query') sys.exit('Database Configuration Not Found --- Exiting...') conn = connect( host = cn[0], port = int(cn[1]), user= cn[2], passwd = cn[3], db = cn[4]) cursor = conn.cursor() cursor.execute(query) for ele in cursor.fetchall(): out.append(ele) except MySQLError as e: p = [] p.append(query) print (p) errmsg = '[CRITICAL] MYSQL Error Detected' + str(e) writelog(errmsg, 'dbquery', p) cursor.close() conn.close() sys.exit('MySQL Exception Found --- Exiting...') except Warning as e: p = [] p.append(query) errmsg = '[CRITICAL] MYSQL Warning Detected' + str(e) writelog(errmsg, 'dbquery', p) pass cursor.close() conn.close() return out def dbquery(query): try: cn = getconf('db') if not cn: writelog('[CRITICAL] Unable to Read Database Configuration File!', 'dbquery', 'query') sys.exit('Database Configuration Not Found --- Exiting...') conn = connect( host = cn[0], port = int(cn[1]), user= cn[2], passwd = cn[3], db = cn[4]) cursor = conn.cursor() cursor.execute(query) conn.commit() except MySQLError as e: p = [] p.append(query) print (p) errmsg = '[CRITICAL] MYSQL Error Detected' + str(e) writelog(errmsg, 'dbquery', p) cursor.close() conn.close() sys.exit('MySQL Exception Found --- Exiting...') except Warning as e: p = [] p.append(query) errmsg = '[CRITICAL] MYSQL Warning Detected' + str(e) writelog(errmsg, 'dbquery', p) pass cursor.close() conn.close() def dberase(query): cn = getconf('db') if not cn: writelog('Unable to Read Database Configuration File!', 'dbquery', 'query') sys.exit('Database Configuration Not Found --- Exiting...') conn = connect( host = cn[0], port = int(cn[1]), user= cn[2], passwd = cn[3], db = cn[4]) cursor = conn.cursor() cursor.execute(query) conn.commit() cursor.close() conn.close() #selectdb("SELECT tick FROM ticklist")
33.17037
111
0.481018
472
4,478
4.563559
0.188559
0.077994
0.048747
0.064995
0.809192
0.809192
0.792479
0.750696
0.750696
0.703343
0
0.009294
0.399285
4,478
134
112
33.41791
0.79145
0.008263
0
0.760331
0
0
0.168468
0
0
0
0
0
0
1
0.033058
false
0.057851
0.066116
0
0.115702
0.024793
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
e14e23d6b1e30f8f1b2ec8b68fe95e4a97294873
40,939
py
Python
hyper_resource/test_requests.py
IDEHCO3/kanban-backend
902732f0fd569627925356d6b9d68a5ec7680b88
[ "MIT" ]
null
null
null
hyper_resource/test_requests.py
IDEHCO3/kanban-backend
902732f0fd569627925356d6b9d68a5ec7680b88
[ "MIT" ]
null
null
null
hyper_resource/test_requests.py
IDEHCO3/kanban-backend
902732f0fd569627925356d6b9d68a5ec7680b88
[ "MIT" ]
null
null
null
import requests, os, sys #se'rvidor = '' #servidor = 'http://LUC00557347.ibge.gov.br/' SERVER = 'http://LUC00557196:8000/' #SERVER = "http://172.30.11.72:8000/" class RequestTest(): def __init__(self, uri, expec_status_code, method='GET', default_server=SERVER): self.method = method self.uri = default_server + uri self.expec_status_code = expec_status_code arr_get_for_non_spatial_resource = [ RequestTest("controle-list/usuario-list/1/", 200), RequestTest("controle-list/usuario-list/1/nome,email", 200), RequestTest("controle-list/usuario-list/1/projection/nome,email", 200), ] arr_get_for_collection = [ RequestTest('controle-list/gasto-list/count-resource', 200), RequestTest('controle-list/gasto-list/offset-limit/1&10', 200), RequestTest('controle-list/gasto-list/offset-limit/1&10/data,valor', 400), RequestTest('controle-list/gasto-list/group-by-count/tipo_gasto', 200), RequestTest('controle-list/gasto-list/filter/tipo_gasto/eq/3', 200), RequestTest('api/bcim/unidades-federativas/filter/geom/within/' + SERVER + 'api/bcim/municipios/3159407/geom/*', 200), RequestTest('api/bcim/unidades-federativas/?*contains=POINT(-42 -21)', 200), RequestTest('api/bcim/unidades-federativas/?*contains=POINT(-42 -21)&sigla=RJ', 200), RequestTest('api/bcim/unidades-federativas/?*contains=URL&sigla=RJ', 200), RequestTest('api/bcim/unidades-federativas/contains/POINT(-42 -21)', 200), RequestTest('api/bcim/aldeias-indigenas/within/POLYGON((-41.8 -21.2,-41.8 -17.8,-28.8 -17.8,-28.8 -21.,-41.8 -21.2))/', 200), RequestTest('api/bcim/aldeias-indigenas/within/' + SERVER + 'api/bcim/unidades-federativas/ES/*', 200), RequestTest('api/bcim/aldeias-indigenas/within/' + SERVER + 'api/bcim/unidades-federativas/PA/*', 200), RequestTest('api/bcim/unidades-federativas/filter/sigla/in/ES&PA/', 200), RequestTest('api/bcim/aldeias-indigenas/within/' + SERVER + 'api/bcim/unidades-federativas/ES/*or/within/' + SERVER + 'api/bcim/unidades-federativas/PA/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/*or/geom/within/' + SERVER + 'api/bcim/unidades-federativas/PA/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*and/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*and/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*and/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*or/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*or/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*', 200), RequestTest('api/bcim/aldeias-indigenas/filter/id_objeto/eq/841/*or/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/geom/*or/' + SERVER + 'api/bcim/unidades-federativas/PR/*', 200), RequestTest('api/bcim/municipios/within/{"type":"Polygon","coordinates":[[[-48.759514611370854,-28.3426735036349],[-48.631647133384185,-28.3426735036349],[-48.631647133384185,-28.082673631081306],[-48.759514611370854,-28.082673631081306],[-48.759514611370854,-28.3426735036349]]]}', 200), RequestTest('api/bcim/municipios/within/' + SERVER + 'api/bcim/unidades-federativas/ES/*', 200), RequestTest('api/bcim/municipios/filter/geom/overlaps/' + SERVER + 'api/bcim/unidades-federativas/ES/*or/geom/within/' + SERVER + 'api/bcim/unidades-federativas/ES/*and/geocodigo/startswith/32/', 200), RequestTest('api/bcim/aldeias-indigenas/within/' + SERVER + 'api/bcim/unidades-federativas/PA/', 200), RequestTest('api/bcim/aldeias-indigenas/within/' + SERVER + 'api/bcim/unidades-federativas/PA', 200), RequestTest('api/bcim/aldeias-indigenas/collect/nome&geom/buffer/0.5', 200), RequestTest('api/bcim/unidades-federativas/filter/sigla/in/RJ&ES/*collect/nome&geom/buffer/0.2', 200), RequestTest('api/bcim/aldeias-indigenas/offset-limit/0&2/nome,geom,nomeabrev/*collect/nome&geom/buffer/0.5', 400), # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/aldeias-indigenas/offset-limit/0/2/ and ignore the rest - act as offset-limit operation) RequestTest('api/bcim/aldeias-indigenas/offset-limit/0&2/nome,geom/*collect/geom/buffer/0.5', 400), # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/aldeias-indigenas/offset-limit/0/2/ and ignore the rest - act as offset-limit operation) ] arr_get_for_spatial_operations = [ RequestTest("api/bcim/unidades-federativas/ES/area", 200), RequestTest("api/bcim/unidades-federativas/ES/boundary", 200), RequestTest("api/bcim/unidades-federativas/ES/buffer/0.2", 200), RequestTest("api/bcim/unidades-federativas/ES/centroid", 200), RequestTest("api/bcim/unidades-federativas/ES/contains/" + SERVER + "api/bcim/aldeias-indigenas/587/", 200), RequestTest("api/bcim/unidades-federativas/ES/convex_hull", 200), RequestTest("api/bcim/aldeias-indigenas/587/coords", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/crosses/" + SERVER + "api/bcim/municipios/3126406", 200), RequestTest("api/bcim/unidades-federativas/RJ/difference/" + SERVER + "api/bcim/municipios/3304300/", 200), RequestTest("api/bcim/unidades-federativas/ES/dims", 200), RequestTest("api/bcim/aldeias-indigenas/589/disjoint/" + SERVER + "api/bcim/unidades-federativas/RJ/", 200), RequestTest("api/bcim/unidades-federativas/ES/distance/" + SERVER + "api/bcim/unidades-federativas/AM/", 200), RequestTest("api/bcim/unidades-federativas/ES/empty", 200), RequestTest("api/bcim/unidades-federativas/ES/envelope", 200), RequestTest("api/bcim/unidades-federativas/ES/equals/" + SERVER + "api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/unidades-federativas/ES/equals_exact/" + SERVER + "api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/unidades-federativas/ES/ewkb", 200), RequestTest("api/bcim/unidades-federativas/ES/ewkt", 200), RequestTest("api/bcim/unidades-federativas/ES/extent", 200), RequestTest("api/bcim/unidades-federativas/ES/geom_type", 200), RequestTest("api/bcim/unidades-federativas/ES/geom_typeid", 200), RequestTest("api/bcim/unidades-federativas/ES/hasz", 200), RequestTest("api/bcim/unidades-federativas/ES/hex", 200), RequestTest("api/bcim/unidades-federativas/ES/hexewkb", 200), RequestTest("api/bcim/unidades-federativas/ES/intersection/" + SERVER + "api/bcim/unidades-federativas/RJ/envelope/", 200), RequestTest("api/bcim/unidades-federativas/ES/intersects/" + SERVER + "api/bcim/unidades-federativas/RJ/", 200), RequestTest("api/bcim/aldeias-indigenas/587/json", 200), RequestTest("api/bcim/aldeias-indigenas/587/kml", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/length", 200), RequestTest("api/bcim/unidades-federativas/ES/num_geom", 200), RequestTest("api/bcim/municipios/3301009/overlaps/" + SERVER + "api/bcim/unidades-federativas/ES", 200), RequestTest("api/bcim/unidades-federativas/ES/point_on_surface", 200), RequestTest("api/bcim/unidades-federativas/ES/relate/" + SERVER + "api/bcim/unidades-federativas/GO/", 200), RequestTest("api/bcim/unidades-federativas/ES/relate_pattern/" + SERVER + "api/bcim/unidades-federativas/GO/&FF*FF****", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/ring", 200), RequestTest("api/bcim/unidades-federativas/ES/simple", 200), RequestTest("api/bcim/unidades-federativas/ES/simplify/0.0&False", 200), RequestTest("api/bcim/unidades-federativas/ES/srid", 200), RequestTest("api/bcim/unidades-federativas/ES/srs", 200), RequestTest("api/bcim/vegetacoes-de-restinga/2947/sym_difference/" + SERVER + "api/bcim/unidades-federativas/ES", 200), RequestTest("api/bcim/unidades-federativas/AM/touches/" + SERVER + "api/bcim/unidades-federativas/RJ/", 200), RequestTest("api/bcim/unidades-federativas/ES/transform/4326&false", 200), RequestTest("api/bcim/unidades-federativas/ES/union/" + SERVER + "api/bcim/unidades-federativas/RJ", 200), RequestTest("api/bcim/unidades-federativas/ES/valid", 200), RequestTest("api/bcim/unidades-federativas/ES/valid_reason", 200), RequestTest("api/bcim/aldeias-indigenas/587/within/" + SERVER + "api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/unidades-federativas/ES/wkb", 200), RequestTest("api/bcim/unidades-federativas/ES/wkt", 200), RequestTest("api/bcim/aldeias-indigenas/589/x", 200), RequestTest("api/bcim/aldeias-indigenas/589/y", 200), RequestTest("api/bcim/aldeias-indigenas/589/z", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/x", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/y", 200), RequestTest("api/bcim/trechos-hidroviarios/59121/z", 200), ] arr_get_for_projection = [ # only attributes RequestTest("api/bcim/unidades-federativas/nome", 200), RequestTest("api/bcim/unidades-federativas/nome/", 200), RequestTest("api/bcim/unidades-federativas/nome,geom", 200), RequestTest("api/bcim/unidades-federativas/nome,geom/", 200), RequestTest("api/bcim/unidades-federativas/projection/nome,geocodigo", 200), # attributes and projection RequestTest("api/bcim/unidades-federativas/projection/nome,geocodigo/", 200), # filter RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES", 200), RequestTest("api/bcim/unidades-federativas/projection/nome,geocodigo/filter/sigla/in/RJ&ES", 200), # collect RequestTest("api/bcim/unidades-federativas/collect/geom&nome/upper", 200), RequestTest("api/bcim/unidades-federativas/projection/geom,nome/collect/geom&nome/upper", 200), RequestTest("api/bcim/unidades-federativas/projection/sigla,geocodigo/collect/geom&nome/upper", 400), # collected attributes not in projection (must fail) RequestTest("api/bcim/unidades-federativas/projection/sigla,geocodigo/collect/geom&sigla/lower", 400), # operated attribute in projection but lists differs (priorize projection in this case) # count_resource RequestTest("api/bcim/unidades-federativas/count-resource", 200), RequestTest("api/bcim/unidades-federativas/projection/nome,geocodigo/count-resource", 200), # filter_and_collect RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES/*collect/geocodigo&sigla/lower", 200), RequestTest("api/bcim/unidades-federativas/projection/geocodigo,sigla/filter/sigla/in/RJ&ES/*collect/geocodigo&sigla/lower", 200), RequestTest("api/bcim/unidades-federativas/projection/geocodigo,sigla/filter/sigla/in/RJ&ES/*collect/sigla&geom/buffer/0.2", 400), # (must return status code 400) # filter_and_count_resource RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES/*count-resource", 200), RequestTest("api/bcim/unidades-federativas/projection/nome,geocodigo/filter/sigla/in/RJ&ES/*count-resource", 200), # offset_limit RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/", 200), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome,geocodigo/", 400), RequestTest("api/bcim/unidades-federativas/projection/geocodigo,sigla/offset-limit/0&2/", 200), RequestTest("api/bcim/unidades-federativas/projection/geocodigo,sigla/offset-limit/0&2/sigla,geocodigo/", 400), RequestTest("api/bcim/unidades-federativas/projection/geocodigo,sigla/offset-limit/0&2/nome,geocodigo,sigla/", 400), # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/unidades-federativas/projection/geocodigo,sigla/offset-limit/0/2/ and ignore the rest - act as offset-limit operation) # distinct RequestTest("controle-list/usuario-list/distinct/email", 200), RequestTest("controle-list/usuario-list/distinct/id&nome&email", 200), RequestTest("controle-list/usuario-list/projection/nome,email,data_nascimento/distinct/nome&email", 200), # offset_limit_and_collect RequestTest("api/bcim/unidades-federativas/offset-limit/5&2/collect/sigla&geom/buffer/0.8", 200), RequestTest("api/bcim/unidades-federativas/offset-limit/5&2/geom,sigla/*collect/sigla&geom/buffer/0.8", 400), RequestTest("api/bcim/unidades-federativas/offset-limit/5&2/sigla,geom,nome/*collect/sigla&geom/buffer/0.8", 400), # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/unidades-federativas/offset-limit/5/2/ and ignore the rest - act as offset-limit operation) RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5&2/collect/sigla&geom/buffer/0.8", 200), RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5&2/sigla,geocodigo/*collect/sigla&geom/buffer/0.8", 400), # projection list == collect list != offset_limit list # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5/2/ and ignore the rest - act as offset-limit operation) RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5&2/sigla,geom/*collect/nome&sigla&geom/buffer/0.8", 400), # projection list == offset_limit list != collect list # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5/2/ and ignore the rest - act as offset-limit operation) RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5&2/sigla,geom/collect/sigla&geom/buffer/0.8", 400), # projection list == offset_limit list == collect list # WRONG SINTAX (SERVER EXECUTE ONLY api/bcim/unidades-federativas/projection/sigla,geom/offset-limit/5/2/ and ignore the rest - act as offset-limit operation) #FeatureCollection operations RequestTest("api/bcim/aldeias-indigenas/within/" + SERVER + "api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome,nomeabrev/within/" + SERVER + "api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/unidades-federativas/contains/" + SERVER + "api/bcim/aldeias-indigenas/623", 200), RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/contains/" + SERVER + "api/bcim/aldeias-indigenas/623", 200), ] arr_get_for_complex_requests = [ #("api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/ES/*collect/geom/buffer/0.2/!union/(" + SERVER + "api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/AM/*collect/geom/buffer/0.2), 200)," RequestTest("api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/ES/*collect/geom/buffer/0.2/!union!/" + SERVER + "api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/AM/*collect/geom/buffer/0.2", 200), RequestTest("api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/ES/*collect/nome&geom/buffer/0.2/!union!/" + SERVER + "api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/AM/*collect/nome&geom/buffer/0.2", 200), RequestTest("api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/AM/*collect/nome&geom/buffer/0.2/!union!/" + SERVER + "api/bcim/unidades-federativas/MG/envelope/", 200), RequestTest("api/bcim/aldeias-indigenas/filter/geom/within/" + SERVER + "api/bcim/unidades-federativas/AM/*collect/nome&geom/buffer/0.2/!union!/Polygon((-51.04196101779323 -22.915330279829785, -39.86109832699603 -22.915330279829785, -39.86109832699603 -14.227537498798952, -51.04196101779323 -14.227537498798952, -51.04196101779323 -22.915330279829785))", 200), ] arr_get_for_geometry_collection_operation = [ RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome/within/"+ SERVER +"api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/aldeias-indigenas/projection/geom,nome/within/"+ SERVER +"api/bcim/unidades-federativas/ES/", 200), RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*count-resource", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*count-resource", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome,geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*count-resource", 200), RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/nome/upper", 200), RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/geom&nome/upper", 200), RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/geom/buffer/1.2", 200), RequestTest("api/bcim/aldeias-indigenas/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/nome&geom/buffer/1.2", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/nome/upper", 200), RequestTest("api/bcim/aldeias-indigenas/projection/geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/geom/buffer/1.2", 200), RequestTest("api/bcim/aldeias-indigenas/projection/geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/nome&geom/buffer/1.2", 400), RequestTest("api/bcim/aldeias-indigenas/projection/nome,geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/geom&nome/upper", 200), RequestTest("api/bcim/aldeias-indigenas/projection/nome,geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/nome/upper", 400), RequestTest("api/bcim/aldeias-indigenas/projection/geom/within/"+ SERVER +"api/bcim/unidades-federativas/ES/*collect/geom&nome/upper", 400), ] arr_get_for_join_operation = [ # NonSpatialResource (1 resource) join FeatureResource (1 resource) (Not joinable) #RequestTest("controle-list/usuario-list/1/join/data_nascimento&geocodigo/" + SERVER + "api/bcim/unidades-federativas/ES", 400), # NonSpatialResource (1 resource) join FeatureResource (n resources) (Not joinable) #RequestTest("controle-list/usuario-list/1/join/data_nascimento&geocodigo/" + SERVER + "api/bcim/unidades-federativas/", 400), # FeatureResource (1 resource) join NonSpatialResource (1 resource) RequestTest("api/bcim/municipios/3304557/join/geocodigo&geocodigo/http://172.30.10.86/api/munic-2015/planejamento-urbano-list/3243/", 200), RequestTest('api/bcim/unidades-federativas/ES/join/geocodigo&uf_geocodigo/{"uf_geocodigo":"32","pib_estimado":1000000000}', 200), #("api/bcim/unidades-federativas/ES/join/geocodigo&geocodigo/http://gabriel:8880/estados-list/unidade-federativa-list/2/", 200), # FeatureResource (1 resource) join CollectionResource (n resources) RequestTest("api/bcim/municipios/3304557/join/geocodigo&cod_municipio/http://172.30.10.86/api/pib-municipio/faturamento-list/filter/cod_municipio/eq/3304557", 200), #("api/bcim/unidades-federativas/ES/join/geocodigo&geocodigo/http://gabriel:8880/estados-list/unidade-federativa-list/", 200), # FeatureResource join NonSpatialResource (Not joinable) RequestTest("api/bcim/municipios/3304557/join/geocodigo&nome/http://172.30.10.86/api/munic-2015/planejamento-urbano-list/3243/", 400), #("api/bcim/unidades-federativas/ES/join/geocodigo&nome/http://gabriel:8880/estados-list/unidade-federativa-list/2/", 400), # FeatureCollection (n resources) join CollectionResource (n resources) RequestTest("api/bcim/unidades-federativas/join/geocodigo&cod_estado/http://172.30.10.86/esporte-list/cond-funcionamento-list/", 200), #("api/bcim/unidades-federativas/join/geocodigo&geocodigo/http://gabriel:8880/estados-list/unidade-federativa-list/", 200), # CollectionResource (n resources) join FeatureCollection (n resources) #("esporte-list/cond-funcionamento-list/join/cod_estado&geocodigo/http://172.30.10.86/api/bcim/unidades-federativas/offset_limit/0&2/geocodigo,nome,geom", 200), # FeatureCollection (n resources) join CollectionResource (n resources) RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG/join/geocodigo&cod_estado/http://172.30.10.86/esporte-list/cond-funcionamento-list/filter/cod_estado/in/31&32&33&35/", 200), ] arr_options_for_collection_operation = [ RequestTest("controle-list/usuario-list/filter/id/gt/5/", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/collect/nome/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/collect/id&email/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/count-resource", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/nome", 400, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/nome,email", 400, method="OPTIONS"), RequestTest("controle-list/usuario-list/distinct/nome", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/group-by/nome", 400, method="OPTIONS"), # the operation 'group_by' doesn't exists anymore RequestTest("controle-list/usuario-list/group-by-count/nome", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/filter/id/gt/5/*collect/nome/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/filter/id/gt/5/*collect/id&email/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/filter/id/gt/5/*count-resource", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/collect/nome/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/collect/id&nome/upper", 200, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/nome/collect/nome/upper", 400, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/nome,id/collect/id&nome/upper", 400, method="OPTIONS"), RequestTest("controle-list/usuario-list/offset-limit/0&2/nome/collect/id&nome/upper", 400, method="OPTIONS"), RequestTest("controle-list/usuario-list/filter/id/gt/5/*count-resource", 200, method="OPTIONS"), # Collection operation used by FeatureCollection RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/nome/upper", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/nome&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/geom&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/collect/geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/count-resource", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome,sigla", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome,geom", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/geom", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/distinct/nome", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/group-by/nome", 400, method="OPTIONS"), # the operation 'group_by' doesn't exists anymore RequestTest("api/bcim/unidades-federativas/group-by-count/nome", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/nome/upper", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/nome&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/geom&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/sigla&geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/sigla&geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/sigla&geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*collect/geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/nome/upper", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/nome&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/geom&sigla/lower", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/sigla&geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/geom/buffer/0.2", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/sigla&geom/area", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/sigla&geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/collect/geom/point_on_surface", 200, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome/collect/nome/upper", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/nome,sigla/collect/nome&sigla/lower", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/sigla,geom/collect/geom&sigla/lower", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/sigla,geom/collect/sigla&geom/buffer/0.2", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/geom/collect/geom/buffer/0.2", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/geom/collect/geom/area", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/sigla,geom/collect/sigla&geom/area", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/sigla,geom/collect/sigla&geom/point_on_surface", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/offset-limit/0&2/geom/collect/geom/point_on_surface", 400, method="OPTIONS"), RequestTest("api/bcim/unidades-federativas/filter/sigla/in/RJ&ES&MG&SP/*count-resource", 200, method="OPTIONS"), ] # The suffixed requests just need simple tests (once requests suffixed with '.jsonld' is just repassed to options() method) # More complex tests must be applied in OPTIONS requests (without suffix) arr_get_for_collect_operation_context = [ RequestTest("controle-list/usuario-list/filter/id/gt/5.jsonld", 200), RequestTest("controle-list/usuario-list/collect/nome/upper.jsonld", 200), RequestTest("controle-list/usuario-list/collect/id&email/upper.jsonld", 200), RequestTest("controle-list/usuario-list/projection/id,email/collect/id&email/upper.jsonld", 200), RequestTest("controle-list/usuario-list/projection/email/collect/id&email/upper.jsonld", 400), RequestTest("api/bcim/unidades-federativas/collect/nome/upper.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/nome&sigla/lower.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/geom&sigla/lower.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/buffer/0.2.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/geom/buffer/0.2.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/geom/area.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/area.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/sigla&geom/point_on_surface.jsonld", 200), RequestTest("api/bcim/unidades-federativas/collect/geom/point_on_surface.jsonld", 200), RequestTest("api/bcim/unidades-federativas/projection/sigla,geom/collect/sigla&geom/area.jsonld", 200), RequestTest("api/bcim/unidades-federativas/projection/sigla/collect/sigla&geom/area.jsonld", 400), ] arr_get_for_tiff_resource = [ RequestTest('raster/imagem-exemplo-tile1-list/61/', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/bands', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/destructor', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/driver', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/extent', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/geotransform', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/height', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/info', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/metadata', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/name', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/origin', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/ptr', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/ptr_type', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/scale', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/skew', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/srid', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/srs', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/transform/3086', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/vsi_buffer', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/warp', 200), RequestTest('raster/imagem-exemplo-tile1-list/61/width', 200), ] arr_options_for_tiff_resource = [ RequestTest('raster/imagem-exemplo-tile1-list/61/', 200, method='OPTIONS') ] def test_requests(request_test_list, test_label=''): default_init_test_label = "Initializing test set:" init_label_len = len(test_label) + len(default_init_test_label) + 5 print("\n\n" + init_label_len * "*" + "\n* " + default_init_test_label + " " + test_label + " *\n" + init_label_len * "*" + "\n\n") requests_with_error = [] for request_test in request_test_list: print('Executing: ' + request_test.uri) if request_test.method == 'OPTIONS': res = requests.options(request_test.uri) else: res = requests.get(request_test.uri) if res.status_code != request_test.expec_status_code:#not in (200, 201,202,203,204,300,301,302,303): print('Failed: ' + request_test.uri + ' ' + str(res.status_code) + ' != ' + str(request_test.expec_status_code) + ' (Expected)') #url_status_code_status_ret = list(request_test) #url_status_code_status_ret.append(res.status_code) requests_with_error.append( (request_test.uri, request_test.expec_status_code, res.status_code) ) if len(requests_with_error) > 0: print("***************The urls below failed****************") for req_str_error in requests_with_error: print(req_str_error[0] + ' ' + str(req_str_error[2]) + ' != ' + str(req_str_error[1]) + ' (Expected)') print("***************failed urls****************") else: print("*********Sucess***********") default_fin_test_label = "End of test set:" fin_label_len = len(test_label) + len(default_fin_test_label) + 5 print("\n\n" + fin_label_len * "*" + "\n* " + default_fin_test_label + " " + test_label + " *\n" + fin_label_len * "*" + "\n\n") ''' test_requests(arr_get_for_non_spatial_resource, test_label = "Tests for NonSpatialResource") test_requests(arr_get_for_collection, test_label="Generic tests to collection operations") test_requests(arr_get_for_spatial_operations, test_label="Tests for spatial operations") test_requests(arr_get_for_complex_requests, test_label="Tests for complex requests") test_requests(arr_get_for_projection, test_label="Tests for FeatureCollection with and without projection") test_requests(arr_get_for_geometry_collection_operation, test_label="Tests for spatial collection operations") #test_requests(arr_get_for_join_operation, test_label="Tests for join operation") test_requests(arr_options_for_collection_operation, test_label = "Tests OPTIONS for Collection operations") test_requests(arr_get_for_collect_operation_context, test_label = "Tests GET for Collect operation context") test_requests(arr_get_for_tiff_resource, test_label = "Tests GET for TiffResource") test_requests(arr_options_for_tiff_resource, test_label = "Tests OPTIONS for TiffResource") ''' print("\n\n" + 25 * "X" + "\nX End of all test sets X\n" + 25 * "X" + "\n\n") args = sys.argv if '-a' in args: ''' print("\n\n\n<<< INITIALIZING SINTAX CHECK TEST SET >>>\n") print("\n\n<<< Testing GenericOperationsSintaxTest >>>") os.system("python manage.py test hyper_resource.tests.GenericOperationsSintaxTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing CollectionOperationsSintaxTest >>>") os.system("python manage.py test hyper_resource.tests.CollectionOperationsSintaxTest --testrunner=hyper_resource.tests.NoDbTestRunner") # GET Tests print("\n\n\n<<< INITIALIZING GET TEST SET >>>\n") print("\n\n<<< Testing CollectOperationTest >>>") os.system("python manage.py test hyper_resource.tests.CollectOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing GroupBySumOperationTest >>>") os.system("python manage.py test hyper_resource.tests.GroupBySumOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing ProjectionOperationTest >>>") os.system("python manage.py test hyper_resource.tests.ProjectionOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing FilterOperationTest >>>") os.system("python manage.py test hyper_resource.tests.FilterOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing JoinOperationTest >>>") #os.system("python manage.py test hyper_resource.tests.JoinOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing EntryPointTest >>>") os.system("python manage.py test hyper_resource.tests.EntryPointTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing RasterTest >>>") os.system("python manage.py test hyper_resource.tests.RasterTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing FeatureCollectionTest >>>") os.system("python manage.py test hyper_resource.tests.FeatureCollectionTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing FeatureResourceTest >>>") os.system("python manage.py test hyper_resource.tests.FeatureResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") ''' # OPTIONS Tests print("\n\n\n<<< INITIALIZING OPTIONS TEST SET >>>\n") print("\n\n<<< Testing OptionsForCollectOperationTest >>>") os.system("python manage.py test hyper_resource.tests.OptionsForCollectOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing OptionsForProjectionOperation >>>") #os.system("python manage.py test hyper_resource.tests.OptionsForProjectionOperation --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing OptionsForJoinOperationTest >>>") #os.system("python manage.py test hyper_resource.tests.OptionsForJoinOperationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing OptionsEntryPointTest >>>") os.system("python manage.py test hyper_resource.tests.OptionsEntryPointTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing OptionsForRasterTest >>>") os.system("python manage.py test hyper_resource.tests.OptionsForRasterTest --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing OptionsFeatureCollectionTest >>>") #os.system("python manage.py test hyper_resource.tests.OptionsFeatureCollectionTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing RequestOptionsTest >>>") os.system("python manage.py test hyper_resource.tests.RequestOptionsTest --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing GetRequestContextTest >>>") #os.system("python manage.py test hyper_resource.tests.GetRequestContextTest --testrunner=hyper_resource.tests.NoDbTestRunner") #print("\n\n<<< Testing OptionsFeatureResourceTest >>>") #os.system("python manage.py test hyper_resource.tests.OptionsFeatureResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing OptionsCollectionResource >>>") os.system("python manage.py test hyper_resource.tests.OptionsCollectionResource --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing OptionsNonSpatialResource >>>") os.system("python manage.py test hyper_resource.tests.OptionsNonSpatialResource --testrunner=hyper_resource.tests.NoDbTestRunner") # HEAD Tests print("\n\n\n<<< INITIALIZING HEAD TEST SET >>>\n") print("\n\n<<< Testing HeadEntryPointTest >>>") os.system("python manage.py test hyper_resource.tests.HeadEntryPointTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing HeadFeatureCollectionTest >>>") os.system("python manage.py test hyper_resource.tests.HeadFeatureCollectionTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForEntryPoint >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForEntryPoint --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForNonSpatialResource >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForNonSpatialResource --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForCollectionResource >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForCollectionResource --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForTiffCollectionResource >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForTiffCollectionResource --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForTiffResourceTest >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForTiffResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForFeatureResourceTest >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForFeatureResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing AllowedMethodsForFeatureCollectionResourceTest >>>") os.system("python manage.py test hyper_resource.tests.AllowedMethodsForFeatureCollectionResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing HeadFeatureResourceTest >>>") os.system("python manage.py test hyper_resource.tests.HeadFeatureResourceTest --testrunner=hyper_resource.tests.NoDbTestRunner") # Not classified print("\n\n\n<<< INITIALIZING NOT CLASSIFIED TEST SET >>>\n") print("\n\n<<< Testing PaginationTest >>>") os.system("python manage.py test hyper_resource.tests.PaginationTest --testrunner=hyper_resource.tests.NoDbTestRunner") print("\n\n<<< Testing LinkHeaderTest >>>") os.system("python manage.py test hyper_resource.tests.LinkHeaderTest --testrunner=hyper_resource.tests.NoDbTestRunner")
85.112266
365
0.748406
5,312
40,939
5.702937
0.071348
0.06493
0.103486
0.179375
0.839242
0.792401
0.75718
0.680696
0.622367
0.487456
0
0.047187
0.087887
40,939
481
366
85.112266
0.764093
0.118103
0
0.031339
0
0.242165
0.657714
0.577904
0
0
0
0
0
1
0.005698
false
0
0.002849
0
0.011396
0.08547
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e1790e5a0b66ae5ef4872b0d3c70099bef98c2b8
10,516
py
Python
tests/test_item.py
oddacious/python-cacheblob
fdaa37997990ff294ae96f18ab725a5259ca5ca1
[ "Apache-2.0" ]
null
null
null
tests/test_item.py
oddacious/python-cacheblob
fdaa37997990ff294ae96f18ab725a5259ca5ca1
[ "Apache-2.0" ]
null
null
null
tests/test_item.py
oddacious/python-cacheblob
fdaa37997990ff294ae96f18ab725a5259ca5ca1
[ "Apache-2.0" ]
null
null
null
import unittest import os import sys testdir = os.path.dirname(__file__) sys.path.insert(0, os.path.abspath(os.path.join(testdir, "../src/"))) class TestCacheItem(unittest.TestCase): def test_init_both_expiry_duration(self): import cacheblob.item as item self.assertRaises( ValueError, item.CacheItem, index=1, value=1, expiry=1, duration=1) def test_init_wrong_duration_type(self): import cacheblob.item as item import datetime self.assertRaises( TypeError, item.CacheItem, index=1, value=1, duration=datetime.datetime.now()) def test_init_wrong_expiry_type(self): import cacheblob.item as item self.assertRaises( TypeError, item.CacheItem, index=1, value=1, expiry=1) def test_init_wrong_expiry_type2(self): import cacheblob.item as item import datetime self.assertRaises( TypeError, item.CacheItem, index=1, value=1, expiry=datetime.timedelta(1)) def test_init_wrong_created_type(self): import cacheblob.item as item self.assertRaises( TypeError, item.CacheItem, index=1, value=1, created=1) def test_init_wrong_created_type2(self): import cacheblob.item as item import datetime self.assertRaises( TypeError, item.CacheItem, index=1, value=1, created=datetime.timedelta(1)) def test_init_past_expiry(self): import cacheblob.item as item import datetime self.assertRaises(ValueError, item.CacheItem, index=1, value=1, expiry=datetime.datetime.now() + datetime.timedelta(-1)) def test_init_none(self): import cacheblob.item as item test_item = item.CacheItem(index=1, value=1) self.assertEqual(1, test_item.index) def test_init_duration(self): import cacheblob.item as item import datetime test_item = item.CacheItem( index=1, value=1, duration=datetime.timedelta(10)) self.assertEqual(datetime.timedelta(10), test_item.duration) def test_init_created_and_duration(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() test_item = item.CacheItem( index=1, value=1, created=created, duration=datetime.timedelta(10)) self.assertEqual(pytz.utc.localize(created), test_item.created) def test_init_expiry(self): import cacheblob.item as item import datetime import pytz expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem(index=1, value=1, expiry=expiry) self.assertEqual(pytz.utc.localize(expiry), test_item.expiry) def test_init_created_and_expiry(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index=1, value=1, created=created, expiry=expiry) self.assertEqual(pytz.utc.localize(created), test_item.created) self.assertEqual(pytz.utc.localize(expiry), test_item.expiry) def test_get_index(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual('alpha', test_item.index) def test_get_value(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual('beta', test_item.value) def test_get_created(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(pytz.utc.localize(created), test_item.created) def test_get_created_localized(self): import cacheblob.item as item import datetime import pytz created = pytz.utc.localize(datetime.datetime.now()) expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(created, test_item.created) def test_get_expiry(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(pytz.utc.localize(expiry), test_item.expiry) def test_get_expiry_localized(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() expiry = pytz.utc.localize( datetime.datetime.now() + datetime.timedelta(1)) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(expiry, test_item.expiry) def test_get_duration(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(expiry - created, test_item.duration) def test_get_length(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value='beta', created=created, expiry=expiry) self.assertEqual(4, test_item.length) def test_get_length_none_int(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value=1, created=created, expiry=expiry) self.assertIsNone(test_item.length) def test_set_index(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value=1, created=created, expiry=expiry) test_item.index = 'gamma' self.assertEqual('gamma', test_item.index) def test_set_empty_duration(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value=1, created=created, expiry=expiry) test_item.duration = None self.assertIsNone(test_item.duration) def test_inititalize_empty_duration(self): import cacheblob.item as item import cacheblob.constants as C import datetime created = datetime.datetime.now() test_item = item.CacheItem(index='alpha', value=1, created=created) self.assertEqual(C.DEFAULT_DURATION, test_item.duration) def test_negative_duration(self): import cacheblob.item as item import datetime created = datetime.datetime.now() test_item = item.CacheItem( index='alpha', value=1, created=created, duration=datetime.timedelta(1)) with self.assertRaises(ValueError): test_item.duration = datetime.timedelta(-1) def test_set_empty_expiry(self): import cacheblob.item as item import datetime created = datetime.datetime.now() expiry = datetime.datetime.now() + datetime.timedelta(1) test_item = item.CacheItem( index='alpha', value=1, created=created, expiry=expiry) test_item.expiry = None self.assertIsNone(test_item.expiry) def test_check_updated(self): import cacheblob.item as item import datetime import pytz created = datetime.datetime.now() test_item = item.CacheItem(index='alpha', value=1, created=created) # Not a very specific test, but more stable than equality or a # threshold self.assertLessEqual(pytz.utc.localize(created), test_item.updated) def test_is_expired_false(self): import cacheblob.item as item import datetime test_item = item.CacheItem( index='alpha', value=1, duration=datetime.timedelta( minutes=1)) self.assertFalse(test_item.is_expired) def test_is_expired_true(self): import cacheblob.item as item import datetime import time test_item = item.CacheItem( index='alpha', value=1, duration=datetime.timedelta( milliseconds=1)) time.sleep(0.01) self.assertTrue(test_item.is_expired) if __name__ == "__main__": unittest.main()
28.117647
82
0.5969
1,137
10,516
5.391381
0.081794
0.062643
0.102284
0.108809
0.873736
0.81354
0.77863
0.753507
0.734095
0.712887
0
0.009986
0.314378
10,516
373
83
28.193029
0.840222
0.006657
0
0.712803
0
0
0.014459
0
0
0
0
0
0.103806
1
0.100346
false
0
0.231834
0
0.33564
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e19c9db8295610f83cc0c0f6c256ccd3e9539a13
120
py
Python
example_project/example_app/models.py
genosltd/django-comment
f66f66e64a2745f5022ea5e7a270a556d6c57a72
[ "MIT" ]
null
null
null
example_project/example_app/models.py
genosltd/django-comment
f66f66e64a2745f5022ea5e7a270a556d6c57a72
[ "MIT" ]
3
2021-09-09T08:42:22.000Z
2021-12-07T13:31:34.000Z
example_project/example_app/models.py
genosltd/django-comment
f66f66e64a2745f5022ea5e7a270a556d6c57a72
[ "MIT" ]
2
2021-08-24T12:11:55.000Z
2021-12-01T10:21:25.000Z
from django.db import models from django_comment.models import HasComments class ExampleModel(HasComments): pass
15
45
0.808333
15
120
6.4
0.666667
0.208333
0
0
0
0
0
0
0
0
0
0
0.15
120
7
46
17.142857
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
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
1
1
0
1
0
0
7
bede5070cf96b50e32bec59183177afe49f4341b
5,495
py
Python
tests/test_relink.py
elements-storage/django-haul
18f535bd3b7d8b25d05026191218defe05f2c5a6
[ "MIT" ]
1
2022-03-14T03:56:31.000Z
2022-03-14T03:56:31.000Z
tests/test_relink.py
elements-storage/django-haul
18f535bd3b7d8b25d05026191218defe05f2c5a6
[ "MIT" ]
null
null
null
tests/test_relink.py
elements-storage/django-haul
18f535bd3b7d8b25d05026191218defe05f2c5a6
[ "MIT" ]
null
null
null
from haul.policy import ImportPolicy, RelinkAction from io import BytesIO from test_app.app import reset from test_app.models import Book, Author, Tag from test_app.export import BookExporter, AuthorExporter, TagExporter from haul import ImportContainer, ExportContainer EXPORTERS = [BookExporter, AuthorExporter, TagExporter] def test_discard_chain(): reset() a1 = Author.objects.create(name='1') Author.objects.create(name='2') Book.objects.create(name='b1', author=a1) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Author.objects.all()) c.export_objects(Book.objects.all()) c.write(d) reset() class Policy(ImportPolicy): def relink_object(self, model_cls, obj): if model_cls is Author and obj.fields['name'] == '1': return RelinkAction.Discard() return RelinkAction.Create() c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert not Author.objects.filter(name='1').exists() assert Author.objects.filter(name='2').exists() assert Book.objects.count() == 0 def test_discard_optional(): reset() a1 = Author.objects.create(name='1') a2 = Author.objects.create(name='2') Book.objects.create(name='b1', author=a1, coauthor=a2) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Book.objects.all()) c.write(d) reset() class Policy(ImportPolicy): def relink_object(self, model_cls, obj): if model_cls is Author and obj.fields['name'] == '2': return RelinkAction.Discard() return RelinkAction.Create() c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert Author.objects.count() == 1 assert Book.objects.count() == 1 assert Book.objects.first().coauthor is None def test_relink_fields(): reset() a1 = Author.objects.create(name='1') Author.objects.create(name='2') Book.objects.create(name='b1', author=a1) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Author.objects.all()) c.export_objects(Book.objects.all()) c.write(d) Book.objects.all().delete() Author.objects.filter(name='2').delete() class Policy(ImportPolicy): def relink_object(self, model_cls, obj): if model_cls is Author: return RelinkAction.LinkByFields( lookup_fields=('name',), fallback=RelinkAction.Create(), ) return RelinkAction.Create() c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert Author.objects.count() == 2 assert Book.objects.count() == 1 assert Book.objects.first().author == Author.objects.get(name='1') def test_relink_and_overwrite_fields(): reset() a = Author.objects.create(name='a') Book.objects.create(name='b1', isbn='101', author=a) Book.objects.create(name='b2', isbn='102', author=a) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Book.objects.all()) c.write(d) Book.objects.filter(name='b2').update(name='updated') class Policy(ImportPolicy): def relink_object(self, model_cls, obj): if model_cls is Book: return RelinkAction.LinkByFields( lookup_fields=('isbn',), overwrite_fields=('name',), ) if model_cls is Author: return RelinkAction.LinkByFields(lookup_fields=('name',)) c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert Book.objects.count() == 2 assert Book.objects.filter(name='b2').exists() assert not Book.objects.filter(name='updated').exists() def test_relink_by_pk(): reset() a = Author.objects.create(name='a') Book.objects.create(name='b1', author=a) Book.objects.create(name='b2', author=a) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Book.objects.all()) c.write(d) Book.objects.filter(name='b2').update(name='updated') class Policy(ImportPolicy): def relink_object(self, model_cls, obj): return RelinkAction.LinkByPK() c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert Author.objects.count() == 1 assert Book.objects.count() == 2 assert Book.objects.filter(name='updated').exists() def test_relink_to_instance(): reset() a = Author.objects.create(name='a') Book.objects.create(name='b1', author=a) Book.objects.create(name='b2', author=a) d = BytesIO() c = ExportContainer(exporters=EXPORTERS) c.export_objects(Book.objects.all()) c.write(d) imp_a = Author.objects.create(name='imported books author') class Policy(ImportPolicy): def relink_object(self, model_cls, obj): if model_cls is Author: return RelinkAction.LinkToInstance(pk=imp_a.pk) return RelinkAction.Create() c = ImportContainer(exporters=EXPORTERS, policy=Policy()) with c.read(d): c.import_objects() assert Author.objects.count() == 2 assert Book.objects.count() == 4 assert imp_a.books.count() == 2
28.471503
73
0.643312
675
5,495
5.151111
0.124444
0.091746
0.092896
0.066149
0.801265
0.767903
0.767903
0.75036
0.75036
0.716135
0
0.011459
0.221838
5,495
192
74
28.619792
0.801684
0
0
0.702128
0
0
0.021474
0
0
0
0
0
0.12766
1
0.085106
false
0
0.177305
0.007092
0.382979
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
831222bc18d4894dd50af5ecaf655d5443c97ba6
5,189
py
Python
Game/Pieces/Bishop.py
AhmedAlzubairi1/COMS4995
c56c2549bf13538d89b001357f658ae04e5f3f8d
[ "MIT" ]
2
2021-09-23T01:58:35.000Z
2022-01-30T00:34:52.000Z
Game/Pieces/Bishop.py
AhmedAlzubairi1/Chess
c56c2549bf13538d89b001357f658ae04e5f3f8d
[ "MIT" ]
10
2020-10-02T00:37:52.000Z
2020-12-02T07:12:28.000Z
Game/Pieces/Bishop.py
AhmedAlzubairi1/COMS4995
c56c2549bf13538d89b001357f658ae04e5f3f8d
[ "MIT" ]
2
2020-11-06T21:10:31.000Z
2020-12-08T19:27:57.000Z
from .piece import Piece class Bishop(Piece): def __init__(self, board, color, group, row, col, game): """This is an init for a bishop piece. It creates the piece :param board: A 2d list representing a board state :type board: [list] :param color: A string that is either 'BLACK' or 'WHITE' :type color: str :param group: A set representing all the pieces of the player :type group: set :param row: a number from 1 to 8 representing the row :type row: row :param col: a letter from 'A' to 'H' representing the col of the piece :type col: str """ super().__init__(board, color, group, "Bishop", row, col, game) def availableMoves(self): """Returns a set of the avaiable moves the Bishop can make :return: A set of the available moves the bishop can make. It is a set of tuples of the rows and colms that the move can move to :rtype: {(int,str)} """ # Returns a set of the avaiable moves the Bishop can make moves = set() tempRow = self.row tempCol = self.possibleCol[self.col] - 1 # Top left diagonal while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMove(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow += 1 tempCol -= 1 # Top right diagonal tempRow = self.row tempCol = self.possibleCol[self.col] + 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMove(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow += 1 tempCol += 1 # Bottom left diagonal tempRow = self.row - 2 tempCol = self.possibleCol[self.col] - 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMove(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow -= 1 tempCol -= 1 # Bottom right diagonal tempRow = self.row - 2 tempCol = self.possibleCol[self.col] + 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMove(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow -= 1 tempCol += 1 return moves def possibleCapturesCheck(self): """Returns a set of the avaiable moves the bishop can make for a king check :return: A set of the available moves the bishop can make for check. It is a set of tuples of the rows and colms that the move can move to :rtype: {(int,str)} """ moves = set() tempRow = self.row tempCol = self.possibleCol[self.col] - 1 # Top left diagonal while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMoveIncludingKing(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow += 1 tempCol -= 1 # Top right diagonal tempRow = self.row tempCol = self.possibleCol[self.col] + 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMoveIncludingKing(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow += 1 tempCol += 1 # Bottom left diagonal tempRow = self.row - 2 tempCol = self.possibleCol[self.col] - 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMoveIncludingKing(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow -= 1 tempCol -= 1 # Bottom right diagonal tempRow = self.row - 2 tempCol = self.possibleCol[self.col] + 1 while 0 <= tempCol <= 7 and 0 <= tempRow <= 7: if self.board[tempRow][tempCol] is None: moves.add((tempRow, tempCol)) else: if self.validMoveIncludingKing(tempRow, tempCol): moves.add((tempRow, tempCol)) break tempRow -= 1 tempCol += 1 return moves
36.286713
85
0.518019
594
5,189
4.511785
0.141414
0.167164
0.089552
0.131343
0.816791
0.816791
0.814552
0.814552
0.814552
0.814552
0
0.019886
0.389478
5,189
142
86
36.542254
0.826073
0.213529
0
0.938776
0
0
0.001538
0
0
0
0
0
0
1
0.030612
false
0
0.010204
0
0.071429
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
83195e1813e3b7df74dc97a3b950488701801a36
129
py
Python
api/models/__init__.py
FlipsideCrypto/flip
a0b27ec2dffbba42d3a907767bbae0fc6ec1bcbb
[ "MIT" ]
null
null
null
api/models/__init__.py
FlipsideCrypto/flip
a0b27ec2dffbba42d3a907767bbae0fc6ec1bcbb
[ "MIT" ]
null
null
null
api/models/__init__.py
FlipsideCrypto/flip
a0b27ec2dffbba42d3a907767bbae0fc6ec1bcbb
[ "MIT" ]
1
2022-02-02T10:23:21.000Z
2022-02-02T10:23:21.000Z
from uuid import uuid4 from .user import User from .datax_user import DataxUser def get_uid() -> str: return str(uuid4())
14.333333
33
0.72093
20
129
4.55
0.6
0.21978
0
0
0
0
0
0
0
0
0
0.019231
0.193798
129
8
34
16.125
0.855769
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.6
0.2
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
1
1
0
0
7
8329fde0710aef03afc7ac01038c03b1d1910f60
16,226
py
Python
functions/fingerprint_functions.py
brendaferrari/AutoPaDELPy
777415c1448b6f0eb0b10ad941bbe79ec404ccd0
[ "MIT" ]
2
2022-01-03T21:29:17.000Z
2022-03-23T22:55:37.000Z
functions/fingerprint_functions.py
brendaferrari/AutoPaDELPy
777415c1448b6f0eb0b10ad941bbe79ec404ccd0
[ "MIT" ]
3
2021-09-03T13:06:27.000Z
2022-03-23T23:00:46.000Z
functions/fingerprint_functions.py
brendaferrari/AutoPaDELPy
777415c1448b6f0eb0b10ad941bbe79ec404ccd0
[ "MIT" ]
1
2022-01-03T21:29:18.000Z
2022-01-03T21:29:18.000Z
import cmd class FingerprintFunctions(cmd.Cmd): file = None def __init__(self): cmd.Cmd.__init__(self) self.prompt = '(fingerprint descriptor) ' self.intro = 'Which fingeprint descriptor do you wish to calculate? Type help or ? to list commands. Write finish if you want to move on to the next descriptor. \n' self.completekey='tab' def do_AtomPairs2DCount(self, mol_dir): """AtomPairs2DCount [mol_dir] Calculate the AtomPairs2DFingerprintCount fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'AtomPairs2DCount' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_AtomPairs2D(self, mol_dir): """AtomPairs2D [mol_dir] Calculate the AtomPairs2DFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'AtomPairs2D' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_EState(self, mol_dir): """EState [mol_dir] Calculate the EStateFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'EState' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_CDKextended(self, mol_dir): """CDKextended[mol_dir] Calculate the ExtendedFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'CDKextended' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_CDK(self, mol_dir): """CDK [mol_dir] Calculate the Fingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'CDK' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_CDKgraphonly(self, mol_dir): """CDKgraphonly [mol_dir] Calculate the GraphOnlyFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'CDKgraphonly' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_KlekotaRothCount(self, mol_dir): """KlekotaRothCount [mol_dir] Calculate the KlekotaRothFingerprintCount fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'KlekotaRothCount' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_KlekotaRoth(self, mol_dir): """KlekotaRoth [mol_dir] Calculate the KlekotaRothFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'KlekotaRoth' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_MACCS(self, mol_dir): """MACCS [mol_dir] Calculate the MACCSFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'MACCS' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_PubChem(self, mol_dir): """PubChem [mol_dir] Calculate the PubChemFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'PubChem' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_SubstructureCount(self, mol_dir): """SubstructureCount [mol_dir] Calculate the SubstructureFingerprintCount fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'SubstructureCount' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def do_Substructure(self, mol_dir): """Substructure [mol_dir] Calculate the SubstructureFingerprinter fingerprint""" from padelpy import padeldescriptor import glob xml_files = glob.glob("functions/descriptors/fingerprint_descriptors/*.xml") xml_files.sort() FP_list = ['AtomPairs2DCount', 'AtomPairs2D', 'EState', 'CDKextended', 'CDK', 'CDKgraphonly', 'KlekotaRothCount', 'KlekotaRoth', 'MACCS', 'PubChem', 'SubstructureCount', 'Substructure'] fp = dict(zip(FP_list, xml_files)) fingerprint = 'Substructure' fingerprint_output_file = ''.join([fingerprint,'.csv']) fingerprint_descriptortypes = fp[fingerprint] padeldescriptor(mol_dir='dataset.smi', d_file=fingerprint_output_file, descriptortypes= fingerprint_descriptortypes, detectaromaticity=True, standardizenitro=True, standardizetautomers=True, threads=2, removesalt=True, log=True, fingerprints=True) return False def close(self): if self.file: self.file.close() self.file = None def do_finish(self, arg): """finish [self, arg] Finish running Fingerprint Descriptors and move on to the next descriptor.""" print('Moving on to the next descriptor...') self.close() return True if __name__ == '__main__': FingerprintFunctions().cmdloop()
29.394928
172
0.543757
1,214
16,226
7.085667
0.083196
0.02511
0.058591
0.02511
0.838061
0.83562
0.829807
0.829807
0.829807
0.829807
0
0.004296
0.368729
16,226
552
173
29.394928
0.835497
0.058117
0
0.895522
0
0.002488
0.176194
0.040492
0
0
0
0
0
1
0.037313
false
0
0.062189
0
0.136816
0.221393
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
832a2fbc5666efd2934fdd844ccc27f344e26811
21,271
py
Python
google-cloud-sdk/platform/ext-runtime/java/test/runtime_test.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
google-cloud-sdk/platform/ext-runtime/java/test/runtime_test.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
google-cloud-sdk/platform/ext-runtime/java/test/runtime_test.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
#!/usr/bin/python # Copyright 2015 Google Inc. 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. """Tests of the java runtime.""" import logging import mock import os import re import sys import shutil import tempfile import textwrap import unittest from gae_ext_runtime import testutil from gae_ext_runtime import ext_runtime # Augment the path with our library directory. ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.join(ROOT_DIR, 'lib')) import constants #from googlecloudsdk.third_party.appengine.api import appinfo #from googlecloudsdk.core import log #from googlecloudsdk.api_lib.app import ext_runtime #from googlecloudsdk.api_lib.app.runtimes import fingerprinter #from googlecloudsdk.api_lib.app.ext_runtimes import fingerprinting RUNTIME_DEF_ROOT = os.path.dirname(os.path.dirname(__file__)) class RuntimeTests(testutil.TestBase): def setUp(self): self.runtime_def_root = RUNTIME_DEF_ROOT super(RuntimeTests, self).setUp() def assert_no_file(self, *path): self.assertFalse(os.path.exists(self.full_path(*path))) def make_app_yaml(self, runtime): return 'env: flex\nruntime: {runtime}\n'.format(runtime=runtime) def test_java_all_defaults(self): self.write_file('foo.jar', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') self.generate_configs(deploy=True) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assertEqual(set(os.listdir(self.temp_path)), {'.dockerignore', 'Dockerfile', 'app.yaml', 'foo.jar'}) def test_java_all_defaults_no_write(self): """Test generate_config_data after writing app.yaml.""" self.write_file('foo.jar', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') cfg_files = self.generate_config_data(deploy=True) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assertEqual(set(os.listdir(self.temp_path)), {'app.yaml', 'foo.jar'}) def test_java_custom(self): self.write_file('foo.jar', '') self.generate_configs(deploy=False, custom=True) self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('custom')) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) def test_java_custom_no_write(self): """Test generate_config_data with custom=True. app.yaml should be written to disk. Also tests correct dockerfile contents with a .jar. """ self.write_file('foo.jar', '') cfg_files = self.generate_config_data(deploy=False, custom=True) self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('custom')) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) def test_java_files_no_java(self): self.write_file('foo.nojava', '') self.assertFalse(self.generate_configs()) self.assertEqual(os.listdir(self.temp_path), ['foo.nojava']) def test_java_files_with_war(self): self.write_file('foo.war', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') self.generate_configs(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JETTY_PREAMBLE, constants.DOCKERFILE_INSTALL_WAR.format('foo.war'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_war_no_write(self): """Test generate_config_data Dockerfile contents with .war file.""" self.write_file('foo.war', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') cfg_files = self.generate_config_data(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JETTY_PREAMBLE, constants.DOCKERFILE_INSTALL_WAR.format('foo.war'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_jar(self): self.write_file('foo.jar', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') self.generate_configs(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_jar_no_write(self): """Test generate_config_data Dockerfile contents with .jar file.""" self.write_file('foo.jar', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') cfg_files = self.generate_config_data(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JAVA_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('foo.jar'), constants.DOCKERFILE_JAVA8_JAR_CMD.format('foo.jar'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_webinf(self): self.write_file('WEB-INF', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') self.generate_configs(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_webinf_no_write(self): """Test generate_config_data Dockerfile contents with 'WEB-INF' file.""" self.write_file('WEB-INF', '') self.generate_configs() self.assert_file_exists_with_contents('app.yaml', self.make_app_yaml('java')) self.assert_no_file('Dockerfile') self.assert_no_file('.dockerignore') cfg_files = self.generate_config_data(deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_too_many_artifacts(self): self.write_file('WEB-INF', '') self.write_file('foo.jar', '') errors = [] def ErrorFake(message): errors.append(message) with mock.patch.dict(ext_runtime._LOG_FUNCS, {'error': ErrorFake}): self.assertFalse(self.generate_configs()) self.assertEqual(errors, ['Too many java artifacts to deploy (.jar, .war, or ' 'Java Web App).']) # TODO(b/63385240): cover the case were the app.yaml might not be called # app.yaml. For example: "gen-config --config=foo.yaml <path>" # will use foo.yaml def test_java_files_with_war_and_yaml(self): self.write_file('foo.war', '') appinfo = testutil.AppInfoFake( runtime='java', env='flex', runtime_config=dict( jdk='openjdk8', server='jetty9')) self.generate_configs(appinfo=appinfo, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JETTY_PREAMBLE, constants.DOCKERFILE_INSTALL_WAR.format('foo.war'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_war_and_yaml_no_write(self): """Test generate_config_data with .war and fake appinfo.""" self.write_file('foo.war', '') appinfo = testutil.AppInfoFake( runtime='java', env='2', runtime_config=dict( jdk='openjdk8', server='jetty9')) cfg_files = self.generate_config_data(appinfo=appinfo, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_JETTY_PREAMBLE, constants.DOCKERFILE_INSTALL_WAR.format('foo.war'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_env2(self): self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', env='2', runtime_config=dict( jdk='openjdk8', server='jetty9')) self.generate_configs(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_env2_no_write(self): """Test generate_config_data with .war, fake appinfo, env=2.""" self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', env='2', runtime_config=dict( jdk='openjdk8', server='jetty9')) cfg_files = self.generate_config_data(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_no_env2(self): self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', vm=True, runtime_config=dict(server='jetty9')) self.generate_configs(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_LEGACY_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_no_env2_no_write(self): """Test generate_config_data with .war, fake appinfo, env != 2.""" self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', vm=True, runtime_config=dict(server='jetty9')) cfg_files = self.generate_config_data(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_LEGACY_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_open_jdk8_no_env2(self): self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', vm=True, runtime_config=dict( jdk='openjdk8', server='jetty9')) self.generate_configs(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_web_inf_and_yaml_and_open_jdk8_no_env2_no_write( self): """Test generate_config_data with WEB-INF file, fake appinfo.""" self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java', vm=True, runtime_config=dict( jdk='openjdk8', server='jetty9')) cfg_files = self.generate_config_data(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_COMPAT_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java_files_with_config_error(self): self.write_file('foo.war', '') errors = [] def ErrorFake(message): errors.append(message) config = testutil.AppInfoFake( runtime='java', env='2', runtime_config=dict( jdk='openjdk9')) with mock.patch.dict(ext_runtime._LOG_FUNCS, {'error': ErrorFake}): self.assertFalse(self.generate_configs(appinfo=config, deploy=True)) self.assertEqual(errors, ['Unknown JDK : openjdk9.']) def test_java_custom_runtime_field(self): self.write_file('foo.jar', '') config = testutil.AppInfoFake( runtime='java', env='2') self.assertTrue(self.generate_configs(appinfo=config, deploy=True)) def test_java7_runtime(self): self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java7', vm=True) self.generate_configs(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_LEGACY_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_file_exists_with_contents('Dockerfile', ''.join(dockerfile_contents)) self.assert_file_exists_with_contents( '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_java7_runtime_no_write(self): """Test generate_config_data with java7 runtime.""" self.write_file('WEB-INF', '') config = testutil.AppInfoFake( runtime='java7', vm=True) cfg_files = self.generate_config_data(appinfo=config, deploy=True) dockerfile_contents = [ constants.DOCKERFILE_LEGACY_PREAMBLE, constants.DOCKERFILE_INSTALL_APP.format('.'), ] self.assert_genfile_exists_with_contents( cfg_files, 'Dockerfile', ''.join(dockerfile_contents)) self.assert_genfile_exists_with_contents( cfg_files, '.dockerignore', self.read_runtime_def_file('data', 'dockerignore')) def test_detect_appinfo_war(self): self.write_file('foo.war', '') configurator = self.detect() self.assertEqual(configurator.generated_appinfo, {'runtime':'java', 'env': 'flex'}) def test_detect_appinfo_jar(self): self.write_file('foo.jar', '') configurator = self.detect() self.assertEqual(configurator.generated_appinfo, {'runtime':'java', 'env': 'flex'}) if __name__ == '__main__': unittest.main()
38.257194
80
0.610926
2,244
21,271
5.440731
0.096257
0.054058
0.073716
0.049144
0.860677
0.83848
0.828487
0.789172
0.78008
0.773364
0
0.003818
0.285882
21,271
555
81
38.326126
0.799934
0.081378
0
0.79684
0
0
0.092771
0
0
0
0
0.001802
0.17833
1
0.069977
false
0
0.027088
0.002257
0.10158
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
55e51fa0f5a5849a042fda350189be30365d702e
11,355
py
Python
tests/integration/conversations/v1/conversation/test_webhook.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
1
2019-12-30T21:46:55.000Z
2019-12-30T21:46:55.000Z
tests/integration/conversations/v1/conversation/test_webhook.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
null
null
null
tests/integration/conversations/v1/conversation/test_webhook.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class WebhookTestCase(IntegrationTestCase): def test_list_request(self): self.holodeck.mock(Response(500, '')) with self.assertRaises(TwilioException): self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks.list() self.holodeck.assert_has_request(Request( 'get', 'https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks', )) def test_read_full_response(self): self.holodeck.mock(Response( 200, ''' { "meta": { "page": 0, "page_size": 5, "first_page_url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks?PageSize=5&Page=0", "previous_page_url": null, "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks?PageSize=5&Page=0", "next_page_url": null, "key": "webhooks" }, "webhooks": [ { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "webhook", "configuration": { "url": "https://example.com", "method": "get", "filters": [ "onMessageSent", "onConversationDestroyed" ] }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:50Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "trigger", "configuration": { "url": "https://example.com", "method": "post", "filters": [ "keyword1", "keyword2" ] }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:50Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "studio", "configuration": { "flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:50Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] } ''' )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks.list() self.assertIsNotNone(actual) def test_read_empty_response(self): self.holodeck.mock(Response( 200, ''' { "meta": { "page": 0, "page_size": 5, "first_page_url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks?PageSize=5&Page=0", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks?PageSize=5&Page=0", "previous_page_url": null, "next_page_url": null, "key": "webhooks" }, "webhooks": [] } ''' )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks.list() self.assertIsNotNone(actual) def test_fetch_request(self): self.holodeck.mock(Response(500, '')) with self.assertRaises(TwilioException): self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch() self.holodeck.assert_has_request(Request( 'get', 'https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', )) def test_fetch_response(self): self.holodeck.mock(Response( 200, ''' { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "studio", "configuration": { "flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:50Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ''' )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch() self.assertIsNotNone(actual) def test_create_request(self): self.holodeck.mock(Response(500, '')) with self.assertRaises(TwilioException): self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks.create(target="webhook") values = {'Target': "webhook", } self.holodeck.assert_has_request(Request( 'post', 'https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks', data=values, )) def test_create_response(self): self.holodeck.mock(Response( 201, ''' { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "webhook", "configuration": { "url": "https://example.com", "method": "get", "filters": [ "onMessageSent", "onConversationDestroyed" ] }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:50Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ''' )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks.create(target="webhook") self.assertIsNotNone(actual) def test_update_request(self): self.holodeck.mock(Response(500, '')) with self.assertRaises(TwilioException): self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update() self.holodeck.assert_has_request(Request( 'post', 'https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', )) def test_update_response(self): self.holodeck.mock(Response( 200, ''' { "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "target": "trigger", "configuration": { "url": "https://example.com", "method": "post", "filters": [ "keyword1", "keyword2" ] }, "date_created": "2016-03-24T21:05:50Z", "date_updated": "2016-03-24T21:05:51Z", "url": "https://conversations.twilio.com/v1/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ''' )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update() self.assertIsNotNone(actual) def test_delete_request(self): self.holodeck.mock(Response(500, '')) with self.assertRaises(TwilioException): self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete() self.holodeck.assert_has_request(Request( 'delete', 'https://conversations.twilio.com/v1/Conversations/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Webhooks/WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', )) def test_delete_response(self): self.holodeck.mock(Response( 204, None, )) actual = self.client.conversations.v1.conversations(sid="CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \ .webhooks(sid="WHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete() self.assertTrue(actual)
42.52809
161
0.534478
733
11,355
8.166439
0.136426
0.065152
0.06014
0.067658
0.937688
0.922987
0.90578
0.89442
0.89442
0.89442
0
0.033957
0.359401
11,355
266
162
42.68797
0.788974
0.009599
0
0.75
1
0
0.238809
0.115508
0
0
0
0
0.166667
1
0.114583
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
3601e350149b1e27892fc3fa8ad8b3325e22f7fb
23,729
py
Python
mayan/apps/user_management/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/user_management/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/user_management/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework import status from mayan.apps.rest_api.tests.base import BaseAPITestCase from ..events import ( event_group_created, event_group_edited, event_user_created, event_user_edited ) from ..permissions import ( permission_group_create, permission_group_delete, permission_group_edit, permission_group_view, permission_user_create, permission_user_delete, permission_user_edit, permission_user_view ) from .mixins import ( GroupAPIViewTestMixin, GroupTestMixin, GroupUserAPIViewTestMixin, UserAPIViewTestMixin, UserGroupAPIViewTestMixin ) class GroupAPITestCase( GroupAPIViewTestMixin, GroupTestMixin, BaseAPITestCase ): def test_group_create_api_view_no_permission(self): group_count = Group.objects.count() self._clear_events() response = self._request_test_group_create_api_view() self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(Group.objects.count(), group_count) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_create_api_view_with_permission(self): self.grant_permission(permission=permission_group_create) group_count = Group.objects.count() self._clear_events() response = self._request_test_group_create_api_view() self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Group.objects.count(), group_count + 1) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_group) self.assertEqual(events[0].verb, event_group_created.id) def test_group_delete_api_view_no_permission(self): self._create_test_group() group_count = Group.objects.count() self._clear_events() response = self._request_test_group_delete_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(Group.objects.count(), group_count) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_delete_api_view_with_access(self): self._create_test_group() self.grant_access( obj=self.test_group, permission=permission_group_delete ) group_count = Group.objects.count() self._clear_events() response = self._request_test_group_delete_api_view() self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(Group.objects.count(), group_count - 1) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_detail_api_view_no_permission(self): self._create_test_group() self._clear_events() response = self._request_test_group_detail_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_detail_api_view_with_access(self): self._create_test_group() self.grant_access( obj=self.test_group, permission=permission_group_view ) self._clear_events() response = self._request_test_group_detail_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['id'], self.test_group.id) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_edit_api_view_via_patch_no_permission(self): self._create_test_group() group_name = self.test_group.name self._clear_events() response = self._request_test_group_edit_patch_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.test_group.refresh_from_db() self.assertEqual(self.test_group.name, group_name) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_edit_api_view_via_patch_with_access(self): self._create_test_group() self.grant_access( obj=self.test_group, permission=permission_group_edit ) group_name = self.test_group.name self._clear_events() response = self._request_test_group_edit_patch_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.test_group.refresh_from_db() self.assertNotEqual(self.test_group.name, group_name) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_group) self.assertEqual(events[0].verb, event_group_edited.id) def test_group_edit_api_view_via_put_no_permission(self): self._create_test_group() group_name = self.test_group.name self._clear_events() response = self._request_test_group_edit_put_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.test_group.refresh_from_db() self.assertEqual(self.test_group.name, group_name) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_edit_api_view_via_put_with_access(self): self._create_test_group() self.grant_access( obj=self.test_group, permission=permission_group_edit ) group_name = self.test_group.name self._clear_events() response = self._request_test_group_edit_put_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.test_group.refresh_from_db() self.assertNotEqual(self.test_group.name, group_name) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_group) self.assertEqual(events[0].verb, event_group_edited.id) def test_group_list_api_view_no_permission(self): self._create_test_group() self._clear_events() response = self._request_test_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['count'], 0) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_list_api_view_with_access(self): self._create_test_group() self.grant_access( obj=self.test_group, permission=permission_group_view ) self._clear_events() response = self._request_test_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['results'][0]['id'], self.test_group.id) events = self._get_test_events() self.assertEqual(events.count(), 0) class GroupUserAPIViewTestCase( GroupTestMixin, GroupUserAPIViewTestMixin, BaseAPITestCase ): def setUp(self): super().setUp() self._create_test_group() self._create_test_user() def test_group_user_add_api_view_no_permission(self): self._clear_events() response = self._request_test_group_user_add_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertTrue(self.test_user not in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_add_api_view_with_group_access(self): self.grant_access( obj=self.test_group, permission=permission_group_edit ) self._clear_events() response = self._request_test_group_user_add_api_view() self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertTrue(self.test_user not in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_add_api_view_with_user_access(self): self.grant_access( obj=self.test_user, permission=permission_user_edit ) self._clear_events() response = self._request_test_group_user_add_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertTrue(self.test_user not in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_add_api_view_with_full_access(self): self.grant_access( obj=self.test_group, permission=permission_group_edit ) self.grant_access( obj=self.test_user, permission=permission_user_edit ) self._clear_events() response = self._request_test_group_user_add_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertTrue(self.test_user in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, self.test_user) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_group) self.assertEqual(events[0].verb, event_group_edited.id) def test_group_user_list_api_view_no_permission(self): self.test_user.groups.add(self.test_group) self._clear_events() response = self._request_test_group_user_list_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_list_api_view_with_group_access(self): self.test_user.groups.add(self.test_group) self.grant_access( obj=self.test_group, permission=permission_group_view ) self._clear_events() response = self._request_test_group_user_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['count'], 0) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_list_api_view_with_user_access(self): self.test_user.groups.add(self.test_group) self.grant_access(obj=self.test_user, permission=permission_user_view) self._clear_events() response = self._request_test_group_user_list_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_list_api_view_with_full_access(self): self.test_user.groups.add(self.test_group) self.grant_access( obj=self.test_group, permission=permission_group_view ) self.grant_access(obj=self.test_user, permission=permission_user_view) self._clear_events() response = self._request_test_group_user_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['results'][0]['username'], self.test_user.username ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_remove_api_view_no_permission(self): self.test_user.groups.add(self.test_group) self._clear_events() response = self._request_test_group_user_remove_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertTrue(self.test_user in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_remove_api_view_with_group_access(self): self.test_user.groups.add(self.test_group) self.grant_access( obj=self.test_group, permission=permission_group_edit ) self._clear_events() response = self._request_test_group_user_remove_api_view() self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertTrue(self.test_user in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_remove_api_view_with_user_access(self): self.test_user.groups.add(self.test_group) self.grant_access( obj=self.test_user, permission=permission_user_edit ) self._clear_events() response = self._request_test_group_user_remove_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertTrue(self.test_user in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_group_user_remove_api_view_with_full_access(self): self.test_user.groups.add(self.test_group) self.grant_access( obj=self.test_group, permission=permission_group_edit ) self.grant_access( obj=self.test_user, permission=permission_user_edit ) self._clear_events() response = self._request_test_group_user_remove_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertFalse(self.test_user in self.test_group.user_set.all()) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, self.test_user) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_group) self.assertEqual(events[0].verb, event_group_edited.id) class UserAPIViewTestCase(UserAPIViewTestMixin, BaseAPITestCase): def test_user_create_api_view_no_permission(self): user_count = get_user_model().objects.count() self._clear_events() response = self._request_test_user_create_api_view() self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(get_user_model().objects.count(), user_count) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_create_api_view_with_permission(self): self.grant_permission(permission=permission_user_create) user_count = get_user_model().objects.count() self._clear_events() response = self._request_test_user_create_api_view() self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(get_user_model().objects.count(), user_count + 1) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_user) self.assertEqual(events[0].verb, event_user_created.id) def test_user_delete_api_view_no_permission(self): self._create_test_user() user_count = get_user_model().objects.count() self._clear_events() response = self._request_test_user_delete_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(get_user_model().objects.count(), user_count) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_delete_api_view_with_access(self): self._create_test_user() self.grant_access( obj=self.test_user, permission=permission_user_delete ) user_count = get_user_model().objects.count() self._clear_events() response = self._request_test_user_delete_api_view() self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(get_user_model().objects.count(), user_count - 1) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_detail_api_view_no_permission(self): self._create_test_user() self._clear_events() response = self._request_test_user_detail_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_detail_api_view_with_access(self): self._create_test_user() self.grant_access( obj=self.test_user, permission=permission_user_view ) self._clear_events() response = self._request_test_user_detail_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['username'], self.test_user.username ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_edit_patch_api_view_no_permission(self): self._create_test_user() user_username = self.test_user.username self._clear_events() response = self._request_test_user_edit_patch_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.test_user.refresh_from_db() self.assertEqual(self.test_user.username, user_username) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_edit_patch_api_view_with_access(self): self._create_test_user() self.grant_access( obj=self.test_user, permission=permission_user_edit ) user_username = self.test_user.username self._clear_events() response = self._request_test_user_edit_patch_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.test_user.refresh_from_db() self.assertNotEqual(self.test_user.username, user_username) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_user) self.assertEqual(events[0].verb, event_user_edited.id) def test_user_edit_put_api_view_no_permission(self): self._create_test_user() user_username = self.test_user.username self._clear_events() response = self._request_test_user_edit_put_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.test_user.refresh_from_db() self.assertEqual(self.test_user.username, user_username) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_edit_put_api_view_with_access(self): self._create_test_user() self.grant_access( obj=self.test_user, permission=permission_user_edit ) user_username = self.test_user.username self._clear_events() response = self._request_test_user_edit_put_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.test_user.refresh_from_db() self.assertNotEqual(self.test_user.username, user_username) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_user) self.assertEqual(events[0].verb, event_user_edited.id) def test_user_password_change_api_view_no_permission(self): self._create_test_user() password_hash = self.test_user.password self._clear_events() response = self._request_test_user_password_change_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.test_user.refresh_from_db() self.assertEqual(self.test_user.password, password_hash) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_password_change_api_view_with_access(self): self._create_test_user() self.grant_access( obj=self.test_user, permission=permission_user_edit ) password_hash = self.test_user.password self._clear_events() response = self._request_test_user_password_change_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.test_user.refresh_from_db() self.assertNotEqual(self.test_user.password, password_hash) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual(events[0].action_object, None) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_user) self.assertEqual(events[0].verb, event_user_edited.id) class UserGroupAPIViewTestCase( UserGroupAPIViewTestMixin, GroupTestMixin, BaseAPITestCase ): def setUp(self): super().setUp() self._create_test_group() self._create_test_user() def test_user_group_list_api_view_no_permission(self): self.test_group.user_set.add(self.test_user) self._clear_events() response = self._request_test_user_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_group_list_api_view_with_user_access(self): self.test_group.user_set.add(self.test_user) self.grant_access( obj=self.test_user, permission=permission_user_view ) self._clear_events() response = self._request_test_user_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['count'], 0) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_group_list_api_view_with_group_access(self): self.test_group.user_set.add(self.test_user) self.grant_access( obj=self.test_group, permission=permission_group_view ) self._clear_events() response = self._request_test_user_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_user_group_list_api_view_with_full_access(self): self.test_group.user_set.add(self.test_user) self.grant_access( obj=self.test_group, permission=permission_group_view ) self.grant_access( obj=self.test_user, permission=permission_user_view ) self._clear_events() response = self._request_test_user_group_list_api_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['results'][0]['name'], self.test_group.name ) events = self._get_test_events() self.assertEqual(events.count(), 0)
32.865651
79
0.702937
3,038
23,729
5.05497
0.034233
0.133815
0.103927
0.059908
0.943869
0.943088
0.935013
0.929934
0.925637
0.916129
0
0.010917
0.204771
23,729
721
80
32.911234
0.802915
0
0
0.77459
0
0
0.002529
0
0
0
0
0
0.307377
1
0.086066
false
0.016393
0.014344
0
0.108607
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36463bbb888a68bf58b9c46a72ab3d5f375e5dfb
17,964
py
Python
src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
7
2020-04-26T09:54:05.000Z
2021-07-22T16:54:41.000Z
src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
3
2021-10-08T01:49:53.000Z
2021-11-18T02:54:40.000Z
src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
13
2020-06-30T16:23:36.000Z
2022-03-29T17:12:05.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest from azure.cli.command_modules.servicefabric.tests.latest.test_util import ( _create_cluster_with_separate_kv, _create_managed_cluster, _wait_for_managed_cluster_state_ready) from azure.cli.core.util import CLIError from azure.cli.testsdk import ScenarioTest, LiveScenarioTest, ResourceGroupPreparer from azure.cli.core.azclierror import ResourceNotFoundError class ServiceFabricManagedApplicationTests(ScenarioTest): @ResourceGroupPreparer() def test_managed_app_type(self): self.kwargs.update({ 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), 'vm_password': self.create_random_name('Pass@', 9), 'app_type_name': 'VotingType', 'v1': '1.0.0', 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', 'v2': '2.0.0', 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', 'app_name': self.create_random_name('testApp', 11), 'stateful_service_type': 'VotingDataType', 'stateless_service_type': 'VotingWebType', 'stateful_service_name': self.create_random_name("testSvc", 20), 'stateless_service_name': self.create_random_name("testSvc2", 20), 'tags': 'key1=value1 key2=value2', 'new_tags': 'key2=value3' }) _create_managed_cluster(self, self.kwargs) _wait_for_managed_cluster_state_ready(self, self.kwargs) # List self.cmd('az sf managed-application-type list -g {rg} -c {cluster_name}', checks=[self.is_empty()]) # Create app_type = self.cmd('az sf managed-application-type create -g {rg} -c {cluster_name} --application-type-name {app_type_name} --tags {tags}', checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() # Show self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}', checks=[self.check('id', app_type['id']), self.check('tags', app_type['tags'])]) # Update updated_app_type = self.cmd('az sf managed-application-type update -g {rg} -c {cluster_name} --application-type-name {app_type_name} --tags {new_tags}', checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() # Show self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}', checks=[self.check('id', updated_app_type['id']), self.check('tags', updated_app_type['tags'])]) # Delete self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') # SystemExit 3 'not found' with self.assertRaisesRegexp(SystemExit, '3'): self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}') @ResourceGroupPreparer() def test_managed_app_type_version(self): self.kwargs.update({ 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), 'vm_password': self.create_random_name('Pass@', 9), 'app_type_name': 'VotingType', 'v1': '1.0.0', 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', 'v2': '2.0.0', 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', 'app_name': self.create_random_name('testApp', 11), 'stateful_service_type': 'VotingDataType', 'stateless_service_type': 'VotingWebType', 'stateful_service_name': self.create_random_name("testSvc", 20), 'stateless_service_name': self.create_random_name("testSvc2", 20), 'tags': 'key1=value1 key2=value2', 'new_tags': 'key2=value3' }) _create_managed_cluster(self, self.kwargs) _wait_for_managed_cluster_state_ready(self, self.kwargs) # 'not found' with self.assertRaisesRegexp(Exception, r'\(NotFound\).+not found.'): self.cmd('az sf managed-application-type version list -g {rg} -c {cluster_name} --application-type-name {app_type_name}') # Create app_type_version = self.cmd('az sf managed-application-type version create -g {rg} -c {cluster_name} ' '--application-type-name {app_type_name} --version {v1} --package-url {app_package_v1} --tags {tags}', checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() # Show self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}', checks=[self.check('id', app_type_version['id']), self.check('tags', app_type_version['tags'])]) # Update updated_app_type_version = self.cmd('az sf managed-application-type version update -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1} --tags {new_tags}', checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() # Show self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}', checks=[self.check('id', updated_app_type_version['id']), self.check('tags', updated_app_type_version['tags'])]) # Delete self.cmd('az sf managed-application-type version delete -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}') # SystemExit 3 'not found' with self.assertRaisesRegex(SystemExit, '3'): self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}') @ResourceGroupPreparer() def test_managed_application(self): updated_version = '2.0.0' self.kwargs.update({ 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), 'vm_password': self.create_random_name('Pass@', 9), 'app_type_name': 'VotingType', 'v1': '1.0.0', 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', 'v2': updated_version, 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', 'app_name': self.create_random_name('testApp', 11), 'stateful_service_type': 'VotingDataType', 'stateless_service_type': 'VotingWebType', 'stateful_service_name': self.create_random_name("testSvc", 20), 'stateless_service_name': self.create_random_name("testSvc2", 20), 'tags': 'key1=value1 key2=value2', 'new_tags': 'key2=value3' }) _create_managed_cluster(self, self.kwargs) _wait_for_managed_cluster_state_ready(self, self.kwargs) # List Apps self.cmd('az sf managed-application list -g {rg} -c {cluster_name}', checks=[self.is_empty()]) # Create App app = self.cmd('az sf managed-application create -g {rg} -c {cluster_name} --application-name {app_name} ' '--application-type-name {app_type_name} --application-type-version {v1} --package-url {app_package_v1}', checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() # Show App self.cmd('az sf managed-application show -g {rg} -c {cluster_name} --application-name {app_name}', checks=[self.check('id', app['id'])]) # Create Stateless Service stateless_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateless --instance-count -1 ' '--service-name {stateless_service_name} --service-type {stateless_service_type} --partition-scheme singleton', checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() # Show Stateless Service self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}', checks=[self.check('id', stateless_service['id'])]) # Create New App Type self.cmd('az sf managed-application-type version create -g {rg} -c {cluster_name} ' '--application-type-name {app_type_name} --version {v2} --package-url {app_package_v2}', checks=[self.check('provisioningState', 'Succeeded')]) # Update Application updated_app = self.cmd('az sf managed-application update -g {rg} -c {cluster_name} --application-name {app_name} --application-type-version {v2} ' '--health-check-stable-duration 0 --health-check-wait-duration 0 --health-check-retry-timeout 0 ' '--upgrade-domain-timeout 5000 --upgrade-timeout 7000 --failure-action Rollback --upgrade-replica-set-check-timeout 300 --force-restart', checks=[self.check('provisioningState', 'Succeeded'), self.check('upgradePolicy.forceRestart', True), self.check('upgradePolicy.upgradeReplicaSetCheckTimeout', '300'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckRetryTimeout', '00:00:00'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckWaitDuration', '00:00:00'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckStableDuration', '00:00:00'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.upgradeTimeout', '01:56:40'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.upgradeDomainTimeout', '01:23:20'), self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.failureAction', 'Rollback')]).get_output_in_json() assert updated_app['version'].endswith(updated_version) # Delete Application self.cmd('az sf managed-application delete -g {rg} -c {cluster_name} --application-name {app_name}') # Delete Application Type self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') # SystemExit 3 'not found' with self.assertRaisesRegex(SystemExit, '3'): self.cmd('az sf managed-application show -g {rg} -c {cluster_name} --application-name {app_name}') @ResourceGroupPreparer() def test_managed_service(self): self.kwargs.update({ 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), 'vm_password': self.create_random_name('Pass@', 9), 'app_type_name': 'VotingType', 'v1': '1.0.0', 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', 'v2': '2.0.0', 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', 'app_name': self.create_random_name('testApp', 11), 'stateful_service_type': 'VotingDataType', 'stateless_service_type': 'VotingWebType', 'stateful_service_name': self.create_random_name("testSvc", 20), 'stateless_service_name': self.create_random_name("testSvc2", 20), 'tags': 'key1=value1 key2=value2', 'new_tags': 'key2=value3', 'service_placement_time_limit': '00:11:00', 'standby_replica_keep_duration': '00:11:00', 'quorum_loss_wait_duration': '00:11:00', 'replica_restart_wait_duration': '00:11:00', 'min_instance_count': 2, 'min_instance_percentage': 20, }) _create_managed_cluster(self, self.kwargs) _wait_for_managed_cluster_state_ready(self, self.kwargs) # Create App self.cmd('az sf managed-application create -g {rg} -c {cluster_name} --application-name {app_name} ' '--application-type-name {app_type_name} --application-type-version {v1} --package-url {app_package_v1}', checks=[self.check('provisioningState', 'Succeeded')]) # List Services self.cmd('az sf managed-service list -g {rg} -c {cluster_name} --application-name {app_name}', checks=[self.is_empty()]) # Create Stateful Service stateful_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateful --min-replica-set-size 2 ' '--target-replica-set-size 3 --service-name {stateful_service_name} --service-type {stateful_service_type} --has-persisted-state ' '--partition-scheme uniformint64range --partition-count 1 --low-key 0 --high-key 25', checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() # Show Stateful Service self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}', checks=[self.check('id', stateful_service['id'])]) # Create Stateless Service stateless_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateless --instance-count -1 ' '--service-name {stateless_service_name} --service-type {stateless_service_type} --partition-scheme singleton', checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() # Show Stateless Service self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}', checks=[self.check('id', stateless_service['id'])]) # Update Stateful Service self.cmd('az sf managed-service update -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name} ' '--service-placement-time-limit {service_placement_time_limit} --stand-by-replica-keep-duration {standby_replica_keep_duration} ' '--replica-restart-wait-duration {replica_restart_wait_duration} --quorum-loss-wait-duration {quorum_loss_wait_duration}', checks=[self.check('properties.provisioningState', 'Succeeded'), self.check('properties.servicePlacementTimeLimit', '00:11:00'), self.check('properties.standByReplicaKeepDuration', '00:11:00'), self.check('properties.quorumLossWaitDuration', '00:11:00'), self.check('properties.replicaRestartWaitDuration', '00:11:00')]) # Update Stateless Service self.cmd('az sf managed-service update -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name} ' '--min-instance-count {min_instance_count} --min-instance-percentage {min_instance_percentage} ', checks=[self.check('properties.provisioningState', 'Succeeded'), self.check('properties.minInstanceCount', '2'), self.check('properties.minInstancePercentage', '20')]) # Delete Stateless Service self.cmd('az sf managed-service delete -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}') # Delete Stateful Service self.cmd('az sf managed-service delete -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}') # Delete Application self.cmd('az sf managed-application delete -g {rg} -c {cluster_name} --application-name {app_name}') # Delete Application Type self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') # SystemExit 3 'not found' with self.assertRaisesRegex(SystemExit, '3'): self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}') # SystemExit 3 'not found' with self.assertRaisesRegex(SystemExit, '3'): self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}') if __name__ == '__main__': unittest.main()
68.827586
191
0.626086
2,020
17,964
5.360891
0.100495
0.042663
0.031582
0.0386
0.819651
0.789177
0.750392
0.714009
0.705051
0.678456
0
0.024512
0.230127
17,964
260
192
69.092308
0.758496
0.05344
0
0.594059
0
0.252475
0.529981
0.188255
0
0
0
0
0.034653
1
0.019802
false
0.019802
0.024752
0
0.049505
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
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36a83051d5a0c1d4af23beebf50ad36bff456481
46,387
py
Python
tests/testflows/rbac/tests/privileges/alter/alter_row_policy.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1
2022-02-27T15:21:20.000Z
2022-02-27T15:21:20.000Z
tests/testflows/rbac/tests/privileges/alter/alter_row_policy.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
16
2022-02-14T15:53:29.000Z
2022-03-25T18:39:16.000Z
tests/testflows/rbac/tests/privileges/alter/alter_row_policy.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
null
null
null
from testflows.core import * from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors @TestSuite def privileges_granted_directly(self, node=None): """Check that a user is able to execute `ALTER ROW POLICY` with privileges are granted directly.""" user_name = f"user_{getuid()}" if node is None: node = self.context.node with user(node, f"{user_name}"): Suite( run=alter_row_policy, examples=Examples( "privilege grant_target_name user_name", [ tuple(list(row) + [user_name, user_name]) for row in alter_row_policy.examples ], args=Args(name="privilege={privilege}", format_name=True), ), ) @TestSuite def privileges_granted_via_role(self, node=None): """Check that a user is able to execute `ALTER ROW POLICY` with privileges are granted through a role.""" user_name = f"user_{getuid()}" role_name = f"role_{getuid()}" if node is None: node = self.context.node with user(node, f"{user_name}"), role(node, f"{role_name}"): with When("I grant the role to the user"): node.query(f"GRANT {role_name} TO {user_name}") Suite( run=alter_row_policy, examples=Examples( "privilege grant_target_name user_name", [ tuple(list(row) + [role_name, user_name]) for row in alter_row_policy.examples ], args=Args(name="privilege={privilege}", format_name=True), ), ) @TestOutline(Suite) @Examples( "privilege", [ ("ALL",), ("ACCESS MANAGEMENT",), ("ALTER ROW POLICY",), ("ALTER POLICY",), ], ) def alter_row_policy(self, privilege, grant_target_name, user_name, node=None): """Check that user is only able to execute `ALTER ROW POLICY` when they have the necessary privilege.""" exitcode, message = errors.not_enough_privileges(name=user_name) if node is None: node = self.context.node with Scenario("ALTER ROW POLICY without privilege"): alter_row_policy_name = f"alter_row_policy_{getuid()}" table_name = f"table_name_{getuid()}" try: with Given("I have a row policy"): node.query(f"CREATE ROW POLICY {alter_row_policy_name} ON {table_name}") with When("I grant the user NONE privilege"): node.query(f"GRANT NONE TO {grant_target_name}") with And("I grant the user USAGE privilege"): node.query(f"GRANT USAGE ON *.* TO {grant_target_name}") with Then("I check the user can't alter a row policy"): node.query( f"ALTER ROW POLICY {alter_row_policy_name} ON {table_name}", settings=[("user", user_name)], exitcode=exitcode, message=message, ) finally: with Finally("I drop the row policy"): node.query( f"DROP ROW POLICY IF EXISTS {alter_row_policy_name} ON {table_name}" ) with Scenario("ALTER ROW POLICY with privilege"): alter_row_policy_name = f"alter_row_policy_{getuid()}" table_name = f"table_name_{getuid()}" try: with Given("I have a row policy"): node.query(f"CREATE ROW POLICY {alter_row_policy_name} ON {table_name}") with When(f"I grant {privilege}"): node.query(f"GRANT {privilege} ON *.* TO {grant_target_name}") with Then("I check the user can alter a row policy"): node.query( f"ALTER ROW POLICY {alter_row_policy_name} ON {table_name}", settings=[("user", f"{user_name}")], ) finally: with Finally("I drop the row policy"): node.query( f"DROP ROW POLICY IF EXISTS {alter_row_policy_name} ON {table_name}" ) with Scenario("ALTER ROW POLICY on cluster"): alter_row_policy_name = f"alter_row_policy_{getuid()}" table_name = f"table_name_{getuid()}" try: with Given("I have a row policy on a cluster"): node.query( f"CREATE ROW POLICY {alter_row_policy_name} ON CLUSTER sharded_cluster ON {table_name}" ) with When(f"I grant {privilege}"): node.query(f"GRANT {privilege} ON *.* TO {grant_target_name}") with Then("I check the user can alter a row policy"): node.query( f"ALTER ROW POLICY {alter_row_policy_name} ON CLUSTER sharded_cluster ON {table_name}", settings=[("user", f"{user_name}")], ) finally: with Finally("I drop the user"): node.query( f"DROP ROW POLICY IF EXISTS {alter_row_policy_name} ON CLUSTER sharded_cluster ON {table_name}" ) with Scenario("ALTER ROW POLICY with revoked privilege"): alter_row_policy_name = f"alter_row_policy_{getuid()}" table_name = f"table_name_{getuid()}" try: with Given("I have a row policy"): node.query(f"CREATE ROW POLICY {alter_row_policy_name} ON {table_name}") with When(f"I grant {privilege} on the database"): node.query(f"GRANT {privilege} ON *.* TO {grant_target_name}") with And(f"I revoke {privilege} on the database"): node.query(f"REVOKE {privilege} ON *.* FROM {grant_target_name}") with Then("I check the user cannot alter row policy"): node.query( f"ALTER ROW POLICY {alter_row_policy_name} ON {table_name}", settings=[("user", user_name)], exitcode=exitcode, message=message, ) finally: with Finally("I drop the row policy"): node.query( f"DROP ROW POLICY IF EXISTS {alter_row_policy_name} ON {table_name}" ) @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Restriction("1.0")) def no_grants(self, node=None): """Check that user is unable to select from a table without a row policy after a row policy has been altered to have a condition. """ table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with When("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() with When("I alter the row policy to have a condition"): node.query(f"ALTER POLICY {pol_name} ON {table_name} FOR SELECT USING 1") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "" == output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_Access_Permissive("1.0"), ) def permissive(self, node=None): """Check that user is able to see from a table when they have a PERMISSIVE policy.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1), (2)") with When("I alter a row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} AS PERMISSIVE FOR SELECT USING y=1 TO default" ) with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output and "2" not in output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_Access_Restrictive("1.0")) def restrictive(self, node=None): """Check that user is able to see values they have a RESTRICTIVE policy for.""" table_name = f"table_{getuid()}" perm_pol_name = f"perm_pol_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("I have a second row policy"): row_policy(name=perm_pol_name, table=table_name) with And("I alter a row policy to be permissive"): node.query( f"ALTER ROW POLICY {perm_pol_name} ON {table_name} FOR SELECT USING y=1 OR y=2 TO default" ) with And("I alter a row policy to be restrictive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} AS RESTRICTIVE FOR SELECT USING y=1 TO default" ) with When("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1), (2)") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output and "2" not in output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_ForSelect("1.0"), ) def for_select(self, node=None): """Check that user is able to see values allowed by the row policy condition in the FOR SELECT clause.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with Given("I alter therow policy to use FOR SELECT"): node.query( f"Alter ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1 TO default" ) with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_Condition("1.0")) def condition(self, node=None): """Check that user is able to see values allowed by the row policy condition.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with When("I alter a row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_Condition_None("1.0")) def remove_condition(self, node=None): """Check that user is able to see the table after row policy condition has been removed.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The row policy has a condition"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I alter a row policy to not have a condition"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING NONE" ) with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_IfExists("1.0")) def if_exists(self, node=None): """Check that a row policy altered using IF EXISTS restricts rows as expected.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I have alter a row policy to be permissive using IF EXISTS clause"): node.query( f"ALTER ROW POLICY IF EXISTS {pol_name} ON {table_name} FOR SELECT USING 1 TO default" ) with Then("I select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_Rename("1.0")) def rename(self, node=None): """Check that a row policy altered using RENAME restricts rows as expected.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" pol_new_name = f"pol_new_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with And("The row policy is permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with When("I have alter a row policy by renaming it"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} RENAME TO {pol_new_name}" ) with Then("I select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() finally: with Finally("I drop the row policy"): node.query(f"DROP ROW POLICY IF EXISTS {pol_new_name} ON {table_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Alter_OnCluster("1.0")) def on_cluster(self, node=None): """Check that a row policy altered using ON CLUSTER applies to the nodes of the cluster correctly.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node node2 = self.context.node2 try: with Given("I have a table on a cluster"): node.query( f"CREATE TABLE {table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Memory" ) with And("I have a row policy on a cluster on that table"): node.query( f"CREATE ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("The table has some values on the first node"): node.query(f"INSERT INTO {table_name} (x) VALUES (1)") with And("The table has some values on the second node"): node2.query(f"INSERT INTO {table_name} (x) VALUES (1)") with When("I alter the row policy to have a condition"): node.query( f"ALTER ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name} FOR SELECT USING 1" ) with Then("I select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "" == output, error() with And("I select from another node on the cluster"): output = node2.query(f"SELECT * FROM {table_name}").output assert "" == output, error() finally: with Finally("I drop the row policy", flags=TE): node.query( f"DROP ROW POLICY IF EXISTS {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I drop the table", flags=TE): node.query(f"DROP TABLE {table_name} ON CLUSTER sharded_cluster") @TestScenario def diff_policies_on_diff_nodes(self, node=None): """Check that a row policy altered on a node, does not effect row policy on a different node.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node node2 = self.context.node2 try: with Given("I have a table on a cluster"): node.query( f"CREATE TABLE {table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Memory" ) with And("I have a row policy on the cluster"): node.query( f"CREATE ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("The table has some values on the first node"): node.query(f"INSERT INTO {table_name} (x) VALUES (1)") with And("The table has some values on the second node"): node2.query(f"INSERT INTO {table_name} (x) VALUES (1)") with When("I alter the row policy on the first node"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with Then("I select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "" == output, error() with And("I select from another node on the cluster"): output = node2.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() finally: with Finally("I drop the row policy", flags=TE): node.query( f"DROP ROW POLICY IF EXISTS {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I drop the table", flags=TE): node.query(f"DROP TABLE {table_name} ON CLUSTER sharded_cluster") @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment("1.0"), ) def assignment(self, node=None): """Check that user is able to see rows from a table when they have PERMISSIVE policy assigned to them.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The row policy is permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I alter a row policy to be assigned to default"): node.query(f"ALTER ROW POLICY {pol_name} ON {table_name} TO default") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_None("1.0"), ) def assignment_none(self, node=None): """Check that no one is affected when a row policy is altered to be assigned to NONE.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The row policy is permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I alter a row policy to be assigned to NONE"): node.query(f"ALTER ROW POLICY {pol_name} ON {table_name} TO NONE") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "" == output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_All("1.0"), ) def assignment_all(self, node=None): """Check that everyone is effected with a row policy is altered to be assigned to ALL.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The row policy is permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I alter a row policy to be assigned to ALL"): node.query(f"ALTER ROW POLICY {pol_name} ON {table_name} TO ALL") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Alter_Assignment_AllExcept("1.0"), ) def assignment_all_except(self, node=None): """Check that everyone is except the specified user is effect by a row policy is altered to be assigned to ALL EXCEPT.""" table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The row policy is permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1)") with When("I alter a row policy to be assigned to ALL EXCEPT default"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} TO ALL EXCEPT default" ) with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "" == output, error() @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def nested_view(self, node=None): """Check that if a user has a row policy on a table and a view is altered to use a condition on that table, the user is only able to access the rows specified by the assigned policies. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with And("There is a view on the table"): node.query(f"CREATE VIEW {view_name} AS SELECT * FROM {table_name}") with When("I alter the row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def nested_live_view_before_policy(self, node=None): """Check that if a live view exists on a table and then a row policy is created, the user is only able to select rows specified by the assigned policies from the view. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given( "I add allow_experimental_live_view to the default query settings" ): default_query_settings = getsattr( current().context, "default_query_settings", [] ) default_query_settings.append(("allow_experimental_live_view", 1)) with And("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with And("There exists a live view on the table"): node.query( f"CREATE LIVE VIEW {view_name} AS SELECT * FROM {table_name}" ) with When("I alter the row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the live view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") with And( "I remove allow_experimental_live_view from the default query settings", flags=TE, ): if default_query_settings: try: default_query_settings.pop( default_query_settings.index( ("allow_experimental_live_view", 1) ) ) except ValueError: pass @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def nested_live_view_after_policy(self, node=None): """Check that if a user has a row policy on a table and a materialized view is created on that table, the user is only able to select rows specified by the assigned policies from the view. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given( "I add allow_experimental_live_view to the default query settings" ): default_query_settings = getsattr( current().context, "default_query_settings", [] ) default_query_settings.append(("allow_experimental_live_view", 1)) with And("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with When("I alter the row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with And("I create a live view on the table"): node.query( f"CREATE LIVE VIEW {view_name} AS SELECT * FROM {table_name}" ) with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the live view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") with And( "I remove allow_experimental_live_view from the default query settings", flags=TE, ): if default_query_settings: try: default_query_settings.pop( default_query_settings.index( ("allow_experimental_live_view", 1) ) ) except ValueError: pass @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def nested_mat_view_before_policy(self, node=None): """Check that if a materialized view exists on a table and then a row policy is created, the user is only able to select rows specified by the assigned policies from the view. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("There exists a mat view on the table"): node.query( f"CREATE MATERIALIZED VIEW {view_name} ENGINE = Memory AS SELECT * FROM {table_name}" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with When("I alter the row policy"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the materialized view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def nested_mat_view_after_policy(self, node=None): """Check that if a user has a row policy on a table and a materialized view is created on that table, the user is only able to select rows specified by the assigned policies from the view. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("I alter the row policy"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with When("I create a mat view on the table"): node.query( f"CREATE MATERIALIZED VIEW {view_name} ENGINE = Memory AS SELECT * FROM {table_name}" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the materialized view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def populate_mat_view(self, node=None): """Check that if a user has a row policy on a table and a materialized view is created using POPULATE from that table, the user can only select the rows from the materialized view specified in the row policy. """ table_name = f"table_{getuid()}" view_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with table(node, table_name): try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("I alter a row policy on the table"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1),(2)") with When("I create a mat view populated by the table"): node.query( f"CREATE MATERIALIZED VIEW {view_name} ENGINE = Memory POPULATE AS SELECT * FROM {table_name}" ) with Then("I try to select from the view"): output = node.query(f"SELECT * FROM {view_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the materialized view", flags=TE): node.query(f"DROP VIEW IF EXISTS {view_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def dist_table(self, node=None): """Check that if a user has a row policy on a table and a distributed table is created on that table, the user is only able to access the rows specified by the assigned policies. """ table_name = f"table_{getuid()}" dist_table_name = f"dist_table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node node2 = self.context.node2 try: with Given("I have a table on a cluster"): node.query( f"CREATE TABLE {table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Memory" ) with And("I have a row policy"): node.query( f"CREATE ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I have a distributed table"): node.query( f"CREATE TABLE {dist_table_name} (x UInt64) ENGINE = Distributed(sharded_cluster, default, {table_name}, rand())" ) with And("The table has some values on the first node"): node.query(f"INSERT INTO {table_name} (x) VALUES (1)") with When("I alter the row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} ON CLUSTER sharded_cluster FOR SELECT USING 1" ) with Then("I select from the distributed table"): output = node.query(f"SELECT * FROM {dist_table_name}").output assert "" == output, error() finally: with Finally("I drop the row policy", flags=TE): node.query( f"DROP ROW POLICY IF EXISTS {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I drop the table", flags=TE): node.query(f"DROP TABLE IF EXISTS {table_name} ON CLUSTER sharded_cluster") with And("I drop the distributed table", flags=TE): node.query(f"DROP TABLE IF EXISTS {dist_table_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def dist_table_diff_policies_on_diff_nodes(self, node=None): """Check that user is only able to select from the distributed table what is allowed by the row policies on each node.""" table_name = f"table_{getuid()}" dist_table_name = f"dist_table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node node2 = self.context.node2 try: with Given("I have a table on a cluster"): node.query( f"CREATE TABLE {table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Memory" ) with And("I have a row policy"): node.query( f"CREATE ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I have a distributed table"): node.query( f"CREATE TABLE {dist_table_name} (x UInt64) ENGINE = Distributed(sharded_cluster, default, {table_name}, rand())" ) with And("The table has some values on the first node"): node.query(f"INSERT INTO {table_name} (x) VALUES (1)") with And("The table has some values on the second node"): node2.query(f"INSERT INTO {table_name} (x) VALUES (2)") with When("I alter the row policy to be permissive on the first node"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with Then("I select from the distributed table"): output = node.query(f"SELECT * FROM {dist_table_name}").output assert "1" not in output and "2" in output, error() finally: with Finally("I drop the row policy", flags=TE): node.query( f"DROP ROW POLICY IF EXISTS {pol_name} ON {table_name} ON CLUSTER sharded_cluster" ) with And("I drop the table", flags=TE): node.query(f"DROP TABLE IF EXISTS {table_name} ON CLUSTER sharded_cluster") with And("I drop the distributed table", flags=TE): node.query(f"DROP TABLE IF EXISTS {dist_table_name}") @TestScenario @Requirements(RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0")) def dist_table_on_dist_table(self, node=None): """Check that if a user has a row policy on a table and a distributed table is created on that table, and another distributed table is created on top of that, the user is only able to access rows on any of the tables specified by the assigned policies. """ table_name = f"table_{getuid()}" dist_table_name = f"dist_table_{getuid()}" dist_table_2_name = f"dist_table_2_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node node2 = self.context.node2 try: with Given("I have a table on a cluster"): node.query( f"CREATE TABLE {table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Memory" ) with And("I have a row policy"): node.query( f"CREATE ROW POLICY {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I have a distributed table on a cluster"): node.query( f"CREATE TABLE {dist_table_name} ON CLUSTER sharded_cluster (x UInt64) ENGINE = Distributed(sharded_cluster, default, {table_name}, rand())" ) with And("I have a distributed table on the other distributed table"): node.query( f"CREATE TABLE {dist_table_2_name} (x UInt64) ENGINE = Distributed(sharded_cluster, default, {dist_table_name}, rand())" ) with And("The table has some values on the first node"): node.query(f"INSERT INTO {table_name} (x) VALUES (1)") with When("I alter the row policy to be permissive on the first node"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING 1" ) with Then("I select from the second distributed table"): output = node.query(f"SELECT * FROM {dist_table_2_name}").output assert "" == output, error() finally: with Finally("I drop the row policy", flags=TE): node.query( f"DROP ROW POLICY IF EXISTS {pol_name} ON CLUSTER sharded_cluster ON {table_name}" ) with And("I drop the table", flags=TE): node.query(f"DROP TABLE IF EXISTS {table_name} ON CLUSTER sharded_cluster") with And("I drop the distributed table", flags=TE): node.query( f"DROP TABLE IF EXISTS {dist_table_name} ON CLUSTER sharded_cluster" ) with And("I drop the outer distributed table", flags=TE): node.query(f"DROP TABLE IF EXISTS {dist_table_2_name}") @TestScenario def policy_before_table(self, node=None): """Check that if the policy is created and altered before the table, then it is still applied correctly. """ table_name = f"table_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("I alter the row policy"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING y=1 TO default" ) with table(node, table_name): with When("The table has some values"): node.query(f"INSERT INTO {table_name} (y) VALUES (1), (2)") with Then("I try to select from the table"): output = node.query(f"SELECT * FROM {table_name}").output assert "1" in output and "2" not in output, error() @TestScenario @Requirements( RQ_SRS_006_RBAC_RowPolicy_Nesting("1.0"), ) def dict(self, node=None): """Check that if a user has a row policy on a table and a dictionary is created on that table, the user is only able to access the rows specified by the assigned policies. """ table_name = f"table_{getuid()}" dict_name = f"view_{getuid()}" pol_name = f"pol_{getuid()}" if node is None: node = self.context.node try: with Given("I have a row policy"): row_policy(name=pol_name, table=table_name) with And("I have a table"): node.query( f"CREATE TABLE {table_name} (key UInt64, val UInt64 DEFAULT 5) ENGINE = Memory" ) with And("The table has some values"): node.query(f"INSERT INTO {table_name} (key) VALUES (1),(2)") with And("I create a dict on the table"): node.query( f"CREATE DICTIONARY {dict_name} (key UInt64 DEFAULT 0, val UInt64 DEFAULT 5) PRIMARY KEY key SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE {table_name} PASSWORD '' DB 'default')) LIFETIME(MIN 0 MAX 0) LAYOUT(FLAT())" ) with When("I alter the row policy to be permissive"): node.query( f"ALTER ROW POLICY {pol_name} ON {table_name} FOR SELECT USING key=1 TO default" ) with Then("I try to select from the dict"): output = node.query(f"SELECT * FROM {dict_name}").output assert "1" in output and "2" not in output, error() finally: with Finally("I drop the materialized view", flags=TE): node.query(f"DROP DICTIONARY IF EXISTS {dict_name}") with And("I drop the table", flags=TE): node.query(f"DROP TABLE IF EXISTS {table_name}") @TestFeature @Name("alter row policy") @Requirements( RQ_SRS_006_RBAC_Privileges_AlterRowPolicy("1.0"), RQ_SRS_006_RBAC_Privileges_All("1.0"), RQ_SRS_006_RBAC_Privileges_None("1.0"), ) def feature(self, node="clickhouse1"): """Check the RBAC functionality of ALTER ROW POLICY.""" self.context.node = self.context.cluster.node(node) self.context.node2 = self.context.cluster.node("clickhouse2") Suite(run=privileges_granted_directly, setup=instrument_clickhouse_server_log) Suite(run=privileges_granted_via_role, setup=instrument_clickhouse_server_log) Scenario(run=no_grants, setup=instrument_clickhouse_server_log) Scenario(run=permissive, setup=instrument_clickhouse_server_log) Scenario(run=restrictive, setup=instrument_clickhouse_server_log) Scenario(run=for_select, setup=instrument_clickhouse_server_log) Scenario(run=condition, setup=instrument_clickhouse_server_log) Scenario(run=remove_condition, setup=instrument_clickhouse_server_log) Scenario(run=if_exists, setup=instrument_clickhouse_server_log) Scenario(run=rename, setup=instrument_clickhouse_server_log) Scenario(run=on_cluster, setup=instrument_clickhouse_server_log) Scenario(run=assignment, setup=instrument_clickhouse_server_log) Scenario(run=assignment_none, setup=instrument_clickhouse_server_log) Scenario(run=assignment_all, setup=instrument_clickhouse_server_log) Scenario(run=assignment_all_except, setup=instrument_clickhouse_server_log) Scenario(run=nested_view, setup=instrument_clickhouse_server_log) Scenario(run=nested_live_view_before_policy, setup=instrument_clickhouse_server_log) Scenario(run=nested_live_view_after_policy, setup=instrument_clickhouse_server_log) Scenario(run=nested_mat_view_before_policy, setup=instrument_clickhouse_server_log) Scenario(run=nested_mat_view_after_policy, setup=instrument_clickhouse_server_log) Scenario(run=populate_mat_view, setup=instrument_clickhouse_server_log) Scenario(run=dist_table, setup=instrument_clickhouse_server_log) Scenario(run=dist_table_on_dist_table, setup=instrument_clickhouse_server_log) Scenario( run=dist_table_diff_policies_on_diff_nodes, setup=instrument_clickhouse_server_log, ) Scenario(run=diff_policies_on_diff_nodes, setup=instrument_clickhouse_server_log) Scenario(run=policy_before_table, setup=instrument_clickhouse_server_log) Scenario(run=dict, setup=instrument_clickhouse_server_log)
36.32498
257
0.603488
6,353
46,387
4.252794
0.036833
0.069287
0.054408
0.023318
0.910319
0.893589
0.884077
0.86013
0.841809
0.819121
0
0.008744
0.297368
46,387
1,276
258
36.353448
0.820207
0.075754
0
0.704595
0
0.006565
0.364794
0.023414
0
0
0
0
0.031729
1
0.031729
false
0.003282
0.00547
0
0.037199
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36b4e51bf72a68864531825305b4569d98f7b5d1
35,895
py
Python
chris/tests/mocks/data/pipeline.py
FNNDSC/caw
a41761c4502481f6ccb60ef6e9956464c9b30eb9
[ "MIT" ]
null
null
null
chris/tests/mocks/data/pipeline.py
FNNDSC/caw
a41761c4502481f6ccb60ef6e9956464c9b30eb9
[ "MIT" ]
11
2021-04-23T21:25:29.000Z
2022-03-14T02:40:26.000Z
chris/tests/mocks/data/pipeline.py
FNNDSC/caw
a41761c4502481f6ccb60ef6e9956464c9b30eb9
[ "MIT" ]
1
2021-10-17T16:18:30.000Z
2021-10-17T16:18:30.000Z
# TODO got lazy... data = { 'https://example.com/api/v1/plugins/4/': {}, 'https://example.com/api/v1/plugins/5/': {}, 'https://example.com/api/v1/plugins/6/': {}, 'https://example.com/api/v1/pipelines/': { "collection_links": { "plugins": "https://example.com/api/v1/plugins/" }, "count": 2, "next": None, "previous": None, "queries": [ { "data": [ { "name": "id", "value": "" }, { "name": "owner_username", "value": "" }, { "name": "name", "value": "" }, { "name": "category", "value": "" }, { "name": "description", "value": "" }, { "name": "authors", "value": "" }, { "name": "min_creation_date", "value": "" }, { "name": "max_creation_date", "value": "" } ], "href": "https://example.com/api/v1/pipelines/search/", "rel": "search" } ], "results": [ { "authors": "Jennings Zhang <Jennings.Zhang@childrens.harvard.edu>", "category": "", "creation_date": "2021-11-12T23:03:58.401890-05:00", "default_parameters": "https://example.com/api/v1/pipelines/1/parameters/", "description": "A linear and boring pipeline.", "id": 1, "instances": "https://example.com/api/v1/pipelines/1/instances/", "locked": False, "modification_date": "2021-11-12T23:03:58.401912-05:00", "name": "Example linear pipeline", "owner_username": "chris", "plugin_pipings": "https://example.com/api/v1/pipelines/1/pipings/", "plugins": "https://example.com/api/v1/pipelines/1/plugins/", "url": "https://example.com/api/v1/pipelines/1/" }, { "authors": "Jennings Zhang <Jennings.Zhang@childrens.harvard.edu>", "category": "", "creation_date": "2021-11-12T23:03:58.742417-05:00", "default_parameters": "https://example.com/api/v1/pipelines/2/parameters/", "description": "A fun but nonetheless useless pipeline.", "id": 2, "instances": "https://example.com/api/v1/pipelines/2/instances/", "locked": False, "modification_date": "2021-11-12T23:03:58.742439-05:00", "name": "Example branching pipeline", "owner_username": "chris", "plugin_pipings": "https://example.com/api/v1/pipelines/2/pipings/", "plugins": "https://example.com/api/v1/pipelines/2/plugins/", "url": "https://example.com/api/v1/pipelines/2/" } ], "template": { "data": [ { "name": "name", "value": "" }, { "name": "authors", "value": "" }, { "name": "category", "value": "" }, { "name": "description", "value": "" }, { "name": "locked", "value": "" }, { "name": "plugin_tree", "value": "" }, { "name": "plugin_inst_id", "value": "" } ] } }, 'https://example.com/api/v1/pipelines/2/': { "authors": "Jennings Zhang <Jennings.Zhang@childrens.harvard.edu>", "category": "", "creation_date": "2021-11-12T23:03:58.742417-05:00", "default_parameters": "https://example.com/api/v1/pipelines/2/parameters/", "description": "A fun but nonetheless useless pipeline.", "id": 2, "instances": "https://example.com/api/v1/pipelines/2/instances/", "locked": False, "modification_date": "2021-11-12T23:03:58.742439-05:00", "name": "Example branching pipeline", "owner_username": "chris", "plugin_pipings": "https://example.com/api/v1/pipelines/2/pipings/", "plugins": "https://example.com/api/v1/pipelines/2/plugins/", "template": { "data": [ { "name": "name", "value": "" }, { "name": "authors", "value": "" }, { "name": "category", "value": "" }, { "name": "description", "value": "" } ] }, "url": "https://example.com/api/v1/pipelines/2/" }, 'https://exmaple.com/api/v1/pipelines/2/pipings/': { "collection_links": { "pipeline": "https://example.com/api/v1/pipelines/2/" }, "count": 8, "next": None, "previous": None, "results": [ { "id": 4, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": None, "url": "https://example.com/api/v1/pipelines/pipings/4/" }, { "id": 5, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/4/", "previous_id": 4, "url": "https://example.com/api/v1/pipelines/pipings/5/" }, { "id": 6, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/4/", "previous_id": 4, "url": "https://example.com/api/v1/pipelines/pipings/6/" }, { "id": 7, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/5/", "previous_id": 5, "url": "https://example.com/api/v1/pipelines/pipings/7/" }, { "id": 8, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/6/", "previous_id": 6, "url": "https://example.com/api/v1/pipelines/pipings/8/" }, { "id": 9, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/6/", "previous_id": 6, "url": "https://example.com/api/v1/pipelines/pipings/9/" }, { "id": 10, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/6/", "previous_id": 6, "url": "https://example.com/api/v1/pipelines/pipings/10/" }, { "id": 11, "pipeline": "https://example.com/api/v1/pipelines/2/", "pipeline_id": 2, "plugin": "https://example.com/api/v1/plugins/4/", "plugin_id": 4, "previous": "https://example.com/api/v1/pipelines/pipings/10/", "previous_id": 10, "url": "https://example.com/api/v1/pipelines/pipings/11/" } ] }, 'https://example.com/api/v1/pipelines/2/parameters/': { "count": 40, "next": None, "previous": None, "results": [ { "id": 8, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/4/", "plugin_piping_id": 4, "plugin_version": "2.0.2", "previous_plugin_piping_id": None, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/8/", "value": "0" }, { "id": 7, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/4/", "plugin_piping_id": 4, "plugin_version": "2.0.2", "previous_plugin_piping_id": None, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/7/", "value": "a" }, { "id": 10, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/5/", "plugin_piping_id": 5, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/10/", "value": "0" }, { "id": 9, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/5/", "plugin_piping_id": 5, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/9/", "value": "b" }, { "id": 12, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/6/", "plugin_piping_id": 6, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/12/", "value": "0" }, { "id": 11, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/6/", "plugin_piping_id": 6, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/11/", "value": "c" }, { "id": 14, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/7/", "plugin_piping_id": 7, "plugin_version": "2.0.2", "previous_plugin_piping_id": 5, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/14/", "value": "0" }, { "id": 13, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/7/", "plugin_piping_id": 7, "plugin_version": "2.0.2", "previous_plugin_piping_id": 5, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/13/", "value": "d" }, { "id": 16, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/8/", "plugin_piping_id": 8, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/16/", "value": "0" }, { "id": 15, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/8/", "plugin_piping_id": 8, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/15/", "value": "e" }, { "id": 18, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/9/", "plugin_piping_id": 9, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/18/", "value": "0" }, { "id": 17, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/9/", "plugin_piping_id": 9, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/17/", "value": "f" }, { "id": 20, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/10/", "plugin_piping_id": 10, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/20/", "value": "0" }, { "id": 19, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/10/", "plugin_piping_id": 10, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/19/", "value": "g" }, { "id": 22, "param_id": 11, "param_name": "sleepLength", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/11/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/11/", "plugin_piping_id": 11, "plugin_version": "2.0.2", "previous_plugin_piping_id": 10, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/22/", "value": "0" }, { "id": 21, "param_id": 9, "param_name": "prefix", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/9/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/11/", "plugin_piping_id": 11, "plugin_version": "2.0.2", "previous_plugin_piping_id": 10, "type": "string", "url": "https://example.com/api/v1/pipelines/string-parameter/21/", "value": "h" }, { "id": 4, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/4/", "plugin_piping_id": 4, "plugin_version": "2.0.2", "previous_plugin_piping_id": None, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/4/", "value": 1 }, { "id": 5, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/5/", "plugin_piping_id": 5, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/5/", "value": 1 }, { "id": 6, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/6/", "plugin_piping_id": 6, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/6/", "value": 1 }, { "id": 7, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/7/", "plugin_piping_id": 7, "plugin_version": "2.0.2", "previous_plugin_piping_id": 5, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/7/", "value": 1 }, { "id": 8, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/8/", "plugin_piping_id": 8, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/8/", "value": 1 }, { "id": 9, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/9/", "plugin_piping_id": 9, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/9/", "value": 1 }, { "id": 10, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/10/", "plugin_piping_id": 10, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/10/", "value": 1 }, { "id": 11, "param_id": 12, "param_name": "dummyInt", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/12/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/11/", "plugin_piping_id": 11, "plugin_version": "2.0.2", "previous_plugin_piping_id": 10, "type": "integer", "url": "https://example.com/api/v1/pipelines/integer-parameter/11/", "value": 1 }, { "id": 4, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/4/", "plugin_piping_id": 4, "plugin_version": "2.0.2", "previous_plugin_piping_id": None, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/4/", "value": 1.1 }, { "id": 5, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/5/", "plugin_piping_id": 5, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/5/", "value": 1.1 }, { "id": 6, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/6/", "plugin_piping_id": 6, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/6/", "value": 1.1 }, { "id": 7, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/7/", "plugin_piping_id": 7, "plugin_version": "2.0.2", "previous_plugin_piping_id": 5, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/7/", "value": 1.1 }, { "id": 8, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/8/", "plugin_piping_id": 8, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/8/", "value": 1.1 }, { "id": 9, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/9/", "plugin_piping_id": 9, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/9/", "value": 1.1 }, { "id": 10, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/10/", "plugin_piping_id": 10, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/10/", "value": 1.1 }, { "id": 11, "param_id": 13, "param_name": "dummyFloat", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/13/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/11/", "plugin_piping_id": 11, "plugin_version": "2.0.2", "previous_plugin_piping_id": 10, "type": "float", "url": "https://example.com/api/v1/pipelines/float-parameter/11/", "value": 1.1 }, { "id": 4, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/4/", "plugin_piping_id": 4, "plugin_version": "2.0.2", "previous_plugin_piping_id": None, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/4/", "value": False }, { "id": 5, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/5/", "plugin_piping_id": 5, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/5/", "value": False }, { "id": 6, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/6/", "plugin_piping_id": 6, "plugin_version": "2.0.2", "previous_plugin_piping_id": 4, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/6/", "value": False }, { "id": 7, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/7/", "plugin_piping_id": 7, "plugin_version": "2.0.2", "previous_plugin_piping_id": 5, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/7/", "value": False }, { "id": 8, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/8/", "plugin_piping_id": 8, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/8/", "value": False }, { "id": 9, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/9/", "plugin_piping_id": 9, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/9/", "value": False }, { "id": 10, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/10/", "plugin_piping_id": 10, "plugin_version": "2.0.2", "previous_plugin_piping_id": 6, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/10/", "value": False }, { "id": 11, "param_id": 10, "param_name": "b_ignoreInputDir", "plugin_id": 4, "plugin_name": "pl-simpledsapp", "plugin_param": "https://example.com/api/v1/plugins/parameters/10/", "plugin_piping": "https://example.com/api/v1/pipelines/pipings/11/", "plugin_piping_id": 11, "plugin_version": "2.0.2", "previous_plugin_piping_id": 10, "type": "boolean", "url": "https://example.com/api/v1/pipelines/boolean-parameter/11/", "value": False } ] } }
41.738372
91
0.434824
3,339
35,895
4.513926
0.035639
0.070064
0.093418
0.208997
0.946192
0.940618
0.925425
0.918723
0.891786
0.891786
0
0.047414
0.405962
35,895
859
92
41.786962
0.659429
0.000446
0
0.698002
0
0
0.477855
0.036402
0
0
0
0.001164
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36cac3d91cde933c672b11b7a737c429688ccb69
28
py
Python
test/fixtures/python/corpus/assignment.A.py
matsubara0507/semantic
67899f701abc0f1f0cb4374d8d3c249afc33a272
[ "MIT" ]
8,844
2019-05-31T15:47:12.000Z
2022-03-31T18:33:51.000Z
test/fixtures/python/corpus/assignment.A.py
matsubara0507/semantic
67899f701abc0f1f0cb4374d8d3c249afc33a272
[ "MIT" ]
401
2019-05-31T18:30:26.000Z
2022-03-31T16:32:29.000Z
test/fixtures/python/corpus/assignment.A.py
matsubara0507/semantic
67899f701abc0f1f0cb4374d8d3c249afc33a272
[ "MIT" ]
504
2019-05-31T17:55:03.000Z
2022-03-30T04:15:04.000Z
a = 1 a, b = 1, 2 a, = 1, 2
7
11
0.321429
9
28
1
0.444444
0.444444
0
0
0
0
0
0
0
0
0
0.3125
0.428571
28
3
12
9.333333
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
1
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
7
36d0247854225a7b0923144d94a396692fbbdca7
10,547
py
Python
CodonSubstitution/build/biopython/Tests/test_pairwise2.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
1
2019-08-05T08:39:27.000Z
2019-08-05T08:39:27.000Z
CodonSubstitution/build/biopython/Tests/test_pairwise2.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
CodonSubstitution/build/biopython/Tests/test_pairwise2.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import unittest from Bio import pairwise2 class TestPairwiseGlobal(unittest.TestCase): def test_globalxx_simple(self): aligns = pairwise2.align.globalxx("GAACT", "GAT") self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAACT ||||| G-A-T Score=3 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAACT ||||| GA--T Score=3 """) class TestPairwiseLocal(unittest.TestCase): def test_localxs(self): aligns = pairwise2.align.localxs("AxBx", "zABz", -0.1, 0) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ -AxBx ||| zA-Bz Score=1.9 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ -AxBx |||| zA-Bz Score=1.9 """) class TestPairwiseOpenPenalty(unittest.TestCase): def test_match_score_open_penalty1(self): aligns = pairwise2.align.globalms("AA", "A", 2.0, -1, -0.1, 0) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ AA || -A Score=1.9 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ AA || A- Score=1.9 """) def test_match_score_open_penalty2(self): aligns = pairwise2.align.globalms("GAA", "GA", 1.5, 0, -0.1, 0) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAA ||| G-A Score=2.9 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAA ||| GA- Score=2.9 """) def test_match_score_open_penalty3(self): aligns = pairwise2.align.globalxs("GAACT", "GAT", -0.1, 0) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAACT ||||| GA--T Score=2.9 """) def test_match_score_open_penalty4(self): aligns = pairwise2.align.globalms("GCT", "GATA", 1, -2, -0.1, 0) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GCT- |||| GATA Score=-0.1 """) class TestPairwiseExtendPenalty(unittest.TestCase): def test_extend_penalty1(self): aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -0.5) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| G--T Score=1.3 """) def test_extend_penalty2(self): aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -1.5) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| -G-T Score=0.6 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| G-T- Score=0.6 """) class TestPairwisePenalizeExtendWhenOpening(unittest.TestCase): def test_penalize_extend_when_opening(self): aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -1.5, penalize_extend_when_opening=1) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| G--T Score=-1.2 """) class TestPairwisePenalizeEndgaps(unittest.TestCase): def test_penalize_end_gaps(self): aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -0.8, penalize_end_gaps=0) self.assertEqual(len(aligns), 3) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| --GT Score=1 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| G--T Score=1 """) seq1, seq2, score, begin, end = aligns[2] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GACT |||| GT-- Score=1 """) class TestPairwiseSeparateGapPenalties(unittest.TestCase): def test_separate_gap_penalties1(self): aligns = pairwise2.align.localxd("GAT", "GTCT", -0.3, 0, -0.8, 0) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ G-AT |||| GTCT Score=1.7 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GA-T |||| GTCT Score=1.7 """) def test_separate_gap_penalties2(self): aligns = pairwise2.align.localxd("GAT", "GTCT", -0.5, 0, -0.2, 0) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ GAT-- ||| G-TCT Score=1.8 """) class TestPairwiseSeparateGapPenaltiesWithExtension(unittest.TestCase): def test_separate_gap_penalties_with_extension(self): aligns = pairwise2.align.localxd(list("GAAT"), list("GTCCT"), -0.1, 0, -0.1, -0.1, gap_char=["-"]) self.assertEqual(len(aligns), 3) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ['G', '-', 'A', 'A', 'T'] ||||| ['G', 'T', 'C', 'C', 'T'] Score=1.9 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ['G', 'A', '-', 'A', 'T'] ||||| ['G', 'T', 'C', 'C', 'T'] Score=1.9 """) seq1, seq2, score, begin, end = aligns[2] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ['G', 'A', 'A', '-', 'T'] ||||| ['G', 'T', 'C', 'C', 'T'] Score=1.9 """) class TestPairwiseMatchDictionary(unittest.TestCase): match_dict = { ("A", "A") : 1.5, ("A", "T") : 0.5, ("T", "T") : 1.0 } def test_match_dictionary1(self): aligns = pairwise2.align.localds("ATAT", "ATT", self.match_dict, -.5, 0) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ATAT |||| AT-T Score=3 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ATAT ||| ATT- Score=3 """) def test_match_dictionary2(self): aligns = pairwise2.align.localds("ATAT", "ATT", self.match_dict, -1, 0) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ATAT ||| ATT- Score=3 """) def test_match_dictionary3(self): aligns = pairwise2.align.localds("ATT", "ATAT", self.match_dict, -1, 0) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ ATT- ||| ATAT Score=3 """) class TestPairwiseOneCharacter(unittest.TestCase): def test_align_one_char1(self): aligns = pairwise2.align.localxs("abcde", "c", -0.3, -0.1) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ abcde | --c-- Score=1 """) def test_align_one_char2(self): aligns = pairwise2.align.localxs("abcce", "c", -0.3, -0.1) self.assertEqual(len(aligns), 2) aligns.sort() seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ abcce | ---c- Score=1 """) seq1, seq2, score, begin, end = aligns[1] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ abcce | --c-- Score=1 """) def test_align_one_char3(self): aligns = pairwise2.align.globalxs("abcde", "c", -0.3, -0.1) self.assertEqual(len(aligns), 1) seq1, seq2, score, begin, end = aligns[0] alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end) self.assertEqual(alignment, """\ abcde ||||| --c-- Score=0.2 """) if __name__ == '__main__': runner = unittest.TextTestRunner(verbosity = 2) unittest.main(testRunner=runner)
27.394805
106
0.614677
1,308
10,547
4.876147
0.103976
0.077767
0.126372
0.174976
0.812167
0.744434
0.73048
0.725619
0.705394
0.70461
0
0.045405
0.221106
10,547
384
107
27.466146
0.73098
0.017256
0
0.742515
0
0
0.110704
0
0
0
0
0
0.146707
1
0.056886
false
0
0.005988
0
0.095808
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
7fdb6a83d1f57e3798f91b61a5aab1bc618d9832
19,920
py
Python
tests/api/services/test_patch_service.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
3
2017-07-05T20:09:59.000Z
2018-11-27T22:02:57.000Z
tests/api/services/test_patch_service.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
24
2017-04-18T15:14:04.000Z
2019-03-20T19:09:07.000Z
tests/api/services/test_patch_service.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
8
2017-04-03T13:24:27.000Z
2021-11-08T20:28:10.000Z
# coding= utf-8 # Copyright (c) 2014 Rackspace, 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. import time import uuid import ddt import jsonpatch from tests.api import base @ddt.ddt class TestServicePatch(base.TestBase): """Tests for PATCH Services.""" def setUp(self): super(TestServicePatch, self).setUp() self.service_name = self.generate_random_string(prefix='api-test') self.flavor_id = self.test_flavor self.log_delivery = {"enabled": False} domain = self.generate_random_string( prefix='www.api-test-domain') + '.com' self.domain_list = [ { "domain": domain, "protocol": "http" } ] origin = self.generate_random_string(prefix='api-test-origin') + '.com' self.origin_list = [ { "origin": origin, "port": 80, "ssl": False, "rules": [ { "name": "default", "request_url": "/*" } ] } ] self.caching_list = [ { "name": "default", "ttl": 3600, "rules": [ { "name": "default", "request_url": "/*" } ] }, { "name": "home", "ttl": 1200, "rules": [ { "name": "index", "request_url": "/index.htm" } ] } ] self.restrictions_list = [ {"name": "website only", "access": "whitelist", "rules": [{"name": "mywebsite.com", "referrer": "www.mywebsite.com", "request_url": "/*" }]}] resp = self.setup_service( service_name=self.service_name, domain_list=self.domain_list, origin_list=self.origin_list, caching_list=self.caching_list, restrictions_list=self.restrictions_list, flavor_id=self.flavor_id, log_delivery=self.log_delivery) self.service_url = resp.headers["location"] self.original_service_details = { "name": self.service_name, "domains": self.domain_list, "origins": self.origin_list, "caching": self.caching_list, "restrictions": self.restrictions_list, "flavor_id": self.flavor_id, "log_delivery": self.log_delivery} def _replace_domain(self, domain): if ('protocol' in domain): if domain['protocol'] == 'https': if (domain['certificate'] == u'shared'): return self.generate_random_string(prefix='api-test-ssl') return self.generate_random_string(prefix='www.api-test-ssl') + '.com' @ddt.file_data('data_patch_service.json') def test_patch_service(self, test_data): for item in test_data: if 'skip_test' in item: self.skipTest('Not Implemented - bug# 1433807') if ('domain' in item['path']) and ('value' in item): if isinstance(item['value'], (list)): item['value'][0]['domain'] = self._replace_domain( domain=item['value'][0]) else: item['value']['domain'] = self._replace_domain( domain=item['value']) patch = jsonpatch.JsonPatch(test_data) expected_service_details = patch.apply(self.original_service_details) # Default restriciton to whitelist expected_restrictions = expected_service_details['restrictions'] for restriction in expected_restrictions: if 'access' not in restriction: restriction['access'] = 'whitelist' resp = self.client.patch_service(location=self.service_url, request_body=test_data) self.assertEqual(resp.status_code, 202) self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') expected_origin = expected_service_details['origins'] for field in expected_origin: if 'hostheadertype' not in field: field['hostheadertype'] = 'domain' elif field['hostheadertype'] == 'origin': field['hostheadervalue'] = field['origin'] self.assert_patch_service_details(body, expected_service_details) def test_repatch_add_domain_service_after_domain_deletion(self): additional_domain = self.generate_random_string( prefix='www.api-test-domain') + '.com' def _patch_add_domain(domain): patch_add_domain = [ { "op": "add", "path": "/domains/-", "value": { "domain": domain, "protocol": "http" } } ] resp = self.client.patch_service(location=self.service_url, request_body=patch_add_domain) self.assertEqual(resp.status_code, 202) self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') # NOTE(TheSriram): Patch and add a domain. _patch_add_domain(domain=additional_domain) # NOTE(TheSriram): Delete the domain, that was just added. delete_domain = [ { "op": "remove", "path": "/domains/1" } ] resp = self.client.patch_service(location=self.service_url, request_body=delete_domain) self.assertEqual(resp.status_code, 202) self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') # NOTE(TheSriram): Re-add the deleted domain, this should go through # as the corresponding entry for that domain, should have been removed # from the storage layer. _patch_add_domain(domain=additional_domain) def test_repatch_add_same_domain_with_different_protocol(self): additional_domain = self.domain_list[0]['domain'] patch_add_domain = [ { "op": "add", "path": "/domains/-", "value": { "domain": additional_domain, "protocol": "https", "certificate": "san" } } ] resp = self.client.patch_service(location=self.service_url, request_body=patch_add_domain) self.assertEqual(resp.status_code, 400) @ddt.file_data('data_patch_service_negative.json') def test_patch_service_HTTP_400(self, test_data): resp = self.client.patch_service(location=self.service_url, request_body=test_data) self.assertEqual(resp.status_code, 400) # nothing should have changed. resp = self.client.get_service(location=self.service_url) self.assertEqual(resp.status_code, 200) body = resp.json() self.assertEqual(body['status'], 'deployed') expected_origin = self.original_service_details['origins'] for field in expected_origin: if 'hostheadertype' not in field: field['hostheadertype'] = 'domain' elif field['hostheadertype'] == 'origin': field['hostheadervalue'] = field['origin'] self.assert_patch_service_details(body, self.original_service_details) def test_patch_service_claim_relinquish_domain(self): newdomain = "www." + str(uuid.uuid4()) + ".com" add_domain = ( [{ "op": "add", "path": "/domains/-", "value": {"domain": newdomain, "protocol": "http"} }]) remove_domain = ( [{ "op": "remove", "path": "/domains/1" }]) # add new domain resp = self.client.patch_service(location=self.service_url, request_body=add_domain) self.assertEqual(resp.status_code, 202) # wait for the domain to be added self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) # make sure the new domain is added resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') self.assertEqual(body['domains'][-1]['domain'], newdomain) # remove the new domain resp = self.client.patch_service(location=self.service_url, request_body=remove_domain) self.assertEqual(resp.status_code, 202) # wait for the domain to be removed self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) # make sure the new domain is removed resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') for domain in body['domains']: self.assertNotEqual(domain['domain'], newdomain) # add new domain, again resp = self.client.patch_service(location=self.service_url, request_body=add_domain) self.assertEqual(resp.status_code, 202) # wait for the domain to be added self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) # make sure the new domain is added resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') self.assertEqual(body['domains'][-1]['domain'], newdomain) def test_patch_service_add_duplicate_domain(self): # create second service service_name = str(uuid.uuid1()) duplicate_domain = 'www.' + str(uuid.uuid1()) + '.com' domain_list = [{"domain": duplicate_domain, "protocol": "http"}] origin = str(uuid.uuid1()) + '.com' origin_list = [{"origin": origin, "port": 80, "ssl": False, "rules": []}] resp = self.client.create_service( service_name=service_name, domain_list=domain_list, origin_list=origin_list, flavor_id=self.flavor_id) service_url = resp.headers["location"] # wait until the service is deployed self.client.wait_for_service_status( location=service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) resp = self.client.get_service(location=service_url) body = resp.json() self.assertEqual(resp.status_code, 200) self.assertEqual(body['status'], 'deployed') # wait to make sure cassandra is eventually consistent time.sleep(self.test_config.cassandra_consistency_wait_time) # patch original service with the duplicate domain add_duplicate_domain = ( [{ "op": "add", "path": "/domains/-", "value": {"domain": duplicate_domain, "protocol": "http"} }]) # add the duplicate domain resp = self.client.patch_service(location=self.service_url, request_body=add_duplicate_domain) self.assertEqual(resp.status_code, 400) self.client.delete_service(location=service_url) def tearDown(self): self.client.delete_service(location=self.service_url) if self.test_config.generate_flavors: self.client.delete_flavor(flavor_id=self.flavor_id) super(TestServicePatch, self).tearDown() @ddt.ddt class TestServicePatchWithLogDelivery(base.TestBase): """Tests for PATCH Services.""" def setUp(self): super(TestServicePatchWithLogDelivery, self).setUp() self.service_name = self.generate_random_string(prefix='api-test') self.flavor_id = self.test_flavor self.log_delivery = {"enabled": True} domain = self.generate_random_string( prefix='www.api-test-domain') + '.com' self.domain_list = [ { "domain": domain, "protocol": "http" } ] origin = self.generate_random_string(prefix='api-test-origin') + '.com' self.origin_list = [ { "origin": origin, "port": 80, "ssl": False, "rules": [ { "name": "default", "request_url": "/*" } ] } ] self.caching_list = [ { "name": "default", "ttl": 3600, "rules": [ { "name": "default", "request_url": "/*" } ] }, { "name": "home", "ttl": 1200, "rules": [ { "name": "index", "request_url": "/index.htm" } ] } ] self.restrictions_list = [ {"name": "website only", "access": "whitelist", "rules": [{"name": "mywebsite.com", "referrer": "www.mywebsite.com", "request_url": "/*" }]}] resp = self.setup_service( service_name=self.service_name, domain_list=self.domain_list, origin_list=self.origin_list, caching_list=self.caching_list, restrictions_list=self.restrictions_list, flavor_id=self.flavor_id, log_delivery=self.log_delivery) self.service_url = resp.headers["location"] self.original_service_details = { "name": self.service_name, "domains": self.domain_list, "origins": self.origin_list, "caching": self.caching_list, "restrictions": self.restrictions_list, "flavor_id": self.flavor_id, "log_delivery": self.log_delivery} def _replace_domain(self, domain): if ('protocol' in domain): if domain['protocol'] == 'https': if (domain['certificate'] == u'shared'): return self.generate_random_string(prefix='api-test-ssl') return self.generate_random_string(prefix='www.api-test-ssl') + '.com' @ddt.file_data('data_patch_service.json') def test_patch_service(self, test_data): for item in test_data: if 'skip_test' in item: self.skipTest('Not Implemented - bug# 1433807') if ('domain' in item['path']) and ('value' in item): if isinstance(item['value'], (list)): item['value'][0]['domain'] = self._replace_domain( domain=item['value'][0]) else: item['value']['domain'] = self._replace_domain( domain=item['value']) patch = jsonpatch.JsonPatch(test_data) expected_service_details = patch.apply(self.original_service_details) # Default restriction to whitelist expected_restrictions = expected_service_details['restrictions'] for restriction in expected_restrictions: if 'access' not in restriction: restriction['access'] = 'whitelist' expected_origin = expected_service_details['origins'] for item in expected_origin: if 'hostheadertype' not in item: item['hostheadertype'] = 'domain' resp = self.client.patch_service(location=self.service_url, request_body=test_data) self.assertEqual(resp.status_code, 202) self.client.wait_for_service_status( location=self.service_url, status='deployed', abort_on_status='failed', retry_interval=self.test_config.status_check_retry_interval, retry_timeout=self.test_config.status_check_retry_timeout) resp = self.client.get_service(location=self.service_url) body = resp.json() self.assertEqual(body['status'], 'deployed') expected_origin = expected_service_details['origins'] for item in expected_origin: if 'hostheadertype' not in item: item['hostheadertype'] = 'domain' elif item['hostheadertype'] == 'origin': item['hostheadervalue'] = item['origin'] self.assert_patch_service_details(body, expected_service_details) def tearDown(self): self.client.delete_service(location=self.service_url) if self.test_config.generate_flavors: self.client.delete_flavor(flavor_id=self.flavor_id) super(TestServicePatchWithLogDelivery, self).tearDown()
36.0217
79
0.556325
1,991
19,920
5.329483
0.118031
0.036283
0.038262
0.05598
0.817171
0.800584
0.779191
0.765149
0.761757
0.753558
0
0.007359
0.338303
19,920
552
80
36.086957
0.797663
0.071285
0
0.739857
0
0
0.112502
0.004227
0
0
0
0
0.064439
1
0.033413
false
0
0.011933
0
0.059666
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3d35e58be20c3a6653aa45ceb0852b725999bd44
96,147
py
Python
tests/composition/test_autodiffcomposition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/composition/test_autodiffcomposition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
tests/composition/test_autodiffcomposition.py
bdsinger/PsyNeuLink
71d8a0bb1691ff85061d4ad3de866d9930a69a73
[ "Apache-2.0" ]
null
null
null
import logging import timeit as timeit import numpy as np import pytest import psyneulink as pnl from psyneulink.core.components.functions.transferfunctions import Logistic from psyneulink.core.components.mechanisms.processing.compositioninterfacemechanism import CompositionInterfaceMechanism from psyneulink.core.components.mechanisms.processing.transfermechanism import TransferMechanism from psyneulink.core.components.process import Process from psyneulink.core.components.projections.pathway.mappingprojection import MappingProjection from psyneulink.core.components.system import System try: import torch from psyneulink.library.compositions.autodiffcomposition import AutodiffComposition torch_available = True except ImportError: torch_available = False logger = logging.getLogger(__name__) # All tests are set to run. If you need to skip certain tests, # see http://doc.pytest.org/en/latest/skipping.html # Unit tests for functions of AutodiffComposition class that are new (not in Composition) # or override functions in Composition @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.acconstructor class TestACConstructor: def test_no_args(self): comp = AutodiffComposition() assert isinstance(comp, AutodiffComposition) def test_two_calls_no_args(self): comp = AutodiffComposition() comp_2 = AutodiffComposition() assert isinstance(comp, AutodiffComposition) assert isinstance(comp_2, AutodiffComposition) # KAM removed this pytest 10/30 after removing target_CIM # def test_target_CIM(self): # comp = AutodiffComposition() # assert isinstance(comp.target_CIM, CompositionInterfaceMechanism) # assert comp.target_CIM.composition == comp # assert comp.target_CIM_states == {} def test_pytorch_representation(self): comp = AutodiffComposition() assert comp.pytorch_representation == None def test_report_prefs(self): comp = AutodiffComposition() assert comp.input_CIM.reportOutputPref == False assert comp.output_CIM.reportOutputPref == False # assert comp.target_CIM.reportOutputPref == False def test_patience(self): comp = AutodiffComposition(patience=10) assert comp.patience == 10 @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.acmisc class TestMiscTrainingFunctionality: # test whether pytorch parameters are initialized to be identical to the Autodiff Composition's # projections when AC is initialized with the "param_init_from_pnl" argument set to True def test_param_init_from_pnl(self): # create xor model mechanisms and projections xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection(matrix=np.random.rand(2,10)) out_map = MappingProjection(matrix=np.random.rand(10,1)) # put the mechanisms and projections together in an autodiff composition (AC) xor = AutodiffComposition(param_init_from_pnl=True) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # mini version of xor.execute just to build up pytorch representation xor._analyze_graph() xor._build_pytorch_representation(execution_id=xor.default_execution_id) # check whether pytorch parameters are identical to projections assert np.allclose(hid_map.parameters.matrix.get(None), xor.parameters.pytorch_representation.get(xor).params[0].detach().numpy()) assert np.allclose(out_map.parameters.matrix.get(None), xor.parameters.pytorch_representation.get(xor).params[1].detach().numpy()) # test whether processing doesn't interfere with pytorch parameters after training def test_training_then_processing(self): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection() out_map = MappingProjection() xor = AutodiffComposition(param_init_from_pnl=True) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # train model for a few epochs # results_before_proc = xor.run(inputs={xor_in:xor_inputs}, # targets={xor_out:xor_targets}, # epochs=10) results_before_proc = xor.run(inputs = {"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) # get weight parameters from pytorch pt_weights_hid_bp = xor.parameters.pytorch_representation.get(xor).params[0].detach().numpy().copy() pt_weights_out_bp = xor.parameters.pytorch_representation.get(xor).params[1].detach().numpy().copy() #KAM temporarily removed -- will reimplement when pytorch weights can be used in pure PNL execution # do processing on a few inputs # results_proc = xor.run(inputs={xor_in:xor_inputs}) # results_proc = xor.run(inputs={"inputs": {xor_in:xor_inputs}}) # # # get weight parameters from pytorch # pt_weights_hid_ap = xor.parameters.pytorch_representation.get(xor).params[0].detach().numpy().copy() # pt_weights_out_ap = xor.parameters.pytorch_representation.get(xor).params[1].detach().numpy().copy() # # # check that weight parameters before and after processing are the same # assert np.allclose(pt_weights_hid_bp, pt_weights_hid_ap) # assert np.allclose(pt_weights_out_bp, pt_weights_out_ap) @pytest.mark.parametrize( 'loss', ['l1', 'poissonnll'] ) def test_various_loss_specs(self, loss): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection() out_map = MappingProjection() xor = AutodiffComposition(param_init_from_pnl=True, loss_spec=loss) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) xor.run(inputs = {"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) def test_pytorch_loss_spec(self): ls = torch.nn.SoftMarginLoss(reduction='sum') xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection() out_map = MappingProjection() xor = AutodiffComposition(param_init_from_pnl=True, loss_spec=ls) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) xor.run(inputs={"inputs": {xor_in: xor_inputs}, "targets": {xor_out: xor_targets}, "epochs": 10}) @pytest.mark.parametrize( 'learning_rate, weight_decay, optimizer_type', [ (10, 0, 'sgd'), (1.5, 1, 'sgd'), (1.5, 1, 'adam'), ] ) def test_optimizer_specs(self, learning_rate, weight_decay, optimizer_type): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection() out_map = MappingProjection() xor = AutodiffComposition(param_init_from_pnl=True, learning_rate=learning_rate, optimizer_type=optimizer_type, weight_decay=weight_decay) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # train model for a few epochs # results_before_proc = xor.run(inputs={xor_in:xor_inputs}, # targets={xor_out:xor_targets}, # epochs=10) results_before_proc = xor.run(inputs = {"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) # test whether pytorch parameters and projections are kept separate (at diff. places in memory) def test_params_stay_separate(self): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_m = np.random.rand(2,10) out_m = np.random.rand(10,1) hid_map = MappingProjection(name='hid_map', matrix=hid_m.copy(), sender=xor_in, receiver=xor_hid) out_map = MappingProjection(name='out_map', matrix=out_m.copy(), sender=xor_hid, receiver=xor_out) xor = AutodiffComposition(param_init_from_pnl=True, learning_rate=10.0, optimizer_type="sgd") xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # train the model for a few epochs result = xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) # get weight parameters from pytorch pt_weights_hid = xor.parameters.pytorch_representation.get(xor).params[0].detach().numpy().copy() pt_weights_out = xor.parameters.pytorch_representation.get(xor).params[1].detach().numpy().copy() # assert that projections are still what they were initialized as assert np.allclose(hid_map.parameters.matrix.get(None), hid_m) assert np.allclose(out_map.parameters.matrix.get(None), out_m) # assert that projections didn't change during training with the pytorch # parameters (they should now be different) assert not np.allclose(pt_weights_hid, hid_map.parameters.matrix.get(None)) assert not np.allclose(pt_weights_out, out_map.parameters.matrix.get(None)) # test whether the autodiff composition's get_parameters method works as desired def test_get_params(self): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection(matrix=np.random.rand(2,10)) out_map = MappingProjection(matrix=np.random.rand(10,1)) xor = AutodiffComposition(param_init_from_pnl=True, learning_rate=1.0) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # call run to only process the inputs, so that pytorch representation of AC gets created # results = xor.run(inputs={xor_in:xor_inputs}) #KAM Changed 11/1/18 # mini version of xor.execute just to build up pytorch representation xor._analyze_graph() # CW changed 12/3/18 xor._build_pytorch_representation(xor.default_execution_id) # OLD # xor._build_pytorch_representation() # call get_parameters to obtain a copy of the pytorch parameters in numpy arrays, # and get the parameters straight from pytorch weights_get_params = xor.get_parameters()[0] weights_straight_1 = xor.parameters.pytorch_representation.get(xor).params[0] weights_straight_2 = xor.parameters.pytorch_representation.get(xor).params[1] # check that parameter copies obtained from get_parameters are the same as the # projections and parameters from pytorch assert np.allclose(hid_map.parameters.matrix.get(None), weights_get_params[hid_map]) assert np.allclose(weights_straight_1.detach().numpy(), weights_get_params[hid_map]) assert np.allclose(out_map.parameters.matrix.get(None), weights_get_params[out_map]) assert np.allclose(weights_straight_2.detach().numpy(), weights_get_params[out_map]) # call run to train the pytorch parameters results = xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 10}) # check that the parameter copies obtained from get_parameters have not changed with the # pytorch parameters during training (and are thus at a different memory location) assert not np.allclose(weights_straight_1.detach().numpy(), weights_get_params[hid_map]) assert not np.allclose(weights_straight_2.detach().numpy(), weights_get_params[out_map]) @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.accorrectness class TestTrainingCorrectness: # test whether xor model created as autodiff composition learns properly @pytest.mark.parametrize( 'eps, calls, opt, from_pnl_or_no', [ (2000, 'single', 'adam', True), # (6000, 'multiple', 'adam', True), (2000, 'single', 'adam', False), # (6000, 'multiple', 'adam', False) ] ) def test_xor_training_correctness(self, eps, calls, opt, from_pnl_or_no): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection(matrix=np.random.rand(2,10), sender=xor_in, receiver=xor_hid) out_map = MappingProjection(matrix=np.random.rand(10,1)) xor = AutodiffComposition(param_init_from_pnl=from_pnl_or_no, optimizer_type=opt, learning_rate=0.1) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) if calls == 'single': results = xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": eps} ) for i in range(len(results[0])): assert np.allclose(np.round(results[0][i][0]), xor_targets[i]) else: results = xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 1} ) for i in range(eps-1): results = xor.run(inputs={"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": 1} ) for i in range(len(results[eps-1])): assert np.allclose(np.round(results[eps-1][i][0]), xor_targets[i]) # tests whether semantic network created as autodiff composition learns properly @pytest.mark.parametrize( 'eps, opt, from_pnl_or_no', [ (1000, 'adam', True), # (1000, 'adam', False) ] ) def test_semantic_net_training_correctness(self, eps, opt, from_pnl_or_no): # MECHANISMS FOR SEMANTIC NET: nouns_in = TransferMechanism(name="nouns_input", default_variable=np.zeros(8)) rels_in = TransferMechanism(name="rels_input", default_variable=np.zeros(3)) h1 = TransferMechanism(name="hidden_nouns", default_variable=np.zeros(8), function=Logistic()) h2 = TransferMechanism(name="hidden_mixed", default_variable=np.zeros(15), function=Logistic()) out_sig_I = TransferMechanism(name="sig_outs_I", default_variable=np.zeros(8), function=Logistic()) out_sig_is = TransferMechanism(name="sig_outs_is", default_variable=np.zeros(12), function=Logistic()) out_sig_has = TransferMechanism(name="sig_outs_has", default_variable=np.zeros(9), function=Logistic()) out_sig_can = TransferMechanism(name="sig_outs_can", default_variable=np.zeros(9), function=Logistic()) # SET UP PROJECTIONS FOR SEMANTIC NET map_nouns_h1 = MappingProjection(matrix=np.random.rand(8,8), name="map_nouns_h1", sender=nouns_in, receiver=h1) map_rels_h2 = MappingProjection(matrix=np.random.rand(3,15), name="map_relh2", sender=rels_in, receiver=h2) map_h1_h2 = MappingProjection(matrix=np.random.rand(8,15), name="map_h1_h2", sender=h1, receiver=h2) map_h2_I = MappingProjection(matrix=np.random.rand(15,8), name="map_h2_I", sender=h2, receiver=out_sig_I) map_h2_is = MappingProjection(matrix=np.random.rand(15,12), name="map_h2_is", sender=h2, receiver=out_sig_is) map_h2_has = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_has", sender=h2, receiver=out_sig_has) map_h2_can = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_can", sender=h2, receiver=out_sig_can) # COMPOSITION FOR SEMANTIC NET sem_net = AutodiffComposition(param_init_from_pnl=from_pnl_or_no, optimizer_type=opt, learning_rate=0.001) sem_net.add_node(nouns_in) sem_net.add_node(rels_in) sem_net.add_node(h1) sem_net.add_node(h2) sem_net.add_node(out_sig_I) sem_net.add_node(out_sig_is) sem_net.add_node(out_sig_has) sem_net.add_node(out_sig_can) sem_net.add_projection(sender=nouns_in, projection=map_nouns_h1, receiver=h1) sem_net.add_projection(sender=rels_in, projection=map_rels_h2, receiver=h2) sem_net.add_projection(sender=h1, projection=map_h1_h2, receiver=h2) sem_net.add_projection(sender=h2, projection=map_h2_I, receiver=out_sig_I) sem_net.add_projection(sender=h2, projection=map_h2_is, receiver=out_sig_is) sem_net.add_projection(sender=h2, projection=map_h2_has, receiver=out_sig_has) sem_net.add_projection(sender=h2, projection=map_h2_can, receiver=out_sig_can) # INPUTS & OUTPUTS FOR SEMANTIC NET: nouns = ['oak', 'pine', 'rose', 'daisy', 'canary', 'robin', 'salmon', 'sunfish'] relations = ['is', 'has', 'can'] is_list = ['living', 'living thing', 'plant', 'animal', 'tree', 'flower', 'bird', 'fish', 'big', 'green', 'red', 'yellow'] has_list = ['roots', 'leaves', 'bark', 'branches', 'skin', 'feathers', 'wings', 'gills', 'scales'] can_list = ['grow', 'move', 'swim', 'fly', 'breathe', 'breathe underwater', 'breathe air', 'walk', 'photosynthesize'] nouns_input = np.identity(len(nouns)) rels_input = np.identity(len(relations)) truth_nouns = np.identity(len(nouns)) truth_is = np.zeros((len(nouns), len(is_list))) truth_is[0, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0] truth_is[1, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0] truth_is[2, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0] truth_is[3, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1] truth_is[4, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[5, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0] truth_is[6, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0] truth_is[7, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0] truth_has = np.zeros((len(nouns), len(has_list))) truth_has[0, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[1, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[2, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[3, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[4, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[5, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[6, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_has[7, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_can = np.zeros((len(nouns), len(can_list))) truth_can[0, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[1, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[2, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[3, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[4, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[5, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[6, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] truth_can[7, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] # SETTING UP DICTIONARY OF INPUTS/OUTPUTS FOR SEMANTIC NET inputs_dict = {} inputs_dict[nouns_in] = [] inputs_dict[rels_in] = [] targets_dict = {} targets_dict[out_sig_I] = [] targets_dict[out_sig_is] = [] targets_dict[out_sig_has] = [] targets_dict[out_sig_can] = [] for i in range(len(nouns)): for j in range(len(relations)): inputs_dict[nouns_in].append(nouns_input[i]) inputs_dict[rels_in].append(rels_input[j]) targets_dict[out_sig_I].append(truth_nouns[i]) targets_dict[out_sig_is].append(truth_is[i]) targets_dict[out_sig_has].append(truth_has[i]) targets_dict[out_sig_can].append(truth_can[i]) # TRAIN THE MODEL result = sem_net.run(inputs=[{'inputs': inputs_dict, 'targets': targets_dict, 'epochs': eps}]) # CHECK CORRECTNESS for i in range(len(result[0])): # go over trial outputs in the single results entry for j in range(len(result[0][i])): # go over outputs for each output layer # get target for terminal node whose output state corresponds to current output correct_value = None curr_CIM_input_state = sem_net.output_CIM.input_states[j] for output_state in sem_net.output_CIM_states.keys(): if sem_net.output_CIM_states[output_state][0] == curr_CIM_input_state: node = output_state.owner correct_value = targets_dict[node][i] # compare model output for terminal node on current trial with target for terminal node on current trial assert np.allclose(np.round(result[0][i][j]), correct_value) @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.actime class TestTrainingTime: @pytest.mark.skip @pytest.mark.parametrize( 'eps, opt', [ (1, 'sgd'), (10, 'sgd'), (100, 'sgd') ] ) def test_and_training_time(self, eps, opt): # SET UP MECHANISMS FOR COMPOSITION and_in = TransferMechanism(name='and_in', default_variable=np.zeros(2)) and_out = TransferMechanism(name='and_out', default_variable=np.zeros(1), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM and_in_sys = TransferMechanism(name='and_in_sys', default_variable=np.zeros(2)) and_out_sys = TransferMechanism(name='and_out_sys', default_variable=np.zeros(1), function=Logistic()) # SET UP PROJECTIONS FOR COMPOSITION and_map = MappingProjection(name='and_map', matrix=np.random.rand(2, 1), sender=and_in, receiver=and_out) # SET UP PROJECTIONS FOR SYSTEM and_map_sys = MappingProjection(name='and_map_sys', matrix=and_map.matrix.copy(), sender=and_in_sys, receiver=and_out_sys) # SET UP COMPOSITION and_net = AutodiffComposition(param_init_from_pnl=True) and_net.add_node(and_in) and_net.add_node(and_out) and_net.add_projection(sender=and_in, projection=and_map, receiver=and_out) # SET UP INPUTS AND TARGETS and_inputs = np.zeros((4,2)) and_inputs[0] = [0, 0] and_inputs[1] = [0, 1] and_inputs[2] = [1, 0] and_inputs[3] = [1, 1] and_targets = np.zeros((4,1)) and_targets[0] = [0] and_targets[1] = [1] and_targets[2] = [1] and_targets[3] = [0] # TIME TRAINING FOR COMPOSITION start = timeit.default_timer() result = and_net.run(inputs={and_in:and_inputs}, targets={and_out:and_targets}, epochs=eps, learning_rate=0.1, controller=opt) end = timeit.default_timer() comp_time = end - start # SET UP SYSTEM and_process = Process(pathway=[and_in_sys, and_map_sys, and_out_sys], learning=pnl.LEARNING) and_sys = System(processes=[and_process], learning_rate=0.1) # TIME TRAINING FOR SYSTEM start = timeit.default_timer() results_sys = and_sys.run(inputs={and_in_sys:and_inputs}, targets={and_out_sys:and_targets}, num_trials=(eps*and_inputs.shape[0]+1)) end = timeit.default_timer() sys_time = end - start # LOG TIMES, SPEEDUP PROVIDED BY COMPOSITION OVER SYSTEM msg = 'Training XOR model as AutodiffComposition for {0} epochs took {1} seconds'.format(eps, comp_time) print(msg) print("\n") logger.info(msg) msg = 'Training XOR model as System for {0} epochs took {1} seconds'.format(eps, sys_time) print(msg) print("\n") logger.info(msg) speedup = np.round((sys_time/comp_time), decimals=2) msg = ('Training XOR model as AutodiffComposition for {0} epochs was {1} times faster than ' 'training it as System for {0} epochs.'.format(eps, speedup)) print(msg) logger.info(msg) @pytest.mark.skip @pytest.mark.parametrize( 'eps, opt', [ (1, 'sgd'), (10, 'sgd'), (100, 'sgd') ] ) def test_xor_training_time(self, eps, opt): # SET UP MECHANISMS FOR COMPOSITION xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM xor_in_sys = TransferMechanism(name='xor_in_sys', default_variable=np.zeros(2)) xor_hid_sys = TransferMechanism(name='xor_hid_sys', default_variable=np.zeros(10), function=Logistic()) xor_out_sys = TransferMechanism(name='xor_out_sys', default_variable=np.zeros(1), function=Logistic()) # SET UP PROJECTIONS FOR COMPOSITION hid_map = MappingProjection(name='hid_map', matrix=np.random.rand(2,10), sender=xor_in, receiver=xor_hid) out_map = MappingProjection(name='out_map', matrix=np.random.rand(10,1), sender=xor_hid, receiver=xor_out) # SET UP PROJECTIONS FOR SYSTEM hid_map_sys = MappingProjection(name='hid_map_sys', matrix=hid_map.matrix.copy(), sender=xor_in_sys, receiver=xor_hid_sys) out_map_sys = MappingProjection(name='out_map_sys', matrix=out_map.matrix.copy(), sender=xor_hid_sys, receiver=xor_out_sys) # SET UP COMPOSITION xor = AutodiffComposition(param_init_from_pnl=True) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # SET UP INPUTS AND TARGETS xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # TIME TRAINING FOR COMPOSITION start = timeit.default_timer() result = xor.run(inputs={xor_in:xor_inputs}, targets={xor_out:xor_targets}, epochs=eps, learning_rate=0.1, controller=opt) end = timeit.default_timer() comp_time = end - start # SET UP SYSTEM xor_process = Process(pathway=[xor_in_sys, hid_map_sys, xor_hid_sys, out_map_sys, xor_out_sys], learning=pnl.LEARNING) xor_sys = System(processes=[xor_process], learning_rate=0.1) # TIME TRAINING FOR SYSTEM start = timeit.default_timer() results_sys = xor_sys.run(inputs={xor_in_sys:xor_inputs}, targets={xor_out_sys:xor_targets}, num_trials=(eps*xor_inputs.shape[0]+1)) end = timeit.default_timer() sys_time = end - start # LOG TIMES, SPEEDUP PROVIDED BY COMPOSITION OVER SYSTEM msg = 'Training XOR model as AutodiffComposition for {0} epochs took {1} seconds'.format(eps, comp_time) print(msg) print("\n") logger.info(msg) msg = 'Training XOR model as System for {0} epochs took {1} seconds'.format(eps, sys_time) print(msg) print("\n") logger.info(msg) speedup = np.round((sys_time/comp_time), decimals=2) msg = ('Training XOR model as AutodiffComposition for {0} epochs was {1} times faster than ' 'training it as System for {0} epochs.'.format(eps, speedup)) print(msg) logger.info(msg) @pytest.mark.skip @pytest.mark.parametrize( 'eps, opt', [ (1, 'sgd'), (10, 'sgd'), (100, 'sgd') ] ) def test_semantic_net_training_time(self, eps, opt): # SET UP MECHANISMS FOR COMPOSITION: nouns_in = TransferMechanism(name="nouns_input", default_variable=np.zeros(8)) rels_in = TransferMechanism(name="rels_input", default_variable=np.zeros(3)) h1 = TransferMechanism(name="hidden_nouns", default_variable=np.zeros(8), function=Logistic()) h2 = TransferMechanism(name="hidden_mixed", default_variable=np.zeros(15), function=Logistic()) out_sig_I = TransferMechanism(name="sig_outs_I", default_variable=np.zeros(8), function=Logistic()) out_sig_is = TransferMechanism(name="sig_outs_is", default_variable=np.zeros(12), function=Logistic()) out_sig_has = TransferMechanism(name="sig_outs_has", default_variable=np.zeros(9), function=Logistic()) out_sig_can = TransferMechanism(name="sig_outs_can", default_variable=np.zeros(9), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM nouns_in_sys = TransferMechanism(name="nouns_input_sys", default_variable=np.zeros(8)) rels_in_sys = TransferMechanism(name="rels_input_sys", default_variable=np.zeros(3)) h1_sys = TransferMechanism(name="hidden_nouns_sys", default_variable=np.zeros(8), function=Logistic()) h2_sys = TransferMechanism(name="hidden_mixed_sys", default_variable=np.zeros(15), function=Logistic()) out_sig_I_sys = TransferMechanism(name="sig_outs_I_sys", default_variable=np.zeros(8), function=Logistic()) out_sig_is_sys = TransferMechanism(name="sig_outs_is_sys", default_variable=np.zeros(12), function=Logistic()) out_sig_has_sys = TransferMechanism(name="sig_outs_has_sys", default_variable=np.zeros(9), function=Logistic()) out_sig_can_sys = TransferMechanism(name="sig_outs_can_sys", default_variable=np.zeros(9), function=Logistic()) # SET UP PROJECTIONS FOR COMPOSITION map_nouns_h1 = MappingProjection(matrix=np.random.rand(8,8), name="map_nouns_h1", sender=nouns_in, receiver=h1) map_rels_h2 = MappingProjection(matrix=np.random.rand(3,15), name="map_rel_h2", sender=rels_in, receiver=h2) map_h1_h2 = MappingProjection(matrix=np.random.rand(8,15), name="map_h1_h2", sender=h1, receiver=h2) map_h2_I = MappingProjection(matrix=np.random.rand(15,8), name="map_h2_I", sender=h2, receiver=out_sig_I) map_h2_is = MappingProjection(matrix=np.random.rand(15,12), name="map_h2_is", sender=h2, receiver=out_sig_is) map_h2_has = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_has", sender=h2, receiver=out_sig_has) map_h2_can = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_can", sender=h2, receiver=out_sig_can) # SET UP PROJECTIONS FOR SYSTEM map_nouns_h1_sys = MappingProjection(matrix=map_nouns_h1.matrix.copy(), name="map_nouns_h1_sys", sender=nouns_in_sys, receiver=h1_sys) map_rels_h2_sys = MappingProjection(matrix=map_rels_h2.matrix.copy(), name="map_relh2_sys", sender=rels_in_sys, receiver=h2_sys) map_h1_h2_sys = MappingProjection(matrix=map_h1_h2.matrix.copy(), name="map_h1_h2_sys", sender=h1_sys, receiver=h2_sys) map_h2_I_sys = MappingProjection(matrix=map_h2_I.matrix.copy(), name="map_h2_I_sys", sender=h2_sys, receiver=out_sig_I_sys) map_h2_is_sys = MappingProjection(matrix=map_h2_is.matrix.copy(), name="map_h2_is_sys", sender=h2_sys, receiver=out_sig_is_sys) map_h2_has_sys = MappingProjection(matrix=map_h2_has.matrix.copy(), name="map_h2_has_sys", sender=h2_sys, receiver=out_sig_has_sys) map_h2_can_sys = MappingProjection(matrix=map_h2_can.matrix.copy(), name="map_h2_can_sys", sender=h2_sys, receiver=out_sig_can_sys) # COMPOSITION FOR SEMANTIC NET sem_net = AutodiffComposition(param_init_from_pnl=True) sem_net.add_node(nouns_in) sem_net.add_node(rels_in) sem_net.add_node(h1) sem_net.add_node(h2) sem_net.add_node(out_sig_I) sem_net.add_node(out_sig_is) sem_net.add_node(out_sig_has) sem_net.add_node(out_sig_can) sem_net.add_projection(sender=nouns_in, projection=map_nouns_h1, receiver=h1) sem_net.add_projection(sender=rels_in, projection=map_rels_h2, receiver=h2) sem_net.add_projection(sender=h1, projection=map_h1_h2, receiver=h2) sem_net.add_projection(sender=h2, projection=map_h2_I, receiver=out_sig_I) sem_net.add_projection(sender=h2, projection=map_h2_is, receiver=out_sig_is) sem_net.add_projection(sender=h2, projection=map_h2_has, receiver=out_sig_has) sem_net.add_projection(sender=h2, projection=map_h2_can, receiver=out_sig_can) # INPUTS & OUTPUTS FOR SEMANTIC NET: nouns = ['oak', 'pine', 'rose', 'daisy', 'canary', 'robin', 'salmon', 'sunfish'] relations = ['is', 'has', 'can'] is_list = ['living', 'living thing', 'plant', 'animal', 'tree', 'flower', 'bird', 'fish', 'big', 'green', 'red', 'yellow'] has_list = ['roots', 'leaves', 'bark', 'branches', 'skin', 'feathers', 'wings', 'gills', 'scales'] can_list = ['grow', 'move', 'swim', 'fly', 'breathe', 'breathe underwater', 'breathe air', 'walk', 'photosynthesize'] nouns_input = np.identity(len(nouns)) rels_input = np.identity(len(relations)) truth_nouns = np.identity(len(nouns)) truth_is = np.zeros((len(nouns), len(is_list))) truth_is[0, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[1, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[2, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[3, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[4, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[5, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[6, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0] truth_is[7, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0] truth_has = np.zeros((len(nouns), len(has_list))) truth_has[0, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[1, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[2, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[3, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[4, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[5, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[6, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_has[7, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_can = np.zeros((len(nouns), len(can_list))) truth_can[0, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[1, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[2, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[3, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[4, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[5, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[6, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] truth_can[7, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] # SETTING UP DICTIONARIES OF INPUTS/OUTPUTS FOR SEMANTIC NET inputs_dict = {} inputs_dict[nouns_in] = [] inputs_dict[rels_in] = [] targets_dict = {} targets_dict[out_sig_I] = [] targets_dict[out_sig_is] = [] targets_dict[out_sig_has] = [] targets_dict[out_sig_can] = [] for i in range(len(nouns)): for j in range(len(relations)): inputs_dict[nouns_in].append(nouns_input[i]) inputs_dict[rels_in].append(rels_input[j]) targets_dict[out_sig_I].append(truth_nouns[i]) targets_dict[out_sig_is].append(truth_is[i]) targets_dict[out_sig_has].append(truth_has[i]) targets_dict[out_sig_can].append(truth_can[i]) inputs_dict_sys = {} inputs_dict_sys[nouns_in_sys] = inputs_dict[nouns_in] inputs_dict_sys[rels_in_sys] = inputs_dict[rels_in] targets_dict_sys = {} targets_dict_sys[out_sig_I_sys] = targets_dict[out_sig_I] targets_dict_sys[out_sig_is_sys] = targets_dict[out_sig_is] targets_dict_sys[out_sig_has_sys] = targets_dict[out_sig_has] targets_dict_sys[out_sig_can_sys] = targets_dict[out_sig_can] # TIME TRAINING FOR COMPOSITION start = timeit.default_timer() result = sem_net.run(inputs=inputs_dict, targets=targets_dict, epochs=eps, learning_rate=0.1, controller=opt) end = timeit.default_timer() comp_time = end - start # SET UP SYSTEM p11 = Process(pathway=[nouns_in_sys, map_nouns_h1_sys, h1_sys, map_h1_h2_sys, h2_sys, map_h2_I_sys, out_sig_I_sys], learning=pnl.LEARNING) p12 = Process(pathway=[rels_in_sys, map_rels_h2_sys, h2_sys, map_h2_is_sys, out_sig_is_sys], learning=pnl.LEARNING) p21 = Process(pathway=[h2_sys, map_h2_has_sys, out_sig_has_sys], learning=pnl.LEARNING) p22 = Process(pathway=[h2_sys, map_h2_can_sys, out_sig_can_sys], learning=pnl.LEARNING) sem_net_sys = System(processes=[p11, p12, p21, p22, ], learning_rate=0.1) # TIME TRAINING FOR SYSTEM start = timeit.default_timer() results = sem_net_sys.run(inputs=inputs_dict_sys, targets=targets_dict_sys, num_trials=(len(inputs_dict[nouns_in])*eps + 1)) end = timeit.default_timer() sys_time = end - start # LOG TIMES, SPEEDUP PROVIDED BY COMPOSITION OVER SYSTEM msg = 'Training Semantic net as AutodiffComposition for {0} epochs took {1} seconds'.format(eps, comp_time) print(msg) print("\n") logger.info(msg) msg = 'Training Semantic net as System for {0} epochs took {1} seconds'.format(eps, sys_time) print(msg) print("\n") logger.info(msg) speedup = np.round((sys_time/comp_time), decimals=2) msg = ('Training Semantic net as AutodiffComposition for {0} epochs was {1} times faster than ' 'training it as System for {0} epochs.'.format(eps, speedup)) print(msg) logger.info(msg) @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.acidenticalness class TestTrainingIdenticalness(): @pytest.mark.parametrize( 'eps, opt', [ # (1, 'sgd'), (10, 'sgd'), # (100, 'sgd') ] ) def test_xor_training_identicalness(self, eps, opt): # SET UP MECHANISMS FOR COMPOSITION xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM xor_in_sys = TransferMechanism(name='xor_in_sys', default_variable=np.zeros(2)) xor_hid_sys = TransferMechanism(name='xor_hid_sys', default_variable=np.zeros(10), function=Logistic()) xor_out_sys = TransferMechanism(name='xor_out_sys', default_variable=np.zeros(1), function=Logistic()) # SET UP PROJECTIONS FOR COMPOSITION hid_map = MappingProjection(name='hid_map', matrix=np.random.rand(2,10), sender=xor_in, receiver=xor_hid) out_map = MappingProjection(name='out_map', matrix=np.random.rand(10,1), sender=xor_hid, receiver=xor_out) # SET UP PROJECTIONS FOR SYSTEM hid_map_sys = MappingProjection(name='hid_map_sys', matrix=hid_map.matrix.copy(), sender=xor_in_sys, receiver=xor_hid_sys) out_map_sys = MappingProjection(name='out_map_sys', matrix=out_map.matrix.copy(), sender=xor_hid_sys, receiver=xor_out_sys) # SET UP COMPOSITION xor = AutodiffComposition(param_init_from_pnl=True, learning_rate=10, optimizer_type=opt) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # SET UP INPUTS AND TARGETS xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # TRAIN COMPOSITION inputs_dict = {"inputs": {xor_in:xor_inputs}, "targets": {xor_out:xor_targets}, "epochs": eps} result = xor.run(inputs=inputs_dict) comp_weights = xor.get_parameters()[0] # SET UP SYSTEM xor_process = Process(pathway=[xor_in_sys, hid_map_sys, xor_hid_sys, out_map_sys, xor_out_sys], learning=pnl.LEARNING) xor_sys = System(processes=[xor_process], learning_rate=10) # TRAIN SYSTEM results_sys = xor_sys.run(inputs={xor_in_sys:xor_inputs}, targets={xor_out_sys:xor_targets}, num_trials=(eps*xor_inputs.shape[0])) # CHECK THAT PARAMETERS FOR COMPOSITION, SYSTEM ARE SAME assert np.allclose(comp_weights[hid_map], hid_map_sys.get_mod_matrix(xor_sys)) assert np.allclose(comp_weights[out_map], out_map_sys.get_mod_matrix(xor_sys)) @pytest.mark.parametrize( 'eps, opt', [ # (1, 'sgd'), (10, 'sgd'), # (40, 'sgd') ] ) def test_semantic_net_training_identicalness(self, eps, opt): # SET UP MECHANISMS FOR SEMANTIC NET: nouns_in = TransferMechanism(name="nouns_input", default_variable=np.zeros(8)) rels_in = TransferMechanism(name="rels_input", default_variable=np.zeros(3)) h1 = TransferMechanism(name="hidden_nouns", default_variable=np.zeros(8), function=Logistic()) h2 = TransferMechanism(name="hidden_mixed", default_variable=np.zeros(15), function=Logistic()) out_sig_I = TransferMechanism(name="sig_outs_I", default_variable=np.zeros(8), function=Logistic()) out_sig_is = TransferMechanism(name="sig_outs_is", default_variable=np.zeros(12), function=Logistic()) out_sig_has = TransferMechanism(name="sig_outs_has", default_variable=np.zeros(9), function=Logistic()) out_sig_can = TransferMechanism(name="sig_outs_can", default_variable=np.zeros(9), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM nouns_in_sys = TransferMechanism(name="nouns_input_sys", default_variable=np.zeros(8)) rels_in_sys = TransferMechanism(name="rels_input_sys", default_variable=np.zeros(3)) h1_sys = TransferMechanism(name="hidden_nouns_sys", default_variable=np.zeros(8), function=Logistic()) h2_sys = TransferMechanism(name="hidden_mixed_sys", default_variable=np.zeros(15), function=Logistic()) out_sig_I_sys = TransferMechanism(name="sig_outs_I_sys", default_variable=np.zeros(8), function=Logistic()) out_sig_is_sys = TransferMechanism(name="sig_outs_is_sys", default_variable=np.zeros(12), function=Logistic()) out_sig_has_sys = TransferMechanism(name="sig_outs_has_sys", default_variable=np.zeros(9), function=Logistic()) out_sig_can_sys = TransferMechanism(name="sig_outs_can_sys", default_variable=np.zeros(9), function=Logistic()) # SET UP PROJECTIONS FOR SEMANTIC NET map_nouns_h1 = MappingProjection(matrix=np.random.rand(8,8), name="map_nouns_h1", sender=nouns_in, receiver=h1) map_rels_h2 = MappingProjection(matrix=np.random.rand(3,15), name="map_relh2", sender=rels_in, receiver=h2) map_h1_h2 = MappingProjection(matrix=np.random.rand(8,15), name="map_h1_h2", sender=h1, receiver=h2) map_h2_I = MappingProjection(matrix=np.random.rand(15,8), name="map_h2_I", sender=h2, receiver=out_sig_I) map_h2_is = MappingProjection(matrix=np.random.rand(15,12), name="map_h2_is", sender=h2, receiver=out_sig_is) map_h2_has = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_has", sender=h2, receiver=out_sig_has) map_h2_can = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_can", sender=h2, receiver=out_sig_can) # SET UP PROJECTIONS FOR SYSTEM map_nouns_h1_sys = MappingProjection(matrix=map_nouns_h1.matrix.copy(), name="map_nouns_h1_sys", sender=nouns_in_sys, receiver=h1_sys) map_rels_h2_sys = MappingProjection(matrix=map_rels_h2.matrix.copy(), name="map_relh2_sys", sender=rels_in_sys, receiver=h2_sys) map_h1_h2_sys = MappingProjection(matrix=map_h1_h2.matrix.copy(), name="map_h1_h2_sys", sender=h1_sys, receiver=h2_sys) map_h2_I_sys = MappingProjection(matrix=map_h2_I.matrix.copy(), name="map_h2_I_sys", sender=h2_sys, receiver=out_sig_I_sys) map_h2_is_sys = MappingProjection(matrix=map_h2_is.matrix.copy(), name="map_h2_is_sys", sender=h2_sys, receiver=out_sig_is_sys) map_h2_has_sys = MappingProjection(matrix=map_h2_has.matrix.copy(), name="map_h2_has_sys", sender=h2_sys, receiver=out_sig_has_sys) map_h2_can_sys = MappingProjection(matrix=map_h2_can.matrix.copy(), name="map_h2_can_sys", sender=h2_sys, receiver=out_sig_can_sys) # SET UP COMPOSITION FOR SEMANTIC NET sem_net = AutodiffComposition(param_init_from_pnl=True, learning_rate=0.5, optimizer_type=opt) sem_net.add_node(nouns_in) sem_net.add_node(rels_in) sem_net.add_node(h1) sem_net.add_node(h2) sem_net.add_node(out_sig_I) sem_net.add_node(out_sig_is) sem_net.add_node(out_sig_has) sem_net.add_node(out_sig_can) sem_net.add_projection(sender=nouns_in, projection=map_nouns_h1, receiver=h1) sem_net.add_projection(sender=rels_in, projection=map_rels_h2, receiver=h2) sem_net.add_projection(sender=h1, projection=map_h1_h2, receiver=h2) sem_net.add_projection(sender=h2, projection=map_h2_I, receiver=out_sig_I) sem_net.add_projection(sender=h2, projection=map_h2_is, receiver=out_sig_is) sem_net.add_projection(sender=h2, projection=map_h2_has, receiver=out_sig_has) sem_net.add_projection(sender=h2, projection=map_h2_can, receiver=out_sig_can) # INPUTS & OUTPUTS FOR SEMANTIC NET: nouns = ['oak', 'pine', 'rose', 'daisy', 'canary', 'robin', 'salmon', 'sunfish'] relations = ['is', 'has', 'can'] is_list = ['living', 'living thing', 'plant', 'animal', 'tree', 'flower', 'bird', 'fish', 'big', 'green', 'red', 'yellow'] has_list = ['roots', 'leaves', 'bark', 'branches', 'skin', 'feathers', 'wings', 'gills', 'scales'] can_list = ['grow', 'move', 'swim', 'fly', 'breathe', 'breathe underwater', 'breathe air', 'walk', 'photosynthesize'] nouns_input = np.identity(len(nouns)) rels_input = np.identity(len(relations)) truth_nouns = np.identity(len(nouns)) truth_is = np.zeros((len(nouns), len(is_list))) truth_is[0, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[1, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[2, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[3, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[4, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[5, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[6, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0] truth_is[7, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0] truth_has = np.zeros((len(nouns), len(has_list))) truth_has[0, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[1, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[2, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[3, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[4, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[5, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[6, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_has[7, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_can = np.zeros((len(nouns), len(can_list))) truth_can[0, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[1, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[2, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[3, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[4, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[5, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[6, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] truth_can[7, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] # SETTING UP DICTIONARY OF INPUTS/OUTPUTS FOR SEMANTIC NET inputs_dict = {} inputs_dict[nouns_in] = [] inputs_dict[rels_in] = [] targets_dict = {} targets_dict[out_sig_I] = [] targets_dict[out_sig_is] = [] targets_dict[out_sig_has] = [] targets_dict[out_sig_can] = [] for i in range(len(nouns)): for j in range(len(relations)): inputs_dict[nouns_in].append(nouns_input[i]) inputs_dict[rels_in].append(rels_input[j]) targets_dict[out_sig_I].append(truth_nouns[i]) targets_dict[out_sig_is].append(truth_is[i]) targets_dict[out_sig_has].append(truth_has[i]) targets_dict[out_sig_can].append(truth_can[i]) inputs_dict_sys = {} inputs_dict_sys[nouns_in_sys] = inputs_dict[nouns_in] inputs_dict_sys[rels_in_sys] = inputs_dict[rels_in] targets_dict_sys = {} targets_dict_sys[out_sig_I_sys] = targets_dict[out_sig_I] targets_dict_sys[out_sig_is_sys] = targets_dict[out_sig_is] targets_dict_sys[out_sig_has_sys] = targets_dict[out_sig_has] targets_dict_sys[out_sig_can_sys] = targets_dict[out_sig_can] sem_net.learning_enabled=False result = sem_net.run(inputs=inputs_dict) # comp_weights = sem_net.get_parameters()[0] # TRAIN COMPOSITION sem_net.learning_enabled=True result = sem_net.run(inputs={"inputs": inputs_dict, "targets": targets_dict, "epochs": eps} ) comp_weights = sem_net.get_parameters()[0] # SET UP SYSTEM p11 = Process(pathway=[nouns_in_sys, map_nouns_h1_sys, h1_sys, map_h1_h2_sys, h2_sys, map_h2_I_sys, out_sig_I_sys], learning=pnl.LEARNING) p12 = Process(pathway=[rels_in_sys, map_rels_h2_sys, h2_sys, map_h2_is_sys, out_sig_is_sys], learning=pnl.LEARNING) p21 = Process(pathway=[h2_sys, map_h2_has_sys, out_sig_has_sys], learning=pnl.LEARNING) p22 = Process(pathway=[h2_sys, map_h2_can_sys, out_sig_can_sys], learning=pnl.LEARNING) sem_net_sys = System(processes=[p11, p12, p21, p22, ], learning_rate=0.5) # TRAIN SYSTEM results = sem_net_sys.run(inputs=inputs_dict_sys, targets=targets_dict_sys, num_trials=(len(inputs_dict_sys[nouns_in_sys])*eps)) # CHECK THAT PARAMETERS FOR COMPOSITION, SYSTEM ARE SAME assert np.allclose(comp_weights[map_nouns_h1], map_nouns_h1_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_rels_h2], map_rels_h2_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_h1_h2], map_h1_h2_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_h2_I], map_h2_I_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_h2_is], map_h2_is_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_h2_has], map_h2_has_sys.get_mod_matrix(sem_net_sys)) assert np.allclose(comp_weights[map_h2_can], map_h2_can_sys.get_mod_matrix(sem_net_sys)) @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.aclogging class TestACLogging: def test_autodiff_logging(self): xor_in = TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=Logistic()) xor_out = TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=Logistic()) hid_map = MappingProjection() out_map = MappingProjection() xor = AutodiffComposition(param_init_from_pnl=True) xor.add_node(xor_in) xor.add_node(xor_hid) xor.add_node(xor_out) xor.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # train model for a few epochs num_epochs = 10 xor.run(inputs={"inputs": {xor_in: xor_inputs}, "targets": {xor_out: xor_targets}, "epochs": num_epochs}, do_logging=True) exec_id = xor.default_execution_id in_np_dict_vals = xor_in.log.nparray_dictionary()[exec_id]['value'] in_np_vals = xor_in.log.nparray()[1][1][1][1:] hid_map_np_dict_mats = hid_map.log.nparray_dictionary()[exec_id]['matrix'] hid_map_np_mats = np.array(hid_map.log.nparray()[1][1][1][1:]) hid_np_dict_vals = xor_hid.log.nparray_dictionary()[exec_id]['value'] out_map_np_dict_mats = out_map.log.nparray_dictionary()[exec_id]['matrix'] out_map_np_mats = np.array(out_map.log.nparray()[1][1][1][1:]) out_np_dict_vals = xor_out.log.nparray_dictionary()[exec_id]['value'] expected_length = len(xor_inputs) * num_epochs assert np.all(in_np_dict_vals[0:4] == xor_inputs) assert np.all(np.array(in_np_vals) == in_np_dict_vals) assert in_np_dict_vals.shape == (expected_length, xor_in.size) assert hid_map_np_dict_mats.shape == (expected_length, xor_in.size, xor_hid.size) assert hid_map_np_mats.shape == hid_map_np_dict_mats.shape assert np.all(hid_map_np_mats[3] == hid_map_np_dict_mats[3]) # CW: 3 is arbitrary. you can use any index assert hid_np_dict_vals.shape == (expected_length, xor_hid.size) assert out_map_np_dict_mats.shape == (expected_length, xor_hid.size, xor_out.size) assert out_map_np_mats.shape == out_map_np_dict_mats.shape assert np.all(out_map_np_mats[3] == out_map_np_dict_mats[3]) assert out_np_dict_vals.shape == (expected_length, xor_out.size) xor_out.log.print_entries() @pytest.mark.skipif( not torch_available, reason='Pytorch python module (torch) is not installed. Please install it with ' '`pip install torch` or `pip3 install torch`' ) @pytest.mark.acnested class TestNested: @pytest.mark.parametrize( 'num_epochs, learning_rate, patience, min_delta', [ (2000, 4, 10, .00001), ] ) def test_xor_nested_train_then_no_train(self, num_epochs, learning_rate, patience, min_delta): xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # ----------------------------------------------------------------- xor_in = pnl.TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = pnl.TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=pnl.core.components.functions.transferfunctions.Logistic()) xor_out = pnl.TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=pnl.core.components.functions.transferfunctions.Logistic()) hid_map = pnl.MappingProjection(name='input_to_hidden', matrix=np.random.randn(2, 10) * 0.1, sender=xor_in, receiver=xor_hid) out_map = pnl.MappingProjection(name='hidden_to_output', matrix=np.random.randn(10, 1) * 0.1, sender=xor_hid, receiver=xor_out) # ----------------------------------------------------------------- xor_autodiff = AutodiffComposition( param_init_from_pnl=True, patience=patience, min_delta=min_delta, learning_rate=learning_rate, randomize=False, learning_enabled=True ) xor_autodiff.add_node(xor_in) xor_autodiff.add_node(xor_hid) xor_autodiff.add_node(xor_out) xor_autodiff.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor_autodiff.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # ----------------------------------------------------------------- xor_autodiff._analyze_graph() no_training_input_dict = {xor_in: xor_inputs} input_dict = {'inputs': {xor_in: xor_inputs}, 'targets': {xor_out: xor_targets}, 'epochs': num_epochs} parentComposition = pnl.Composition() parentComposition.add_node(xor_autodiff) input = {xor_autodiff: input_dict} no_training_input = {xor_autodiff: no_training_input_dict} result1 = parentComposition.run(inputs=input) xor_autodiff.learning_enabled = False result2 = parentComposition.run(inputs=no_training_input) assert np.allclose(result1, [[0]], atol=0.1) assert np.allclose(result2, [[0]], atol=0.1) @pytest.mark.parametrize( 'num_epochs, learning_rate, patience, min_delta', [ (2000, 4, 10, .00001), ] ) def test_xor_nested_no_train_then_train(self, num_epochs, learning_rate, patience, min_delta): xor_inputs = np.array( # the inputs we will provide to the model [[0, 0], [0, 1], [1, 0], [1, 1]]) xor_targets = np.array( # the outputs we wish to see from the model [[0], [1], [1], [0]]) # ----------------------------------------------------------------- xor_in = pnl.TransferMechanism(name='xor_in', default_variable=np.zeros(2)) xor_hid = pnl.TransferMechanism(name='xor_hid', default_variable=np.zeros(10), function=pnl.core.components.functions.transferfunctions.Logistic()) xor_out = pnl.TransferMechanism(name='xor_out', default_variable=np.zeros(1), function=pnl.core.components.functions.transferfunctions.Logistic()) hid_map = pnl.MappingProjection(name='input_to_hidden', matrix=np.random.randn(2, 10) * 0.1, sender=xor_in, receiver=xor_hid) out_map = pnl.MappingProjection(name='hidden_to_output', matrix=np.random.randn(10, 1) * 0.1, sender=xor_hid, receiver=xor_out) # ----------------------------------------------------------------- xor_autodiff = AutodiffComposition( param_init_from_pnl=True, patience=patience, min_delta=min_delta, learning_rate=learning_rate, randomize=False, learning_enabled=False ) xor_autodiff.add_node(xor_in) xor_autodiff.add_node(xor_hid) xor_autodiff.add_node(xor_out) xor_autodiff.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) xor_autodiff.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # ----------------------------------------------------------------- xor_autodiff._analyze_graph() no_training_input_dict = {xor_in: xor_inputs} input_dict = {'inputs': {xor_in: xor_inputs}, 'targets': {xor_out: xor_targets}, 'epochs': num_epochs} parentComposition = pnl.Composition() parentComposition.add_node(xor_autodiff) input = {xor_autodiff: input_dict} no_training_input = {xor_autodiff: no_training_input_dict} result1 = parentComposition.run(inputs=no_training_input) xor_autodiff.learning_enabled = True result2 = parentComposition.run(inputs=input) assert np.allclose(result2, [[0]], atol=0.1) # CW 12/21/18: Test is failing due to bugs, will fix later # @pytest.mark.parametrize( # 'num_epochs, learning_rate, patience, min_delta', [ # (2000, 4, 10, .00001), # ] # ) # def test_xor_nest_not_origin_after_train(self, num_epochs, learning_rate, patience, min_delta): # xor_inputs = np.array( # the inputs we will provide to the model # [[0, 0], # [0, 1], # [1, 0], # [1, 1]]) # # xor_targets = np.array( # the outputs we wish to see from the model # [[0], # [1], # [1], # [0]]) # # # ----------------------------------------------------------------- # # xor_in = pnl.TransferMechanism(name='xor_in', # default_variable=np.zeros(2)) # # xor_hid = pnl.TransferMechanism(name='xor_hid', # default_variable=np.zeros(10), # function=pnl.core.components.functions.transferfunctions.Logistic()) # # xor_out = pnl.TransferMechanism(name='xor_out', # default_variable=np.zeros(1), # function=pnl.core.components.functions.transferfunctions.Logistic()) # # hid_map = pnl.MappingProjection(name='input_to_hidden', # matrix=np.random.randn(2, 10) * 0.1, # sender=xor_in, # receiver=xor_hid) # # out_map = pnl.MappingProjection(name='hidden_to_output', # matrix=np.random.randn(10, 1) * 0.1, # sender=xor_hid, # receiver=xor_out) # # # ----------------------------------------------------------------- # # xor_autodiff = AutodiffComposition( # param_init_from_pnl=True, # patience=patience, # min_delta=min_delta, # learning_rate=learning_rate, # randomize=False, # learning_enabled=True # ) # # xor_autodiff.add_node(xor_in) # xor_autodiff.add_node(xor_hid) # xor_autodiff.add_node(xor_out) # # xor_autodiff.add_projection(sender=xor_in, projection=hid_map, receiver=xor_hid) # xor_autodiff.add_projection(sender=xor_hid, projection=out_map, receiver=xor_out) # # # ----------------------------------------------------------------- # # input_dict = {'inputs': {xor_in: xor_inputs}, 'targets': {xor_out: xor_targets}, 'epochs': num_epochs} # xor_autodiff.run(inputs = input_dict) # myTransfer = pnl.TransferMechanism(size = 2) # myMappingProj = pnl.MappingProjection(sender = myTransfer, receiver = xor_autodiff) # # no_training_input_dict = {xor_in: xor_inputs} # # parentComposition = pnl.Composition() # parentComposition.add_node(myTransfer) # parentComposition.add_node(xor_autodiff) # parentComposition.add_projection(myMappingProj, sender=myTransfer, receiver=xor_autodiff) # xor_autodiff.learning_enabled = False # # no_training_input = {myTransfer: no_training_input_dict} # # result = parentComposition.run(inputs=no_training_input) # # assert np.allclose(result, [[0]], atol=0.1) @pytest.mark.parametrize( 'eps, opt', [ (1, 'sgd'), ] ) def test_semantic_net_nested(self, eps, opt): # SET UP MECHANISMS FOR SEMANTIC NET: nouns_in = TransferMechanism(name="nouns_input", default_variable=np.zeros(8)) rels_in = TransferMechanism(name="rels_input", default_variable=np.zeros(3)) h1 = TransferMechanism(name="hidden_nouns", default_variable=np.zeros(8), function=Logistic()) h2 = TransferMechanism(name="hidden_mixed", default_variable=np.zeros(15), function=Logistic()) out_sig_I = TransferMechanism(name="sig_outs_I", default_variable=np.zeros(8), function=Logistic()) out_sig_is = TransferMechanism(name="sig_outs_is", default_variable=np.zeros(12), function=Logistic()) out_sig_has = TransferMechanism(name="sig_outs_has", default_variable=np.zeros(9), function=Logistic()) out_sig_can = TransferMechanism(name="sig_outs_can", default_variable=np.zeros(9), function=Logistic()) # SET UP MECHANISMS FOR SYSTEM nouns_in_sys = TransferMechanism(name="nouns_input_sys", default_variable=np.zeros(8)) rels_in_sys = TransferMechanism(name="rels_input_sys", default_variable=np.zeros(3)) h1_sys = TransferMechanism(name="hidden_nouns_sys", default_variable=np.zeros(8), function=Logistic()) h2_sys = TransferMechanism(name="hidden_mixed_sys", default_variable=np.zeros(15), function=Logistic()) out_sig_I_sys = TransferMechanism(name="sig_outs_I_sys", default_variable=np.zeros(8), function=Logistic()) out_sig_is_sys = TransferMechanism(name="sig_outs_is_sys", default_variable=np.zeros(12), function=Logistic()) out_sig_has_sys = TransferMechanism(name="sig_outs_has_sys", default_variable=np.zeros(9), function=Logistic()) out_sig_can_sys = TransferMechanism(name="sig_outs_can_sys", default_variable=np.zeros(9), function=Logistic()) # SET UP PROJECTIONS FOR SEMANTIC NET map_nouns_h1 = MappingProjection(matrix=np.random.rand(8,8), name="map_nouns_h1", sender=nouns_in, receiver=h1) map_rels_h2 = MappingProjection(matrix=np.random.rand(3,15), name="map_relh2", sender=rels_in, receiver=h2) map_h1_h2 = MappingProjection(matrix=np.random.rand(8,15), name="map_h1_h2", sender=h1, receiver=h2) map_h2_I = MappingProjection(matrix=np.random.rand(15,8), name="map_h2_I", sender=h2, receiver=out_sig_I) map_h2_is = MappingProjection(matrix=np.random.rand(15,12), name="map_h2_is", sender=h2, receiver=out_sig_is) map_h2_has = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_has", sender=h2, receiver=out_sig_has) map_h2_can = MappingProjection(matrix=np.random.rand(15,9), name="map_h2_can", sender=h2, receiver=out_sig_can) # SET UP PROJECTIONS FOR SYSTEM map_nouns_h1_sys = MappingProjection(matrix=map_nouns_h1.matrix.copy(), name="map_nouns_h1_sys", sender=nouns_in_sys, receiver=h1_sys) map_rels_h2_sys = MappingProjection(matrix=map_rels_h2.matrix.copy(), name="map_relh2_sys", sender=rels_in_sys, receiver=h2_sys) map_h1_h2_sys = MappingProjection(matrix=map_h1_h2.matrix.copy(), name="map_h1_h2_sys", sender=h1_sys, receiver=h2_sys) map_h2_I_sys = MappingProjection(matrix=map_h2_I.matrix.copy(), name="map_h2_I_sys", sender=h2_sys, receiver=out_sig_I_sys) map_h2_is_sys = MappingProjection(matrix=map_h2_is.matrix.copy(), name="map_h2_is_sys", sender=h2_sys, receiver=out_sig_is_sys) map_h2_has_sys = MappingProjection(matrix=map_h2_has.matrix.copy(), name="map_h2_has_sys", sender=h2_sys, receiver=out_sig_has_sys) map_h2_can_sys = MappingProjection(matrix=map_h2_can.matrix.copy(), name="map_h2_can_sys", sender=h2_sys, receiver=out_sig_can_sys) # SET UP COMPOSITION FOR SEMANTIC NET sem_net = AutodiffComposition(param_init_from_pnl=True, learning_rate=0.5, optimizer_type=opt) sem_net.add_node(nouns_in) sem_net.add_node(rels_in) sem_net.add_node(h1) sem_net.add_node(h2) sem_net.add_node(out_sig_I) sem_net.add_node(out_sig_is) sem_net.add_node(out_sig_has) sem_net.add_node(out_sig_can) sem_net.add_projection(sender=nouns_in, projection=map_nouns_h1, receiver=h1) sem_net.add_projection(sender=rels_in, projection=map_rels_h2, receiver=h2) sem_net.add_projection(sender=h1, projection=map_h1_h2, receiver=h2) sem_net.add_projection(sender=h2, projection=map_h2_I, receiver=out_sig_I) sem_net.add_projection(sender=h2, projection=map_h2_is, receiver=out_sig_is) sem_net.add_projection(sender=h2, projection=map_h2_has, receiver=out_sig_has) sem_net.add_projection(sender=h2, projection=map_h2_can, receiver=out_sig_can) # INPUTS & OUTPUTS FOR SEMANTIC NET: nouns = ['oak', 'pine', 'rose', 'daisy', 'canary', 'robin', 'salmon', 'sunfish'] relations = ['is', 'has', 'can'] is_list = ['living', 'living thing', 'plant', 'animal', 'tree', 'flower', 'bird', 'fish', 'big', 'green', 'red', 'yellow'] has_list = ['roots', 'leaves', 'bark', 'branches', 'skin', 'feathers', 'wings', 'gills', 'scales'] can_list = ['grow', 'move', 'swim', 'fly', 'breathe', 'breathe underwater', 'breathe air', 'walk', 'photosynthesize'] nouns_input = np.identity(len(nouns)) rels_input = np.identity(len(relations)) truth_nouns = np.identity(len(nouns)) truth_is = np.zeros((len(nouns), len(is_list))) truth_is[0, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[1, :] = [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0] truth_is[2, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[3, :] = [1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0] truth_is[4, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[5, :] = [1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1] truth_is[6, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0] truth_is[7, :] = [1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0] truth_has = np.zeros((len(nouns), len(has_list))) truth_has[0, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[1, :] = [1, 1, 1, 1, 0, 0, 0, 0, 0] truth_has[2, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[3, :] = [1, 1, 0, 0, 0, 0, 0, 0, 0] truth_has[4, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[5, :] = [0, 0, 0, 0, 1, 1, 1, 0, 0] truth_has[6, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_has[7, :] = [0, 0, 0, 0, 0, 0, 0, 1, 1] truth_can = np.zeros((len(nouns), len(can_list))) truth_can[0, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[1, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[2, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[3, :] = [1, 0, 0, 0, 0, 0, 0, 0, 1] truth_can[4, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[5, :] = [1, 1, 0, 1, 1, 0, 1, 1, 0] truth_can[6, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] truth_can[7, :] = [1, 1, 1, 0, 1, 1, 0, 0, 0] # SETTING UP DICTIONARY OF INPUTS/OUTPUTS FOR SEMANTIC NET inputs_dict = {} inputs_dict[nouns_in] = [] inputs_dict[rels_in] = [] targets_dict = {} targets_dict[out_sig_I] = [] targets_dict[out_sig_is] = [] targets_dict[out_sig_has] = [] targets_dict[out_sig_can] = [] for i in range(len(nouns)): for j in range(len(relations)): inputs_dict[nouns_in].append(nouns_input[i]) inputs_dict[rels_in].append(rels_input[j]) targets_dict[out_sig_I].append(truth_nouns[i]) targets_dict[out_sig_is].append(truth_is[i]) targets_dict[out_sig_has].append(truth_has[i]) targets_dict[out_sig_can].append(truth_can[i]) # comp_weights = sem_net.get_parameters()[0] # TRAIN COMPOSITION input_dict = {"inputs": inputs_dict, "targets": targets_dict, "epochs": eps} sem_net._analyze_graph() parentComposition = pnl.Composition() parentComposition.add_node(sem_net) input = {sem_net: input_dict} no_training_input = {sem_net: inputs_dict.copy()} parentComposition.run(inputs=input) sem_net.learning_enabled = False parentComposition.run(inputs=no_training_input)
41.176445
125
0.510125
10,921
96,147
4.229008
0.040472
0.018664
0.018967
0.015589
0.881433
0.855581
0.829642
0.815525
0.804352
0.790668
0
0.036404
0.380886
96,147
2,335
126
41.176445
0.739475
0.109811
0
0.824827
0
0
0.058597
0
0
0
0
0
0.028355
1
0.014493
false
0
0.008822
0
0.027725
0.010082
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e9fed49c59f753b7f4c57fcd1afafb4193fc5124
30,263
py
Python
tests/attacks/test_carlini.py
dohmatob/adversarial-robustness-toolbox
7d3ba7d2d6690be69c08754fbc632947c2d10a97
[ "MIT" ]
1
2020-03-09T05:55:46.000Z
2020-03-09T05:55:46.000Z
tests/attacks/test_carlini.py
dohmatob/adversarial-robustness-toolbox
7d3ba7d2d6690be69c08754fbc632947c2d10a97
[ "MIT" ]
1
2020-03-09T07:04:39.000Z
2020-03-09T07:04:39.000Z
tests/attacks/test_carlini.py
dohmatob/adversarial-robustness-toolbox
7d3ba7d2d6690be69c08754fbc632947c2d10a97
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) IBM Corporation 2018 # # 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. from __future__ import absolute_import, division, print_function, unicode_literals import logging import unittest import keras import keras.backend as k import numpy as np from art.attacks import CarliniL2Method, CarliniLInfMethod from art.classifiers import KerasClassifier from art.utils import load_dataset, random_targets, master_seed, to_categorical from tests.utils_test import get_classifier_tf, get_classifier_kr, get_classifier_pt from tests.utils_test import get_iris_classifier_tf, get_iris_classifier_kr, get_iris_classifier_pt logger = logging.getLogger(__name__) BATCH_SIZE = 100 NB_TRAIN = 10 NB_TEST = 10 class TestCarlini(unittest.TestCase): """ A unittest class for testing the Carlini L2 attack. """ @classmethod def setUpClass(cls): # MNIST (x_train, y_train), (x_test, y_test), _, _ = load_dataset('mnist') x_train, y_train, x_test, y_test = x_train[:NB_TRAIN], y_train[:NB_TRAIN], x_test[:NB_TEST], y_test[:NB_TEST] cls.mnist = (x_train, y_train), (x_test, y_test) # Iris (x_train, y_train), (x_test, y_test), _, _ = load_dataset('iris') cls.iris = (x_train, y_train), (x_test, y_test) def setUp(self): master_seed(1234) def test_tensorflow_failure_attack_L2(self): """ Test the corner case when attack is failed. :return: """ (_, _), (x_test, y_test) = self.mnist x_test_original = x_test.copy() # Build TensorFlowClassifier tfc, sess = get_classifier_tf(from_logits=True) # Failure attack cl2m = CarliniL2Method(classifier=tfc, targeted=True, max_iter=0, binary_search_steps=0, learning_rate=0, initial_const=1) params = {'y': random_targets(y_test, tfc.nb_classes())} x_test_adv = cl2m.generate(x_test, **params) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) np.testing.assert_array_almost_equal(x_test, x_test_adv, decimal=3) # Check that x_test has not been modified by attack and classifier self.assertAlmostEqual(float(np.max(np.abs(x_test_original - x_test))), 0.0, delta=0.00001) # Clean-up session sess.close() def test_tensorflow_mnist_L2(self): """ First test with the TensorFlowClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist x_test_original = x_test.copy() # Build TensorFlowClassifier tfc, sess = get_classifier_tf() # First attack cl2m = CarliniL2Method(classifier=tfc, targeted=True, max_iter=10) params = {'y': random_targets(y_test, tfc.nb_classes())} x_test_adv = cl2m.generate(x_test, **params) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(tfc.predict(x_test_adv), axis=1) logger.debug('CW2 Target: %s', target) logger.debug('CW2 Actual: %s', y_pred_adv) logger.info('CW2 Success Rate: %.2f', (np.sum(target == y_pred_adv) / float(len(target)))) self.assertTrue((target == y_pred_adv).any()) # Second attack, no batching cl2m = CarliniL2Method(classifier=tfc, targeted=False, max_iter=10, batch_size=1) x_test_adv = cl2m.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(tfc.predict(x_test_adv), axis=1) logger.debug('CW2 Target: %s', target) logger.debug('CW2 Actual: %s', y_pred_adv) logger.info('CW2 Success Rate: %.2f', (np.sum(target == y_pred_adv) / float(len(target)))) self.assertTrue((target != y_pred_adv).any()) # Check that x_test has not been modified by attack and classifier self.assertAlmostEqual(float(np.max(np.abs(x_test_original - x_test))), 0.0, delta=0.00001) # Clean-up session sess.close() @unittest.skipIf(not (int(keras.__version__.split('.')[0]) == 2 and int(keras.__version__.split('.')[1]) >= 3), reason='Minimal version of Keras or TensorFlow required.') def test_keras_mnist_L2(self): """ Second test with the KerasClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist x_test_original = x_test.copy() # Build KerasClassifier krc = get_classifier_kr(from_logits=True) # First attack cl2m = CarliniL2Method(classifier=krc, targeted=True, max_iter=10) y_target = [6, 6, 7, 4, 9, 7, 9, 0, 1, 0] x_test_adv = cl2m.generate(x_test, y=to_categorical(y_target, nb_classes=10)) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) y_pred_adv = np.argmax(krc.predict(x_test_adv), axis=1) logger.debug('CW2 Target: %s', y_target) logger.debug('CW2 Actual: %s', y_pred_adv) logger.info('CW2 Success Rate: %.2f', (np.sum(y_target == y_pred_adv) / float(len(y_target)))) self.assertTrue((y_target == y_pred_adv).any()) # Second attack cl2m = CarliniL2Method(classifier=krc, targeted=False, max_iter=10) x_test_adv = cl2m.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) y_pred_adv = np.argmax(krc.predict(x_test_adv), axis=1) logger.debug('CW2 Target: %s', y_target) logger.debug('CW2 Actual: %s', y_pred_adv) logger.info('CW2 Success Rate: %.2f', (np.sum(y_target != y_pred_adv) / float(len(y_target)))) self.assertTrue((y_target != y_pred_adv).any()) # Check that x_test has not been modified by attack and classifier self.assertAlmostEqual(float(np.max(np.abs(x_test_original - x_test))), 0.0, delta=0.00001) # Clean-up k.clear_session() def test_pytorch_mnist_L2(self): """ Third test with the PyTorchClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist x_test = np.reshape(x_test, (x_test.shape[0], 1, 28, 28)).astype(np.float32) x_test_original = x_test.copy() # Build PyTorchClassifier ptc = get_classifier_pt(from_logits=True) # First attack cl2m = CarliniL2Method(classifier=ptc, targeted=True, max_iter=10) params = {'y': random_targets(y_test, ptc.nb_classes())} x_test_adv = cl2m.generate(x_test, **params) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(ptc.predict(x_test_adv), axis=1) self.assertTrue((target == y_pred_adv).any()) logger.info('CW2 Success Rate: %.2f', (sum(target == y_pred_adv) / float(len(target)))) # Second attack cl2m = CarliniL2Method(classifier=ptc, targeted=False, max_iter=10) x_test_adv = cl2m.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(ptc.predict(x_test_adv), axis=1) self.assertTrue((target != y_pred_adv).any()) logger.info('CW2 Success Rate: %.2f', (sum(target != y_pred_adv) / float(len(target)))) # Check that x_test has not been modified by attack and classifier self.assertAlmostEqual(float(np.max(np.abs(x_test_original - x_test))), 0.0, delta=0.00001) def test_classifier_type_check_fail_classifier_L2(self): # Use a useless test classifier to test basic classifier properties class ClassifierNoAPI: pass classifier = ClassifierNoAPI with self.assertRaises(TypeError) as context: _ = CarliniL2Method(classifier=classifier) self.assertIn('For `CarliniL2Method` classifier must be an instance of `art.classifiers.classifier.Classifier`,' ' the provided classifier is instance of (<class \'object\'>,).', str(context.exception)) def test_classifier_type_check_fail_gradients_L2(self): # Use a test classifier not providing gradients required by white-box attack from art.classifiers.scikitlearn import ScikitlearnDecisionTreeClassifier from sklearn.tree import DecisionTreeClassifier classifier = ScikitlearnDecisionTreeClassifier(model=DecisionTreeClassifier()) with self.assertRaises(TypeError) as context: _ = CarliniL2Method(classifier=classifier) self.assertIn('For `CarliniL2Method` classifier must be an instance of ' '`art.classifiers.classifier.ClassifierGradients`, the provided classifier is instance of ' '(<class \'art.classifiers.scikitlearn.ScikitlearnClassifier\'>,).', str(context.exception)) def test_keras_iris_clipped_L2(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_kr() attack = CarliniL2Method(classifier, targeted=False, max_iter=10) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_keras_iris_unbounded_L2(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_kr() # Recreate a classifier without clip values classifier = KerasClassifier(model=classifier._model, use_logits=False, channel_index=1) attack = CarliniL2Method(classifier, targeted=False, max_iter=10) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_tensorflow_iris_L2(self): (_, _), (x_test, y_test) = self.iris classifier, _ = get_iris_classifier_tf() # Test untargeted attack attack = CarliniL2Method(classifier, targeted=False, max_iter=10) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) # Test targeted attack targets = random_targets(y_test, nb_classes=3) attack = CarliniL2Method(classifier, targeted=True, max_iter=10) x_test_adv = attack.generate(x_test, **{'y': targets}) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertTrue((np.argmax(targets, axis=1) == predictions_adv).any()) accuracy = np.sum(predictions_adv == np.argmax(targets, axis=1)) / y_test.shape[0] logger.info('Success rate of targeted C&W on Iris: %.2f%%', (accuracy * 100)) def test_pytorch_iris_L2(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_pt() attack = CarliniL2Method(classifier, targeted=False, max_iter=10) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_scikitlearn_L2(self): from sklearn.linear_model import LogisticRegression from art.classifiers.scikitlearn import ScikitlearnLogisticRegression scikitlearn_test_cases = {LogisticRegression: ScikitlearnLogisticRegression} # , # SVC: ScikitlearnSVC, # LinearSVC: ScikitlearnSVC} (_, _), (x_test, y_test) = self.iris x_test_original = x_test.copy() for (model_class, classifier_class) in scikitlearn_test_cases.items(): model = model_class() classifier = classifier_class(model=model, clip_values=(0, 1)) classifier.fit(x=x_test, y=y_test) # Test untargeted attack attack = CarliniL2Method(classifier, targeted=False, max_iter=10) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy of ' + classifier.__class__.__name__ + ' on Iris with C&W adversarial examples: ' '%.2f%%', (accuracy * 100)) # Test targeted attack targets = random_targets(y_test, nb_classes=3) attack = CarliniL2Method(classifier, targeted=True, max_iter=10) x_test_adv = attack.generate(x_test, **{'y': targets}) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertTrue((np.argmax(targets, axis=1) == predictions_adv).any()) accuracy = np.sum(predictions_adv == np.argmax(targets, axis=1)) / y_test.shape[0] logger.info('Success rate of ' + classifier.__class__.__name__ + ' on targeted C&W on Iris: %.2f%%', (accuracy * 100)) # Check that x_test has not been modified by attack and classifier self.assertAlmostEqual(float(np.max(np.abs(x_test_original - x_test))), 0.0, delta=0.00001) """ A unittest class for testing the Carlini LInf attack. """ def test_tensorflow_failure_attack_LInf(self): """ Test the corner case when attack is failed. :return: """ (_, _), (x_test, y_test) = self.mnist # Build TensorFlowClassifier tfc, sess = get_classifier_tf(from_logits=True) # Failure attack clinfm = CarliniLInfMethod(classifier=tfc, targeted=True, max_iter=0, learning_rate=0, eps=0.5) params = {'y': random_targets(y_test, tfc.nb_classes())} x_test_adv = clinfm.generate(x_test, **params) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) self.assertTrue(np.allclose(x_test, x_test_adv, atol=1e-3)) # Clean-up session sess.close() def test_tensorflow_mnist_LInf(self): """ First test with the TensorFlowClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist # Build TensorFlowClassifier tfc, sess = get_classifier_tf(from_logits=True) # First attack clinfm = CarliniLInfMethod(classifier=tfc, targeted=True, max_iter=10, eps=0.5) params = {'y': random_targets(y_test, tfc.nb_classes())} x_test_adv = clinfm.generate(x_test, **params) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(tfc.predict(x_test_adv), axis=1) logger.debug('CW0 Target: %s', target) logger.debug('CW0 Actual: %s', y_pred_adv) logger.info('CW0 Success Rate: %.2f', (np.sum(target == y_pred_adv) / float(len(target)))) self.assertTrue((target == y_pred_adv).any()) # Second attack, no batching clinfm = CarliniLInfMethod(classifier=tfc, targeted=False, max_iter=10, eps=0.5, batch_size=1) x_test_adv = clinfm.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), -1e-6) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(tfc.predict(x_test_adv), axis=1) logger.debug('CW0 Target: %s', target) logger.debug('CW0 Actual: %s', y_pred_adv) logger.info('CW0 Success Rate: %.2f', (np.sum(target != y_pred_adv) / float(len(target)))) self.assertTrue((target != y_pred_adv).any()) # Clean-up session sess.close() @unittest.skipIf(not (int(keras.__version__.split('.')[0]) == 2 and int(keras.__version__.split('.')[1]) >= 3), reason='Minimal version of Keras or TensorFlow required.') def test_keras_mnist_LInf(self): """ Second test with the KerasClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist # Build KerasClassifier krc = get_classifier_kr(from_logits=True) # First attack clinfm = CarliniLInfMethod(classifier=krc, targeted=True, max_iter=10, eps=0.5) params = {'y': random_targets(y_test, krc.nb_classes())} x_test_adv = clinfm.generate(x_test, **params) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.000001) self.assertGreaterEqual(np.amin(x_test_adv), -1e-6) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(krc.predict(x_test_adv), axis=1) logger.debug('CW0 Target: %s', target) logger.debug('CW0 Actual: %s', y_pred_adv) logger.info('CW0 Success Rate: %.2f', (np.sum(target == y_pred_adv) / float(len(target)))) self.assertTrue((target == y_pred_adv).any()) # Second attack clinfm = CarliniLInfMethod(classifier=krc, targeted=False, max_iter=10, eps=0.5) x_test_adv = clinfm.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.000001) self.assertGreaterEqual(np.amin(x_test_adv), -1e-6) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(krc.predict(x_test_adv), axis=1) logger.debug('CW0 Target: %s', target) logger.debug('CW0 Actual: %s', y_pred_adv) logger.info('CW0 Success Rate: %.2f', (np.sum(target != y_pred_adv) / float(len(target)))) self.assertTrue((target != y_pred_adv).any()) # Clean-up k.clear_session() def test_pytorch_mnist_LInf(self): """ Third test with the PyTorchClassifier. :return: """ (_, _), (x_test, y_test) = self.mnist x_test = np.reshape(x_test, (x_test.shape[0], 1, 28, 28)).astype(np.float32) # Build PyTorchClassifier ptc = get_classifier_pt(from_logits=True) # First attack clinfm = CarliniLInfMethod(classifier=ptc, targeted=True, max_iter=10, eps=0.5) params = {'y': random_targets(y_test, ptc.nb_classes())} x_test_adv = clinfm.generate(x_test, **params) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0 + 1e-6) self.assertGreaterEqual(np.amin(x_test_adv), -1e-6) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(ptc.predict(x_test_adv), axis=1) self.assertTrue((target == y_pred_adv).any()) # Second attack clinfm = CarliniLInfMethod(classifier=ptc, targeted=False, max_iter=10, eps=0.5) x_test_adv = clinfm.generate(x_test) self.assertLessEqual(np.amax(x_test_adv), 1.0 + 1e-6) self.assertGreaterEqual(np.amin(x_test_adv), -1e-6) target = np.argmax(params['y'], axis=1) y_pred_adv = np.argmax(ptc.predict(x_test_adv), axis=1) self.assertTrue((target != y_pred_adv).any()) def test_classifier_type_check_fail_classifier_LInf(self): # Use a useless test classifier to test basic classifier properties class ClassifierNoAPI: pass classifier = ClassifierNoAPI with self.assertRaises(TypeError) as context: _ = CarliniLInfMethod(classifier=classifier) self.assertIn('For `CarliniLInfMethod` classifier must be an instance of ' '`art.classifiers.classifier.Classifier`, the provided classifier is instance of ' '(<class \'object\'>,).', str(context.exception)) def test_classifier_type_check_fail_gradients_LInf(self): # Use a test classifier not providing gradients required by white-box attack from art.classifiers.scikitlearn import ScikitlearnDecisionTreeClassifier from sklearn.tree import DecisionTreeClassifier classifier = ScikitlearnDecisionTreeClassifier(model=DecisionTreeClassifier()) with self.assertRaises(TypeError) as context: _ = CarliniLInfMethod(classifier=classifier) self.assertIn('For `CarliniLInfMethod` classifier must be an instance of ' '`art.classifiers.classifier.ClassifierGradients`, the provided classifier is instance of ' '(<class \'art.classifiers.scikitlearn.ScikitlearnClassifier\'>,).', str(context.exception)) def test_keras_iris_clipped_LInf(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_kr() attack = CarliniLInfMethod(classifier, targeted=False, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_keras_iris_unbounded_LInf(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_kr() # Recreate a classifier without clip values classifier = KerasClassifier(model=classifier._model, use_logits=False, channel_index=1) attack = CarliniLInfMethod(classifier, targeted=False, max_iter=10, eps=1) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_tensorflow_iris_LInf(self): (_, _), (x_test, y_test) = self.iris classifier, _ = get_iris_classifier_tf() # Test untargeted attack attack = CarliniLInfMethod(classifier, targeted=False, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) # Test targeted attack targets = random_targets(y_test, nb_classes=3) attack = CarliniLInfMethod(classifier, targeted=True, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test, **{'y': targets}) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertTrue((np.argmax(targets, axis=1) == predictions_adv).any()) accuracy = np.sum(predictions_adv == np.argmax(targets, axis=1)) / y_test.shape[0] logger.info('Success rate of targeted C&W on Iris: %.2f%%', (accuracy * 100)) def test_pytorch_iris_LInf(self): (_, _), (x_test, y_test) = self.iris classifier = get_iris_classifier_pt() attack = CarliniLInfMethod(classifier, targeted=False, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test.astype(np.float32)) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy on Iris with C&W adversarial examples: %.2f%%', (accuracy * 100)) def test_scikitlearn_LInf(self): from sklearn.linear_model import LogisticRegression from art.classifiers.scikitlearn import ScikitlearnLogisticRegression scikitlearn_test_cases = {LogisticRegression: ScikitlearnLogisticRegression} # , # SVC: ScikitlearnSVC, # LinearSVC: ScikitlearnSVC} (_, _), (x_test, y_test) = self.iris for (model_class, classifier_class) in scikitlearn_test_cases.items(): model = model_class() classifier = classifier_class(model=model, clip_values=(0, 1)) classifier.fit(x=x_test, y=y_test) # Test untargeted attack attack = CarliniLInfMethod(classifier, targeted=False, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertFalse((np.argmax(y_test, axis=1) == predictions_adv).all()) accuracy = np.sum(predictions_adv == np.argmax(y_test, axis=1)) / y_test.shape[0] logger.info('Accuracy of ' + classifier.__class__.__name__ + ' on Iris with C&W adversarial examples: ' '%.2f%%', (accuracy * 100)) # Test targeted attack targets = random_targets(y_test, nb_classes=3) attack = CarliniLInfMethod(classifier, targeted=True, max_iter=10, eps=0.5) x_test_adv = attack.generate(x_test, **{'y': targets}) self.assertFalse((x_test == x_test_adv).all()) self.assertLessEqual(np.amax(x_test_adv), 1.0) self.assertGreaterEqual(np.amin(x_test_adv), 0.0) predictions_adv = np.argmax(classifier.predict(x_test_adv), axis=1) self.assertTrue((np.argmax(targets, axis=1) == predictions_adv).any()) accuracy = np.sum(predictions_adv == np.argmax(targets, axis=1)) / y_test.shape[0] logger.info('Success rate of ' + classifier.__class__.__name__ + ' on targeted C&W on Iris: %.2f%%', (accuracy * 100)) if __name__ == '__main__': unittest.main()
47.808847
120
0.653075
4,051
30,263
4.643051
0.07924
0.06247
0.054442
0.03275
0.908289
0.900899
0.893455
0.876336
0.868042
0.845393
0
0.022369
0.222979
30,263
632
121
47.884494
0.777504
0.099131
0
0.8
0
0
0.071931
0.006627
0
0
0
0
0.272289
1
0.057831
false
0.004819
0.045783
0
0.110843
0.00241
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
180f815f80c663170e8bd5476291218a82261018
31,438
py
Python
hata/discord/urls.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
null
null
null
hata/discord/urls.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
null
null
null
hata/discord/urls.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
1
2021-04-13T00:53:48.000Z
2021-04-13T00:53:48.000Z
# -*- coding: utf-8 -*- __all__ = () import re from .bases import ICON_TYPE_NONE, ICON_TYPE_STATIC from . import utils as module_utils ChannelGuildBase = NotImplemented from ..env import CUSTOM_API_ENDPOINT, CUSTOM_CDN_ENDPOINT, CUSTOM_DIS_ENDPOINT, API_VERSION API_ENDPOINT = f'https://discord.com/api/v{API_VERSION}' if (CUSTOM_API_ENDPOINT is None) else CUSTOM_API_ENDPOINT CDN_ENDPOINT = 'https://cdn.discordapp.com' if (CUSTOM_CDN_ENDPOINT is None) else CUSTOM_CDN_ENDPOINT DIS_ENDPOINT = 'https://discord.com' if (CUSTOM_DIS_ENDPOINT is None) else CUSTOM_DIS_ENDPOINT del CUSTOM_API_ENDPOINT, CUSTOM_CDN_ENDPOINT, CUSTOM_DIS_ENDPOINT, API_VERSION VALID_ICON_FORMATS = ('jpg', 'jpeg','png','webp') VALID_ICON_SIZES = {1<<x for x in range(4,13)} VALID_ICON_FORMATS_EXTENDED = (*VALID_ICON_FORMATS, 'gif',) STYLE_PATTERN = re.compile('(^shield$)|(^banner[1-4]$)') MESSAGE_JUMP_URL_RP = re.compile('(?:https://)?discord(?:app)?.com/channels/(?:(\d{7,21})|@me)/(\d{7,21})/(\d{7,21})') #returns a URL that allows the client to jump to this message #guild is guild's id, or @me if there is no guild def message_jump_url(message): """ Returns a jump url to the message. If the message's channel is a partial guild channel, returns `None`. Returns ------- url : `str` or `None` """ channel = message.channel if isinstance(channel, ChannelGuildBase): guild = channel.guild if guild is None: return None guild_id = str(guild.id) else: guild_id = '@me' return f'{DIS_ENDPOINT}/channels/{guild_id}/{channel.id}/{message.id}' def guild_icon_url(guild): """ Returns the guild's icon's image's url. If the guild has no icon, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = guild.icon_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/icons/{guild.id}/{prefix}{guild.icon_hash:0>32x}.{ext}' def guild_icon_url_as(guild, ext='png', size=None): """ Returns the guild's icon's url. If the guild has no icon, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. If the guild has animated icon, it can `'gif'` as well. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = guild.icon_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/icons/{guild.id}/{prefix}{guild.icon_hash:0>32x}.{ext}{end}' def guild_invite_splash_url(guild): """ Returns the guild's invite splash's image's url. If the guild has no invite splash, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = guild.invite_splash_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/splashes/{guild.id}/{prefix}{guild.invite_splash_hash:0>32x}.{ext}' def guild_invite_splash_url_as(guild, ext='png', size=None): """ Returns the guild's invite splash's image's url. If the guild has no invite splash, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = guild.invite_splash_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/splashes/{guild.id}/{prefix}{guild.invite_splash_hash:0>32x}.{ext}{end}' def guild_discovery_splash_url(guild): """ Returns the guild's discovery splash's image's url. If the guild has no discovery splash, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = guild.discovery_splash_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/discovery-splashes/{guild.id}/{prefix}{guild.discovery_splash_hash:0>32x}.{ext}' def guild_discovery_splash_url_as(guild, ext='png', size=None): """ Returns the guild's discovery splash's image's url. If the guild has no discovery splash, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = guild.discovery_splash_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/discovery-splashes/{guild.id}/{prefix}{guild.discovery_splash_hash:0>32x}.{ext}{end}' def guild_banner_url(guild): """ Returns the guild's banner's image's url. If the guild has no banner, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = guild.banner_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/banners/{guild.id}/{prefix}{guild.banner_hash:0>32x}.{ext}' def guild_banner_url_as(guild, ext='png', size=None): """ Returns the guild's banner's image's url. If the guild has no banner, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = guild.banner_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/banners/{guild.id}/{prefix}{guild.banner_hash:0>32x}.{ext}{end}' def guild_widget_url(guild, style='shield'): """ Returns the guild's widget image's url in `.png` format. Parameters ---------- style : `str` The widget image's style. Can be any of: `'shield'`, `'banner1'`, `'banner2'`, `'banner3'`, `'banner4'`. Returns ------- url : `str` Raises ------ ValueError If `style` was not passed as any of the expected values. """ if STYLE_PATTERN.match(style) is None: raise ValueError(f'Invalid style: {style!r}') return f'{API_ENDPOINT}/guilds/{guild.id}/widget.png?style={style}' def guild_widget_json_url(guild): """ Returns an url to request a ``Guild``'s widget data. Returns ------- url : `str` """ return f'{API_ENDPOINT}/guilds/{guild.id}/widget.json' def channel_group_icon_url(channel): """ Returns the group channel's icon's image's url. If the channel has no icon, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = channel.icon_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/channel-icons/{channel.id}/{prefix}{channel.icon_hash:0>32x}.{ext}' def channel_group_icon_url_as(channel, ext='png', size=None): """ Returns the group channel's icon's image's url. If the channel has no icon, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = channel.icon_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/channel-icons/{channel.id}/{prefix}{channel.icon_hash:0>32x}.{ext}{end}' def emoji_url(emoji): """ Returns the emoji's image's url. If the emoji is unicode emoji, then returns `None` instead. Returns ------- url : `str` or `None` """ if emoji.is_unicode_emoji(): return None if emoji.animated: ext = 'gif' else: ext = 'png' return f'{CDN_ENDPOINT}/emojis/{emoji.id}.{ext}' def emoji_url_as(emoji, ext=None, size=None): """ Returns the emoji's image's url. If the emoji is unicode emoji, then returns `None` instead. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. If emoji is animated, it can `'gif'` as well. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ if emoji.is_unicode_emoji(): return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if emoji.animated: ext = 'gif' else: ext = 'png' else: if emoji.animated: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') else: if ext not in VALID_ICON_FORMATS: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') return f'{CDN_ENDPOINT}/emojis/{emoji.id}.{ext}{end}' def webhook_url(webhook): """ Returns the webhook's url. Returns ------- url : `str` """ return f'{API_ENDPOINT}/webhooks/{webhook.id}/{webhook.token}' WEBHOOK_URL_PATTERN = re.compile( '(?:https://)?discord(?:app)?.com/api/(?:v\d/)?webhooks/([0-9]{17,21})/([a-zA-Z0-9\.\-\_%]{60,68})(?:/.*)?' ) def invite_url(invite): """ Returns the invite's url. Returns ------- url : `str` """ return f'http://discord.gg/{invite.code}' INVITE_URL_PATTERN = re.compile('(?:https?://)?discord(?:\.gg|(?:app)?\.com/invite)/([a-zA-Z0-9-]+)') def activity_asset_image_large_url(activity): """ Returns the activity's large asset image's url. If the activity has no large asset image, then returns `None`. Returns ------- url : `str` or `None` """ application_id = activity.application_id if not application_id: return None assets = activity.assets if assets is None: return None image_large = assets.image_large if image_large is None: return None return f'{CDN_ENDPOINT}/app-assets/{application_id}/{image_large}.png' def activity_asset_image_large_url_as(activity, ext='png', size=None): """ Returns the activity's large asset image's url. If the activity has no large asset image, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ application_id = activity.application_id if not application_id: return None assets = activity.assets if assets is None: return None image_large = assets.image_large if image_large is None: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext not in VALID_ICON_FORMATS: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') return f'{CDN_ENDPOINT}/app-assets/{application_id}/{image_large}.{ext}{end}' def activity_asset_image_small_url(activity): """ Returns the activity's small asset image's url. If the activity has no small asset image, then returns `None`. Returns ------- url : `str` or `None` """ application_id = activity.application_id if not application_id: return None assets = activity.assets if assets is None: return None image_small = assets.image_small if image_small is None: return None return f'{CDN_ENDPOINT}/app-assets/{application_id}/{image_small}.png' def activity_asset_image_small_url_as(activity, ext='png', size=None): """ Returns the activity's small asset image's url. If the activity has no small asset image, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the image's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ application_id = activity.application_id if not application_id: return None assets = activity.assets if assets is None: return None image_small = assets.image_small if image_small is None: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext not in VALID_ICON_FORMATS: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') return f'{CDN_ENDPOINT}/app-assets/{application_id}/{image_small}.{ext}{end}' def user_avatar_url(user): """ Returns the user's avatar's url. If the user has no avatar, then returns it's default avatar's url. Returns ------- url : `str` or `None` """ icon_type = user.avatar_type if icon_type is ICON_TYPE_NONE: return user.default_avatar.url if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/avatars/{user.id}/{prefix}{user.avatar_hash:0>32x}.{ext}' def user_avatar_url_as(user, ext=None, size=None): """ Returns the user's avatar's url. If the user has no avatar, then returns it's default avatar's url. Parameters ---------- ext : `str`, Optional The extension of the image's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. If the user has animated avatar, it can `'gif'` as well. size : `int`, Optional. The preferred minimal size of the avatar's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = user.avatar_type if icon_type is ICON_TYPE_NONE: return user.default_avatar.url if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/avatars/{user.id}/{prefix}{user.avatar_hash:0>32x}.{ext}{end}' def default_avatar_url(default_avatar): """ Returns the default avatar's url. Returns ------- url : `str` """ return f'{CDN_ENDPOINT}/embed/avatars/{default_avatar.value}.png' def application_icon_url(application): """ Returns the application's icon's url. If the application has no icon, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = application.icon_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/app-icons/{application.id}/{prefix}{application.icon_hash:0>32x}.{ext}' def application_icon_url_as(application, ext='png', size=None): """ Returns the application's icon's url. If the application has no icon, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the icon's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the icon's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = application.icon_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/app-icons/{application.id}/{prefix}{application.icon_hash:0>32x}.{ext}{end}' def application_cover_url(application): """ Returns the application's cover image's url. If the application has no cover image, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = application.cover_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/app-assets/{application.id}/store/{prefix}{application.cover_hash:0>32x}.{ext}' def application_cover_url_as(application, ext='png', size=None): """ Returns the application's cover image's url. If the application has no cover image, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the cover's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the cover's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = application.cover_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/app-assets/{application.id}/store/{prefix}{application.cover_hash:0>32x}.{ext}{end}' def team_icon_url(team): """ Returns the team's icon's url. If the team has no icon, then returns `None`. Returns ------- url : `str` or `None` """ icon_type = team.icon_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/team-icons/{team.id}/{prefix}{team.icon_hash:0>32x}.{ext}' def team_icon_url_as(team, ext='png', size=None): """ Returns the team's icon's url. If the team has no icon, then returns `None`. Parameters ---------- ext : `str`, Optional The extension of the icon's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the icon's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = team.icon_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/team-icons/{team.id}/{prefix}{team.icon_hash:0>32x}.{ext}{end}' def achievement_icon_url(achievement): """ Returns the achievement's icon's url. Returns ------- url : `str` or `None` """ icon_type = achievement.icon_type if icon_type is ICON_TYPE_NONE: return None if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' return f'{CDN_ENDPOINT}/app-assets/{achievement.application_id}/achievements/{achievement.id}/icons/{prefix}{achievement.icon_hash:0>32x}.{ext}' def achievement_icon_url_as(achievement, ext='png', size=None): """ Returns the achievement's icon's url. Parameters ---------- ext : `str`, Optional The extension of the icon's url. Can be any of: `'jpg'`, `'jpeg'`, `'png'`, `'webp'`. size : `int`, Optional. The preferred minimal size of the icon's url. Can be any of: `16`, `32`, `64`, `128`, `256`, `512`, `1024`, `2048`, `4096`. Returns ------- url : `str` or `None` Raises ------ ValueError If `ext` or `size` was not passed as any of the expected values. """ icon_type = achievement.icon_type if icon_type is ICON_TYPE_NONE: return None if size is None: end = '' elif size in VALID_ICON_SIZES: end = f'?size={size}' else: raise ValueError(f'Size must be power of 2 between 16 and 4096, got {size}.') if ext is None: if icon_type is ICON_TYPE_STATIC: prefix = '' ext = 'png' else: prefix = 'a_' ext = 'gif' else: if icon_type is ICON_TYPE_STATIC: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS}, got {ext!r}.') prefix = '' else: if ext not in VALID_ICON_FORMATS_EXTENDED: raise ValueError(f'Extension must be one of {VALID_ICON_FORMATS_EXTENDED}, got {ext!r}.') prefix = 'a_' return f'{CDN_ENDPOINT}/app-assets/{achievement.application_id}/achievements/{achievement.id}/icons/{prefix}{achievement.icon_hash:0>32x}.{ext}{end}' # export module_utils.MESSAGE_JUMP_URL_RP = MESSAGE_JUMP_URL_RP
29.88403
153
0.577136
4,292
31,438
4.080382
0.043802
0.060298
0.046594
0.03426
0.89602
0.886256
0.862045
0.846343
0.834866
0.827899
0
0.024132
0.293498
31,438
1,051
154
29.912464
0.764351
0.302373
0
0.820313
0
0.044922
0.268508
0.151128
0
0
0
0
0
1
0.0625
false
0
0.007813
0
0.201172
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
1820201f41e7a21c0f04bce582543a2abaaba157
3,960
py
Python
dataset/hotels5k.py
aarashfeizi/proxynca_pp
6f78d464e1e4270e77b69e441b9d639771ae02dd
[ "MIT" ]
null
null
null
dataset/hotels5k.py
aarashfeizi/proxynca_pp
6f78d464e1e4270e77b69e441b9d639771ae02dd
[ "MIT" ]
null
null
null
dataset/hotels5k.py
aarashfeizi/proxynca_pp
6f78d464e1e4270e77b69e441b9d639771ae02dd
[ "MIT" ]
null
null
null
from .base import * import h5py import torch class Hotels5k(BaseDatasetMod): def __init__(self, root, source, classes, transform=None): BaseDatasetMod.__init__(self, root, source, classes, transform) index = 0 for i in torchvision.datasets.ImageFolder(root= os.path.join(root, 'images')).imgs: # i[1]: label, i[0]: root y = i[1] # fn needed for removing non-images starting with `._` fn = os.path.split(i[0])[1] if y in self.classes and fn[:2] != '._': self.ys += [y] self.I += [index] self.im_paths.append(os.path.join(root, i[0])) index += 1 class Hotels5k_hdf5(BaseDataset_hdf5): def __init__(self, root, source, classes, transform=None): BaseDataset_hdf5.__init__(self, root, source, classes, transform) index = 0 self.data_y = h5py.File(root, 'r') self.all_labels = torch.Tensor(self.data_y['y']).squeeze().long() self.data_y.close() self.data_y = None for ix in range(len(self.all_labels)): self.ys += [self.all_labels[ix].item()] self.I += [ix] index += 1 class Hotels5k_hdf5_alt(BaseDataset_hdf5_alt): def __init__(self, root, source, classes, transform=None): BaseDataset_hdf5_alt.__init__(self, root, source, classes, transform) index = 0 self.data_y = h5py.File(root, 'r') self.all_labels = torch.Tensor(self.data_y['y']).squeeze().long() self.data_y.close() self.data_y = None for ix in range(len(self.all_labels)): if self.all_labels[ix] in self.classes: self.ys += [self.all_labels[ix].item()] self.I += [ix] index += 1 class Hotels5k_hdf5_bb(BaseDataset_hdf5_bb): def __init__(self, root, source, classes, transform=None): BaseDataset_hdf5_bb.__init__(self, root, source, classes, transform) index = 0 self.data_y = h5py.File(root, 'r') self.all_labels = torch.Tensor(self.data_y['y']).squeeze().long() self.data_y.close() self.data_y = None for ix in range(len(self.all_labels)): if self.all_labels[ix] in self.classes: self.ys += [self.all_labels[ix].item()] self.I += [ix] index += 1 class Hotels5k_class(BaseDatasetMod): def __init__(self, root, source, classes, transform=None, mode='train'): BaseDatasetMod.__init__(self, root, source, classes, transform) index = 0 for i in torchvision.datasets.ImageFolder(root= os.path.join(root, 'images')).imgs: # i[1]: label, i[0]: root y = i[1] # fn needed for removing non-images starting with `._` fn = os.path.split(i[0])[1] if y in self.classes and fn[:2] != '._': self.ys += [y] self.I += [index] self.im_paths.append(os.path.join(root, i[0])) index += 1 cut_off = int(len(self.ys) * 0.5) torch.manual_seed(1) rand_list = torch.randperm(len(self.ys)).tolist() ys = [] I = [] paths = [] if mode == 'train': for ix in range(len(self.ys)): if ix < cut_off: ys.append(self.ys[rand_list[ix]]) I.append(self.I[rand_list[ix]]) paths.append(self.im_paths[rand_list[ix]]) else: for ix in range(len(self.ys)): if ix >= cut_off: ys.append(self.ys[rand_list[ix]]) I.append(self.I[rand_list[ix]]) paths.append(self.im_paths[rand_list[ix]]) self.ys = ys self.I = I self.im_paths = paths
36
85
0.530808
508
3,960
3.942913
0.149606
0.035946
0.053919
0.089865
0.876685
0.868198
0.868198
0.868198
0.868198
0.81328
0
0.017136
0.336869
3,960
109
86
36.330275
0.745621
0.038636
0
0.715909
0
0
0.008417
0
0
0
0
0
0
1
0.056818
false
0
0.034091
0
0.147727
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
43ea81e70bc10c3d26951285f75b2917c76aa62f
740
py
Python
lambdas/web_helper.py
ongzhixian/mini-aws
8e188eeb6a5f597a21260eabc268d979dc4b6a05
[ "MIT" ]
null
null
null
lambdas/web_helper.py
ongzhixian/mini-aws
8e188eeb6a5f597a21260eabc268d979dc4b6a05
[ "MIT" ]
null
null
null
lambdas/web_helper.py
ongzhixian/mini-aws
8e188eeb6a5f597a21260eabc268d979dc4b6a05
[ "MIT" ]
null
null
null
class ContentType: JSON = "application/json" HTML = "text/html" TEXT = "text/plain" def response(content, status_code = 200, content_type = ContentType.HTML): return { "statusCode": status_code, "body": content, "headers": { "Content-Type": content_type } } def html_response(content, status_code = 200, content_type = ContentType.HTML): return response(content, status_code, content_type) def json_response(content, status_code = 200, content_type = ContentType.JSON): return response(content, status_code, content_type) def text_response(content, status_code = 200, content_type = ContentType.TEXT): return response(content, status_code, content_type)
25.517241
79
0.690541
86
740
5.72093
0.209302
0.20122
0.29878
0.355691
0.703252
0.703252
0.703252
0.617886
0.243902
0.243902
0
0.020443
0.206757
740
28
80
26.428571
0.817717
0
0
0.166667
0
0
0.092141
0
0
0
0
0
0
1
0.222222
false
0
0
0.222222
0.666667
0
0
0
0
null
1
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
7
a13fd7b3e5c4d5ee16481649bf638a3a88c4ab2a
604
py
Python
src_py/test.py
somefunAgba/expalts
80d992d509e71d858bf7bad9308235619cd8d7ee
[ "BSD-3-Clause" ]
null
null
null
src_py/test.py
somefunAgba/expalts
80d992d509e71d858bf7bad9308235619cd8d7ee
[ "BSD-3-Clause" ]
null
null
null
src_py/test.py
somefunAgba/expalts
80d992d509e71d858bf7bad9308235619cd8d7ee
[ "BSD-3-Clause" ]
null
null
null
# python test import time from expalts import expalts n = 40 print('C++: bones limit') start_time = time.perf_counter_ns() print('Answer:', expalts.bones(n,0)) print('Time:', (time.perf_counter_ns() - start_time) / 1e9, 's') print('C++: bones in-built') start_time = time.perf_counter_ns() print('Answer:', expalts.bones(n,1)) print('Time:', (time.perf_counter_ns() - start_time) / 1e9, 's') print('C++: bones laplace') start_time = time.perf_counter_ns() print('Answer:', expalts.bones(n,2)) print('Time:', (time.perf_counter_ns() - start_time) / 1e9, 's') # View methods in the module help(expalts)
27.454545
64
0.695364
96
604
4.1875
0.3125
0.134328
0.179104
0.283582
0.718905
0.718905
0.718905
0.718905
0.718905
0.718905
0
0.020484
0.110927
604
22
65
27.454545
0.728119
0.062914
0
0.375
0
0
0.163121
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.5625
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
7
a156b3df1770250ddb0c51bc94d2e469d9e2070c
129
py
Python
src/training/Core2/task6/exercise_11_15.py
MagicForest/Python
8af56e9384061504f05b229467c922ba71a433cb
[ "Apache-2.0" ]
null
null
null
src/training/Core2/task6/exercise_11_15.py
MagicForest/Python
8af56e9384061504f05b229467c922ba71a433cb
[ "Apache-2.0" ]
null
null
null
src/training/Core2/task6/exercise_11_15.py
MagicForest/Python
8af56e9384061504f05b229467c922ba71a433cb
[ "Apache-2.0" ]
null
null
null
def print_char_by_char(str): for c in str: print c if __name__ == '__main__': print_char_by_char('abdef')
18.428571
31
0.620155
20
129
3.3
0.6
0.272727
0.333333
0.454545
0
0
0
0
0
0
0
0
0.27907
129
7
31
18.428571
0.709677
0
0
0
0
0
0.104839
0
0
0
0
0
0
0
null
null
0
0
null
null
0.6
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
1
0
0
0
0
0
0
1
0
7
a176171bb7801257ba9afc4cdc5fb121339d15f7
10,978
py
Python
careers/migrations/0006_auto_20210828_0834.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
careers/migrations/0006_auto_20210828_0834.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
careers/migrations/0006_auto_20210828_0834.py
zain-Z/humimp
fd7e4e211dce62639e2fce2dd9f9506240a7a3d9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2021-08-28 06:34 import careers.validators import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('careers', '0005_auto_20210825_1547'), ] operations = [ migrations.AlterField( model_name='careerdetail', name='contract_duration', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetail', name='deadline', field=models.DateField(blank=True, default=datetime.date.today), ), migrations.AlterField( model_name='careerdetail', name='description', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='governorate', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetail', name='image_career_details', field=models.FileField(blank=True, default='', upload_to='background/career_details/', validators=[careers.validators.validate_image_extension]), ), migrations.AlterField( model_name='careerdetail', name='job_shift', field=models.CharField(blank=True, choices=[('1', 'Full time'), ('2', 'Part time'), ('3', 'Internship')], default='', max_length=1), ), migrations.AlterField( model_name='careerdetail', name='job_type', field=models.CharField(blank=True, choices=[('1', 'Full time'), ('2', 'Part time'), ('3', 'Internship')], default='', max_length=1), ), migrations.AlterField( model_name='careerdetail', name='location', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetail', name='minimum_education', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetail', name='minimum_experience', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetail', name='no_of_jobs', field=models.PositiveIntegerField(blank=True, default=1), ), migrations.AlterField( model_name='careerdetail', name='posted', field=models.DateField(blank=True, default=datetime.date.today), ), migrations.AlterField( model_name='careerdetail', name='puplished', field=models.DateField(blank=True, default=datetime.date.today), ), migrations.AlterField( model_name='careerdetail', name='required_travel', field=models.CharField(blank=True, default='', max_length=150), ), migrations.AlterField( model_name='careerdetail', name='role_1', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_10', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_11', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_12', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_13', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_14', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_15', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_16', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_17', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_18', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_19', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_2', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_20', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_3', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_4', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_5', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_6', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_7', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_8', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='role_9', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_1', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_10', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_11', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_12', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_13', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_14', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_15', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_16', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_17', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_18', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_19', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_2', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_20', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_3', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_4', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_5', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_6', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_7', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_8', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='skill_9', field=models.TextField(blank=True, default=''), ), migrations.AlterField( model_name='careerdetail', name='title', field=models.CharField(blank=True, default='', max_length=300), ), migrations.AlterField( model_name='careerdetatilimage', name='image_footer_logo_career_detail_image', field=models.FileField(blank=True, default='', upload_to='background/career_detail_image/', validators=[careers.validators.validate_image_extension]), ), migrations.AlterField( model_name='careerdetatilimage', name='image_header_logo_sticky_career_detail_image', field=models.FileField(blank=True, default='', upload_to='background/career_detail_image/', validators=[careers.validators.validate_image_extension]), ), migrations.AlterField( model_name='careerlist', name='image_bg_career_list', field=models.FileField(blank=True, default='', upload_to='background/career_list/', validators=[careers.validators.validate_image_extension]), ), ]
35.875817
162
0.555839
953
10,978
6.243442
0.114376
0.194958
0.243697
0.282689
0.924874
0.924874
0.909076
0.880336
0.872773
0.872773
0
0.01635
0.31472
10,978
305
163
35.993443
0.774558
0.004099
0
0.759197
1
0
0.133931
0.019669
0
0
0
0
0
1
0
false
0
0.010033
0
0.020067
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
a194ee56fa82c6c22dcd91ba74bf2848269757fe
253
py
Python
models/datasets/__init__.py
MorMundHS-MA/predicting-bugs-gnn
139c7a41b48f2d62c7ded44bb5e6ad56d2584a95
[ "MIT" ]
null
null
null
models/datasets/__init__.py
MorMundHS-MA/predicting-bugs-gnn
139c7a41b48f2d62c7ded44bb5e6ad56d2584a95
[ "MIT" ]
null
null
null
models/datasets/__init__.py
MorMundHS-MA/predicting-bugs-gnn
139c7a41b48f2d62c7ded44bb5e6ad56d2584a95
[ "MIT" ]
null
null
null
from models.datasets.bugs_dataset import BugFixDataset from models.datasets.complexity_dataset import ComplexityDataset from models.datasets.bugs_pair_dataset import BugFixPairDataset from models.datasets.mongodb_datasource import MongoDBDataSource
50.6
65
0.889328
29
253
7.586207
0.482759
0.181818
0.327273
0.2
0
0
0
0
0
0
0
0
0.079051
253
4
66
63.25
0.944206
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
a1d2c50ebf695929cbfc9bb570da28a73cf2d98d
201
py
Python
Kapitel-1/programm5.py
BeatRush2011/TI3-Prog-Ressel
09741260734cd8555e5dddfbd79ab947921c9fdc
[ "MIT" ]
null
null
null
Kapitel-1/programm5.py
BeatRush2011/TI3-Prog-Ressel
09741260734cd8555e5dddfbd79ab947921c9fdc
[ "MIT" ]
null
null
null
Kapitel-1/programm5.py
BeatRush2011/TI3-Prog-Ressel
09741260734cd8555e5dddfbd79ab947921c9fdc
[ "MIT" ]
null
null
null
from datetime import date print(f'Tage zwischen 1.1.2000 und 24.12.2020: {6 * 366 + 15 * 365 - 8} Tage') print(f'Mittels Pythons datetime Modul: {(date(2020, 12, 24) - date(2000, 1, 1)).days} Tage')
33.5
93
0.666667
37
201
3.621622
0.621622
0.089552
0
0
0
0
0
0
0
0
0
0.22619
0.164179
201
5
94
40.2
0.571429
0
0
0
0
0.666667
0.751244
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
7
62c383558289218c720ba68bf810685c9245c4be
207
py
Python
anyway_etl/anyway_kubectl.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
null
null
null
anyway_etl/anyway_kubectl.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
15
2021-08-22T11:53:47.000Z
2022-02-21T17:09:53.000Z
anyway_etl/anyway_kubectl.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
5
2021-07-20T22:19:35.000Z
2022-02-22T09:44:25.000Z
import subprocess from .config import ANYWAY_KUBECTL_NAMESPACE def check_call(*args): subprocess.check_call(['kubectl', '-n', ANYWAY_KUBECTL_NAMESPACE, 'exec', 'deployment/anyway-main', '--', *args])
25.875
117
0.73913
25
207
5.88
0.6
0.176871
0.29932
0
0
0
0
0
0
0
0
0
0.10628
207
7
118
29.571429
0.794595
0
0
0
0
0
0.178744
0.10628
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
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
1
1
0
1
0
1
0
0
7
a7f9c8b66f26760621e2768bacc0577507d728f2
7,031
py
Python
qmeq/tests/data_builder_elph.py
M-Josefsson/qmeq
f4f08864fc778de7c14b198c0ffbaafe33ce18f6
[ "BSD-2-Clause" ]
16
2016-12-14T09:21:16.000Z
2022-02-23T08:01:45.000Z
qmeq/tests/data_builder_elph.py
M-Josefsson/qmeq
f4f08864fc778de7c14b198c0ffbaafe33ce18f6
[ "BSD-2-Clause" ]
3
2018-02-03T19:13:01.000Z
2021-06-09T14:10:28.000Z
qmeq/tests/data_builder_elph.py
M-Josefsson/qmeq
f4f08864fc778de7c14b198c0ffbaafe33ce18f6
[ "BSD-2-Clause" ]
7
2017-07-09T04:46:42.000Z
2021-04-26T16:27:55.000Z
data = { 'Pauli22current': [-3.602032381671809e-08, 3.6020323816713775e-08, -3.602032381671809e-08, 3.6020323816713775e-08], 'Pauli22energy_current': [-3.6020323816717015e-09, -3.6020323816714856e-09, -3.6020323816717015e-09, -3.6020323816714856e-09], 'Redfield00current': [-2.396815483544316e-08, 2.396815483540777e-08, -2.396815483544316e-08, 2.396815483540777e-08], 'Redfield00energy_current': [-2.689229619262236e-09, -4.072076712399872e-09, -2.689229619262236e-09, -4.072076712399872e-09], 'Redfield02current': [-3.600941233519408e-08, 3.600941233518016e-08, -3.600941233519408e-08, 3.600941233518016e-08], 'Redfield02energy_current': [-3.606873616307786e-09, -3.602008515832424e-09, -3.606873616307786e-09, -3.602008515832424e-09], 'Redfield10current': [-2.3965670226602342e-08, 2.39656702266174e-08, -2.3965670226602342e-08, 2.39656702266174e-08], 'Redfield10energy_current': [-2.68947820124473e-09, -4.072370573058238e-09, -2.68947820124473e-09, -4.072370573058238e-09], 'Redfield12current': [-3.600695619491466e-08, 3.60069561949047e-08, -3.600695619491466e-08, 3.60069561949047e-08], 'Redfield12energy_current': [-3.6071142033407265e-09, -3.602301518523242e-09, -3.607114203340726e-09, -3.6023015185232415e-09], 'Redfield20current': [-2.3979370744862137e-08, 2.3979370744834503e-08, -2.3979370744862137e-08, 2.3979370744834503e-08], 'Redfield20energy_current': [-2.6850534312908126e-09, -4.071367007741718e-09, -2.6850534312908126e-09, -4.071367007741718e-09], 'Redfield22current': [-3.602031349920948e-08, 3.602031349918888e-08, -3.602031349920948e-08, 3.602031349918888e-08], 'Redfield22energy_current': [-3.602031595941338e-09, -3.6020327838284667e-09, -3.602031595941338e-09, -3.6020327838284667e-09], '1vN00current': [-1.985304901425201e-08, 1.985304901420306e-08, -1.985304901425201e-08, 1.985304901420306e-08], '1vN00energy_current': [-2.2734997137905297e-09, -3.658335646791615e-09, -2.2734997137905297e-09, -3.6583356467916152e-09], '1vN02current': [-3.601239045924915e-08, 3.601239045924151e-08, -3.601239045924915e-08, 3.601239045924151e-08], '1vN02energy_current': [-3.601992870105317e-09, -3.605360209892802e-09, -3.6019928701053175e-09, -3.605360209892802e-09], '1vN10current': [-1.9850625426784767e-08, 1.9850625426805132e-08, -1.9850625426784767e-08, 1.9850625426805132e-08], '1vN10energy_current': [-2.273640315079029e-09, -3.6584768389031423e-09, -2.273640315079029e-09, -3.658476838903142e-09], '1vN12current': [-3.600993541674126e-08, 3.600993541674398e-08, -3.600993541674126e-08, 3.600993541674398e-08], '1vN12energy_current': [-3.6021343397972284e-09, -3.605492920352015e-09, -3.6021343397972284e-09, -3.605492920352015e-09], '1vN20current': [-1.9860646245046236e-08, 1.9860646245034424e-08, -1.9860646245046236e-08, 1.9860646245034424e-08], '1vN20energy_current': [-2.272566745499942e-09, -3.6559145437733978e-09, -2.272566745499942e-09, -3.6559145437733978e-09], '1vN22current': [-3.602030995450536e-08, 3.602030995449963e-08, -3.602030995450536e-08, 3.602030995449963e-08], '1vN22energy_current': [-3.602031241471274e-09, -3.602032429359029e-09, -3.602031241471274e-09, -3.602032429359029e-09], 'Lindblad22current': [-3.602190690666546e-08, 3.6017106162292576e-08, -3.602190690666546e-08, 3.6017106162292576e-08], 'Lindblad22energy_current': [-3.602070531210417e-09, -3.6018304939917723e-09, -3.602070531210417e-09, -3.6018304939917723e-09], 'pyPauli22current': [-3.602032381671809e-08, 3.6020323816713775e-08, -3.602032381671809e-08, 3.6020323816713775e-08], 'pyPauli22energy_current': [-3.6020323816717015e-09, -3.6020323816714856e-09, -3.6020323816717015e-09, -3.6020323816714856e-09], 'pyRedfield00current': [-2.396815483544316e-08, 2.396815483540777e-08, -2.396815483544316e-08, 2.396815483540777e-08], 'pyRedfield00energy_current': [-2.689229619262236e-09, -4.072076712399872e-09, -2.689229619262236e-09, -4.072076712399872e-09], 'pyRedfield02current': [-3.600941233519408e-08, 3.600941233518016e-08, -3.600941233519408e-08, 3.600941233518016e-08], 'pyRedfield02energy_current': [-3.606873616307786e-09, -3.602008515832424e-09, -3.606873616307786e-09, -3.602008515832424e-09], 'pyRedfield10current': [-2.3965670226602342e-08, 2.39656702266174e-08, -2.3965670226602342e-08, 2.39656702266174e-08], 'pyRedfield10energy_current': [-2.68947820124473e-09, -4.072370573058238e-09, -2.68947820124473e-09, -4.072370573058238e-09], 'pyRedfield12current': [-3.600695619491466e-08, 3.60069561949047e-08, -3.600695619491466e-08, 3.60069561949047e-08], 'pyRedfield12energy_current': [-3.6071142033407265e-09, -3.602301518523242e-09, -3.607114203340726e-09, -3.6023015185232415e-09], 'pyRedfield20current': [-2.3979370744862137e-08, 2.3979370744834503e-08, -2.3979370744862137e-08, 2.3979370744834503e-08], 'pyRedfield20energy_current': [-2.6850534312908126e-09, -4.071367007741718e-09, -2.6850534312908126e-09, -4.071367007741718e-09], 'pyRedfield22current': [-3.602031349920948e-08, 3.602031349918888e-08, -3.602031349920948e-08, 3.602031349918888e-08], 'pyRedfield22energy_current': [-3.602031595941338e-09, -3.6020327838284667e-09, -3.602031595941338e-09, -3.6020327838284667e-09], 'py1vN00current': [-1.985304901425201e-08, 1.985304901420306e-08, -1.985304901425201e-08, 1.985304901420306e-08], 'py1vN00energy_current': [-2.2734997137905297e-09, -3.658335646791615e-09, -2.2734997137905297e-09, -3.6583356467916152e-09], 'py1vN02current': [-3.601239045924915e-08, 3.601239045924151e-08, -3.601239045924915e-08, 3.601239045924151e-08], 'py1vN02energy_current': [-3.601992870105317e-09, -3.605360209892802e-09, -3.6019928701053175e-09, -3.605360209892802e-09], 'py1vN10current': [-1.9850625426784767e-08, 1.9850625426805132e-08, -1.9850625426784767e-08, 1.9850625426805132e-08], 'py1vN10energy_current': [-2.273640315079029e-09, -3.6584768389031423e-09, -2.273640315079029e-09, -3.658476838903142e-09], 'py1vN12current': [-3.600993541674126e-08, 3.600993541674398e-08, -3.600993541674126e-08, 3.600993541674398e-08], 'py1vN12energy_current': [-3.6021343397972284e-09, -3.605492920352015e-09, -3.6021343397972284e-09, -3.605492920352015e-09], 'py1vN20current': [-1.9860646245046236e-08, 1.9860646245034424e-08, -1.9860646245046236e-08, 1.9860646245034424e-08], 'py1vN20energy_current': [-2.272566745499942e-09, -3.6559145437733978e-09, -2.272566745499942e-09, -3.6559145437733978e-09], 'py1vN22current': [-3.602030995450536e-08, 3.602030995449963e-08, -3.602030995450536e-08, 3.602030995449963e-08], 'py1vN22energy_current': [-3.602031241471274e-09, -3.602032429359029e-09, -3.602031241471274e-09, -3.602032429359029e-09], 'pyLindblad22current': [-3.602046960217681e-08, 3.6020469602176456e-08, -3.602046960217681e-08, 3.6020469602176456e-08], 'pyLindblad22energy_current': [-3.6020468747597642e-09, -3.602046874759747e-09, -3.6020468747597642e-09, -3.602046874759747e-09] }
121.224138
133
0.767743
757
7,031
7.093791
0.17041
0.03352
0.014153
0.014898
0.838734
0.838734
0.780633
0.780633
0.780633
0.780633
0
0.649387
0.072678
7,031
58
134
121.224138
0.174233
0
0
0
0
0
0.152446
0.073948
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
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
9
3d745de6754224b71dc6cb54e7feb60da2baf9bb
1,042
py
Python
HackerRank/Python/Strings/Alphabet Rangoli.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
HackerRank/Python/Strings/Alphabet Rangoli.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
HackerRank/Python/Strings/Alphabet Rangoli.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
def print_rangoli(size): w = (n-1) * 2 + ((n * 2) - 1) #upper half for i in range(1,n,1): number_of_letter = (i*2) - 1 s = '' letter_value = 97 + n - 1 for i in range(0,number_of_letter): if(i != 0): s += '-' s += chr(letter_value) if(i<(number_of_letter-1) / 2): letter_value = letter_value - 1 else: letter_value = letter_value + 1 print(s.center(w,'-')) #bottom half for i in range(n,0,-1): number_of_letter = (i*2) - 1 s = '' letter_value = 97 + n - 1 for i in range(0,number_of_letter): if(i != 0): s += '-' s += chr(letter_value) if(i<(number_of_letter-1) / 2): letter_value = letter_value - 1 else: letter_value = letter_value + 1 print(s.center(w,'-')) if __name__ == '__main__': print_rangoli(int(input()))
29.771429
59
0.440499
136
1,042
3.125
0.220588
0.310588
0.197647
0.103529
0.832941
0.762353
0.762353
0.762353
0.762353
0.762353
0
0.05
0.424184
1,042
35
60
29.771429
0.658333
0.020154
0
0.8
0
0
0.011765
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.033333
0.133333
0
0
0
null
1
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
3d7de87276529fc3316d285b375dc91862c999e2
3,744
py
Python
uat/test_uat_publish.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
10
2022-01-15T09:50:32.000Z
2022-03-26T16:39:49.000Z
uat/test_uat_publish.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
46
2021-11-30T19:49:16.000Z
2022-03-31T07:14:23.000Z
uat/test_uat_publish.py
timmattison/aws-greengrass-gdk-cli
60a002f0f2fee84b79022662ba0cae9e0246b6f8
[ "Apache-2.0" ]
7
2021-11-30T19:49:42.000Z
2022-03-17T16:25:34.000Z
import os from pathlib import Path import t_utils def test_publish_template_zip(change_test_dir, gdk_cli): # Recipe contains HelloWorld.zip artifact. So, create HelloWorld directory inside temporary directory. path_HelloWorld = Path(change_test_dir).joinpath("HelloWorld") component_name = "com.example.PythonHelloWorld" region = "us-east-1" bucket = "gdk-cli-uat" author = "gdk-cli-uat" # Check if init downloads templates with necessary files. check_init_template = gdk_cli.run(["component", "init", "-t", "HelloWorld", "-l", "python", "-n", "HelloWorld"]) assert check_init_template.returncode == 0 assert Path(path_HelloWorld).joinpath("recipe.yaml").resolve().exists() config_file = Path(path_HelloWorld).joinpath("gdk-config.json").resolve() assert config_file.exists() t_utils.update_config(config_file, component_name, region, bucket, author) os.chdir(path_HelloWorld) # Check if build works as expected. check_build_template = gdk_cli.run(["component", "build"]) assert check_build_template.returncode == 0 assert Path(path_HelloWorld).joinpath("zip-build").resolve().exists() assert Path(path_HelloWorld).joinpath("greengrass-build").resolve().exists() artifact_path = ( Path(path_HelloWorld) .joinpath("greengrass-build") .joinpath("artifacts") .joinpath(component_name) .joinpath("NEXT_PATCH") .joinpath("HelloWorld.zip") .resolve() ) assert artifact_path.exists() check_publish_component = gdk_cli.run(["component", "publish"]) assert check_publish_component.returncode == 0 recipes_path = Path(path_HelloWorld).joinpath("greengrass-build").joinpath("recipes").resolve() t_utils.clean_up_aws_resources(component_name, t_utils.get_version_created(recipes_path, component_name), region) def test_publish_without_build_template_zip_with_bucket_arg(change_test_dir, gdk_cli): # Recipe contains HelloWorld.zip artifact. So, create HelloWorld directory inside temporary directory. path_HelloWorld = Path(change_test_dir).joinpath("HelloWorld") component_name = "com.example.PythonHelloWorld" region = "us-east-1" bucket = "gdk-cli-uat" author = "gdk-cli-uat" # Check if init downloads templates with necessary files. check_init_template = gdk_cli.run(["component", "init", "-t", "HelloWorld", "-l", "python", "-n", "HelloWorld"]) assert check_init_template.returncode == 0 assert Path(path_HelloWorld).joinpath("recipe.yaml").resolve().exists() config_file = Path(path_HelloWorld).joinpath("gdk-config.json").resolve() assert config_file.exists() # Update gdk-config file mandatory field like region. t_utils.update_config(config_file, component_name, region, bucket, author) os.chdir(path_HelloWorld) # Pass in bucket name as arg bucket_arg = "{}-{}-{}".format(bucket, region, t_utils.get_acc_num(region)) check_publish_component = gdk_cli.run(["component", "publish", "-b", bucket_arg]) assert check_publish_component.returncode == 0 assert Path(path_HelloWorld).joinpath("zip-build").resolve().exists() assert Path(path_HelloWorld).joinpath("greengrass-build").resolve().exists() artifact_path = ( Path(path_HelloWorld) .joinpath("greengrass-build") .joinpath("artifacts") .joinpath(component_name) .joinpath("NEXT_PATCH") .joinpath("HelloWorld.zip") .resolve() ) assert artifact_path.exists() recipes_path = Path(path_HelloWorld).joinpath("greengrass-build").joinpath("recipes").resolve() t_utils.clean_up_aws_resources(component_name, t_utils.get_version_created(recipes_path, component_name), region)
45.658537
117
0.719284
458
3,744
5.635371
0.19214
0.086788
0.083688
0.120883
0.885316
0.875242
0.850058
0.850058
0.811313
0.811313
0
0.002206
0.152511
3,744
81
118
46.222222
0.81122
0.113782
0
0.8125
0
0
0.160121
0.016918
0
0
0
0
0.234375
1
0.03125
false
0
0.046875
0
0.078125
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3d92e2e60de42cb7895996984094142ed58ff430
169
py
Python
icepyx/__init__.py
zachghiaccio/icepyx
4bf75bd94d8b8db15dc8a0ebf14d1ff0966c3f3a
[ "BSD-3-Clause" ]
4
2019-06-21T16:46:35.000Z
2019-10-24T20:34:09.000Z
icepyx/__init__.py
zachghiaccio/icepyx
4bf75bd94d8b8db15dc8a0ebf14d1ff0966c3f3a
[ "BSD-3-Clause" ]
2
2019-06-21T00:04:36.000Z
2019-06-21T00:09:51.000Z
icepyx/__init__.py
zachghiaccio/icepyx
4bf75bd94d8b8db15dc8a0ebf14d1ff0966c3f3a
[ "BSD-3-Clause" ]
3
2019-06-21T18:43:08.000Z
2019-10-11T14:46:34.000Z
from icepyx.core.query import Query, GenQuery from icepyx.core.read import Read from icepyx.quest.quest import Quest from _icepyx_version import version as __version__
28.166667
50
0.840237
26
169
5.230769
0.384615
0.294118
0.205882
0
0
0
0
0
0
0
0
0
0.118343
169
5
51
33.8
0.912752
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
3da102010a73483b4aeeb5775f65e7485c9ac263
194
py
Python
StockPro/users/models.py
bhavy0949/Stock-Mark-It
df38eb99e3a39ce81abc4ad7dad222843d8cdeda
[ "MIT" ]
null
null
null
StockPro/users/models.py
bhavy0949/Stock-Mark-It
df38eb99e3a39ce81abc4ad7dad222843d8cdeda
[ "MIT" ]
null
null
null
StockPro/users/models.py
bhavy0949/Stock-Mark-It
df38eb99e3a39ce81abc4ad7dad222843d8cdeda
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class User(models.Model): username = models.CharField(max_length=50, unique=True) password = models.CharField(max_length=50)
27.714286
59
0.742268
27
194
5.259259
0.703704
0.211268
0.253521
0.338028
0.366197
0
0
0
0
0
0
0.02454
0.159794
194
7
60
27.714286
0.846626
0.123711
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.25
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
1
0
0
1
0
0
7
3db21be0c50cd1ce03ece9e46c7b8f61d94959c5
215
py
Python
privugger/__init__.py
itu-square/reident
a9f2a2cfb43ea0adeccbbed7ef119f5eae243bf5
[ "Apache-2.0" ]
2
2021-12-10T13:45:37.000Z
2021-12-15T08:32:01.000Z
privugger/__init__.py
itu-square/reident
a9f2a2cfb43ea0adeccbbed7ef119f5eae243bf5
[ "Apache-2.0" ]
39
2021-03-24T10:08:50.000Z
2022-03-29T22:02:24.000Z
privugger/__init__.py
itu-square/privugger
9b57605dbd1ed072feaedc17ca0cd688dbf2459a
[ "Apache-2.0" ]
null
null
null
""" The privugger package """ from privugger.transformer import * from privugger.measures import * from privugger.inference import * from privugger.distributions import * from privugger.data_structures import *
21.5
40
0.790698
24
215
7.041667
0.458333
0.384615
0.449704
0
0
0
0
0
0
0
0
0
0.134884
215
9
41
23.888889
0.908602
0.097674
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
3ddc0f26bcd055900edc40e9d3c6cca19bd5376e
39,134
py
Python
text2topics/phrases.py
jerielizabeth/text2topics
d7691ce730d9f447de2fcbcd2c81ead99c50ce74
[ "MIT" ]
1
2018-04-09T12:25:05.000Z
2018-04-09T12:25:05.000Z
GoH/preprocess.py
jerielizabeth/GoH
7c16eac86d76525170330924348cecccce3aa5cf
[ "MIT" ]
null
null
null
GoH/preprocess.py
jerielizabeth/GoH
7c16eac86d76525170330924348cecccce3aa5cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ENTITIES = """human system; moral obligation; true faith; wisdom of god; poor man; religious faith; new impetus; general conference association; utmost importance; rural districts; thy work; valuable help; anglo saxon; new ones; spiritual strength; whole family; great plan; greek word; future state; man cometh; religious worship; sixteenth century; physical health; religious exercises; valuable information; strong men; sunday question; endless life; drug store; new work; thou canst; northern part; san diego; missionary nurses; lords work; scarlet fever; big week; spirit of truth; text books; school secretary; night cometh; electric lights; such occasions; friends and neighbors; thy voice; mission work; white raiment; sabbath question; thee lord; gold coast; dark ages; eternal death; various phases; sacred things; farm work; old men; small quantities; great variety; solemn warning; living water; word of life; seventhday adventist church; heavenly places; people of god; gods law; important truths; great fact; true christian; own lusts; young man; new territory; religious legislation; intelligent people; divine power; roman catholics; south bend; new subscribers; sons and daughters; own name; chosen people; usual committees; walla walla; entire time; such means; whole life; resurrection of christ; whole church; free use; asia minor; alcoholic liquors; rest unto; old woman; columbia union conference; young woman; southern union; spirit of prophecy; little book; thy seed; gods judgment; sample copies; infinite power; joint heirs; evening meeting; christian workers; sons of god; pure water; individual work; worthy poor; fine gold; great event; new believers; great expense; common schools; new testament; human race; plan of redemption; living sacrifice; mary magdalene; religious persecution; sunday laws; poor souls; forty days; great thing; equal rights; great success; heathen nations; the church officers gazette; new york city; tithes and offerings; denominational literature; animal food; bishop of rome; thy truth thy; house of prayer; spiritual gifts; tent work; final judgment; uric acid; educational institutions; finger of god; such work; wedding garment; wonderful things; civil law; great desire; goon health; harvest field; religious services; early part; intermediate school; jewish sabbath; health journal; first love; subscription price; teachings of christ; return home; law of sin; eternal truth; youths instructor; educational work; commandment of god; tenth day; real estate; foreign countries; prophet daniel; whole nation; great extent; small portion; old time; recent years; sabbath observance; spirit of sacrifice; white flour; thy word; nurses course; mercies of god; southwestern union; religious questions; religious observance; good ground; turkish empire; glory to god; river conference; gods work; hinsdale ill; practical application; last sickness; special efforts; temple of god; day life; physical condition; wages of sin; entire population; annual meeting; fundamental principle; opportune time; rich men; daily news; own schools; heavy burdens; throne of grace; important work; gratitude to god; ark of the covenant; tracts and papers; old world; efficient workers; different churches; forty miles; southwestern union conference; red cross; christian faith; future work; different lines; whole heaven; nutritive value; large portion; children and youth; such power; own way; church buildings; the advocate; principles of truth; sea level; sacred scriptures; postage stamps; great value; central part; church property; public places; early writings; county seat; northern union conference; boat rescue; large numbers; powers of darkness; fellow men; new place; christian work; religious duties; pure in heart; christian statesman; unanimous vote; present membership; national religion; general conference bulletin; pacific union recorder; declaration of independence; religious rights; great harvest field; church history; important matters; state church; statute books; heavenly father; old man; whole story; ingathering signs; mighty hand; right spirit; true whatsoever things; copies value; school farm; strong effort; emperor william; rapid growth; sixteen years; pure air; mountain side; small company; great field; college place; spare time; begotten son; eternal world; gospel dispensation; such instruction; book of revelation; pure whatsoever things; large tent; large degree; life work; such questions; sabbathschool department; good effect; seventy years; beautiful city; own family; serious consideration; loma linda; true tabernacle; school house; lord and master; grace of god; bible teacher; fair attendance; college press mount; common law; new light; vegetarian meat; false doctrines; holy spirit; credentials and licenses; carnal mind; whole world; opening exercises; special manner; health reformer; treatment rooms; whole man; past life; business man; human rights; power of christ; prophetic word; mighty works; lord thy; prominent part; true christianity; year round; christian duty; excellent success; wrong habits; new covenant; gods servants; shalt thou; great encouragement; moral nature; early church; columbia union visitor; mission house; advent of christ; own hearts; sabbath march; long list; man of sin; present condition; large church; tobacco habit; martin luther; burnt offering; prayer meetings; self indulgence; land of egypt; blessed of god; gold edges; encouraging reports; field agent; religious people; corner stones; religious belief; special interest; dead men; years experience; such legislation; other languages; sanitarium cooking; thank god; certain conditions; evil ways; young persons; promised land; sunday law; such laws; san francisco; threefold message; good advantage; physical culture; first angels message; days work; christ god; thy foot; various kinds; holy ghost; honest man; john wesley; love to god; immortal soul; medical science; self denial; such experiences; laws of health; such people; beautiful grove; important truth; dear souls; great earthquake; general conference daily bulletin; own salvation; christian service; love the lord; missionary operations; verily verily; missionary societies; great truths; man of god; lord delayeth; own hands; perfect obedience; name of god; whole day; school lessons; god almighty; many mansions; own weakness; medical school; liquor traffic; lord help us; latter rain; moral sense; women and children; dark night; firm believer; gods spirit; temperance instructor; special reference; remnant people; united states of america; hot water; cross of christ; advent review and sabbath herald vol; infant baptism; association battle; medical profession; southern field; short period; life eternal; manual labor; trust in god; whole earth; sabbatic institution; own sake; righteousness of god; civil power; the review and herald; general work; whole system; faithful servants; considerable time; long journey; sabbath reform; signs magazine; private houses; holy city; large sums; great work; own lives; supreme law; young lady; kept the sabbath; church and state; college press; american republic; full attendance; strange thing; conference session; solemn message; christs second coming; proper observance; favorable time; essential part; sunday morning; local conferences; good judgment; personal saviour; keep the sabbath; sinful flesh; mortal man; warm water; great commission; prince of peace; pacific ocean; whole city; general meetings; good reading; poor soul; human being; message of salvation; good books; fathers and mothers; great man; dead man; christian temperance; home circle; dark place; intense interest; american brethren; huntsville ala; earthly things; due season; city work; conference bulletin; outside world; cold water; nervous system; faithful ones; twentieth century; white cloud; such persons; recent meeting; revised version; holy word; year book; street cars; old and young; glad day; review and herald takoma; etc etc; own souls; mission field; prophecy of daniel; high priest; strong desire; heavy laden; good things; considerable attention; important subject; faith in jesus; money orders; word of truth; medical work; great words; religious teachers; good beginning; good plan; great salvation; thy kingdom; gods plan; wise pass; new courage; present truth; large measure; day of god; average attendance; light shine; christian church; large quantity; good works; nashville tenn; christian era; olive tree; good care; public health; moral darkness; greek church; name of jesus; national life; washington post; such books; small part; absolute necessity; good company; temperance association; open air; faithful work; congregational church; ancient israel; half a dozen; college view; primitive church; book work; boys and girls; fulfillment of prophecy; american government; god of israel; sure foundation; great signs; chief priests; sabbath october; district of columbia; old dispensation; abraham lincoln; true education; whole truth; lake union herald; god rev; divine institution; summer months; saviour jesus christ; urgent calls; gods commandments; practical guide; conference committee; great mistake; thy house; great glory; paradise valley; fiscal year; evil habits; general health; public sentiment; los angeles cal; electric light; old friends; tract society; evil effects; lord willing; dear sister; great pleasure; german work; circle of friends; rochester n y ; public school system; early date; native land; earnest desire; total abstinence; camp ground; self righteousness; needy fields; whole year; own work; educational secretary; good courage; book contains; health and strength; good number; hard work; church membership; salvation army; spare moments; wise men; evil spirit; own judgment; white house; season of prayer; political power; whole armor; colporteur work; important matter; special sense; final triumph; blue eyes; great part; good way; advent movement; human nature; hearts of men; the youth; professed christians; seeds of truth; churches of christ; review herald; great responsibility; practical experience; thy truth thy word; lord spake; true temperance; various conferences; sodom and gomorrah; present war; thou bast; presbyterian church; own selves; good shepherd; important part; small things; own power; narrow way; power of god; gilt edges; the life boat; venerable day; washington sanitarium; common use; great care; flesh food; royal law; blood vessels; prophetic periods; real meaning; good place; new creation; nature of man; foreign languages; great events; the american sentinel; american citizen; great body; consistent christian; mount of olives; mission funds; practical instruction; christian citizenship; good work; work of christ; national reform; general public; great joy; buenos ayres; student body; great benefit; new law; christian principles; good experiences; work of grace; appointed time; encouraging words; christian science; herald takoma; public services; new thing; church building; considerable interest; church school work; good thing; precious faith; local conference; sunday observance; own strength; church of rome; dear ones; spirit of god; strong man; great movement; whole number; good health; full amount; rapids mich; financial support; social life; religious convictions; important events; bad habit; union college; good progress; good name; alimentary canal; german church; sleeps in jesus; life and health; class work; divine authority; department of education; post office; gospel ministry; divine plan; long run; advent review; worship of god; small children; papal church; great amount; past history; real interest; tent companies; precious seed; morning watch calendar; missionary purposes; eternal purpose; lord cometh; needy field; inch thick; new heavens; civil liberty; keeping the sabbath; dead in christ; active work; way home; jesus christ; great sufferer; medical missionary work; the lords day; religious service; week fund; sample copy; christian nations; old things; home missionary; religious bodies; battle creek sanitarium; evening service; saints of god; prosperous condition; strong arm; secret prayer; our heavenly father; glad tidings; large field; keeping the commandments; midnight cry; sufficient reason; thou shouldest; financial condition; thy father; such places; religious laws; ingathering campaign; god in christ; public opinion; effective work; bible doctrine; full report; senate committee; thou good; young girls; religious duty; the sentinel; sum total; old friend; god rom; outside attendance; holy law; new day; poor health; dear friends; dark places; excellent interest; false teachers; religious test; rural health; special effort; total membership; porto rico; good time; york sun; great demand; practical value; utmost capacity; partial report; entire year; gross darkness; american medical association; years past; missionary work; promise of god; precious truth; certain extent; thy people; ancient sabbath; mercy of god; certain day; united states; babylon is fallen; christian age; methodist minister; various lines; health food; los angeles; conference president; good condition; european war; early age; moral power; time past; seventhday adventist; church school teachers; spiritual blessings; true spirit; lancaster mass; fall of babylon; possible way; urgent call; patent medicines; important questions; foreign fields; own heart; great sin; special arrangement; health foods; prominent men; great light; different phases; temporal millennium; annual report; different times; accompany copy; spiritual life; temperance question; pacific health journal; peace and joy; wonderful work; natural heart; peculiar people; additional word; missionary labor; warning message; upper part; blood of jesus; secular history; own image; different languages; thy hand; sin unto salvation; lords supper; north american division; great city; vegetarian diet; old people; excellent meeting; new year; profitable meeting; school life; faithful workers; christian home; mind and body; subscription list; object lesson; plan of salvation; general assembly; gods word; annual session; fellow man; good news; asleep in jesus; character building; new school; great sacrifice; spiritual condition; authorized version; little company; old testament; christian life; self control; good interest; assistant secretary; fundamental law; law of moses; sanitarium work; physical development; past years; different places; seventh angel; human flesh; colored people; fiery furnace; mission offerings; large percentage; such cases; beautiful things; present conditions; adventist faith; general agent; mission station; evening services; earnest prayers; youth and children; battle creek michigan; advent review and sabbath herald; wide circulation; fruit trees; conference secretary; wrath of god; wonderful works; bread of life; glorious appearing; angel of the lord; business meeting; harvest time; digestive organs; divine law; name of christ; good words; low price; thy lord; white man; battle creek; sinful man; eighty years; double boiler; own sins; long beach; definite day; evil doers; new moon; large number; new religion; church school; health institute; thorough knowledge; important points; certain things; civil government; work thou; daily life; home journal; infinite wisdom; small quantity; good tidings; various departments; large part; roger williams; life boats; young person; lay members; conference office; full force; gift of god; creative power; fellow workers; particular day; free gift; excellent book; great importance; child of god; abdominal muscles; good education; great multitude; christian nation; temperance reform; charge thee; kingdom of god; church fellowship; good government; school year; object lessons; annual conference; dear people; school room; great controversy; battle creek college; lake union; express purpose; state agent; due time; earnest efforts; important thing; english language; sick room; long period; love thy neighbor; christian world; inspiration of god; true condition; general secretary; wrong course; open the door; city of god; proper way; business notices; own eyes; young friends; various places; saith unto; new church building; rainy season; successful work; firm stand; good man; recent letter; book of daniel; lord of hosts; missionary workers; adventist publishing; uriah smith; similar work; divine command; whole people; march acceptance; good success; such time; summer vacation; religious liberty work; whatsoever things; beloved disciple; page sheet; mission school; great purpose; eastern part; peace with god; church member; flesh meats; great men; entire field; whole body; jesus rev; followers of christ; early life; large circle; bible sabbath; mass meeting; desire of ages; subscription books; young men; simple faith; christ our lord; high places; lord hath; truth of god; large congregation; normal condition; command of god; different ways; practical way; pacific union college; vernon ohio; great power; faith in christ; school association; industrial school; large increase; canvassers institute; mighty men; various reasons; good seed; love of jesus; good impression; own country; camp meetings; tract societies; state tract society; sabbath law; important branch; fierce anger; present generation; seventy weeks; sabbath june; actual experience; blind man; new members; full particulars; the review and herald vol; great difficulty; various churches; hearty cooperation; great crisis; personal experience; night meetings; school board; professors of religion; long distances; year cents; fig tree; des moines; life and death; law of liberty; key note; eternal life; whole question; such teaching; perfect man; vital importance; creation week; funeral service; law till; peace of god; holy angels; third angel; thy name; great advantage; living faith; publishing company; great world; human law; moral government; holy men; vital organs; california nevada; judgments of god; jewish church; small books; ancient times; thy ways; pacific union; foreign lands; home and health; present hour; general conference committee; ice cream; western part; king of kings; open doors; ceremonial law; hard times; pacific press; north american division conference; carnal heart; saloon keepers; common branches; animal life; better life; rich man; personal labor; oakland cal; days perilous times; power thereof; house of israel; certain number; active service; school lesson; great war; school building; excellent spirit; public worship; seventhday baptists; worth living; temperance society; david paulson; local societies; annual offering; year numbers; thine heart; aggressive work; civil authority; young children; union mission; past ages; large attendance; time of trouble; human agent; seed sown; office address; light and truth; hereby express; systematic benevolence; principles of health; old gentleman; spake often; pure heart; tent efforts; new workers; baptismal service; vernon ohio price cents; dry land; important question; good people; efficient work; conference laborers; spirit of love; sunday school; graysville tenn; religious meetings; foreign mission work; good attendance; may god; service of god; missionary secretary; denominational schools; personal letter; such matters; life of christ; fourth commandment; sabbath school; free distribution; bible training; different parts; reform association; physical strength; full quota; holy mountain; military service; adventist minister; small town; perilous times; spiritual food; own children; different denominations; church of christ; church work; good order; life liberty; good meeting; river academy; immortal life; certain amount; sixty years; corner stone; great commandment; definite time; michigan tract; good attention; canadian union conference; school donations; important place; home life; valuable assistance; intermediate schools; righteous dead; thick darkness; high standard; own people; wicked world; new heart; such men; god christ; special message; circuit court; new church; earnest prayer; school teachers; private letter; rio grande; christian association; park station; review and herald; such expressions; such meetings; great blessings; different points; lord bless; medical secretary; land of canaan; general government; great conflict; days meeting; american sentinel; praise to god; precious light; great principles; faithful servant; haskell home; reading courses; great apostasy; meeting house; own hand; glorious truth; church elders; deepest interest; european division; wholesome food; such action; thy cattle; heart disease; infallible word; patient continuance; ministry of healing; lord jesus; definite plans; glorious light; thy bread; general way; careful study; natural immortality; the home missionary; special help; commandments of god; gospel of peace; fervent heat; sabbath april; living god; entire meeting; public meetings; regular attendance; active interest; medical men; own tongue; heart and soul; large city; special rate; large circulation; industrial work; common people; catholic priest; christian educator; archbishop ireland; daily bread; personal god; gospel of christ; great struggle; gospel herald; human wisdom; cane sugar; scribes and pharisees; follower of christ; new earth; lord jesus christ; healthy condition; new experience; year printed; word of prophecy; spiritual growth; heathen lands; real life; lord your god; state secretary; human family; right direction; proper time; christian religion; church officers; creek michigan; religious instruction; vice president; good reason; thorough preparation; church services; books and papers; destroy the law; business meetings; business manager; information address; christian liberty; division conference; careful examination; people everywhere; excellent meetings; day school; different departments; fundamental principles; divine lord; white robes; various branches; general plan; clear light; dear friend; small sum; new man; grand total; ill health; baptist minister; good home; great question; own character; god john; such things; daily papers; own church; field work; gospel truth; almighty god; own words; santa rosa; self exaltation; s d a; home department; splendid work; great white throne; poor people; tent season; sabbath meetings; lake of fire; house of representatives; portland oregon; weight of glory; rich blessings; such conditions; short time; foreign missions; sixty miles; adventist church; unto thee; modern times; eastern question; missionary meetings; general interest; moral law; great king; personal effort; good use; old covenant; times past; rest day; such thing; william miller; thou hast; great problem; trump of god; spake unto; evil angels; wonderful thing; copies cents; long distance; resurrection morning; human body; simple treatments; good girl; harvest of souls; state meeting; persons desire; marriage supper; great influence; eternal ages; lovely whatsoever things; wild beasts; ten commandments; happy home; salt lake city; great service; crown or righteousness; god who; divine revelation; good deeds; perfect day; thy way; life giver; unto salvation; own homes; natural law; things whatsoever; great voice; wilt thou; large company; leo xiii; spiritual interests; tent company; committee on nominations; church organization; man sin; missionary endeavor; divine being; bro and sr; full time; good meetings; church members; general principles; full information; present time; wide spread; american people; kingdom of christ; sabbath sunday; blood of christ; post offices; creek sanitarium; careful reading; grand jury; laws of god; heavenly sanctuary; lord our god; great price; united in marriage; true meaning; labor unions; brother and sister; christian churches; lords day; practical work; great battle; precious truths; proper care; mercy seat; different countries; reading room; outward appearance; thy soul; hard time; constitutional amendment; children of men; upper columbia; earthly sanctuary; human laws; past week; healthful living; second advent; law of god; disease germs; own voice; place of worship; new name; flesh and blood; god cor; treasure in heaven; great things; spiritual nature; red sea; uttermost parts; missionary society; new converts; general attendance; small pox; general articles; evening meetings; battle creek mich; poor woman; tacoma park station; religious freedom; annual camp meeting; people need; fellow beings; eternal weight; preach the gospel; gospel message; special study; special attention; large family; new edition; precious time; man worship; the advent review and sabbath herald vol; right time; garden of eden; educational society; bro andrews; world war; john the baptist; sinful men; early years; loud voice; house of god; late years; net gain; board of directors; good pleasure; own day; true religion; protestant churches; second coming; self respect; great burden; whole heart; benevolent association; instructor vol; dollars worth; thy law; brothers and sisters; earnest effort; christian union; angels of god; direct result; school buildings; excessive use; civil war; eternal interests; whole law; old age; own soul; seventhday adventists; conference work; throne of god; school officers; responsible positions; own son; roman catholic; adam and eve; bible study; evil men; glorious work; yellow fever; pacific union conference; adventist publishing association; state board; own home; olive oil; spiritual power; religious liberty; civil governments; profession of religion; good manners; sabbath december; city council; christ christ; large majority; thy stranger; favorable conditions; advent faith; vantage ground; cottage meetings; faith in god; prayer meeting; southeastern union conference; previous year; royal family; thine hand; warm weather; active part; divine nature; new wine; god of heaven; sun moon; new era; educational department; certain man; thy pleasure; hard labor; new address; civil authorities; faithful member; methodist episcopal; own works; general meeting; great truth; southern union conference; weekly visits; self government; coming of Christ; american citizens; observing the sabbath; own house; reserve fund; long time; mount zion; word of god; new book; disciples of christ; favorable opportunity; children of god; proper place; natural rights; religious matters; sufficient number; various ways; the moral law; flesh foods; false gods; alcoholic beverages; liberty of conscience; jesus rev vol; great nation; burnt offerings; god himself; family worship; own glory; thy heart; art thou; extra postage; jesus of nazareth; local church; most holy place; catholic church; left hand; bible lessons; right kind; father and mother; good fight; chicago ill; denominational work; new field; gods requirements; hot weather; lords house; armor of god; union conference committee; white people; thou wilt; internal organs; our first parents; salvation of souls; students library; great apostle; high position; own mind; church schools; sunday sabbath; holy name; great nations; seventhday baptist; certain class; way to truth; opposite side; young ladies; special instruction; present life; books and tracts; special course; remission of sins; good reasons; mission stations; present age; religious work; conference workers; children of israel; christian experience; business matters; missionary meeting; great mass; noble work; house work; family circle; thy mother; christian love; early morning; divine truth; post office address; proper use; own pleasure; breath of life; gods love; precious souls; social meeting; saith the lord; good night; great difference; own use; school convention; sun shines; special care; total number; conference tract society; own conscience; state conference; small amount; native workers; conscience sake; born of god; bad habits; foreign work; full assurance; papal supremacy; high school; the spirit of the lord; righteous judge; twohorned beast; easy matter; small church; judgment seat; human hearts; lord calls; great cities; god jesus; late clean copies; vegetable kingdom; own interests; words of truth; real value; public press; food elements; long years; wait till; present position; large cities; russian government; bible readings; lemon juice; tract society secretary; long life; southern union worker; human mind; religious sentiment; health principles; conference treasurer; missionary spirit; day wherefore; large quantities; tent meetings; sin offering; loud cry; large books; divine origin; religious institution; atlantic union conference; voice of god; personal work; heathen world; battle field; young women; civil affairs; great majority; medical college; religious character; praise god; moral code; secret place; just and good; reading matter; forgiveness of sins; thy mind; short distance; cold weather; great danger; signs and wonders; sunday legislation; whole thing; rich harvest; good results; right arm; important meeting; seventh trumpet; means of grace; the health reformer; quiet spirit; gods grace; false prophet; church people; such words; good day; morning watch; earnest appeal; whole matter; precious season; methodist church; dead body; school offerings; scattered brethren; body of christ; works of god; eye salve; good advice; certain time; past year; own language; open door; prime minister; hearty response; considerable number; present season; thy brother; special rates; san jose; college course; meeting the; true character; worlds fair; great need; grace of christ; thy children; recent number; clouds of heaven; great number; righteousness of christ; valuable instruction; great reason; great army; square miles; right living; lord desires; christian education; great victory; workers meeting; meet the lord; interesting experiences; unto men; sufficient amount; dwell therein; medo persia; good morning; god god; sabbath truth; father in heaven; large audience; goodness of god; short visit; young people; small voice; human soul; important factor; junior college; past experience; lay plans; family tents; religious intolerance; perfect law; book of life; gastric juice; chain gang; christian worker; vast majority; thou knowest; large sum; deep interest; right place; especial attention; separate sheet; small number; encouraging report; general conference; regular meetings; mission schools; long experience; own land; interesting facts; whole land; right side; good fruit; sure word; national reformers; brethren and sisters; physical and mental; great loss; popular churches; interesting account; lords sabbath; christian school; own blood; good faith; divine grace; british government; justification by faith; secret societies; present state; divine life; medical department; thorough work; words of christ; honest whatsoever things; long way; various parts; sick people; thou mayest; christian character; various forms; general rule; great object; special meetings; text book; great numbers; joseph bates; end of time; remnant church; spiritual things; eternal salvation; sudden death; conference association; seventhday sabbath; sons of men; special prayer; whole country; ancient of days; dead bodies; favorable circumstances; men of god; poor widow; sin and death; family altar; james white; grand work; thou shalt; scriptures of truth; jewish nation; splendid opportunity; human history; vast amount; regular work; man hath; future life; neighbors and friends; fellow citizens; onward march; medical students; right way; early history; seventh month; christ jesus; county jail; marvelous light; mystery of god; sabbath july; honest souls; foreign mission board; camp meeting; character of god; entire body; great day; perfect peace; tribes of israel; seal of god; own experience; saloon keeper; court house; thy neighbor; honest hearts; faithful service; perfect health; washington d c; only begotten son; fear not; small beginning; evangelistic work; lake union conference; such times; roman empire; own life; near future; good reports; gods truth; new jerusalem; bright hope; different ones; great message; memory verse; biennial session; teachers and students; old home; good report; personal interest; medical mission; business men; tent meeting; sight of god; thine eyes; great interest; church paper; day of atonement; unto death; fellow laborers; good opportunity; own body; gospel work; lake academy; efficient service; gospel of jesus; foreign missionaries; wide field; young girl; death of christ; patriarchs and prophets; baptist church; counsel of god; opposite direction; great image; different kinds; return unto; american federation; manual training; sick man; man soweth; entire family; honor and glory; christian dispensation; episcopal church; good word; roman catholic church; prophetic period; eternal god; precious stones; investigative judgment; outside interest; divine word; old year; early days; theseventhday adventist; sabbath may; last illness; dear children; medical missionary; state legislature; things work; proper food; beautiful home; protestant magazine; commandment keepers; good authority; self sacrifice; alcoholic drinks; human heart; modern spiritualism; southern part; large proportion; right principles; cold air; strong faith; death rate; civil laws; training schools; grow in grace; medical missionaries; christian man; thy gates; large extent; own business; christian graces; new house; great effort; new birth; training school; thy life; divine service; good food; good help; good citizens; religious views; life boat; public mind; good example; dear reader; school children; pacific coast; new order; large class; medical journal; evangelical work; good wages; sound doctrine; human beings; hymn book; special terms; new creature; church of england; typhoid fever; souls of men; inalienable rights; great source; strong drink; conference year; address cts; pure gold; dear brethren; twelve tribes; whole time; book sales; state religion; prominent place; important point; winter months; christs death; sabbath herald; sufficient evidence; father mother; individual members; denominational publications; inhabitants thereof; utter destruction; main building; church service; abraham isaac; federal council; past summer; years afterward; religious world; spirit of christ; new churches; holy place; lively interest; modern science; new home; thy mouth; such circumstances; own finger; roman power; day of pentecost; condition of man; sabbathschool association; true sense; year post; society secretary; glory of god; general use; evil work; lamb of god; health reform; past quarter; current events; recent issue; the columbia union visitor; missionary efforts; true principles; religious things; past season; kind word; kind words; religious life; social meetings; excellent results; living word; lord draweth nigh; holy scriptures; true light; roman church; bible history; foreign mission; precious blood; cleveland ohio; national government; kingdom of heaven; expiration date; sabbath days; different branches; holy sabbath; promises of god; great privilege; great increase; future time; personal liberty; present century; knowledge of god; fire and brimstone; funeral services; room house; health work; natural result; subject matter; great degree; dear lord; lord lord; good influence; golden rule; public school; foreign field; hinsdale sanitarium; the gospel herald; new fields; moon and stars; gods power; president wilson; thou art; federal government; urgent need; vice versa; central union conference; papal power; private house; war department; distant lands; tent effort; dark continent; creek mich; great help; cold bath; great measure; contains pages; great heart; the second coming; familiar spirits; biennial period; son of man; tract society office; thy son; great tribulation; school department; wide awake; whole subject; excellent opportunity; dear son; physical rest; modern civilization; past month; old story; fear god; advent message; voice from heaven; under the law; shalt thou labor; good spirit; supreme court; educational system; own righteousness; thoughts perish; third angels; recent visit; man woman; rapid progress; best stories; small boy; present world; new subscriptions; apostolic church; present day; wise man; angels message; sabbath february; ample time; church school teacher; good service; english bible; new life; mission board; redemption draweth nigh; morning service; servant of god; holy spirits; fasting and prayer; great principle; whole duty; evil spirits; old lady; eld haskell; years months; human power; past winter; temporal power; meek and lowly; moral character; good conscience; special work; capital city; whole congregation; lord of lords; mission fields; good book; christian schools; temperance work; king of babylon; bay city; excellent work; boston mass; uncle sam; blosser berrien; good boy; divine appointment; white men; class matter; religious teaching; bottomless pit; principles of religion; god the father; presence of god; lord bath; purpose of god; universal peace; good degree; human authority; own ways; summer school; suitable place; new world; final conflict; fathers house; fresh air; southern junior college; good paper; street church; french revolution; powerful influence; bible footlights; money order; believe in god; saviour jesus; third angels message; jewish people; seed of abraham; eighteenth century; national constitution; first session; allen moon; present year; good cheer; latter days; such schools; universal postal; earth pass; own time; wrong side; good foundation; dear brother; school work; new song; union conferences; mucous membrane; deep impression; cape town; way of salvation; thy strength; gift of prophecy; mighty work; own self; mighty power; whole field; heavy burden; religious experience; dark day; good sense; members reports; right hand; nineteenth century; true church; regular price; high time; new building; fellow creatures; good men; common sense; day offerings; large share; street car; careful consideration; special meeting; servants of god; church of god; previous meeting; men women; conference officers; moral courage; missionary effort; christian people; willing souls; right thing; false prophets; hearty support; european countries; field secretary; careful attention; whosoever believeth; george washington; hast thou; christian sabbath; christian men; joys and sorrows; whole being; large amount; special number; forty years; communion with god; early christians; advent review and gospel herald; protestant church; beloved son; little folks; second death; old earth; perfect harmony; and temperance advocate; cubic feet; love of god; law of nature; north pacific union conference; particulars address; earnest work; school teacher; public schools; present situation; religious observances; union conference; joy and peace; human life; great blessing; self evident; executive committee; spiritual welfare""" ENTITIES = frozenset(w for w in ENTITIES.split('; ') if w)
6,522.333333
39,048
0.797951
5,390
39,134
5.793506
0.272171
0.009607
0.001921
0.002114
0.002882
0.001985
0
0
0
0
0
0.00003
0.137885
39,134
5
39,049
7,826.8
0.925544
0.000537
0
0
0
0.5
0.998006
0
0
0
0
0
0
1
0
false
0.5
0.5
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
1
1
0
0
1
0
8
9a7cc32956b11c74cd4899f5b3439dd0f3d304a2
14,638
py
Python
app.py
DSCVITBHOPAL/Sampark-Web-Extension
d4f7e1fc4bc1ee00e7101b15f107f378c7af5dca
[ "MIT" ]
5
2021-01-13T06:06:34.000Z
2021-11-15T11:15:04.000Z
app.py
Itsaadarsh/Sampark-Web-Extension
d4f7e1fc4bc1ee00e7101b15f107f378c7af5dca
[ "MIT" ]
5
2021-01-12T09:18:28.000Z
2021-01-14T21:48:07.000Z
app.py
Itsaadarsh/Sampark-Web-Extension
d4f7e1fc4bc1ee00e7101b15f107f378c7af5dca
[ "MIT" ]
7
2021-01-12T09:22:31.000Z
2021-02-12T11:55:30.000Z
import os from os import system as sys from socket import socket import idna from flask import Flask, request, redirect, render_template, jsonify from backend import vtscan, certcheck, httpscheck,checkReditect,checkTrustedCert import config app = Flask(__name__) app.secret_key = "secret key"; app.config['MAX_CONTENT_LENGTH'] = 350 * 1024 * 1024; vtscan_bool=False if config.VTAPIKEY == "YOU_NEED_TO_ENTER_YOUR_API_KEY_HERE_FOR_VIRUSTOTAL_SCAN_TO_WORK": vtscan_bool=False else: vtscan_bool=True @app.route('/') def rootdir(): # sys("rm ./templates/result.html") # return 'test' # return render_template('main.html') data="SAMPARK API" return data @app.route('/inbuilt') def alternate(): sys("rm ./templates/result.html") return render_template('main.html') @app.route('/legacyport', methods=['POST']) def legacy(): global urlts urlts="" if request.method == 'POST': # check if the post request has the file part if 'urlts' not in request.values: # flash('No file part') return redirect(request.url) url = request.values['urlts'] agent="" if "@shell" in str(url): agent="shell" url=str(url)[:-6] print(request.values['urlts']) return legacy_processurl(url,agent) @app.route('/scan', methods=['GET','POST']) def urlrequest(): # global urlts # urlts="" if request.method == 'POST': # check if the post request has the file part if 'urlts' not in request.values: return "MALFORMED Request" url = request.values['urlts'] # agent="" # if "@shell" in str(url): # agent="shell" # url=str(url)[:-6] if url[len(url)-1]=='/': url=url[0:len(url)-1] print(request.values['urlts']) data=processurl(url) return jsonify(data) if request.method == 'GET': if 'urlts' not in request.values: return "MALFORMED Request" url = request.values['urlts'] if url[len(url)-1]=='/': url=url[0:len(url)-1] print(request.values['urlts']) data=processurl(url) return jsonify(data) def processurl(urltsm): urltsm=httpscheck.rmrf_protocol(urltsm) #ASSUME NOT SAFE AS DEFAULT ISWEBSITESAFE = False CERTSCORE = "DANGER" # THIS WILL MAKE IT NOT SAFE BY DEFAULT ISHTTPS="NO" REDIRECTIONSCORE="NA" REASON = { 'https': "The website uses HTTPS. It's needed to transmit data securely.", 'certtrust': "The certificate for encryption is not provided by trusted Certification Authority. An attacker can forge a certificate and decrypt the data from HTTPS over SSL, making HTTPS insecure.", 'malware': "This website is not reported for malicious scripts.", 'redir': "Redirection is how a website navigates the user to HTTPS even if they try to visit from HTTP on its own.", 'covred': "The website does not contain redirection code.", 'overall': "", 'webstat': "Website Available" } if vtscan_bool: RESULT=vtscan.getResult(config.VTAPIKEY,urltsm) MALWARESCORE = RESULT['positives'] TRIGGERS=[] MALHITS=[] if MALWARESCORE > 0: REASON['overall']=REASON['overall']+" * MALWARE HIT" REASON['malware']= "This website is reported to contain malicious scripts or tools, or it is created with malicious intent. BE CAUTIOUS. An adversary can take advantage and steal your data." ISWEBSITESAFE= False if MALWARESCORE > 0: for i in RESULT['scans']: if RESULT['scans'][i]['detected'] == True: TRIGGERS.append(i) MALHITS.append(RESULT['scans'][i]['result']) else: TRIGGERS=[] MALHITS=[] TRIGGERS.append("--") MALHITS.append("--") REASON['malware']="VirusTotal API key not used, skipping malware scan." hostname_idna = idna.encode(urltsm) sock = socket() ERROR404=False try: sock.connect((hostname_idna, 80)) MARK =1 except Exception: MARK=-1 if MARK > 0: REDIRECTIONSCORE=checkReditect.scan(urltsm) HTTPSBOOL = httpscheck.scan(urltsm) HTTPSBOOL = HTTPSBOOL.split(';') ISHTTPS = HTTPSBOOL[0] if HTTPSBOOL[1] == 'SR': REDIRECTSCHEME = "SOFT REDIRECTION TO HTTPS" elif HTTPSBOOL[1] == 'HR': REDIRECTSCHEME = "HARD REDIRECTION TO HTTPS" else: REDIRECTSCHEME = "NO REDIRECT" ### CHECKING RESULTS # print("NO" in ISHTTPS) if "NO" in ISHTTPS: print("http hit") REASON['https']="The website do not use HTTPS. It's needed to transmit data securely." REASON['overall'] = REASON['overall'] + " * HTTP HIT" ISWEBSITESAFE = False if REDIRECTIONSCORE: print("red hit") REASON['overall'] = REASON['overall'] + " * COVERT REDIRECTION HIT" REASON['covred'] = "The website contains redirection code. It can redirect to some other page without " \ "user consent. " ISWEBSITESAFE= False if "YES" in ISHTTPS: print("cert check") CERT = certcheck.getMainScan(urltsm) CERT = CERT.split(';') # CHECK TRUSTED CERTS if checkTrustedCert.scan(CERT[4]) == True: REASON['certtrust'] = "The certificate for encryption is provided by trusted Certification Authority." CERTSCORE = "SAFE" if "SAFE" not in CERTSCORE: print("cert hit") REASON['overall'] = REASON['overall'] + " * UNTRUSTED ENCRYPTION CERT" REASON['certtrust'] = "The certificate for encryption is not provided by trusted Certification Authority. An attacker can forge a certificate and decrypt the data from HTTPS over SSL, making HTTPS insecure." ISWEBSITESAFE = False else: ERROR404=True REASON['webstat']="Website appears to be unreachable." ### COMPILING THE DATA IN A STRUCTURE REDIRECTSCHEME="NA" if ISWEBSITESAFE == True: TRANRESULT="YES" else: TRANRESULT="NO" WEBUS=urltsm if vtscan_bool: if MALWARESCORE > 0: MALSR="UNSAFE" TRIGGERS=str(TRIGGERS) MALHITS=str(MALHITS) else: MALSR = "SAFE" else: MALSR="N/A" if "NO" not in ISHTTPS: HTTPSSCORE="YES" REDIR=REDIRECTSCHEME if CERT is not None: CERT0=CERT[0] CERT1 = CERT[1] CERT2 = CERT[2] CERT3 = str(CERT[3]) CERT4 = CERT[4] CERT5 = CERT[5] CERT6 = CERT[6] else: CERT0 = "NA" CERT1 = "NA" CERT2 = "NA" CERT3 = "NA" CERT4 = "NA" CERT5 = "NA" CERT6 = "NA" if checkTrustedCert.scan(CERT[4]) == True: CERTTRUST="YES" else: CERTTRUST = "NO" else: HTTPSSCORE = "NO" REDIR = REDIRECTSCHEME CERT0 = "NA" CERT1 = "NA" CERT2 = "NA" CERT3 = "NA" CERT4 = "NA" CERT5 = "NA" CERT6 = "NA" CERTTRUST="NA" if REDIRECTIONSCORE == True: COVRED="YES" else: COVRED = "NO" #if agent == "shell": # return str(str(TRANRESULT)+";"+(WEBUS)+";"+(MALSR)+";"+str(TRIGGERS)+";"+str(MALHITS)+";"+HTTPSSCORE+";"+COVRED+";"+REDIR+";"+CERT0+";"+CERT1+";"+CERT2+";"+CERT3+";"+CERT4+";"+CERT5+";"+CERT6+";"+CERTTRUST+";"+str(ERROR404)+";"+str(REASON)) #return render_template('res.html',TRANRESULT=TRANRESULT,WEBUS=WEBUS,MALSR=MALSR,TRIGGERS=TRIGGERS,MALHITS=MALHITS, # HTTPSSCORE=HTTPSSCORE,COVRED=COVRED,REDIR=REDIR,CERT0=CERT0,CERT1 = CERT1,CERT2 = CERT2,CERT3 = CERT3,CERT4 = CERT4,CERT5 = CERT5,CERT6 = CERT6,CERTTRUST=CERTTRUST # ,ERROR404=ERROR404,REASON=REASON) data={"TRANRESULT":TRANRESULT,"WEBUS":WEBUS,"HTTPSSCORE":HTTPSSCORE,"COVERT":COVRED,"REDIR":REDIR,"CERT0":CERT0,"CERT1":CERT1,"CERT2":CERT2, "CERT3":CERT3,"CERT4":CERT4,"CERT5":CERT5,"CERT6":CERT6,"ERROR404":str(ERROR404),"REASON":REASON,"MALSR":MALSR,"TRIGGERS":TRIGGERS,"MALHITS":MALHITS,} return data def legacy_processurl(urltsm,agent): urltsm=httpscheck.rmrf_protocol(urltsm) #ASSUME NOT SAFE AS DEFAULT ISWEBSITESAFE = True CERTSCORE = "DANGER" # THIS WILL MAKE IT NOT SAFE BY DEFAULT ISHTTPS="NO" REDIRECTIONSCORE="NA" REASON = { 'https': "The website uses HTTPS. It's needed to transmit data securely.", 'certtrust': "The certificate for encryption is not provided by trusted Certification Authority. An attacker can forge a certificate and decrypt the data from HTTPS over SSL, making HTTPS insecure.", 'malware': "This website is not reported for malicious scripts.", 'redir': "Redirection is how a website navigates the user to HTTPS even if they try to visit from HTTP on its own.", 'covred': "The website does not contain redirection code.", 'overall': "", 'webstat': "Website Available" } if vtscan_bool: RESULT=vtscan.getResult(config.VTAPIKEY,urltsm) MALWARESCORE = RESULT['positives'] TRIGGERS=[] MALHITS=[] if MALWARESCORE > 0: REASON['overall']=REASON['overall']+" * MALWARE HIT" REASON['malware']= "This website is reported to contain malicious scripts or tools, or it is created with malicious intent. BE CAUTIOUS. An adversary can take advantage and steal your data." ISWEBSITESAFE= False if MALWARESCORE > 0: for i in RESULT['scans']: if RESULT['scans'][i]['detected'] == True: TRIGGERS.append(i) MALHITS.append(RESULT['scans'][i]['result']) else: TRIGGERS=[] MALHITS=[] TRIGGERS.append("--") MALHITS.append("--") REASON['malware']="VirusTotal API key not used, skipping malware scan." ###### ======================================= hostname_idna = idna.encode(urltsm) sock = socket() ERROR404=False try: sock.connect((hostname_idna, 80)) MARK =1 except Exception: MARK=-1 if MARK > 0: REDIRECTIONSCORE=checkReditect.scan(urltsm) HTTPSBOOL = httpscheck.scan(urltsm) HTTPSBOOL = HTTPSBOOL.split(';') ISHTTPS = HTTPSBOOL[0] if HTTPSBOOL[1] == 'SR': REDIRECTSCHEME = "SOFT REDIRECTION TO HTTPS" elif HTTPSBOOL[1] == 'HR': REDIRECTSCHEME = "HARD REDIRECTION TO HTTPS" else: REDIRECTSCHEME = "NO REDIRECT" ### CHECKING RESULTS # print("NO" in ISHTTPS) if "NO" in ISHTTPS: print("http hit") REASON['https']="The website do not use HTTPS. It's needed to transmit data securely." REASON['overall'] = REASON['overall'] + " * HTTP HIT" ISWEBSITESAFE = False if REDIRECTIONSCORE: print("red hit") REASON['overall'] = REASON['overall'] + " * COVERT REDIRECTION HIT" REASON['covred'] = "The website contains redirection code. It can redirect to some other page without " \ "user consent. " ISWEBSITESAFE= False if "YES" in ISHTTPS: print("cert check") CERT = certcheck.getMainScan(urltsm) CERT = CERT.split(';') # CHECK TRUSTED CERTS if checkTrustedCert.scan(CERT[4]) == True: REASON['certtrust'] = "The certificate for encryption is provided by trusted Certification Authority." CERTSCORE = "SAFE" # if "SAFE" not in CERTSCORE: print("cert hit") REASON['overall'] = REASON['overall'] + " * UNTRUSTED ENCRYPTION CERT" REASON['certtrust'] = "The certificate for encryption is not provided by trusted Certification Authority. An attacker can forge a certificate and decrypt the data from HTTPS over SSL, making HTTPS insecure." ISWEBSITESAFE = False else: ERROR404=True REASON['webstat']="Website appears to be unreachable." ### COMPILING THE DATA IN A STRUCTURE REDIRECTSCHEME="NA" if ISWEBSITESAFE == True: TRANRESULT="YES" else: TRANRESULT="NO" WEBUS=urltsm if vtscan_bool: if MALWARESCORE > 0: MALSR="UNSAFE" TRIGGERS=str(TRIGGERS) MALHITS=str(MALHITS) else: MALSR = "SAFE" else: MALSR="N/A" if "NO" not in ISHTTPS: HTTPSSCORE="YES" REDIR=REDIRECTSCHEME if CERT is not None: CERT0=CERT[0] CERT1 = CERT[1] CERT2 = CERT[2] CERT3 = str(CERT[3]) CERT4 = CERT[4] CERT5 = CERT[5] CERT6 = CERT[6] else: CERT0 = "NA" CERT1 = "NA" CERT2 = "NA" CERT3 = "NA" CERT4 = "NA" CERT5 = "NA" CERT6 = "NA" if checkTrustedCert.scan(CERT[4]) == True: CERTTRUST="YES" else: CERTTRUST = "NO" else: HTTPSSCORE = "NO" REDIR = REDIRECTSCHEME CERT0 = "NA" CERT1 = "NA" CERT2 = "NA" CERT3 = "NA" CERT4 = "NA" CERT5 = "NA" CERT6 = "NA" CERTTRUST="NA" if REDIRECTIONSCORE == True: COVRED="YES" else: COVRED = "NO" if agent == "shell": return str(str(TRANRESULT)+";"+(WEBUS)+";"+(MALSR)+";"+str(TRIGGERS)+";"+str(MALHITS)+";"+HTTPSSCORE+";"+COVRED+";"+REDIR+";"+CERT0+";"+CERT1+";"+CERT2+";"+CERT3+";"+CERT4+";"+CERT5+";"+CERT6+";"+CERTTRUST+";"+str(ERROR404)+";"+str(REASON)) return render_template('res.html',TRANRESULT=TRANRESULT,WEBUS=WEBUS,MALSR=MALSR,TRIGGERS=TRIGGERS,MALHITS=MALHITS, HTTPSSCORE=HTTPSSCORE,COVRED=COVRED,REDIR=REDIR,CERT0=CERT0,CERT1 = CERT1,CERT2 = CERT2,CERT3 = CERT3,CERT4 = CERT4,CERT5 = CERT5,CERT6 = CERT6,CERTTRUST=CERTTRUST ,ERROR404=ERROR404,REASON=REASON) if __name__ == '__main__': # sys("rm ./templates/result.html") app.run()
31.277778
248
0.571253
1,589
14,638
5.232851
0.151038
0.025015
0.01828
0.025015
0.901263
0.892363
0.880337
0.880337
0.880337
0.880337
0
0.018951
0.304277
14,638
467
249
31.344754
0.797526
0.090723
0
0.861862
0
0.024024
0.273447
0.006484
0
0
0
0
0
1
0.018018
false
0
0.021021
0
0.072072
0.033033
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b10b03287a17d8ecb52481e1826ea75a4b3299ed
2,389
py
Python
main/migrations/0005_auto_20201119_2111.py
vestial/vision-video-analyzer
f5c5f9c0f0522008e86641648fd1591507ca8f6b
[ "MIT" ]
1
2020-10-30T00:49:21.000Z
2020-10-30T00:49:21.000Z
main/migrations/0005_auto_20201119_2111.py
vestial/vision-video-analyzer
f5c5f9c0f0522008e86641648fd1591507ca8f6b
[ "MIT" ]
null
null
null
main/migrations/0005_auto_20201119_2111.py
vestial/vision-video-analyzer
f5c5f9c0f0522008e86641648fd1591507ca8f6b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-19 21:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20201119_2103'), ] operations = [ migrations.AddField( model_name='video', name='bit_depth_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='bit_rate_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='frame_rate_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='resolution_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='sample_rate_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='shutter_speed_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), migrations.AddField( model_name='video', name='video_length_rating', field=models.CharField(blank=True, default='Unknown', max_length=64, null=True), ), ]
34.128571
53
0.406865
175
2,389
5.382857
0.274286
0.076433
0.170913
0.200637
0.791932
0.791932
0.791932
0.747346
0.747346
0.747346
0
0.038136
0.506069
2,389
69
54
34.623188
0.760169
0.018836
0
0.777778
1
0
0.099488
0.009821
0
0
0
0
0
1
0
false
0
0.015873
0
0.063492
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
b1289adf66e2592748059078d3bd91047afd16e7
728
py
Python
test_webservice.py
PeterSulcs/threes-clone
0fa4044d58a781a1afdcee7300abaf72a29e3626
[ "MIT" ]
null
null
null
test_webservice.py
PeterSulcs/threes-clone
0fa4044d58a781a1afdcee7300abaf72a29e3626
[ "MIT" ]
null
null
null
test_webservice.py
PeterSulcs/threes-clone
0fa4044d58a781a1afdcee7300abaf72a29e3626
[ "MIT" ]
1
2018-03-02T02:40:07.000Z
2018-03-02T02:40:07.000Z
__author__ = 'Peter_000' import requests import json board = requests.get('http://127.0.0.1:5000/new') print board.json() next_turn = requests.post('http://127.0.0.1:5000/move/down', data=json.dumps(json.loads(board.content))) print next_turn.json() next_turn = requests.post('http://127.0.0.1:5000/move/up', data=json.dumps(json.loads(next_turn.content))) print next_turn.json() next_turn = requests.post('http://127.0.0.1:5000/move/right', data=json.dumps(json.loads(next_turn.content))) print next_turn.json() next_turn = requests.post('http://127.0.0.1:5000/move/left', data=json.dumps(json.loads(next_turn.content))) print next_turn.json()
33.090909
104
0.660714
115
728
4.043478
0.234783
0.189247
0.086022
0.096774
0.812903
0.765591
0.735484
0.735484
0.735484
0.735484
0
0.087028
0.163462
728
22
105
33.090909
0.676519
0
0
0.4375
0
0
0.215364
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.3125
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
b128d9b37da2b0dc4912271467b270865f68075f
9,457
py
Python
torchpq/fn/IVFPQTopk.py
mhamilton723/TorchPQ
f3d560ec04d9c741943fa930a1257c9be9445cbe
[ "MIT" ]
null
null
null
torchpq/fn/IVFPQTopk.py
mhamilton723/TorchPQ
f3d560ec04d9c741943fa930a1257c9be9445cbe
[ "MIT" ]
null
null
null
torchpq/fn/IVFPQTopk.py
mhamilton723/TorchPQ
f3d560ec04d9c741943fa930a1257c9be9445cbe
[ "MIT" ]
null
null
null
from ..kernels import IVFPQTopkCuda from ..kernels import IVFPQTop1Cuda class IVFPQTopk: def __init__( self, n_subvectors, contiguous_size=4, sm_size=48*1024, ): self.n_subvectors = n_subvectors self.contiguous_size = contiguous_size self.sm_size = sm_size self._top1024_cuda = IVFPQTopkCuda( m=n_subvectors, tpb=1024, n_cs=contiguous_size, stack_capacity = 2, sm_size=n_subvectors * 1024, ) self._top512_cuda = IVFPQTopkCuda( m=n_subvectors, tpb=512, n_cs=contiguous_size, stack_capacity = 2, sm_size=n_subvectors * 1024, ) self._top256_cuda = IVFPQTopkCuda( m=n_subvectors, tpb=256, n_cs=contiguous_size, stack_capacity = 2, sm_size=n_subvectors * 1024, ) if n_subvectors <= 32: self._top1_cuda = IVFPQTop1Cuda( m=n_subvectors, tpb=512, n_cs=contiguous_size, sm_size=n_subvectors * 1024, ) else: self._top1_cuda = IVFPQTop1Cuda( m=n_subvectors, tpb=256, n_cs=contiguous_size, sm_size=n_subvectors * 1024, ) def topk( self, data, precomputed, cell_start, cell_size, is_empty, n_probe_list=None, k=256 ): assert 0 < k <= 1024 if n_probe_list is not None: if k == 1: return self._top1_cuda.top1_smart_probing( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk_smart_probing( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk_smart_probing( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk_smart_probing( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) else: if k == 1: return self._top1_cuda.top1( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk( data=data, precomputed=precomputed, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) def topk_residual( self, data, precomputed, cell_start, cell_size, base_sims, is_empty, n_probe_list=None, k=256 ): assert 0 < k <= 1024 if n_probe_list is not None: if k == 1: return self._top1_cuda.top1_residual_smart_probing( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk_residual_smart_probing( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk_residual_smart_probing( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk_residual_smart_probing( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) else: if k == 1: return self._top1_cuda.top1_residual( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk_residual( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk_residual( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk_residual( data=data, precomputed=precomputed, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) def topk_residual_precomputed( self, data, part1, part2, cell_start, cell_size, cells, base_sims, is_empty, n_probe_list=None, k=256 ): assert 0 < k <= 1024 if n_probe_list is not None: if k == 1: return self._top1_cuda.top1_residual_precomputed_smart_probing( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk_residual_precomputed_smart_probing( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk_residual_precomputed_smart_probing( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk_residual_precomputed_smart_probing( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_probe_list=n_probe_list, n_candidates=k ) else: if k == 1: return self._top1_cuda.top1_residual_precomputed( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 1 < k <= 256: return self._top256_cuda.topk_residual_precomputed( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 256 < k <= 512: return self._top512_cuda.topk_residual_precomputed( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k ) elif 512 < k <= 1024: return self._top1024_cuda.topk_residual_precomputed( data=data, part1=part1, part2=part2, cells=cells, base_sims=base_sims, cell_start=cell_start, cell_size=cell_size, is_empty=is_empty, n_candidates=k )
26.342618
74
0.562652
1,119
9,457
4.378016
0.053619
0.093693
0.135334
0.093693
0.938559
0.938559
0.925087
0.91039
0.900184
0.869973
0
0.050083
0.364492
9,457
358
75
26.416201
0.765058
0
0
0.788571
0
0
0
0
0
0
0
0
0.008571
1
0.011429
false
0
0.005714
0
0.088571
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b1a29eba39dbc63be60c42b35e0d93905602283d
3,044
py
Python
Python/number-of-people-that-can-be-seen-in-a-grid.py
osmaelo/LeetCode-Solutions
e069176bb52fbcc26d0d2befb78bc7a4cbfb763a
[ "MIT" ]
4
2018-10-11T17:50:56.000Z
2018-10-11T21:16:44.000Z
Python/number-of-people-that-can-be-seen-in-a-grid.py
osmaelo/LeetCode-Solutions
e069176bb52fbcc26d0d2befb78bc7a4cbfb763a
[ "MIT" ]
null
null
null
Python/number-of-people-that-can-be-seen-in-a-grid.py
osmaelo/LeetCode-Solutions
e069176bb52fbcc26d0d2befb78bc7a4cbfb763a
[ "MIT" ]
4
2018-10-11T18:50:32.000Z
2018-10-12T00:04:09.000Z
# Time: O(m * n) # Space: O(m + n) # mono stack, optimized from solution2 class Solution(object): def seePeople(self, heights): """ :type heights: List[List[int]] :rtype: List[List[int]] """ def count(h, stk): cnt = 0 while stk and stk[-1] < h: stk.pop() cnt += 1 if stk: cnt += 1 if not stk or stk[-1] != h: stk.append(h) return cnt result = [[0]*len(heights[0]) for _ in xrange(len(heights))] for i in xrange(len(heights)): stk = [] for j in reversed(xrange(len(heights[0]))): result[i][j] += count(heights[i][j], stk) for j in xrange(len(heights[0])): stk = [] for i in reversed(xrange(len(heights))): result[i][j] += count(heights[i][j], stk) return result # Time: O(m * n) # Space: O(m + n) # mono stack class Solution2(object): def seePeople(self, heights): """ :type heights: List[List[int]] :rtype: List[List[int]] """ def count(heights, i, stk): cnt = 0 while stk and heights(stk[-1]) < heights(i): stk.pop() cnt += 1 if stk: cnt += 1 if stk and heights(stk[-1]) == heights(i): stk.pop() stk.append(i) return cnt result = [[0]*len(heights[0]) for _ in xrange(len(heights))] for i in xrange(len(heights)): stk = [] for j in reversed(xrange(len(heights[0]))): result[i][j] += count(lambda x: heights[i][x], j, stk) for j in xrange(len(heights[0])): stk = [] for i in reversed(xrange(len(heights))): result[i][j] += count(lambda x: heights[x][j], i, stk) return result # Time: O(m * n) # Space: O(m + n) # mono stack class Solution3(object): def seePeople(self, heights): """ :type heights: List[List[int]] :rtype: List[List[int]] """ def count(heights, i, stk, add): while stk and heights(stk[-1]) < heights(i): increase(stk.pop()) if stk: increase(stk[-1]) if stk and heights(stk[-1]) == heights(i): stk.pop() stk.append(i) result = [[0]*len(heights[0]) for _ in xrange(len(heights))] for i in xrange(len(heights)): stk = [] def increase(x): result[i][x] += 1 for j in xrange(len(heights[0])): count(lambda x: heights[i][x], j, stk, add) for j in xrange(len(heights[0])): stk = [] def increase(x): result[x][j] += 1 for i in xrange(len(heights)): count(lambda x: heights[x][j], i, stk, add) return result
31.381443
83
0.447109
380
3,044
3.573684
0.126316
0.132548
0.17673
0.145803
0.897644
0.871134
0.838733
0.821797
0.70324
0.656112
0
0.016556
0.404731
3,044
96
84
31.708333
0.732892
0.105125
0
0.746269
0
0
0
0
0
0
0
0
0
1
0.119403
false
0
0
0
0.238806
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
491ad274ea263eab9aa3d458b52122d5f19077be
11,683
py
Python
semestral_work/tests.py
holoubekm/BI-PYT
377dcbb775010aa6f8f427b7c95cacf9b88a2ba6
[ "Apache-2.0" ]
null
null
null
semestral_work/tests.py
holoubekm/BI-PYT
377dcbb775010aa6f8f427b7c95cacf9b88a2ba6
[ "Apache-2.0" ]
null
null
null
semestral_work/tests.py
holoubekm/BI-PYT
377dcbb775010aa6f8f427b7c95cacf9b88a2ba6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Tento testovací skript předpokládá, že výkonná část interpretru je uložena v adresáři „brainx“ (a tudíž volána pomocí „__main__.py“). Souhrnně je adresářová struktura semestrálky následující: semestrálka.kostra/ brainx/ __main__.py ... tests/ ... README.txt tests.py Postupně se volají následující testy: # memory tests brainx "[-]" -m b'\x03\x02' -p 1 -t brainx "[[-]<]" -m b'\x03\x03\x00\x02\x02' -p 4 -t brainx "[<]" -m b'\x03\x03\x00\x02\x02' -p 4 -t brainx "[>]" -m b'\x03\x03\x00\x02\x02' -t brainx "[>+<-]" -m b'\x03\x03' -t brainx "[>+>+<<-]>>[<<+>>-]" -m b'\x03\x03' -t brainx "[>-<-]" -m b'\x03\x05' -t # basic brainfuck tests brainx tests/hello1.b brainx tests/hello2.b brainx -t tests/hello2.b brainx tests/hello2t.b # brainfuck with input brainx tests/numwarp_input.b # basic PNG brainx tests/sachovnice.jpg brainx tests/sachovnice_paleta.png # brainloller brainx tests/HelloWorld.png brainx -t tests/HelloWorld.png """ import subprocess # # memory tests # # test 0a print('\n\nTest 0a: brainx "[-]" -m b\'\\x03\\x02\' -p 1 -t') print('\tvynulování aktuální, ale pouze aktuální, buňky') args = ['python3', 'brainx', '"[-]"', '-m', r"b'\x03\x02'", '-p', '1', '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory01_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0b print('\n\nTest 0b: brainx "[[-]<]" -m b\'\\x03\\x03\\x00\\x02\\x02\' -p 4 -t') print('\tvynulování všech nenulových buněk doleva') args = ['python3', 'brainx', '"[[-]<]"', '-m', r"b'\x03\x03\x00\x02\x02'", '-p', '4', '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory02_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0c print('\n\nTest 0c: brainx "[<]" -m b\'\\x03\\x03\\x00\\x02\\x02\' -p 4 -t') print('\tpřesun na první nenulovou buňku doleva') args = ['python3', 'brainx', '"[<]"', '-m', r"b'\x03\x03\x00\x02\x02'", '-p', '4', '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory03_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0d print('\n\nTest 0d: brainx "[>]" -m b\'\\x03\\x03\\x00\\x02\\x02\' -t') print('\tpřesun na první nenulovou buňku doprava') args = ['python3', 'brainx', '"[>]"', '-m', r"b'\x03\x03\x00\x02\x02'", '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory04_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0e print('\n\nTest 0e: brainx "[>+<-]" -m b\'\\x03\\x03\' -t') print('\tdestruktivní přičtení aktuální buňky k buňce následující') args = ['python3', 'brainx', '"[>+<-]"', '-m', r"b'\x03\x03'", '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory05_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0f print('\n\nTest 0f: brainx "[>+>+<<-]>>[<<+>>-]" -m b\'\\x03\\x03\' -t') print('\tnedestruktivní přičtení aktuální buňky k buňce následující') args = ['python3', 'brainx', '"[>+>+<<-]>>[<<+>>-]"', '-m', r"b'\x03\x03'", '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory06_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 0g print('\n\nTest 0g: brainx "[>-<-]" -m b\'\\x03\\x05\' -t') print('\tdestruktivní odečtení aktuální buňky od buňky následující') args = ['python3', 'brainx', '"[>-<-]"', '-m', r"b'\x03\x05'", '-t'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/memory07_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # # basic brainfuck tests # # test 1 print('\n\nTest 1: brainx tests/hello1.b') print('\tHelloWorld s \\n') args = ['python3', 'brainx', 'tests/hello1.b'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b'Hello World!\n' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' # test 2a print('\n\nTest 2a: brainx tests/hello2.b') print('\tHelloWorld bez \\n') args = ['python3', 'brainx', 'tests/hello2.b'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'Hello World!' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' # test 2b print('\n\nTest 2b: brainx -t tests/hello2.b') print('\tHelloWorld bez \\n plus log') args = ['python3', 'brainx', '-t', 'tests/hello2.b'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'Hello World!' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/hello2_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # test 2c print('\n\nTest 2c: brainx tests/hello2t.b') print('\tHelloWorld bez \\n plus dva průběžné logy') args = ['python3', 'brainx', 'tests/hello2t.b'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'Hello World!' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/hello2t_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out with open('tests/hello2t_debug_02.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_02.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # # brainfuck with input # # test 3 print('\n\nTest 3: brainx tests/numwarp_input.b') print('\tnumwarp.b pro vstup "123"') args = ['python3', 'brainx', 'tests/numwarp_input.b'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output.replace(b'\r', b'') == b' /\\\n /\\\n /\\ /\n / \n \\ \\/\n \\\n \n' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' # # basic PNG # # test 4a print('\n\nTest 4a: brainx tests/sachovnice.jpg') print('\tumíme jen PNG') args = ['python3', 'brainx', 'tests/sachovnice.jpg'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'' print( "return code:", p.returncode ) assert p.returncode == 4 #print( "error:", error ) assert b'PNGWrongHeaderError' in error # test 4b print('\n\nTest 4b: brainx tests/sachovnice_paleta.png') print('\tumíme jen některá PNG') args = ['python3', 'brainx', 'tests/sachovnice_paleta.png'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'' print( "return code:", p.returncode ) assert p.returncode == 8 #print( "error:", error ) assert b'PNGNotImplementedError' in error # # brainloller # # test 5a print('\n\nTest 5a: brainx tests/HelloWorld.png') print('\tnačtení dat z obrázku HelloWorld.png') args = ['python3', 'brainx', 'tests/HelloWorld.png'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) assert output == b'Hello World!' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' # test 5b print('\n\nTest 5b: brainx -t tests/HelloWorld.png') print('\tnačtení dat z obrázku HelloWorld.png plus log') args = ['python3', 'brainx', '-t', 'tests/HelloWorld.png'] p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() print( "output:", output ) #assert output == b'Hello World!' print( "return code:", p.returncode ) assert p.returncode == 0 #print( "error:", error ) assert error == b'' with open('tests/HelloWorld_debug_01.log', mode='r', encoding='ascii') as f: txt_in = f.read() with open('debug_01.log', mode='r', encoding='ascii') as f: txt_out = f.read() assert txt_in == txt_out # # everything went OK # print('\n\n', '-'*70, '\n', 'OK: All tests passed.')
34.260997
192
0.642044
1,691
11,683
4.383797
0.102898
0.090652
0.023742
0.047484
0.820316
0.776744
0.759881
0.727776
0.718737
0.7155
0
0.029582
0.158007
11,683
340
193
34.361765
0.723696
0.058375
0
0.685185
0
0
0.300322
0.054453
0
0
0
0
0.268519
0
null
null
0.00463
0.00463
null
null
0.300926
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
4951cd2dcace30e634d3ef40e8c94bd03ae06cef
5,994
py
Python
python_rucaptcha/RuCaptchaControl.py
MasterScott/python-rucaptcha
187e06511384dbbd52d16d68056c7b7b0c5ab5a3
[ "MIT" ]
70
2017-08-04T14:20:19.000Z
2022-02-26T21:13:09.000Z
python_rucaptcha/RuCaptchaControl.py
MasterScott/python-rucaptcha
187e06511384dbbd52d16d68056c7b7b0c5ab5a3
[ "MIT" ]
56
2017-08-05T22:51:01.000Z
2022-03-25T10:47:57.000Z
python_rucaptcha/RuCaptchaControl.py
MasterScott/python-rucaptcha
187e06511384dbbd52d16d68056c7b7b0c5ab5a3
[ "MIT" ]
28
2017-08-08T11:21:12.000Z
2022-03-27T12:39:19.000Z
import aiohttp import requests from python_rucaptcha.decorators import api_key_check, service_check class RuCaptchaControl: def __init__(self, rucaptcha_key: str, service_type: str = "2captcha", **kwargs): """ Модуль отвечает за дополнительные действия с аккаунтом и капчей. :param rucaptcha_key: Ключ от RuCaptcha :param service_type: URL с которым будет работать программа, возможен вариант "2captcha"(стандартный) и "rucaptcha" """ self.service_type = service_type self.post_payload = {"key": rucaptcha_key, "json": 1} # Если переданы ещё параметры - вносим их в post_payload if kwargs: for key in kwargs: self.post_payload.update({key: kwargs[key]}) def __enter__(self): return self def __exit__(self, exc_type, exc_value, traceback): if exc_type: return False return True @api_key_check @service_check def additional_methods(self, action: str, **kwargs): """ Метод который выполняет дополнительные действия, такие как жалобы/получение баланса и прочее. :param action: Тип действия, самые типичные: getbalance(получение баланса), reportbad(жалоба на неверное решение). reportgood(оповещение при верном решении капчи, для сбора статистики по ReCaptcha V3) :param kwargs: Для передачи дополнительных параметров :return: Возвращает JSON строку с соответствующими полями: serverAnswer - ответ сервера при использовании RuCaptchaControl(баланс/жалобы и т.д.), taskId - находится Id задачи на решение капчи, можно использовать при жалобах и прочем, error - False - если всё хорошо, True - если есть ошибка, errorBody - название ошибки Больше подробностей и примеров можно прочитать в 'CaptchaTester/rucaptcha_control_example.py' """ # result, url_response - задаются в декораторе `service_check`, после проверки переданного названия # Если переданы ещё параметры - вносим их в post_payload if kwargs: for key in kwargs: self.post_payload.update({key: kwargs[key]}) self.post_payload.update({"action": action}) try: # отправляем на сервер данные с вашим запросом answer = requests.post(self.url_response, data=self.post_payload) except Exception as error: self.result.update({"error": True, "errorBody": {"text": error, "id": -1}}) return self.result if answer.json()["status"] == 0: self.result.update({"error": True, "errorBody": answer.json()["request"]}) return self.result elif answer.json()["status"] == 1: self.result.update({"serverAnswer": answer.json()["request"]}) return self.result # асинхронный метод class aioRuCaptchaControl: def __init__(self, rucaptcha_key: str, service_type: str = "2captcha", **kwargs): """ Асинхронный модуль отвечает за дополнительные действия с аккаунтом и капчей. :param rucaptcha_key: Ключ от RuCaptcha :param service_type: URL с которым будет работать программа, возможен вариант "2captcha"(стандартный) и "rucaptcha" :param kwargs: Для передачи дополнительных параметров """ self.service_type = service_type self.post_payload = {"key": rucaptcha_key, "json": 1} # Если переданы ещё параметры - вносим их в post_payload if kwargs: for key in kwargs: self.post_payload.update({key: kwargs[key]}) def __enter__(self): return self def __exit__(self, exc_type, exc_value, traceback): if exc_type: return False return True @api_key_check @service_check async def additional_methods(self, action: str, **kwargs): """ Асинхронный метод который выполняет дополнительные действия, такие как жалобы/получение баланса и прочее. :param action: Тип действия, самые типичные: getbalance(получение баланса), reportbad(жалоба на неверное решение). :param kwargs: Для передачи дополнительных параметров :return: Возвращает JSON строку с соответствующими полями: serverAnswer - ответ сервера при использовании RuCaptchaControl(баланс/жалобы и т.д.), taskId - находится Id задачи на решение капчи, можно использовать при жалобах и прочем, error - False - если всё хорошо, True - если есть ошибка, errorBody - название ошибки Больше подробностей и примеров можно прочитать в 'CaptchaTester/rucaptcha_control_example.py' """ # result, url_response - задаются в декораторе `service_check`, после проверки переданного названия # Если переданы ещё параметры - вносим их в post_payload if kwargs: for key in kwargs: self.post_payload.update({key: kwargs[key]}) self.post_payload.update({"action": action}) try: async with aiohttp.ClientSession() as session: # отправляем на сервер данные с вашим запросом async with session.post(self.url_response, data=self.post_payload) as resp: answer = await resp.json() except Exception as error: self.result.update({"error": True, "errorBody": {"text": error, "id": -1}}) return self.result if answer["status"] == 0: self.result.update({"error": True, "errorBody": answer["request"]}) return self.result elif answer["status"] == 1: self.result.update({"serverAnswer": answer["request"]}) return self.result
43.122302
113
0.621955
654
5,994
5.577982
0.253823
0.042215
0.041118
0.034539
0.911458
0.898849
0.859649
0.794956
0.774123
0.748355
0
0.003082
0.296296
5,994
138
114
43.434783
0.861783
0.324324
0
0.716418
0
0
0.063029
0
0
0
0
0
0
1
0.104478
false
0
0.044776
0.029851
0.358209
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
495984add818f45137c51b837272b69ecf6a0c57
10,951
py
Python
prototree/project.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
35
2020-12-03T14:38:52.000Z
2022-03-30T02:41:26.000Z
prototree/project.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
3
2021-06-01T10:55:12.000Z
2021-11-27T10:40:14.000Z
prototree/project.py
TristanGomez44/ProtoTree
d9e77a90b47cb1efe19f1736c6701872a3c4a62e
[ "MIT" ]
7
2021-03-13T12:17:01.000Z
2022-02-17T15:12:13.000Z
import argparse import torch from torch.utils.data import DataLoader from tqdm import tqdm import numpy as np from prototree.prototree import ProtoTree from util.log import Log def project(tree: ProtoTree, project_loader: DataLoader, device, args: argparse.Namespace, log: Log, log_prefix: str = 'log_projection', # TODO progress_prefix: str = 'Projection' ) -> dict: log.log_message("\nProjecting prototypes to nearest training patch (without class restrictions)...") # Set the model to evaluation mode tree.eval() torch.cuda.empty_cache() # The goal is to find the latent patch that minimizes the L2 distance to each prototype # To do this we iterate through the train dataset and store for each prototype the closest latent patch seen so far # Also store info about the image that was used for projection global_min_proto_dist = {j: np.inf for j in range(tree.num_prototypes)} global_min_patches = {j: None for j in range(tree.num_prototypes)} global_min_info = {j: None for j in range(tree.num_prototypes)} # Get the shape of the prototypes W1, H1, D = tree.prototype_shape # Build a progress bar for showing the status projection_iter = tqdm(enumerate(project_loader), total=len(project_loader), desc=progress_prefix, ncols=0 ) with torch.no_grad(): # Get a batch of data xs, ys = next(iter(project_loader)) batch_size = xs.shape[0] for i, (xs, ys) in projection_iter: xs, ys = xs.to(device), ys.to(device) # Get the features and distances # - features_batch: features tensor (shared by all prototypes) # shape: (batch_size, D, W, H) # - distances_batch: distances tensor (for all prototypes) # shape: (batch_size, num_prototypes, W, H) # - out_map: a dict mapping decision nodes to distances (indices) features_batch, distances_batch, out_map = tree.forward_partial(xs) # Get the features dimensions bs, D, W, H = features_batch.shape # Get a tensor containing the individual latent patches # Create the patches by unfolding over both the W and H dimensions # TODO -- support for strides in the prototype layer? (corresponds to step size here) patches_batch = features_batch.unfold(2, W1, 1).unfold(3, H1, 1) # Shape: (batch_size, D, W, H, W1, H1) # Iterate over all decision nodes/prototypes for node, j in out_map.items(): # Iterate over all items in the batch # Select the features/distances that are relevant to this prototype # - distances: distances of the prototype to the latent patches # shape: (W, H) # - patches: latent patches # shape: (D, W, H, W1, H1) for batch_i, (distances, patches) in enumerate(zip(distances_batch[:, j, :, :], patches_batch)): # Find the index of the latent patch that is closest to the prototype min_distance = distances.min() min_distance_ix = distances.argmin() # Use the index to get the closest latent patch closest_patch = patches.view(D, W * H, W1, H1)[:, min_distance_ix, :, :] # Check if the latent patch is closest for all data samples seen so far if min_distance < global_min_proto_dist[j]: global_min_proto_dist[j] = min_distance global_min_patches[j] = closest_patch global_min_info[j] = { 'input_image_ix': i * batch_size + batch_i, 'patch_ix': min_distance_ix.item(), # Index in a flattened array of the feature map 'W': W, 'H': H, 'W1': W1, 'H1': H1, 'distance': min_distance.item(), 'nearest_input': torch.unsqueeze(xs[batch_i],0), 'node_ix': node.index, } # Update the progress bar if required projection_iter.set_postfix_str(f'Batch: {i + 1}/{len(project_loader)}') del features_batch del distances_batch del out_map # Copy the patches to the prototype layer weights projection = torch.cat(tuple(global_min_patches[j].unsqueeze(0) for j in range(tree.num_prototypes)), dim=0, out=tree.prototype_layer.prototype_vectors) del projection return global_min_info, tree def project_with_class_constraints(tree: ProtoTree, project_loader: DataLoader, device, args: argparse.Namespace, log: Log, log_prefix: str = 'log_projection_with_constraints', # TODO progress_prefix: str = 'Projection' ) -> dict: log.log_message("\nProjecting prototypes to nearest training patch (with class restrictions)...") # Set the model to evaluation mode tree.eval() torch.cuda.empty_cache() # The goal is to find the latent patch that minimizes the L2 distance to each prototype # To do this we iterate through the train dataset and store for each prototype the closest latent patch seen so far # Also store info about the image that was used for projection global_min_proto_dist = {j: np.inf for j in range(tree.num_prototypes)} global_min_patches = {j: None for j in range(tree.num_prototypes)} global_min_info = {j: None for j in range(tree.num_prototypes)} # Get the shape of the prototypes W1, H1, D = tree.prototype_shape # Build a progress bar for showing the status projection_iter = tqdm(enumerate(project_loader), total=len(project_loader), desc=progress_prefix, ncols=0 ) with torch.no_grad(): # Get a batch of data xs, ys = next(iter(project_loader)) batch_size = xs.shape[0] # For each internal node, collect the leaf labels in the subtree with this node as root. # Only images from these classes can be used for projection. leaf_labels_subtree = dict() for branch, j in tree._out_map.items(): leaf_labels_subtree[branch.index] = set() for leaf in branch.leaves: leaf_labels_subtree[branch.index].add(torch.argmax(leaf.distribution()).item()) for i, (xs, ys) in projection_iter: xs, ys = xs.to(device), ys.to(device) # Get the features and distances # - features_batch: features tensor (shared by all prototypes) # shape: (batch_size, D, W, H) # - distances_batch: distances tensor (for all prototypes) # shape: (batch_size, num_prototypes, W, H) # - out_map: a dict mapping decision nodes to distances (indices) features_batch, distances_batch, out_map = tree.forward_partial(xs) # Get the features dimensions bs, D, W, H = features_batch.shape # Get a tensor containing the individual latent patches # Create the patches by unfolding over both the W and H dimensions # TODO -- support for strides in the prototype layer? (corresponds to step size here) patches_batch = features_batch.unfold(2, W1, 1).unfold(3, H1, 1) # Shape: (batch_size, D, W, H, W1, H1) # Iterate over all decision nodes/prototypes for node, j in out_map.items(): leaf_labels = leaf_labels_subtree[node.index] # Iterate over all items in the batch # Select the features/distances that are relevant to this prototype # - distances: distances of the prototype to the latent patches # shape: (W, H) # - patches: latent patches # shape: (D, W, H, W1, H1) for batch_i, (distances, patches) in enumerate(zip(distances_batch[:, j, :, :], patches_batch)): #Check if label of this image is in one of the leaves of the subtree if ys[batch_i].item() in leaf_labels: # Find the index of the latent patch that is closest to the prototype min_distance = distances.min() min_distance_ix = distances.argmin() # Use the index to get the closest latent patch closest_patch = patches.view(D, W * H, W1, H1)[:, min_distance_ix, :, :] # Check if the latent patch is closest for all data samples seen so far if min_distance < global_min_proto_dist[j]: global_min_proto_dist[j] = min_distance global_min_patches[j] = closest_patch global_min_info[j] = { 'input_image_ix': i * batch_size + batch_i, 'patch_ix': min_distance_ix.item(), # Index in a flattened array of the feature map 'W': W, 'H': H, 'W1': W1, 'H1': H1, 'distance': min_distance.item(), 'nearest_input': torch.unsqueeze(xs[batch_i],0), 'node_ix': node.index, } # Update the progress bar if required projection_iter.set_postfix_str(f'Batch: {i + 1}/{len(project_loader)}') del features_batch del distances_batch del out_map # Copy the patches to the prototype layer weights projection = torch.cat(tuple(global_min_patches[j].unsqueeze(0) for j in range(tree.num_prototypes)), dim=0, out=tree.prototype_layer.prototype_vectors) del projection return global_min_info, tree
50.233945
120
0.545612
1,285
10,951
4.500389
0.155642
0.028013
0.005188
0.015217
0.908525
0.89521
0.89521
0.89521
0.89521
0.89521
0
0.0074
0.382979
10,951
217
121
50.465438
0.848453
0.300886
0
0.784
0
0
0.055352
0.010718
0
0
0
0.004608
0
1
0.016
false
0
0.056
0
0.088
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
497b3ab9fb6d8cd39b33700926d8ff9a60b684ac
97
py
Python
.venv/lib/python3.8/site-packages/osqp/__init__.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
2
2021-09-28T01:36:21.000Z
2021-12-22T08:24:17.000Z
.venv/lib/python3.8/site-packages/osqp/__init__.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
1
2022-03-09T13:13:44.000Z
2022-03-09T13:13:44.000Z
.venv/lib/python3.8/site-packages/osqp/__init__.py
eo1989/VectorBTanalysis
bea3deaf2ee3fc114b308146f2af3e4f35f70197
[ "MIT" ]
1
2020-12-08T10:36:30.000Z
2020-12-08T10:36:30.000Z
from osqp.interface import OSQP from osqp.interface import solve from osqp._osqp import constant
24.25
32
0.845361
15
97
5.4
0.4
0.296296
0.419753
0.567901
0
0
0
0
0
0
0
0
0.123711
97
3
33
32.333333
0.952941
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
b8db0ba088244ffe06c21ca41bbca189aa0f3ba2
5,670
py
Python
procurar_duplicata.py
ej2008/Ferramentas
36a3a879d3dae3e43b61b251e9334eca3dcc3b89
[ "Unlicense" ]
null
null
null
procurar_duplicata.py
ej2008/Ferramentas
36a3a879d3dae3e43b61b251e9334eca3dcc3b89
[ "Unlicense" ]
null
null
null
procurar_duplicata.py
ej2008/Ferramentas
36a3a879d3dae3e43b61b251e9334eca3dcc3b89
[ "Unlicense" ]
null
null
null
cadastro = ['22', [{'piloto': 'Henrique Chiavelli', 'data_nasc': '4/5/66', 'apelido': 'rick', 'id': 1, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Henrique Chiavelli', 'data_nasc': '4/5/66', 'apelido': 'rick', 'id': 1, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Edson Terraz', 'data_nasc': '30/05/99', 'apelido': 'Zica', 'tam_camisa': 'G', 'co-piloto': 'Chia', 'id': 18}, {'piloto': 'Edson Santos', 'data_nasc': '04/04/04', 'apelido': 'Tekn', 'tam_camisa': 'G', 'co-piloto': 'Chia', 'id': 19}, {'piloto': 'Sandra Chiavelli', 'data_nasc': '03/5/69', 'apelido': 'Sandrinha', 'tam_camisa': 'P', 'co-piloto': 'Edson', 'id': 11}, {'piloto': 'Wills Roads', 'data_nasc': '05/03/81', 'apelido': 'Roads', 'tam_camisa': 'P', 'co-piloto': 'Treta', 'id': 14}, {'piloto': 'Zerado', 'data_nasc': '3/5/89', 'apelido': 'Purks', 'tam_camisa': 'G', 'co-piloto': 'Zero', 'id': 8}, {'piloto': 'Professor Pardal', 'data_nasc': '09/02/70', 'apelido': 'Prof, Maluco', 'tam_camisa': 'M', 'co-piloto': '', 'id': 16}, {'piloto': 'Petronio Petrus', 'data_nasc': '05/09/70', 'apelido': 'Petro', 'tam_camisa': 'G', 'co-piloto': 'Karlas', 'id': 13}, {'piloto': 'Francisco Moura', 'data_nasc': '9/2/10', 'apelido': 'Moura', 'id': 5, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Edson J. Silva', 'data_nasc': '23/04/70', 'apelido': 'Motor', 'id': 7, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Penelope Chamosa', 'data_nasc': '04/03/88', 'apelido': 'Mimosa', 'tam_camisa': 'P', 'co-piloto': 'Bob', 'id': 15}, {'piloto': 'Penelope Charmosa', 'data_nasc': '04/03/84', 'apelido': 'Machado', 'tam_camisa': 'XG', 'co-piloto': 'Urso', 'id': 20}, {'piloto': 'Lucivanio', 'data_nasc': '5/4/34', 'apelido': 'Luck', 'id': 3, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Castro Lubri', 'data_nasc': '04/07/82', 'apelido': 'Lub', 'tam_camisa': 'M', 'co-piloto': 'Lub', 'id': 12}, {'piloto': 'Karina kurts', 'data_nasc': '5/4/94', 'apelido': 'Kurts', 'id': 6, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Cabral Cunha', 'data_nasc': '4/5/55', 'apelido': 'Cunha', 'id': 4, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Erick', 'data_nasc': '2/5/90', 'apelido': 'Chia', 'id': 2, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Pedro Balão', 'data_nasc': '5/9/50', 'apelido': 'Balão', 'tam_camisa': 'M', 'co-piloto': 'Dé', 'id': 10}, {'piloto': 'Castro Lubri', 'data_nasc': '04/07/82', 'apelido': 'Lub', 'tam_camisa': 'M', 'co-piloto': 'Lub', 'id': 12}, {'piloto': 'Edson J. Silva', 'data_nasc': '23/04/70', 'apelido': 'Motor', 'id': 7, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Edson Santos', 'data_nasc': '04/04/04', 'apelido': 'Tekn', 'tam_camisa': 'G', 'co-piloto': 'Chia', 'id': 19}, {'piloto': 'Edson Terraz', 'data_nasc': '30/05/99', 'apelido': 'Zica', 'tam_camisa': 'G', 'co-piloto': 'Chia', 'id': 18}, {'piloto': 'Erick', 'data_nasc': '2/5/90', 'apelido': 'Chia', 'id': 2, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Francisco Moura', 'data_nasc': '9/2/10', 'apelido': 'Moura', 'id': 5, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Henrique Chiavelli', 'data_nasc': '4/5/66', 'apelido': 'rick', 'id': 1, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Karina kurts', 'data_nasc': '5/4/94', 'apelido': 'Kurts', 'id': 6, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Lucivanio', 'data_nasc': '5/4/34', 'apelido': 'Luck', 'id': 3, 'tam_camisa': '', 'co-piloto': ''}, {'piloto': 'Pedro Balão', 'data_nasc': '5/9/50', 'apelido': 'Balão', 'tam_camisa': 'M', 'co-piloto': 'Dé', 'id': 10}, {'piloto': 'Penelope Chamosa', 'data_nasc': '04/03/88', 'apelido': 'Mimosa', 'tam_camisa': 'P', 'co-piloto': 'Bob', 'id': 15}, {'piloto': 'Penelope Charmosa', 'data_nasc': '04/03/84', 'apelido': 'Machado', 'tam_camisa': 'XG', 'co-piloto': 'Urso', 'id': 20}, {'piloto': 'Petronio Petrus', 'data_nasc': '05/09/70', 'apelido': 'Petro', 'tam_camisa': 'G', 'co-piloto': 'Karlas', 'id': 13}, {'piloto': 'Professor Pardal', 'data_nasc': '09/02/70', 'apelido': 'Prof, Maluco', 'tam_camisa': 'M', 'co-piloto': '', 'id': 16}, {'piloto': 'Sandra Chiavelli', 'data_nasc': '03/5/69', 'apelido': 'Sandrinha', 'tam_camisa': 'P', 'co-piloto': 'Edson', 'id': 11}, {'piloto': 'Wills Roads', 'data_nasc': '05/03/81', 'apelido': 'Roads', 'tam_camisa': 'P', 'co-piloto': 'Treta', 'id': 14}, {'piloto': 'Zerado', 'data_nasc': '3/5/89', 'apelido': 'Purks', 'tam_camisa': 'G', 'co-piloto': 'Zero', 'id': 8}, {'piloto': 'Henrique Chiavelli', 'data_nasc': '4/5/66', 'apelido': 'rick', 'id': 1, 'tam_camisa': '', 'co-piloto': ''}]] chave = input(print('Chaves disponiveie: ',cadastro[1][0].keys(), '\nEscolha uma a chave para procurar as Duplicatas: ') ) for i in range(len(cadastro[1])): for j in range(len(cadastro[1])): if cadastro[1][i]['piloto'] == cadastro[1][j]['piloto'] and i != j: print( i ,' - ' ,'i:',i,cadastro[1][i]['id'],':',cadastro[1][i]['piloto'], '\t','j:',j,cadastro[1][j]['id'],':',cadastro[1][j]['piloto'])
115.714286
150
0.492063
700
5,670
3.88
0.181429
0.108984
0.060751
0.093888
0.908321
0.888071
0.888071
0.888071
0.888071
0.888071
0
0.058433
0.230335
5,670
48
151
118.125
0.563932
0
0
0.772727
0
0
0.488612
0
0
0
0
0
0
1
0
false
0
0
0
0
0.045455
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
7735e4e5773e846bb264b939335a5d4475325eb8
219
py
Python
mqbench/nn/intrinsic/modules/__init__.py
ModelTC/MQBench
bbf54367180a9e5e5ce37efcd7b8d7ebb5b926eb
[ "Apache-2.0" ]
179
2021-09-22T08:44:51.000Z
2022-03-31T08:09:43.000Z
mqbench/nn/intrinsic/modules/__init__.py
ModelTC/MQBench
bbf54367180a9e5e5ce37efcd7b8d7ebb5b926eb
[ "Apache-2.0" ]
46
2021-09-29T03:04:30.000Z
2022-03-31T11:53:23.000Z
mqbench/nn/intrinsic/modules/__init__.py
ModelTC/MQBench
bbf54367180a9e5e5ce37efcd7b8d7ebb5b926eb
[ "Apache-2.0" ]
42
2021-09-24T16:08:26.000Z
2022-03-30T10:21:34.000Z
from .fused import LinearBn1d, ConvTransposeBn2d, ConvTransposeReLU2d, ConvTransposeBnReLU2d, ConvBnReLU2d, ConvBn2d, ConvReLU2d, ConvFreezebn2d, ConvFreezebnReLU2d, ConvTransposeFreezebn2d, ConvTransposeFreezebnReLU2d
109.5
218
0.885845
14
219
13.857143
1
0
0
0
0
0
0
0
0
0
0
0.053659
0.063927
219
1
219
219
0.892683
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
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7